@kwirthmagnify/kwirth-plugin-magnify 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +16 -0
  2. package/back.js +286 -33
  3. package/front.js +66 -66
  4. package/package.json +1 -1
package/front.js CHANGED
@@ -1,38 +1,38 @@
1
- "use strict";(()=>{var k1=Object.create;var jl=Object.defineProperty;var I1=Object.getOwnPropertyDescriptor;var T1=Object.getOwnPropertyNames;var M1=Object.getPrototypeOf,D1=Object.prototype.hasOwnProperty;var Om=e=>{throw TypeError(e)};var O1=(e,t,n)=>t in e?jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R1=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var N1=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of T1(t))!D1.call(e,r)&&r!==n&&jl(e,r,{get:()=>t[r],enumerable:!(a=I1(t,r))||a.enumerable});return e};var I=(e,t,n)=>(n=e!=null?k1(M1(e)):{},N1(t||!e||!e.__esModule?jl(n,"default",{value:e,enumerable:!0}):n,e));var Rm=(e,t,n)=>O1(e,typeof t!="symbol"?t+"":t,n),Zl=(e,t,n)=>t.has(e)||Om("Cannot "+n);var M=(e,t,n)=>(Zl(e,t,"read from private field"),n?n.call(e):t.get(e)),Re=(e,t,n)=>t.has(e)?Om("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,a)=>(Zl(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n),K=(e,t,n)=>(Zl(e,t,"access private method"),n);var Ze=O((BM,Nm)=>{u();var Ja=window.__kwirth__.React,jr=Ja!=null&&"default"in Object(Ja)?Ja.default:Ja;typeof jr!="function"&&jr!=null&&typeof jr.default<"u"&&(jr=jr.default);Nm.exports=Object.assign({},typeof Ja=="object"&&Ja!==null?Ja:{},{default:jr,__esModule:!0})});var C,u=R1(()=>{"use strict";C=I(Ze(),1)});var Rt=O((GM,Pm)=>{u();var ja=window.__kwirth__.kwirthCommonFront,Zr=ja!=null&&"default"in Object(ja)?ja.default:ja;typeof Zr!="function"&&Zr!=null&&typeof Zr.default<"u"&&(Zr=Zr.default);Pm.exports=Object.assign({},typeof ja=="object"&&ja!==null?ja:{},{default:Zr,__esModule:!0})});var Jt=O((ZM,Fm)=>{u();var Za=window.__kwirth__.MUI.icons,Xr=Za!=null&&"default"in Object(Za)?Za.default:Za;typeof Xr!="function"&&Xr!=null&&typeof Xr.default<"u"&&(Xr=Xr.default);Fm.exports=Object.assign({},typeof Za=="object"&&Za!==null?Za:{},{default:Xr,__esModule:!0})});var zm=O(ho=>{"use strict";u();var P1=Ze(),F1=Symbol.for("react.element"),_1=Symbol.for("react.fragment"),z1=Object.prototype.hasOwnProperty,L1=P1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,V1={key:!0,ref:!0,__self:!0,__source:!0};function _m(e,t,n){var a,r={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(a in t)z1.call(t,a)&&!V1.hasOwnProperty(a)&&(r[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)r[a]===void 0&&(r[a]=t[a]);return{$$typeof:F1,type:e,key:i,ref:s,props:r,_owner:L1.current}}ho.Fragment=_1;ho.jsx=_m;ho.jsxs=_m});var fe=O((tD,Lm)=>{"use strict";u();Lm.exports=zm()});var Qa=O((iD,Bm)=>{u();var Xa=window.__kwirth__.kwirthCommon,Qr=Xa!=null&&"default"in Object(Xa)?Xa.default:Xa;typeof Qr!="function"&&Qr!=null&&typeof Qr.default<"u"&&(Qr=Qr.default);Bm.exports=Object.assign({},typeof Xa=="object"&&Xa!==null?Xa:{},{default:Qr,__esModule:!0})});var ht=O((dD,$m)=>{u();var er=window.__kwirth__.MUI.material,ti=er!=null&&"default"in Object(er)?er.default:er;typeof ti!="function"&&ti!=null&&typeof ti.default<"u"&&(ti=ti.default);$m.exports=Object.assign({},typeof er=="object"&&er!==null?er:{},{default:ti,__esModule:!0})});var Um=O((pD,qm)=>{u();var tr=window.__kwirth_dce__["file-manager"].instance.fileManager,ni=tr!=null&&"default"in Object(tr)?tr.default:tr;typeof ni!="function"&&ni!=null&&typeof ni.default<"u"&&(ni=ni.default);qm.exports=Object.assign({},typeof tr=="object"&&tr!==null?tr:{},{default:ni,__esModule:!0})});var hd=O((QD,pd)=>{"use strict";u();var $1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";pd.exports=$1});var bd=O((tO,xd)=>{"use strict";u();var q1=hd();function gd(){}function yd(){}yd.resetWarningCache=gd;xd.exports=function(){function e(a,r,i,s,o,l){if(l!==q1){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:yd,resetWarningCache:gd};return n.PropTypes=n,n}});var nr=O((iO,wd)=>{u();wd.exports=bd()();var aO,rO});var fs=O((oO,vd)=>{u();var ar=window.__kwirth__.ReactDOM,si=ar!=null&&"default"in Object(ar)?ar.default:ar;typeof si!="function"&&si!=null&&typeof si.default<"u"&&(si=si.default);vd.exports=Object.assign({},typeof ar=="object"&&ar!==null?ar:{},{default:si,__esModule:!0})});var _d=O((bO,hc)=>{u();function Fd(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Fd(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Pd(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Fd(e))&&(a&&(a+=" "),a+=t);return a}hc.exports=Pd,hc.exports.clsx=Pd});var Gd=O((vO,Yd)=>{"use strict";u();var fb=Object.create,bo=Object.defineProperty,pb=Object.getOwnPropertyDescriptor,hb=Object.getOwnPropertyNames,gb=Object.getPrototypeOf,yb=Object.prototype.hasOwnProperty,xb=(e,t)=>{for(var n in t)bo(e,n,{get:t[n],enumerable:!0})},Bd=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hb(t))!yb.call(e,r)&&r!==n&&bo(e,r,{get:()=>t[r],enumerable:!(a=pb(t,r))||a.enumerable});return e},ui=(e,t,n)=>(n=e!=null?fb(gb(e)):{},Bd(t||!e||!e.__esModule?bo(n,"default",{value:e,enumerable:!0}):n,e)),bb=e=>Bd(bo({},"__esModule",{value:!0}),e),$d={};xb($d,{DraggableCore:()=>or,default:()=>wo});Yd.exports=bb($d);var xo=ui(Ze()),st=ui(nr()),wb=ui(fs()),vb=_d();function Sc(e,t){for(let n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function zd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function gs(e){return typeof e=="number"&&!isNaN(e)}function Bt(e){return parseInt(e,10)}function ci(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var gc=["Moz","Webkit","O","ms"];function Cb(e="transform"){var t,n;if(typeof window>"u")return"";let a=(n=(t=window.document)==null?void 0:t.documentElement)==null?void 0:n.style;if(!a||e in a)return"";for(let r=0;r<gc.length;r++)if(qd(e,gc[r])in a)return gc[r];return""}function qd(e,t){return t?`${t}${Sb(e)}`:e}function Sb(e){let t="",n=!0;for(let a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):e[a]==="-"?n=!0:t+=e[a];return t}var kb=Cb(),yc="";function Ib(e,t){var n;yc||(yc=(n=Sc(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(r){return zd(e[r])}))!=null?n:"");let a=e[yc];return zd(a)?!!a.call(e,t):!1}function Ld(e,t,n){let a=e;do{if(Ib(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1}function xc(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}function sr(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null}function Tb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Bt(n.borderTopWidth),t+=Bt(n.borderBottomWidth),t}function Mb(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Bt(n.borderLeftWidth),t+=Bt(n.borderRightWidth),t}function Db(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Bt(n.paddingTop),t-=Bt(n.paddingBottom),t}function Ob(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Bt(n.paddingLeft),t-=Bt(n.paddingRight),t}function Rb(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}}function Nb(e,t){let n=Ud(e,t,"px");return{[qd("transform",kb)]:n}}function Eb(e,t){return Ud(e,t,"")}function Ud({x:e,y:t},n,a){let r=`translate(${e}${a},${t}${a})`;if(n){let i=`${typeof n.x=="string"?n.x:n.x+a}`,s=`${typeof n.y=="string"?n.y:n.y+a}`;r=`translate(${i}, ${s})`+r}return r}function Ab(e,t){return e.targetTouches&&Sc(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&Sc(e.changedTouches,n=>t===n.identifier)}function Pb(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function Fb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function _b(e,t){if(!e)return;let n=e.getElementById("react-draggable-style-el");if(!n){n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el";let a=t??Fb();a&&n.setAttribute("nonce",a),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
1
+ "use strict";(()=>{var N1=Object.create;var Zl=Object.defineProperty;var E1=Object.getOwnPropertyDescriptor;var A1=Object.getOwnPropertyNames;var P1=Object.getPrototypeOf,F1=Object.prototype.hasOwnProperty;var Em=e=>{throw TypeError(e)};var _1=(e,t,n)=>t in e?Zl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z1=(e,t)=>()=>(e&&(t=e(e=0)),t);var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var L1=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of A1(t))!F1.call(e,r)&&r!==n&&Zl(e,r,{get:()=>t[r],enumerable:!(a=E1(t,r))||a.enumerable});return e};var k=(e,t,n)=>(n=e!=null?N1(P1(e)):{},L1(t||!e||!e.__esModule?Zl(n,"default",{value:e,enumerable:!0}):n,e));var Am=(e,t,n)=>_1(e,typeof t!="symbol"?t+"":t,n),Xl=(e,t,n)=>t.has(e)||Em("Cannot "+n);var T=(e,t,n)=>(Xl(e,t,"read from private field"),n?n.call(e):t.get(e)),De=(e,t,n)=>t.has(e)?Em("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,a)=>(Xl(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n),K=(e,t,n)=>(Xl(e,t,"access private method"),n);var je=D((eD,Pm)=>{u();var Ja=window.__kwirth__.React,jr=Ja!=null&&"default"in Object(Ja)?Ja.default:Ja;typeof jr!="function"&&jr!=null&&typeof jr.default<"u"&&(jr=jr.default);Pm.exports=Object.assign({},typeof Ja=="object"&&Ja!==null?Ja:{},{default:jr,__esModule:!0})});var S,u=z1(()=>{"use strict";S=k(je(),1)});var Ot=D((iD,zm)=>{u();var ja=window.__kwirth__.kwirthCommonFront,Zr=ja!=null&&"default"in Object(ja)?ja.default:ja;typeof Zr!="function"&&Zr!=null&&typeof Zr.default<"u"&&(Zr=Zr.default);zm.exports=Object.assign({},typeof ja=="object"&&ja!==null?ja:{},{default:Zr,__esModule:!0})});var Kt=D((cD,Lm)=>{u();var Za=window.__kwirth__.MUI.icons,Xr=Za!=null&&"default"in Object(Za)?Za.default:Za;typeof Xr!="function"&&Xr!=null&&typeof Xr.default<"u"&&(Xr=Xr.default);Lm.exports=Object.assign({},typeof Za=="object"&&Za!==null?Za:{},{default:Xr,__esModule:!0})});var Wm=D(ho=>{"use strict";u();var H1=je(),B1=Symbol.for("react.element"),$1=Symbol.for("react.fragment"),q1=Object.prototype.hasOwnProperty,U1=H1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Y1={key:!0,ref:!0,__self:!0,__source:!0};function Vm(e,t,n){var a,r={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(a in t)q1.call(t,a)&&!Y1.hasOwnProperty(a)&&(r[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)r[a]===void 0&&(r[a]=t[a]);return{$$typeof:B1,type:e,key:i,ref:s,props:r,_owner:U1.current}}ho.Fragment=$1;ho.jsx=Vm;ho.jsxs=Vm});var he=D((fD,Hm)=>{"use strict";u();Hm.exports=Wm()});var va=D((yD,Um)=>{u();var Xa=window.__kwirth__.kwirthCommon,Qr=Xa!=null&&"default"in Object(Xa)?Xa.default:Xa;typeof Qr!="function"&&Qr!=null&&typeof Qr.default<"u"&&(Qr=Qr.default);Um.exports=Object.assign({},typeof Xa=="object"&&Xa!==null?Xa:{},{default:Qr,__esModule:!0})});var ft=D((ID,Ym)=>{u();var Qa=window.__kwirth__.MUI.material,ti=Qa!=null&&"default"in Object(Qa)?Qa.default:Qa;typeof ti!="function"&&ti!=null&&typeof ti.default<"u"&&(ti=ti.default);Ym.exports=Object.assign({},typeof Qa=="object"&&Qa!==null?Qa:{},{default:ti,__esModule:!0})});var Km=D((TD,Gm)=>{u();var er=window.__kwirth_dce__["file-manager"].instance.fileManager,ni=er!=null&&"default"in Object(er)?er.default:er;typeof ni!="function"&&ni!=null&&typeof ni.default<"u"&&(ni=ni.default);Gm.exports=Object.assign({},typeof er=="object"&&er!==null?er:{},{default:ni,__esModule:!0})});var xd=D((mO,yd)=>{"use strict";u();var j1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";yd.exports=j1});var Cd=D((fO,Sd)=>{"use strict";u();var Z1=xd();function bd(){}function wd(){}wd.resetWarningCache=bd;Sd.exports=function(){function e(a,r,i,s,o,l){if(l!==Z1){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wd,resetWarningCache:bd};return n.PropTypes=n,n}});var tr=D((yO,vd)=>{u();vd.exports=Cd()();var hO,gO});var ps=D((bO,Id)=>{u();var nr=window.__kwirth__.ReactDOM,si=nr!=null&&"default"in Object(nr)?nr.default:nr;typeof si!="function"&&si!=null&&typeof si.default<"u"&&(si=si.default);Id.exports=Object.assign({},typeof nr=="object"&&nr!==null?nr:{},{default:si,__esModule:!0})});var Vd=D((NO,gc)=>{u();function Ld(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ld(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function zd(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ld(e))&&(a&&(a+=" "),a+=t);return a}gc.exports=zd,gc.exports.clsx=zd});var jd=D((AO,Jd)=>{"use strict";u();var wb=Object.create,bo=Object.defineProperty,Sb=Object.getOwnPropertyDescriptor,Cb=Object.getOwnPropertyNames,vb=Object.getPrototypeOf,Ib=Object.prototype.hasOwnProperty,kb=(e,t)=>{for(var n in t)bo(e,n,{get:t[n],enumerable:!0})},Ud=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Cb(t))!Ib.call(e,r)&&r!==n&&bo(e,r,{get:()=>t[r],enumerable:!(a=Sb(t,r))||a.enumerable});return e},ui=(e,t,n)=>(n=e!=null?wb(vb(e)):{},Ud(t||!e||!e.__esModule?bo(n,"default",{value:e,enumerable:!0}):n,e)),Tb=e=>Ud(bo({},"__esModule",{value:!0}),e),Yd={};kb(Yd,{DraggableCore:()=>sr,default:()=>wo});Jd.exports=Tb(Yd);var xo=ui(je()),rt=ui(tr()),Mb=ui(ps()),Db=Vd();function Ic(e,t){for(let n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function Wd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function ys(e){return typeof e=="number"&&!isNaN(e)}function Ht(e){return parseInt(e,10)}function ci(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var yc=["Moz","Webkit","O","ms"];function Ob(e="transform"){var t,n;if(typeof window>"u")return"";let a=(n=(t=window.document)==null?void 0:t.documentElement)==null?void 0:n.style;if(!a||e in a)return"";for(let r=0;r<yc.length;r++)if(Gd(e,yc[r])in a)return yc[r];return""}function Gd(e,t){return t?`${t}${Rb(e)}`:e}function Rb(e){let t="",n=!0;for(let a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):e[a]==="-"?n=!0:t+=e[a];return t}var Nb=Ob(),xc="";function Eb(e,t){var n;xc||(xc=(n=Ic(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(r){return Wd(e[r])}))!=null?n:"");let a=e[xc];return Wd(a)?!!a.call(e,t):!1}function Hd(e,t,n){let a=e;do{if(Eb(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1}function bc(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}function ir(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null}function Ab(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Ht(n.borderTopWidth),t+=Ht(n.borderBottomWidth),t}function Pb(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Ht(n.borderLeftWidth),t+=Ht(n.borderRightWidth),t}function Fb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Ht(n.paddingTop),t-=Ht(n.paddingBottom),t}function _b(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Ht(n.paddingLeft),t-=Ht(n.paddingRight),t}function zb(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}}function Lb(e,t){let n=Kd(e,t,"px");return{[Gd("transform",Nb)]:n}}function Vb(e,t){return Kd(e,t,"")}function Kd({x:e,y:t},n,a){let r=`translate(${e}${a},${t}${a})`;if(n){let i=`${typeof n.x=="string"?n.x:n.x+a}`,s=`${typeof n.y=="string"?n.y:n.y+a}`;r=`translate(${i}, ${s})`+r}return r}function Wb(e,t){return e.targetTouches&&Ic(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&Ic(e.changedTouches,n=>t===n.identifier)}function Hb(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function Bb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function $b(e,t){if(!e)return;let n=e.getElementById("react-draggable-style-el");if(!n){n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el";let a=t??Bb();a&&n.setAttribute("nonce",a),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
2
2
  `,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
3
- `,e.getElementsByTagName("head")[0].appendChild(n)}e.body&&zb(e.body,"react-draggable-transparent-selection")}function Vd(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Wd(e)}):Wd(e)}function Wd(e){if(e)try{e.body&&Lb(e.body,"react-draggable-transparent-selection");let t=e.selection;if(t)t.empty();else{let n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function zb(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function Lb(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}function Vb(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a=typeof a=="string"?a:Bb(a);let r=kc(e);if(typeof a=="string"){let{ownerDocument:i}=r,s=i.defaultView;if(!s)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(a==="parent"?o=r.parentNode:o=r.getRootNode().querySelector(a),!(o instanceof s.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');let l=o,c=s.getComputedStyle(r),d=s.getComputedStyle(l);a={left:-r.offsetLeft+Bt(d.paddingLeft)+Bt(c.marginLeft),top:-r.offsetTop+Bt(d.paddingTop)+Bt(c.marginTop),right:Ob(l)-Mb(r)-r.offsetLeft+Bt(d.paddingRight)-Bt(c.marginRight),bottom:Db(l)-Tb(r)-r.offsetTop+Bt(d.paddingBottom)-Bt(c.marginBottom)}}return gs(a.right)&&(t=Math.min(t,a.right)),gs(a.bottom)&&(n=Math.min(n,a.bottom)),gs(a.left)&&(t=Math.max(t,a.left)),gs(a.top)&&(n=Math.max(n,a.top)),[t,n]}function Hd(e,t,n){let a=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[a,r]}function Wb(e){return e.props.axis==="both"||e.props.axis==="x"}function Hb(e){return e.props.axis==="both"||e.props.axis==="y"}function bc(e,t,n){let a=typeof t=="number"?Ab(e,t):null;if(typeof t=="number"&&!a)return null;let r=kc(n),i=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return Rb(a||e,i,n.props.scale)}function wc(e,t,n){let a=!gs(e.lastX),r=kc(e);return a?{node:r,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:r,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function vc(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function Bb(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function kc(e){let t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Cc=ui(Ze()),Ht=ui(nr()),$b=ui(fs()),qb=typeof process<"u"&&process.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},ea=qb,Bn={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Ma=Bn.mouse,or=class extends Cc.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Ld(e.target,this.props.handle,t)||this.props.cancel&&Ld(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();let a=Pb(e);this.touchIdentifier=a;let r=bc(e,a,this);if(r==null)return;let{x:i,y:s}=r,o=wc(this,i,s);ea("DraggableCore: handleDragStart: %j",o),ea("calling",this.props.onStart),!(this.props.onStart(e,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&_b(n,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=s,xc(n,Ma.move,this.handleDrag),xc(n,Ma.stop,this.handleDragStop))},this.handleDrag=e=>{let t=bc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let s=n-this.lastX,o=a-this.lastY;if([s,o]=Hd(this.props.grid,s,o),!s&&!o)return;n=this.lastX+s,a=this.lastY+o}let r=wc(this,n,a);if(ea("DraggableCore: handleDrag: %j",r),this.props.onDrag(e,r)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let s=document.createEvent("MouseEvents");s.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(s)}return}this.lastX=n,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=bc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=a-this.lastY||0;[o,l]=Hd(this.props.grid,o,l),n=this.lastX+o,a=this.lastY+l}let r=wc(this,n,a);if(this.props.onStop(e,r)===!1||this.mounted===!1)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&Vd(s.ownerDocument),ea("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(ea("DraggableCore: Removing handlers"),sr(s.ownerDocument,Ma.move,this.handleDrag),sr(s.ownerDocument,Ma.stop,this.handleDragStop))},this.onMouseDown=e=>(Ma=Bn.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(Ma=Bn.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(Ma=Bn.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(Ma=Bn.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&xc(e,Bn.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;sr(t,Bn.mouse.move,this.handleDrag),sr(t,Bn.touch.move,this.handleDrag),sr(t,Bn.mouse.stop,this.handleDragStop),sr(t,Bn.touch.stop,this.handleDragStop),sr(e,Bn.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&Vd(t)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=$b.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):(ea("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return Cc.cloneElement(Cc.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};or.displayName="DraggableCore";or.propTypes={allowAnyClick:Ht.default.bool,allowMobileScroll:Ht.default.bool,children:Ht.default.node.isRequired,disabled:Ht.default.bool,enableUserSelectHack:Ht.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Ht.default.arrayOf(Ht.default.number),handle:Ht.default.string,cancel:Ht.default.string,nodeRef:Ht.default.object,nonce:Ht.default.string,onStart:Ht.default.func,onDrag:Ht.default.func,onStop:Ht.default.func,onMouseDown:Ht.default.func,scale:Ht.default.number,className:ci,style:ci,transform:ci};or.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var wo=class extends xo.Component{constructor(e){super(e),this.onDragStart=(t,n)=>{if(ea("Draggable: onDragStart: %j",n),this.props.onStart(t,vc(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,n)=>{if(!this.state.dragging)return!1;ea("Draggable: onDrag: %j",n);let a=vc(this,n),r={x:a.x,y:a.y,slackX:0,slackY:0};if(this.props.bounds){let{x:s,y:o}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[l,c]=Vb(this,r.x,r.y);r.x=l,r.y=c,r.slackX=this.state.slackX+(s-r.x),r.slackY=this.state.slackY+(o-r.y),a.x=r.x,a.y=r.y,a.deltaX=r.x-this.state.x,a.deltaY=r.y-this.state.y}if(this.props.onDrag(t,a)===!1)return!1;this.setState(r)},this.onDragStop=(t,n)=>{if(!this.state.dragging||this.props.onStop(t,vc(this,n))===!1)return!1;ea("Draggable: onDragStop: %j",n);let r={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){let{x:s,y:o}=this.props.position;r.x=s,r.y=o}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(ea("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=wb.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:r,defaultClassNameDragging:i,defaultClassNameDragged:s,position:o,positionOffset:l,scale:c,...d}=this.props,m={},f=null,k=!!!o||this.state.dragging,v=o||a,A={x:Wb(this)&&k?this.state.x:v.x,y:Hb(this)&&k?this.state.y:v.y};this.state.isElementSVG?f=Eb(A,l):m=Nb(A,l);let q=xo.Children.only(n),de=(0,vb.clsx)(q.props.className||"",r,{[i]:this.state.dragging,[s]:this.state.dragged});return xo.createElement(or,{...d,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},xo.cloneElement(q,{className:de,style:{...q.props.style,...m},transform:f}))}};wo.displayName="Draggable";wo.propTypes={...or.propTypes,axis:st.default.oneOf(["both","x","y","none"]),bounds:st.default.oneOfType([st.default.shape({left:st.default.number,right:st.default.number,top:st.default.number,bottom:st.default.number}),st.default.string,st.default.oneOf([!1])]),defaultClassName:st.default.string,defaultClassNameDragging:st.default.string,defaultClassNameDragged:st.default.string,defaultPosition:st.default.shape({x:st.default.number,y:st.default.number}),positionOffset:st.default.shape({x:st.default.oneOfType([st.default.number,st.default.string]),y:st.default.oneOfType([st.default.number,st.default.string])}),position:st.default.shape({x:st.default.number,y:st.default.number}),className:ci,style:ci,transform:ci};wo.defaultProps={...or.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}});var Tc=O((IO,vo)=>{"use strict";u();var Ic=Gd(),Ub=Ic.DraggableCore,Kd=Ic.default||Ic;vo.exports=Kd;vo.exports.default=Kd;vo.exports.DraggableCore=Ub});var Zd=O(Mc=>{"use strict";u();Mc.__esModule=!0;Mc.cloneElement=Zb;var Yb=Gb(Ze());function Gb(e){return e&&e.__esModule?e:{default:e}}function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function jd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jd(Object(n),!0).forEach(function(a){Kb(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jd(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Kb(e,t,n){return(t=Jb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jb(e){var t=jb(e,"string");return typeof t=="symbol"?t:t+""}function jb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zb(e,t){return t.style&&e.props.style&&(t.style=jd(jd({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),Yb.default.cloneElement(e,t)}});var Dc=O(Co=>{"use strict";u();Co.__esModule=!0;Co.resizableProps=void 0;var Te=Xb(nr()),OO=Tc();function Xb(e){return e&&e.__esModule?e:{default:e}}var RO=Co.resizableProps={axis:Te.default.oneOf(["both","x","y","none"]),className:Te.default.string,children:Te.default.element.isRequired,draggableOpts:Te.default.shape({allowAnyClick:Te.default.bool,cancel:Te.default.string,children:Te.default.node,disabled:Te.default.bool,enableUserSelectHack:Te.default.bool,offsetParent:typeof Element<"u"?Te.default.instanceOf(Element):Te.default.any,grid:Te.default.arrayOf(Te.default.number),handle:Te.default.string,nodeRef:Te.default.object,onStart:Te.default.func,onDrag:Te.default.func,onStop:Te.default.func,onMouseDown:Te.default.func,scale:Te.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t[0];return a.axis==="both"||a.axis==="y"?Te.default.number.isRequired(...t):Te.default.number(...t)},handle:Te.default.oneOfType([Te.default.node,Te.default.func]),handleSize:Te.default.arrayOf(Te.default.number),lockAspectRatio:Te.default.bool,maxConstraints:Te.default.arrayOf(Te.default.number),minConstraints:Te.default.arrayOf(Te.default.number),onResizeStop:Te.default.func,onResizeStart:Te.default.func,onResize:Te.default.func,resizeHandles:Te.default.arrayOf(Te.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Te.default.number,width:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t[0];return a.axis==="both"||a.axis==="x"?Te.default.number.isRequired(...t):Te.default.number(...t)}}});var Nc=O(So=>{"use strict";u();So.__esModule=!0;So.default=void 0;var mi=Qd(Ze()),Qb=Tc(),ew=Zd(),tw=Dc(),nw=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function Qd(e,t){if(typeof WeakMap=="function")var n=new WeakMap,a=new WeakMap;return(Qd=function(r,i){if(!i&&r&&r.__esModule)return r;var s,o,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(s=i?a:n){if(s.has(r))return s.get(r);s.set(r,l)}for(let c in r)c!=="default"&&{}.hasOwnProperty.call(r,c)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,c))&&(o.get||o.set)?s(l,c,o):l[c]=r[c]);return l})(e,t)}function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Rc.apply(null,arguments)}function aw(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xd(Object(n),!0).forEach(function(a){rw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function rw(e,t,n){return(t=iw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iw(e){var t=sw(e,"string");return typeof t=="symbol"?t:t+""}function sw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ys=class extends mi.Component{constructor(){super(...arguments),this.handleRefs={},this.lastHandleRect=null,this.slack=null,this.lastSize=null}componentWillUnmount(){this.resetData()}resetData(){this.lastHandleRect=this.slack=this.lastSize=null}runConstraints(t,n){let a=this.props,r=a.minConstraints,i=a.maxConstraints,s=a.lockAspectRatio;if(!r&&!i&&!s)return[t,n];if(s){let f=this.props.width/this.props.height,h=t-this.props.width,k=n-this.props.height;Math.abs(h)>Math.abs(k*f)?n=t/f:t=n*f}let o=t,l=n,c=this.slack||[0,0],d=c[0],m=c[1];return t+=d,n+=m,r&&(t=Math.max(r[0],t),n=Math.max(r[1],n)),i&&(t=Math.min(i[0],t),n=Math.min(i[1],n)),this.slack=[d+(o-t),m+(l-n)],[t,n]}resizeHandler(t,n){return(a,r)=>{var i,s,o,l;let c=r.node,d=r.deltaX,m=r.deltaY;t==="onResizeStart"&&this.resetData();let f=(this.props.axis==="both"||this.props.axis==="x")&&n!=="n"&&n!=="s",h=(this.props.axis==="both"||this.props.axis==="y")&&n!=="e"&&n!=="w";if(!f&&!h)return;let k=n[0],v=n[n.length-1],A=c.getBoundingClientRect();if(this.lastHandleRect!=null){if(v==="w"){let z=A.left-this.lastHandleRect.left;d+=z}if(k==="n"){let z=A.top-this.lastHandleRect.top;m+=z}}this.lastHandleRect=A,v==="w"&&(d=-d),k==="n"&&(m=-m);let q=(i=(s=this.lastSize)==null?void 0:s.width)!=null?i:this.props.width,de=(o=(l=this.lastSize)==null?void 0:l.height)!=null?o:this.props.height,pe=q+(f?d/this.props.transformScale:0),H=de+(h?m/this.props.transformScale:0);var le=this.runConstraints(pe,H);if(pe=le[0],H=le[1],t==="onResizeStop"&&this.lastSize){var R=this.lastSize;pe=R.width,H=R.height}let ce=pe!==q||H!==de;t!=="onResizeStop"&&(this.lastSize={width:pe,height:H});let ve=typeof this.props[t]=="function"?this.props[t]:null;ve&&!(t==="onResize"&&!ce)&&(a.persist==null||a.persist(),ve(a,{node:c,size:{width:pe,height:H},handle:n})),t==="onResizeStop"&&this.resetData()}}renderResizeHandle(t,n){let a=this.props.handle;if(!a)return mi.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:n});if(typeof a=="function")return a(t,n);let r=typeof a.type=="string",i=Oc({ref:n},r?{}:{handleAxis:t});return mi.cloneElement(a,i)}render(){let t=this.props,n=t.children,a=t.className,r=t.draggableOpts,i=t.width,s=t.height,o=t.handle,l=t.handleSize,c=t.lockAspectRatio,d=t.axis,m=t.minConstraints,f=t.maxConstraints,h=t.onResize,k=t.onResizeStop,v=t.onResizeStart,A=t.resizeHandles,q=t.transformScale,de=aw(t,nw);return(0,ew.cloneElement)(n,Oc(Oc({},de),{},{className:(a?a+" ":"")+"react-resizable",children:[...mi.Children.toArray(n.props.children),...A.map(pe=>{var H;let le=(H=this.handleRefs[pe])!=null?H:this.handleRefs[pe]=mi.createRef();return mi.createElement(Qb.DraggableCore,Rc({},r,{nodeRef:le,key:"resizableHandle-"+pe,onStop:this.resizeHandler("onResizeStop",pe),onStart:this.resizeHandler("onResizeStart",pe),onDrag:this.resizeHandler("onResize",pe)}),this.renderResizeHandle(pe,le))})]}))}};So.default=ys;ys.propTypes=tw.resizableProps;ys.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}});var af=O(To=>{"use strict";u();To.__esModule=!0;To.default=void 0;var Ec=nf(Ze()),ow=tf(nr()),lw=tf(Nc()),cw=Dc(),uw=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function tf(e){return e&&e.__esModule?e:{default:e}}function nf(e,t){if(typeof WeakMap=="function")var n=new WeakMap,a=new WeakMap;return(nf=function(r,i){if(!i&&r&&r.__esModule)return r;var s,o,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(s=i?a:n){if(s.has(r))return s.get(r);s.set(r,l)}for(let c in r)c!=="default"&&{}.hasOwnProperty.call(r,c)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,c))&&(o.get||o.set)?s(l,c,o):l[c]=r[c]);return l})(e,t)}function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ac.apply(null,arguments)}function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ef(Object(n),!0).forEach(function(a){mw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function mw(e,t,n){return(t=dw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dw(e){var t=fw(e,"string");return typeof t=="symbol"?t:t+""}function fw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pw(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}var Io=class extends Ec.Component{constructor(){super(...arguments),this.state={width:this.props.width,height:this.props.height,propsWidth:this.props.width,propsHeight:this.props.height},this.onResize=(t,n)=>{let a=n.size;this.props.onResize?(t.persist==null||t.persist(),this.setState(a,()=>this.props.onResize&&this.props.onResize(t,n))):this.setState(a)}}static getDerivedStateFromProps(t,n){return n.propsWidth!==t.width||n.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null}render(){let t=this.props,n=t.handle,a=t.handleSize,r=t.onResize,i=t.onResizeStart,s=t.onResizeStop,o=t.draggableOpts,l=t.minConstraints,c=t.maxConstraints,d=t.lockAspectRatio,m=t.axis,f=t.width,h=t.height,k=t.resizeHandles,v=t.style,A=t.transformScale,q=pw(t,uw);return Ec.createElement(lw.default,{axis:m,draggableOpts:o,handle:n,handleSize:a,height:this.state.height,lockAspectRatio:d,maxConstraints:c,minConstraints:l,onResizeStart:i,onResize:this.onResize,onResizeStop:s,resizeHandles:k,transformScale:A,width:this.state.width},Ec.createElement("div",Ac({},q,{style:ko(ko({},v),{},{width:this.state.width+"px",height:this.state.height+"px"})})))}};To.default=Io;Io.propTypes=ko(ko({},cw.resizableProps),{},{children:ow.default.element})});var rf=O((zO,Mo)=>{"use strict";u();Mo.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};Mo.exports.Resizable=Nc().default;Mo.exports.ResizableBox=af().default});var cf=O(lf=>{"use strict";u();Object.defineProperty(lf,"__esModule",{value:!0})});var Da=O(Oo=>{"use strict";u();Object.defineProperty(Oo,"__esModule",{value:!0});Oo.CronField=void 0;var xs,bs,di,ra,Do,uf,Fc=class Fc{constructor(t,n={rawValue:""}){Re(this,Do);Re(this,xs,!1);Re(this,bs,!1);Re(this,di,!1);Re(this,ra,[]);Rm(this,"options",{rawValue:""});if(!Array.isArray(t))throw new Error(`${this.constructor.name} Validation error, values is not an array`);if(!(t.length>0))throw new Error(`${this.constructor.name} Validation error, values contains no values`);this.options={...n,rawValue:n.rawValue??""},ne(this,ra,[...t].sort(Fc.sorter)),ne(this,di,this.options.wildcard!==void 0?this.options.wildcard:K(this,Do,uf).call(this)),ne(this,xs,this.options.rawValue.includes("L")||t.includes("L")),ne(this,bs,this.options.rawValue.includes("?")||t.includes("?"))}static get min(){throw new Error("min must be overridden")}static get max(){throw new Error("max must be overridden")}static get chars(){return Object.freeze([])}static get validChars(){return/^[?,*\dH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}static get constraints(){return{min:this.min,max:this.max,chars:this.chars,validChars:this.validChars}}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return M(this,xs)}get hasQuestionMarkChar(){return M(this,bs)}get isWildcard(){return M(this,di)}get values(){return M(this,ra)}static sorter(t,n){let a=typeof t=="number",r=typeof n=="number";return a&&r?t-n:!a&&!r?t.localeCompare(n):a?-1:1}static findNearestValueInList(t,n,a){if(a){for(let r=t.length-1;r>=0;r--)if(t[r]<n)return t[r];return null}for(let r=0;r<t.length;r++)if(t[r]>n)return t[r];return null}findNearestValue(t,n){return this.constructor.findNearestValueInList(this.values,t,n)}serialize(){return{wildcard:M(this,di),values:M(this,ra)}}validate(){let t,n=this.chars.length>0?` or chars ${this.chars.join("")}`:"",a=o=>l=>new RegExp(`^\\d{0,2}${l}$`).test(o),r=o=>(t=o,typeof o=="number"?o>=this.min&&o<=this.max:this.chars.some(a(o)));if(!M(this,ra).every(r))throw new Error(`${this.constructor.name} Validation error, got value ${t} expected range ${this.min}-${this.max}${n}`);let s=M(this,ra).find((o,l)=>M(this,ra).indexOf(o)!==l);if(s!==void 0)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${s}`)}};xs=new WeakMap,bs=new WeakMap,di=new WeakMap,ra=new WeakMap,Do=new WeakSet,uf=function(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(t,n)=>n+this.min).every(t=>M(this,ra).includes(t))};var Pc=Fc;Oo.CronField=Pc});var Wp=O(pn=>{"use strict";u();Object.defineProperty(pn,"__esModule",{value:!0});var ga=class extends Error{},Uc=class extends ga{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Yc=class extends ga{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Gc=class extends ga{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Na=class extends ga{},zo=class extends ga{constructor(t){super(`Invalid unit ${t}`)}},Nt=class extends ga{},ia=class extends ga{constructor(){super("Zone is an abstract class")}},Z="numeric",Un="short",dn="long",Lo={year:Z,month:Z,day:Z},Hf={year:Z,month:Un,day:Z},xw={year:Z,month:Un,day:Z,weekday:Un},Bf={year:Z,month:dn,day:Z},$f={year:Z,month:dn,day:Z,weekday:dn},qf={hour:Z,minute:Z},Uf={hour:Z,minute:Z,second:Z},Yf={hour:Z,minute:Z,second:Z,timeZoneName:Un},Gf={hour:Z,minute:Z,second:Z,timeZoneName:dn},Kf={hour:Z,minute:Z,hourCycle:"h23"},Jf={hour:Z,minute:Z,second:Z,hourCycle:"h23"},jf={hour:Z,minute:Z,second:Z,hourCycle:"h23",timeZoneName:Un},Zf={hour:Z,minute:Z,second:Z,hourCycle:"h23",timeZoneName:dn},Xf={year:Z,month:Z,day:Z,hour:Z,minute:Z},Qf={year:Z,month:Z,day:Z,hour:Z,minute:Z,second:Z},ep={year:Z,month:Un,day:Z,hour:Z,minute:Z},tp={year:Z,month:Un,day:Z,hour:Z,minute:Z,second:Z},bw={year:Z,month:Un,day:Z,weekday:Un,hour:Z,minute:Z},np={year:Z,month:dn,day:Z,hour:Z,minute:Z,timeZoneName:Un},ap={year:Z,month:dn,day:Z,hour:Z,minute:Z,second:Z,timeZoneName:Un},rp={year:Z,month:dn,day:Z,weekday:dn,hour:Z,minute:Z,timeZoneName:dn},ip={year:Z,month:dn,day:Z,weekday:dn,hour:Z,minute:Z,second:Z,timeZoneName:dn},Aa=class{get type(){throw new ia}get name(){throw new ia}get ianaName(){return this.name}get isUniversal(){throw new ia}offsetName(t,n){throw new ia}formatOffset(t,n){throw new ia}offset(t){throw new ia}equals(t){throw new ia}get isValid(){throw new ia}},_c=null,Is=class e extends Aa{static get instance(){return _c===null&&(_c=new e),_c}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:a}){return gp(t,n,a)}formatOffset(t,n){return ks(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}},Kc=new Map;function ww(e){let t=Kc.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Kc.set(e,t)),t}var vw={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Cw(e,t){let n=e.format(t).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,s,o,l,c,d]=a;return[s,r,i,o,l,c,d]}function Sw(e,t){let n=e.formatToParts(t),a=[];for(let r=0;r<n.length;r++){let{type:i,value:s}=n[r],o=vw[i];i==="era"?a[o]=s:ge(o)||(a[o]=parseInt(s,10))}return a}var zc=new Map,ya=class e extends Aa{static create(t){let n=zc.get(t);return n===void 0&&zc.set(t,n=new e(t)),n}static resetCache(){zc.clear(),Kc.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:a}){return gp(t,n,a,this.name)}formatOffset(t,n){return ks(this.offset(t),n)}offset(t){if(!this.valid)return NaN;let n=new Date(t);if(isNaN(n))return NaN;let a=ww(this.name),[r,i,s,o,l,c,d]=a.formatToParts?Sw(a,n):Cw(a,n);o==="BC"&&(r=-Math.abs(r)+1);let f=Uo({year:r,month:i,day:s,hour:l===24?0:l,minute:c,second:d,millisecond:0}),h=+n,k=h%1e3;return h-=k>=0?k:1e3+k,(f-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}},mf={};function kw(e,t={}){let n=JSON.stringify([e,t]),a=mf[n];return a||(a=new Intl.ListFormat(e,t),mf[n]=a),a}var Jc=new Map;function jc(e,t={}){let n=JSON.stringify([e,t]),a=Jc.get(n);return a===void 0&&(a=new Intl.DateTimeFormat(e,t),Jc.set(n,a)),a}var Zc=new Map;function Iw(e,t={}){let n=JSON.stringify([e,t]),a=Zc.get(n);return a===void 0&&(a=new Intl.NumberFormat(e,t),Zc.set(n,a)),a}var Xc=new Map;function Tw(e,t={}){let{base:n,...a}=t,r=JSON.stringify([e,a]),i=Xc.get(r);return i===void 0&&(i=new Intl.RelativeTimeFormat(e,t),Xc.set(r,i)),i}var vs=null;function Mw(){return vs||(vs=new Intl.DateTimeFormat().resolvedOptions().locale,vs)}var Qc=new Map;function sp(e){let t=Qc.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),Qc.set(e,t)),t}var eu=new Map;function Dw(e){let t=eu.get(e);if(!t){let n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...op,...t}),eu.set(e,t)}return t}function Ow(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let n=e.indexOf("-u-");if(n===-1)return[e];{let a,r;try{a=jc(e).resolvedOptions(),r=e}catch{let l=e.substring(0,n);a=jc(l).resolvedOptions(),r=l}let{numberingSystem:i,calendar:s}=a;return[r,i,s]}}function Rw(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Nw(e){let t=[];for(let n=1;n<=12;n++){let a=ct.utc(2009,n,1);t.push(e(a))}return t}function Ew(e){let t=[];for(let n=1;n<=7;n++){let a=ct.utc(2016,11,13+n);t.push(e(a))}return t}function Ro(e,t,n,a){let r=e.listingMode();return r==="error"?null:r==="en"?n(t):a(t)}function Aw(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||sp(e.locale).numberingSystem==="latn"}var tu=class{constructor(t,n,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:r,floor:i,...s}=a;if(!n||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=Iw(t,o)}}format(t){if(this.inf){let n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{let n=this.floor?Math.floor(t):du(t,3);return kt(n,this.padTo)}}},nu=class{constructor(t,n,a){this.opts=a,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&ya.create(o).valid?(r=o,this.dt=t):(r="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=jc(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:a}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},au=class{constructor(t,n,a){this.opts={style:"long",...a},!n&&pp()&&(this.rtf=Tw(t,a))}format(t,n){return this.rtf?this.rtf.format(t,n):ev(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}},op={firstDay:1,minimalDays:4,weekend:[6,7]},Xe=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,a,r,i=!1){let s=t||ot.defaultLocale,o=s||(i?"en-US":Mw()),l=n||ot.defaultNumberingSystem,c=a||ot.defaultOutputCalendar,d=iu(r)||ot.defaultWeekSettings;return new e(o,l,c,d,s)}static resetCache(){vs=null,Jc.clear(),Zc.clear(),Xc.clear(),Qc.clear(),eu.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:a,weekSettings:r}={}){return e.create(t,n,a,r)}constructor(t,n,a,r,i){let[s,o,l]=Ow(t);this.locale=s,this.numberingSystem=n||o||null,this.outputCalendar=a||l||null,this.weekSettings=r,this.intl=Rw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Aw(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,iu(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Ro(this,t,bp,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");n&=!a;let r=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";if(!this.monthsCache[i][t]){let s=a?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[i][t]=Nw(s)}return this.monthsCache[i][t]})}weekdays(t,n=!1){return Ro(this,t,Cp,()=>{let a=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=n?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=Ew(i=>this.extract(i,a,"weekday"))),this.weekdaysCache[r][t]})}meridiems(){return Ro(this,void 0,()=>Sp,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ct.utc(2016,11,13,9),ct.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Ro(this,t,kp,()=>{let n={era:t};return this.eraCache[t]||(this.eraCache[t]=[ct.utc(-40,1,1),ct.utc(2017,1,1)].map(a=>this.extract(a,n,"era"))),this.eraCache[t]})}extract(t,n,a){let r=this.dtFormatter(t,n),i=r.formatToParts(),s=i.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(t={}){return new tu(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new nu(t,this.intl,n)}relFormatter(t={}){return new au(this.intl,this.isEnglish(),t)}listFormatter(t={}){return kw(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||sp(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hp()?Dw(this.locale):op}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Lc=null,fn=class e extends Aa{static get utcInstance(){return Lc===null&&(Lc=new e(0)),Lc}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(Yo(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ks(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ks(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return ks(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}},Vo=class extends Aa{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Ra(e,t){if(ge(e)||e===null)return t;if(e instanceof Aa)return e;if(Vw(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Is.instance:n==="utc"||n==="gmt"?fn.utcInstance:fn.parseSpecifier(n)||ya.create(e)}else return Ea(e)?fn.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Vo(e)}var lu={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},df={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Pw=lu.hanidec.replace(/[\[|\]]/g,"").split("");function Fw(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(e[n].search(lu.hanidec)!==-1)t+=Pw.indexOf(e[n]);else for(let r in df){let[i,s]=df[r];a>=i&&a<=s&&(t+=a-i)}}return parseInt(t,10)}else return t}var ru=new Map;function _w(){ru.clear()}function $n({numberingSystem:e},t=""){let n=e||"latn",a=ru.get(n);a===void 0&&(a=new Map,ru.set(n,a));let r=a.get(t);return r===void 0&&(r=new RegExp(`${lu[n]}${t}`),a.set(t,r)),r}var ff=()=>Date.now(),pf="system",hf=null,gf=null,yf=null,xf=60,bf,wf=null,ot=class{static get now(){return ff}static set now(t){ff=t}static set defaultZone(t){pf=t}static get defaultZone(){return Ra(pf,Is.instance)}static get defaultLocale(){return hf}static set defaultLocale(t){hf=t}static get defaultNumberingSystem(){return gf}static set defaultNumberingSystem(t){gf=t}static get defaultOutputCalendar(){return yf}static set defaultOutputCalendar(t){yf=t}static get defaultWeekSettings(){return wf}static set defaultWeekSettings(t){wf=iu(t)}static get twoDigitCutoffYear(){return xf}static set twoDigitCutoffYear(t){xf=t%100}static get throwOnInvalid(){return bf}static set throwOnInvalid(t){bf=t}static resetCaches(){Xe.resetCache(),ya.resetCache(),ct.resetCache(),_w()}},mn=class{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},lp=[0,31,59,90,120,151,181,212,243,273,304,334],cp=[0,31,60,91,121,152,182,213,244,274,305,335];function Sn(e,t){return new mn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function cu(e,t,n){let a=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let r=a.getUTCDay();return r===0?7:r}function up(e,t,n){return n+(Ms(e)?cp:lp)[t-1]}function mp(e,t){let n=Ms(e)?cp:lp,a=n.findIndex(i=>i<t),r=t-n[a];return{month:a+1,day:r}}function uu(e,t){return(e-t+7)%7+1}function Wo(e,t=4,n=1){let{year:a,month:r,day:i}=e,s=up(a,r,i),o=uu(cu(a,r,i),n),l=Math.floor((s-o+14-t)/7),c;return l<1?(c=a-1,l=Ts(c,t,n)):l>Ts(a,t,n)?(c=a+1,l=1):c=a,{weekYear:c,weekNumber:l,weekday:o,...Go(e)}}function vf(e,t=4,n=1){let{weekYear:a,weekNumber:r,weekday:i}=e,s=uu(cu(a,1,t),n),o=gi(a),l=r*7+i-s-7+t,c;l<1?(c=a-1,l+=gi(c)):l>o?(c=a+1,l-=gi(a)):c=a;let{month:d,day:m}=mp(c,l);return{year:c,month:d,day:m,...Go(e)}}function Vc(e){let{year:t,month:n,day:a}=e,r=up(t,n,a);return{year:t,ordinal:r,...Go(e)}}function Cf(e){let{year:t,ordinal:n}=e,{month:a,day:r}=mp(t,n);return{year:t,month:a,day:r,...Go(e)}}function Sf(e,t){if(!ge(e.localWeekday)||!ge(e.localWeekNumber)||!ge(e.localWeekYear)){if(!ge(e.weekday)||!ge(e.weekNumber)||!ge(e.weekYear))throw new Na("Cannot mix locale-based week fields with ISO-based week fields");return ge(e.localWeekday)||(e.weekday=e.localWeekday),ge(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),ge(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function zw(e,t=4,n=1){let a=qo(e.weekYear),r=kn(e.weekNumber,1,Ts(e.weekYear,t,n)),i=kn(e.weekday,1,7);return a?r?i?!1:Sn("weekday",e.weekday):Sn("week",e.weekNumber):Sn("weekYear",e.weekYear)}function Lw(e){let t=qo(e.year),n=kn(e.ordinal,1,gi(e.year));return t?n?!1:Sn("ordinal",e.ordinal):Sn("year",e.year)}function dp(e){let t=qo(e.year),n=kn(e.month,1,12),a=kn(e.day,1,Ho(e.year,e.month));return t?n?a?!1:Sn("day",e.day):Sn("month",e.month):Sn("year",e.year)}function fp(e){let{hour:t,minute:n,second:a,millisecond:r}=e,i=kn(t,0,23)||t===24&&n===0&&a===0&&r===0,s=kn(n,0,59),o=kn(a,0,59),l=kn(r,0,999);return i?s?o?l?!1:Sn("millisecond",r):Sn("second",a):Sn("minute",n):Sn("hour",t)}function ge(e){return typeof e>"u"}function Ea(e){return typeof e=="number"}function qo(e){return typeof e=="number"&&e%1===0}function Vw(e){return typeof e=="string"}function Ww(e){return Object.prototype.toString.call(e)==="[object Date]"}function pp(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hp(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Hw(e){return Array.isArray(e)?e:[e]}function kf(e,t,n){if(e.length!==0)return e.reduce((a,r)=>{let i=[t(r),r];return a&&n(a[0],i[0])===a[0]?a:i},null)[1]}function Bw(e,t){return t.reduce((n,a)=>(n[a]=e[a],n),{})}function xi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function iu(e){if(e==null)return null;if(typeof e!="object")throw new Nt("Week settings must be an object");if(!kn(e.firstDay,1,7)||!kn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!kn(t,1,7)))throw new Nt("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function kn(e,t,n){return qo(e)&&e>=t&&e<=n}function $w(e,t){return e-t*Math.floor(e/t)}function kt(e,t=2){let n=e<0,a;return n?a="-"+(""+-e).padStart(t,"0"):a=(""+e).padStart(t,"0"),a}function Oa(e){if(!(ge(e)||e===null||e===""))return parseInt(e,10)}function lr(e){if(!(ge(e)||e===null||e===""))return parseFloat(e)}function mu(e){if(!(ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function du(e,t,n="round"){let a=10**t;switch(n){case"expand":return e>0?Math.ceil(e*a)/a:Math.floor(e*a)/a;case"trunc":return Math.trunc(e*a)/a;case"round":return Math.round(e*a)/a;case"floor":return Math.floor(e*a)/a;case"ceil":return Math.ceil(e*a)/a;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Ms(e){return e%4===0&&(e%100!==0||e%400===0)}function gi(e){return Ms(e)?366:365}function Ho(e,t){let n=$w(t-1,12)+1,a=e+(t-n)/12;return n===2?Ms(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Uo(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function If(e,t,n){return-uu(cu(e,1,t),n)+t-1}function Ts(e,t=4,n=1){let a=If(e,t,n),r=If(e+1,t,n);return(gi(e)-a+r)/7}function su(e){return e>99?e:e>ot.twoDigitCutoffYear?1900+e:2e3+e}function gp(e,t,n,a=null){let r=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(i.timeZone=a);let s={timeZoneName:t,...i},o=new Intl.DateTimeFormat(n,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function Yo(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let a=parseInt(t,10)||0,r=n<0||Object.is(n,-0)?-a:a;return n*60+r}function yp(e){let t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new Nt(`Invalid unit value ${e}`);return t}function Bo(e,t){let n={};for(let a in e)if(xi(e,a)){let r=e[a];if(r==null)continue;n[t(a)]=yp(r)}return n}function ks(e,t){let n=Math.trunc(Math.abs(e/60)),a=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${kt(n,2)}:${kt(a,2)}`;case"narrow":return`${r}${n}${a>0?`:${a}`:""}`;case"techie":return`${r}${kt(n,2)}${kt(a,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Go(e){return Bw(e,["hour","minute","second","millisecond"])}var qw=["January","February","March","April","May","June","July","August","September","October","November","December"],xp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Uw=["J","F","M","A","M","J","J","A","S","O","N","D"];function bp(e){switch(e){case"narrow":return[...Uw];case"short":return[...xp];case"long":return[...qw];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var wp=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],vp=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Yw=["M","T","W","T","F","S","S"];function Cp(e){switch(e){case"narrow":return[...Yw];case"short":return[...vp];case"long":return[...wp];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Sp=["AM","PM"],Gw=["Before Christ","Anno Domini"],Kw=["BC","AD"],Jw=["B","A"];function kp(e){switch(e){case"narrow":return[...Jw];case"short":return[...Kw];case"long":return[...Gw];default:return null}}function jw(e){return Sp[e.hour<12?0:1]}function Zw(e,t){return Cp(t)[e.weekday-1]}function Xw(e,t){return bp(t)[e.month-1]}function Qw(e,t){return kp(t)[e.year<0?0:1]}function ev(e,t,n="always",a=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){let m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${r[e][0]}`;case-1:return m?"yesterday":`last ${r[e][0]}`;case 0:return m?"today":`this ${r[e][0]}`}}let s=Object.is(t,-0)||t<0,o=Math.abs(t),l=o===1,c=r[e],d=a?l?c[1]:c[2]||c[1]:l?r[e][0]:e;return s?`${o} ${d} ago`:`in ${o} ${d}`}function Tf(e,t){let n="";for(let a of e)a.literal?n+=a.val:n+=t(a.val);return n}var tv={D:Lo,DD:Hf,DDD:Bf,DDDD:$f,t:qf,tt:Uf,ttt:Yf,tttt:Gf,T:Kf,TT:Jf,TTT:jf,TTTT:Zf,f:Xf,ff:ep,fff:np,ffff:rp,F:Qf,FF:tp,FFF:ap,FFFF:ip},un=class e{static create(t,n={}){return new e(t,n)}static parseFormat(t){let n=null,a="",r=!1,i=[];for(let s=0;s<t.length;s++){let o=t.charAt(s);o==="'"?((a.length>0||r)&&i.push({literal:r||/^\s+$/.test(a),val:a===""?"'":a}),n=null,a="",r=!r):r||o===n?a+=o:(a.length>0&&i.push({literal:/^\s+$/.test(a),val:a}),a=o,n=o)}return a.length>0&&i.push({literal:r||/^\s+$/.test(a),val:a}),i}static macroTokenToFormatOpts(t){return tv[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,a=void 0){if(this.opts.forceSimple)return kt(t,n);let r={...this.opts};return n>0&&(r.padTo=n),a&&(r.signDisplay=a),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){let a=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,k)=>this.loc.extract(t,h,k),s=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",o=()=>a?jw(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,k)=>a?Xw(t,h):i(k?{month:h}:{month:h,day:"numeric"},"month"),c=(h,k)=>a?Zw(t,h):i(k?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),d=h=>{let k=e.macroTokenToFormatOpts(h);return k?this.formatWithSystemDefault(t,k):h},m=h=>a?Qw(t,h):i({era:h},"era"),f=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return o();case"d":return r?i({day:"numeric"},"day"):this.num(t.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(t.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(t.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(h)}};return Tf(e.parseFormat(n),f)}formatDurationFromString(t,n){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,r=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(d,m)=>f=>{let h=r(f);if(h){let k=m.isNegativeDuration&&h!==m.largestUnit?a:1,v;return this.opts.signMode==="negativeLargestOnly"&&h!==m.largestUnit?v="never":this.opts.signMode==="all"?v="always":v="auto",this.num(d.get(h)*k,f.length,v)}else return f},s=e.parseFormat(n),o=s.reduce((d,{literal:m,val:f})=>m?d:d.concat(f),[]),l=t.shiftTo(...o.map(r).filter(d=>d)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Tf(s,i(l,c))}},Ip=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bi(...e){let t=e.reduce((n,a)=>n+a.source,"");return RegExp(`^${t}$`)}function wi(...e){return t=>e.reduce(([n,a,r],i)=>{let[s,o,l]=i(t,r);return[{...n,...s},o||a,l]},[{},null,1]).slice(0,2)}function vi(e,...t){if(e==null)return[null,null];for(let[n,a]of t){let r=n.exec(e);if(r)return a(r)}return[null,null]}function Tp(...e){return(t,n)=>{let a={},r;for(r=0;r<e.length;r++)a[e[r]]=Oa(t[n+r]);return[a,null,n+r]}}var Mp=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,nv=`(?:${Mp.source}?(?:\\[(${Ip.source})\\])?)?`,fu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Dp=RegExp(`${fu.source}${nv}`),pu=RegExp(`(?:[Tt]${Dp.source})?`),av=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,rv=/(\d{4})-?W(\d\d)(?:-?(\d))?/,iv=/(\d{4})-?(\d{3})/,sv=Tp("weekYear","weekNumber","weekDay"),ov=Tp("year","ordinal"),lv=/(\d{4})-(\d\d)-(\d\d)/,Op=RegExp(`${fu.source} ?(?:${Mp.source}|(${Ip.source}))?`),cv=RegExp(`(?: ${Op.source})?`);function yi(e,t,n){let a=e[t];return ge(a)?n:Oa(a)}function uv(e,t){return[{year:yi(e,t),month:yi(e,t+1,1),day:yi(e,t+2,1)},null,t+3]}function Ci(e,t){return[{hours:yi(e,t,0),minutes:yi(e,t+1,0),seconds:yi(e,t+2,0),milliseconds:mu(e[t+3])},null,t+4]}function Ds(e,t){let n=!e[t]&&!e[t+1],a=Yo(e[t+1],e[t+2]),r=n?null:fn.instance(a);return[{},r,t+3]}function Os(e,t){let n=e[t]?ya.create(e[t]):null;return[{},n,t+1]}var mv=RegExp(`^T?${fu.source}$`),dv=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function fv(e){let[t,n,a,r,i,s,o,l,c]=e,d=t[0]==="-",m=l&&l[0]==="-",f=(h,k=!1)=>h!==void 0&&(k||h&&d)?-h:h;return[{years:f(lr(n)),months:f(lr(a)),weeks:f(lr(r)),days:f(lr(i)),hours:f(lr(s)),minutes:f(lr(o)),seconds:f(lr(l),l==="-0"),milliseconds:f(mu(c),m)}]}var pv={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function hu(e,t,n,a,r,i,s){let o={year:t.length===2?su(Oa(t)):Oa(t),month:xp.indexOf(n)+1,day:Oa(a),hour:Oa(r),minute:Oa(i)};return s&&(o.second=Oa(s)),e&&(o.weekday=e.length>3?wp.indexOf(e)+1:vp.indexOf(e)+1),o}var hv=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function gv(e){let[,t,n,a,r,i,s,o,l,c,d,m]=e,f=hu(t,r,a,n,i,s,o),h;return l?h=pv[l]:c?h=0:h=Yo(d,m),[f,new fn(h)]}function yv(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var xv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,bv=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,wv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Mf(e){let[,t,n,a,r,i,s,o]=e;return[hu(t,r,a,n,i,s,o),fn.utcInstance]}function vv(e){let[,t,n,a,r,i,s,o]=e;return[hu(t,o,n,a,r,i,s),fn.utcInstance]}var Cv=bi(av,pu),Sv=bi(rv,pu),kv=bi(iv,pu),Iv=bi(Dp),Rp=wi(uv,Ci,Ds,Os),Tv=wi(sv,Ci,Ds,Os),Mv=wi(ov,Ci,Ds,Os),Dv=wi(Ci,Ds,Os);function Ov(e){return vi(e,[Cv,Rp],[Sv,Tv],[kv,Mv],[Iv,Dv])}function Rv(e){return vi(yv(e),[hv,gv])}function Nv(e){return vi(e,[xv,Mf],[bv,Mf],[wv,vv])}function Ev(e){return vi(e,[dv,fv])}var Av=wi(Ci);function Pv(e){return vi(e,[mv,Av])}var Fv=bi(lv,cv),_v=bi(Op),zv=wi(Ci,Ds,Os);function Lv(e){return vi(e,[Fv,Rp],[_v,zv])}var Df="Invalid Duration",Np={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Vv={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Np},Cn=146097/400,fi=146097/4800,Wv={years:{quarters:4,months:12,weeks:Cn/7,days:Cn,hours:Cn*24,minutes:Cn*24*60,seconds:Cn*24*60*60,milliseconds:Cn*24*60*60*1e3},quarters:{months:3,weeks:Cn/28,days:Cn/4,hours:Cn*24/4,minutes:Cn*24*60/4,seconds:Cn*24*60*60/4,milliseconds:Cn*24*60*60*1e3/4},months:{weeks:fi/7,days:fi,hours:fi*24,minutes:fi*24*60,seconds:fi*24*60*60,milliseconds:fi*24*60*60*1e3},...Np},ur=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Hv=ur.slice(0).reverse();function ha(e,t,n=!1){let a={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ot(a)}function Ep(e,t){var n;let a=(n=t.milliseconds)!=null?n:0;for(let r of Hv.slice(1))t[r]&&(a+=t[r]*e[r].milliseconds);return a}function Of(e,t){let n=Ep(e,t)<0?-1:1;ur.reduceRight((a,r)=>{if(ge(t[r]))return a;if(a){let i=t[a]*n,s=e[r][a],o=Math.floor(i/s);t[r]+=o*n,t[a]-=o*s*n}return r},null),ur.reduce((a,r)=>{if(ge(t[r]))return a;if(a){let i=t[a]%1;t[a]-=i,t[r]+=i*e[a][r]}return r},null)}function Rf(e){let t={};for(let[n,a]of Object.entries(e))a!==0&&(t[n]=a);return t}var Ot=class e{constructor(t){let n=t.conversionAccuracy==="longterm"||!1,a=n?Wv:Vv;t.matrix&&(a=t.matrix),this.values=t.values,this.loc=t.loc||Xe.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Nt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Bo(t,e.normalizeUnit),loc:Xe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Ea(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new Nt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){let[a]=Ev(t);return a?e.fromObject(a,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){let[a]=Pv(t);return a?e.fromObject(a,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Nt("need to specify a reason the Duration is invalid");let a=t instanceof mn?t:new mn(t,n);if(ot.throwOnInvalid)throw new Gc(a);return new e({invalid:a})}static normalizeUnit(t){let n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new zo(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){let a={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?un.create(this.loc,a).formatDurationFromString(this,t):Df}toHuman(t={}){if(!this.isValid)return Df;let n=t.showZeros!==!1,a=ur.map(r=>{let i=this.values[r];return ge(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=du(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},ct.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Ep(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t),a={};for(let r of ur)(xi(n.values,r)||xi(this.values,r))&&(a[r]=n.get(r)+this.get(r));return ha(this,{values:a},!0)}minus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;let n={};for(let a of Object.keys(this.values))n[a]=yp(t(this.values[a],a));return ha(this,{values:n},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let n={...this.values,...Bo(t,e.normalizeUnit)};return ha(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:a,matrix:r}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:r,conversionAccuracy:a};return ha(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return Of(this.matrix,t),ha(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=Rf(this.normalize().shiftToAll().toObject());return ha(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let n={},a={},r=this.toObject(),i;for(let s of ur)if(t.indexOf(s)>=0){i=s;let o=0;for(let c in a)o+=this.matrix[c][s]*a[c],a[c]=0;Ea(r[s])&&(o+=r[s]);let l=Math.trunc(o);n[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else Ea(r[s])&&(a[s]=r[s]);for(let s in a)a[s]!==0&&(n[i]+=s===i?a[s]:a[s]/this.matrix[i][s]);return Of(this.matrix,n),ha(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return ha(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;let t=Rf(this.values);return ha(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(a,r){return a===void 0||a===0?r===void 0||r===0:a===r}for(let a of ur)if(!n(this.values[a],t.values[a]))return!1;return!0}},pi="Invalid Interval";function Bv(e,t){return!e||!e.isValid?dr.invalid("missing or invalid start"):!t||!t.isValid?dr.invalid("missing or invalid end"):t<e?dr.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var dr=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Nt("need to specify a reason the Interval is invalid");let a=t instanceof mn?t:new mn(t,n);if(ot.throwOnInvalid)throw new Yc(a);return new e({invalid:a})}static fromDateTimes(t,n){let a=ws(t),r=ws(n),i=Bv(a,r);return i??new e({start:a,end:r})}static after(t,n){let a=Ot.fromDurationLike(n),r=ws(t);return e.fromDateTimes(r,r.plus(a))}static before(t,n){let a=Ot.fromDurationLike(n),r=ws(t);return e.fromDateTimes(r.minus(a),r)}static fromISO(t,n){let[a,r]=(t||"").split("/",2);if(a&&r){let i,s;try{i=ct.fromISO(a,n),s=i.isValid}catch{s=!1}let o,l;try{o=ct.fromISO(r,n),l=o.isValid}catch{l=!1}if(s&&l)return e.fromDateTimes(i,o);if(s){let c=Ot.fromISO(r,n);if(c.isValid)return e.after(i,c)}else if(l){let c=Ot.fromISO(a,n);if(c.isValid)return e.before(o,c)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;let a=this.start.startOf(t,n),r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:a.locale}):r=this.end,r=r.startOf(t,n),Math.floor(r.diff(a,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];let n=t.map(ws).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:r}=this,i=0;for(;r<this.e;){let s=n[i]||this.e,o=+s>+this.e?this.e:s;a.push(e.fromDateTimes(r,o)),r=o,i+=1}return a}splitBy(t){let n=Ot.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:a}=this,r=1,i,s=[];for(;a<this.e;){let o=this.start.plus(n.mapUnits(l=>l*r));i=+o>+this.e?this.e:o,s.push(e.fromDateTimes(a,i)),a=i,r+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let n=this.s>t.s?this.s:t.s,a=this.e<t.e?this.e:t.e;return n>=a?null:e.fromDateTimes(n,a)}union(t){if(!this.isValid)return this;let n=this.s<t.s?this.s:t.s,a=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,a)}static merge(t){let[n,a]=t.sort((r,i)=>r.s-i.s).reduce(([r,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[r,i.union(s)]:[r.concat([i]),s]:[r,s],[[],null]);return a&&n.push(a),n}static xor(t){let n=null,a=0,r=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...i),o=s.sort((l,c)=>l.time-c.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?n=l.time:(n&&+n!=+l.time&&r.push(e.fromDateTimes(n,l.time)),n=null);return e.merge(r)}difference(...t){return e.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:pi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Lo,n={}){return this.isValid?un.create(this.s.loc.clone(n),t).formatInterval(this):pi}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:pi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:pi}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:pi}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:pi}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ot.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},mr=class{static hasDST(t=ot.defaultZone){let n=ct.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ya.isValidZone(t)}static normalizeZone(t){return Ra(t,ot.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Xe.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Xe.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Xe.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Xe.create(n,a,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Xe.create(n,a,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null}={}){return(r||Xe.create(n,a,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null}={}){return(r||Xe.create(n,a,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Xe.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Xe.create(n,null,"gregory").eras(t)}static features(){return{relative:pp(),localeWeek:hp()}}};function Nf(e,t){let n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=n(t)-n(e);return Math.floor(Ot.fromMillis(a).as("days"))}function $v(e,t,n){let a=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let d=Nf(l,c);return(d-d%7)/7}],["days",Nf]],r={},i=e,s,o;for(let[l,c]of a)n.indexOf(l)>=0&&(s=l,r[l]=c(e,t),o=i.plus(r),o>t?(r[l]--,e=i.plus(r),e>t&&(o=e,r[l]--,e=i.plus(r))):e=o);return[e,r,o,s]}function qv(e,t,n,a){let[r,i,s,o]=$v(e,t,n),l=t-r,c=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(s<t&&(s=r.plus({[o]:1})),s!==r&&(i[o]=(i[o]||0)+l/(s-r)));let d=Ot.fromObject(i,a);return c.length>0?Ot.fromMillis(l,a).shiftTo(...c).plus(d):d}var Uv="missing Intl.DateTimeFormat.formatToParts support";function He(e,t=n=>n){return{regex:e,deser:([n])=>t(Fw(n))}}var Yv="\xA0",Ap=`[ ${Yv}]`,Pp=new RegExp(Ap,"g");function Gv(e){return e.replace(/\./g,"\\.?").replace(Pp,Ap)}function Ef(e){return e.replace(/\./g,"").replace(Pp," ").toLowerCase()}function qn(e,t){return e===null?null:{regex:RegExp(e.map(Gv).join("|")),deser:([n])=>e.findIndex(a=>Ef(n)===Ef(a))+t}}function Af(e,t){return{regex:e,deser:([,n,a])=>Yo(n,a),groups:t}}function No(e){return{regex:e,deser:([t])=>t}}function Kv(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Jv(e,t){let n=$n(t),a=$n(t,"{2}"),r=$n(t,"{3}"),i=$n(t,"{4}"),s=$n(t,"{6}"),o=$n(t,"{1,2}"),l=$n(t,"{1,3}"),c=$n(t,"{1,6}"),d=$n(t,"{1,9}"),m=$n(t,"{2,4}"),f=$n(t,"{4,6}"),h=A=>({regex:RegExp(Kv(A.val)),deser:([q])=>q,literal:!0}),v=(A=>{if(e.literal)return h(A);switch(A.val){case"G":return qn(t.eras("short"),0);case"GG":return qn(t.eras("long"),0);case"y":return He(c);case"yy":return He(m,su);case"yyyy":return He(i);case"yyyyy":return He(f);case"yyyyyy":return He(s);case"M":return He(o);case"MM":return He(a);case"MMM":return qn(t.months("short",!0),1);case"MMMM":return qn(t.months("long",!0),1);case"L":return He(o);case"LL":return He(a);case"LLL":return qn(t.months("short",!1),1);case"LLLL":return qn(t.months("long",!1),1);case"d":return He(o);case"dd":return He(a);case"o":return He(l);case"ooo":return He(r);case"HH":return He(a);case"H":return He(o);case"hh":return He(a);case"h":return He(o);case"mm":return He(a);case"m":return He(o);case"q":return He(o);case"qq":return He(a);case"s":return He(o);case"ss":return He(a);case"S":return He(l);case"SSS":return He(r);case"u":return No(d);case"uu":return No(o);case"uuu":return He(n);case"a":return qn(t.meridiems(),0);case"kkkk":return He(i);case"kk":return He(m,su);case"W":return He(o);case"WW":return He(a);case"E":case"c":return He(n);case"EEE":return qn(t.weekdays("short",!1),1);case"EEEE":return qn(t.weekdays("long",!1),1);case"ccc":return qn(t.weekdays("short",!0),1);case"cccc":return qn(t.weekdays("long",!0),1);case"Z":case"ZZ":return Af(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return Af(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return No(/[a-z_+-/]{1,256}?/i);case" ":return No(/[^\S\n\r]/);default:return h(A)}})(e)||{invalidReason:Uv};return v.token=e,v}var jv={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Zv(e,t,n){let{type:a,value:r}=e;if(a==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let i=t[a],s=a;a==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let o=jv[s];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function Xv(e){return[`^${e.map(n=>n.regex).reduce((n,a)=>`${n}(${a.source})`,"")}$`,e]}function Qv(e,t,n){let a=e.match(t);if(a){let r={},i=1;for(let s in n)if(xi(n,s)){let o=n[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(a.slice(i,i+l))),i+=l}return[a,r]}else return[a,{}]}function eC(e){let t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},n=null,a;return ge(e.z)||(n=ya.create(e.z)),ge(e.Z)||(n||(n=new fn(e.Z)),a=e.Z),ge(e.q)||(e.M=(e.q-1)*3+1),ge(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),ge(e.u)||(e.S=mu(e.u)),[Object.keys(e).reduce((i,s)=>{let o=t(s);return o&&(i[o]=e[s]),i},{}),n,a]}var Wc=null;function tC(){return Wc||(Wc=ct.fromMillis(1555555555555)),Wc}function nC(e,t){if(e.literal)return e;let n=un.macroTokenToFormatOpts(e.val),a=zp(n,t);return a==null||a.includes(void 0)?e:a}function Fp(e,t){return Array.prototype.concat(...e.map(n=>nC(n,t)))}var $o=class{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Fp(un.parseFormat(n),t),this.units=this.tokens.map(a=>Jv(a,t)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,r]=Xv(this.units);this.regex=RegExp(a,"i"),this.handlers=r}}explainFromTokens(t){if(this.isValid){let[n,a]=Qv(t,this.regex,this.handlers),[r,i,s]=a?eC(a):[null,null,void 0];if(xi(a,"a")&&xi(a,"H"))throw new Na("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:a,result:r,zone:i,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function _p(e,t,n){return new $o(e,n).explainFromTokens(t)}function aC(e,t,n){let{result:a,zone:r,specificOffset:i,invalidReason:s}=_p(e,t,n);return[a,r,i,s]}function zp(e,t){if(!e)return null;let a=un.create(t,e).dtFormatter(tC()),r=a.formatToParts(),i=a.resolvedOptions();return r.map(s=>Zv(s,e,i))}var Hc="Invalid DateTime",Pf=864e13;function Cs(e){return new mn("unsupported zone",`the zone "${e.name}" is not supported`)}function Bc(e){return e.weekData===null&&(e.weekData=Wo(e.c)),e.weekData}function $c(e){return e.localWeekData===null&&(e.localWeekData=Wo(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function cr(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ct({...n,...t,old:n})}function Lp(e,t,n){let a=e-t*60*1e3,r=n.offset(a);if(t===r)return[a,t];a-=(r-t)*60*1e3;let i=n.offset(a);return r===i?[a,r]:[e-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Eo(e,t){e+=t*60*1e3;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Po(e,t,n){return Lp(Uo(e),t,n)}function Ff(e,t){let n=e.o,a=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:a,month:r,day:Math.min(e.c.day,Ho(a,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=Ot.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=Uo(i),[l,c]=Lp(o,n,e.zone);return s!==0&&(l+=s,c=e.zone.offset(l)),{ts:l,o:c}}function hi(e,t,n,a,r,i){let{setZone:s,zone:o}=n;if(e&&Object.keys(e).length!==0||t){let l=t||o,c=ct.fromObject(e,{...n,zone:l,specificOffset:i});return s?c:c.setZone(o)}else return ct.invalid(new mn("unparsable",`the input "${r}" can't be parsed as ${a}`))}function Ao(e,t,n=!0){return e.isValid?un.create(Xe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function qc(e,t,n){let a=e.c.year>9999||e.c.year<0,r="";if(a&&e.c.year>=0&&(r+="+"),r+=kt(e.c.year,a?6:4),n==="year")return r;if(t){if(r+="-",r+=kt(e.c.month),n==="month")return r;r+="-"}else if(r+=kt(e.c.month),n==="month")return r;return r+=kt(e.c.day),r}function _f(e,t,n,a,r,i,s){let o=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=kt(e.c.hour),s==="hour")break;if(t){if(l+=":",l+=kt(e.c.minute),s==="minute")break;o&&(l+=":",l+=kt(e.c.second))}else{if(l+=kt(e.c.minute),s==="minute")break;o&&(l+=kt(e.c.second))}if(s==="second")break;o&&(!a||e.c.millisecond!==0)&&(l+=".",l+=kt(e.c.millisecond,3))}return r&&(e.isOffsetFixed&&e.offset===0&&!i?l+="Z":e.o<0?(l+="-",l+=kt(Math.trunc(-e.o/60)),l+=":",l+=kt(Math.trunc(-e.o%60))):(l+="+",l+=kt(Math.trunc(e.o/60)),l+=":",l+=kt(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}var Vp={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rC={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},iC={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Fo=["year","month","day","hour","minute","second","millisecond"],sC=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],oC=["year","ordinal","hour","minute","second","millisecond"];function _o(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new zo(e);return t}function zf(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return _o(e)}}function lC(e){if(Ss===void 0&&(Ss=ot.now()),e.type!=="iana")return e.offset(Ss);let t=e.name,n=ou.get(t);return n===void 0&&(n=e.offset(Ss),ou.set(t,n)),n}function Lf(e,t){let n=Ra(t.zone,ot.defaultZone);if(!n.isValid)return ct.invalid(Cs(n));let a=Xe.fromObject(t),r,i;if(ge(e.year))r=ot.now();else{for(let l of Fo)ge(e[l])&&(e[l]=Vp[l]);let s=dp(e)||fp(e);if(s)return ct.invalid(s);let o=lC(n);[r,i]=Po(e,o,n)}return new ct({ts:r,zone:n,loc:a,o:i})}function Vf(e,t,n){let a=ge(n.round)?!0:n.round,r=ge(n.rounding)?"trunc":n.rounding,i=(o,l)=>(o=du(o,a||n.calendary?0:2,n.calendary?"round":r),t.loc.clone(n).relFormatter(n).format(o,l)),s=o=>n.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(n.unit)return i(s(n.unit),n.unit);for(let o of n.units){let l=s(o);if(Math.abs(l)>=1)return i(l,o)}return i(e>t?-0:0,n.units[n.units.length-1])}function Wf(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}var Ss,ou=new Map,ct=class e{constructor(t){let n=t.zone||ot.defaultZone,a=t.invalid||(Number.isNaN(t.ts)?new mn("invalid input"):null)||(n.isValid?null:Cs(n));this.ts=ge(t.ts)?ot.now():t.ts;let r=null,i=null;if(!a)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[r,i]=[t.old.c,t.old.o];else{let o=Ea(t.o)&&!t.old?t.o:n.offset(this.ts);r=Eo(this.ts,o),a=Number.isNaN(r.year)?new mn("invalid input"):null,r=a?null:r,i=a?null:o}this._zone=n,this.loc=t.loc||Xe.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,n]=Wf(arguments),[a,r,i,s,o,l,c]=n;return Lf({year:a,month:r,day:i,hour:s,minute:o,second:l,millisecond:c},t)}static utc(){let[t,n]=Wf(arguments),[a,r,i,s,o,l,c]=n;return t.zone=fn.utcInstance,Lf({year:a,month:r,day:i,hour:s,minute:o,second:l,millisecond:c},t)}static fromJSDate(t,n={}){let a=Ww(t)?t.valueOf():NaN;if(Number.isNaN(a))return e.invalid("invalid input");let r=Ra(n.zone,ot.defaultZone);return r.isValid?new e({ts:a,zone:r,loc:Xe.fromObject(n)}):e.invalid(Cs(r))}static fromMillis(t,n={}){if(Ea(t))return t<-Pf||t>Pf?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ra(n.zone,ot.defaultZone),loc:Xe.fromObject(n)});throw new Nt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Ea(t))return new e({ts:t*1e3,zone:Ra(n.zone,ot.defaultZone),loc:Xe.fromObject(n)});throw new Nt("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};let a=Ra(n.zone,ot.defaultZone);if(!a.isValid)return e.invalid(Cs(a));let r=Xe.fromObject(n),i=Bo(t,zf),{minDaysInFirstWeek:s,startOfWeek:o}=Sf(i,r),l=ot.now(),c=ge(n.specificOffset)?a.offset(l):n.specificOffset,d=!ge(i.ordinal),m=!ge(i.year),f=!ge(i.month)||!ge(i.day),h=m||f,k=i.weekYear||i.weekNumber;if((h||d)&&k)throw new Na("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&d)throw new Na("Can't mix ordinal dates with month/day");let v=k||i.weekday&&!h,A,q,de=Eo(l,c);v?(A=sC,q=rC,de=Wo(de,s,o)):d?(A=oC,q=iC,de=Vc(de)):(A=Fo,q=Vp);let pe=!1;for(let z of A){let B=i[z];ge(B)?pe?i[z]=q[z]:i[z]=de[z]:pe=!0}let H=v?zw(i,s,o):d?Lw(i):dp(i),le=H||fp(i);if(le)return e.invalid(le);let R=v?vf(i,s,o):d?Cf(i):i,[ce,ve]=Po(R,c,a),ke=new e({ts:ce,zone:a,o:ve,loc:r});return i.weekday&&h&&t.weekday!==ke.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${ke.toISO()}`):ke.isValid?ke:e.invalid(ke.invalid)}static fromISO(t,n={}){let[a,r]=Ov(t);return hi(a,r,n,"ISO 8601",t)}static fromRFC2822(t,n={}){let[a,r]=Rv(t);return hi(a,r,n,"RFC 2822",t)}static fromHTTP(t,n={}){let[a,r]=Nv(t);return hi(a,r,n,"HTTP",n)}static fromFormat(t,n,a={}){if(ge(t)||ge(n))throw new Nt("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:i=null}=a,s=Xe.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[o,l,c,d]=aC(s,t,n);return d?e.invalid(d):hi(o,l,a,`format ${n}`,t,c)}static fromString(t,n,a={}){return e.fromFormat(t,n,a)}static fromSQL(t,n={}){let[a,r]=Lv(t);return hi(a,r,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Nt("need to specify a reason the DateTime is invalid");let a=t instanceof mn?t:new mn(t,n);if(ot.throwOnInvalid)throw new Uc(a);return new e({invalid:a})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){let a=zp(t,Xe.fromObject(n));return a?a.map(r=>r?r.val:null).join(""):null}static expandFormat(t,n={}){return Fp(un.parseFormat(t),Xe.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Ss=void 0,ou.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Bc(this).weekYear:NaN}get weekNumber(){return this.isValid?Bc(this).weekNumber:NaN}get weekday(){return this.isValid?Bc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?$c(this).weekday:NaN}get localWeekNumber(){return this.isValid?$c(this).weekNumber:NaN}get localWeekYear(){return this.isValid?$c(this).weekYear:NaN}get ordinal(){return this.isValid?Vc(this.c).ordinal:NaN}get monthShort(){return this.isValid?mr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?mr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?mr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?mr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,n=6e4,a=Uo(this.c),r=this.zone.offset(a-t),i=this.zone.offset(a+t),s=this.zone.offset(a-r*n),o=this.zone.offset(a-i*n);if(s===o)return[this];let l=a-s*n,c=a-o*n,d=Eo(l,s),m=Eo(c,o);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[cr(this,{ts:l}),cr(this,{ts:c})]:[this]}get isInLeapYear(){return Ms(this.year)}get daysInMonth(){return Ho(this.year,this.month)}get daysInYear(){return this.isValid?gi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ts(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ts(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:n,numberingSystem:a,calendar:r}=un.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:a,outputCalendar:r}}toUTC(t=0,n={}){return this.setZone(fn.instance(t),n)}toLocal(){return this.setZone(ot.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:a=!1}={}){if(t=Ra(t,ot.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(n||a){let i=t.offset(this.ts),s=this.toObject();[r]=Po(s,i,t)}return cr(this,{ts:r,zone:t})}else return e.invalid(Cs(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:a}={}){let r=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:a});return cr(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let n=Bo(t,zf),{minDaysInFirstWeek:a,startOfWeek:r}=Sf(n,this.loc),i=!ge(n.weekYear)||!ge(n.weekNumber)||!ge(n.weekday),s=!ge(n.ordinal),o=!ge(n.year),l=!ge(n.month)||!ge(n.day),c=o||l,d=n.weekYear||n.weekNumber;if((c||s)&&d)throw new Na("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Na("Can't mix ordinal dates with month/day");let m;i?m=vf({...Wo(this.c,a,r),...n},a,r):ge(n.ordinal)?(m={...this.toObject(),...n},ge(n.day)&&(m.day=Math.min(Ho(m.year,m.month),m.day))):m=Cf({...Vc(this.c),...n});let[f,h]=Po(m,this.o,this.zone);return cr(this,{ts:f,o:h})}plus(t){if(!this.isValid)return this;let n=Ot.fromDurationLike(t);return cr(this,Ff(this,n))}minus(t){if(!this.isValid)return this;let n=Ot.fromDurationLike(t).negate();return cr(this,Ff(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;let a={},r=Ot.normalizeUnit(t);switch(r){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(r==="weeks")if(n){let i=this.loc.getStartOfWeek(),{weekday:s}=this;s<i&&(a.weekNumber=this.weekNumber-1),a.weekday=i}else a.weekday=1;if(r==="quarters"){let i=Math.ceil(this.month/3);a.month=(i-1)*3+1}return this.set(a)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?un.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Hc}toLocaleString(t=Lo,n={}){return this.isValid?un.create(this.loc.clone(n),t).formatDateTime(this):Hc}toLocaleParts(t={}){return this.isValid?un.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:a=!1,includeOffset:r=!0,extendedZone:i=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=_o(s);let o=t==="extended",l=qc(this,o,s);return Fo.indexOf(s)>=3&&(l+="T"),l+=_f(this,o,n,a,r,i,s),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?qc(this,t==="extended",_o(n)):null}toISOWeekDate(){return Ao(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:a=!0,includePrefix:r=!1,extendedZone:i=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=_o(o),(r&&Fo.indexOf(o)>=3?"T":"")+_f(this,s==="extended",n,t,a,i,o)):null}toRFC2822(){return Ao(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ao(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?qc(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:a=!0}={}){let r="HH:mm:ss.SSS";return(n||t)&&(a&&(r+=" "),n?r+="z":t&&(r+="ZZ")),Ao(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Hc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",a={}){if(!this.isValid||!t.isValid)return Ot.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...a},i=Hw(n).map(Ot.normalizeUnit),s=t.valueOf()>this.valueOf(),o=s?this:t,l=s?t:this,c=qv(o,l,i,r);return s?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(e.now(),t,n)}until(t){return this.isValid?dr.fromDateTimes(this,t):this}hasSame(t,n,a){if(!this.isValid)return!1;let r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,a)<=r&&r<=i.endOf(n,a)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let n=t.base||e.fromObject({},{zone:this.zone}),a=t.padding?this<n?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(r=t.unit,i=void 0),Vf(n,this.plus(a),{...t,numeric:"always",units:r,unit:i})}toRelativeCalendar(t={}){return this.isValid?Vf(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new Nt("min requires all arguments be DateTimes");return kf(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new Nt("max requires all arguments be DateTimes");return kf(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,a={}){let{locale:r=null,numberingSystem:i=null}=a,s=Xe.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return _p(s,t,n)}static fromStringExplain(t,n,a={}){return e.fromFormatExplain(t,n,a)}static buildFormatParser(t,n={}){let{locale:a=null,numberingSystem:r=null}=n,i=Xe.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0});return new $o(i,t)}static fromFormatParser(t,n,a={}){if(ge(t)||ge(n))throw new Nt("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:i=null}=a,s=Xe.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!s.equals(n.locale))throw new Nt(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${n.locale}`);let{result:o,zone:l,specificOffset:c,invalidReason:d}=n.explainFromTokens(t);return d?e.invalid(d):hi(o,l,a,`format ${n.format}`,t,c)}static get DATE_SHORT(){return Lo}static get DATE_MED(){return Hf}static get DATE_MED_WITH_WEEKDAY(){return xw}static get DATE_FULL(){return Bf}static get DATE_HUGE(){return $f}static get TIME_SIMPLE(){return qf}static get TIME_WITH_SECONDS(){return Uf}static get TIME_WITH_SHORT_OFFSET(){return Yf}static get TIME_WITH_LONG_OFFSET(){return Gf}static get TIME_24_SIMPLE(){return Kf}static get TIME_24_WITH_SECONDS(){return Jf}static get TIME_24_WITH_SHORT_OFFSET(){return jf}static get TIME_24_WITH_LONG_OFFSET(){return Zf}static get DATETIME_SHORT(){return Xf}static get DATETIME_SHORT_WITH_SECONDS(){return Qf}static get DATETIME_MED(){return ep}static get DATETIME_MED_WITH_SECONDS(){return tp}static get DATETIME_MED_WITH_WEEKDAY(){return bw}static get DATETIME_FULL(){return np}static get DATETIME_FULL_WITH_SECONDS(){return ap}static get DATETIME_HUGE(){return rp}static get DATETIME_HUGE_WITH_SECONDS(){return ip}};function ws(e){if(ct.isDateTime(e))return e;if(e&&e.valueOf&&Ea(e.valueOf()))return ct.fromJSDate(e);if(e&&typeof e=="object")return ct.fromObject(e);throw new Nt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var cC="3.7.2";pn.DateTime=ct;pn.Duration=Ot;pn.FixedOffsetZone=fn;pn.IANAZone=ya;pn.Info=mr;pn.Interval=dr;pn.InvalidZone=Vo;pn.Settings=ot;pn.SystemZone=Is;pn.VERSION=cC;pn.Zone=Aa});var Jo=O(jt=>{"use strict";u();Object.defineProperty(jt,"__esModule",{value:!0});jt.CronDate=jt.DAYS_IN_MONTH=jt.DateMathOp=jt.TimeUnit=void 0;var fr=Wp(),$t;(function(e){e.Second="Second",e.Minute="Minute",e.Hour="Hour",e.Day="Day",e.Month="Month",e.Year="Year"})($t||(jt.TimeUnit=$t={}));var Rs;(function(e){e.Add="Add",e.Subtract="Subtract"})(Rs||(jt.DateMathOp=Rs={}));jt.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);var G,Fa,_a,pr,Ns,gu,sa,Pa,Si=class Si{constructor(t,n){Re(this,sa);Re(this,G);Re(this,Fa,null);Re(this,_a,null);Re(this,pr,null);let a={zone:n};if(t?t instanceof Si?(ne(this,G,M(t,G)),ne(this,Fa,M(t,Fa)),ne(this,_a,M(t,_a)),ne(this,pr,M(t,pr))):t instanceof Date?ne(this,G,fr.DateTime.fromJSDate(t,a)):typeof t=="number"?ne(this,G,fr.DateTime.fromMillis(t,a)):(ne(this,G,fr.DateTime.fromISO(t,a)),M(this,G).isValid||ne(this,G,fr.DateTime.fromRFC2822(t,a)),M(this,G).isValid||ne(this,G,fr.DateTime.fromSQL(t,a)),M(this,G).isValid||ne(this,G,fr.DateTime.fromFormat(t,"EEE, d MMM yyyy HH:mm:ss",a))):ne(this,G,fr.DateTime.local()),!M(this,G).isValid)throw new Error(`CronDate: unhandled timestamp: ${t}`);n&&n!==M(this,G).zoneName&&ne(this,G,M(this,G).setZone(n))}get dstStart(){return M(this,Fa)}get dstStartLandingHour(){return M(this,_a)}clearDstStart(){ne(this,Fa,null),ne(this,_a,null)}get dstEnd(){return M(this,pr)}set dstEnd(t){ne(this,pr,t)}addYear(){ne(this,G,M(this,G).plus({years:1}))}addMonth(){ne(this,G,M(this,G).plus({months:1}).startOf("month"))}addDay(){ne(this,G,M(this,G).plus({days:1}).startOf("day"))}addHour(){ne(this,G,M(this,G).plus({hours:1}).startOf("hour"))}addMinute(){ne(this,G,M(this,G).plus({minutes:1}).startOf("minute"))}addSecond(){ne(this,G,M(this,G).plus({seconds:1}))}subtractYear(){ne(this,G,M(this,G).minus({years:1}))}subtractMonth(){ne(this,G,M(this,G).minus({months:1}).endOf("month").startOf("second"))}subtractDay(){ne(this,G,M(this,G).minus({days:1}).endOf("day").startOf("second"))}subtractHour(){ne(this,G,M(this,G).minus({hours:1}).endOf("hour").startOf("second"))}subtractMinute(){ne(this,G,M(this,G).minus({minutes:1}).endOf("minute").startOf("second"))}subtractSecond(){ne(this,G,M(this,G).minus({seconds:1}))}addUnit(t){switch(t){case $t.Year:return this.addYear();case $t.Month:return this.addMonth();case $t.Day:return this.addDay();case $t.Hour:return this.addHour();case $t.Minute:return this.addMinute();case $t.Second:return this.addSecond()}}subtractUnit(t){switch(t){case $t.Year:return this.subtractYear();case $t.Month:return this.subtractMonth();case $t.Day:return this.subtractDay();case $t.Hour:return this.subtractHour();case $t.Minute:return this.subtractMinute();case $t.Second:return this.subtractSecond()}}invokeDateOperation(t,n){if(t===Rs.Add){this.addUnit(n);return}if(t===Rs.Subtract){this.subtractUnit(n);return}throw new Error(`Invalid verb: ${t}`)}getDate(){return M(this,G).day}getFullYear(){return M(this,G).year}getDay(){let t=M(this,G).weekday;return t===7?0:t}getMonth(){return M(this,G).month-1}getHours(){return M(this,G).hour}getMinutes(){return M(this,G).minute}getSeconds(){return M(this,G).second}getMilliseconds(){return M(this,G).millisecond}getUTCOffset(){return M(this,G).offset}setStartOfDay(){ne(this,G,M(this,G).startOf("day"))}setEndOfDay(){ne(this,G,M(this,G).endOf("day"))}getTime(){return M(this,G).valueOf()}getUTCDate(){return K(this,sa,Pa).call(this).day}getUTCFullYear(){return K(this,sa,Pa).call(this).year}getUTCDay(){let t=K(this,sa,Pa).call(this).weekday;return t===7?0:t}getUTCMonth(){return K(this,sa,Pa).call(this).month-1}getUTCHours(){return K(this,sa,Pa).call(this).hour}getUTCMinutes(){return K(this,sa,Pa).call(this).minute}getUTCSeconds(){return K(this,sa,Pa).call(this).second}toISOString(){return M(this,G).toUTC().toISO()}toJSON(){return M(this,G).toJSON()}setDate(t){ne(this,G,M(this,G).set({day:t}))}setFullYear(t){ne(this,G,M(this,G).set({year:t}))}setDay(t){ne(this,G,M(this,G).set({weekday:t}))}setMonth(t){ne(this,G,M(this,G).set({month:t+1}))}setHours(t){ne(this,G,M(this,G).set({hour:t}))}setMinutes(t){ne(this,G,M(this,G).set({minute:t}))}setSeconds(t){ne(this,G,M(this,G).set({second:t}))}setMilliseconds(t){ne(this,G,M(this,G).set({millisecond:t}))}toString(){return this.toDate().toString()}toDate(){return M(this,G).toJSDate()}isLastDayOfMonth(){var a;let{day:t,month:n}=M(this,G);if(n===2){let r=K(a=Si,Ns,gu).call(a,M(this,G).year);return t===jt.DAYS_IN_MONTH[n-1]-(r?0:1)}return t===jt.DAYS_IN_MONTH[n-1]}isLastWeekdayOfMonth(){var r;let{day:t,month:n}=M(this,G),a;return n===2?a=jt.DAYS_IN_MONTH[n-1]-(K(r=Si,Ns,gu).call(r,M(this,G).year)?0:1):a=jt.DAYS_IN_MONTH[n-1],t>a-7}applyDateOperation(t,n,a){if(n===$t.Month||n===$t.Day){this.invokeDateOperation(t,n);return}let r=this.getHours(),i=this.getUTCOffset();this.invokeDateOperation(t,n);let s=this.getHours(),o=(s-r+24)%24;t===Rs.Add&&this.getUTCOffset()>i&&o>=2?a!==24&&(ne(this,Fa,(r+1)%24),ne(this,_a,s)):o===0&&this.getMinutes()===0&&this.getSeconds()===0&&a!==24&&(this.dstEnd=s)}};G=new WeakMap,Fa=new WeakMap,_a=new WeakMap,pr=new WeakMap,Ns=new WeakSet,gu=function(t){return t%4===0&&t%100!==0||t%400===0},sa=new WeakSet,Pa=function(){return M(this,G).toUTC()},Re(Si,Ns);var Ko=Si;jt.CronDate=Ko;jt.default=Ko});var xu=O(jo=>{"use strict";u();Object.defineProperty(jo,"__esModule",{value:!0});jo.CronMonth=void 0;var uC=Jo(),mC=Da(),dC=1,fC=12,pC=Object.freeze([]),yu=class extends mC.CronField{static get min(){return dC}static get max(){return fC}static get chars(){return pC}static get daysInMonth(){return uC.DAYS_IN_MONTH}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};jo.CronMonth=yu});var Hp=O(Zo=>{"use strict";u();Object.defineProperty(Zo,"__esModule",{value:!0});Zo.CronDayOfMonth=void 0;var hC=Da(),gC=xu(),yC=1,xC=31,bC=Object.freeze(["L"]),bu=class e extends hC.CronField{static fromMonth(t,n,a){if(t.length!==1)return new e(n,a);let r=gC.CronMonth.daysInMonth[t[0]-1],i=n.filter(s=>typeof s!="number"||s<=r);return new e(i.length>0?i:n,a)}static get min(){return yC}static get max(){return xC}static get chars(){return bC}static get validChars(){return/^[?,*\dLH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};Zo.CronDayOfMonth=bu});var Bp=O(Xo=>{"use strict";u();Object.defineProperty(Xo,"__esModule",{value:!0});Xo.CronDayOfWeek=void 0;var wC=Da(),vC=0,CC=7,SC=Object.freeze(["L"]),wu=class extends wC.CronField{static get min(){return vC}static get max(){return CC}static get chars(){return SC}static get validChars(){return/^[?,*\dLH#/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(t,n){if(super(t,n),this.validate(),this.values.some(a=>a==="L"))throw new Error(`${this.constructor.name} Validation error, unexpected standalone L`)}get values(){return super.values}get nthDay(){return this.options.nthDayOfWeek??0}};Xo.CronDayOfWeek=wu});var $p=O(Qo=>{"use strict";u();Object.defineProperty(Qo,"__esModule",{value:!0});Qo.CronHour=void 0;var kC=Da(),IC=0,TC=23,MC=Object.freeze([]),vu=class extends kC.CronField{static get min(){return IC}static get max(){return TC}static get chars(){return MC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};Qo.CronHour=vu});var qp=O(el=>{"use strict";u();Object.defineProperty(el,"__esModule",{value:!0});el.CronMinute=void 0;var DC=Da(),OC=0,RC=59,NC=Object.freeze([]),Cu=class extends DC.CronField{static get min(){return OC}static get max(){return RC}static get chars(){return NC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};el.CronMinute=Cu});var Up=O(tl=>{"use strict";u();Object.defineProperty(tl,"__esModule",{value:!0});tl.CronSecond=void 0;var EC=Da(),AC=0,PC=59,FC=Object.freeze([]),Su=class extends EC.CronField{static get min(){return AC}static get max(){return PC}static get chars(){return FC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};tl.CronSecond=Su});var nl=O(Qt=>{"use strict";u();var _C=Qt&&Qt.__createBinding||(Object.create?(function(e,t,n,a){a===void 0&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}):(function(e,t,n,a){a===void 0&&(a=n),e[a]=t[n]})),za=Qt&&Qt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&_C(t,e,n)};Object.defineProperty(Qt,"__esModule",{value:!0});za(cf(),Qt);za(Hp(),Qt);za(Bp(),Qt);za(Da(),Qt);za($p(),Qt);za(qp(),Qt);za(xu(),Qt);za(Up(),Qt)});var Iu=O(al=>{"use strict";u();Object.defineProperty(al,"__esModule",{value:!0});al.CronFieldCollection=void 0;var en=nl(),gr,yr,xr,br,xa,La,ki,Yp,Gp,hr=class hr{constructor({second:t,minute:n,hour:a,dayOfMonth:r,month:i,dayOfWeek:s}){Re(this,gr);Re(this,yr);Re(this,xr);Re(this,br);Re(this,xa);Re(this,La);if(!t)throw new Error("Validation error, Field second is missing");if(!n)throw new Error("Validation error, Field minute is missing");if(!a)throw new Error("Validation error, Field hour is missing");if(!r)throw new Error("Validation error, Field dayOfMonth is missing");if(!i)throw new Error("Validation error, Field month is missing");if(!s)throw new Error("Validation error, Field dayOfWeek is missing");if(i.values.length===1&&!r.hasLastChar&&s.isWildcard&&!(parseInt(r.values[0],10)<=en.CronMonth.daysInMonth[i.values[0]-1]))throw new Error("Invalid explicit day of month definition");ne(this,gr,t),ne(this,yr,n),ne(this,xr,a),ne(this,xa,i),ne(this,La,s),ne(this,br,r)}static from(t,n){return new hr({second:this.resolveField(en.CronSecond,t.second,n.second),minute:this.resolveField(en.CronMinute,t.minute,n.minute),hour:this.resolveField(en.CronHour,t.hour,n.hour),dayOfMonth:this.resolveField(en.CronDayOfMonth,t.dayOfMonth,n.dayOfMonth),month:this.resolveField(en.CronMonth,t.month,n.month),dayOfWeek:this.resolveField(en.CronDayOfWeek,t.dayOfWeek,n.dayOfWeek)})}static resolveField(t,n,a){return a?a instanceof en.CronField?a:new t(a):n}get second(){return M(this,gr)}get minute(){return M(this,yr)}get hour(){return M(this,xr)}get dayOfMonth(){return M(this,br)}get month(){return M(this,xa)}get dayOfWeek(){return M(this,La)}static compactField(t){if(t.length===0)return[];let n=[],a;return t.forEach((r,i,s)=>{if(a===void 0){a={start:r,count:1};return}let o=s[i-1]||a.start,l=s[i+1];if(r==="L"||r==="W"){n.push(a),n.push({start:r,count:1}),a=void 0;return}if(a.step===void 0&&l!==void 0){let c=r-o,d=l-r;if(c<=d){a={...a,count:2,end:r,step:c};return}a.step=1}r-(a.end??0)===a.step?(a.count++,a.end=r):(a.count===1?n.push({start:a.start,count:1}):a.count===2?(n.push({start:a.start,count:1}),n.push({start:a.end??o,count:1})):n.push(a),a={start:r,count:1})}),a&&n.push(a),n}stringifyField(t){var i;let n=t.max,a=t.values;if(t instanceof en.CronDayOfWeek){n=6;let s=M(this,La).values;a=s[s.length-1]===7?s.slice(0,-1):s}t instanceof en.CronDayOfMonth&&(n=M(this,xa).values.length===1?en.CronMonth.daysInMonth[M(this,xa).values[0]-1]:t.max);let r=hr.compactField(a);if(r.length===1){let s=K(i=hr,ki,Yp).call(i,t,r[0],n);if(s)return s}return r.map(s=>{var l;let o=s.count===1?s.start.toString():K(l=hr,ki,Gp).call(l,s);return t instanceof en.CronDayOfWeek&&t.nthDay>0?`${o}#${t.nthDay}`:o}).join(",")}stringify(t=!1){let n=[];return t&&n.push(this.stringifyField(M(this,gr))),n.push(this.stringifyField(M(this,yr)),this.stringifyField(M(this,xr)),this.stringifyField(M(this,br)),this.stringifyField(M(this,xa)),this.stringifyField(M(this,La))),n.join(" ")}serialize(){return{second:M(this,gr).serialize(),minute:M(this,yr).serialize(),hour:M(this,xr).serialize(),dayOfMonth:M(this,br).serialize(),month:M(this,xa).serialize(),dayOfWeek:M(this,La).serialize()}}};gr=new WeakMap,yr=new WeakMap,xr=new WeakMap,br=new WeakMap,xa=new WeakMap,La=new WeakMap,ki=new WeakSet,Yp=function(t,n,a){let r=n.step;return r?r===1&&n.start===t.min&&n.end&&n.end>=a?(t instanceof en.CronDayOfMonth||t instanceof en.CronDayOfWeek)&&!t.isWildcard?null:t.hasQuestionMarkChar?"?":"*":r!==1&&n.start===t.min&&n.end&&n.end>=a-r+1?`*/${r}`:null:null},Gp=function(t){let n=t.step;if(n===1)return`${t.start}-${t.end}`;let a=t.start===0?t.count-1:t.count;if(!n)throw new Error("Unexpected range step");if(!t.end)throw new Error("Unexpected range end");if(n*a>t.end){let r=(s,o)=>{if(typeof t.start!="number")throw new Error("Unexpected range start");return o%n===0?t.start+o:null};if(typeof t.start!="number")throw new Error("Unexpected range start");let i={length:t.end-t.start+1};return Array.from(i,r).filter(s=>s!==null).join(",")}return`${t.start}-${t.end}/${n}`},Re(hr,ki);var ku=hr;al.CronFieldCollection=ku});var Mu=O(In=>{"use strict";u();Object.defineProperty(In,"__esModule",{value:!0});In.CronExpression=In.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;var yt=Jo();In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range";In.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";var Kp=1e4,Ti,oa,Yn,la,ca,_e,Es,Mi,tn,Va,Ge,wr,Jp,jp,Zp,Xp,Qp,Tu,eh,th,Ii,hn=class hn{constructor(t,n){Re(this,Ge);Re(this,Ti);Re(this,oa);Re(this,Yn);Re(this,la);Re(this,ca);Re(this,_e);Re(this,Es,null);Re(this,Mi,!1);ne(this,Ti,n),ne(this,oa,n.tz),ne(this,la,n.startDate?new yt.CronDate(n.startDate,M(this,oa)):null),ne(this,ca,n.endDate?new yt.CronDate(n.endDate,M(this,oa)):null);let a=n.currentDate??n.startDate;if(a){let r=new yt.CronDate(a,M(this,oa));M(this,la)&&r.getTime()<M(this,la).getTime()?a=M(this,la):M(this,ca)&&r.getTime()>M(this,ca).getTime()&&(a=M(this,ca))}ne(this,Yn,new yt.CronDate(a,M(this,oa))),ne(this,_e,t)}get fields(){return M(this,_e)}static fieldsToExpression(t,n){return new hn(t,n||{})}next(){return K(this,Ge,Ii).call(this)}prev(){return K(this,Ge,Ii).call(this,!0)}hasNext(){let t=M(this,Yn);try{return K(this,Ge,Ii).call(this),!0}catch{return!1}finally{ne(this,Yn,t)}}hasPrev(){let t=M(this,Yn);try{return K(this,Ge,Ii).call(this,!0),!0}catch{return!1}finally{ne(this,Yn,t)}}take(t){let n=[];if(t>=0)for(let a=0;a<t;a++)try{n.push(this.next())}catch{return n}else for(let a=0;a>t;a--)try{n.push(this.prev())}catch{return n}return n}reset(t){ne(this,Yn,new yt.CronDate(t||M(this,Ti).currentDate,M(this,oa)))}stringify(t=!1){return M(this,_e).stringify(t)}includesDate(t){let{second:n,minute:a,hour:r,month:i}=M(this,_e),s=new yt.CronDate(t,M(this,oa));return!(!n.values.includes(s.getSeconds())||!a.values.includes(s.getMinutes())||!r.values.includes(s.getHours())||!i.values.includes(s.getMonth()+1)||!K(this,Ge,Tu).call(this,s))}toString(){return M(this,Ti).expression||this.stringify(!0)}[Symbol.iterator](){return{next:()=>{try{return{value:K(this,Ge,Ii).call(this),done:!1}}catch{return{value:void 0,done:!0}}}}}};Ti=new WeakMap,oa=new WeakMap,Yn=new WeakMap,la=new WeakMap,ca=new WeakMap,_e=new WeakMap,Es=new WeakMap,Mi=new WeakMap,tn=new WeakSet,Va=function(t,n){return n.some(a=>a===t)},Ge=new WeakSet,wr=function(t,n){return t[n?t.length-1:0]},Jp=function(t){let n=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(M(this,Es)===n)return M(this,Mi);let a=new yt.CronDate(t);a.setStartOfDay();let r=new yt.CronDate(t);return r.setEndOfDay(),ne(this,Es,n),ne(this,Mi,a.getUTCOffset()!==r.getUTCOffset()),M(this,Mi)},jp=function(t,n,a){let r=M(this,_e).second.values,i=t.getSeconds(),s=M(this,_e).second.findNearestValue(i,a);if(s!==null){t.setSeconds(s);return}t.applyDateOperation(n,yt.TimeUnit.Minute,M(this,_e).hour.values.length),t.setSeconds(K(this,Ge,wr).call(this,r,a))},Zp=function(t,n,a){let r=M(this,_e).minute.values,i=M(this,_e).second.values,s=t.getMinutes(),o=M(this,_e).minute.findNearestValue(s,a);if(o!==null){t.setMinutes(o),t.setSeconds(K(this,Ge,wr).call(this,i,a));return}t.applyDateOperation(n,yt.TimeUnit.Hour,M(this,_e).hour.values.length),t.setMinutes(K(this,Ge,wr).call(this,r,a)),t.setSeconds(K(this,Ge,wr).call(this,i,a))},Xp=function(t,n){if(!n.isLastWeekdayOfMonth())return!1;let a=n.getDay();return t.some(r=>a===parseInt(r.toString().charAt(0),10)%7)},Qp=function(t,n){return t<=0||Math.ceil(n.getDate()/7)===t},Tu=function(t){var c,d,m,f;let n=M(this,_e).dayOfMonth.isWildcard,a=!n,r=M(this,_e).dayOfWeek.isWildcard,i=!r,s=K(c=hn,tn,Va).call(c,t.getDate(),M(this,_e).dayOfMonth.values)||M(this,_e).dayOfMonth.hasLastChar&&t.isLastDayOfMonth(),o=M(this,_e).dayOfWeek.nthDay,l=K(d=hn,tn,Va).call(d,t.getDay(),M(this,_e).dayOfWeek.values)&&K(m=hn,tn,Qp).call(m,o,t)||M(this,_e).dayOfWeek.hasLastChar&&K(f=hn,tn,Xp).call(f,M(this,_e).dayOfWeek.values,t);return!!(a&&i&&(s||l)||s&&!i||n&&!r&&l)},eh=function(t,n,a){var d,m;let r=M(this,_e).hour.values,i=r,s=t.getHours(),o=K(d=hn,tn,Va).call(d,s,r),l=t.dstEnd===s;if(t.dstStart!==null&&t.dstStartLandingHour===s){for(let f=t.dstStart;f!==s;f=(f+1)%24)if(K(m=hn,tn,Va).call(m,f,r))return!0}if(l&&!a)return t.dstEnd=null,t.applyDateOperation(yt.DateMathOp.Add,yt.TimeUnit.Hour,i.length),!1;if(o)return!0;t.clearDstStart();let c=M(this,_e).hour.findNearestValue(s,a);if(c===null)return t.applyDateOperation(n,yt.TimeUnit.Day,i.length),!1;if(K(this,Ge,Jp).call(this,t)){let f=a?s-c:c-s;for(let h=0;h<f&&(t.applyDateOperation(n,yt.TimeUnit.Hour,i.length),!(!a&&t.getHours()>=c||a&&t.getHours()<=c));h++);}else t.setHours(c);return t.setMinutes(K(this,Ge,wr).call(this,M(this,_e).minute.values,a)),t.setSeconds(K(this,Ge,wr).call(this,M(this,_e).second.values,a)),!1},th=function(t){if(!M(this,la)&&!M(this,ca))return;let n=t.getTime();if(M(this,la)&&n<M(this,la).getTime())throw new Error(In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(M(this,ca)&&n>M(this,ca).getTime())throw new Error(In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)},Ii=function(t=!1){var s,o,l;let n=t?yt.DateMathOp.Subtract:yt.DateMathOp.Add,a=new yt.CronDate(M(this,Yn)),r=a.getTime();a.getMilliseconds()>0&&(a.setMilliseconds(0),t||a.applyDateOperation(yt.DateMathOp.Add,yt.TimeUnit.Second,M(this,_e).hour.values.length));let i=0;for(;++i<Kp;){if(K(this,Ge,th).call(this,a),!K(this,Ge,Tu).call(this,a)){a.applyDateOperation(n,yt.TimeUnit.Day,M(this,_e).hour.values.length);continue}if(!K(s=hn,tn,Va).call(s,a.getMonth()+1,M(this,_e).month.values)){a.applyDateOperation(n,yt.TimeUnit.Month,M(this,_e).hour.values.length);continue}if(K(this,Ge,eh).call(this,a,n,t)){if(!K(o=hn,tn,Va).call(o,a.getMinutes(),M(this,_e).minute.values)){K(this,Ge,Zp).call(this,a,n,t);continue}if(!K(l=hn,tn,Va).call(l,a.getSeconds(),M(this,_e).second.values)){K(this,Ge,jp).call(this,a,n,t);continue}if(r===a.getTime()){a.applyDateOperation(n,yt.TimeUnit.Second,M(this,_e).hour.values.length);continue}break}}if(i>=Kp)throw new Error(In.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return ne(this,Yn,a),a},Re(hn,tn);var rl=hn;In.CronExpression=rl;In.default=rl});var nh=O(Du=>{"use strict";u();Object.defineProperty(Du,"__esModule",{value:!0});Du.seededRandom=VC;function zC(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return()=>t>>>0}function LC(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function VC(e){let t=e?zC(e)():Math.floor(Math.random()*1e10);return LC(t)}});var ll=O(Dn=>{"use strict";u();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.CronExpressionParser=Dn.DayOfWeek=Dn.Months=Dn.CronUnit=Dn.PredefinedExpressions=void 0;var WC=Iu(),HC=Mu(),BC=nh(),Tn=nl(),Ou;(function(e){e["@yearly"]="0 0 0 1 1 *",e["@annually"]="0 0 0 1 1 *",e["@monthly"]="0 0 0 1 * *",e["@weekly"]="0 0 0 * * 0",e["@daily"]="0 0 0 * * *",e["@hourly"]="0 0 * * * *",e["@minutely"]="0 * * * * *",e["@secondly"]="* * * * * *",e["@weekdays"]="0 0 0 * * 1-5",e["@weekends"]="0 0 0 * * 0,6"})(Ou||(Dn.PredefinedExpressions=Ou={}));var Mn;(function(e){e.Second="Second",e.Minute="Minute",e.Hour="Hour",e.DayOfMonth="DayOfMonth",e.Month="Month",e.DayOfWeek="DayOfWeek"})(Mn||(Dn.CronUnit=Mn={}));var Ru;(function(e){e[e.jan=1]="jan",e[e.feb=2]="feb",e[e.mar=3]="mar",e[e.apr=4]="apr",e[e.may=5]="may",e[e.jun=6]="jun",e[e.jul=7]="jul",e[e.aug=8]="aug",e[e.sep=9]="sep",e[e.oct=10]="oct",e[e.nov=11]="nov",e[e.dec=12]="dec"})(Ru||(Dn.Months=Ru={}));var Nu;(function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"})(Nu||(Dn.DayOfWeek=Nu={}));var ah=256,rh=1024,me,ih,vr,sh,oh,il,sl,Au,Pu,ol,lh,ch,uh,mh,dh,Fu,fh,ph,Ke=class Ke{static parse(t,n={}){var A,q,de,pe,H,le,R,ce;let{strict:a=!1,hashSeed:r}=n,i=(0,BC.seededRandom)(r);t=Ou[t]||t;let s=K(A=Ke,me,ih).call(A,t,a);if(!(s.dayOfMonth==="*"||s.dayOfWeek==="*"||!a))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");let o=K(q=Ke,me,vr).call(q,Mn.Second,s.second,Tn.CronSecond.constraints,i,a),l=K(de=Ke,me,vr).call(de,Mn.Minute,s.minute,Tn.CronMinute.constraints,i,a),c=K(pe=Ke,me,vr).call(pe,Mn.Hour,s.hour,Tn.CronHour.constraints,i,a),d=K(H=Ke,me,vr).call(H,Mn.Month,s.month,Tn.CronMonth.constraints,i,a),m=K(le=Ke,me,vr).call(le,Mn.DayOfMonth,s.dayOfMonth,Tn.CronDayOfMonth.constraints,i,a),{dayOfWeek:f,nthDayOfWeek:h}=K(R=Ke,me,fh).call(R,s.dayOfWeek),k=K(ce=Ke,me,vr).call(ce,Mn.DayOfWeek,f,Tn.CronDayOfWeek.constraints,i,a),v=new WC.CronFieldCollection({second:new Tn.CronSecond(o,{rawValue:s.second}),minute:new Tn.CronMinute(l,{rawValue:s.minute}),hour:new Tn.CronHour(c,{rawValue:s.hour}),dayOfMonth:Tn.CronDayOfMonth.fromMonth(d,m,{rawValue:s.dayOfMonth}),month:new Tn.CronMonth(d,{rawValue:s.month}),dayOfWeek:new Tn.CronDayOfWeek(k,{rawValue:s.dayOfWeek,nthDayOfWeek:h})});return new HC.CronExpression(v,{...n,expression:t})}};me=new WeakSet,ih=function(t,n){if(n&&!t.length)throw new Error("Invalid cron expression");if(t=t||"0 * * * * *",t.length>rh)throw new Error(`Invalid cron expression, too long, expected at most ${rh} characters`);let a=t.trim().split(/\s+/);if(n&&a.length<6)throw new Error("Invalid cron expression, expected 6 fields");if(a.length>6)throw new Error("Invalid cron expression, too many fields");let r=["0","*","*","*","*","*"];a.length<r.length&&a.unshift(...r.slice(0,r.length-a.length));let[i,s,o,l,c,d]=a;return{second:i,minute:s,hour:o,dayOfMonth:l,month:c,dayOfWeek:d}},vr=function(t,n,a,r,i){if((t===Mn.Month||t===Mn.DayOfWeek)&&(n=n.replace(/[a-z]{3}/gi,s=>{s=s.toLowerCase();let o=Ru[s]||Nu[s];if(o===void 0)throw new Error(`Validation error, cannot resolve alias "${s}"`);return o.toString()})),!a.validChars.test(n))throw new Error(`Invalid characters, got value: ${n}`);return n=K(this,me,sh).call(this,n,a),n=K(this,me,oh).call(this,n,a,r,t,i),K(this,me,lh).call(this,t,n,a)},sh=function(t,n){return t.replace(/[*?]/g,n.min+"-"+n.max)},oh=function(t,n,a,r,i){let s=a(),o=0;return t.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(l,c,d,m)=>{var f,h,k,v,A,q,de,pe;if(c&&d&&m){let H=parseInt(c,10),le=parseInt(d,10),R=parseInt(m,10);if(R<=0)throw new Error(`Invalid step: ${R}, must be positive`);let ce=K(f=Ke,me,Au).call(f,H,le,n,r,i);return o+=Math.ceil((ce.max-ce.min+1)/R),K(h=Ke,me,ol).call(h,r,o),K(k=Ke,me,Pu).call(k,s,ce.min,ce.max,R,r,i)}else if(c&&d){let H=parseInt(c,10),le=parseInt(d,10),R=K(v=Ke,me,Au).call(v,H,le,n,r,i);return String(K(A=Ke,me,il).call(A,s,R.min,R.max))}else if(m){let H=parseInt(m,10);if(H<=0)throw new Error(`Invalid step: ${H}, must be positive`);return o+=Math.ceil((n.max-n.min+1)/H),K(q=Ke,me,ol).call(q,r,o),K(de=Ke,me,Pu).call(de,s,n.min,n.max,H,r,i)}else return String(K(pe=Ke,me,il).call(pe,s,n.min,n.max))})},il=function(t,n,a){return Math.floor(t*(a-n+1))+n},sl=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Au=function(t,n,a,r,i){var l,c;if(t>n)throw new Error(`Invalid range: ${t}-${n}, min > max`);if(i&&(t<a.min||n>a.max))throw new Error(`Invalid range: ${t}-${n}, outside the ${a.min}-${a.max} range of the ${K(l=Ke,me,sl).call(l,r)} field`);let s=Math.max(t,a.min),o=Math.min(n,a.max);if(s>o)throw new Error(`Invalid range: ${t}-${n}, no usable value in the ${K(c=Ke,me,sl).call(c,r)} field`);return{min:s,max:o}},Pu=function(t,n,a,r,i,s){var c,d;if(s&&r>a-n+1)throw new Error(`Invalid step: ${r}, wider than the ${n}-${a} range of the ${K(c=Ke,me,sl).call(c,i)} field`);let o=Math.floor(t*r),l=[];for(let m=Math.floor(n/r)*r+o;m<=a;m+=r)m>=n&&l.push(m);return l.length===0?String(K(d=Ke,me,il).call(d,t,n,a)):l.join(",")},ol=function(t,n){if(n>ah)throw new Error(`Constraint error, too many values in ${t} field, expected at most ${ah}`)},lh=function(t,n,a){var o,l;let r=[];function i(c,d){var m;if(Array.isArray(c))r.push(...c);else if(K(m=Ke,me,ph).call(m,d,c))r.push(c);else{let f=parseInt(c.toString(),10);if(!(f>=d.min&&f<=d.max))throw new Error(`Constraint error, got value ${c} expected range ${d.min}-${d.max}`);r.push(t===Mn.DayOfWeek?f%7:c)}}let s=n.split(",");for(let c of s){if(K(o=Ke,me,ol).call(o,t,r.length),!(c.length>0))throw new Error("Invalid list value format");i(K(l=Ke,me,ch).call(l,t,c,a),a)}return r},ch=function(t,n,a){var i,s;let r=n.split("/");if(r.length>2)throw new Error(`Invalid repeat: ${n}`);return r.length===2?(r[0].includes("-")||(r[0]=`${r[0]}-${a.max}`),K(i=Ke,me,Fu).call(i,t,r[0],parseInt(r[1],10),a)):K(s=Ke,me,Fu).call(s,t,n,1,a)},uh=function(t,n,a){if(!(!isNaN(t)&&!isNaN(n)&&t>=a.min&&n<=a.max))throw new Error(`Constraint error, got range ${t}-${n} expected range ${a.min}-${a.max}`);if(t>n)throw new Error(`Invalid range: ${t}-${n}, min(${t}) > max(${n})`)},mh=function(t){if(!(!isNaN(t)&&t>0))throw new Error(`Constraint error, cannot repeat at every ${t} time.`)},dh=function(t,n,a,r){let i=[];t===Mn.DayOfWeek&&a%7===0&&(a-n)%r===0&&i.push(0);for(let s=n;s<=a;s+=r)i.indexOf(s)===-1&&i.push(s);return i},Fu=function(t,n,a,r){let i=n.split("-");if(i.length<=1)return isNaN(+n)?n:+n;let[s,o]=i.map(l=>parseInt(l,10));return K(this,me,uh).call(this,s,o,r),K(this,me,mh).call(this,a),K(this,me,dh).call(this,t,s,o,a)},fh=function(t){let n=t.split("#");if(n.length<=1)return{dayOfWeek:n[0]};let a=+n[n.length-1],r=t.match(/([,\-/])/);if(r!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${r?.[0]}\` special characters are incompatible`);if(!(n.length<=2&&!isNaN(a)&&a>=1&&a<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:n[0],nthDayOfWeek:a}},ph=function(t,n){return t.chars.some(a=>n.toString().includes(a))},Re(Ke,me);var Eu=Ke;Dn.CronExpressionParser=Eu});var hh=O(()=>{u()});var gh=O(()=>{u()});var xh=O(cl=>{"use strict";u();Object.defineProperty(cl,"__esModule",{value:!0});cl.CronFileParser=void 0;var $C=ll(),Cr,zu,yh,Di=class Di{static async parseFile(t){var r;let{readFile:n}=hh(),a=await n(t,"utf8");return K(r=Di,Cr,zu).call(r,a)}static parseFileSync(t){var r;let{readFileSync:n}=gh(),a=n(t,"utf8");return K(r=Di,Cr,zu).call(r,a)}};Cr=new WeakSet,zu=function(t){var r;let n=t.split(`
4
- `),a={variables:{},expressions:[],errors:{}};for(let i of n){let s=i.trim();if(s.length===0||s.startsWith("#"))continue;let o=s.match(/^(.*)=(.*)$/);if(o){let[,l,c]=o;a.variables[l]=c.replace(/["']/g,"");continue}try{let l=K(r=Di,Cr,yh).call(r,s);a.expressions.push(l.interval)}catch(l){a.errors[s]=l}}return a},yh=function(t){let n=t.split(/\s+/);return{interval:$C.CronExpressionParser.parse(n.slice(0,5).join(" ")),command:n.slice(5,n.length)}},Re(Di,Cr);var _u=Di;cl.CronFileParser=_u});var bh=O(Et=>{"use strict";u();var qC=Et&&Et.__createBinding||(Object.create?(function(e,t,n,a){a===void 0&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}):(function(e,t,n,a){a===void 0&&(a=n),e[a]=t[n]})),UC=Et&&Et.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qC(t,e,n)};Object.defineProperty(Et,"__esModule",{value:!0});Et.CronFileParser=Et.CronExpressionParser=Et.CronExpression=Et.CronFieldCollection=Et.CronDate=void 0;var YC=ll(),GC=Jo();Object.defineProperty(Et,"CronDate",{enumerable:!0,get:function(){return GC.CronDate}});var KC=Iu();Object.defineProperty(Et,"CronFieldCollection",{enumerable:!0,get:function(){return KC.CronFieldCollection}});var JC=Mu();Object.defineProperty(Et,"CronExpression",{enumerable:!0,get:function(){return JC.CronExpression}});var jC=ll();Object.defineProperty(Et,"CronExpressionParser",{enumerable:!0,get:function(){return jC.CronExpressionParser}});var ZC=xh();Object.defineProperty(Et,"CronFileParser",{enumerable:!0,get:function(){return ZC.CronFileParser}});UC(nl(),Et);Et.default=YC.CronExpressionParser});var Oi=O((WR,Sr)=>{"use strict";u();function wh(e){return typeof e>"u"||e===null}function XC(e){return typeof e=="object"&&e!==null}function QC(e){return Array.isArray(e)?e:wh(e)?[]:[e]}function eS(e,t){if(t){let n=Object.keys(t);for(let a=0,r=n.length;a<r;a+=1){let i=n[a];e[i]=t[i]}}return e}function tS(e,t){let n="";for(let a=0;a<t;a+=1)n+=e;return n}function nS(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Sr.exports.isNothing=wh;Sr.exports.isObject=XC;Sr.exports.toArray=QC;Sr.exports.repeat=tS;Sr.exports.isNegativeZero=nS;Sr.exports.extend=eS});var Ri=O((BR,Ch)=>{"use strict";u();function vh(e,t){let n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
3
+ `,e.getElementsByTagName("head")[0].appendChild(n)}e.body&&qb(e.body,"react-draggable-transparent-selection")}function Bd(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{$d(e)}):$d(e)}function $d(e){if(e)try{e.body&&Ub(e.body,"react-draggable-transparent-selection");let t=e.selection;if(t)t.empty();else{let n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function qb(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function Ub(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}function Yb(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a=typeof a=="string"?a:Jb(a);let r=kc(e);if(typeof a=="string"){let{ownerDocument:i}=r,s=i.defaultView;if(!s)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(a==="parent"?o=r.parentNode:o=r.getRootNode().querySelector(a),!(o instanceof s.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');let l=o,c=s.getComputedStyle(r),d=s.getComputedStyle(l);a={left:-r.offsetLeft+Ht(d.paddingLeft)+Ht(c.marginLeft),top:-r.offsetTop+Ht(d.paddingTop)+Ht(c.marginTop),right:_b(l)-Pb(r)-r.offsetLeft+Ht(d.paddingRight)-Ht(c.marginRight),bottom:Fb(l)-Ab(r)-r.offsetTop+Ht(d.paddingBottom)-Ht(c.marginBottom)}}return ys(a.right)&&(t=Math.min(t,a.right)),ys(a.bottom)&&(n=Math.min(n,a.bottom)),ys(a.left)&&(t=Math.max(t,a.left)),ys(a.top)&&(n=Math.max(n,a.top)),[t,n]}function qd(e,t,n){let a=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[a,r]}function Gb(e){return e.props.axis==="both"||e.props.axis==="x"}function Kb(e){return e.props.axis==="both"||e.props.axis==="y"}function wc(e,t,n){let a=typeof t=="number"?Wb(e,t):null;if(typeof t=="number"&&!a)return null;let r=kc(n),i=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return zb(a||e,i,n.props.scale)}function Sc(e,t,n){let a=!ys(e.lastX),r=kc(e);return a?{node:r,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:r,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function Cc(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function Jb(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function kc(e){let t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var vc=ui(je()),Wt=ui(tr()),jb=ui(ps()),Zb=typeof process<"u"&&process.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},ea=Zb,Bn={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Ma=Bn.mouse,sr=class extends vc.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Hd(e.target,this.props.handle,t)||this.props.cancel&&Hd(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();let a=Hb(e);this.touchIdentifier=a;let r=wc(e,a,this);if(r==null)return;let{x:i,y:s}=r,o=Sc(this,i,s);ea("DraggableCore: handleDragStart: %j",o),ea("calling",this.props.onStart),!(this.props.onStart(e,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&$b(n,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=s,bc(n,Ma.move,this.handleDrag),bc(n,Ma.stop,this.handleDragStop))},this.handleDrag=e=>{let t=wc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let s=n-this.lastX,o=a-this.lastY;if([s,o]=qd(this.props.grid,s,o),!s&&!o)return;n=this.lastX+s,a=this.lastY+o}let r=Sc(this,n,a);if(ea("DraggableCore: handleDrag: %j",r),this.props.onDrag(e,r)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let s=document.createEvent("MouseEvents");s.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(s)}return}this.lastX=n,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=wc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=a-this.lastY||0;[o,l]=qd(this.props.grid,o,l),n=this.lastX+o,a=this.lastY+l}let r=Sc(this,n,a);if(this.props.onStop(e,r)===!1||this.mounted===!1)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&Bd(s.ownerDocument),ea("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(ea("DraggableCore: Removing handlers"),ir(s.ownerDocument,Ma.move,this.handleDrag),ir(s.ownerDocument,Ma.stop,this.handleDragStop))},this.onMouseDown=e=>(Ma=Bn.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(Ma=Bn.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(Ma=Bn.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(Ma=Bn.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&bc(e,Bn.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;ir(t,Bn.mouse.move,this.handleDrag),ir(t,Bn.touch.move,this.handleDrag),ir(t,Bn.mouse.stop,this.handleDragStop),ir(t,Bn.touch.stop,this.handleDragStop),ir(e,Bn.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&Bd(t)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=jb.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):(ea("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return vc.cloneElement(vc.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};sr.displayName="DraggableCore";sr.propTypes={allowAnyClick:Wt.default.bool,allowMobileScroll:Wt.default.bool,children:Wt.default.node.isRequired,disabled:Wt.default.bool,enableUserSelectHack:Wt.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wt.default.arrayOf(Wt.default.number),handle:Wt.default.string,cancel:Wt.default.string,nodeRef:Wt.default.object,nonce:Wt.default.string,onStart:Wt.default.func,onDrag:Wt.default.func,onStop:Wt.default.func,onMouseDown:Wt.default.func,scale:Wt.default.number,className:ci,style:ci,transform:ci};sr.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var wo=class extends xo.Component{constructor(e){super(e),this.onDragStart=(t,n)=>{if(ea("Draggable: onDragStart: %j",n),this.props.onStart(t,Cc(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,n)=>{if(!this.state.dragging)return!1;ea("Draggable: onDrag: %j",n);let a=Cc(this,n),r={x:a.x,y:a.y,slackX:0,slackY:0};if(this.props.bounds){let{x:s,y:o}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[l,c]=Yb(this,r.x,r.y);r.x=l,r.y=c,r.slackX=this.state.slackX+(s-r.x),r.slackY=this.state.slackY+(o-r.y),a.x=r.x,a.y=r.y,a.deltaX=r.x-this.state.x,a.deltaY=r.y-this.state.y}if(this.props.onDrag(t,a)===!1)return!1;this.setState(r)},this.onDragStop=(t,n)=>{if(!this.state.dragging||this.props.onStop(t,Cc(this,n))===!1)return!1;ea("Draggable: onDragStop: %j",n);let r={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){let{x:s,y:o}=this.props.position;r.x=s,r.y=o}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(ea("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Mb.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:r,defaultClassNameDragging:i,defaultClassNameDragged:s,position:o,positionOffset:l,scale:c,...d}=this.props,m={},f=null,I=!!!o||this.state.dragging,C=o||a,L={x:Gb(this)&&I?this.state.x:C.x,y:Kb(this)&&I?this.state.y:C.y};this.state.isElementSVG?f=Vb(L,l):m=Lb(L,l);let U=xo.Children.only(n),oe=(0,Db.clsx)(U.props.className||"",r,{[i]:this.state.dragging,[s]:this.state.dragged});return xo.createElement(sr,{...d,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},xo.cloneElement(U,{className:oe,style:{...U.props.style,...m},transform:f}))}};wo.displayName="Draggable";wo.propTypes={...sr.propTypes,axis:rt.default.oneOf(["both","x","y","none"]),bounds:rt.default.oneOfType([rt.default.shape({left:rt.default.number,right:rt.default.number,top:rt.default.number,bottom:rt.default.number}),rt.default.string,rt.default.oneOf([!1])]),defaultClassName:rt.default.string,defaultClassNameDragging:rt.default.string,defaultClassNameDragged:rt.default.string,defaultPosition:rt.default.shape({x:rt.default.number,y:rt.default.number}),positionOffset:rt.default.shape({x:rt.default.oneOfType([rt.default.number,rt.default.string]),y:rt.default.oneOfType([rt.default.number,rt.default.string])}),position:rt.default.shape({x:rt.default.number,y:rt.default.number}),className:ci,style:ci,transform:ci};wo.defaultProps={...sr.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}});var Mc=D((zO,So)=>{"use strict";u();var Tc=jd(),Xb=Tc.DraggableCore,Zd=Tc.default||Tc;So.exports=Zd;So.exports.default=Zd;So.exports.DraggableCore=Xb});var ef=D(Dc=>{"use strict";u();Dc.__esModule=!0;Dc.cloneElement=rw;var Qb=ew(je());function ew(e){return e&&e.__esModule?e:{default:e}}function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Qd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xd(Object(n),!0).forEach(function(a){tw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function tw(e,t,n){return(t=nw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nw(e){var t=aw(e,"string");return typeof t=="symbol"?t:t+""}function aw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rw(e,t){return t.style&&e.props.style&&(t.style=Qd(Qd({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),Qb.default.cloneElement(e,t)}});var Oc=D(Co=>{"use strict";u();Co.__esModule=!0;Co.resizableProps=void 0;var ke=iw(tr()),HO=Mc();function iw(e){return e&&e.__esModule?e:{default:e}}var BO=Co.resizableProps={axis:ke.default.oneOf(["both","x","y","none"]),className:ke.default.string,children:ke.default.element.isRequired,draggableOpts:ke.default.shape({allowAnyClick:ke.default.bool,cancel:ke.default.string,children:ke.default.node,disabled:ke.default.bool,enableUserSelectHack:ke.default.bool,offsetParent:typeof Element<"u"?ke.default.instanceOf(Element):ke.default.any,grid:ke.default.arrayOf(ke.default.number),handle:ke.default.string,nodeRef:ke.default.object,onStart:ke.default.func,onDrag:ke.default.func,onStop:ke.default.func,onMouseDown:ke.default.func,scale:ke.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t[0];return a.axis==="both"||a.axis==="y"?ke.default.number.isRequired(...t):ke.default.number(...t)},handle:ke.default.oneOfType([ke.default.node,ke.default.func]),handleSize:ke.default.arrayOf(ke.default.number),lockAspectRatio:ke.default.bool,maxConstraints:ke.default.arrayOf(ke.default.number),minConstraints:ke.default.arrayOf(ke.default.number),onResizeStop:ke.default.func,onResizeStart:ke.default.func,onResize:ke.default.func,resizeHandles:ke.default.arrayOf(ke.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:ke.default.number,width:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t[0];return a.axis==="both"||a.axis==="x"?ke.default.number.isRequired(...t):ke.default.number(...t)}}});var Ec=D(vo=>{"use strict";u();vo.__esModule=!0;vo.default=void 0;var mi=nf(je()),sw=Mc(),ow=ef(),lw=Oc(),cw=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function nf(e,t){if(typeof WeakMap=="function")var n=new WeakMap,a=new WeakMap;return(nf=function(r,i){if(!i&&r&&r.__esModule)return r;var s,o,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(s=i?a:n){if(s.has(r))return s.get(r);s.set(r,l)}for(let c in r)c!=="default"&&{}.hasOwnProperty.call(r,c)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,c))&&(o.get||o.set)?s(l,c,o):l[c]=r[c]);return l})(e,t)}function Nc(){return Nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Nc.apply(null,arguments)}function uw(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Rc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tf(Object(n),!0).forEach(function(a){mw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function mw(e,t,n){return(t=dw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dw(e){var t=fw(e,"string");return typeof t=="symbol"?t:t+""}function fw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xs=class extends mi.Component{constructor(){super(...arguments),this.handleRefs={},this.lastHandleRect=null,this.slack=null,this.lastSize=null}componentWillUnmount(){this.resetData()}resetData(){this.lastHandleRect=this.slack=this.lastSize=null}runConstraints(t,n){let a=this.props,r=a.minConstraints,i=a.maxConstraints,s=a.lockAspectRatio;if(!r&&!i&&!s)return[t,n];if(s){let f=this.props.width/this.props.height,g=t-this.props.width,I=n-this.props.height;Math.abs(g)>Math.abs(I*f)?n=t/f:t=n*f}let o=t,l=n,c=this.slack||[0,0],d=c[0],m=c[1];return t+=d,n+=m,r&&(t=Math.max(r[0],t),n=Math.max(r[1],n)),i&&(t=Math.min(i[0],t),n=Math.min(i[1],n)),this.slack=[d+(o-t),m+(l-n)],[t,n]}resizeHandler(t,n){return(a,r)=>{var i,s,o,l;let c=r.node,d=r.deltaX,m=r.deltaY;t==="onResizeStart"&&this.resetData();let f=(this.props.axis==="both"||this.props.axis==="x")&&n!=="n"&&n!=="s",g=(this.props.axis==="both"||this.props.axis==="y")&&n!=="e"&&n!=="w";if(!f&&!g)return;let I=n[0],C=n[n.length-1],L=c.getBoundingClientRect();if(this.lastHandleRect!=null){if(C==="w"){let z=L.left-this.lastHandleRect.left;d+=z}if(I==="n"){let z=L.top-this.lastHandleRect.top;m+=z}}this.lastHandleRect=L,C==="w"&&(d=-d),I==="n"&&(m=-m);let U=(i=(s=this.lastSize)==null?void 0:s.width)!=null?i:this.props.width,oe=(o=(l=this.lastSize)==null?void 0:l.height)!=null?o:this.props.height,de=U+(f?d/this.props.transformScale:0),B=oe+(g?m/this.props.transformScale:0);var ue=this.runConstraints(de,B);if(de=ue[0],B=ue[1],t==="onResizeStop"&&this.lastSize){var R=this.lastSize;de=R.width,B=R.height}let ce=de!==U||B!==oe;t!=="onResizeStop"&&(this.lastSize={width:de,height:B});let Ce=typeof this.props[t]=="function"?this.props[t]:null;Ce&&!(t==="onResize"&&!ce)&&(a.persist==null||a.persist(),Ce(a,{node:c,size:{width:de,height:B},handle:n})),t==="onResizeStop"&&this.resetData()}}renderResizeHandle(t,n){let a=this.props.handle;if(!a)return mi.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:n});if(typeof a=="function")return a(t,n);let r=typeof a.type=="string",i=Rc({ref:n},r?{}:{handleAxis:t});return mi.cloneElement(a,i)}render(){let t=this.props,n=t.children,a=t.className,r=t.draggableOpts,i=t.width,s=t.height,o=t.handle,l=t.handleSize,c=t.lockAspectRatio,d=t.axis,m=t.minConstraints,f=t.maxConstraints,g=t.onResize,I=t.onResizeStop,C=t.onResizeStart,L=t.resizeHandles,U=t.transformScale,oe=uw(t,cw);return(0,ow.cloneElement)(n,Rc(Rc({},oe),{},{className:(a?a+" ":"")+"react-resizable",children:[...mi.Children.toArray(n.props.children),...L.map(de=>{var B;let ue=(B=this.handleRefs[de])!=null?B:this.handleRefs[de]=mi.createRef();return mi.createElement(sw.DraggableCore,Nc({},r,{nodeRef:ue,key:"resizableHandle-"+de,onStop:this.resizeHandler("onResizeStop",de),onStart:this.resizeHandler("onResizeStart",de),onDrag:this.resizeHandler("onResize",de)}),this.renderResizeHandle(de,ue))})]}))}};vo.default=xs;xs.propTypes=lw.resizableProps;xs.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}});var of=D(To=>{"use strict";u();To.__esModule=!0;To.default=void 0;var Ac=sf(je()),pw=rf(tr()),hw=rf(Ec()),gw=Oc(),yw=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function rf(e){return e&&e.__esModule?e:{default:e}}function sf(e,t){if(typeof WeakMap=="function")var n=new WeakMap,a=new WeakMap;return(sf=function(r,i){if(!i&&r&&r.__esModule)return r;var s,o,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(s=i?a:n){if(s.has(r))return s.get(r);s.set(r,l)}for(let c in r)c!=="default"&&{}.hasOwnProperty.call(r,c)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,c))&&(o.get||o.set)?s(l,c,o):l[c]=r[c]);return l})(e,t)}function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Pc.apply(null,arguments)}function af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Io(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?af(Object(n),!0).forEach(function(a){xw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):af(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function xw(e,t,n){return(t=bw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bw(e){var t=ww(e,"string");return typeof t=="symbol"?t:t+""}function ww(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sw(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}var ko=class extends Ac.Component{constructor(){super(...arguments),this.state={width:this.props.width,height:this.props.height,propsWidth:this.props.width,propsHeight:this.props.height},this.onResize=(t,n)=>{let a=n.size;this.props.onResize?(t.persist==null||t.persist(),this.setState(a,()=>this.props.onResize&&this.props.onResize(t,n))):this.setState(a)}}static getDerivedStateFromProps(t,n){return n.propsWidth!==t.width||n.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null}render(){let t=this.props,n=t.handle,a=t.handleSize,r=t.onResize,i=t.onResizeStart,s=t.onResizeStop,o=t.draggableOpts,l=t.minConstraints,c=t.maxConstraints,d=t.lockAspectRatio,m=t.axis,f=t.width,g=t.height,I=t.resizeHandles,C=t.style,L=t.transformScale,U=Sw(t,yw);return Ac.createElement(hw.default,{axis:m,draggableOpts:o,handle:n,handleSize:a,height:this.state.height,lockAspectRatio:d,maxConstraints:c,minConstraints:l,onResizeStart:i,onResize:this.onResize,onResizeStop:s,resizeHandles:I,transformScale:L,width:this.state.width},Ac.createElement("div",Pc({},U,{style:Io(Io({},C),{},{width:this.state.width+"px",height:this.state.height+"px"})})))}};To.default=ko;ko.propTypes=Io(Io({},gw.resizableProps),{},{children:pw.default.element})});var lf=D((JO,Mo)=>{"use strict";u();Mo.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};Mo.exports.Resizable=Ec().default;Mo.exports.ResizableBox=of().default});var df=D(mf=>{"use strict";u();Object.defineProperty(mf,"__esModule",{value:!0})});var Da=D(Oo=>{"use strict";u();Object.defineProperty(Oo,"__esModule",{value:!0});Oo.CronField=void 0;var bs,ws,di,ra,Do,ff,_c=class _c{constructor(t,n={rawValue:""}){De(this,Do);De(this,bs,!1);De(this,ws,!1);De(this,di,!1);De(this,ra,[]);Am(this,"options",{rawValue:""});if(!Array.isArray(t))throw new Error(`${this.constructor.name} Validation error, values is not an array`);if(!(t.length>0))throw new Error(`${this.constructor.name} Validation error, values contains no values`);this.options={...n,rawValue:n.rawValue??""},ne(this,ra,[...t].sort(_c.sorter)),ne(this,di,this.options.wildcard!==void 0?this.options.wildcard:K(this,Do,ff).call(this)),ne(this,bs,this.options.rawValue.includes("L")||t.includes("L")),ne(this,ws,this.options.rawValue.includes("?")||t.includes("?"))}static get min(){throw new Error("min must be overridden")}static get max(){throw new Error("max must be overridden")}static get chars(){return Object.freeze([])}static get validChars(){return/^[?,*\dH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}static get constraints(){return{min:this.min,max:this.max,chars:this.chars,validChars:this.validChars}}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return T(this,bs)}get hasQuestionMarkChar(){return T(this,ws)}get isWildcard(){return T(this,di)}get values(){return T(this,ra)}static sorter(t,n){let a=typeof t=="number",r=typeof n=="number";return a&&r?t-n:!a&&!r?t.localeCompare(n):a?-1:1}static findNearestValueInList(t,n,a){if(a){for(let r=t.length-1;r>=0;r--)if(t[r]<n)return t[r];return null}for(let r=0;r<t.length;r++)if(t[r]>n)return t[r];return null}findNearestValue(t,n){return this.constructor.findNearestValueInList(this.values,t,n)}serialize(){return{wildcard:T(this,di),values:T(this,ra)}}validate(){let t,n=this.chars.length>0?` or chars ${this.chars.join("")}`:"",a=o=>l=>new RegExp(`^\\d{0,2}${l}$`).test(o),r=o=>(t=o,typeof o=="number"?o>=this.min&&o<=this.max:this.chars.some(a(o)));if(!T(this,ra).every(r))throw new Error(`${this.constructor.name} Validation error, got value ${t} expected range ${this.min}-${this.max}${n}`);let s=T(this,ra).find((o,l)=>T(this,ra).indexOf(o)!==l);if(s!==void 0)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${s}`)}};bs=new WeakMap,ws=new WeakMap,di=new WeakMap,ra=new WeakMap,Do=new WeakSet,ff=function(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(t,n)=>n+this.min).every(t=>T(this,ra).includes(t))};var Fc=_c;Oo.CronField=Fc});var $p=D(fn=>{"use strict";u();Object.defineProperty(fn,"__esModule",{value:!0});var ga=class extends Error{},Yc=class extends ga{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Gc=class extends ga{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Kc=class extends ga{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Na=class extends ga{},zo=class extends ga{constructor(t){super(`Invalid unit ${t}`)}},Rt=class extends ga{},ia=class extends ga{constructor(){super("Zone is an abstract class")}},j="numeric",Un="short",mn="long",Lo={year:j,month:j,day:j},qf={year:j,month:Un,day:j},kw={year:j,month:Un,day:j,weekday:Un},Uf={year:j,month:mn,day:j},Yf={year:j,month:mn,day:j,weekday:mn},Gf={hour:j,minute:j},Kf={hour:j,minute:j,second:j},Jf={hour:j,minute:j,second:j,timeZoneName:Un},jf={hour:j,minute:j,second:j,timeZoneName:mn},Zf={hour:j,minute:j,hourCycle:"h23"},Xf={hour:j,minute:j,second:j,hourCycle:"h23"},Qf={hour:j,minute:j,second:j,hourCycle:"h23",timeZoneName:Un},ep={hour:j,minute:j,second:j,hourCycle:"h23",timeZoneName:mn},tp={year:j,month:j,day:j,hour:j,minute:j},np={year:j,month:j,day:j,hour:j,minute:j,second:j},ap={year:j,month:Un,day:j,hour:j,minute:j},rp={year:j,month:Un,day:j,hour:j,minute:j,second:j},Tw={year:j,month:Un,day:j,weekday:Un,hour:j,minute:j},ip={year:j,month:mn,day:j,hour:j,minute:j,timeZoneName:Un},sp={year:j,month:mn,day:j,hour:j,minute:j,second:j,timeZoneName:Un},op={year:j,month:mn,day:j,weekday:mn,hour:j,minute:j,timeZoneName:mn},lp={year:j,month:mn,day:j,weekday:mn,hour:j,minute:j,second:j,timeZoneName:mn},Aa=class{get type(){throw new ia}get name(){throw new ia}get ianaName(){return this.name}get isUniversal(){throw new ia}offsetName(t,n){throw new ia}formatOffset(t,n){throw new ia}offset(t){throw new ia}equals(t){throw new ia}get isValid(){throw new ia}},zc=null,Ts=class e extends Aa{static get instance(){return zc===null&&(zc=new e),zc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:a}){return bp(t,n,a)}formatOffset(t,n){return ks(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}},Jc=new Map;function Mw(e){let t=Jc.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Jc.set(e,t)),t}var Dw={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Ow(e,t){let n=e.format(t).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,s,o,l,c,d]=a;return[s,r,i,o,l,c,d]}function Rw(e,t){let n=e.formatToParts(t),a=[];for(let r=0;r<n.length;r++){let{type:i,value:s}=n[r],o=Dw[i];i==="era"?a[o]=s:ge(o)||(a[o]=parseInt(s,10))}return a}var Lc=new Map,ya=class e extends Aa{static create(t){let n=Lc.get(t);return n===void 0&&Lc.set(t,n=new e(t)),n}static resetCache(){Lc.clear(),Jc.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:a}){return bp(t,n,a,this.name)}formatOffset(t,n){return ks(this.offset(t),n)}offset(t){if(!this.valid)return NaN;let n=new Date(t);if(isNaN(n))return NaN;let a=Mw(this.name),[r,i,s,o,l,c,d]=a.formatToParts?Rw(a,n):Ow(a,n);o==="BC"&&(r=-Math.abs(r)+1);let f=Uo({year:r,month:i,day:s,hour:l===24?0:l,minute:c,second:d,millisecond:0}),g=+n,I=g%1e3;return g-=I>=0?I:1e3+I,(f-g)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}},pf={};function Nw(e,t={}){let n=JSON.stringify([e,t]),a=pf[n];return a||(a=new Intl.ListFormat(e,t),pf[n]=a),a}var jc=new Map;function Zc(e,t={}){let n=JSON.stringify([e,t]),a=jc.get(n);return a===void 0&&(a=new Intl.DateTimeFormat(e,t),jc.set(n,a)),a}var Xc=new Map;function Ew(e,t={}){let n=JSON.stringify([e,t]),a=Xc.get(n);return a===void 0&&(a=new Intl.NumberFormat(e,t),Xc.set(n,a)),a}var Qc=new Map;function Aw(e,t={}){let{base:n,...a}=t,r=JSON.stringify([e,a]),i=Qc.get(r);return i===void 0&&(i=new Intl.RelativeTimeFormat(e,t),Qc.set(r,i)),i}var Cs=null;function Pw(){return Cs||(Cs=new Intl.DateTimeFormat().resolvedOptions().locale,Cs)}var eu=new Map;function cp(e){let t=eu.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),eu.set(e,t)),t}var tu=new Map;function Fw(e){let t=tu.get(e);if(!t){let n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...up,...t}),tu.set(e,t)}return t}function _w(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let n=e.indexOf("-u-");if(n===-1)return[e];{let a,r;try{a=Zc(e).resolvedOptions(),r=e}catch{let l=e.substring(0,n);a=Zc(l).resolvedOptions(),r=l}let{numberingSystem:i,calendar:s}=a;return[r,i,s]}}function zw(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Lw(e){let t=[];for(let n=1;n<=12;n++){let a=ot.utc(2009,n,1);t.push(e(a))}return t}function Vw(e){let t=[];for(let n=1;n<=7;n++){let a=ot.utc(2016,11,13+n);t.push(e(a))}return t}function Ro(e,t,n,a){let r=e.listingMode();return r==="error"?null:r==="en"?n(t):a(t)}function Ww(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||cp(e.locale).numberingSystem==="latn"}var nu=class{constructor(t,n,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:r,floor:i,...s}=a;if(!n||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=Ew(t,o)}}format(t){if(this.inf){let n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{let n=this.floor?Math.floor(t):fu(t,3);return St(n,this.padTo)}}},au=class{constructor(t,n,a){this.opts=a,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&ya.create(o).valid?(r=o,this.dt=t):(r="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=Zc(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:a}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},ru=class{constructor(t,n,a){this.opts={style:"long",...a},!n&&yp()&&(this.rtf=Aw(t,a))}format(t,n){return this.rtf?this.rtf.format(t,n):oS(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}},up={firstDay:1,minimalDays:4,weekend:[6,7]},Ze=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,a,r,i=!1){let s=t||it.defaultLocale,o=s||(i?"en-US":Pw()),l=n||it.defaultNumberingSystem,c=a||it.defaultOutputCalendar,d=su(r)||it.defaultWeekSettings;return new e(o,l,c,d,s)}static resetCache(){Cs=null,jc.clear(),Xc.clear(),Qc.clear(),eu.clear(),tu.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:a,weekSettings:r}={}){return e.create(t,n,a,r)}constructor(t,n,a,r,i){let[s,o,l]=_w(t);this.locale=s,this.numberingSystem=n||o||null,this.outputCalendar=a||l||null,this.weekSettings=r,this.intl=zw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Ww(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,su(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Ro(this,t,Cp,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");n&=!a;let r=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";if(!this.monthsCache[i][t]){let s=a?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[i][t]=Lw(s)}return this.monthsCache[i][t]})}weekdays(t,n=!1){return Ro(this,t,kp,()=>{let a=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=n?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=Vw(i=>this.extract(i,a,"weekday"))),this.weekdaysCache[r][t]})}meridiems(){return Ro(this,void 0,()=>Tp,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ot.utc(2016,11,13,9),ot.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Ro(this,t,Mp,()=>{let n={era:t};return this.eraCache[t]||(this.eraCache[t]=[ot.utc(-40,1,1),ot.utc(2017,1,1)].map(a=>this.extract(a,n,"era"))),this.eraCache[t]})}extract(t,n,a){let r=this.dtFormatter(t,n),i=r.formatToParts(),s=i.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(t={}){return new nu(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new au(t,this.intl,n)}relFormatter(t={}){return new ru(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Nw(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||cp(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:xp()?Fw(this.locale):up}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Vc=null,dn=class e extends Aa{static get utcInstance(){return Vc===null&&(Vc=new e(0)),Vc}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(Yo(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ks(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ks(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return ks(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}},Vo=class extends Aa{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Ra(e,t){if(ge(e)||e===null)return t;if(e instanceof Aa)return e;if(Yw(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Ts.instance:n==="utc"||n==="gmt"?dn.utcInstance:dn.parseSpecifier(n)||ya.create(e)}else return Ea(e)?dn.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Vo(e)}var cu={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},hf={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Hw=cu.hanidec.replace(/[\[|\]]/g,"").split("");function Bw(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(e[n].search(cu.hanidec)!==-1)t+=Hw.indexOf(e[n]);else for(let r in hf){let[i,s]=hf[r];a>=i&&a<=s&&(t+=a-i)}}return parseInt(t,10)}else return t}var iu=new Map;function $w(){iu.clear()}function $n({numberingSystem:e},t=""){let n=e||"latn",a=iu.get(n);a===void 0&&(a=new Map,iu.set(n,a));let r=a.get(t);return r===void 0&&(r=new RegExp(`${cu[n]}${t}`),a.set(t,r)),r}var gf=()=>Date.now(),yf="system",xf=null,bf=null,wf=null,Sf=60,Cf,vf=null,it=class{static get now(){return gf}static set now(t){gf=t}static set defaultZone(t){yf=t}static get defaultZone(){return Ra(yf,Ts.instance)}static get defaultLocale(){return xf}static set defaultLocale(t){xf=t}static get defaultNumberingSystem(){return bf}static set defaultNumberingSystem(t){bf=t}static get defaultOutputCalendar(){return wf}static set defaultOutputCalendar(t){wf=t}static get defaultWeekSettings(){return vf}static set defaultWeekSettings(t){vf=su(t)}static get twoDigitCutoffYear(){return Sf}static set twoDigitCutoffYear(t){Sf=t%100}static get throwOnInvalid(){return Cf}static set throwOnInvalid(t){Cf=t}static resetCaches(){Ze.resetCache(),ya.resetCache(),ot.resetCache(),$w()}},un=class{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},mp=[0,31,59,90,120,151,181,212,243,273,304,334],dp=[0,31,60,91,121,152,182,213,244,274,305,335];function Cn(e,t){return new un("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function uu(e,t,n){let a=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let r=a.getUTCDay();return r===0?7:r}function fp(e,t,n){return n+(Ds(e)?dp:mp)[t-1]}function pp(e,t){let n=Ds(e)?dp:mp,a=n.findIndex(i=>i<t),r=t-n[a];return{month:a+1,day:r}}function mu(e,t){return(e-t+7)%7+1}function Wo(e,t=4,n=1){let{year:a,month:r,day:i}=e,s=fp(a,r,i),o=mu(uu(a,r,i),n),l=Math.floor((s-o+14-t)/7),c;return l<1?(c=a-1,l=Ms(c,t,n)):l>Ms(a,t,n)?(c=a+1,l=1):c=a,{weekYear:c,weekNumber:l,weekday:o,...Go(e)}}function If(e,t=4,n=1){let{weekYear:a,weekNumber:r,weekday:i}=e,s=mu(uu(a,1,t),n),o=gi(a),l=r*7+i-s-7+t,c;l<1?(c=a-1,l+=gi(c)):l>o?(c=a+1,l-=gi(a)):c=a;let{month:d,day:m}=pp(c,l);return{year:c,month:d,day:m,...Go(e)}}function Wc(e){let{year:t,month:n,day:a}=e,r=fp(t,n,a);return{year:t,ordinal:r,...Go(e)}}function kf(e){let{year:t,ordinal:n}=e,{month:a,day:r}=pp(t,n);return{year:t,month:a,day:r,...Go(e)}}function Tf(e,t){if(!ge(e.localWeekday)||!ge(e.localWeekNumber)||!ge(e.localWeekYear)){if(!ge(e.weekday)||!ge(e.weekNumber)||!ge(e.weekYear))throw new Na("Cannot mix locale-based week fields with ISO-based week fields");return ge(e.localWeekday)||(e.weekday=e.localWeekday),ge(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),ge(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function qw(e,t=4,n=1){let a=qo(e.weekYear),r=vn(e.weekNumber,1,Ms(e.weekYear,t,n)),i=vn(e.weekday,1,7);return a?r?i?!1:Cn("weekday",e.weekday):Cn("week",e.weekNumber):Cn("weekYear",e.weekYear)}function Uw(e){let t=qo(e.year),n=vn(e.ordinal,1,gi(e.year));return t?n?!1:Cn("ordinal",e.ordinal):Cn("year",e.year)}function hp(e){let t=qo(e.year),n=vn(e.month,1,12),a=vn(e.day,1,Ho(e.year,e.month));return t?n?a?!1:Cn("day",e.day):Cn("month",e.month):Cn("year",e.year)}function gp(e){let{hour:t,minute:n,second:a,millisecond:r}=e,i=vn(t,0,23)||t===24&&n===0&&a===0&&r===0,s=vn(n,0,59),o=vn(a,0,59),l=vn(r,0,999);return i?s?o?l?!1:Cn("millisecond",r):Cn("second",a):Cn("minute",n):Cn("hour",t)}function ge(e){return typeof e>"u"}function Ea(e){return typeof e=="number"}function qo(e){return typeof e=="number"&&e%1===0}function Yw(e){return typeof e=="string"}function Gw(e){return Object.prototype.toString.call(e)==="[object Date]"}function yp(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function xp(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Kw(e){return Array.isArray(e)?e:[e]}function Mf(e,t,n){if(e.length!==0)return e.reduce((a,r)=>{let i=[t(r),r];return a&&n(a[0],i[0])===a[0]?a:i},null)[1]}function Jw(e,t){return t.reduce((n,a)=>(n[a]=e[a],n),{})}function xi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function su(e){if(e==null)return null;if(typeof e!="object")throw new Rt("Week settings must be an object");if(!vn(e.firstDay,1,7)||!vn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!vn(t,1,7)))throw new Rt("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function vn(e,t,n){return qo(e)&&e>=t&&e<=n}function jw(e,t){return e-t*Math.floor(e/t)}function St(e,t=2){let n=e<0,a;return n?a="-"+(""+-e).padStart(t,"0"):a=(""+e).padStart(t,"0"),a}function Oa(e){if(!(ge(e)||e===null||e===""))return parseInt(e,10)}function or(e){if(!(ge(e)||e===null||e===""))return parseFloat(e)}function du(e){if(!(ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function fu(e,t,n="round"){let a=10**t;switch(n){case"expand":return e>0?Math.ceil(e*a)/a:Math.floor(e*a)/a;case"trunc":return Math.trunc(e*a)/a;case"round":return Math.round(e*a)/a;case"floor":return Math.floor(e*a)/a;case"ceil":return Math.ceil(e*a)/a;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Ds(e){return e%4===0&&(e%100!==0||e%400===0)}function gi(e){return Ds(e)?366:365}function Ho(e,t){let n=jw(t-1,12)+1,a=e+(t-n)/12;return n===2?Ds(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Uo(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Df(e,t,n){return-mu(uu(e,1,t),n)+t-1}function Ms(e,t=4,n=1){let a=Df(e,t,n),r=Df(e+1,t,n);return(gi(e)-a+r)/7}function ou(e){return e>99?e:e>it.twoDigitCutoffYear?1900+e:2e3+e}function bp(e,t,n,a=null){let r=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(i.timeZone=a);let s={timeZoneName:t,...i},o=new Intl.DateTimeFormat(n,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function Yo(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let a=parseInt(t,10)||0,r=n<0||Object.is(n,-0)?-a:a;return n*60+r}function wp(e){let t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new Rt(`Invalid unit value ${e}`);return t}function Bo(e,t){let n={};for(let a in e)if(xi(e,a)){let r=e[a];if(r==null)continue;n[t(a)]=wp(r)}return n}function ks(e,t){let n=Math.trunc(Math.abs(e/60)),a=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${St(n,2)}:${St(a,2)}`;case"narrow":return`${r}${n}${a>0?`:${a}`:""}`;case"techie":return`${r}${St(n,2)}${St(a,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Go(e){return Jw(e,["hour","minute","second","millisecond"])}var Zw=["January","February","March","April","May","June","July","August","September","October","November","December"],Sp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Xw=["J","F","M","A","M","J","J","A","S","O","N","D"];function Cp(e){switch(e){case"narrow":return[...Xw];case"short":return[...Sp];case"long":return[...Zw];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var vp=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ip=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Qw=["M","T","W","T","F","S","S"];function kp(e){switch(e){case"narrow":return[...Qw];case"short":return[...Ip];case"long":return[...vp];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Tp=["AM","PM"],eS=["Before Christ","Anno Domini"],tS=["BC","AD"],nS=["B","A"];function Mp(e){switch(e){case"narrow":return[...nS];case"short":return[...tS];case"long":return[...eS];default:return null}}function aS(e){return Tp[e.hour<12?0:1]}function rS(e,t){return kp(t)[e.weekday-1]}function iS(e,t){return Cp(t)[e.month-1]}function sS(e,t){return Mp(t)[e.year<0?0:1]}function oS(e,t,n="always",a=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){let m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${r[e][0]}`;case-1:return m?"yesterday":`last ${r[e][0]}`;case 0:return m?"today":`this ${r[e][0]}`}}let s=Object.is(t,-0)||t<0,o=Math.abs(t),l=o===1,c=r[e],d=a?l?c[1]:c[2]||c[1]:l?r[e][0]:e;return s?`${o} ${d} ago`:`in ${o} ${d}`}function Of(e,t){let n="";for(let a of e)a.literal?n+=a.val:n+=t(a.val);return n}var lS={D:Lo,DD:qf,DDD:Uf,DDDD:Yf,t:Gf,tt:Kf,ttt:Jf,tttt:jf,T:Zf,TT:Xf,TTT:Qf,TTTT:ep,f:tp,ff:ap,fff:ip,ffff:op,F:np,FF:rp,FFF:sp,FFFF:lp},cn=class e{static create(t,n={}){return new e(t,n)}static parseFormat(t){let n=null,a="",r=!1,i=[];for(let s=0;s<t.length;s++){let o=t.charAt(s);o==="'"?((a.length>0||r)&&i.push({literal:r||/^\s+$/.test(a),val:a===""?"'":a}),n=null,a="",r=!r):r||o===n?a+=o:(a.length>0&&i.push({literal:/^\s+$/.test(a),val:a}),a=o,n=o)}return a.length>0&&i.push({literal:r||/^\s+$/.test(a),val:a}),i}static macroTokenToFormatOpts(t){return lS[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,a=void 0){if(this.opts.forceSimple)return St(t,n);let r={...this.opts};return n>0&&(r.padTo=n),a&&(r.signDisplay=a),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){let a=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(g,I)=>this.loc.extract(t,g,I),s=g=>t.isOffsetFixed&&t.offset===0&&g.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,g.format):"",o=()=>a?aS(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(g,I)=>a?iS(t,g):i(I?{month:g}:{month:g,day:"numeric"},"month"),c=(g,I)=>a?rS(t,g):i(I?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),d=g=>{let I=e.macroTokenToFormatOpts(g);return I?this.formatWithSystemDefault(t,I):g},m=g=>a?sS(t,g):i({era:g},"era"),f=g=>{switch(g){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return o();case"d":return r?i({day:"numeric"},"day"):this.num(t.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(t.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(t.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(g)}};return Of(e.parseFormat(n),f)}formatDurationFromString(t,n){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,r=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(d,m)=>f=>{let g=r(f);if(g){let I=m.isNegativeDuration&&g!==m.largestUnit?a:1,C;return this.opts.signMode==="negativeLargestOnly"&&g!==m.largestUnit?C="never":this.opts.signMode==="all"?C="always":C="auto",this.num(d.get(g)*I,f.length,C)}else return f},s=e.parseFormat(n),o=s.reduce((d,{literal:m,val:f})=>m?d:d.concat(f),[]),l=t.shiftTo(...o.map(r).filter(d=>d)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Of(s,i(l,c))}},Dp=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bi(...e){let t=e.reduce((n,a)=>n+a.source,"");return RegExp(`^${t}$`)}function wi(...e){return t=>e.reduce(([n,a,r],i)=>{let[s,o,l]=i(t,r);return[{...n,...s},o||a,l]},[{},null,1]).slice(0,2)}function Si(e,...t){if(e==null)return[null,null];for(let[n,a]of t){let r=n.exec(e);if(r)return a(r)}return[null,null]}function Op(...e){return(t,n)=>{let a={},r;for(r=0;r<e.length;r++)a[e[r]]=Oa(t[n+r]);return[a,null,n+r]}}var Rp=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,cS=`(?:${Rp.source}?(?:\\[(${Dp.source})\\])?)?`,pu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Np=RegExp(`${pu.source}${cS}`),hu=RegExp(`(?:[Tt]${Np.source})?`),uS=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,mS=/(\d{4})-?W(\d\d)(?:-?(\d))?/,dS=/(\d{4})-?(\d{3})/,fS=Op("weekYear","weekNumber","weekDay"),pS=Op("year","ordinal"),hS=/(\d{4})-(\d\d)-(\d\d)/,Ep=RegExp(`${pu.source} ?(?:${Rp.source}|(${Dp.source}))?`),gS=RegExp(`(?: ${Ep.source})?`);function yi(e,t,n){let a=e[t];return ge(a)?n:Oa(a)}function yS(e,t){return[{year:yi(e,t),month:yi(e,t+1,1),day:yi(e,t+2,1)},null,t+3]}function Ci(e,t){return[{hours:yi(e,t,0),minutes:yi(e,t+1,0),seconds:yi(e,t+2,0),milliseconds:du(e[t+3])},null,t+4]}function Os(e,t){let n=!e[t]&&!e[t+1],a=Yo(e[t+1],e[t+2]),r=n?null:dn.instance(a);return[{},r,t+3]}function Rs(e,t){let n=e[t]?ya.create(e[t]):null;return[{},n,t+1]}var xS=RegExp(`^T?${pu.source}$`),bS=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function wS(e){let[t,n,a,r,i,s,o,l,c]=e,d=t[0]==="-",m=l&&l[0]==="-",f=(g,I=!1)=>g!==void 0&&(I||g&&d)?-g:g;return[{years:f(or(n)),months:f(or(a)),weeks:f(or(r)),days:f(or(i)),hours:f(or(s)),minutes:f(or(o)),seconds:f(or(l),l==="-0"),milliseconds:f(du(c),m)}]}var SS={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function gu(e,t,n,a,r,i,s){let o={year:t.length===2?ou(Oa(t)):Oa(t),month:Sp.indexOf(n)+1,day:Oa(a),hour:Oa(r),minute:Oa(i)};return s&&(o.second=Oa(s)),e&&(o.weekday=e.length>3?vp.indexOf(e)+1:Ip.indexOf(e)+1),o}var CS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function vS(e){let[,t,n,a,r,i,s,o,l,c,d,m]=e,f=gu(t,r,a,n,i,s,o),g;return l?g=SS[l]:c?g=0:g=Yo(d,m),[f,new dn(g)]}function IS(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var kS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,TS=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,MS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Rf(e){let[,t,n,a,r,i,s,o]=e;return[gu(t,r,a,n,i,s,o),dn.utcInstance]}function DS(e){let[,t,n,a,r,i,s,o]=e;return[gu(t,o,n,a,r,i,s),dn.utcInstance]}var OS=bi(uS,hu),RS=bi(mS,hu),NS=bi(dS,hu),ES=bi(Np),Ap=wi(yS,Ci,Os,Rs),AS=wi(fS,Ci,Os,Rs),PS=wi(pS,Ci,Os,Rs),FS=wi(Ci,Os,Rs);function _S(e){return Si(e,[OS,Ap],[RS,AS],[NS,PS],[ES,FS])}function zS(e){return Si(IS(e),[CS,vS])}function LS(e){return Si(e,[kS,Rf],[TS,Rf],[MS,DS])}function VS(e){return Si(e,[bS,wS])}var WS=wi(Ci);function HS(e){return Si(e,[xS,WS])}var BS=bi(hS,gS),$S=bi(Ep),qS=wi(Ci,Os,Rs);function US(e){return Si(e,[BS,Ap],[$S,qS])}var Nf="Invalid Duration",Pp={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},YS={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Pp},Sn=146097/400,fi=146097/4800,GS={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:fi/7,days:fi,hours:fi*24,minutes:fi*24*60,seconds:fi*24*60*60,milliseconds:fi*24*60*60*1e3},...Pp},cr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],KS=cr.slice(0).reverse();function ha(e,t,n=!1){let a={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Mt(a)}function Fp(e,t){var n;let a=(n=t.milliseconds)!=null?n:0;for(let r of KS.slice(1))t[r]&&(a+=t[r]*e[r].milliseconds);return a}function Ef(e,t){let n=Fp(e,t)<0?-1:1;cr.reduceRight((a,r)=>{if(ge(t[r]))return a;if(a){let i=t[a]*n,s=e[r][a],o=Math.floor(i/s);t[r]+=o*n,t[a]-=o*s*n}return r},null),cr.reduce((a,r)=>{if(ge(t[r]))return a;if(a){let i=t[a]%1;t[a]-=i,t[r]+=i*e[a][r]}return r},null)}function Af(e){let t={};for(let[n,a]of Object.entries(e))a!==0&&(t[n]=a);return t}var Mt=class e{constructor(t){let n=t.conversionAccuracy==="longterm"||!1,a=n?GS:YS;t.matrix&&(a=t.matrix),this.values=t.values,this.loc=t.loc||Ze.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Rt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Bo(t,e.normalizeUnit),loc:Ze.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Ea(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new Rt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){let[a]=VS(t);return a?e.fromObject(a,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){let[a]=HS(t);return a?e.fromObject(a,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Rt("need to specify a reason the Duration is invalid");let a=t instanceof un?t:new un(t,n);if(it.throwOnInvalid)throw new Kc(a);return new e({invalid:a})}static normalizeUnit(t){let n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new zo(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){let a={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?cn.create(this.loc,a).formatDurationFromString(this,t):Nf}toHuman(t={}){if(!this.isValid)return Nf;let n=t.showZeros!==!1,a=cr.map(r=>{let i=this.values[r];return ge(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=fu(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},ot.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Fp(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t),a={};for(let r of cr)(xi(n.values,r)||xi(this.values,r))&&(a[r]=n.get(r)+this.get(r));return ha(this,{values:a},!0)}minus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;let n={};for(let a of Object.keys(this.values))n[a]=wp(t(this.values[a],a));return ha(this,{values:n},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let n={...this.values,...Bo(t,e.normalizeUnit)};return ha(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:a,matrix:r}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:r,conversionAccuracy:a};return ha(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return Ef(this.matrix,t),ha(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=Af(this.normalize().shiftToAll().toObject());return ha(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let n={},a={},r=this.toObject(),i;for(let s of cr)if(t.indexOf(s)>=0){i=s;let o=0;for(let c in a)o+=this.matrix[c][s]*a[c],a[c]=0;Ea(r[s])&&(o+=r[s]);let l=Math.trunc(o);n[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else Ea(r[s])&&(a[s]=r[s]);for(let s in a)a[s]!==0&&(n[i]+=s===i?a[s]:a[s]/this.matrix[i][s]);return Ef(this.matrix,n),ha(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return ha(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;let t=Af(this.values);return ha(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(a,r){return a===void 0||a===0?r===void 0||r===0:a===r}for(let a of cr)if(!n(this.values[a],t.values[a]))return!1;return!0}},pi="Invalid Interval";function JS(e,t){return!e||!e.isValid?mr.invalid("missing or invalid start"):!t||!t.isValid?mr.invalid("missing or invalid end"):t<e?mr.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var mr=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Rt("need to specify a reason the Interval is invalid");let a=t instanceof un?t:new un(t,n);if(it.throwOnInvalid)throw new Gc(a);return new e({invalid:a})}static fromDateTimes(t,n){let a=Ss(t),r=Ss(n),i=JS(a,r);return i??new e({start:a,end:r})}static after(t,n){let a=Mt.fromDurationLike(n),r=Ss(t);return e.fromDateTimes(r,r.plus(a))}static before(t,n){let a=Mt.fromDurationLike(n),r=Ss(t);return e.fromDateTimes(r.minus(a),r)}static fromISO(t,n){let[a,r]=(t||"").split("/",2);if(a&&r){let i,s;try{i=ot.fromISO(a,n),s=i.isValid}catch{s=!1}let o,l;try{o=ot.fromISO(r,n),l=o.isValid}catch{l=!1}if(s&&l)return e.fromDateTimes(i,o);if(s){let c=Mt.fromISO(r,n);if(c.isValid)return e.after(i,c)}else if(l){let c=Mt.fromISO(a,n);if(c.isValid)return e.before(o,c)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;let a=this.start.startOf(t,n),r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:a.locale}):r=this.end,r=r.startOf(t,n),Math.floor(r.diff(a,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];let n=t.map(Ss).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:r}=this,i=0;for(;r<this.e;){let s=n[i]||this.e,o=+s>+this.e?this.e:s;a.push(e.fromDateTimes(r,o)),r=o,i+=1}return a}splitBy(t){let n=Mt.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:a}=this,r=1,i,s=[];for(;a<this.e;){let o=this.start.plus(n.mapUnits(l=>l*r));i=+o>+this.e?this.e:o,s.push(e.fromDateTimes(a,i)),a=i,r+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let n=this.s>t.s?this.s:t.s,a=this.e<t.e?this.e:t.e;return n>=a?null:e.fromDateTimes(n,a)}union(t){if(!this.isValid)return this;let n=this.s<t.s?this.s:t.s,a=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,a)}static merge(t){let[n,a]=t.sort((r,i)=>r.s-i.s).reduce(([r,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[r,i.union(s)]:[r.concat([i]),s]:[r,s],[[],null]);return a&&n.push(a),n}static xor(t){let n=null,a=0,r=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...i),o=s.sort((l,c)=>l.time-c.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?n=l.time:(n&&+n!=+l.time&&r.push(e.fromDateTimes(n,l.time)),n=null);return e.merge(r)}difference(...t){return e.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:pi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Lo,n={}){return this.isValid?cn.create(this.s.loc.clone(n),t).formatInterval(this):pi}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:pi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:pi}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:pi}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:pi}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Mt.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},ur=class{static hasDST(t=it.defaultZone){let n=ot.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ya.isValidZone(t)}static normalizeZone(t){return Ra(t,it.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Ze.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Ze.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Ze.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Ze.create(n,a,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Ze.create(n,a,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null}={}){return(r||Ze.create(n,a,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null}={}){return(r||Ze.create(n,a,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ze.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Ze.create(n,null,"gregory").eras(t)}static features(){return{relative:yp(),localeWeek:xp()}}};function Pf(e,t){let n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=n(t)-n(e);return Math.floor(Mt.fromMillis(a).as("days"))}function jS(e,t,n){let a=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let d=Pf(l,c);return(d-d%7)/7}],["days",Pf]],r={},i=e,s,o;for(let[l,c]of a)n.indexOf(l)>=0&&(s=l,r[l]=c(e,t),o=i.plus(r),o>t?(r[l]--,e=i.plus(r),e>t&&(o=e,r[l]--,e=i.plus(r))):e=o);return[e,r,o,s]}function ZS(e,t,n,a){let[r,i,s,o]=jS(e,t,n),l=t-r,c=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(s<t&&(s=r.plus({[o]:1})),s!==r&&(i[o]=(i[o]||0)+l/(s-r)));let d=Mt.fromObject(i,a);return c.length>0?Mt.fromMillis(l,a).shiftTo(...c).plus(d):d}var XS="missing Intl.DateTimeFormat.formatToParts support";function Ve(e,t=n=>n){return{regex:e,deser:([n])=>t(Bw(n))}}var QS="\xA0",_p=`[ ${QS}]`,zp=new RegExp(_p,"g");function eC(e){return e.replace(/\./g,"\\.?").replace(zp,_p)}function Ff(e){return e.replace(/\./g,"").replace(zp," ").toLowerCase()}function qn(e,t){return e===null?null:{regex:RegExp(e.map(eC).join("|")),deser:([n])=>e.findIndex(a=>Ff(n)===Ff(a))+t}}function _f(e,t){return{regex:e,deser:([,n,a])=>Yo(n,a),groups:t}}function No(e){return{regex:e,deser:([t])=>t}}function tC(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function nC(e,t){let n=$n(t),a=$n(t,"{2}"),r=$n(t,"{3}"),i=$n(t,"{4}"),s=$n(t,"{6}"),o=$n(t,"{1,2}"),l=$n(t,"{1,3}"),c=$n(t,"{1,6}"),d=$n(t,"{1,9}"),m=$n(t,"{2,4}"),f=$n(t,"{4,6}"),g=L=>({regex:RegExp(tC(L.val)),deser:([U])=>U,literal:!0}),C=(L=>{if(e.literal)return g(L);switch(L.val){case"G":return qn(t.eras("short"),0);case"GG":return qn(t.eras("long"),0);case"y":return Ve(c);case"yy":return Ve(m,ou);case"yyyy":return Ve(i);case"yyyyy":return Ve(f);case"yyyyyy":return Ve(s);case"M":return Ve(o);case"MM":return Ve(a);case"MMM":return qn(t.months("short",!0),1);case"MMMM":return qn(t.months("long",!0),1);case"L":return Ve(o);case"LL":return Ve(a);case"LLL":return qn(t.months("short",!1),1);case"LLLL":return qn(t.months("long",!1),1);case"d":return Ve(o);case"dd":return Ve(a);case"o":return Ve(l);case"ooo":return Ve(r);case"HH":return Ve(a);case"H":return Ve(o);case"hh":return Ve(a);case"h":return Ve(o);case"mm":return Ve(a);case"m":return Ve(o);case"q":return Ve(o);case"qq":return Ve(a);case"s":return Ve(o);case"ss":return Ve(a);case"S":return Ve(l);case"SSS":return Ve(r);case"u":return No(d);case"uu":return No(o);case"uuu":return Ve(n);case"a":return qn(t.meridiems(),0);case"kkkk":return Ve(i);case"kk":return Ve(m,ou);case"W":return Ve(o);case"WW":return Ve(a);case"E":case"c":return Ve(n);case"EEE":return qn(t.weekdays("short",!1),1);case"EEEE":return qn(t.weekdays("long",!1),1);case"ccc":return qn(t.weekdays("short",!0),1);case"cccc":return qn(t.weekdays("long",!0),1);case"Z":case"ZZ":return _f(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return _f(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return No(/[a-z_+-/]{1,256}?/i);case" ":return No(/[^\S\n\r]/);default:return g(L)}})(e)||{invalidReason:XS};return C.token=e,C}var aC={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function rC(e,t,n){let{type:a,value:r}=e;if(a==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let i=t[a],s=a;a==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let o=aC[s];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function iC(e){return[`^${e.map(n=>n.regex).reduce((n,a)=>`${n}(${a.source})`,"")}$`,e]}function sC(e,t,n){let a=e.match(t);if(a){let r={},i=1;for(let s in n)if(xi(n,s)){let o=n[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(a.slice(i,i+l))),i+=l}return[a,r]}else return[a,{}]}function oC(e){let t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},n=null,a;return ge(e.z)||(n=ya.create(e.z)),ge(e.Z)||(n||(n=new dn(e.Z)),a=e.Z),ge(e.q)||(e.M=(e.q-1)*3+1),ge(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),ge(e.u)||(e.S=du(e.u)),[Object.keys(e).reduce((i,s)=>{let o=t(s);return o&&(i[o]=e[s]),i},{}),n,a]}var Hc=null;function lC(){return Hc||(Hc=ot.fromMillis(1555555555555)),Hc}function cC(e,t){if(e.literal)return e;let n=cn.macroTokenToFormatOpts(e.val),a=Wp(n,t);return a==null||a.includes(void 0)?e:a}function Lp(e,t){return Array.prototype.concat(...e.map(n=>cC(n,t)))}var $o=class{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Lp(cn.parseFormat(n),t),this.units=this.tokens.map(a=>nC(a,t)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,r]=iC(this.units);this.regex=RegExp(a,"i"),this.handlers=r}}explainFromTokens(t){if(this.isValid){let[n,a]=sC(t,this.regex,this.handlers),[r,i,s]=a?oC(a):[null,null,void 0];if(xi(a,"a")&&xi(a,"H"))throw new Na("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:a,result:r,zone:i,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function Vp(e,t,n){return new $o(e,n).explainFromTokens(t)}function uC(e,t,n){let{result:a,zone:r,specificOffset:i,invalidReason:s}=Vp(e,t,n);return[a,r,i,s]}function Wp(e,t){if(!e)return null;let a=cn.create(t,e).dtFormatter(lC()),r=a.formatToParts(),i=a.resolvedOptions();return r.map(s=>rC(s,e,i))}var Bc="Invalid DateTime",zf=864e13;function vs(e){return new un("unsupported zone",`the zone "${e.name}" is not supported`)}function $c(e){return e.weekData===null&&(e.weekData=Wo(e.c)),e.weekData}function qc(e){return e.localWeekData===null&&(e.localWeekData=Wo(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function lr(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ot({...n,...t,old:n})}function Hp(e,t,n){let a=e-t*60*1e3,r=n.offset(a);if(t===r)return[a,t];a-=(r-t)*60*1e3;let i=n.offset(a);return r===i?[a,r]:[e-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Eo(e,t){e+=t*60*1e3;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Po(e,t,n){return Hp(Uo(e),t,n)}function Lf(e,t){let n=e.o,a=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:a,month:r,day:Math.min(e.c.day,Ho(a,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=Mt.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=Uo(i),[l,c]=Hp(o,n,e.zone);return s!==0&&(l+=s,c=e.zone.offset(l)),{ts:l,o:c}}function hi(e,t,n,a,r,i){let{setZone:s,zone:o}=n;if(e&&Object.keys(e).length!==0||t){let l=t||o,c=ot.fromObject(e,{...n,zone:l,specificOffset:i});return s?c:c.setZone(o)}else return ot.invalid(new un("unparsable",`the input "${r}" can't be parsed as ${a}`))}function Ao(e,t,n=!0){return e.isValid?cn.create(Ze.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Uc(e,t,n){let a=e.c.year>9999||e.c.year<0,r="";if(a&&e.c.year>=0&&(r+="+"),r+=St(e.c.year,a?6:4),n==="year")return r;if(t){if(r+="-",r+=St(e.c.month),n==="month")return r;r+="-"}else if(r+=St(e.c.month),n==="month")return r;return r+=St(e.c.day),r}function Vf(e,t,n,a,r,i,s){let o=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=St(e.c.hour),s==="hour")break;if(t){if(l+=":",l+=St(e.c.minute),s==="minute")break;o&&(l+=":",l+=St(e.c.second))}else{if(l+=St(e.c.minute),s==="minute")break;o&&(l+=St(e.c.second))}if(s==="second")break;o&&(!a||e.c.millisecond!==0)&&(l+=".",l+=St(e.c.millisecond,3))}return r&&(e.isOffsetFixed&&e.offset===0&&!i?l+="Z":e.o<0?(l+="-",l+=St(Math.trunc(-e.o/60)),l+=":",l+=St(Math.trunc(-e.o%60))):(l+="+",l+=St(Math.trunc(e.o/60)),l+=":",l+=St(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}var Bp={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},mC={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},dC={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Fo=["year","month","day","hour","minute","second","millisecond"],fC=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],pC=["year","ordinal","hour","minute","second","millisecond"];function _o(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new zo(e);return t}function Wf(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return _o(e)}}function hC(e){if(Is===void 0&&(Is=it.now()),e.type!=="iana")return e.offset(Is);let t=e.name,n=lu.get(t);return n===void 0&&(n=e.offset(Is),lu.set(t,n)),n}function Hf(e,t){let n=Ra(t.zone,it.defaultZone);if(!n.isValid)return ot.invalid(vs(n));let a=Ze.fromObject(t),r,i;if(ge(e.year))r=it.now();else{for(let l of Fo)ge(e[l])&&(e[l]=Bp[l]);let s=hp(e)||gp(e);if(s)return ot.invalid(s);let o=hC(n);[r,i]=Po(e,o,n)}return new ot({ts:r,zone:n,loc:a,o:i})}function Bf(e,t,n){let a=ge(n.round)?!0:n.round,r=ge(n.rounding)?"trunc":n.rounding,i=(o,l)=>(o=fu(o,a||n.calendary?0:2,n.calendary?"round":r),t.loc.clone(n).relFormatter(n).format(o,l)),s=o=>n.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(n.unit)return i(s(n.unit),n.unit);for(let o of n.units){let l=s(o);if(Math.abs(l)>=1)return i(l,o)}return i(e>t?-0:0,n.units[n.units.length-1])}function $f(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}var Is,lu=new Map,ot=class e{constructor(t){let n=t.zone||it.defaultZone,a=t.invalid||(Number.isNaN(t.ts)?new un("invalid input"):null)||(n.isValid?null:vs(n));this.ts=ge(t.ts)?it.now():t.ts;let r=null,i=null;if(!a)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[r,i]=[t.old.c,t.old.o];else{let o=Ea(t.o)&&!t.old?t.o:n.offset(this.ts);r=Eo(this.ts,o),a=Number.isNaN(r.year)?new un("invalid input"):null,r=a?null:r,i=a?null:o}this._zone=n,this.loc=t.loc||Ze.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,n]=$f(arguments),[a,r,i,s,o,l,c]=n;return Hf({year:a,month:r,day:i,hour:s,minute:o,second:l,millisecond:c},t)}static utc(){let[t,n]=$f(arguments),[a,r,i,s,o,l,c]=n;return t.zone=dn.utcInstance,Hf({year:a,month:r,day:i,hour:s,minute:o,second:l,millisecond:c},t)}static fromJSDate(t,n={}){let a=Gw(t)?t.valueOf():NaN;if(Number.isNaN(a))return e.invalid("invalid input");let r=Ra(n.zone,it.defaultZone);return r.isValid?new e({ts:a,zone:r,loc:Ze.fromObject(n)}):e.invalid(vs(r))}static fromMillis(t,n={}){if(Ea(t))return t<-zf||t>zf?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ra(n.zone,it.defaultZone),loc:Ze.fromObject(n)});throw new Rt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Ea(t))return new e({ts:t*1e3,zone:Ra(n.zone,it.defaultZone),loc:Ze.fromObject(n)});throw new Rt("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};let a=Ra(n.zone,it.defaultZone);if(!a.isValid)return e.invalid(vs(a));let r=Ze.fromObject(n),i=Bo(t,Wf),{minDaysInFirstWeek:s,startOfWeek:o}=Tf(i,r),l=it.now(),c=ge(n.specificOffset)?a.offset(l):n.specificOffset,d=!ge(i.ordinal),m=!ge(i.year),f=!ge(i.month)||!ge(i.day),g=m||f,I=i.weekYear||i.weekNumber;if((g||d)&&I)throw new Na("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&d)throw new Na("Can't mix ordinal dates with month/day");let C=I||i.weekday&&!g,L,U,oe=Eo(l,c);C?(L=fC,U=mC,oe=Wo(oe,s,o)):d?(L=pC,U=dC,oe=Wc(oe)):(L=Fo,U=Bp);let de=!1;for(let z of L){let H=i[z];ge(H)?de?i[z]=U[z]:i[z]=oe[z]:de=!0}let B=C?qw(i,s,o):d?Uw(i):hp(i),ue=B||gp(i);if(ue)return e.invalid(ue);let R=C?If(i,s,o):d?kf(i):i,[ce,Ce]=Po(R,c,a),Te=new e({ts:ce,zone:a,o:Ce,loc:r});return i.weekday&&g&&t.weekday!==Te.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${Te.toISO()}`):Te.isValid?Te:e.invalid(Te.invalid)}static fromISO(t,n={}){let[a,r]=_S(t);return hi(a,r,n,"ISO 8601",t)}static fromRFC2822(t,n={}){let[a,r]=zS(t);return hi(a,r,n,"RFC 2822",t)}static fromHTTP(t,n={}){let[a,r]=LS(t);return hi(a,r,n,"HTTP",n)}static fromFormat(t,n,a={}){if(ge(t)||ge(n))throw new Rt("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:i=null}=a,s=Ze.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[o,l,c,d]=uC(s,t,n);return d?e.invalid(d):hi(o,l,a,`format ${n}`,t,c)}static fromString(t,n,a={}){return e.fromFormat(t,n,a)}static fromSQL(t,n={}){let[a,r]=US(t);return hi(a,r,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Rt("need to specify a reason the DateTime is invalid");let a=t instanceof un?t:new un(t,n);if(it.throwOnInvalid)throw new Yc(a);return new e({invalid:a})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){let a=Wp(t,Ze.fromObject(n));return a?a.map(r=>r?r.val:null).join(""):null}static expandFormat(t,n={}){return Lp(cn.parseFormat(t),Ze.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Is=void 0,lu.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?$c(this).weekYear:NaN}get weekNumber(){return this.isValid?$c(this).weekNumber:NaN}get weekday(){return this.isValid?$c(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?qc(this).weekday:NaN}get localWeekNumber(){return this.isValid?qc(this).weekNumber:NaN}get localWeekYear(){return this.isValid?qc(this).weekYear:NaN}get ordinal(){return this.isValid?Wc(this.c).ordinal:NaN}get monthShort(){return this.isValid?ur.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ur.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ur.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ur.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,n=6e4,a=Uo(this.c),r=this.zone.offset(a-t),i=this.zone.offset(a+t),s=this.zone.offset(a-r*n),o=this.zone.offset(a-i*n);if(s===o)return[this];let l=a-s*n,c=a-o*n,d=Eo(l,s),m=Eo(c,o);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[lr(this,{ts:l}),lr(this,{ts:c})]:[this]}get isInLeapYear(){return Ds(this.year)}get daysInMonth(){return Ho(this.year,this.month)}get daysInYear(){return this.isValid?gi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ms(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ms(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:n,numberingSystem:a,calendar:r}=cn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:a,outputCalendar:r}}toUTC(t=0,n={}){return this.setZone(dn.instance(t),n)}toLocal(){return this.setZone(it.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:a=!1}={}){if(t=Ra(t,it.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(n||a){let i=t.offset(this.ts),s=this.toObject();[r]=Po(s,i,t)}return lr(this,{ts:r,zone:t})}else return e.invalid(vs(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:a}={}){let r=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:a});return lr(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let n=Bo(t,Wf),{minDaysInFirstWeek:a,startOfWeek:r}=Tf(n,this.loc),i=!ge(n.weekYear)||!ge(n.weekNumber)||!ge(n.weekday),s=!ge(n.ordinal),o=!ge(n.year),l=!ge(n.month)||!ge(n.day),c=o||l,d=n.weekYear||n.weekNumber;if((c||s)&&d)throw new Na("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Na("Can't mix ordinal dates with month/day");let m;i?m=If({...Wo(this.c,a,r),...n},a,r):ge(n.ordinal)?(m={...this.toObject(),...n},ge(n.day)&&(m.day=Math.min(Ho(m.year,m.month),m.day))):m=kf({...Wc(this.c),...n});let[f,g]=Po(m,this.o,this.zone);return lr(this,{ts:f,o:g})}plus(t){if(!this.isValid)return this;let n=Mt.fromDurationLike(t);return lr(this,Lf(this,n))}minus(t){if(!this.isValid)return this;let n=Mt.fromDurationLike(t).negate();return lr(this,Lf(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;let a={},r=Mt.normalizeUnit(t);switch(r){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(r==="weeks")if(n){let i=this.loc.getStartOfWeek(),{weekday:s}=this;s<i&&(a.weekNumber=this.weekNumber-1),a.weekday=i}else a.weekday=1;if(r==="quarters"){let i=Math.ceil(this.month/3);a.month=(i-1)*3+1}return this.set(a)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?cn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Bc}toLocaleString(t=Lo,n={}){return this.isValid?cn.create(this.loc.clone(n),t).formatDateTime(this):Bc}toLocaleParts(t={}){return this.isValid?cn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:a=!1,includeOffset:r=!0,extendedZone:i=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=_o(s);let o=t==="extended",l=Uc(this,o,s);return Fo.indexOf(s)>=3&&(l+="T"),l+=Vf(this,o,n,a,r,i,s),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Uc(this,t==="extended",_o(n)):null}toISOWeekDate(){return Ao(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:a=!0,includePrefix:r=!1,extendedZone:i=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=_o(o),(r&&Fo.indexOf(o)>=3?"T":"")+Vf(this,s==="extended",n,t,a,i,o)):null}toRFC2822(){return Ao(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ao(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Uc(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:a=!0}={}){let r="HH:mm:ss.SSS";return(n||t)&&(a&&(r+=" "),n?r+="z":t&&(r+="ZZ")),Ao(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Bc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",a={}){if(!this.isValid||!t.isValid)return Mt.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...a},i=Kw(n).map(Mt.normalizeUnit),s=t.valueOf()>this.valueOf(),o=s?this:t,l=s?t:this,c=ZS(o,l,i,r);return s?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(e.now(),t,n)}until(t){return this.isValid?mr.fromDateTimes(this,t):this}hasSame(t,n,a){if(!this.isValid)return!1;let r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,a)<=r&&r<=i.endOf(n,a)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let n=t.base||e.fromObject({},{zone:this.zone}),a=t.padding?this<n?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(r=t.unit,i=void 0),Bf(n,this.plus(a),{...t,numeric:"always",units:r,unit:i})}toRelativeCalendar(t={}){return this.isValid?Bf(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new Rt("min requires all arguments be DateTimes");return Mf(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new Rt("max requires all arguments be DateTimes");return Mf(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,a={}){let{locale:r=null,numberingSystem:i=null}=a,s=Ze.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return Vp(s,t,n)}static fromStringExplain(t,n,a={}){return e.fromFormatExplain(t,n,a)}static buildFormatParser(t,n={}){let{locale:a=null,numberingSystem:r=null}=n,i=Ze.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0});return new $o(i,t)}static fromFormatParser(t,n,a={}){if(ge(t)||ge(n))throw new Rt("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:i=null}=a,s=Ze.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!s.equals(n.locale))throw new Rt(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${n.locale}`);let{result:o,zone:l,specificOffset:c,invalidReason:d}=n.explainFromTokens(t);return d?e.invalid(d):hi(o,l,a,`format ${n.format}`,t,c)}static get DATE_SHORT(){return Lo}static get DATE_MED(){return qf}static get DATE_MED_WITH_WEEKDAY(){return kw}static get DATE_FULL(){return Uf}static get DATE_HUGE(){return Yf}static get TIME_SIMPLE(){return Gf}static get TIME_WITH_SECONDS(){return Kf}static get TIME_WITH_SHORT_OFFSET(){return Jf}static get TIME_WITH_LONG_OFFSET(){return jf}static get TIME_24_SIMPLE(){return Zf}static get TIME_24_WITH_SECONDS(){return Xf}static get TIME_24_WITH_SHORT_OFFSET(){return Qf}static get TIME_24_WITH_LONG_OFFSET(){return ep}static get DATETIME_SHORT(){return tp}static get DATETIME_SHORT_WITH_SECONDS(){return np}static get DATETIME_MED(){return ap}static get DATETIME_MED_WITH_SECONDS(){return rp}static get DATETIME_MED_WITH_WEEKDAY(){return Tw}static get DATETIME_FULL(){return ip}static get DATETIME_FULL_WITH_SECONDS(){return sp}static get DATETIME_HUGE(){return op}static get DATETIME_HUGE_WITH_SECONDS(){return lp}};function Ss(e){if(ot.isDateTime(e))return e;if(e&&e.valueOf&&Ea(e.valueOf()))return ot.fromJSDate(e);if(e&&typeof e=="object")return ot.fromObject(e);throw new Rt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var gC="3.7.2";fn.DateTime=ot;fn.Duration=Mt;fn.FixedOffsetZone=dn;fn.IANAZone=ya;fn.Info=ur;fn.Interval=mr;fn.InvalidZone=Vo;fn.Settings=it;fn.SystemZone=Ts;fn.VERSION=gC;fn.Zone=Aa});var Jo=D(Jt=>{"use strict";u();Object.defineProperty(Jt,"__esModule",{value:!0});Jt.CronDate=Jt.DAYS_IN_MONTH=Jt.DateMathOp=Jt.TimeUnit=void 0;var dr=$p(),Bt;(function(e){e.Second="Second",e.Minute="Minute",e.Hour="Hour",e.Day="Day",e.Month="Month",e.Year="Year"})(Bt||(Jt.TimeUnit=Bt={}));var Ns;(function(e){e.Add="Add",e.Subtract="Subtract"})(Ns||(Jt.DateMathOp=Ns={}));Jt.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);var G,Fa,_a,fr,Es,yu,sa,Pa,vi=class vi{constructor(t,n){De(this,sa);De(this,G);De(this,Fa,null);De(this,_a,null);De(this,fr,null);let a={zone:n};if(t?t instanceof vi?(ne(this,G,T(t,G)),ne(this,Fa,T(t,Fa)),ne(this,_a,T(t,_a)),ne(this,fr,T(t,fr))):t instanceof Date?ne(this,G,dr.DateTime.fromJSDate(t,a)):typeof t=="number"?ne(this,G,dr.DateTime.fromMillis(t,a)):(ne(this,G,dr.DateTime.fromISO(t,a)),T(this,G).isValid||ne(this,G,dr.DateTime.fromRFC2822(t,a)),T(this,G).isValid||ne(this,G,dr.DateTime.fromSQL(t,a)),T(this,G).isValid||ne(this,G,dr.DateTime.fromFormat(t,"EEE, d MMM yyyy HH:mm:ss",a))):ne(this,G,dr.DateTime.local()),!T(this,G).isValid)throw new Error(`CronDate: unhandled timestamp: ${t}`);n&&n!==T(this,G).zoneName&&ne(this,G,T(this,G).setZone(n))}get dstStart(){return T(this,Fa)}get dstStartLandingHour(){return T(this,_a)}clearDstStart(){ne(this,Fa,null),ne(this,_a,null)}get dstEnd(){return T(this,fr)}set dstEnd(t){ne(this,fr,t)}addYear(){ne(this,G,T(this,G).plus({years:1}))}addMonth(){ne(this,G,T(this,G).plus({months:1}).startOf("month"))}addDay(){ne(this,G,T(this,G).plus({days:1}).startOf("day"))}addHour(){ne(this,G,T(this,G).plus({hours:1}).startOf("hour"))}addMinute(){ne(this,G,T(this,G).plus({minutes:1}).startOf("minute"))}addSecond(){ne(this,G,T(this,G).plus({seconds:1}))}subtractYear(){ne(this,G,T(this,G).minus({years:1}))}subtractMonth(){ne(this,G,T(this,G).minus({months:1}).endOf("month").startOf("second"))}subtractDay(){ne(this,G,T(this,G).minus({days:1}).endOf("day").startOf("second"))}subtractHour(){ne(this,G,T(this,G).minus({hours:1}).endOf("hour").startOf("second"))}subtractMinute(){ne(this,G,T(this,G).minus({minutes:1}).endOf("minute").startOf("second"))}subtractSecond(){ne(this,G,T(this,G).minus({seconds:1}))}addUnit(t){switch(t){case Bt.Year:return this.addYear();case Bt.Month:return this.addMonth();case Bt.Day:return this.addDay();case Bt.Hour:return this.addHour();case Bt.Minute:return this.addMinute();case Bt.Second:return this.addSecond()}}subtractUnit(t){switch(t){case Bt.Year:return this.subtractYear();case Bt.Month:return this.subtractMonth();case Bt.Day:return this.subtractDay();case Bt.Hour:return this.subtractHour();case Bt.Minute:return this.subtractMinute();case Bt.Second:return this.subtractSecond()}}invokeDateOperation(t,n){if(t===Ns.Add){this.addUnit(n);return}if(t===Ns.Subtract){this.subtractUnit(n);return}throw new Error(`Invalid verb: ${t}`)}getDate(){return T(this,G).day}getFullYear(){return T(this,G).year}getDay(){let t=T(this,G).weekday;return t===7?0:t}getMonth(){return T(this,G).month-1}getHours(){return T(this,G).hour}getMinutes(){return T(this,G).minute}getSeconds(){return T(this,G).second}getMilliseconds(){return T(this,G).millisecond}getUTCOffset(){return T(this,G).offset}setStartOfDay(){ne(this,G,T(this,G).startOf("day"))}setEndOfDay(){ne(this,G,T(this,G).endOf("day"))}getTime(){return T(this,G).valueOf()}getUTCDate(){return K(this,sa,Pa).call(this).day}getUTCFullYear(){return K(this,sa,Pa).call(this).year}getUTCDay(){let t=K(this,sa,Pa).call(this).weekday;return t===7?0:t}getUTCMonth(){return K(this,sa,Pa).call(this).month-1}getUTCHours(){return K(this,sa,Pa).call(this).hour}getUTCMinutes(){return K(this,sa,Pa).call(this).minute}getUTCSeconds(){return K(this,sa,Pa).call(this).second}toISOString(){return T(this,G).toUTC().toISO()}toJSON(){return T(this,G).toJSON()}setDate(t){ne(this,G,T(this,G).set({day:t}))}setFullYear(t){ne(this,G,T(this,G).set({year:t}))}setDay(t){ne(this,G,T(this,G).set({weekday:t}))}setMonth(t){ne(this,G,T(this,G).set({month:t+1}))}setHours(t){ne(this,G,T(this,G).set({hour:t}))}setMinutes(t){ne(this,G,T(this,G).set({minute:t}))}setSeconds(t){ne(this,G,T(this,G).set({second:t}))}setMilliseconds(t){ne(this,G,T(this,G).set({millisecond:t}))}toString(){return this.toDate().toString()}toDate(){return T(this,G).toJSDate()}isLastDayOfMonth(){var a;let{day:t,month:n}=T(this,G);if(n===2){let r=K(a=vi,Es,yu).call(a,T(this,G).year);return t===Jt.DAYS_IN_MONTH[n-1]-(r?0:1)}return t===Jt.DAYS_IN_MONTH[n-1]}isLastWeekdayOfMonth(){var r;let{day:t,month:n}=T(this,G),a;return n===2?a=Jt.DAYS_IN_MONTH[n-1]-(K(r=vi,Es,yu).call(r,T(this,G).year)?0:1):a=Jt.DAYS_IN_MONTH[n-1],t>a-7}applyDateOperation(t,n,a){if(n===Bt.Month||n===Bt.Day){this.invokeDateOperation(t,n);return}let r=this.getHours(),i=this.getUTCOffset();this.invokeDateOperation(t,n);let s=this.getHours(),o=(s-r+24)%24;t===Ns.Add&&this.getUTCOffset()>i&&o>=2?a!==24&&(ne(this,Fa,(r+1)%24),ne(this,_a,s)):o===0&&this.getMinutes()===0&&this.getSeconds()===0&&a!==24&&(this.dstEnd=s)}};G=new WeakMap,Fa=new WeakMap,_a=new WeakMap,fr=new WeakMap,Es=new WeakSet,yu=function(t){return t%4===0&&t%100!==0||t%400===0},sa=new WeakSet,Pa=function(){return T(this,G).toUTC()},De(vi,Es);var Ko=vi;Jt.CronDate=Ko;Jt.default=Ko});var bu=D(jo=>{"use strict";u();Object.defineProperty(jo,"__esModule",{value:!0});jo.CronMonth=void 0;var yC=Jo(),xC=Da(),bC=1,wC=12,SC=Object.freeze([]),xu=class extends xC.CronField{static get min(){return bC}static get max(){return wC}static get chars(){return SC}static get daysInMonth(){return yC.DAYS_IN_MONTH}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};jo.CronMonth=xu});var qp=D(Zo=>{"use strict";u();Object.defineProperty(Zo,"__esModule",{value:!0});Zo.CronDayOfMonth=void 0;var CC=Da(),vC=bu(),IC=1,kC=31,TC=Object.freeze(["L"]),wu=class e extends CC.CronField{static fromMonth(t,n,a){if(t.length!==1)return new e(n,a);let r=vC.CronMonth.daysInMonth[t[0]-1],i=n.filter(s=>typeof s!="number"||s<=r);return new e(i.length>0?i:n,a)}static get min(){return IC}static get max(){return kC}static get chars(){return TC}static get validChars(){return/^[?,*\dLH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};Zo.CronDayOfMonth=wu});var Up=D(Xo=>{"use strict";u();Object.defineProperty(Xo,"__esModule",{value:!0});Xo.CronDayOfWeek=void 0;var MC=Da(),DC=0,OC=7,RC=Object.freeze(["L"]),Su=class extends MC.CronField{static get min(){return DC}static get max(){return OC}static get chars(){return RC}static get validChars(){return/^[?,*\dLH#/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(t,n){if(super(t,n),this.validate(),this.values.some(a=>a==="L"))throw new Error(`${this.constructor.name} Validation error, unexpected standalone L`)}get values(){return super.values}get nthDay(){return this.options.nthDayOfWeek??0}};Xo.CronDayOfWeek=Su});var Yp=D(Qo=>{"use strict";u();Object.defineProperty(Qo,"__esModule",{value:!0});Qo.CronHour=void 0;var NC=Da(),EC=0,AC=23,PC=Object.freeze([]),Cu=class extends NC.CronField{static get min(){return EC}static get max(){return AC}static get chars(){return PC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};Qo.CronHour=Cu});var Gp=D(el=>{"use strict";u();Object.defineProperty(el,"__esModule",{value:!0});el.CronMinute=void 0;var FC=Da(),_C=0,zC=59,LC=Object.freeze([]),vu=class extends FC.CronField{static get min(){return _C}static get max(){return zC}static get chars(){return LC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};el.CronMinute=vu});var Kp=D(tl=>{"use strict";u();Object.defineProperty(tl,"__esModule",{value:!0});tl.CronSecond=void 0;var VC=Da(),WC=0,HC=59,BC=Object.freeze([]),Iu=class extends VC.CronField{static get min(){return WC}static get max(){return HC}static get chars(){return BC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};tl.CronSecond=Iu});var nl=D(Xt=>{"use strict";u();var $C=Xt&&Xt.__createBinding||(Object.create?(function(e,t,n,a){a===void 0&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}):(function(e,t,n,a){a===void 0&&(a=n),e[a]=t[n]})),za=Xt&&Xt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$C(t,e,n)};Object.defineProperty(Xt,"__esModule",{value:!0});za(df(),Xt);za(qp(),Xt);za(Up(),Xt);za(Da(),Xt);za(Yp(),Xt);za(Gp(),Xt);za(bu(),Xt);za(Kp(),Xt)});var Tu=D(al=>{"use strict";u();Object.defineProperty(al,"__esModule",{value:!0});al.CronFieldCollection=void 0;var Qt=nl(),hr,gr,yr,xr,xa,La,Ii,Jp,jp,pr=class pr{constructor({second:t,minute:n,hour:a,dayOfMonth:r,month:i,dayOfWeek:s}){De(this,hr);De(this,gr);De(this,yr);De(this,xr);De(this,xa);De(this,La);if(!t)throw new Error("Validation error, Field second is missing");if(!n)throw new Error("Validation error, Field minute is missing");if(!a)throw new Error("Validation error, Field hour is missing");if(!r)throw new Error("Validation error, Field dayOfMonth is missing");if(!i)throw new Error("Validation error, Field month is missing");if(!s)throw new Error("Validation error, Field dayOfWeek is missing");if(i.values.length===1&&!r.hasLastChar&&s.isWildcard&&!(parseInt(r.values[0],10)<=Qt.CronMonth.daysInMonth[i.values[0]-1]))throw new Error("Invalid explicit day of month definition");ne(this,hr,t),ne(this,gr,n),ne(this,yr,a),ne(this,xa,i),ne(this,La,s),ne(this,xr,r)}static from(t,n){return new pr({second:this.resolveField(Qt.CronSecond,t.second,n.second),minute:this.resolveField(Qt.CronMinute,t.minute,n.minute),hour:this.resolveField(Qt.CronHour,t.hour,n.hour),dayOfMonth:this.resolveField(Qt.CronDayOfMonth,t.dayOfMonth,n.dayOfMonth),month:this.resolveField(Qt.CronMonth,t.month,n.month),dayOfWeek:this.resolveField(Qt.CronDayOfWeek,t.dayOfWeek,n.dayOfWeek)})}static resolveField(t,n,a){return a?a instanceof Qt.CronField?a:new t(a):n}get second(){return T(this,hr)}get minute(){return T(this,gr)}get hour(){return T(this,yr)}get dayOfMonth(){return T(this,xr)}get month(){return T(this,xa)}get dayOfWeek(){return T(this,La)}static compactField(t){if(t.length===0)return[];let n=[],a;return t.forEach((r,i,s)=>{if(a===void 0){a={start:r,count:1};return}let o=s[i-1]||a.start,l=s[i+1];if(r==="L"||r==="W"){n.push(a),n.push({start:r,count:1}),a=void 0;return}if(a.step===void 0&&l!==void 0){let c=r-o,d=l-r;if(c<=d){a={...a,count:2,end:r,step:c};return}a.step=1}r-(a.end??0)===a.step?(a.count++,a.end=r):(a.count===1?n.push({start:a.start,count:1}):a.count===2?(n.push({start:a.start,count:1}),n.push({start:a.end??o,count:1})):n.push(a),a={start:r,count:1})}),a&&n.push(a),n}stringifyField(t){var i;let n=t.max,a=t.values;if(t instanceof Qt.CronDayOfWeek){n=6;let s=T(this,La).values;a=s[s.length-1]===7?s.slice(0,-1):s}t instanceof Qt.CronDayOfMonth&&(n=T(this,xa).values.length===1?Qt.CronMonth.daysInMonth[T(this,xa).values[0]-1]:t.max);let r=pr.compactField(a);if(r.length===1){let s=K(i=pr,Ii,Jp).call(i,t,r[0],n);if(s)return s}return r.map(s=>{var l;let o=s.count===1?s.start.toString():K(l=pr,Ii,jp).call(l,s);return t instanceof Qt.CronDayOfWeek&&t.nthDay>0?`${o}#${t.nthDay}`:o}).join(",")}stringify(t=!1){let n=[];return t&&n.push(this.stringifyField(T(this,hr))),n.push(this.stringifyField(T(this,gr)),this.stringifyField(T(this,yr)),this.stringifyField(T(this,xr)),this.stringifyField(T(this,xa)),this.stringifyField(T(this,La))),n.join(" ")}serialize(){return{second:T(this,hr).serialize(),minute:T(this,gr).serialize(),hour:T(this,yr).serialize(),dayOfMonth:T(this,xr).serialize(),month:T(this,xa).serialize(),dayOfWeek:T(this,La).serialize()}}};hr=new WeakMap,gr=new WeakMap,yr=new WeakMap,xr=new WeakMap,xa=new WeakMap,La=new WeakMap,Ii=new WeakSet,Jp=function(t,n,a){let r=n.step;return r?r===1&&n.start===t.min&&n.end&&n.end>=a?(t instanceof Qt.CronDayOfMonth||t instanceof Qt.CronDayOfWeek)&&!t.isWildcard?null:t.hasQuestionMarkChar?"?":"*":r!==1&&n.start===t.min&&n.end&&n.end>=a-r+1?`*/${r}`:null:null},jp=function(t){let n=t.step;if(n===1)return`${t.start}-${t.end}`;let a=t.start===0?t.count-1:t.count;if(!n)throw new Error("Unexpected range step");if(!t.end)throw new Error("Unexpected range end");if(n*a>t.end){let r=(s,o)=>{if(typeof t.start!="number")throw new Error("Unexpected range start");return o%n===0?t.start+o:null};if(typeof t.start!="number")throw new Error("Unexpected range start");let i={length:t.end-t.start+1};return Array.from(i,r).filter(s=>s!==null).join(",")}return`${t.start}-${t.end}/${n}`},De(pr,Ii);var ku=pr;al.CronFieldCollection=ku});var Du=D(In=>{"use strict";u();Object.defineProperty(In,"__esModule",{value:!0});In.CronExpression=In.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;var ht=Jo();In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range";In.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";var Zp=1e4,Ti,oa,Yn,la,ca,Pe,As,Mi,en,Va,Ue,br,Xp,Qp,eh,th,nh,Mu,ah,rh,ki,pn=class pn{constructor(t,n){De(this,Ue);De(this,Ti);De(this,oa);De(this,Yn);De(this,la);De(this,ca);De(this,Pe);De(this,As,null);De(this,Mi,!1);ne(this,Ti,n),ne(this,oa,n.tz),ne(this,la,n.startDate?new ht.CronDate(n.startDate,T(this,oa)):null),ne(this,ca,n.endDate?new ht.CronDate(n.endDate,T(this,oa)):null);let a=n.currentDate??n.startDate;if(a){let r=new ht.CronDate(a,T(this,oa));T(this,la)&&r.getTime()<T(this,la).getTime()?a=T(this,la):T(this,ca)&&r.getTime()>T(this,ca).getTime()&&(a=T(this,ca))}ne(this,Yn,new ht.CronDate(a,T(this,oa))),ne(this,Pe,t)}get fields(){return T(this,Pe)}static fieldsToExpression(t,n){return new pn(t,n||{})}next(){return K(this,Ue,ki).call(this)}prev(){return K(this,Ue,ki).call(this,!0)}hasNext(){let t=T(this,Yn);try{return K(this,Ue,ki).call(this),!0}catch{return!1}finally{ne(this,Yn,t)}}hasPrev(){let t=T(this,Yn);try{return K(this,Ue,ki).call(this,!0),!0}catch{return!1}finally{ne(this,Yn,t)}}take(t){let n=[];if(t>=0)for(let a=0;a<t;a++)try{n.push(this.next())}catch{return n}else for(let a=0;a>t;a--)try{n.push(this.prev())}catch{return n}return n}reset(t){ne(this,Yn,new ht.CronDate(t||T(this,Ti).currentDate,T(this,oa)))}stringify(t=!1){return T(this,Pe).stringify(t)}includesDate(t){let{second:n,minute:a,hour:r,month:i}=T(this,Pe),s=new ht.CronDate(t,T(this,oa));return!(!n.values.includes(s.getSeconds())||!a.values.includes(s.getMinutes())||!r.values.includes(s.getHours())||!i.values.includes(s.getMonth()+1)||!K(this,Ue,Mu).call(this,s))}toString(){return T(this,Ti).expression||this.stringify(!0)}[Symbol.iterator](){return{next:()=>{try{return{value:K(this,Ue,ki).call(this),done:!1}}catch{return{value:void 0,done:!0}}}}}};Ti=new WeakMap,oa=new WeakMap,Yn=new WeakMap,la=new WeakMap,ca=new WeakMap,Pe=new WeakMap,As=new WeakMap,Mi=new WeakMap,en=new WeakSet,Va=function(t,n){return n.some(a=>a===t)},Ue=new WeakSet,br=function(t,n){return t[n?t.length-1:0]},Xp=function(t){let n=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(T(this,As)===n)return T(this,Mi);let a=new ht.CronDate(t);a.setStartOfDay();let r=new ht.CronDate(t);return r.setEndOfDay(),ne(this,As,n),ne(this,Mi,a.getUTCOffset()!==r.getUTCOffset()),T(this,Mi)},Qp=function(t,n,a){let r=T(this,Pe).second.values,i=t.getSeconds(),s=T(this,Pe).second.findNearestValue(i,a);if(s!==null){t.setSeconds(s);return}t.applyDateOperation(n,ht.TimeUnit.Minute,T(this,Pe).hour.values.length),t.setSeconds(K(this,Ue,br).call(this,r,a))},eh=function(t,n,a){let r=T(this,Pe).minute.values,i=T(this,Pe).second.values,s=t.getMinutes(),o=T(this,Pe).minute.findNearestValue(s,a);if(o!==null){t.setMinutes(o),t.setSeconds(K(this,Ue,br).call(this,i,a));return}t.applyDateOperation(n,ht.TimeUnit.Hour,T(this,Pe).hour.values.length),t.setMinutes(K(this,Ue,br).call(this,r,a)),t.setSeconds(K(this,Ue,br).call(this,i,a))},th=function(t,n){if(!n.isLastWeekdayOfMonth())return!1;let a=n.getDay();return t.some(r=>a===parseInt(r.toString().charAt(0),10)%7)},nh=function(t,n){return t<=0||Math.ceil(n.getDate()/7)===t},Mu=function(t){var c,d,m,f;let n=T(this,Pe).dayOfMonth.isWildcard,a=!n,r=T(this,Pe).dayOfWeek.isWildcard,i=!r,s=K(c=pn,en,Va).call(c,t.getDate(),T(this,Pe).dayOfMonth.values)||T(this,Pe).dayOfMonth.hasLastChar&&t.isLastDayOfMonth(),o=T(this,Pe).dayOfWeek.nthDay,l=K(d=pn,en,Va).call(d,t.getDay(),T(this,Pe).dayOfWeek.values)&&K(m=pn,en,nh).call(m,o,t)||T(this,Pe).dayOfWeek.hasLastChar&&K(f=pn,en,th).call(f,T(this,Pe).dayOfWeek.values,t);return!!(a&&i&&(s||l)||s&&!i||n&&!r&&l)},ah=function(t,n,a){var d,m;let r=T(this,Pe).hour.values,i=r,s=t.getHours(),o=K(d=pn,en,Va).call(d,s,r),l=t.dstEnd===s;if(t.dstStart!==null&&t.dstStartLandingHour===s){for(let f=t.dstStart;f!==s;f=(f+1)%24)if(K(m=pn,en,Va).call(m,f,r))return!0}if(l&&!a)return t.dstEnd=null,t.applyDateOperation(ht.DateMathOp.Add,ht.TimeUnit.Hour,i.length),!1;if(o)return!0;t.clearDstStart();let c=T(this,Pe).hour.findNearestValue(s,a);if(c===null)return t.applyDateOperation(n,ht.TimeUnit.Day,i.length),!1;if(K(this,Ue,Xp).call(this,t)){let f=a?s-c:c-s;for(let g=0;g<f&&(t.applyDateOperation(n,ht.TimeUnit.Hour,i.length),!(!a&&t.getHours()>=c||a&&t.getHours()<=c));g++);}else t.setHours(c);return t.setMinutes(K(this,Ue,br).call(this,T(this,Pe).minute.values,a)),t.setSeconds(K(this,Ue,br).call(this,T(this,Pe).second.values,a)),!1},rh=function(t){if(!T(this,la)&&!T(this,ca))return;let n=t.getTime();if(T(this,la)&&n<T(this,la).getTime())throw new Error(In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(T(this,ca)&&n>T(this,ca).getTime())throw new Error(In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)},ki=function(t=!1){var s,o,l;let n=t?ht.DateMathOp.Subtract:ht.DateMathOp.Add,a=new ht.CronDate(T(this,Yn)),r=a.getTime();a.getMilliseconds()>0&&(a.setMilliseconds(0),t||a.applyDateOperation(ht.DateMathOp.Add,ht.TimeUnit.Second,T(this,Pe).hour.values.length));let i=0;for(;++i<Zp;){if(K(this,Ue,rh).call(this,a),!K(this,Ue,Mu).call(this,a)){a.applyDateOperation(n,ht.TimeUnit.Day,T(this,Pe).hour.values.length);continue}if(!K(s=pn,en,Va).call(s,a.getMonth()+1,T(this,Pe).month.values)){a.applyDateOperation(n,ht.TimeUnit.Month,T(this,Pe).hour.values.length);continue}if(K(this,Ue,ah).call(this,a,n,t)){if(!K(o=pn,en,Va).call(o,a.getMinutes(),T(this,Pe).minute.values)){K(this,Ue,eh).call(this,a,n,t);continue}if(!K(l=pn,en,Va).call(l,a.getSeconds(),T(this,Pe).second.values)){K(this,Ue,Qp).call(this,a,n,t);continue}if(r===a.getTime()){a.applyDateOperation(n,ht.TimeUnit.Second,T(this,Pe).hour.values.length);continue}break}}if(i>=Zp)throw new Error(In.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return ne(this,Yn,a),a},De(pn,en);var rl=pn;In.CronExpression=rl;In.default=rl});var ih=D(Ou=>{"use strict";u();Object.defineProperty(Ou,"__esModule",{value:!0});Ou.seededRandom=YC;function qC(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return()=>t>>>0}function UC(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function YC(e){let t=e?qC(e)():Math.floor(Math.random()*1e10);return UC(t)}});var ll=D(Mn=>{"use strict";u();Object.defineProperty(Mn,"__esModule",{value:!0});Mn.CronExpressionParser=Mn.DayOfWeek=Mn.Months=Mn.CronUnit=Mn.PredefinedExpressions=void 0;var GC=Tu(),KC=Du(),JC=ih(),kn=nl(),Ru;(function(e){e["@yearly"]="0 0 0 1 1 *",e["@annually"]="0 0 0 1 1 *",e["@monthly"]="0 0 0 1 * *",e["@weekly"]="0 0 0 * * 0",e["@daily"]="0 0 0 * * *",e["@hourly"]="0 0 * * * *",e["@minutely"]="0 * * * * *",e["@secondly"]="* * * * * *",e["@weekdays"]="0 0 0 * * 1-5",e["@weekends"]="0 0 0 * * 0,6"})(Ru||(Mn.PredefinedExpressions=Ru={}));var Tn;(function(e){e.Second="Second",e.Minute="Minute",e.Hour="Hour",e.DayOfMonth="DayOfMonth",e.Month="Month",e.DayOfWeek="DayOfWeek"})(Tn||(Mn.CronUnit=Tn={}));var Nu;(function(e){e[e.jan=1]="jan",e[e.feb=2]="feb",e[e.mar=3]="mar",e[e.apr=4]="apr",e[e.may=5]="may",e[e.jun=6]="jun",e[e.jul=7]="jul",e[e.aug=8]="aug",e[e.sep=9]="sep",e[e.oct=10]="oct",e[e.nov=11]="nov",e[e.dec=12]="dec"})(Nu||(Mn.Months=Nu={}));var Eu;(function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"})(Eu||(Mn.DayOfWeek=Eu={}));var sh=256,oh=1024,pe,lh,wr,ch,uh,il,sl,Pu,Fu,ol,mh,dh,fh,ph,hh,_u,gh,yh,Ye=class Ye{static parse(t,n={}){var L,U,oe,de,B,ue,R,ce;let{strict:a=!1,hashSeed:r}=n,i=(0,JC.seededRandom)(r);t=Ru[t]||t;let s=K(L=Ye,pe,lh).call(L,t,a);if(!(s.dayOfMonth==="*"||s.dayOfWeek==="*"||!a))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");let o=K(U=Ye,pe,wr).call(U,Tn.Second,s.second,kn.CronSecond.constraints,i,a),l=K(oe=Ye,pe,wr).call(oe,Tn.Minute,s.minute,kn.CronMinute.constraints,i,a),c=K(de=Ye,pe,wr).call(de,Tn.Hour,s.hour,kn.CronHour.constraints,i,a),d=K(B=Ye,pe,wr).call(B,Tn.Month,s.month,kn.CronMonth.constraints,i,a),m=K(ue=Ye,pe,wr).call(ue,Tn.DayOfMonth,s.dayOfMonth,kn.CronDayOfMonth.constraints,i,a),{dayOfWeek:f,nthDayOfWeek:g}=K(R=Ye,pe,gh).call(R,s.dayOfWeek),I=K(ce=Ye,pe,wr).call(ce,Tn.DayOfWeek,f,kn.CronDayOfWeek.constraints,i,a),C=new GC.CronFieldCollection({second:new kn.CronSecond(o,{rawValue:s.second}),minute:new kn.CronMinute(l,{rawValue:s.minute}),hour:new kn.CronHour(c,{rawValue:s.hour}),dayOfMonth:kn.CronDayOfMonth.fromMonth(d,m,{rawValue:s.dayOfMonth}),month:new kn.CronMonth(d,{rawValue:s.month}),dayOfWeek:new kn.CronDayOfWeek(I,{rawValue:s.dayOfWeek,nthDayOfWeek:g})});return new KC.CronExpression(C,{...n,expression:t})}};pe=new WeakSet,lh=function(t,n){if(n&&!t.length)throw new Error("Invalid cron expression");if(t=t||"0 * * * * *",t.length>oh)throw new Error(`Invalid cron expression, too long, expected at most ${oh} characters`);let a=t.trim().split(/\s+/);if(n&&a.length<6)throw new Error("Invalid cron expression, expected 6 fields");if(a.length>6)throw new Error("Invalid cron expression, too many fields");let r=["0","*","*","*","*","*"];a.length<r.length&&a.unshift(...r.slice(0,r.length-a.length));let[i,s,o,l,c,d]=a;return{second:i,minute:s,hour:o,dayOfMonth:l,month:c,dayOfWeek:d}},wr=function(t,n,a,r,i){if((t===Tn.Month||t===Tn.DayOfWeek)&&(n=n.replace(/[a-z]{3}/gi,s=>{s=s.toLowerCase();let o=Nu[s]||Eu[s];if(o===void 0)throw new Error(`Validation error, cannot resolve alias "${s}"`);return o.toString()})),!a.validChars.test(n))throw new Error(`Invalid characters, got value: ${n}`);return n=K(this,pe,ch).call(this,n,a),n=K(this,pe,uh).call(this,n,a,r,t,i),K(this,pe,mh).call(this,t,n,a)},ch=function(t,n){return t.replace(/[*?]/g,n.min+"-"+n.max)},uh=function(t,n,a,r,i){let s=a(),o=0;return t.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(l,c,d,m)=>{var f,g,I,C,L,U,oe,de;if(c&&d&&m){let B=parseInt(c,10),ue=parseInt(d,10),R=parseInt(m,10);if(R<=0)throw new Error(`Invalid step: ${R}, must be positive`);let ce=K(f=Ye,pe,Pu).call(f,B,ue,n,r,i);return o+=Math.ceil((ce.max-ce.min+1)/R),K(g=Ye,pe,ol).call(g,r,o),K(I=Ye,pe,Fu).call(I,s,ce.min,ce.max,R,r,i)}else if(c&&d){let B=parseInt(c,10),ue=parseInt(d,10),R=K(C=Ye,pe,Pu).call(C,B,ue,n,r,i);return String(K(L=Ye,pe,il).call(L,s,R.min,R.max))}else if(m){let B=parseInt(m,10);if(B<=0)throw new Error(`Invalid step: ${B}, must be positive`);return o+=Math.ceil((n.max-n.min+1)/B),K(U=Ye,pe,ol).call(U,r,o),K(oe=Ye,pe,Fu).call(oe,s,n.min,n.max,B,r,i)}else return String(K(de=Ye,pe,il).call(de,s,n.min,n.max))})},il=function(t,n,a){return Math.floor(t*(a-n+1))+n},sl=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Pu=function(t,n,a,r,i){var l,c;if(t>n)throw new Error(`Invalid range: ${t}-${n}, min > max`);if(i&&(t<a.min||n>a.max))throw new Error(`Invalid range: ${t}-${n}, outside the ${a.min}-${a.max} range of the ${K(l=Ye,pe,sl).call(l,r)} field`);let s=Math.max(t,a.min),o=Math.min(n,a.max);if(s>o)throw new Error(`Invalid range: ${t}-${n}, no usable value in the ${K(c=Ye,pe,sl).call(c,r)} field`);return{min:s,max:o}},Fu=function(t,n,a,r,i,s){var c,d;if(s&&r>a-n+1)throw new Error(`Invalid step: ${r}, wider than the ${n}-${a} range of the ${K(c=Ye,pe,sl).call(c,i)} field`);let o=Math.floor(t*r),l=[];for(let m=Math.floor(n/r)*r+o;m<=a;m+=r)m>=n&&l.push(m);return l.length===0?String(K(d=Ye,pe,il).call(d,t,n,a)):l.join(",")},ol=function(t,n){if(n>sh)throw new Error(`Constraint error, too many values in ${t} field, expected at most ${sh}`)},mh=function(t,n,a){var o,l;let r=[];function i(c,d){var m;if(Array.isArray(c))r.push(...c);else if(K(m=Ye,pe,yh).call(m,d,c))r.push(c);else{let f=parseInt(c.toString(),10);if(!(f>=d.min&&f<=d.max))throw new Error(`Constraint error, got value ${c} expected range ${d.min}-${d.max}`);r.push(t===Tn.DayOfWeek?f%7:c)}}let s=n.split(",");for(let c of s){if(K(o=Ye,pe,ol).call(o,t,r.length),!(c.length>0))throw new Error("Invalid list value format");i(K(l=Ye,pe,dh).call(l,t,c,a),a)}return r},dh=function(t,n,a){var i,s;let r=n.split("/");if(r.length>2)throw new Error(`Invalid repeat: ${n}`);return r.length===2?(r[0].includes("-")||(r[0]=`${r[0]}-${a.max}`),K(i=Ye,pe,_u).call(i,t,r[0],parseInt(r[1],10),a)):K(s=Ye,pe,_u).call(s,t,n,1,a)},fh=function(t,n,a){if(!(!isNaN(t)&&!isNaN(n)&&t>=a.min&&n<=a.max))throw new Error(`Constraint error, got range ${t}-${n} expected range ${a.min}-${a.max}`);if(t>n)throw new Error(`Invalid range: ${t}-${n}, min(${t}) > max(${n})`)},ph=function(t){if(!(!isNaN(t)&&t>0))throw new Error(`Constraint error, cannot repeat at every ${t} time.`)},hh=function(t,n,a,r){let i=[];t===Tn.DayOfWeek&&a%7===0&&(a-n)%r===0&&i.push(0);for(let s=n;s<=a;s+=r)i.indexOf(s)===-1&&i.push(s);return i},_u=function(t,n,a,r){let i=n.split("-");if(i.length<=1)return isNaN(+n)?n:+n;let[s,o]=i.map(l=>parseInt(l,10));return K(this,pe,fh).call(this,s,o,r),K(this,pe,ph).call(this,a),K(this,pe,hh).call(this,t,s,o,a)},gh=function(t){let n=t.split("#");if(n.length<=1)return{dayOfWeek:n[0]};let a=+n[n.length-1],r=t.match(/([,\-/])/);if(r!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${r?.[0]}\` special characters are incompatible`);if(!(n.length<=2&&!isNaN(a)&&a>=1&&a<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:n[0],nthDayOfWeek:a}},yh=function(t,n){return t.chars.some(a=>n.toString().includes(a))},De(Ye,pe);var Au=Ye;Mn.CronExpressionParser=Au});var xh=D(()=>{u()});var bh=D(()=>{u()});var Sh=D(cl=>{"use strict";u();Object.defineProperty(cl,"__esModule",{value:!0});cl.CronFileParser=void 0;var jC=ll(),Sr,Lu,wh,Di=class Di{static async parseFile(t){var r;let{readFile:n}=xh(),a=await n(t,"utf8");return K(r=Di,Sr,Lu).call(r,a)}static parseFileSync(t){var r;let{readFileSync:n}=bh(),a=n(t,"utf8");return K(r=Di,Sr,Lu).call(r,a)}};Sr=new WeakSet,Lu=function(t){var r;let n=t.split(`
4
+ `),a={variables:{},expressions:[],errors:{}};for(let i of n){let s=i.trim();if(s.length===0||s.startsWith("#"))continue;let o=s.match(/^(.*)=(.*)$/);if(o){let[,l,c]=o;a.variables[l]=c.replace(/["']/g,"");continue}try{let l=K(r=Di,Sr,wh).call(r,s);a.expressions.push(l.interval)}catch(l){a.errors[s]=l}}return a},wh=function(t){let n=t.split(/\s+/);return{interval:jC.CronExpressionParser.parse(n.slice(0,5).join(" ")),command:n.slice(5,n.length)}},De(Di,Sr);var zu=Di;cl.CronFileParser=zu});var Ch=D(Nt=>{"use strict";u();var ZC=Nt&&Nt.__createBinding||(Object.create?(function(e,t,n,a){a===void 0&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}):(function(e,t,n,a){a===void 0&&(a=n),e[a]=t[n]})),XC=Nt&&Nt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ZC(t,e,n)};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.CronFileParser=Nt.CronExpressionParser=Nt.CronExpression=Nt.CronFieldCollection=Nt.CronDate=void 0;var QC=ll(),ev=Jo();Object.defineProperty(Nt,"CronDate",{enumerable:!0,get:function(){return ev.CronDate}});var tv=Tu();Object.defineProperty(Nt,"CronFieldCollection",{enumerable:!0,get:function(){return tv.CronFieldCollection}});var nv=Du();Object.defineProperty(Nt,"CronExpression",{enumerable:!0,get:function(){return nv.CronExpression}});var av=ll();Object.defineProperty(Nt,"CronExpressionParser",{enumerable:!0,get:function(){return av.CronExpressionParser}});var rv=Sh();Object.defineProperty(Nt,"CronFileParser",{enumerable:!0,get:function(){return rv.CronFileParser}});XC(nl(),Nt);Nt.default=QC.CronExpressionParser});var Oi=D((XR,Cr)=>{"use strict";u();function vh(e){return typeof e>"u"||e===null}function iv(e){return typeof e=="object"&&e!==null}function sv(e){return Array.isArray(e)?e:vh(e)?[]:[e]}function ov(e,t){if(t){let n=Object.keys(t);for(let a=0,r=n.length;a<r;a+=1){let i=n[a];e[i]=t[i]}}return e}function lv(e,t){let n="";for(let a=0;a<t;a+=1)n+=e;return n}function cv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Cr.exports.isNothing=vh;Cr.exports.isObject=iv;Cr.exports.toArray=sv;Cr.exports.repeat=lv;Cr.exports.isNegativeZero=cv;Cr.exports.extend=ov});var Ri=D((eN,kh)=>{"use strict";u();function Ih(e,t){let n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
5
5
 
6
- `+e.mark.snippet),a+" "+n):a}function As(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=vh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}As.prototype=Object.create(Error.prototype);As.prototype.constructor=As;As.prototype.toString=function(t){return this.name+": "+vh(this,t)};Ch.exports=As});var kh=O((qR,Sh)=>{"use strict";u();var Ps=Oi();function Lu(e,t,n,a,r){let i="",s="",o=Math.floor(r/2)-1;return a-t>o&&(i=" ... ",t=a-o+i.length),n-a>o&&(s=" ...",n=a+o-s.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+s,pos:a-t+i.length}}function Vu(e,t){return Ps.repeat(" ",t-e.length)+e}function aS(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);let n=/\r?\n|\r|\0/g,a=[0],r=[],i,s=-1;for(;i=n.exec(e.buffer);)r.push(i.index),a.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=a.length-2);s<0&&(s=a.length-1);let o="",l=Math.min(e.line+t.linesAfter,r.length).toString().length,c=t.maxLength-(t.indent+l+3);for(let m=1;m<=t.linesBefore&&!(s-m<0);m++){let f=Lu(e.buffer,a[s-m],r[s-m],e.position-(a[s]-a[s-m]),c);o=Ps.repeat(" ",t.indent)+Vu((e.line-m+1).toString(),l)+" | "+f.str+`
7
- `+o}let d=Lu(e.buffer,a[s],r[s],e.position,c);o+=Ps.repeat(" ",t.indent)+Vu((e.line+1).toString(),l)+" | "+d.str+`
8
- `,o+=Ps.repeat("-",t.indent+l+3+d.pos)+`^
9
- `;for(let m=1;m<=t.linesAfter&&!(s+m>=r.length);m++){let f=Lu(e.buffer,a[s+m],r[s+m],e.position-(a[s]-a[s+m]),c);o+=Ps.repeat(" ",t.indent)+Vu((e.line+m+1).toString(),l)+" | "+f.str+`
10
- `}return o.replace(/\n$/,"")}Sh.exports=aS});var qt=O((YR,Th)=>{"use strict";u();var Ih=Ri(),rS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],iS=["scalar","sequence","mapping"];function sS(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){t[String(a)]=n})}),t}function oS(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(rS.indexOf(n)===-1)throw new Ih('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=sS(t.styleAliases||null),iS.indexOf(this.kind)===-1)throw new Ih('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}Th.exports=oS});var Bu=O((KR,Dh)=>{"use strict";u();var Fs=Ri(),Wu=qt();function Mh(e,t){let n=[];return e[t].forEach(function(a){let r=n.length;n.forEach(function(i,s){i.tag===a.tag&&i.kind===a.kind&&i.multi===a.multi&&(r=s)}),n[r]=a}),n}function lS(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(let n=0,a=arguments.length;n<a;n+=1)arguments[n].forEach(t);return e}function Hu(e){return this.extend(e)}Hu.prototype.extend=function(t){let n=[],a=[];if(t instanceof Wu)a.push(t);else if(Array.isArray(t))a=a.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(a=a.concat(t.explicit));else throw new Fs("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof Wu))throw new Fs("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Fs("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Fs("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(i){if(!(i instanceof Wu))throw new Fs("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let r=Object.create(Hu.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(a),r.compiledImplicit=Mh(r,"implicit"),r.compiledExplicit=Mh(r,"explicit"),r.compiledTypeMap=lS(r.compiledImplicit,r.compiledExplicit),r};Dh.exports=Hu});var $u=O((jR,Oh)=>{"use strict";u();var cS=qt();Oh.exports=new cS("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var qu=O((XR,Rh)=>{"use strict";u();var uS=qt();Rh.exports=new uS("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Uu=O((eN,Nh)=>{"use strict";u();var mS=qt();Nh.exports=new mS("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Yu=O((nN,Eh)=>{"use strict";u();var dS=Bu();Eh.exports=new dS({explicit:[$u(),qu(),Uu()]})});var Gu=O((rN,Ah)=>{"use strict";u();var fS=qt();function pS(e){if(e===null)return!0;let t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function hS(){return null}function gS(e){return e===null}Ah.exports=new fS("tag:yaml.org,2002:null",{kind:"scalar",resolve:pS,construct:hS,predicate:gS,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Ku=O((sN,Ph)=>{"use strict";u();var yS=qt();function xS(e){if(e===null)return!1;let t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function bS(e){return e==="true"||e==="True"||e==="TRUE"}function wS(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Ph.exports=new yS("tag:yaml.org,2002:bool",{kind:"scalar",resolve:xS,construct:bS,predicate:wS,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Ju=O((lN,Fh)=>{"use strict";u();var vS=Oi(),CS=qt();function SS(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function kS(e){return e>=48&&e<=55}function IS(e){return e>=48&&e<=57}function TS(e){if(e===null)return!1;let t=e.length,n=0,a=!1;if(!t)return!1;let r=e[n];if((r==="-"||r==="+")&&(r=e[++n]),r==="0"){if(n+1===t)return!0;if(r=e[++n],r==="b"){for(n++;n<t;n++){if(r=e[n],r!=="0"&&r!=="1")return!1;a=!0}return a&&isFinite(_s(e))}if(r==="x"){for(n++;n<t;n++){if(!SS(e.charCodeAt(n)))return!1;a=!0}return a&&isFinite(_s(e))}if(r==="o"){for(n++;n<t;n++){if(!kS(e.charCodeAt(n)))return!1;a=!0}return a&&isFinite(_s(e))}}for(;n<t;n++){if(!IS(e.charCodeAt(n)))return!1;a=!0}return a?isFinite(_s(e)):!1}function _s(e){let t=e,n=1,a=t[0];if((a==="-"||a==="+")&&(a==="-"&&(n=-1),t=t.slice(1),a=t[0]),t==="0")return 0;if(a==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function MS(e){return _s(e)}function DS(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!vS.isNegativeZero(e)}Fh.exports=new CS("tag:yaml.org,2002:int",{kind:"scalar",resolve:TS,construct:MS,predicate:DS,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+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"]}})});var ju=O((uN,zh)=>{"use strict";u();var _h=Oi(),OS=qt(),RS=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),NS=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ES(e){return e===null||!RS.test(e)?!1:isFinite(parseFloat(e,10))?!0:NS.test(e)}function AS(e){let t=e.toLowerCase(),n=t[0]==="-"?-1:1;return"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var PS=/^[-+]?[0-9]+e/;function FS(e,t){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(_h.isNegativeZero(e))return"-0.0";let n=e.toString(10);return PS.test(n)?n.replace("e",".e"):n}function _S(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||_h.isNegativeZero(e))}zh.exports=new OS("tag:yaml.org,2002:float",{kind:"scalar",resolve:ES,construct:AS,predicate:_S,represent:FS,defaultStyle:"lowercase"})});var Zu=O((dN,Lh)=>{"use strict";u();Lh.exports=Yu().extend({implicit:[Gu(),Ku(),Ju(),ju()]})});var Xu=O((pN,Vh)=>{"use strict";u();Vh.exports=Zu()});var Qu=O((gN,Bh)=>{"use strict";u();var zS=qt(),Wh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Hh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function LS(e){return e===null?!1:Wh.exec(e)!==null||Hh.exec(e)!==null}function VS(e){let t=0,n=null,a=Wh.exec(e);if(a===null&&(a=Hh.exec(e)),a===null)throw new Error("Date resolve error");let r=+a[1],i=+a[2]-1,s=+a[3];if(!a[4])return new Date(Date.UTC(r,i,s));let o=+a[4],l=+a[5],c=+a[6];if(a[7]){for(t=a[7].slice(0,3);t.length<3;)t+="0";t=+t}if(a[9]){let m=+a[10],f=+(a[11]||0);n=(m*60+f)*6e4,a[9]==="-"&&(n=-n)}let d=new Date(Date.UTC(r,i,s,o,l,c,t));return n&&d.setTime(d.getTime()-n),d}function WS(e){return e.toISOString()}Bh.exports=new zS("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:LS,construct:VS,instanceOf:Date,represent:WS})});var em=O((xN,$h)=>{"use strict";u();var HS=qt();function BS(e){return e==="<<"||e===null}$h.exports=new HS("tag:yaml.org,2002:merge",{kind:"scalar",resolve:BS})});var nm=O((wN,qh)=>{"use strict";u();var $S=qt(),tm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
11
- \r`;function qS(e){if(e===null)return!1;let t=0,n=e.length,a=tm;for(let r=0;r<n;r++){let i=a.indexOf(e.charAt(r));if(!(i>64)){if(i<0)return!1;t+=6}}return t%8===0}function US(e){let t=e.replace(/[\r\n=]/g,""),n=t.length,a=tm,r=0,i=[];for(let o=0;o<n;o++)o%4===0&&o&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|a.indexOf(t.charAt(o));let s=n%4*6;return s===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):s===18?(i.push(r>>10&255),i.push(r>>2&255)):s===12&&i.push(r>>4&255),new Uint8Array(i)}function YS(e){let t="",n=0,a=e.length,r=tm;for(let s=0;s<a;s++)s%3===0&&s&&(t+=r[n>>18&63],t+=r[n>>12&63],t+=r[n>>6&63],t+=r[n&63]),n=(n<<8)+e[s];let i=a%3;return i===0?(t+=r[n>>18&63],t+=r[n>>12&63],t+=r[n>>6&63],t+=r[n&63]):i===2?(t+=r[n>>10&63],t+=r[n>>4&63],t+=r[n<<2&63],t+=r[64]):i===1&&(t+=r[n>>2&63],t+=r[n<<4&63],t+=r[64],t+=r[64]),t}function GS(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}qh.exports=new $S("tag:yaml.org,2002:binary",{kind:"scalar",resolve:qS,construct:US,predicate:GS,represent:YS})});var am=O((CN,Yh)=>{"use strict";u();var KS=qt(),Uh=Object.prototype.hasOwnProperty,JS=Object.prototype.toString;function jS(e){if(e===null)return!0;let t={},n=e;for(let a=0,r=n.length;a<r;a+=1){let i=n[a],s=!1;if(JS.call(i)!=="[object Object]")return!1;let o;for(o in i)if(Uh.call(i,o))if(!s)s=!0;else return!1;if(!s||Uh.call(t,o))return!1;Object.defineProperty(t,o,{value:!0})}return!0}function ZS(e){return e!==null?e:[]}Yh.exports=new KS("tag:yaml.org,2002:omap",{kind:"sequence",resolve:jS,construct:ZS})});var rm=O((kN,Gh)=>{"use strict";u();var XS=qt(),QS=Object.prototype.toString;function ek(e){if(e===null)return!0;let t=e,n=new Array(t.length);for(let a=0,r=t.length;a<r;a+=1){let i=t[a];if(QS.call(i)!=="[object Object]")return!1;let s=Object.keys(i);if(s.length!==1)return!1;n[a]=[s[0],i[s[0]]]}return!0}function tk(e){if(e===null)return[];let t=e,n=new Array(t.length);for(let a=0,r=t.length;a<r;a+=1){let i=t[a],s=Object.keys(i);n[a]=[s[0],i[s[0]]]}return n}Gh.exports=new XS("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ek,construct:tk})});var im=O((TN,Kh)=>{"use strict";u();var nk=qt(),ak=Object.prototype.hasOwnProperty;function rk(e){if(e===null)return!0;let t=e;for(let n in t)if(ak.call(t,n)&&t[n]!==null)return!1;return!0}function ik(e){return e!==null?e:{}}Kh.exports=new nk("tag:yaml.org,2002:set",{kind:"mapping",resolve:rk,construct:ik})});var ul=O((DN,Jh)=>{"use strict";u();Jh.exports=Xu().extend({implicit:[Qu(),em()],explicit:[nm(),am(),rm(),im()]})});var gg=O((RN,cm)=>{"use strict";u();var kr=Oi(),rg=Ri(),sk=kh(),ok=ul(),Gn=Object.prototype.hasOwnProperty,ml=1,ig=2,sg=3,dl=4,sm=1,lk=2,jh=3,ck=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,uk=/[\x85\u2028\u2029]/,mk=/[,\[\]{}]/,og=/^(?:!|!!|![0-9A-Za-z-]+!)$/,lg=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function Zh(e){return Object.prototype.toString.call(e)}function ua(e){return e===10||e===13}function ba(e){return e===9||e===32}function nn(e){return e===9||e===32||e===10||e===13}function Ni(e){return e===44||e===91||e===93||e===123||e===125}function dk(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function fk(e){return e===120?2:e===117?4:e===85?8:0}function pk(e){return e>=48&&e<=57?e-48:-1}function Xh(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
12
- `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function hk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function cg(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var ug=new Array(256),mg=new Array(256);for(let e=0;e<256;e++)ug[e]=Xh(e)?1:0,mg[e]=Xh(e);function gk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||ok,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys=="number"?t.maxTotalMergeKeys:1e4,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.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function dg(e,t){let n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=sk(n),new rg(t,n)}function ie(e,t){throw dg(e,t)}function fl(e,t){e.onWarning&&e.onWarning.call(null,dg(e,t))}function Ir(e,t,n){let a=e.anchorMapTransactions;if(a.length!==0){let r=a[a.length-1];Gn.call(r,t)||(r[t]={existed:Gn.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function yk(e){e.anchorMapTransactions.push(Object.create(null))}function xk(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let a=n[n.length-1],r=Object.keys(t);for(let i=0,s=r.length;i<s;i+=1){let o=r[i];Gn.call(a,o)||(a[o]=t[o])}}function bk(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let a=n.length-1;a>=0;a-=1){let r=t[n[a]];r.existed?e.anchorMap[n[a]]=r.value:delete e.anchorMap[n[a]]}}function fg(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function Qh(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}var eg={YAML:function(t,n,a){t.version!==null&&ie(t,"duplication of %YAML directive"),a.length!==1&&ie(t,"YAML directive accepts exactly one argument");let r=/^([0-9]+)\.([0-9]+)$/.exec(a[0]);r===null&&ie(t,"ill-formed argument of the YAML directive");let i=parseInt(r[1],10),s=parseInt(r[2],10);i!==1&&ie(t,"unacceptable YAML version of the document"),t.version=a[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&fl(t,"unsupported YAML version of the document")},TAG:function(t,n,a){let r;a.length!==2&&ie(t,"TAG directive accepts exactly two arguments");let i=a[0];r=a[1],og.test(i)||ie(t,"ill-formed tag handle (first argument) of the TAG directive"),Gn.call(t.tagMap,i)&&ie(t,'there is a previously declared suffix for "'+i+'" tag handle'),lg.test(r)||ie(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch{ie(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function Wa(e,t,n,a){if(t<n){let r=e.input.slice(t,n);if(a)for(let i=0,s=r.length;i<s;i+=1){let o=r.charCodeAt(i);o===9||o>=32&&o<=1114111||ie(e,"expected valid JSON character")}else ck.test(r)&&ie(e,"the stream contains non-printable characters");e.result+=r}}function tg(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&ie(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function ng(e,t,n,a){kr.isObject(n)||ie(e,"cannot merge mappings; the provided source object is unacceptable"),tg(e);let r=Object.keys(n);for(let i=0,s=r.length;i<s;i+=1){let o=r[i];tg(e),Gn.call(t,o)||(cg(t,o,n[o]),a[o]=!0)}}function Ei(e,t,n,a,r,i,s,o,l){if(Array.isArray(r)){r=Array.prototype.slice.call(r);for(let c=0,d=r.length;c<d;c+=1)Array.isArray(r[c])&&ie(e,"nested arrays are not supported inside keys"),typeof r=="object"&&Zh(r[c])==="[object Object]"&&(r[c]="[object Object]")}if(typeof r=="object"&&Zh(r)==="[object Object]"&&(r="[object Object]"),r=String(r),t===null&&(t={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(i)){i.length>100&&ie(e,"abnormal merge sequence size");for(let c=0,d=i.length;c<d;c+=1)ng(e,t,i[c],n)}else ng(e,t,i,n);else!e.json&&!Gn.call(n,r)&&Gn.call(t,r)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,ie(e,"duplicated mapping key")),cg(t,r,i),delete n[r];return t}function om(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ie(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function It(e,t,n){let a=0,r=e.input.charCodeAt(e.position);for(;r!==0;){for(;ba(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(ua(r))for(om(e),r=e.input.charCodeAt(e.position),a++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&fl(e,"deficient indentation"),a}function pl(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||nn(n)))}function lm(e,t){t===1?e.result+=" ":t>1&&(e.result+=kr.repeat(`
13
- `,t-1))}function wk(e,t,n){let a,r,i,s,o,l,c=e.kind,d=e.result,m=e.input.charCodeAt(e.position);if(nn(m)||Ni(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96)return!1;if(m===63||m===45){let f=e.input.charCodeAt(e.position+1);if(nn(f)||n&&Ni(f))return!1}for(e.kind="scalar",e.result="",a=r=e.position,i=!1;m!==0;){if(m===58){let f=e.input.charCodeAt(e.position+1);if(nn(f)||n&&Ni(f))break}else if(m===35){let f=e.input.charCodeAt(e.position-1);if(nn(f))break}else{if(e.position===e.lineStart&&pl(e)||n&&Ni(m))break;if(ua(m))if(s=e.line,o=e.lineStart,l=e.lineIndent,It(e,!1,-1),e.lineIndent>=t){i=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=r,e.line=s,e.lineStart=o,e.lineIndent=l;break}}i&&(Wa(e,a,r,!1),lm(e,e.line-s),a=r=e.position,i=!1),ba(m)||(r=e.position+1),m=e.input.charCodeAt(++e.position)}return Wa(e,a,r,!1),e.result?!0:(e.kind=c,e.result=d,!1)}function vk(e,t){let n,a,r=e.input.charCodeAt(e.position);if(r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Wa(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,a=e.position;else return!0;else ua(r)?(Wa(e,n,a,!0),lm(e,It(e,!1,t)),n=a=e.position):e.position===e.lineStart&&pl(e)?ie(e,"unexpected end of the document within a single quoted scalar"):(e.position++,ba(r)||(a=e.position));ie(e,"unexpected end of the stream within a single quoted scalar")}function Ck(e,t){let n,a,r,i=e.input.charCodeAt(e.position);if(i!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(i=e.input.charCodeAt(e.position))!==0;){if(i===34)return Wa(e,n,e.position,!0),e.position++,!0;if(i===92){if(Wa(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),ua(i))It(e,!1,t);else if(i<256&&ug[i])e.result+=mg[i],e.position++;else if((r=fk(i))>0){let s=r,o=0;for(;s>0;s--)i=e.input.charCodeAt(++e.position),(r=dk(i))>=0?o=(o<<4)+r:ie(e,"expected hexadecimal character");e.result+=hk(o),e.position++}else ie(e,"unknown escape sequence");n=a=e.position}else ua(i)?(Wa(e,n,a,!0),lm(e,It(e,!1,t)),n=a=e.position):e.position===e.lineStart&&pl(e)?ie(e,"unexpected end of the document within a double quoted scalar"):(e.position++,ba(i)||(a=e.position))}ie(e,"unexpected end of the stream within a double quoted scalar")}function Sk(e,t){let n=!0,a,r,i,s=e.tag,o,l=e.anchor,c,d,m,f,h=Object.create(null),k,v,A,q=e.input.charCodeAt(e.position);if(q===91)c=93,f=!1,o=[];else if(q===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&Ir(e,e.anchor,o),q=e.input.charCodeAt(++e.position);q!==0;){if(It(e,!0,t),q=e.input.charCodeAt(e.position),q===c)return e.position++,e.tag=s,e.anchor=l,e.kind=f?"mapping":"sequence",e.result=o,!0;if(n?q===44&&ie(e,"expected the node content, but found ','"):ie(e,"missed comma between flow collection entries"),v=k=A=null,d=m=!1,q===63){let de=e.input.charCodeAt(e.position+1);nn(de)&&(d=m=!0,e.position++,It(e,!0,t))}a=e.line,r=e.lineStart,i=e.position,Ai(e,t,ml,!1,!0),v=e.tag,k=e.result,It(e,!0,t),q=e.input.charCodeAt(e.position),(m||e.line===a)&&q===58&&(d=!0,q=e.input.charCodeAt(++e.position),It(e,!0,t),Ai(e,t,ml,!1,!0),A=e.result),f?Ei(e,o,h,v,k,A,a,r,i):d?o.push(Ei(e,null,h,v,k,A,a,r,i)):o.push(k),It(e,!0,t),q=e.input.charCodeAt(e.position),q===44?(n=!0,q=e.input.charCodeAt(++e.position)):n=!1}ie(e,"unexpected end of the stream within a flow collection")}function kk(e,t){let n,a=sm,r=!1,i=!1,s=t,o=0,l=!1,c,d=e.input.charCodeAt(e.position);if(d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)sm===a?a=d===43?jh:lk:ie(e,"repeat of a chomping mode identifier");else if((c=pk(d))>=0)c===0?ie(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?ie(e,"repeat of an indentation width identifier"):(s=t+c-1,i=!0);else break;if(ba(d)){do d=e.input.charCodeAt(++e.position);while(ba(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ua(d)&&d!==0)}for(;d!==0;){for(om(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),ua(d)){o++;continue}if(!i&&s===0&&ie(e,"missing indentation for block scalar"),e.lineIndent<s){a===jh?e.result+=kr.repeat(`
14
- `,r?1+o:o):a===sm&&r&&(e.result+=`
15
- `);break}n?ba(d)?(l=!0,e.result+=kr.repeat(`
16
- `,r?1+o:o)):l?(l=!1,e.result+=kr.repeat(`
17
- `,o+1)):o===0?r&&(e.result+=" "):e.result+=kr.repeat(`
18
- `,o):e.result+=kr.repeat(`
19
- `,r?1+o:o),r=!0,i=!0,o=0;let m=e.position;for(;!ua(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Wa(e,m,e.position,!1)}return!0}function ag(e,t){let n=e.tag,a=e.anchor,r=[],i=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&Ir(e,e.anchor,r);let s=e.input.charCodeAt(e.position);for(;s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ie(e,"tab characters must not be used in indentation")),s===45);){let o=e.input.charCodeAt(e.position+1);if(!nn(o))break;if(i=!0,e.position++,It(e,!0,-1)&&e.lineIndent<=t){r.push(null),s=e.input.charCodeAt(e.position);continue}let l=e.line;if(Ai(e,t,sg,!1,!0),r.push(e.result),It(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===l||e.lineIndent>t)&&s!==0)ie(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return i?(e.tag=n,e.anchor=a,e.kind="sequence",e.result=r,!0):!1}function pg(e,t,n){let a,r,i,s,o=e.tag,l=e.anchor,c={},d=Object.create(null),m=null,f=null,h=null,k=!1,v=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&Ir(e,e.anchor,c);let A=e.input.charCodeAt(e.position);for(;A!==0;){!k&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ie(e,"tab characters must not be used in indentation"));let q=e.input.charCodeAt(e.position+1),de=e.line;if((A===63||A===58)&&nn(q))A===63?(k&&(Ei(e,c,d,m,f,null,r,i,s),m=f=h=null),v=!0,k=!0,a=!0):k?(k=!1,a=!0):ie(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,A=q;else{if(r=e.line,i=e.lineStart,s=e.position,!Ai(e,n,ig,!1,!0))break;if(e.line===de){for(A=e.input.charCodeAt(e.position);ba(A);)A=e.input.charCodeAt(++e.position);if(A===58)A=e.input.charCodeAt(++e.position),nn(A)||ie(e,"a whitespace character is expected after the key-value separator within a block mapping"),k&&(Ei(e,c,d,m,f,null,r,i,s),m=f=h=null),v=!0,k=!1,a=!1,m=e.tag,f=e.result;else if(v)ie(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=o,e.anchor=l,!0}else if(v)ie(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=o,e.anchor=l,!0}if((e.line===de||e.lineIndent>t)&&(k&&(r=e.line,i=e.lineStart,s=e.position),Ai(e,t,dl,!0,a)&&(k?f=e.result:h=e.result),k||(Ei(e,c,d,m,f,h,r,i,s),m=f=h=null),It(e,!0,-1),A=e.input.charCodeAt(e.position)),(e.line===de||e.lineIndent>t)&&A!==0)ie(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return k&&Ei(e,c,d,m,f,null,r,i,s),v&&(e.tag=o,e.anchor=l,e.kind="mapping",e.result=c),v}function Ik(e){let t=!1,n=!1,a,r,i=e.input.charCodeAt(e.position);if(i!==33)return!1;e.tag!==null&&ie(e,"duplication of a tag property"),i=e.input.charCodeAt(++e.position),i===60?(t=!0,i=e.input.charCodeAt(++e.position)):i===33?(n=!0,a="!!",i=e.input.charCodeAt(++e.position)):a="!";let s=e.position;if(t){do i=e.input.charCodeAt(++e.position);while(i!==0&&i!==62);e.position<e.length?(r=e.input.slice(s,e.position),i=e.input.charCodeAt(++e.position)):ie(e,"unexpected end of the stream within a verbatim tag")}else{for(;i!==0&&!nn(i);)i===33&&(n?ie(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(s-1,e.position+1),og.test(a)||ie(e,"named tag handle cannot contain such characters"),n=!0,s=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(s,e.position),mk.test(r)&&ie(e,"tag suffix cannot contain flow indicator characters")}r&&!lg.test(r)&&ie(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch{ie(e,"tag name is malformed: "+r)}return t?e.tag=r:Gn.call(e.tagMap,a)?e.tag=e.tagMap[a]+r:a==="!"?e.tag="!"+r:a==="!!"?e.tag="tag:yaml.org,2002:"+r:ie(e,'undeclared tag handle "'+a+'"'),!0}function Tk(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&ie(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!nn(t)&&!Ni(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&ie(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function Mk(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!nn(t)&&!Ni(t);)t=e.input.charCodeAt(++e.position);e.position===n&&ie(e,"name of an alias node must contain at least one character");let a=e.input.slice(n,e.position);return Gn.call(e.anchorMap,a)||ie(e,'unidentified alias "'+a+'"'),e.result=e.anchorMap[a],It(e,!0,-1),!0}function Dk(e,t,n,a){let r=fg(e);return yk(e),Qh(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,pg(e,n,a)&&e.kind==="mapping"?(xk(e),!0):(bk(e),Qh(e,r),!1)}function Ai(e,t,n,a,r){let i,s,o=1,l=!1,c=!1,d=null,m,f,h;e.depth>=e.maxDepth&&ie(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let k=i=s=dl===n||sg===n;if(a&&It(e,!0,-1)&&(l=!0,e.lineIndent>t?o=1:e.lineIndent===t?o=0:e.lineIndent<t&&(o=-1)),o===1)for(;;){let v=e.input.charCodeAt(e.position),A=fg(e);if(l&&(v===33&&e.tag!==null||v===38&&e.anchor!==null)||!Ik(e)&&!Tk(e))break;d===null&&(d=A),It(e,!0,-1)?(l=!0,s=k,e.lineIndent>t?o=1:e.lineIndent===t?o=0:e.lineIndent<t&&(o=-1)):s=!1}if(s&&(s=l||r),o===1||dl===n)if(ml===n||ig===n?f=t:f=t+1,h=e.position-e.lineStart,o===1)if(s&&(ag(e,h)||pg(e,h,f))||Sk(e,f))c=!0;else{let v=e.input.charCodeAt(e.position);d!==null&&k&&!s&&v!==124&&v!==62&&Dk(e,d,d.position-d.lineStart,f)||i&&kk(e,f)||vk(e,f)||Ck(e,f)?c=!0:Mk(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&ie(e,"alias node should not have any properties")):wk(e,f,ml===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&Ir(e,e.anchor,e.result)}else o===0&&(c=s&&ag(e,h));if(e.tag===null)e.anchor!==null&&Ir(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&ie(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let v=0,A=e.implicitTypes.length;v<A;v+=1)if(m=e.implicitTypes[v],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&Ir(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(Gn.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else{m=null;let v=e.typeMap.multi[e.kind||"fallback"];for(let A=0,q=v.length;A<q;A+=1)if(e.tag.slice(0,v[A].tag.length)===v[A].tag){m=v[A];break}}m||ie(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&ie(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&Ir(e,e.anchor,e.result)):ie(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||c}function Ok(e){let t=e.position,n=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(It(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){n=!0,a=e.input.charCodeAt(++e.position);let r=e.position;for(;a!==0&&!nn(a);)a=e.input.charCodeAt(++e.position);let i=e.input.slice(r,e.position),s=[];for(i.length<1&&ie(e,"directive name must not be less than one character in length");a!==0;){for(;ba(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!ua(a));break}if(ua(a))break;for(r=e.position;a!==0&&!nn(a);)a=e.input.charCodeAt(++e.position);s.push(e.input.slice(r,e.position))}a!==0&&om(e),Gn.call(eg,i)?eg[i](e,i,s):fl(e,'unknown document directive "'+i+'"')}if(It(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,It(e,!0,-1)):n&&ie(e,"directives end mark is expected"),Ai(e,e.lineIndent-1,dl,!1,!0),It(e,!0,-1),e.checkLineBreaks&&uk.test(e.input.slice(t,e.position))&&fl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&pl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,It(e,!0,-1));return}e.position<e.length-1&&ie(e,"end of the stream or a document separator is expected")}function hg(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
20
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new gk(e,t),a=e.indexOf("\0");for(a!==-1&&(n.position=a,ie(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Ok(n);return n.documents}function Rk(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);let a=hg(e,n);if(typeof t!="function")return a;for(let r=0,i=a.length;r<i;r+=1)t(a[r])}function Nk(e,t){let n=hg(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new rg("expected a single document in the stream, but found more")}}cm.exports.loadAll=Rk;cm.exports.load=Nk});var zg=O((EN,_g)=>{"use strict";u();var yl=Oi(),Hs=Ri(),Ek=ul(),Ig=Object.prototype.toString,Tg=Object.prototype.hasOwnProperty,pm=65279,Ak=9,Ls=10,Pk=13,Fk=32,_k=33,zk=34,um=35,Lk=37,Vk=38,Wk=39,Hk=42,Mg=44,Bk=45,hl=58,$k=61,qk=62,Uk=63,Yk=64,Dg=91,Og=93,Gk=96,Rg=123,Kk=124,Ng=125,Ut={};Ut[0]="\\0";Ut[7]="\\a";Ut[8]="\\b";Ut[9]="\\t";Ut[10]="\\n";Ut[11]="\\v";Ut[12]="\\f";Ut[13]="\\r";Ut[27]="\\e";Ut[34]='\\"';Ut[92]="\\\\";Ut[133]="\\N";Ut[160]="\\_";Ut[8232]="\\L";Ut[8233]="\\P";var Jk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],jk=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Zk(e,t){if(t===null)return{};let n={},a=Object.keys(t);for(let r=0,i=a.length;r<i;r+=1){let s=a[r],o=String(t[s]);s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2));let l=e.compiledTypeMap.fallback[s];l&&Tg.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o}return n}function Xk(e){let t,n,a=e.toString(16).toUpperCase();if(e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new Hs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+yl.repeat("0",n-a.length)+a}var Qk=1,Vs=2;function eI(e){this.schema=e.schema||Ek,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=yl.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Zk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Vs:Qk,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function yg(e,t){let n=yl.repeat(" ",t),a=0,r="",i=e.length;for(;a<i;){let s,o=e.indexOf(`
6
+ `+e.mark.snippet),a+" "+n):a}function Ps(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ih(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ps.prototype=Object.create(Error.prototype);Ps.prototype.constructor=Ps;Ps.prototype.toString=function(t){return this.name+": "+Ih(this,t)};kh.exports=Ps});var Mh=D((nN,Th)=>{"use strict";u();var Fs=Oi();function Vu(e,t,n,a,r){let i="",s="",o=Math.floor(r/2)-1;return a-t>o&&(i=" ... ",t=a-o+i.length),n-a>o&&(s=" ...",n=a+o-s.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+s,pos:a-t+i.length}}function Wu(e,t){return Fs.repeat(" ",t-e.length)+e}function uv(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);let n=/\r?\n|\r|\0/g,a=[0],r=[],i,s=-1;for(;i=n.exec(e.buffer);)r.push(i.index),a.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=a.length-2);s<0&&(s=a.length-1);let o="",l=Math.min(e.line+t.linesAfter,r.length).toString().length,c=t.maxLength-(t.indent+l+3);for(let m=1;m<=t.linesBefore&&!(s-m<0);m++){let f=Vu(e.buffer,a[s-m],r[s-m],e.position-(a[s]-a[s-m]),c);o=Fs.repeat(" ",t.indent)+Wu((e.line-m+1).toString(),l)+" | "+f.str+`
7
+ `+o}let d=Vu(e.buffer,a[s],r[s],e.position,c);o+=Fs.repeat(" ",t.indent)+Wu((e.line+1).toString(),l)+" | "+d.str+`
8
+ `,o+=Fs.repeat("-",t.indent+l+3+d.pos)+`^
9
+ `;for(let m=1;m<=t.linesAfter&&!(s+m>=r.length);m++){let f=Vu(e.buffer,a[s+m],r[s+m],e.position-(a[s]-a[s+m]),c);o+=Fs.repeat(" ",t.indent)+Wu((e.line+m+1).toString(),l)+" | "+f.str+`
10
+ `}return o.replace(/\n$/,"")}Th.exports=uv});var $t=D((rN,Oh)=>{"use strict";u();var Dh=Ri(),mv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],dv=["scalar","sequence","mapping"];function fv(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){t[String(a)]=n})}),t}function pv(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(mv.indexOf(n)===-1)throw new Dh('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=fv(t.styleAliases||null),dv.indexOf(this.kind)===-1)throw new Dh('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}Oh.exports=pv});var $u=D((sN,Nh)=>{"use strict";u();var _s=Ri(),Hu=$t();function Rh(e,t){let n=[];return e[t].forEach(function(a){let r=n.length;n.forEach(function(i,s){i.tag===a.tag&&i.kind===a.kind&&i.multi===a.multi&&(r=s)}),n[r]=a}),n}function hv(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(let n=0,a=arguments.length;n<a;n+=1)arguments[n].forEach(t);return e}function Bu(e){return this.extend(e)}Bu.prototype.extend=function(t){let n=[],a=[];if(t instanceof Hu)a.push(t);else if(Array.isArray(t))a=a.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(a=a.concat(t.explicit));else throw new _s("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof Hu))throw new _s("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new _s("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new _s("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(i){if(!(i instanceof Hu))throw new _s("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let r=Object.create(Bu.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(a),r.compiledImplicit=Rh(r,"implicit"),r.compiledExplicit=Rh(r,"explicit"),r.compiledTypeMap=hv(r.compiledImplicit,r.compiledExplicit),r};Nh.exports=Bu});var qu=D((lN,Eh)=>{"use strict";u();var gv=$t();Eh.exports=new gv("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Uu=D((uN,Ah)=>{"use strict";u();var yv=$t();Ah.exports=new yv("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Yu=D((dN,Ph)=>{"use strict";u();var xv=$t();Ph.exports=new xv("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Gu=D((pN,Fh)=>{"use strict";u();var bv=$u();Fh.exports=new bv({explicit:[qu(),Uu(),Yu()]})});var Ku=D((gN,_h)=>{"use strict";u();var wv=$t();function Sv(e){if(e===null)return!0;let t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Cv(){return null}function vv(e){return e===null}_h.exports=new wv("tag:yaml.org,2002:null",{kind:"scalar",resolve:Sv,construct:Cv,predicate:vv,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Ju=D((xN,zh)=>{"use strict";u();var Iv=$t();function kv(e){if(e===null)return!1;let t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Tv(e){return e==="true"||e==="True"||e==="TRUE"}function Mv(e){return Object.prototype.toString.call(e)==="[object Boolean]"}zh.exports=new Iv("tag:yaml.org,2002:bool",{kind:"scalar",resolve:kv,construct:Tv,predicate:Mv,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var ju=D((wN,Lh)=>{"use strict";u();var Dv=Oi(),Ov=$t();function Rv(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Nv(e){return e>=48&&e<=55}function Ev(e){return e>=48&&e<=57}function Av(e){if(e===null)return!1;let t=e.length,n=0,a=!1;if(!t)return!1;let r=e[n];if((r==="-"||r==="+")&&(r=e[++n]),r==="0"){if(n+1===t)return!0;if(r=e[++n],r==="b"){for(n++;n<t;n++){if(r=e[n],r!=="0"&&r!=="1")return!1;a=!0}return a&&isFinite(zs(e))}if(r==="x"){for(n++;n<t;n++){if(!Rv(e.charCodeAt(n)))return!1;a=!0}return a&&isFinite(zs(e))}if(r==="o"){for(n++;n<t;n++){if(!Nv(e.charCodeAt(n)))return!1;a=!0}return a&&isFinite(zs(e))}}for(;n<t;n++){if(!Ev(e.charCodeAt(n)))return!1;a=!0}return a?isFinite(zs(e)):!1}function zs(e){let t=e,n=1,a=t[0];if((a==="-"||a==="+")&&(a==="-"&&(n=-1),t=t.slice(1),a=t[0]),t==="0")return 0;if(a==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function Pv(e){return zs(e)}function Fv(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Dv.isNegativeZero(e)}Lh.exports=new Ov("tag:yaml.org,2002:int",{kind:"scalar",resolve:Av,construct:Pv,predicate:Fv,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+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"]}})});var Zu=D((CN,Wh)=>{"use strict";u();var Vh=Oi(),_v=$t(),zv=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Lv=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Vv(e){return e===null||!zv.test(e)?!1:isFinite(parseFloat(e,10))?!0:Lv.test(e)}function Wv(e){let t=e.toLowerCase(),n=t[0]==="-"?-1:1;return"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var Hv=/^[-+]?[0-9]+e/;function Bv(e,t){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(Vh.isNegativeZero(e))return"-0.0";let n=e.toString(10);return Hv.test(n)?n.replace("e",".e"):n}function $v(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Vh.isNegativeZero(e))}Wh.exports=new _v("tag:yaml.org,2002:float",{kind:"scalar",resolve:Vv,construct:Wv,predicate:$v,represent:Bv,defaultStyle:"lowercase"})});var Xu=D((IN,Hh)=>{"use strict";u();Hh.exports=Gu().extend({implicit:[Ku(),Ju(),ju(),Zu()]})});var Qu=D((TN,Bh)=>{"use strict";u();Bh.exports=Xu()});var em=D((DN,Uh)=>{"use strict";u();var qv=$t(),$h=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),qh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Uv(e){return e===null?!1:$h.exec(e)!==null||qh.exec(e)!==null}function Yv(e){let t=0,n=null,a=$h.exec(e);if(a===null&&(a=qh.exec(e)),a===null)throw new Error("Date resolve error");let r=+a[1],i=+a[2]-1,s=+a[3];if(!a[4])return new Date(Date.UTC(r,i,s));let o=+a[4],l=+a[5],c=+a[6];if(a[7]){for(t=a[7].slice(0,3);t.length<3;)t+="0";t=+t}if(a[9]){let m=+a[10],f=+(a[11]||0);n=(m*60+f)*6e4,a[9]==="-"&&(n=-n)}let d=new Date(Date.UTC(r,i,s,o,l,c,t));return n&&d.setTime(d.getTime()-n),d}function Gv(e){return e.toISOString()}Uh.exports=new qv("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Uv,construct:Yv,instanceOf:Date,represent:Gv})});var tm=D((RN,Yh)=>{"use strict";u();var Kv=$t();function Jv(e){return e==="<<"||e===null}Yh.exports=new Kv("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Jv})});var am=D((EN,Gh)=>{"use strict";u();var jv=$t(),nm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
11
+ \r`;function Zv(e){if(e===null)return!1;let t=0,n=e.length,a=nm;for(let r=0;r<n;r++){let i=a.indexOf(e.charAt(r));if(!(i>64)){if(i<0)return!1;t+=6}}return t%8===0}function Xv(e){let t=e.replace(/[\r\n=]/g,""),n=t.length,a=nm,r=0,i=[];for(let o=0;o<n;o++)o%4===0&&o&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|a.indexOf(t.charAt(o));let s=n%4*6;return s===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):s===18?(i.push(r>>10&255),i.push(r>>2&255)):s===12&&i.push(r>>4&255),new Uint8Array(i)}function Qv(e){let t="",n=0,a=e.length,r=nm;for(let s=0;s<a;s++)s%3===0&&s&&(t+=r[n>>18&63],t+=r[n>>12&63],t+=r[n>>6&63],t+=r[n&63]),n=(n<<8)+e[s];let i=a%3;return i===0?(t+=r[n>>18&63],t+=r[n>>12&63],t+=r[n>>6&63],t+=r[n&63]):i===2?(t+=r[n>>10&63],t+=r[n>>4&63],t+=r[n<<2&63],t+=r[64]):i===1&&(t+=r[n>>2&63],t+=r[n<<4&63],t+=r[64],t+=r[64]),t}function eI(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}Gh.exports=new jv("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Zv,construct:Xv,predicate:eI,represent:Qv})});var rm=D((PN,Jh)=>{"use strict";u();var tI=$t(),Kh=Object.prototype.hasOwnProperty,nI=Object.prototype.toString;function aI(e){if(e===null)return!0;let t={},n=e;for(let a=0,r=n.length;a<r;a+=1){let i=n[a],s=!1;if(nI.call(i)!=="[object Object]")return!1;let o;for(o in i)if(Kh.call(i,o))if(!s)s=!0;else return!1;if(!s||Kh.call(t,o))return!1;Object.defineProperty(t,o,{value:!0})}return!0}function rI(e){return e!==null?e:[]}Jh.exports=new tI("tag:yaml.org,2002:omap",{kind:"sequence",resolve:aI,construct:rI})});var im=D((_N,jh)=>{"use strict";u();var iI=$t(),sI=Object.prototype.toString;function oI(e){if(e===null)return!0;let t=e,n=new Array(t.length);for(let a=0,r=t.length;a<r;a+=1){let i=t[a];if(sI.call(i)!=="[object Object]")return!1;let s=Object.keys(i);if(s.length!==1)return!1;n[a]=[s[0],i[s[0]]]}return!0}function lI(e){if(e===null)return[];let t=e,n=new Array(t.length);for(let a=0,r=t.length;a<r;a+=1){let i=t[a],s=Object.keys(i);n[a]=[s[0],i[s[0]]]}return n}jh.exports=new iI("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:oI,construct:lI})});var sm=D((LN,Zh)=>{"use strict";u();var cI=$t(),uI=Object.prototype.hasOwnProperty;function mI(e){if(e===null)return!0;let t=e;for(let n in t)if(uI.call(t,n)&&t[n]!==null)return!1;return!0}function dI(e){return e!==null?e:{}}Zh.exports=new cI("tag:yaml.org,2002:set",{kind:"mapping",resolve:mI,construct:dI})});var ul=D((WN,Xh)=>{"use strict";u();Xh.exports=Qu().extend({implicit:[em(),tm()],explicit:[am(),rm(),im(),sm()]})});var bg=D((BN,um)=>{"use strict";u();var vr=Oi(),og=Ri(),fI=Mh(),pI=ul(),Gn=Object.prototype.hasOwnProperty,ml=1,lg=2,cg=3,dl=4,om=1,hI=2,Qh=3,gI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,yI=/[\x85\u2028\u2029]/,xI=/[,\[\]{}]/,ug=/^(?:!|!!|![0-9A-Za-z-]+!)$/,mg=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function eg(e){return Object.prototype.toString.call(e)}function ua(e){return e===10||e===13}function ba(e){return e===9||e===32}function tn(e){return e===9||e===32||e===10||e===13}function Ni(e){return e===44||e===91||e===93||e===123||e===125}function bI(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function wI(e){return e===120?2:e===117?4:e===85?8:0}function SI(e){return e>=48&&e<=57?e-48:-1}function tg(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
12
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function CI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function dg(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var fg=new Array(256),pg=new Array(256);for(let e=0;e<256;e++)fg[e]=tg(e)?1:0,pg[e]=tg(e);function vI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||pI,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys=="number"?t.maxTotalMergeKeys:1e4,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.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function hg(e,t){let n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=fI(n),new og(t,n)}function se(e,t){throw hg(e,t)}function fl(e,t){e.onWarning&&e.onWarning.call(null,hg(e,t))}function Ir(e,t,n){let a=e.anchorMapTransactions;if(a.length!==0){let r=a[a.length-1];Gn.call(r,t)||(r[t]={existed:Gn.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function II(e){e.anchorMapTransactions.push(Object.create(null))}function kI(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let a=n[n.length-1],r=Object.keys(t);for(let i=0,s=r.length;i<s;i+=1){let o=r[i];Gn.call(a,o)||(a[o]=t[o])}}function TI(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let a=n.length-1;a>=0;a-=1){let r=t[n[a]];r.existed?e.anchorMap[n[a]]=r.value:delete e.anchorMap[n[a]]}}function gg(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function ng(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}var ag={YAML:function(t,n,a){t.version!==null&&se(t,"duplication of %YAML directive"),a.length!==1&&se(t,"YAML directive accepts exactly one argument");let r=/^([0-9]+)\.([0-9]+)$/.exec(a[0]);r===null&&se(t,"ill-formed argument of the YAML directive");let i=parseInt(r[1],10),s=parseInt(r[2],10);i!==1&&se(t,"unacceptable YAML version of the document"),t.version=a[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&fl(t,"unsupported YAML version of the document")},TAG:function(t,n,a){let r;a.length!==2&&se(t,"TAG directive accepts exactly two arguments");let i=a[0];r=a[1],ug.test(i)||se(t,"ill-formed tag handle (first argument) of the TAG directive"),Gn.call(t.tagMap,i)&&se(t,'there is a previously declared suffix for "'+i+'" tag handle'),mg.test(r)||se(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch{se(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function Wa(e,t,n,a){if(t<n){let r=e.input.slice(t,n);if(a)for(let i=0,s=r.length;i<s;i+=1){let o=r.charCodeAt(i);o===9||o>=32&&o<=1114111||se(e,"expected valid JSON character")}else gI.test(r)&&se(e,"the stream contains non-printable characters");e.result+=r}}function rg(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&se(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function ig(e,t,n,a){vr.isObject(n)||se(e,"cannot merge mappings; the provided source object is unacceptable"),rg(e);let r=Object.keys(n);for(let i=0,s=r.length;i<s;i+=1){let o=r[i];rg(e),Gn.call(t,o)||(dg(t,o,n[o]),a[o]=!0)}}function Ei(e,t,n,a,r,i,s,o,l){if(Array.isArray(r)){r=Array.prototype.slice.call(r);for(let c=0,d=r.length;c<d;c+=1)Array.isArray(r[c])&&se(e,"nested arrays are not supported inside keys"),typeof r=="object"&&eg(r[c])==="[object Object]"&&(r[c]="[object Object]")}if(typeof r=="object"&&eg(r)==="[object Object]"&&(r="[object Object]"),r=String(r),t===null&&(t={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(i)){i.length>100&&se(e,"abnormal merge sequence size");for(let c=0,d=i.length;c<d;c+=1)ig(e,t,i[c],n)}else ig(e,t,i,n);else!e.json&&!Gn.call(n,r)&&Gn.call(t,r)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,se(e,"duplicated mapping key")),dg(t,r,i),delete n[r];return t}function lm(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):se(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ct(e,t,n){let a=0,r=e.input.charCodeAt(e.position);for(;r!==0;){for(;ba(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(ua(r))for(lm(e),r=e.input.charCodeAt(e.position),a++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&fl(e,"deficient indentation"),a}function pl(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||tn(n)))}function cm(e,t){t===1?e.result+=" ":t>1&&(e.result+=vr.repeat(`
13
+ `,t-1))}function MI(e,t,n){let a,r,i,s,o,l,c=e.kind,d=e.result,m=e.input.charCodeAt(e.position);if(tn(m)||Ni(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96)return!1;if(m===63||m===45){let f=e.input.charCodeAt(e.position+1);if(tn(f)||n&&Ni(f))return!1}for(e.kind="scalar",e.result="",a=r=e.position,i=!1;m!==0;){if(m===58){let f=e.input.charCodeAt(e.position+1);if(tn(f)||n&&Ni(f))break}else if(m===35){let f=e.input.charCodeAt(e.position-1);if(tn(f))break}else{if(e.position===e.lineStart&&pl(e)||n&&Ni(m))break;if(ua(m))if(s=e.line,o=e.lineStart,l=e.lineIndent,Ct(e,!1,-1),e.lineIndent>=t){i=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=r,e.line=s,e.lineStart=o,e.lineIndent=l;break}}i&&(Wa(e,a,r,!1),cm(e,e.line-s),a=r=e.position,i=!1),ba(m)||(r=e.position+1),m=e.input.charCodeAt(++e.position)}return Wa(e,a,r,!1),e.result?!0:(e.kind=c,e.result=d,!1)}function DI(e,t){let n,a,r=e.input.charCodeAt(e.position);if(r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Wa(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,a=e.position;else return!0;else ua(r)?(Wa(e,n,a,!0),cm(e,Ct(e,!1,t)),n=a=e.position):e.position===e.lineStart&&pl(e)?se(e,"unexpected end of the document within a single quoted scalar"):(e.position++,ba(r)||(a=e.position));se(e,"unexpected end of the stream within a single quoted scalar")}function OI(e,t){let n,a,r,i=e.input.charCodeAt(e.position);if(i!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(i=e.input.charCodeAt(e.position))!==0;){if(i===34)return Wa(e,n,e.position,!0),e.position++,!0;if(i===92){if(Wa(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),ua(i))Ct(e,!1,t);else if(i<256&&fg[i])e.result+=pg[i],e.position++;else if((r=wI(i))>0){let s=r,o=0;for(;s>0;s--)i=e.input.charCodeAt(++e.position),(r=bI(i))>=0?o=(o<<4)+r:se(e,"expected hexadecimal character");e.result+=CI(o),e.position++}else se(e,"unknown escape sequence");n=a=e.position}else ua(i)?(Wa(e,n,a,!0),cm(e,Ct(e,!1,t)),n=a=e.position):e.position===e.lineStart&&pl(e)?se(e,"unexpected end of the document within a double quoted scalar"):(e.position++,ba(i)||(a=e.position))}se(e,"unexpected end of the stream within a double quoted scalar")}function RI(e,t){let n=!0,a,r,i,s=e.tag,o,l=e.anchor,c,d,m,f,g=Object.create(null),I,C,L,U=e.input.charCodeAt(e.position);if(U===91)c=93,f=!1,o=[];else if(U===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&Ir(e,e.anchor,o),U=e.input.charCodeAt(++e.position);U!==0;){if(Ct(e,!0,t),U=e.input.charCodeAt(e.position),U===c)return e.position++,e.tag=s,e.anchor=l,e.kind=f?"mapping":"sequence",e.result=o,!0;if(n?U===44&&se(e,"expected the node content, but found ','"):se(e,"missed comma between flow collection entries"),C=I=L=null,d=m=!1,U===63){let oe=e.input.charCodeAt(e.position+1);tn(oe)&&(d=m=!0,e.position++,Ct(e,!0,t))}a=e.line,r=e.lineStart,i=e.position,Ai(e,t,ml,!1,!0),C=e.tag,I=e.result,Ct(e,!0,t),U=e.input.charCodeAt(e.position),(m||e.line===a)&&U===58&&(d=!0,U=e.input.charCodeAt(++e.position),Ct(e,!0,t),Ai(e,t,ml,!1,!0),L=e.result),f?Ei(e,o,g,C,I,L,a,r,i):d?o.push(Ei(e,null,g,C,I,L,a,r,i)):o.push(I),Ct(e,!0,t),U=e.input.charCodeAt(e.position),U===44?(n=!0,U=e.input.charCodeAt(++e.position)):n=!1}se(e,"unexpected end of the stream within a flow collection")}function NI(e,t){let n,a=om,r=!1,i=!1,s=t,o=0,l=!1,c,d=e.input.charCodeAt(e.position);if(d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)om===a?a=d===43?Qh:hI:se(e,"repeat of a chomping mode identifier");else if((c=SI(d))>=0)c===0?se(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?se(e,"repeat of an indentation width identifier"):(s=t+c-1,i=!0);else break;if(ba(d)){do d=e.input.charCodeAt(++e.position);while(ba(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ua(d)&&d!==0)}for(;d!==0;){for(lm(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),ua(d)){o++;continue}if(!i&&s===0&&se(e,"missing indentation for block scalar"),e.lineIndent<s){a===Qh?e.result+=vr.repeat(`
14
+ `,r?1+o:o):a===om&&r&&(e.result+=`
15
+ `);break}n?ba(d)?(l=!0,e.result+=vr.repeat(`
16
+ `,r?1+o:o)):l?(l=!1,e.result+=vr.repeat(`
17
+ `,o+1)):o===0?r&&(e.result+=" "):e.result+=vr.repeat(`
18
+ `,o):e.result+=vr.repeat(`
19
+ `,r?1+o:o),r=!0,i=!0,o=0;let m=e.position;for(;!ua(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Wa(e,m,e.position,!1)}return!0}function sg(e,t){let n=e.tag,a=e.anchor,r=[],i=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&Ir(e,e.anchor,r);let s=e.input.charCodeAt(e.position);for(;s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,se(e,"tab characters must not be used in indentation")),s===45);){let o=e.input.charCodeAt(e.position+1);if(!tn(o))break;if(i=!0,e.position++,Ct(e,!0,-1)&&e.lineIndent<=t){r.push(null),s=e.input.charCodeAt(e.position);continue}let l=e.line;if(Ai(e,t,cg,!1,!0),r.push(e.result),Ct(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===l||e.lineIndent>t)&&s!==0)se(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return i?(e.tag=n,e.anchor=a,e.kind="sequence",e.result=r,!0):!1}function yg(e,t,n){let a,r,i,s,o=e.tag,l=e.anchor,c={},d=Object.create(null),m=null,f=null,g=null,I=!1,C=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&Ir(e,e.anchor,c);let L=e.input.charCodeAt(e.position);for(;L!==0;){!I&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,se(e,"tab characters must not be used in indentation"));let U=e.input.charCodeAt(e.position+1),oe=e.line;if((L===63||L===58)&&tn(U))L===63?(I&&(Ei(e,c,d,m,f,null,r,i,s),m=f=g=null),C=!0,I=!0,a=!0):I?(I=!1,a=!0):se(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,L=U;else{if(r=e.line,i=e.lineStart,s=e.position,!Ai(e,n,lg,!1,!0))break;if(e.line===oe){for(L=e.input.charCodeAt(e.position);ba(L);)L=e.input.charCodeAt(++e.position);if(L===58)L=e.input.charCodeAt(++e.position),tn(L)||se(e,"a whitespace character is expected after the key-value separator within a block mapping"),I&&(Ei(e,c,d,m,f,null,r,i,s),m=f=g=null),C=!0,I=!1,a=!1,m=e.tag,f=e.result;else if(C)se(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=o,e.anchor=l,!0}else if(C)se(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=o,e.anchor=l,!0}if((e.line===oe||e.lineIndent>t)&&(I&&(r=e.line,i=e.lineStart,s=e.position),Ai(e,t,dl,!0,a)&&(I?f=e.result:g=e.result),I||(Ei(e,c,d,m,f,g,r,i,s),m=f=g=null),Ct(e,!0,-1),L=e.input.charCodeAt(e.position)),(e.line===oe||e.lineIndent>t)&&L!==0)se(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return I&&Ei(e,c,d,m,f,null,r,i,s),C&&(e.tag=o,e.anchor=l,e.kind="mapping",e.result=c),C}function EI(e){let t=!1,n=!1,a,r,i=e.input.charCodeAt(e.position);if(i!==33)return!1;e.tag!==null&&se(e,"duplication of a tag property"),i=e.input.charCodeAt(++e.position),i===60?(t=!0,i=e.input.charCodeAt(++e.position)):i===33?(n=!0,a="!!",i=e.input.charCodeAt(++e.position)):a="!";let s=e.position;if(t){do i=e.input.charCodeAt(++e.position);while(i!==0&&i!==62);e.position<e.length?(r=e.input.slice(s,e.position),i=e.input.charCodeAt(++e.position)):se(e,"unexpected end of the stream within a verbatim tag")}else{for(;i!==0&&!tn(i);)i===33&&(n?se(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(s-1,e.position+1),ug.test(a)||se(e,"named tag handle cannot contain such characters"),n=!0,s=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(s,e.position),xI.test(r)&&se(e,"tag suffix cannot contain flow indicator characters")}r&&!mg.test(r)&&se(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch{se(e,"tag name is malformed: "+r)}return t?e.tag=r:Gn.call(e.tagMap,a)?e.tag=e.tagMap[a]+r:a==="!"?e.tag="!"+r:a==="!!"?e.tag="tag:yaml.org,2002:"+r:se(e,'undeclared tag handle "'+a+'"'),!0}function AI(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&se(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!tn(t)&&!Ni(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&se(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function PI(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!tn(t)&&!Ni(t);)t=e.input.charCodeAt(++e.position);e.position===n&&se(e,"name of an alias node must contain at least one character");let a=e.input.slice(n,e.position);return Gn.call(e.anchorMap,a)||se(e,'unidentified alias "'+a+'"'),e.result=e.anchorMap[a],Ct(e,!0,-1),!0}function FI(e,t,n,a){let r=gg(e);return II(e),ng(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,yg(e,n,a)&&e.kind==="mapping"?(kI(e),!0):(TI(e),ng(e,r),!1)}function Ai(e,t,n,a,r){let i,s,o=1,l=!1,c=!1,d=null,m,f,g;e.depth>=e.maxDepth&&se(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let I=i=s=dl===n||cg===n;if(a&&Ct(e,!0,-1)&&(l=!0,e.lineIndent>t?o=1:e.lineIndent===t?o=0:e.lineIndent<t&&(o=-1)),o===1)for(;;){let C=e.input.charCodeAt(e.position),L=gg(e);if(l&&(C===33&&e.tag!==null||C===38&&e.anchor!==null)||!EI(e)&&!AI(e))break;d===null&&(d=L),Ct(e,!0,-1)?(l=!0,s=I,e.lineIndent>t?o=1:e.lineIndent===t?o=0:e.lineIndent<t&&(o=-1)):s=!1}if(s&&(s=l||r),o===1||dl===n)if(ml===n||lg===n?f=t:f=t+1,g=e.position-e.lineStart,o===1)if(s&&(sg(e,g)||yg(e,g,f))||RI(e,f))c=!0;else{let C=e.input.charCodeAt(e.position);d!==null&&I&&!s&&C!==124&&C!==62&&FI(e,d,d.position-d.lineStart,f)||i&&NI(e,f)||DI(e,f)||OI(e,f)?c=!0:PI(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&se(e,"alias node should not have any properties")):MI(e,f,ml===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&Ir(e,e.anchor,e.result)}else o===0&&(c=s&&sg(e,g));if(e.tag===null)e.anchor!==null&&Ir(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&se(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let C=0,L=e.implicitTypes.length;C<L;C+=1)if(m=e.implicitTypes[C],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&Ir(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(Gn.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else{m=null;let C=e.typeMap.multi[e.kind||"fallback"];for(let L=0,U=C.length;L<U;L+=1)if(e.tag.slice(0,C[L].tag.length)===C[L].tag){m=C[L];break}}m||se(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&se(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&Ir(e,e.anchor,e.result)):se(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||c}function _I(e){let t=e.position,n=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Ct(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){n=!0,a=e.input.charCodeAt(++e.position);let r=e.position;for(;a!==0&&!tn(a);)a=e.input.charCodeAt(++e.position);let i=e.input.slice(r,e.position),s=[];for(i.length<1&&se(e,"directive name must not be less than one character in length");a!==0;){for(;ba(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!ua(a));break}if(ua(a))break;for(r=e.position;a!==0&&!tn(a);)a=e.input.charCodeAt(++e.position);s.push(e.input.slice(r,e.position))}a!==0&&lm(e),Gn.call(ag,i)?ag[i](e,i,s):fl(e,'unknown document directive "'+i+'"')}if(Ct(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ct(e,!0,-1)):n&&se(e,"directives end mark is expected"),Ai(e,e.lineIndent-1,dl,!1,!0),Ct(e,!0,-1),e.checkLineBreaks&&yI.test(e.input.slice(t,e.position))&&fl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&pl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ct(e,!0,-1));return}e.position<e.length-1&&se(e,"end of the stream or a document separator is expected")}function xg(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
20
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new vI(e,t),a=e.indexOf("\0");for(a!==-1&&(n.position=a,se(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)_I(n);return n.documents}function zI(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);let a=xg(e,n);if(typeof t!="function")return a;for(let r=0,i=a.length;r<i;r+=1)t(a[r])}function LI(e,t){let n=xg(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new og("expected a single document in the stream, but found more")}}um.exports.loadAll=zI;um.exports.load=LI});var Wg=D((qN,Vg)=>{"use strict";u();var yl=Oi(),Bs=Ri(),VI=ul(),Dg=Object.prototype.toString,Og=Object.prototype.hasOwnProperty,hm=65279,WI=9,Vs=10,HI=13,BI=32,$I=33,qI=34,mm=35,UI=37,YI=38,GI=39,KI=42,Rg=44,JI=45,hl=58,jI=61,ZI=62,XI=63,QI=64,Ng=91,Eg=93,ek=96,Ag=123,tk=124,Pg=125,qt={};qt[0]="\\0";qt[7]="\\a";qt[8]="\\b";qt[9]="\\t";qt[10]="\\n";qt[11]="\\v";qt[12]="\\f";qt[13]="\\r";qt[27]="\\e";qt[34]='\\"';qt[92]="\\\\";qt[133]="\\N";qt[160]="\\_";qt[8232]="\\L";qt[8233]="\\P";var nk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ak=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function rk(e,t){if(t===null)return{};let n={},a=Object.keys(t);for(let r=0,i=a.length;r<i;r+=1){let s=a[r],o=String(t[s]);s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2));let l=e.compiledTypeMap.fallback[s];l&&Og.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o}return n}function ik(e){let t,n,a=e.toString(16).toUpperCase();if(e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new Bs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+yl.repeat("0",n-a.length)+a}var sk=1,Ws=2;function ok(e){this.schema=e.schema||VI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=yl.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=rk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ws:sk,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function wg(e,t){let n=yl.repeat(" ",t),a=0,r="",i=e.length;for(;a<i;){let s,o=e.indexOf(`
21
21
  `,a);o===-1?(s=e.slice(a),a=i):(s=e.slice(a,o+1),a=o+1),s.length&&s!==`
22
- `&&(r+=n),r+=s}return r}function mm(e,t){return`
23
- `+yl.repeat(" ",e.indent*t)}function tI(e,t){for(let n=0,a=e.implicitTypes.length;n<a;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function gl(e){return e===Fk||e===Ak}function Ws(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==pm||e>=65536&&e<=1114111}function xg(e){return Ws(e)&&e!==pm&&e!==Pk&&e!==Ls}function bg(e,t,n){let a=xg(e),r=a&&!gl(e);return(n?a:a&&e!==Mg&&e!==Dg&&e!==Og&&e!==Rg&&e!==Ng)&&e!==um&&!(t===hl&&!r)||xg(t)&&!gl(t)&&e===um||t===hl&&r}function nI(e){return Ws(e)&&e!==pm&&!gl(e)&&e!==Bk&&e!==Uk&&e!==hl&&e!==Mg&&e!==Dg&&e!==Og&&e!==Rg&&e!==Ng&&e!==um&&e!==Vk&&e!==Hk&&e!==_k&&e!==Kk&&e!==$k&&e!==qk&&e!==Wk&&e!==zk&&e!==Lk&&e!==Yk&&e!==Gk}function aI(e){return!gl(e)&&e!==hl}function zs(e,t){let n=e.charCodeAt(t),a;return n>=55296&&n<=56319&&t+1<e.length&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function Eg(e){return/^\n* /.test(e)}var Ag=1,dm=2,Pg=3,Fg=4,Pi=5;function rI(e,t,n,a,r,i,s,o){let l,c=0,d=null,m=!1,f=!1,h=a!==-1,k=-1,v=nI(zs(e,0))&&aI(zs(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=zs(e,l),!Ws(c))return Pi;v=v&&bg(c,d,o),d=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=zs(e,l),c===Ls)m=!0,h&&(f=f||l-k-1>a&&e[k+1]!==" ",k=l);else if(!Ws(c))return Pi;v=v&&bg(c,d,o),d=c}f=f||h&&l-k-1>a&&e[k+1]!==" "}return!m&&!f?v&&!s&&!r(e)?Ag:i===Vs?Pi:dm:n>9&&Eg(e)?Pi:s?i===Vs?Pi:dm:f?Fg:Pg}function iI(e,t,n,a,r){e.dump=(function(){if(t.length===0)return e.quotingType===Vs?'""':"''";if(!e.noCompatMode&&(Jk.indexOf(t)!==-1||jk.test(t)))return e.quotingType===Vs?'"'+t+'"':"'"+t+"'";let i=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),o=a||e.flowLevel>-1&&n>=e.flowLevel;function l(c){return tI(e,c)}switch(rI(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!a,r)){case Ag:return t;case dm:return"'"+t.replace(/'/g,"''")+"'";case Pg:return"|"+wg(t,e.indent)+vg(yg(t,i));case Fg:return">"+wg(t,e.indent)+vg(yg(sI(t,s),i));case Pi:return'"'+oI(t,s)+'"';default:throw new Hs("impossible error: invalid scalar style")}})()}function wg(e,t){let n=Eg(e)?String(t):"",a=e[e.length-1]===`
22
+ `&&(r+=n),r+=s}return r}function dm(e,t){return`
23
+ `+yl.repeat(" ",e.indent*t)}function lk(e,t){for(let n=0,a=e.implicitTypes.length;n<a;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function gl(e){return e===BI||e===WI}function Hs(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==hm||e>=65536&&e<=1114111}function Sg(e){return Hs(e)&&e!==hm&&e!==HI&&e!==Vs}function Cg(e,t,n){let a=Sg(e),r=a&&!gl(e);return(n?a:a&&e!==Rg&&e!==Ng&&e!==Eg&&e!==Ag&&e!==Pg)&&e!==mm&&!(t===hl&&!r)||Sg(t)&&!gl(t)&&e===mm||t===hl&&r}function ck(e){return Hs(e)&&e!==hm&&!gl(e)&&e!==JI&&e!==XI&&e!==hl&&e!==Rg&&e!==Ng&&e!==Eg&&e!==Ag&&e!==Pg&&e!==mm&&e!==YI&&e!==KI&&e!==$I&&e!==tk&&e!==jI&&e!==ZI&&e!==GI&&e!==qI&&e!==UI&&e!==QI&&e!==ek}function uk(e){return!gl(e)&&e!==hl}function Ls(e,t){let n=e.charCodeAt(t),a;return n>=55296&&n<=56319&&t+1<e.length&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function Fg(e){return/^\n* /.test(e)}var _g=1,fm=2,zg=3,Lg=4,Pi=5;function mk(e,t,n,a,r,i,s,o){let l,c=0,d=null,m=!1,f=!1,g=a!==-1,I=-1,C=ck(Ls(e,0))&&uk(Ls(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Ls(e,l),!Hs(c))return Pi;C=C&&Cg(c,d,o),d=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Ls(e,l),c===Vs)m=!0,g&&(f=f||l-I-1>a&&e[I+1]!==" ",I=l);else if(!Hs(c))return Pi;C=C&&Cg(c,d,o),d=c}f=f||g&&l-I-1>a&&e[I+1]!==" "}return!m&&!f?C&&!s&&!r(e)?_g:i===Ws?Pi:fm:n>9&&Fg(e)?Pi:s?i===Ws?Pi:fm:f?Lg:zg}function dk(e,t,n,a,r){e.dump=(function(){if(t.length===0)return e.quotingType===Ws?'""':"''";if(!e.noCompatMode&&(nk.indexOf(t)!==-1||ak.test(t)))return e.quotingType===Ws?'"'+t+'"':"'"+t+"'";let i=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),o=a||e.flowLevel>-1&&n>=e.flowLevel;function l(c){return lk(e,c)}switch(mk(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!a,r)){case _g:return t;case fm:return"'"+t.replace(/'/g,"''")+"'";case zg:return"|"+vg(t,e.indent)+Ig(wg(t,i));case Lg:return">"+vg(t,e.indent)+Ig(wg(fk(t,s),i));case Pi:return'"'+pk(t,s)+'"';default:throw new Bs("impossible error: invalid scalar style")}})()}function vg(e,t){let n=Fg(e)?String(t):"",a=e[e.length-1]===`
24
24
  `,i=a&&(e[e.length-2]===`
25
25
  `||e===`
26
26
  `)?"+":a?"":"-";return n+i+`
27
- `}function vg(e){return e[e.length-1]===`
28
- `?e.slice(0,-1):e}function sI(e,t){let n=/(\n+)([^\n]*)/g,a=(function(){let o=e.indexOf(`
29
- `);return o=o!==-1?o:e.length,n.lastIndex=o,Cg(e.slice(0,o),t)})(),r=e[0]===`
27
+ `}function Ig(e){return e[e.length-1]===`
28
+ `?e.slice(0,-1):e}function fk(e,t){let n=/(\n+)([^\n]*)/g,a=(function(){let o=e.indexOf(`
29
+ `);return o=o!==-1?o:e.length,n.lastIndex=o,kg(e.slice(0,o),t)})(),r=e[0]===`
30
30
  `||e[0]===" ",i,s;for(;s=n.exec(e);){let o=s[1],l=s[2];i=l[0]===" ",a+=o+(!r&&!i&&l!==""?`
31
- `:"")+Cg(l,t),r=i}return a}function Cg(e,t){if(e===""||e[0]===" ")return e;let n=/ [^ ]/g,a,r=0,i,s=0,o=0,l="";for(;a=n.exec(e);)o=a.index,o-r>t&&(i=s>r?s:o,l+=`
31
+ `:"")+kg(l,t),r=i}return a}function kg(e,t){if(e===""||e[0]===" ")return e;let n=/ [^ ]/g,a,r=0,i,s=0,o=0,l="";for(;a=n.exec(e);)o=a.index,o-r>t&&(i=s>r?s:o,l+=`
32
32
  `+e.slice(r,i),r=i+1),s=o;return l+=`
33
33
  `,e.length-r>t&&s>r?l+=e.slice(r,s)+`
34
- `+e.slice(s+1):l+=e.slice(r),l.slice(1)}function oI(e){let t="",n=0;for(let a=0;a<e.length;n>=65536?a+=2:a++){n=zs(e,a);let r=Ut[n];!r&&Ws(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||Xk(n)}return t}function lI(e,t,n){let a="",r=e.tag;for(let i=0,s=n.length;i<s;i+=1){let o=n[i];e.replacer&&(o=e.replacer.call(n,String(i),o)),(wa(e,t,o,!1,!1)||typeof o>"u"&&wa(e,t,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump)}e.tag=r,e.dump="["+a+"]"}function Sg(e,t,n,a){let r="",i=e.tag;for(let s=0,o=n.length;s<o;s+=1){let l=n[s];e.replacer&&(l=e.replacer.call(n,String(s),l)),(wa(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!a||r!=="")&&(r+=mm(e,t)),e.dump&&Ls===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump)}e.tag=i,e.dump=r||"[]"}function cI(e,t,n){let a="",r=e.tag,i=Object.keys(n);for(let s=0,o=i.length;s<o;s+=1){let l="";a!==""&&(l+=", "),e.condenseFlow&&(l+='"');let c=i[s],d=n[c];e.replacer&&(d=e.replacer.call(n,c,d)),wa(e,t,c,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,d,!1,!1)&&(l+=e.dump,a+=l))}e.tag=r,e.dump="{"+a+"}"}function uI(e,t,n,a){let r="",i=e.tag,s=Object.keys(n);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Hs("sortKeys must be a boolean or a function");for(let o=0,l=s.length;o<l;o+=1){let c="";(!a||r!=="")&&(c+=mm(e,t));let d=s[o],m=n[d];if(e.replacer&&(m=e.replacer.call(n,d,m)),!wa(e,t+1,d,!0,!0,!0))continue;let f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;f&&(e.dump&&Ls===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,f&&(c+=mm(e,t)),wa(e,t+1,m,!0,f)&&(e.dump&&Ls===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,r+=c)}e.tag=i,e.dump=r||"{}"}function kg(e,t,n){let a=n?e.explicitTypes:e.implicitTypes;for(let r=0,i=a.length;r<i;r+=1){let s=a[r];if((s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){let o=e.styleMap[s.tag]||s.defaultStyle,l;if(Ig.call(s.represent)==="[object Function]")l=s.represent(t,o);else if(Tg.call(s.represent,o))l=s.represent[o](t,o);else throw new Hs("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=l}return!0}}return!1}function wa(e,t,n,a,r,i,s){e.tag=null,e.dump=n,kg(e,n,!1)||kg(e,n,!0);let o=Ig.call(e.dump),l=a;a&&(a=e.flowLevel<0||e.flowLevel>t);let c=o==="[object Object]"||o==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(r=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),o==="[object Object]")a&&Object.keys(e.dump).length!==0?(uI(e,t,e.dump,r),m&&(e.dump="&ref_"+d+e.dump)):(cI(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Sg(e,t-1,e.dump,r):Sg(e,t,e.dump,r),m&&(e.dump="&ref_"+d+e.dump)):(lI(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&iI(e,e.dump,t,i,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Hs("unacceptable kind of an object to dump "+o)}if(e.tag!==null&&e.tag!=="?"){let f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump}}return!0}function mI(e,t){let n=[],a=[];fm(e,n,a);let r=a.length;for(let i=0;i<r;i+=1)t.duplicates.push(n[a[i]]);t.usedDuplicates=new Array(r)}function fm(e,t,n){if(e!==null&&typeof e=="object"){let a=t.indexOf(e);if(a!==-1)n.indexOf(a)===-1&&n.push(a);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)fm(e[r],t,n);else{let r=Object.keys(e);for(let i=0,s=r.length;i<s;i+=1)fm(e[r[i]],t,n)}}}function dI(e,t){t=t||{};let n=new eI(t);n.noRefs||mI(e,n);let a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),wa(n,0,a,!0,!0)?n.dump+`
35
- `:""}_g.exports.dump=dI});var xl=O((PN,Zt)=>{"use strict";u();var Lg=gg(),fI=zg();function hm(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}Zt.exports.Type=qt();Zt.exports.Schema=Bu();Zt.exports.FAILSAFE_SCHEMA=Yu();Zt.exports.JSON_SCHEMA=Zu();Zt.exports.CORE_SCHEMA=Xu();Zt.exports.DEFAULT_SCHEMA=ul();Zt.exports.load=Lg.load;Zt.exports.loadAll=Lg.loadAll;Zt.exports.dump=fI.dump;Zt.exports.YAMLException=Ri();Zt.exports.types={binary:nm(),float:ju(),map:Uu(),null:Gu(),pairs:rm(),set:im(),timestamp:Qu(),bool:Ku(),int:Ju(),merge:em(),omap:am(),seq:qu(),str:$u()};Zt.exports.safeLoad=hm("safeLoad","load");Zt.exports.safeLoadAll=hm("safeLoadAll","loadAll");Zt.exports.safeDump=hm("safeDump","dump")});var vl=O((rE,Yg)=>{u();var bI=Array.isArray;Yg.exports=bI});var Kg=O((sE,Gg)=>{u();var wI=typeof global=="object"&&global&&global.Object===Object&&global;Gg.exports=wI});var Cl=O((lE,Jg)=>{u();var vI=Kg(),CI=typeof self=="object"&&self&&self.Object===Object&&self,SI=vI||CI||Function("return this")();Jg.exports=SI});var Sl=O((uE,jg)=>{u();var kI=Cl(),II=kI.Symbol;jg.exports=II});var ey=O((dE,Qg)=>{u();var Zg=Sl(),Xg=Object.prototype,TI=Xg.hasOwnProperty,MI=Xg.toString,Ys=Zg?Zg.toStringTag:void 0;function DI(e){var t=TI.call(e,Ys),n=e[Ys];try{e[Ys]=void 0;var a=!0}catch{}var r=MI.call(e);return a&&(t?e[Ys]=n:delete e[Ys]),r}Qg.exports=DI});var ny=O((pE,ty)=>{u();var OI=Object.prototype,RI=OI.toString;function NI(e){return RI.call(e)}ty.exports=NI});var xm=O((gE,iy)=>{u();var ay=Sl(),EI=ey(),AI=ny(),PI="[object Null]",FI="[object Undefined]",ry=ay?ay.toStringTag:void 0;function _I(e){return e==null?e===void 0?FI:PI:ry&&ry in Object(e)?EI(e):AI(e)}iy.exports=_I});var oy=O((xE,sy)=>{u();function zI(e){return e!=null&&typeof e=="object"}sy.exports=zI});var kl=O((wE,ly)=>{u();var LI=xm(),VI=oy(),WI="[object Symbol]";function HI(e){return typeof e=="symbol"||VI(e)&&LI(e)==WI}ly.exports=HI});var uy=O((CE,cy)=>{u();var BI=vl(),$I=kl(),qI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UI=/^\w*$/;function YI(e,t){if(BI(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||$I(e)?!0:UI.test(e)||!qI.test(e)||t!=null&&e in Object(t)}cy.exports=YI});var Il=O((kE,my)=>{u();function GI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}my.exports=GI});var fy=O((TE,dy)=>{u();var KI=xm(),JI=Il(),jI="[object AsyncFunction]",ZI="[object Function]",XI="[object GeneratorFunction]",QI="[object Proxy]";function e2(e){if(!JI(e))return!1;var t=KI(e);return t==ZI||t==XI||t==jI||t==QI}dy.exports=e2});var hy=O((DE,py)=>{u();var t2=Cl(),n2=t2["__core-js_shared__"];py.exports=n2});var xy=O((RE,yy)=>{u();var bm=hy(),gy=(function(){var e=/[^.]+$/.exec(bm&&bm.keys&&bm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function a2(e){return!!gy&&gy in e}yy.exports=a2});var wy=O((EE,by)=>{u();var r2=Function.prototype,i2=r2.toString;function s2(e){if(e!=null){try{return i2.call(e)}catch{}try{return e+""}catch{}}return""}by.exports=s2});var Cy=O((PE,vy)=>{u();var o2=fy(),l2=xy(),c2=Il(),u2=wy(),m2=/[\\^$.*+?()[\]{}|]/g,d2=/^\[object .+?Constructor\]$/,f2=Function.prototype,p2=Object.prototype,h2=f2.toString,g2=p2.hasOwnProperty,y2=RegExp("^"+h2.call(g2).replace(m2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function x2(e){if(!c2(e)||l2(e))return!1;var t=o2(e)?y2:d2;return t.test(u2(e))}vy.exports=x2});var ky=O((_E,Sy)=>{u();function b2(e,t){return e?.[t]}Sy.exports=b2});var Tl=O((LE,Iy)=>{u();var w2=Cy(),v2=ky();function C2(e,t){var n=v2(e,t);return w2(n)?n:void 0}Iy.exports=C2});var Gs=O((WE,Ty)=>{u();var S2=Tl(),k2=S2(Object,"create");Ty.exports=k2});var Oy=O((BE,Dy)=>{u();var My=Gs();function I2(){this.__data__=My?My(null):{},this.size=0}Dy.exports=I2});var Ny=O((qE,Ry)=>{u();function T2(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Ry.exports=T2});var Ay=O((YE,Ey)=>{u();var M2=Gs(),D2="__lodash_hash_undefined__",O2=Object.prototype,R2=O2.hasOwnProperty;function N2(e){var t=this.__data__;if(M2){var n=t[e];return n===D2?void 0:n}return R2.call(t,e)?t[e]:void 0}Ey.exports=N2});var Fy=O((KE,Py)=>{u();var E2=Gs(),A2=Object.prototype,P2=A2.hasOwnProperty;function F2(e){var t=this.__data__;return E2?t[e]!==void 0:P2.call(t,e)}Py.exports=F2});var zy=O((jE,_y)=>{u();var _2=Gs(),z2="__lodash_hash_undefined__";function L2(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_2&&t===void 0?z2:t,this}_y.exports=L2});var Vy=O((XE,Ly)=>{u();var V2=Oy(),W2=Ny(),H2=Ay(),B2=Fy(),$2=zy();function _i(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}_i.prototype.clear=V2;_i.prototype.delete=W2;_i.prototype.get=H2;_i.prototype.has=B2;_i.prototype.set=$2;Ly.exports=_i});var Hy=O((eA,Wy)=>{u();function q2(){this.__data__=[],this.size=0}Wy.exports=q2});var wm=O((nA,By)=>{u();function U2(e,t){return e===t||e!==e&&t!==t}By.exports=U2});var Ks=O((rA,$y)=>{u();var Y2=wm();function G2(e,t){for(var n=e.length;n--;)if(Y2(e[n][0],t))return n;return-1}$y.exports=G2});var Uy=O((sA,qy)=>{u();var K2=Ks(),J2=Array.prototype,j2=J2.splice;function Z2(e){var t=this.__data__,n=K2(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():j2.call(t,n,1),--this.size,!0}qy.exports=Z2});var Gy=O((lA,Yy)=>{u();var X2=Ks();function Q2(e){var t=this.__data__,n=X2(t,e);return n<0?void 0:t[n][1]}Yy.exports=Q2});var Jy=O((uA,Ky)=>{u();var eT=Ks();function tT(e){return eT(this.__data__,e)>-1}Ky.exports=tT});var Zy=O((dA,jy)=>{u();var nT=Ks();function aT(e,t){var n=this.__data__,a=nT(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}jy.exports=aT});var Qy=O((pA,Xy)=>{u();var rT=Hy(),iT=Uy(),sT=Gy(),oT=Jy(),lT=Zy();function zi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}zi.prototype.clear=rT;zi.prototype.delete=iT;zi.prototype.get=sT;zi.prototype.has=oT;zi.prototype.set=lT;Xy.exports=zi});var t0=O((gA,e0)=>{u();var cT=Tl(),uT=Cl(),mT=cT(uT,"Map");e0.exports=mT});var r0=O((xA,a0)=>{u();var n0=Vy(),dT=Qy(),fT=t0();function pT(){this.size=0,this.__data__={hash:new n0,map:new(fT||dT),string:new n0}}a0.exports=pT});var s0=O((wA,i0)=>{u();function hT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i0.exports=hT});var Js=O((CA,o0)=>{u();var gT=s0();function yT(e,t){var n=e.__data__;return gT(t)?n[typeof t=="string"?"string":"hash"]:n.map}o0.exports=yT});var c0=O((kA,l0)=>{u();var xT=Js();function bT(e){var t=xT(this,e).delete(e);return this.size-=t?1:0,t}l0.exports=bT});var m0=O((TA,u0)=>{u();var wT=Js();function vT(e){return wT(this,e).get(e)}u0.exports=vT});var f0=O((DA,d0)=>{u();var CT=Js();function ST(e){return CT(this,e).has(e)}d0.exports=ST});var h0=O((RA,p0)=>{u();var kT=Js();function IT(e,t){var n=kT(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}p0.exports=IT});var y0=O((EA,g0)=>{u();var TT=r0(),MT=c0(),DT=m0(),OT=f0(),RT=h0();function Li(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Li.prototype.clear=TT;Li.prototype.delete=MT;Li.prototype.get=DT;Li.prototype.has=OT;Li.prototype.set=RT;g0.exports=Li});var w0=O((PA,b0)=>{u();var x0=y0(),NT="Expected a function";function vm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(NT);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,a);return n.cache=i.set(r,s)||i,s};return n.cache=new(vm.Cache||x0),n}vm.Cache=x0;b0.exports=vm});var C0=O((_A,v0)=>{u();var ET=w0(),AT=500;function PT(e){var t=ET(e,function(a){return n.size===AT&&n.clear(),a}),n=t.cache;return t}v0.exports=PT});var k0=O((LA,S0)=>{u();var FT=C0(),_T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zT=/\\(\\)?/g,LT=FT(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_T,function(n,a,r,i){t.push(r?i.replace(zT,"$1"):a||n)}),t});S0.exports=LT});var T0=O((WA,I0)=>{u();function VT(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}I0.exports=VT});var E0=O((BA,N0)=>{u();var M0=Sl(),WT=T0(),HT=vl(),BT=kl(),$T=1/0,D0=M0?M0.prototype:void 0,O0=D0?D0.toString:void 0;function R0(e){if(typeof e=="string")return e;if(HT(e))return WT(e,R0)+"";if(BT(e))return O0?O0.call(e):"";var t=e+"";return t=="0"&&1/e==-$T?"-0":t}N0.exports=R0});var P0=O((qA,A0)=>{u();var qT=E0();function UT(e){return e==null?"":qT(e)}A0.exports=UT});var Cm=O((YA,F0)=>{u();var YT=vl(),GT=uy(),KT=k0(),JT=P0();function jT(e,t){return YT(e)?e:GT(e,t)?[e]:KT(JT(e))}F0.exports=jT});var Sm=O((KA,_0)=>{u();var ZT=kl(),XT=1/0;function QT(e){if(typeof e=="string"||ZT(e))return e;var t=e+"";return t=="0"&&1/e==-XT?"-0":t}_0.exports=QT});var L0=O((jA,z0)=>{u();var eM=Cm(),tM=Sm();function nM(e,t){t=eM(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[tM(t[n++])];return n&&n==a?e:void 0}z0.exports=nM});var Ml=O((XA,V0)=>{u();var aM=L0();function rM(e,t,n){var a=e==null?void 0:aM(e,t);return a===void 0?n:a}V0.exports=rM});var H0=O((eP,W0)=>{u();var iM=Tl(),sM=(function(){try{var e=iM(Object,"defineProperty");return e({},"",{}),e}catch{}})();W0.exports=sM});var q0=O((nP,$0)=>{u();var B0=H0();function oM(e,t,n){t=="__proto__"&&B0?B0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}$0.exports=oM});var Y0=O((rP,U0)=>{u();var lM=q0(),cM=wm(),uM=Object.prototype,mM=uM.hasOwnProperty;function dM(e,t,n){var a=e[t];(!(mM.call(e,t)&&cM(a,n))||n===void 0&&!(t in e))&&lM(e,t,n)}U0.exports=dM});var K0=O((sP,G0)=>{u();var fM=9007199254740991,pM=/^(?:0|[1-9]\d*)$/;function hM(e,t){var n=typeof e;return t=t??fM,!!t&&(n=="number"||n!="symbol"&&pM.test(e))&&e>-1&&e%1==0&&e<t}G0.exports=hM});var Z0=O((lP,j0)=>{u();var gM=Y0(),yM=Cm(),xM=K0(),J0=Il(),bM=Sm();function wM(e,t,n,a){if(!J0(e))return e;t=yM(t,e);for(var r=-1,i=t.length,s=i-1,o=e;o!=null&&++r<i;){var l=bM(t[r]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=s){var d=o[l];c=a?a(d,l,o):void 0,c===void 0&&(c=J0(d)?d:xM(t[r+1])?[]:{})}gM(o,l,c),o=o[l]}return e}j0.exports=wM});var Dl=O((uP,X0)=>{u();var vM=Z0();function CM(e,t,n){return e==null?e:vM(e,t,n)}X0.exports=CM});var ix=O((xP,rx)=>{u();rx.exports=TM;function km(){return new DOMException("The request is not allowed","NotAllowedError")}async function kM(e){if(!navigator.clipboard)throw km();return navigator.clipboard.writeText(e)}async function IM(e){let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);let n=window.getSelection(),a=window.document.createRange();n.removeAllRanges(),a.selectNode(t),n.addRange(a);let r=!1;try{r=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(t)}if(!r)throw km()}async function TM(e){try{await kM(e)}catch(t){try{await IM(e)}catch(n){throw n||t||km()}}}});var fx=O((OP,dx)=>{u();var Mr=window.__kwirth__.uiwReactCodeMirror,Vi=Mr!=null&&"default"in Object(Mr)?Mr.default:Mr;typeof Vi!="function"&&Vi!=null&&typeof Vi.default<"u"&&(Vi=Vi.default);dx.exports=Object.assign({},typeof Mr=="object"&&Mr!==null?Mr:{},{default:Vi,__esModule:!0})});var hx=O((NP,px)=>{u();var Dr=window.__kwirth__.codeMirrorState,Wi=Dr!=null&&"default"in Object(Dr)?Dr.default:Dr;typeof Wi!="function"&&Wi!=null&&typeof Wi.default<"u"&&(Wi=Wi.default);px.exports=Object.assign({},typeof Dr=="object"&&Dr!==null?Dr:{},{default:Wi,__esModule:!0})});var yx=O((AP,gx)=>{u();var Or=window.__kwirth__.codeMirrorLangYaml,Hi=Or!=null&&"default"in Object(Or)?Or.default:Or;typeof Hi!="function"&&Hi!=null&&typeof Hi.default<"u"&&(Hi=Hi.default);gx.exports=Object.assign({},typeof Or=="object"&&Or!==null?Or:{},{default:Hi,__esModule:!0})});var bx=O((FP,xx)=>{u();var Rr=window.__kwirth__.codeMirrorSearch,Bi=Rr!=null&&"default"in Object(Rr)?Rr.default:Rr;typeof Bi!="function"&&Bi!=null&&typeof Bi.default<"u"&&(Bi=Bi.default);xx.exports=Object.assign({},typeof Rr=="object"&&Rr!==null?Rr:{},{default:Bi,__esModule:!0})});var vx=O((zP,wx)=>{u();var Nr=window.__kwirth__.codeMirrorView,$i=Nr!=null&&"default"in Object(Nr)?Nr.default:Nr;typeof $i!="function"&&$i!=null&&typeof $i.default<"u"&&($i=$i.default);wx.exports=Object.assign({},typeof Nr=="object"&&Nr!==null?Nr:{},{default:$i,__esModule:!0})});var Sx=O((VP,Cx)=>{u();var Er=window.__kwirth__.codeMirrorCommands,qi=Er!=null&&"default"in Object(Er)?Er.default:Er;typeof qi!="function"&&qi!=null&&typeof qi.default<"u"&&(qi=qi.default);Cx.exports=Object.assign({},typeof Er=="object"&&Er!==null?Er:{},{default:qi,__esModule:!0})});var Ix=O((HP,kx)=>{u();var Ar=window.__kwirth__.codeMirrorLanguage,Ui=Ar!=null&&"default"in Object(Ar)?Ar.default:Ar;typeof Ui!="function"&&Ui!=null&&typeof Ui.default<"u"&&(Ui=Ui.default);kx.exports=Object.assign({},typeof Ar=="object"&&Ar!==null?Ar:{},{default:Ui,__esModule:!0})});var Mx=O(($P,Tx)=>{u();var Pr=window.__kwirth__.codeMirrorThemeOneDark,Yi=Pr!=null&&"default"in Object(Pr)?Pr.default:Pr;typeof Yi!="function"&&Yi!=null&&typeof Yi.default<"u"&&(Yi=Yi.default);Tx.exports=Object.assign({},typeof Pr=="object"&&Pr!==null?Pr:{},{default:Yi,__esModule:!0})});var Mm=O((y3,Hx)=>{u();var _r=window.__kwirth__.recharts,Ki=_r!=null&&"default"in Object(_r)?_r.default:_r;typeof Ki!="function"&&Ki!=null&&typeof Ki.default<"u"&&(Ki=Ki.default);Hx.exports=Object.assign({},typeof _r=="object"&&_r!==null?_r:{},{default:Ki,__esModule:!0})});u();var Em=`.custom-fm-magnify.file-explorer {\r
34
+ `+e.slice(s+1):l+=e.slice(r),l.slice(1)}function pk(e){let t="",n=0;for(let a=0;a<e.length;n>=65536?a+=2:a++){n=Ls(e,a);let r=qt[n];!r&&Hs(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||ik(n)}return t}function hk(e,t,n){let a="",r=e.tag;for(let i=0,s=n.length;i<s;i+=1){let o=n[i];e.replacer&&(o=e.replacer.call(n,String(i),o)),(wa(e,t,o,!1,!1)||typeof o>"u"&&wa(e,t,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump)}e.tag=r,e.dump="["+a+"]"}function Tg(e,t,n,a){let r="",i=e.tag;for(let s=0,o=n.length;s<o;s+=1){let l=n[s];e.replacer&&(l=e.replacer.call(n,String(s),l)),(wa(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!a||r!=="")&&(r+=dm(e,t)),e.dump&&Vs===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump)}e.tag=i,e.dump=r||"[]"}function gk(e,t,n){let a="",r=e.tag,i=Object.keys(n);for(let s=0,o=i.length;s<o;s+=1){let l="";a!==""&&(l+=", "),e.condenseFlow&&(l+='"');let c=i[s],d=n[c];e.replacer&&(d=e.replacer.call(n,c,d)),wa(e,t,c,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,d,!1,!1)&&(l+=e.dump,a+=l))}e.tag=r,e.dump="{"+a+"}"}function yk(e,t,n,a){let r="",i=e.tag,s=Object.keys(n);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Bs("sortKeys must be a boolean or a function");for(let o=0,l=s.length;o<l;o+=1){let c="";(!a||r!=="")&&(c+=dm(e,t));let d=s[o],m=n[d];if(e.replacer&&(m=e.replacer.call(n,d,m)),!wa(e,t+1,d,!0,!0,!0))continue;let f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;f&&(e.dump&&Vs===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,f&&(c+=dm(e,t)),wa(e,t+1,m,!0,f)&&(e.dump&&Vs===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,r+=c)}e.tag=i,e.dump=r||"{}"}function Mg(e,t,n){let a=n?e.explicitTypes:e.implicitTypes;for(let r=0,i=a.length;r<i;r+=1){let s=a[r];if((s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){let o=e.styleMap[s.tag]||s.defaultStyle,l;if(Dg.call(s.represent)==="[object Function]")l=s.represent(t,o);else if(Og.call(s.represent,o))l=s.represent[o](t,o);else throw new Bs("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=l}return!0}}return!1}function wa(e,t,n,a,r,i,s){e.tag=null,e.dump=n,Mg(e,n,!1)||Mg(e,n,!0);let o=Dg.call(e.dump),l=a;a&&(a=e.flowLevel<0||e.flowLevel>t);let c=o==="[object Object]"||o==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(r=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),o==="[object Object]")a&&Object.keys(e.dump).length!==0?(yk(e,t,e.dump,r),m&&(e.dump="&ref_"+d+e.dump)):(gk(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Tg(e,t-1,e.dump,r):Tg(e,t,e.dump,r),m&&(e.dump="&ref_"+d+e.dump)):(hk(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&dk(e,e.dump,t,i,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Bs("unacceptable kind of an object to dump "+o)}if(e.tag!==null&&e.tag!=="?"){let f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump}}return!0}function xk(e,t){let n=[],a=[];pm(e,n,a);let r=a.length;for(let i=0;i<r;i+=1)t.duplicates.push(n[a[i]]);t.usedDuplicates=new Array(r)}function pm(e,t,n){if(e!==null&&typeof e=="object"){let a=t.indexOf(e);if(a!==-1)n.indexOf(a)===-1&&n.push(a);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)pm(e[r],t,n);else{let r=Object.keys(e);for(let i=0,s=r.length;i<s;i+=1)pm(e[r[i]],t,n)}}}function bk(e,t){t=t||{};let n=new ok(t);n.noRefs||xk(e,n);let a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),wa(n,0,a,!0,!0)?n.dump+`
35
+ `:""}Vg.exports.dump=bk});var xl=D((YN,jt)=>{"use strict";u();var Hg=bg(),wk=Wg();function gm(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}jt.exports.Type=$t();jt.exports.Schema=$u();jt.exports.FAILSAFE_SCHEMA=Gu();jt.exports.JSON_SCHEMA=Xu();jt.exports.CORE_SCHEMA=Qu();jt.exports.DEFAULT_SCHEMA=ul();jt.exports.load=Hg.load;jt.exports.loadAll=Hg.loadAll;jt.exports.dump=wk.dump;jt.exports.YAMLException=Ri();jt.exports.types={binary:am(),float:Zu(),map:Yu(),null:Ku(),pairs:im(),set:sm(),timestamp:em(),bool:Ju(),int:ju(),merge:tm(),omap:rm(),seq:Uu(),str:qu()};jt.exports.safeLoad=gm("safeLoad","load");jt.exports.safeLoadAll=gm("safeLoadAll","loadAll");jt.exports.safeDump=gm("safeDump","dump")});var Sl=D((gE,Jg)=>{u();var Tk=Array.isArray;Jg.exports=Tk});var Zg=D((xE,jg)=>{u();var Mk=typeof global=="object"&&global&&global.Object===Object&&global;jg.exports=Mk});var Cl=D((wE,Xg)=>{u();var Dk=Zg(),Ok=typeof self=="object"&&self&&self.Object===Object&&self,Rk=Dk||Ok||Function("return this")();Xg.exports=Rk});var vl=D((CE,Qg)=>{u();var Nk=Cl(),Ek=Nk.Symbol;Qg.exports=Ek});var ay=D((IE,ny)=>{u();var ey=vl(),ty=Object.prototype,Ak=ty.hasOwnProperty,Pk=ty.toString,Gs=ey?ey.toStringTag:void 0;function Fk(e){var t=Ak.call(e,Gs),n=e[Gs];try{e[Gs]=void 0;var a=!0}catch{}var r=Pk.call(e);return a&&(t?e[Gs]=n:delete e[Gs]),r}ny.exports=Fk});var iy=D((TE,ry)=>{u();var _k=Object.prototype,zk=_k.toString;function Lk(e){return zk.call(e)}ry.exports=Lk});var bm=D((DE,ly)=>{u();var sy=vl(),Vk=ay(),Wk=iy(),Hk="[object Null]",Bk="[object Undefined]",oy=sy?sy.toStringTag:void 0;function $k(e){return e==null?e===void 0?Bk:Hk:oy&&oy in Object(e)?Vk(e):Wk(e)}ly.exports=$k});var uy=D((RE,cy)=>{u();function qk(e){return e!=null&&typeof e=="object"}cy.exports=qk});var Il=D((EE,my)=>{u();var Uk=bm(),Yk=uy(),Gk="[object Symbol]";function Kk(e){return typeof e=="symbol"||Yk(e)&&Uk(e)==Gk}my.exports=Kk});var fy=D((PE,dy)=>{u();var Jk=Sl(),jk=Il(),Zk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xk=/^\w*$/;function Qk(e,t){if(Jk(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||jk(e)?!0:Xk.test(e)||!Zk.test(e)||t!=null&&e in Object(t)}dy.exports=Qk});var kl=D((_E,py)=>{u();function e2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}py.exports=e2});var gy=D((LE,hy)=>{u();var t2=bm(),n2=kl(),a2="[object AsyncFunction]",r2="[object Function]",i2="[object GeneratorFunction]",s2="[object Proxy]";function o2(e){if(!n2(e))return!1;var t=t2(e);return t==r2||t==i2||t==a2||t==s2}hy.exports=o2});var xy=D((WE,yy)=>{u();var l2=Cl(),c2=l2["__core-js_shared__"];yy.exports=c2});var Sy=D((BE,wy)=>{u();var wm=xy(),by=(function(){var e=/[^.]+$/.exec(wm&&wm.keys&&wm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function u2(e){return!!by&&by in e}wy.exports=u2});var vy=D((qE,Cy)=>{u();var m2=Function.prototype,d2=m2.toString;function f2(e){if(e!=null){try{return d2.call(e)}catch{}try{return e+""}catch{}}return""}Cy.exports=f2});var ky=D((YE,Iy)=>{u();var p2=gy(),h2=Sy(),g2=kl(),y2=vy(),x2=/[\\^$.*+?()[\]{}|]/g,b2=/^\[object .+?Constructor\]$/,w2=Function.prototype,S2=Object.prototype,C2=w2.toString,v2=S2.hasOwnProperty,I2=RegExp("^"+C2.call(v2).replace(x2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k2(e){if(!g2(e)||h2(e))return!1;var t=p2(e)?I2:b2;return t.test(y2(e))}Iy.exports=k2});var My=D((KE,Ty)=>{u();function T2(e,t){return e?.[t]}Ty.exports=T2});var Tl=D((jE,Dy)=>{u();var M2=ky(),D2=My();function O2(e,t){var n=D2(e,t);return M2(n)?n:void 0}Dy.exports=O2});var Ks=D((XE,Oy)=>{u();var R2=Tl(),N2=R2(Object,"create");Oy.exports=N2});var Ey=D((eA,Ny)=>{u();var Ry=Ks();function E2(){this.__data__=Ry?Ry(null):{},this.size=0}Ny.exports=E2});var Py=D((nA,Ay)=>{u();function A2(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Ay.exports=A2});var _y=D((rA,Fy)=>{u();var P2=Ks(),F2="__lodash_hash_undefined__",_2=Object.prototype,z2=_2.hasOwnProperty;function L2(e){var t=this.__data__;if(P2){var n=t[e];return n===F2?void 0:n}return z2.call(t,e)?t[e]:void 0}Fy.exports=L2});var Ly=D((sA,zy)=>{u();var V2=Ks(),W2=Object.prototype,H2=W2.hasOwnProperty;function B2(e){var t=this.__data__;return V2?t[e]!==void 0:H2.call(t,e)}zy.exports=B2});var Wy=D((lA,Vy)=>{u();var $2=Ks(),q2="__lodash_hash_undefined__";function U2(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$2&&t===void 0?q2:t,this}Vy.exports=U2});var By=D((uA,Hy)=>{u();var Y2=Ey(),G2=Py(),K2=_y(),J2=Ly(),j2=Wy();function _i(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}_i.prototype.clear=Y2;_i.prototype.delete=G2;_i.prototype.get=K2;_i.prototype.has=J2;_i.prototype.set=j2;Hy.exports=_i});var qy=D((dA,$y)=>{u();function Z2(){this.__data__=[],this.size=0}$y.exports=Z2});var Sm=D((pA,Uy)=>{u();function X2(e,t){return e===t||e!==e&&t!==t}Uy.exports=X2});var Js=D((gA,Yy)=>{u();var Q2=Sm();function eT(e,t){for(var n=e.length;n--;)if(Q2(e[n][0],t))return n;return-1}Yy.exports=eT});var Ky=D((xA,Gy)=>{u();var tT=Js(),nT=Array.prototype,aT=nT.splice;function rT(e){var t=this.__data__,n=tT(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():aT.call(t,n,1),--this.size,!0}Gy.exports=rT});var jy=D((wA,Jy)=>{u();var iT=Js();function sT(e){var t=this.__data__,n=iT(t,e);return n<0?void 0:t[n][1]}Jy.exports=sT});var Xy=D((CA,Zy)=>{u();var oT=Js();function lT(e){return oT(this.__data__,e)>-1}Zy.exports=lT});var e0=D((IA,Qy)=>{u();var cT=Js();function uT(e,t){var n=this.__data__,a=cT(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}Qy.exports=uT});var n0=D((TA,t0)=>{u();var mT=qy(),dT=Ky(),fT=jy(),pT=Xy(),hT=e0();function zi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}zi.prototype.clear=mT;zi.prototype.delete=dT;zi.prototype.get=fT;zi.prototype.has=pT;zi.prototype.set=hT;t0.exports=zi});var r0=D((DA,a0)=>{u();var gT=Tl(),yT=Cl(),xT=gT(yT,"Map");a0.exports=xT});var o0=D((RA,s0)=>{u();var i0=By(),bT=n0(),wT=r0();function ST(){this.size=0,this.__data__={hash:new i0,map:new(wT||bT),string:new i0}}s0.exports=ST});var c0=D((EA,l0)=>{u();function CT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}l0.exports=CT});var js=D((PA,u0)=>{u();var vT=c0();function IT(e,t){var n=e.__data__;return vT(t)?n[typeof t=="string"?"string":"hash"]:n.map}u0.exports=IT});var d0=D((_A,m0)=>{u();var kT=js();function TT(e){var t=kT(this,e).delete(e);return this.size-=t?1:0,t}m0.exports=TT});var p0=D((LA,f0)=>{u();var MT=js();function DT(e){return MT(this,e).get(e)}f0.exports=DT});var g0=D((WA,h0)=>{u();var OT=js();function RT(e){return OT(this,e).has(e)}h0.exports=RT});var x0=D((BA,y0)=>{u();var NT=js();function ET(e,t){var n=NT(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}y0.exports=ET});var w0=D((qA,b0)=>{u();var AT=o0(),PT=d0(),FT=p0(),_T=g0(),zT=x0();function Li(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Li.prototype.clear=AT;Li.prototype.delete=PT;Li.prototype.get=FT;Li.prototype.has=_T;Li.prototype.set=zT;b0.exports=Li});var v0=D((YA,C0)=>{u();var S0=w0(),LT="Expected a function";function Cm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(LT);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,a);return n.cache=i.set(r,s)||i,s};return n.cache=new(Cm.Cache||S0),n}Cm.Cache=S0;C0.exports=Cm});var k0=D((KA,I0)=>{u();var VT=v0(),WT=500;function HT(e){var t=VT(e,function(a){return n.size===WT&&n.clear(),a}),n=t.cache;return t}I0.exports=HT});var M0=D((jA,T0)=>{u();var BT=k0(),$T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qT=/\\(\\)?/g,UT=BT(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($T,function(n,a,r,i){t.push(r?i.replace(qT,"$1"):a||n)}),t});T0.exports=UT});var O0=D((XA,D0)=>{u();function YT(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}D0.exports=YT});var F0=D((eP,P0)=>{u();var R0=vl(),GT=O0(),KT=Sl(),JT=Il(),jT=1/0,N0=R0?R0.prototype:void 0,E0=N0?N0.toString:void 0;function A0(e){if(typeof e=="string")return e;if(KT(e))return GT(e,A0)+"";if(JT(e))return E0?E0.call(e):"";var t=e+"";return t=="0"&&1/e==-jT?"-0":t}P0.exports=A0});var z0=D((nP,_0)=>{u();var ZT=F0();function XT(e){return e==null?"":ZT(e)}_0.exports=XT});var vm=D((rP,L0)=>{u();var QT=Sl(),eM=fy(),tM=M0(),nM=z0();function aM(e,t){return QT(e)?e:eM(e,t)?[e]:tM(nM(e))}L0.exports=aM});var Im=D((sP,V0)=>{u();var rM=Il(),iM=1/0;function sM(e){if(typeof e=="string"||rM(e))return e;var t=e+"";return t=="0"&&1/e==-iM?"-0":t}V0.exports=sM});var H0=D((lP,W0)=>{u();var oM=vm(),lM=Im();function cM(e,t){t=oM(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[lM(t[n++])];return n&&n==a?e:void 0}W0.exports=cM});var Ml=D((uP,B0)=>{u();var uM=H0();function mM(e,t,n){var a=e==null?void 0:uM(e,t);return a===void 0?n:a}B0.exports=mM});var q0=D((dP,$0)=>{u();var dM=Tl(),fM=(function(){try{var e=dM(Object,"defineProperty");return e({},"",{}),e}catch{}})();$0.exports=fM});var G0=D((pP,Y0)=>{u();var U0=q0();function pM(e,t,n){t=="__proto__"&&U0?U0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Y0.exports=pM});var J0=D((gP,K0)=>{u();var hM=G0(),gM=Sm(),yM=Object.prototype,xM=yM.hasOwnProperty;function bM(e,t,n){var a=e[t];(!(xM.call(e,t)&&gM(a,n))||n===void 0&&!(t in e))&&hM(e,t,n)}K0.exports=bM});var Z0=D((xP,j0)=>{u();var wM=9007199254740991,SM=/^(?:0|[1-9]\d*)$/;function CM(e,t){var n=typeof e;return t=t??wM,!!t&&(n=="number"||n!="symbol"&&SM.test(e))&&e>-1&&e%1==0&&e<t}j0.exports=CM});var ex=D((wP,Q0)=>{u();var vM=J0(),IM=vm(),kM=Z0(),X0=kl(),TM=Im();function MM(e,t,n,a){if(!X0(e))return e;t=IM(t,e);for(var r=-1,i=t.length,s=i-1,o=e;o!=null&&++r<i;){var l=TM(t[r]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=s){var d=o[l];c=a?a(d,l,o):void 0,c===void 0&&(c=X0(d)?d:kM(t[r+1])?[]:{})}vM(o,l,c),o=o[l]}return e}Q0.exports=MM});var Dl=D((CP,tx)=>{u();var DM=ex();function OM(e,t,n){return e==null?e:DM(e,t,n)}tx.exports=OM});var lx=D((RP,ox)=>{u();ox.exports=AM;function km(){return new DOMException("The request is not allowed","NotAllowedError")}async function NM(e){if(!navigator.clipboard)throw km();return navigator.clipboard.writeText(e)}async function EM(e){let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);let n=window.getSelection(),a=window.document.createRange();n.removeAllRanges(),a.selectNode(t),n.addRange(a);let r=!1;try{r=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(t)}if(!r)throw km()}async function AM(e){try{await NM(e)}catch(t){try{await EM(e)}catch(n){throw n||t||km()}}}});var gx=D((HP,hx)=>{u();var Tr=window.__kwirth__.uiwReactCodeMirror,Vi=Tr!=null&&"default"in Object(Tr)?Tr.default:Tr;typeof Vi!="function"&&Vi!=null&&typeof Vi.default<"u"&&(Vi=Vi.default);hx.exports=Object.assign({},typeof Tr=="object"&&Tr!==null?Tr:{},{default:Vi,__esModule:!0})});var xx=D(($P,yx)=>{u();var Mr=window.__kwirth__.codeMirrorState,Wi=Mr!=null&&"default"in Object(Mr)?Mr.default:Mr;typeof Wi!="function"&&Wi!=null&&typeof Wi.default<"u"&&(Wi=Wi.default);yx.exports=Object.assign({},typeof Mr=="object"&&Mr!==null?Mr:{},{default:Wi,__esModule:!0})});var wx=D((UP,bx)=>{u();var Dr=window.__kwirth__.codeMirrorLangYaml,Hi=Dr!=null&&"default"in Object(Dr)?Dr.default:Dr;typeof Hi!="function"&&Hi!=null&&typeof Hi.default<"u"&&(Hi=Hi.default);bx.exports=Object.assign({},typeof Dr=="object"&&Dr!==null?Dr:{},{default:Hi,__esModule:!0})});var Cx=D((GP,Sx)=>{u();var Or=window.__kwirth__.codeMirrorSearch,Bi=Or!=null&&"default"in Object(Or)?Or.default:Or;typeof Bi!="function"&&Bi!=null&&typeof Bi.default<"u"&&(Bi=Bi.default);Sx.exports=Object.assign({},typeof Or=="object"&&Or!==null?Or:{},{default:Bi,__esModule:!0})});var Ix=D((JP,vx)=>{u();var Rr=window.__kwirth__.codeMirrorView,$i=Rr!=null&&"default"in Object(Rr)?Rr.default:Rr;typeof $i!="function"&&$i!=null&&typeof $i.default<"u"&&($i=$i.default);vx.exports=Object.assign({},typeof Rr=="object"&&Rr!==null?Rr:{},{default:$i,__esModule:!0})});var Tx=D((ZP,kx)=>{u();var Nr=window.__kwirth__.codeMirrorCommands,qi=Nr!=null&&"default"in Object(Nr)?Nr.default:Nr;typeof qi!="function"&&qi!=null&&typeof qi.default<"u"&&(qi=qi.default);kx.exports=Object.assign({},typeof Nr=="object"&&Nr!==null?Nr:{},{default:qi,__esModule:!0})});var Dx=D((QP,Mx)=>{u();var Er=window.__kwirth__.codeMirrorLanguage,Ui=Er!=null&&"default"in Object(Er)?Er.default:Er;typeof Ui!="function"&&Ui!=null&&typeof Ui.default<"u"&&(Ui=Ui.default);Mx.exports=Object.assign({},typeof Er=="object"&&Er!==null?Er:{},{default:Ui,__esModule:!0})});var Rx=D((t3,Ox)=>{u();var Ar=window.__kwirth__.codeMirrorThemeOneDark,Yi=Ar!=null&&"default"in Object(Ar)?Ar.default:Ar;typeof Yi!="function"&&Yi!=null&&typeof Yi.default<"u"&&(Yi=Yi.default);Ox.exports=Object.assign({},typeof Ar=="object"&&Ar!==null?Ar:{},{default:Yi,__esModule:!0})});var Dm=D((O3,qx)=>{u();var Fr=window.__kwirth__.recharts,Ki=Fr!=null&&"default"in Object(Fr)?Fr.default:Fr;typeof Ki!="function"&&Ki!=null&&typeof Ki.default<"u"&&(Ki=Ki.default);qx.exports=Object.assign({},typeof Fr=="object"&&Fr!==null?Fr:{},{default:Ki,__esModule:!0})});u();var Fm=`.custom-fm-magnify.file-explorer {\r
36
36
  border: 1px solid #666;\r
37
37
  }\r
38
38
  \r
@@ -108,7 +108,7 @@
108
108
  .file-explorer .toolbar .file-action-container .file-action:hover {\r
109
109
  background-color: var(--mui-palette-action-selected) !important;\r
110
110
  \r
111
- }`;var Am=`.react-resizable {\r
111
+ }`;var _m=`.react-resizable {\r
112
112
  position: relative;\r
113
113
  }\r
114
114
  \r
@@ -242,9 +242,9 @@
242
242
  height: 5px;\r
243
243
  border-right: 2px solid #999;\r
244
244
  border-bottom: 2px solid #999;\r
245
- } */`;u();var Zn=I(Rt(),1);u();var fo=class{},po=class{};u();var Vm=I(Jt(),1),cs=I(fe(),1),Wm=(0,cs.jsx)(Vm.Search,{}),Hm=e=>(0,cs.jsx)(cs.Fragment,{});var Pe=I(Qa(),1);u();u();var us=[{name:"ComponentStatus",priority:5},{name:"Node",priority:1},{name:"V1APIResource",priority:5},{name:"Namespace",priority:1},{name:"NodeMetrics",priority:3},{name:"Pod",priority:2},{name:"PodMetrics",priority:3},{name:"Deployment",priority:2},{name:"DaemonSet",priority:2},{name:"ReplicaSet",priority:2},{name:"ReplicationController",priority:2},{name:"StatefulSet",priority:2},{name:"Job",priority:2},{name:"CronJob",priority:2},{name:"ConfigMap",priority:2},{name:"Secret",priority:2},{name:"ResourceQuota",priority:4},{name:"LimitRange",priority:4},{name:"HorizontalPodAutoscaler",priority:4},{name:"PodDisruptionBudget",priority:4},{name:"PriorityClass",priority:4},{name:"RuntimeClass",priority:4},{name:"Lease",priority:9},{name:"ValidatingWebhookConfiguration",priority:8},{name:"MutatingWebhookConfiguration",priority:8},{name:"Service",priority:2},{name:"Endpoints",priority:3},{name:"Ingress",priority:2},{name:"IngressClass",priority:5},{name:"NetworkPolicy",priority:3},{name:"PersistentVolumeClaim",priority:2},{name:"PersistentVolume",priority:2},{name:"StorageClass",priority:3},{name:"VolumeAttachment",priority:4},{name:"CSIDriver",priority:5},{name:"CSINode",priority:5},{name:"CSIStorageCapacity",priority:5},{name:"ServiceAccount",priority:5},{name:"ClusterRole",priority:2},{name:"Role",priority:2},{name:"ClusterRoleBinding",priority:2},{name:"RoleBinding",priority:2},{name:"CustomResourceDefinition",priority:4},{name:"CRD Instances",priority:4}].sort((e,t)=>e.priority-t.priority),Xl=class{constructor(){this.source=us;this.sync=us}},ei=class{constructor(){this.palette="light";this.logLines=5e3;this.dataConfig=new Xl;this.dataHelm=!1;this.dataManagedFields=!1;this.tracing=!1;this.customActions=[]}};var go=class{constructor(){this.clusterInfo=void 0;this.paused=!1;this.started=!1;this.files=[];this.clusterEvents=[];this.currentPath="/";this.timers=[];this.windows=[];this.contentWindows=[];this.pendingWebSocketRequests=new Map;this.metricsCluster=[];this.metricsProviderMissing=!1;this.eventsProviderMissing=!1;this.metricsPodDetail=[];this.logSearchResults=[];this.logSearchDone=!0;this.updateNamespaces=void 0;this.userPreferences=new ei}};u();var Qe=I(Ze(),1);var Le=I(ht(),1),mt=I(Qa(),1),y1=I(Um(),1);u();u();var Ft=[];for(let e=0;e<256;++e)Ft.push((e+256).toString(16).slice(1));function Ym(e,t=0){return(Ft[e[t+0]]+Ft[e[t+1]]+Ft[e[t+2]]+Ft[e[t+3]]+"-"+Ft[e[t+4]]+Ft[e[t+5]]+"-"+Ft[e[t+6]]+Ft[e[t+7]]+"-"+Ft[e[t+8]]+Ft[e[t+9]]+"-"+Ft[e[t+10]]+Ft[e[t+11]]+Ft[e[t+12]]+Ft[e[t+13]]+Ft[e[t+14]]+Ft[e[t+15]]).toLowerCase()}u();var Ql,W1=new Uint8Array(16);function ec(){if(!Ql){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ql=crypto.getRandomValues.bind(crypto)}return Ql(W1)}u();u();var H1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),tc={randomUUID:H1};function B1(e,t,n){if(tc.randomUUID&&!t&&!e)return tc.randomUUID();e=e||{};let a=e.random??e.rng?.()??ec();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let r=0;r<16;++r)t[n+r]=a[r];return t}return Ym(a)}var it=B1;var Qs=I(Rt(),1);u();var w=I(Jt(),1);u();var Ln=I(ht(),1),bt=I(fe(),1),Gm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"m9 19 1.41-1.41L5.83 13H22v-2H5.83l4.59-4.59L9 5l-7 7z"})}),Km=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11m-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2M5 20v2h14v-2z"})}),Jm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M4 11h16v2H4z"})}),nc=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M7 9H2V7h5zm0 3H2v2h5zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3M2 19h10v-2H2z"})}),ms=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2zM19 19H5L19 5zm-2-2v-1.5h-5V17z"})}),jm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M18 16h-2v-1H8v1H6v-1H2v5h20v-5h-4zm2-8h-3V6c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v4h4v-2h2v2h8v-2h2v2h4v-4c0-1.1-.9-2-2-2m-5 0H9V6h6z"})}),Zm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"})}),Xm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"})}),Qm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"})}),Vn=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37M2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3z"})});u();var Ye=I(fe(),1),ed=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M13.95 13.5h-.23c-.18.11-.26.32-.18.5l.86 2.11c.83-.53 1.46-1.32 1.79-2.25l-2.23-.36h-.01m-3.45.29a.415.415 0 0 0-.38-.29h-.08l-2.22.37c.33.92.96 1.7 1.79 2.23l.85-2.07V14c.04-.05.04-.14.04-.21m1.83.81a.378.378 0 0 0-.51-.15c-.07.05-.12.08-.15.15h-.01l-1.09 1.97c.78.26 1.62.31 2.43.12c.14-.03.29-.07.43-.12l-1.09-1.97h-.01m3.45-4.57L14.1 11.5l.01.03a.37.37 0 0 0-.04.53c.05.06.11.1.18.12l.01.01l2.17.62c.07-.97-.14-1.95-.65-2.78m-3.11.16c.01.21.18.37.39.36c.08 0 .15-.02.21-.05h.01l1.83-1.31a4.45 4.45 0 0 0-2.57-1.24l.13 2.24m-1.94.31c.17.11.4.08.52-.09c.05-.06.07-.13.08-.21h.01l.12-2.25c-.15.02-.3.05-.46.08c-.8.18-1.54.58-2.12 1.16l1.84 1.31h.01m-.99 1.69c.2-.05.32-.26.26-.46c0-.08-.05-.14-.11-.19v-.01L8.21 10c-.52.86-.74 1.84-.63 2.82l2.16-.62v-.01m1.64.66l.62.3l.62-.3l.15-.67l-.43-.53h-.69l-.43.53l.16.67m10.89 1.32L20.5 6.5c-.09-.42-.37-.76-.74-.94l-7.17-3.43c-.37-.17-.81-.17-1.19 0L4.24 5.56c-.37.18-.65.52-.74.94l-1.77 7.67c-.05.2-.05.4 0 .59c.01.06.03.12.05.18c.03.09.08.19.13.27c.03.04.05.08.09.11l4.95 6.18c.02 0 .05.04.05.06c.1.09.19.16.28.22c.12.08.26.14.4.17c.11.05.23.05.32.05h8.12c.07 0 .14-.03.2-.05c.05-.01.1-.03.14-.04c.04-.02.07-.03.11-.05c.05-.02.1-.05.15-.08c.12-.08.23-.18.33-.28l.15-.2l4.8-5.98c.1-.12.17-.25.22-.38c.02-.06.04-.12.05-.18c.05-.19.05-.4 0-.59m-7.43 2.99c.02.06.04.12.07.17c-.04.08-.06.17-.03.26c.12.24.23.46.38.68c.08.11.16.23.24.34c0 .03.03.08.04.12c.12.2.06.46-.15.59s-.47.05-.59-.15c-.01-.03-.02-.05-.03-.08c-.02-.03-.04-.09-.06-.09c-.05-.15-.09-.28-.12-.41c-.09-.25-.17-.49-.3-.72a.375.375 0 0 0-.21-.14l-.08-.16c-1.29.48-2.7.48-3.97-.01l-.1.18c-.07.01-.14.04-.19.09c-.14.24-.24.49-.33.77c-.03.13-.07.26-.12.4c-.02 0-.04.07-.06.1a.43.43 0 0 1-.81-.29c.01-.03.03-.05.04-.08c.04-.03.04-.08.04-.11c.09-.12.16-.23.24-.35c.16-.21.29-.45.39-.69a.54.54 0 0 0-.03-.25l.07-.18a5.611 5.611 0 0 1-2.47-3.09l-.2.03a.388.388 0 0 0-.23-.09c-.27.05-.51.13-.77.22c-.11.06-.24.11-.37.15c-.03.01-.07.02-.13.03a.438.438 0 0 1-.54-.27c-.07-.23.04-.47.28-.55c.02 0 .05-.01.08-.01v-.01h.01l.11-.02c.14-.04.28-.04.41-.04c.26 0 .52-.06.77-.12c.08-.05.14-.11.19-.19l.19-.05c-.21-1.36.1-2.73.86-3.87l-.14-.12c0-.09-.03-.18-.08-.25c-.2-.17-.41-.32-.64-.45c-.12-.06-.24-.13-.36-.21c-.02-.02-.06-.05-.08-.07l-.01-.01c-.2-.16-.25-.42-.11-.63c.09-.1.21-.15.35-.15c.11.01.21.05.3.12l.09.07c.1.09.19.2.28.3c.18.19.37.37.58.52c.08.04.17.05.26.03l.15.11c.75-.8 1.73-1.36 2.8-1.6c.25-.06.52-.1.78-.12l.01-.18a.45.45 0 0 0 .14-.23c.01-.26-.01-.52-.05-.77c-.03-.13-.05-.27-.06-.41V5.1c-.02-.24.15-.45.39-.48s.44.15.47.38v.22c-.01.14-.03.28-.06.41c-.04.25-.06.51-.05.77c.02.1.07.17.14.22l.01.19c1.36.12 2.62.73 3.56 1.72l.16-.12c.09.02.18.01.26-.03c.21-.15.41-.33.58-.52c.09-.1.18-.2.28-.3c.03-.02.07-.06.1-.06c.17-.18.44-.18.59 0c.19.16.18.43 0 .6c0 .02-.03.04-.06.06a2.495 2.495 0 0 1-.44.28c-.23.13-.45.28-.64.45c-.06.07-.09.15-.08.24l-.16.14a5.44 5.44 0 0 1 .88 3.86l.19.05c.04.08.11.14.19.18c.25.07.51.11.77.14h.41c.03.03.08.04.12.05c.24.03.4.25.37.49c-.05.23-.24.4-.48.37c-.03-.01-.07-.01-.07-.02v-.01c-.06 0-.1-.01-.14-.02c-.13-.04-.25-.09-.36-.15c-.26-.1-.5-.17-.77-.21c-.09 0-.17 0-.23.08c-.07-.01-.13-.02-.19-.03c-.41 1.31-1.31 2.41-2.47 3.11Z"})}),td=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M10 3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10 0h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM10 13H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1zm8 1h-2v2h-2v2h2v2h2v-2h2v-2h-2z"})}),nd=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M7.05 6.462a2 2 0 0 0 2.63-1.519l.32-1.72a9 9 0 0 1 3.998 0l.322 1.72a2 2 0 0 0 2.63 1.519l1.649-.58a9 9 0 0 1 2.001 3.46l-1.33 1.14a2 2 0 0 0 0 3.037l1.33 1.139a9 9 0 0 1-2.001 3.46l-1.65-.58a2 2 0 0 0-2.63 1.519L14 20.777a9 9 0 0 1-3.998 0l-.322-1.72a2 2 0 0 0-2.63-1.519l-1.649.58a9 9 0 0 1-2.001-3.46l1.33-1.14a2 2 0 0 0 0-3.036L3.4 9.342a9 9 0 0 1 2-3.46zM12 9a3 3 0 1 1 0 6a3 3 0 0 1 0-6",clipRule:"evenodd"})}),ad=({size:e})=>(0,Ye.jsx)("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M12 12h7c-.53 4.11-3.28 7.78-7 8.92zH5V6.3l7-3.11M12 1L3 5v6c0 5.55 3.84 10.73 9 12c5.16-1.27 9-6.45 9-12V5z"})}),rd=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",d:"M2 5.077S3.667 2 12 2s10 3.077 10 3.077v13.846S20.333 22 12 22S2 18.923 2 18.923V5.077ZM2 13s3.333 3 10 3s10-3 10-3M2 7s3.333 3 10 3s10-3 10-3"})}),id=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 1024 1024",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M992 512H832v256h64q26 0 45 19t19 45v128q0 27-19 45.5t-45 18.5H704q-27 0-45.5-18.5T640 960V832q0-26 18.5-45t45.5-19h64V512H320v256h64q26 0 45 19t19 45v128q0 27-19 45.5t-45 18.5H192q-27 0-45.5-18.5T128 960V832q0-26 18.5-45t45.5-19h64V512H32q-13 0-22.5-9.5T0 480t9.5-22.5T32 448h480V256h-64q-27 0-45.5-18.5T384 192V64q0-26 18.5-45T448 0h192q26 0 45 19t19 45v128q0 27-19 45.5T640 256h-64v192h416q13 0 22.5 9.5t9.5 22.5t-9.5 22.5T992 512z"})}),sd=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",children:(0,Ye.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.248 1.87l4.485 2.562L8 7.136L3.268 4.432l4.484-2.563a.5.5 0 0 1 .496 0ZM2.5 10.84V5.72l4.75 2.714v5.409l-4.498-2.57a.5.5 0 0 1-.252-.435Zm6.25 3.004l4.498-2.57a.5.5 0 0 0 .252-.435V5.721L8.75 8.435v5.409ZM8.992.567a2 2 0 0 0-1.984 0l-5 2.857A2 2 0 0 0 1 5.161v5.678a2 2 0 0 0 1.008 1.737l5 2.857a2 2 0 0 0 1.984 0l5-2.857A2 2 0 0 0 15 10.839V5.161a2 2 0 0 0-1.008-1.737l-5-2.857Z",clipRule:"evenodd"})}),od=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M1 13v10h22V13Zm12 6H4v-2h9Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1ZM1 1v10h22V1Zm12 6H4V5h9Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Z"})}),ld=({size:e})=>(0,Ye.jsx)("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:(0,Ye.jsx)("path",{fillRule:"evenodd",d:"M4 7H3V2h1v5zm-1 7h1v-3H3v3zm5 0h1V8H8v6zm5 0h1v-2h-1v2zm1-12h-1v6h1V2zM9 2H8v2h1V2zM5 8H2c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1zm5-3H7c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1zm5 4h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1z",fill:"currentColor"})}),cd=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",children:[(0,Ye.jsx)("path",{d:"M1.5 12 7 3h10l5.5 9-5.5 9H7z"}),(0,Ye.jsx)("path",{d:"m5 14 5-5 5 5m4 0-4.5-4.5-1 1m-5 2V14"})]})}),ud=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"m18.5 10.57-.2.37c.26-.78.11-1.63.15-2.37l-.07-.02c-.07-1.85-1.67-3.82-3.09-4.48-1.23-.57-3.12-.67-3.99-.24.12-.11.6-.15.45-.23-1.37.13-1.06.47-2.11.74-.29.28.86-.22.23.16-.56.13-.82-.12-1.65.74.07.12.53-.35.15.12-.79-.09-2.48 1.8-2.84 2.42l.19.04c-.31.77-.72 1.26-.77 1.72-.08 1.14-.45 3.21.08 3.85l-.06.53.23.45-.12.01c.58 1.83.62.04 1.39 1.94-.11-.04-.23-.08-.39-.32-.02.19.24.69.54 1.08l-.12.14c.16.31.32.38.43.49-.63-.35.57 1.13.7 1.32l.1-.17c-.02.24.17.56.53 1.01l.3-.01c.13.24.58.68.85.7l-.18.24c.69.2.33.29 1.18.59l-.17-.3c.43.37.56.7 1.17.98.85.3.96.18 1.82.43-.73 0-1.59 0-2.17-.22-3.96-1.07-7.56-5.72-7.32-10.5-.06-.97.1-2.18-.06-2.42.22-.74.48-1.64 1.01-2.71-.04-.07.09.21.36-.24.16-.36.29-.75.5-1.1l.1-.03c.11-.61 1.43-1.55 1.85-2.02v.18c.86-.81 2.4-1.35 3.26-1.73-.23.25.51-.03 1.04-.06l-.49.28c.63-.16.6.07 1.25-.03-.23.03-.5.1-.46.16.72.08.84-.22 1.51 0l-.05-.2c.94.34 1.13.28 2.14.82.36.01.4-.22.93 0 .1.16-.02.19.64.59.07-.03-.13-.22-.27-.37 1.3.71 2.75 2.22 3.18 3.84-.41-.74-.04.39-.18.33.18.49.33 1 .43 1.53-.12-.43-.39-1.48-.86-2.15-.03.43-.6-.3-.29.66.22.34.05-.35.34.25 0 .29.11.58.18.95-.1-.02-.22-.41-.3-.31.1.5.27.72.33.76-.03.08-.12-.08-.12.24.04.74.21.43.29.46-.09.37-.41.79-.25 1.42l-.2-.56c-.05.53.11.63-.13 1.28.18-.6.16-1.1-.01-.85.09.82-.65 1.45-.58 1.98l-.21-.29c-.57.83-.01.45-.4 1.06.14-.23-.07-.08.11-.36-.12.01-.55.53-.94.83-1.54 1.23-3.39 1.4-5.15.73h-.01c.01-.04 0-.09-.12-.17-1.51-1.15-2.4-2.13-2.11-4.41.25-.17.31-1.12.84-1.45.32-.71 1.28-1.36 2.31-1.38 1.05-.06 1.94.56 2.39 1.14-.82-.75-2.14-.98-3.28-.43-1.15.53-1.84 1.8-1.76 3.07.06-.07.1-.02.12-.18-.03 2.47 2.66 4.28 4.6 3.37l.03.05c.78-.22.68-.39 1.19-.75-.04.09-.34.3-.16.3.25-.06 1.03-.79 1.42-1.13.17-.38-.1-.23.15-.69l.3-.15c.17-.48.35-.75.35-1.32"})}),ac=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M17.61.455a3.41 3.41 0 0 0-3.41 3.41 3.41 3.41 0 0 0 3.41 3.41 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41M12.92.8C8.923.777 5.137 2.941 3.148 6.451a5 5 0 0 1 .26-.007 4.9 4.9 0 0 1 2.585.737A8.32 8.32 0 0 1 12.688 3.6 4.94 4.94 0 0 1 13.723.834 11 11 0 0 0 12.92.8m9.226 4.994a4.9 4.9 0 0 1-1.918 2.246 8.36 8.36 0 0 1-.273 8.303 4.9 4.9 0 0 1 1.632 2.54 11.16 11.16 0 0 0 .559-13.089M3.41 7.932A3.41 3.41 0 0 0 0 11.342a3.41 3.41 0 0 0 3.41 3.409 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41zm2.027 7.866a4.9 4.9 0 0 1-2.915.358 11.1 11.1 0 0 0 7.991 6.698 11.2 11.2 0 0 0 2.422.249 4.88 4.88 0 0 1-.999-2.85 9 9 0 0 1-.836-.136 8.3 8.3 0 0 1-5.663-4.32zm11.405.928a3.41 3.41 0 0 0-3.41 3.41 3.41 3.41 0 0 0 3.41 3.41 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41"})});var x=I(fe(),1),P=new Map,yo=[{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0}],md=[{name:"Overview",isDirectory:!0,path:"/overview",class:"classOverview",layout:"own"},{name:"Cluster",isDirectory:!0,path:"/cluster",class:"classCluster",layout:"own"},{name:"Overview",isDirectory:!0,path:"/cluster/overview",class:"classClusterOverview",layout:"own"},{name:"Nodes",isDirectory:!0,path:"/cluster/Node",class:"classmenu",children:"Node"},{name:"Namespaces",isDirectory:!0,path:"/cluster/Namespace",class:"classNamespace",children:"Namespace"},{name:"API Resources",isDirectory:!0,path:"/cluster/V1APIResource",class:"classV1APIResource",children:"V1APIResource"},{name:"Images",isDirectory:!0,path:"/cluster/Image",class:"classImage",children:"Image"},{name:"Component status",isDirectory:!0,path:"/cluster/ComponentStatus",class:"classComponentStatus",children:"ComponentStatus"},{name:"Workload",isDirectory:!0,path:"/workload",class:"classWorkload",layout:"own"},{name:"Overview",isDirectory:!0,path:"/workload/overview",class:"classmenu",layout:"own"},{name:"Pods",isDirectory:!0,path:"/workload/Pod",layout:"list",class:"classPod",categories:["Node","Namespace","controller"],children:"Pod"},{name:"Deployments",isDirectory:!0,path:"/workload/Deployment",class:"classDeployment",categories:["Namespace"],children:"Deployment"},{name:"Daemon Sets",isDirectory:!0,path:"/workload/DaemonSet",class:"classDaemonSet",categories:["Namespace"],children:"DaemonSet"},{name:"Replica Sets",isDirectory:!0,path:"/workload/ReplicaSet",class:"classReplicaSet",categories:["Namespace"],children:"ReplicaSet"},{name:"Replication Controllers",isDirectory:!0,path:"/workload/ReplicationController",class:"classReplicationController",categories:["Namespace"],children:"ReplicationController"},{name:"Stateful Sets",isDirectory:!0,path:"/workload/StatefulSet",class:"classStatefulSet",categories:["Namespace"],children:"StatefulSet"},{name:"Jobs",isDirectory:!0,path:"/workload/Job",class:"classJob",categories:["Namespace"],children:"Job"},{name:"Cron jobs",isDirectory:!0,path:"/workload/CronJob",class:"classCronJob",categories:["Namespace"],children:"CronJob"},{name:"Config",isDirectory:!0,path:"/config",class:"classConfig",layout:"own"},{name:"Overview",isDirectory:!0,path:"/config/overview",class:"classmenu",layout:"own"},{name:"Config Maps",isDirectory:!0,path:"/config/ConfigMap",class:"classConfigMap",categories:["Namespace"],children:"ConfigMap"},{name:"Secrets",isDirectory:!0,path:"/config/Secret",class:"classSecret",categories:["Namespace"],children:"Secret"},{name:"Resource Quota",isDirectory:!0,path:"/config/ResourceQuota",class:"classResourceQuota",categories:["Namespace"],children:"ResourceQuota"},{name:"Limit Range",isDirectory:!0,path:"/config/LimitRange",class:"classLimitRange",categories:["Namespace"],children:"LimitRange"},{name:"Horizontal Pod Autoscaler",isDirectory:!0,path:"/config/HorizontalPodAutoscaler",class:"classHorizontalPodAutoscaler",categories:["Namespace"],children:"HorizontalPodAutoscaler"},{name:"Pod Disruption Budget",isDirectory:!0,path:"/config/PodDisruptionBudget",class:"classPodDisruptionBudget",categories:["Namespace"],children:"PodDisruptionBudget"},{name:"Priority Classes",isDirectory:!0,path:"/config/PriorityClass",class:"classPriorityClass",children:"PriorityClass"},{name:"Runtime Classes",path:"/config/RuntimeClass",isDirectory:!0,class:"classRuntimeClass",children:"RuntimeClass"},{name:"Leases",isDirectory:!0,path:"/config/Lease",class:"classLease",categories:["Namespace"],children:"Lease"},{name:"Validating webhooks",isDirectory:!0,path:"/config/ValidatingWebhookConfiguration",class:"classValidatingWebhookConfiguration",children:"ValidatingWebhookConfiguration"},{name:"Mutating webhooks",isDirectory:!0,path:"/config/MutatingWebhookConfiguration",class:"classMutatingWebhookConfiguration",children:"MutatingWebhookConfiguration"},{name:"Network",isDirectory:!0,path:"/network",class:"classNetwork",layout:"own"},{name:"Overview",isDirectory:!0,path:"/network/overview",class:"classmenu",layout:"own"},{name:"Services",isDirectory:!0,path:"/network/Service",layout:"list",class:"classService",categories:["Namespace"],children:"Service"},{name:"Endpoints\xA0",isDirectory:!0,path:"/network/Endpoints",layout:"list",class:"classEndpoints",categories:["Namespace"],children:"Endpoints"},{name:"Ingresses",isDirectory:!0,path:"/network/Ingress",layout:"list",class:"classIngress",categories:["Namespace"],children:"Ingress"},{name:"Ingress classes",isDirectory:!0,path:"/network/IngressClass",layout:"list",class:"classIngressClass",children:"IngressClass"},{name:"Network policies",isDirectory:!0,path:"/network/NetworkPolicy",layout:"list",class:"classNetworkPolicy",categories:["Namespace"],children:"NetworkPolicy"},{name:"Storage",isDirectory:!0,path:"/storage",class:"classStorage",layout:"own"},{name:"Overview",isDirectory:!0,path:"/storage/overview",class:"classmenu",layout:"own"},{name:"Persistent volume claims",isDirectory:!0,path:"/storage/PersistentVolumeClaim",class:"classPersistentVolumeClaim",categories:["Namespace"],children:"PersistentVolumeClaim"},{name:"Persistent volumes",isDirectory:!0,path:"/storage/PersistentVolume",class:"classPersistentVolume",children:"PersistentVolume"},{name:"Volume attachments",isDirectory:!0,path:"/storage/VolumeAttachment",class:"classVolumeAttachment",children:"VolumeAttachment"},{name:"Storage classes",isDirectory:!0,path:"/storage/StorageClass",class:"classStorageClass",children:"StorageClass"},{name:"CSI Drivers",isDirectory:!0,path:"/storage/CSIDriver",class:"classCSIDriver",children:"CSIDriver"},{name:"CSI Nodes",isDirectory:!0,path:"/storage/CSINode",class:"classCSINode",children:"CSINode"},{name:"CSI Storage Capacity",isDirectory:!0,path:"/storage/CSIStorageCapacity",class:"classCSIStorageCapacity",children:"CSIStorageCapacity"},{name:"Access",isDirectory:!0,path:"/access",class:"classAccess",layout:"own"},{name:"Overview",isDirectory:!0,path:"/access/overview",class:"classmenu",layout:"own"},{name:"Service accounts",isDirectory:!0,path:"/access/ServiceAccount",class:"classServiceAccount",categories:["Namespace"],children:"ServiceAccount"},{name:"Cluster roles",isDirectory:!0,path:"/access/ClusterRole",class:"classClusterRole",children:"ClusterRole"},{name:"Roles",isDirectory:!0,path:"/access/Role",class:"classRole",categories:["Namespace"],children:"Role"},{name:"Cluster role bindings",isDirectory:!0,path:"/access/ClusterRoleBinding",class:"classClusterRoleBinding",children:"ClusterRoleBinding"},{name:"Role bindings",isDirectory:!0,path:"/access/RoleBinding",class:"classRoleBinding",categories:["Namespace"],children:"RoleBinding"},{name:"Custom",isDirectory:!0,path:"/custom",class:"classCustom",layout:"own"},{name:"Definitions",isDirectory:!0,path:"/custom/CustomResourceDefinition",class:"classCustomResourceDefinition",children:"CustomResourceDefinition"},{name:"Preferences",isDirectory:!0,path:"/preferences",class:"classSettings",layout:"own"}];P.set("classClusterOverview",{leftItems:[{name:"search",icon:(0,x.jsx)(w.Search,{fontSize:"small"}),text:"Search",permission:!0},{name:"logsearch",icon:(0,x.jsx)(nc,{fontSize:"small"}),text:"Log search",permission:!0},{name:"add",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Add",permission:!0}]});P.set("classService",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New service",permission:!0}]});P.set("Service",{text:"Service name",source:"name",width:20,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit service",permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"type",text:"Type",source:"type",format:"string",width:10,sortable:!0,visible:!0},{name:"clusterIp",text:"ClusterIP",source:"clusterIp",format:"string",width:10,sortable:!1,visible:!0},{name:"ports",text:"Ports",source:"ports",format:"string",width:10,sortable:!1,visible:!0},{name:"externalIp",text:"ExternalIP",source:"externalIp",format:"string",width:10,sortable:!1,visible:!0},{name:"selector",text:"Selector",source:"function",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classEndpoints",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("Endpoints",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"endpoints",text:"Endpoints",source:"endpoints",format:"string",width:45,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classIngress",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New ingress",permission:!0}]});P.set("Ingress",{text:"Name",source:"name",width:25,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"loadBalancers",text:"LoadBalancers",source:"loadBalancers",format:"string",width:10,sortable:!0,visible:!0},{name:"rules",text:"Rules",source:"rules",format:"function",width:40,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classIngressClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("IngressClass",{text:"Name",source:"name",width:50,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"default",icon:(0,x.jsx)(w.CheckCircle,{fontSize:"small"}),text:"Set Default",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"controller",text:"Controller",source:"controller",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classNetworkPolicy",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("NetworkPolicy",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"policyTypes",text:"Policy Types",source:"policyTypes",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classConfigMap",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("ConfigMap",{text:"Config Map name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"keys",text:"Keys",source:"keys",format:"string",width:40,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classSecret",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("Secret",{text:"Secret name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"type",text:"Type",source:"type",format:"string",width:15,sortable:!0,visible:!0},{name:"keys",text:"Keys",source:"keys",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:15,sortable:!0,visible:!0}]});P.set("classResourceQuota",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("ResourceQuota",{text:"Quota name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});P.set("classLimitRange",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("LimitRange",{text:"Limit name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});P.set("classHorizontalPodAutoscaler",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("HorizontalPodAutoscaler",{text:"HPA name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"metrics",text:"Metrics",source:"metrics",format:"string",width:8,sortable:!0,visible:!0},{name:"minpods",text:"Min Pods",source:"minpods",format:"string",width:8,sortable:!0,visible:!0},{name:"maxpods",text:"Max Pods",source:"maxpods",format:"string",width:8,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"string",width:8,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:8,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classPodDisruptionBudget",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("PodDisruptionBudget",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"minAvailable",text:"Min available",source:"minAvailable",format:"string",width:10,sortable:!0,visible:!0},{name:"maxUnavailable",text:"Max unavailable",source:"maxUnavailable",format:"string",width:10,sortable:!0,visible:!0},{name:"currentHealthy",text:"Current Healthy",source:"currentHealthy",format:"string",width:10,sortable:!0,visible:!0},{name:"desiredHealthy",text:"Desired Healthy",source:"desiredHealthy",format:"string",width:10,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classPriorityClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("PriorityClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"value",text:"Value",source:"value",format:"string",width:40,sortable:!0,visible:!0},{name:"globalDefault",text:"Global default",source:"globalDefault",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});P.set("classRuntimeClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("RuntimeClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"handler",text:"Handler",source:"handler",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});P.set("classLease",{leftItems:[]});P.set("Lease",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"holder",text:"Holder",source:"holder",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classValidatingWebhookConfiguration",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("ValidatingWebhookConfiguration",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"webhooks",text:"Webhooks",source:"webhooks",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});P.set("classMutatingWebhookConfiguration",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("MutatingWebhookConfiguration",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"webhooks",text:"Webhooks",source:"webhooks",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});P.set("classNamespace",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New namespace",permission:!0}]});P.set("Namespace",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"search",icon:(0,x.jsx)(w.Search,{fontSize:"small"}),text:"Search",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0},{name:"logsearch",icon:(0,x.jsx)(nc,{fontSize:"small"}),text:"Log search",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"labels",text:"Labels",source:"labels",format:"string",width:30,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:15,sortable:!0,visible:!0}]});P.set("Node",{text:"Name",source:"name",width:30,configurable:!1,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"shell",icon:(0,x.jsx)(w.Terminal,{fontSize:"small"}),text:"Shell",multi:!1,permission:!0},{name:"cordon",icon:(0,x.jsx)(w.Pause,{fontSize:"small"}),text:"Cordon",multi:!0,permission:!0},{name:"uncordon",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"UnCordon",multi:!0,permission:!0},{name:"drain",icon:(0,x.jsx)(w.Stop,{fontSize:"small"}),text:"Drain",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"cpu",text:"CPU",source:"cpu",format:"string",width:6,removable:!1,sortable:!0,visible:!0},{name:"memory",text:"Memory",source:"memory",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"taints",text:"Taints",source:"taints",format:"string",width:6,removable:!1,sortable:!0,visible:!0},{name:"roles",text:"Roles",source:"roles",format:"string",width:20,removable:!1,sortable:!1,visible:!0},{name:"version",text:"Version",source:"version",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"conditions",text:"Conditions",source:"conditions",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:8,sortable:!0,visible:!0}]});P.set("classImage",{leftItems:[]});P.set("Image",{text:"Name",source:"name",width:80,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"tag",text:"Tag",source:"tag",format:"string",width:10,sortable:!0,visible:!0},{name:"size",text:"Size",source:"size",format:"storage",width:10,sortable:!0,visible:!0}]});P.set("classV1APIResource",{leftItems:[]});P.set("V1APIResource",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",multi:!1,permission:!0}],properties:[{name:"kindName",text:"Kind",source:"kind",format:"string",width:30,sortable:!0,visible:!0},{name:"singularName",text:"Singular",source:"singular",format:"string",width:30,sortable:!0,visible:!0},{name:"namespaced",text:"Namespaced",source:"namespaced",format:"string",width:10,sortable:!0,visible:!0}]});P.set("classComponentStatus",{leftItems:[]});P.set("ComponentStatus",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"status",text:"Status",source:"status",format:"string",width:20,sortable:!0,visible:!0},{name:"message",text:"Message",source:"message",format:"string",width:50,sortable:!0,visible:!0}]});P.set("classPod",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New pod",permission:!0}]});P.set("Pod",{text:"Name",source:"name",width:25,configurable:!0,leftItems:[{name:"details",text:"Pod details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),permission:!0},{name:"ops",icon:(0,x.jsx)(w.Terminal,{fontSize:"small"}),text:"Shell",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"evict",icon:(0,x.jsx)(w.DeleteSweep,{fontSize:"small"}),text:"Evict",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:10,sortable:!0,visible:!0},{name:"container",text:"Container",source:"na",format:"function",width:10,sortable:!1,removable:!0,visible:!0},{name:"cpu",text:"CPU",source:"cpu",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"memory",text:"Memory",source:"memory",format:"storage",width:10,sortable:!0,removable:!0,visible:!0},{name:"restarts",text:"Restarts",source:"restartCount",format:"number",width:5,sortable:!0,visible:!0},{name:"controller",text:"Controller",source:"controller",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"node",text:"Node",source:"node",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"age",text:"Age",source:"startTime",format:"age",width:5,sortable:!0,removable:!0,visible:!0},{name:"status",text:"Status",source:"function",format:"string",width:5,sortable:!1,removable:!0,visible:!0}]});P.set("classDeployment",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("Deployment",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"scale",icon:(0,x.jsx)(ms,{fontSize:"small"}),text:"Scale",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:15,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"function",width:10,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classDaemonSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("DaemonSet",{text:"Name",source:"name",width:25,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:8,sortable:!0,visible:!0},{name:"current",text:"Current",source:"current",format:"number",width:8,sortable:!0,visible:!0},{name:"ready",text:"Ready",source:"ready",format:"number",width:8,sortable:!0,visible:!0},{name:"upToDate",text:"Up-to-Date",source:"upToDate",format:"number",width:8,sortable:!0,visible:!0},{name:"available",text:"Available",source:"available",format:"number",width:8,sortable:!0,visible:!0},{name:"nodeSelector",text:"Node Selector",source:"nodeSelector",format:"string",width:10,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classReplicaSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("ReplicaSet",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"scale",icon:(0,x.jsx)(ms,{fontSize:"small"}),text:"Scale",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:10,sortable:!0,visible:!0},{name:"current",text:"Current",source:"current",format:"number",width:10,sortable:!0,visible:!0},{name:"ready",text:"Ready",source:"ready",format:"number",width:10,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});P.set("classReplicationController",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("ReplicationController",{text:"Name",source:"name",width:60,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},{name:"scale",icon:(0,x.jsx)(ms,{fontSize:"small"}),text:"Scale",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:10,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:10,sortable:!0,visible:!0}]});P.set("classStatefulSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("StatefulSet",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"scale",icon:(0,x.jsx)(ms,{fontSize:"small"}),text:"Scale",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:15,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:15,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});P.set("classJob",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("Job",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:25,sortable:!0,visible:!0},{name:"completions",text:"Completions",source:"completions",format:"string",width:15,sortable:!0,visible:!0},{name:"conditions",text:"Conditions",source:"conditions",format:"function",width:15,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classCronJob",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("CronJob",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"trigger",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"Trigger",permission:!0},{name:"suspend",icon:(0,x.jsx)(w.Pause,{fontSize:"small"}),text:"Suspend",permission:!0},{name:"resume",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"Resume",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:10,sortable:!0,visible:!0},{name:"schedule",text:"Schedule",source:"schedule",format:"string",width:10,sortable:!1,visible:!0},{name:"suspend",text:"Suspend",source:"suspend",format:"string",width:5,sortable:!0,visible:!0},{name:"active",text:"Active",source:"active",format:"function",width:5,sortable:!0,visible:!0},{name:"lastSchedule",text:"Last schedule",source:"lastSchedule",format:"age",width:10,sortable:!0,visible:!0},{name:"nextExecution",text:"Next execution",source:"nextExecution",format:"function",width:10,sortable:!0,visible:!0},{name:"timeZone",text:"Time zone",source:"timezone",format:"string",width:10,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classPersistentVolumeClaim",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New PVC",permission:!0}]});P.set("PersistentVolumeClaim",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"storageClass",text:"Storage class",source:"storageClass",format:"string",width:10,sortable:!0,visible:!0},{name:"size",text:"Size",source:"size",format:"storage",width:5,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:20,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:10,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classPersistentVolume",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New PV",permission:!0}]});P.set("PersistentVolume",{text:"Name",source:"name",width:50,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"storageClass",text:"Storage class",source:"storageClass",format:"string",width:10,sortable:!0,visible:!0},{name:"capacity",text:"Capacity",source:"capacity",format:"storage",width:10,sortable:!0,visible:!0},{name:"clain",text:"Claim",source:"claim",format:"string",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:5,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classVolumeAttachment",{leftItems:[]});P.set("VolumeAttachment",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"attacher",text:"Attacher",source:"attacher",format:"string",width:15,sortable:!0,visible:!0},{name:"nodeName",text:"Node name",source:"nodeName",format:"string",width:20,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:20,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:5,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:5,sortable:!0,visible:!0}]});P.set("classStorageClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New storage class",permission:!0}]});P.set("StorageClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"provisioner",text:"Provisioner",source:"provisioner",format:"string",width:15,sortable:!0,visible:!0},{name:"reclaimPolicy",text:"Reclaim policy",source:"reclaimPolicy",format:"string",width:15,sortable:!0,visible:!0},{name:"default",text:"Default",source:"default",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classCSIDriver",{leftItems:[]});P.set("CSIDriver",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"attachRequired",text:"Attach Required",source:"attachRequired",format:"string",width:15,sortable:!0,visible:!0},{name:"storageCapacity",text:"Storage Capacity",source:"storageCapacity",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classCSINode",{leftItems:[]});P.set("CSINode",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"divers",text:"Drivers",source:"drivers",format:"string",width:55,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classStorageCapacity",{leftItems:[]});P.set("CSIStorageCapacity",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classServiceAccount",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("ServiceAccount",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classClusterRole",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("ClusterRole",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classRole",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("Role",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classClusterRoleBinding",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("ClusterRoleBinding",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"bindings",text:"Bindings",source:"bindings",format:"string",width:50,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classRoleBinding",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("RoleBinding",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"bindings",text:"Bindings",source:"bindings",format:"string",width:30,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classCustomResourceDefinition",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});P.set("CustomResourceDefinition",{text:"Name",source:"name",width:40,leftItems:[{name:"instantiate",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Instantiate",permission:!0},{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"group",text:"Group",source:"group",format:"string",width:15,sortable:!0,visible:!0},{name:"version",text:"Version",source:"version",format:"string",width:15,sortable:!0,visible:!0},{name:"scope",text:"Scope",source:"scope",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("crdGroup",{text:"Name",source:"name",width:40,leftItems:[],properties:[]});P.set("crdInstance",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:15,sortable:!0,visible:!0},{name:"checksum",text:"Checksum",source:"checksum",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("crdNamespacedInstance",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:15,sortable:!0,visible:!0},{name:"checksum",text:"Checksum",source:"checksum",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});P.set("classOverview",{leftItems:[{name:"kubeworks",icon:(0,x.jsx)(jm,{fontSize:"small"}),text:"Kube works",permission:!0}]});P.set("classmenu",{});P.set("classWorkload",{});P.set("classConfig",{});P.set("classNetwork",{});P.set("classStorage",{});P.set("classAccess",{});P.set("classCustom",{});P.set("classSettings",{});var Wn=new Map;Wn.set("classOverview",{default:(0,x.jsx)(ed,{size:"16"})});Wn.set("classCluster",{default:(0,x.jsx)(od,{size:"16"})});Wn.set("classWorkload",{default:(0,x.jsx)(sd,{size:"16"})});Wn.set("classConfig",{default:(0,x.jsx)(nd,{size:"16"})});Wn.set("classNetwork",{default:(0,x.jsx)(id,{size:"16"})});Wn.set("classStorage",{default:(0,x.jsx)(rd,{size:"16"})});Wn.set("classAccess",{default:(0,x.jsx)(ad,{size:"16"})});Wn.set("classCustom",{default:(0,x.jsx)(td,{size:"16"})});Wn.set("classSettings",{default:(0,x.jsx)(ld,{size:"16"})});var dd=new Map;u();var ue=new Map,Dt=[{name:"created",text:"Created",source:["metadata.creationTimestamp"],format:"string",style:["ifpresent"]},{name:"name",text:"Name",source:["metadata.name"],format:"string"},{name:"labels",text:"Labels",source:["metadata.labels"],format:"objectprops",style:["column","ifpresent","collapse"]},{name:"annotations",text:"Annotations",source:["metadata.annotations"],format:"objectprops",style:["column","ifpresent","char:50","collapse"]}],gt=[{name:"created",text:"Created",source:["metadata.creationTimestamp"],format:"string"},{name:"name",text:"Name",source:["metadata.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#metadata.namespace"],format:"string",style:["link:$Namespace:metadata.namespace:."]},{name:"labels",text:"Labels",source:["metadata.labels"],format:"objectprops",style:["column","ifpresent","collapse"]},{name:"annotations",text:"Annotations",source:["metadata.annotations"],format:"objectprops",style:["column","char:50","ifpresent","collapse"]}],ai={name:"conditions",text:"Conditions",source:["status.conditions"],format:"objectlist",style:["table","ifpresent"],items:[{name:"type",text:"Type",source:["type"],format:"string",style:["property:status:True:text.primary","property:status:False:text.disabled"]},{name:"reason",text:"Reason",source:["reason"],format:"string",style:["FailedCreate:red","Available:green","Progressing:green","NewReplicaSetAvailable:green","MinimumReplicasUnavailable:red","MinimumReplicasAvailable:green","InsufficientPods:red","PodCompleted:green","KubeletHasSufficientMemory:green","KubeletHasNoDiskPressure:green","KubeletHasSufficientPID:green","KubeletReady:green","CompletionsReached:green","KernelHasNoDeadlock:green","NoFrequentContainerdRestart:green","NoFrequentKubeletRestart:green","ContainerRuntimeIsUp:green","FilesystemIsOK:green","KubeletIsUp:green","NoFrequentDockerRestart:green","NoFrequentUnregisterNetDevice:green","SufficientPods:green","NoConflicts:green","InitialNamesAccepted:green","Unschedulable:red","BackoffLimitExceeded:red","ContainersNotReady:red","NoVMEventScheduled:green","FilesystemIsNotReadOnly:orange","ApprovedAnnotation:green"]},{name:"message",text:"Message",source:["message"],format:"string"},{name:"age",text:"Age",source:["lastUpdateTime||lastTransitionTime||$default"],format:"age"}]},Ie={name:"events",text:"Events",root:"events",items:[{name:"events",text:"",source:["list"],format:"objectlist",style:["table"],items:[{name:"message",text:"Message",source:["message"],format:"string"},{name:"count",text:"Count",source:["count"],format:"string"},{name:"age",text:"Age",source:["lastTimestamp"],format:"age"}]}]},ka={name:"pods",text:"Pods",root:"origin",items:[{name:"pods",text:"",source:["@string[]"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["#metadata.name"],format:"string",style:["link:$Pod:metadata.name:metadata.namespace"]},{name:"node",text:"Node",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]}]}]};ue.set("PersistentVolumeClaim",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist"},{name:"accessModes",text:"Access Modes",source:["spec.accessModes"],format:"stringlist"},{name:"storageClassName",text:"Storage Class",source:["#spec.storageClassName"],format:"string",style:["link:$StorageClass:spec.storageClassName:."]},{name:"storage",text:"Storage",source:["spec.resources.requests.storage"],format:"string"},{name:"pods",text:"Pods",source:["#@string[]"],format:"stringlist",style:["column","link:$Pod:name:$$namespace"]},{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Bound:green","Pending:orange"]},{name:"pv",text:"PV",source:["#spec.volumeName"],format:"string",style:["link:$PersistentVolume:spec.volumeName:."]}]},Ie]);ue.set("PersistentVolume",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist"},{name:"capacity",text:"Capacity",source:["spec.capacity.storage"],format:"string"},{name:"accessModes",text:"Access Modes",source:["spec.accessModes"],format:"stringlist"},{name:"persistentVolumeReclaimPolicy",text:"Reclaim Policy",source:["spec.persistentVolumeReclaimPolicy"],format:"string"},{name:"storageClassName",text:"Storage Class",source:["#spec.storageClassName"],format:"string",style:["link:$StorageClass:spec.storageClassName:."]},{name:"status",text:"Status",source:["status.phase"],format:"string"},{name:"pvc",text:"PVC",source:["#spec.claimRef.name"],format:"string",style:["link:spec.claimRef.kind:spec.claimRef.name:spec.claimRef.namespace"]}]},Ie]);ue.set("StorageClass",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"provisioner",text:"Provisioner",source:["#provisioner"],format:"string",style:["link:$CSIDriver:provisioner:."]},{name:"volumeBindingMode",text:"Binding Mode",source:["volumeBindingMode"],format:"string"},{name:"reclaimPolicy",text:"Reclaim Policy",source:["reclaimPolicy"],format:"string"},{name:"pvs",text:"PV",source:["#@string[]"],format:"stringlist",style:["column","link:$PersistentVolume:.:.","ifpresent"]},{name:"pvcs",text:"PVC",source:["@object[]"],items:[{name:"pvc",text:"",source:["#name"],format:"string",style:["link:$PersistentVolumeClaim:name:namespace"]}],format:"objectlist",style:["column"]}]},Ie]);ue.set("VolumeAttachment",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"attacher",text:"Attacher",source:["#spec.attacher"],format:"string",style:["link:$CSIDriver:spec.attacher:."]},{name:"nodeName",text:"Node Name",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]},{name:"persistentVolumeName",text:"PV",source:["#spec.source.persistentVolumeName"],format:"string",style:["link:$PersistentVolume:spec.source.persistentVolumeName:."]},{name:"attached",text:"Attached",source:["status.attached"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"attachError",text:"Attach Error",source:["status.attachError.time","$\xA0\xA0-\xA0\xA0","status.attachError.message"],format:"string",style:["ifpresent","color:red"]},{name:"detachError",text:"Detach Error",source:["status.detachError.time","$\xA0\xA0-\xA0\xA0","status.detachError.message"],format:"string",style:["ifpresent","color:red"]}]},Ie]);ue.set("CSIDriver",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"attachRequired",text:"Attach Required",source:["spec.attachRequired"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"fsGroupPolicy",text:"Group Policy",source:["spec.fsGroupPolicy"],format:"string"},{name:"republish",text:"Requires republish",source:["spec.requiresRepublish"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"linuxMount",text:"LinuxMount",source:["spec.seLinuxMount"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"stgCap",text:"Stg Capacity",source:["spec.storageCapacity"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"volumeLifecycleModes",text:"Lifecycle modes",source:["spec.volumeLifecycleModes"],format:"stringlist"},{name:"storageClasses",text:"",source:["@jsx[]"],format:"string",style:["column"]}]},Ie]);ue.set("CSINode",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"drivers",text:"Drivers",source:["spec.drivers"],format:"objectlist",style:["column"],items:[{name:"name",text:"Name",source:["#name"],format:"string",style:["link:$CSIDriver:name:."]}]}]},Ie]);ue.set("CSIStorageCapacity",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},Ie]);ue.set("NetworkPolicy",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"podSelector",text:"Pod Selector",source:["spec.podSelector.matchLabels"],format:"objectprops"}]},Ie]);ue.set("Service",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"selector",text:"Selector",source:["spec.selector"],format:"objectprops",style:["column"]}]},{name:"connection",text:"Connection",root:"origin",items:[{name:"clusterIp",text:"Cluster IP",source:["spec.clusterIP"],format:"string"},{name:"clusterIps",text:"Cluster IPs",source:["spec.clusterIPs"],format:"stringlist"},{name:"ipFamilies",text:"IP families",source:["spec.ipFamilies"],format:"stringlist"},{name:"ipFamilyPolicy",text:"IP family policy",source:["spec.ipFamilyPolicy"],format:"string"},{name:"ports",text:"Ports",source:["spec.ports"],format:"objectlist",style:["column"],items:[{name:"forward",text:"Forward",source:["@jsx"],format:"string"}]}]},Ie]);ue.set("Endpoints",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"subsets",text:"Subsets",root:"origin",items:[{name:"subsetlist",text:"",source:["subsets"],format:"objectlist",items:[{name:"address",text:"Address",source:["addresses"],format:"objectlist",style:["table"],items:[{name:"ip",text:"IP",source:["ip"],format:"string"},{name:"target",text:"Target",source:["targetRef.kind","$\xA0","#targetRef.name","$\xA0(namespace:\xA0","targetRef.namespace","$)"],format:"string",style:["link:targetRef.kind:targetRef.name:targetRef.namespace","ifpresent"]}]}]}]},Ie]);ue.set("Ingress",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"ingressClass",text:"Ingress class",source:["#spec.ingressClassName"],format:"string",style:["bold","link:$IngressClass:spec.ingressClassName:."]}]},{name:"rules",text:"Rules",root:"origin",items:[{name:"host",text:"Host",source:["spec.rules"],format:"objectlist",style:["table"],items:[{name:"host",text:"Host",source:["host"],format:"string",style:["bold"]},{name:"paths",text:"Paths",source:["http.paths"],format:"objectlist",style:["column"],items:[{name:"path",text:"Path",source:["path","$\xA0(","#backend.service.name","$:","backend.service.port.number","$)"],format:"string",style:["link:$Service:backend.service.name:$$namespace"]}]}]}]},Ie]);ue.set("IngressClass",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"controller",text:"Controller",source:["spec.controller"],format:"string"},{name:"default",text:"Default",source:['metadata.annotations["ingressclass.kubernetes.io/is-default-class"]'],format:"boolean",style:["true:Yes:green","false:No:red","undefined:No:red",":No:red"]},{name:"ingresses",text:"Ingress",source:["@object[]"],items:[{name:"ingress",text:"",source:["#name"],format:"string",style:["link:$Ingress:name:namespace"]}],format:"objectlist",style:["column"]}]},Ie]);ue.set("Namespace",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Active:green"]}]},{name:"content",text:"Content",root:"origin",items:[{name:"content",text:"Content",source:["@jsx[]"],format:"string",style:["column"]}]},Ie]);ue.set("Node",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist",style:["column"]},{name:"os",text:"OS",source:["status.nodeInfo.operatingSystem","$(","status.nodeInfo.architecture","$)"],format:"string"},{name:"osImage",text:"OS Image",source:["status.nodeInfo.osImage"],format:"string"},{name:"kernelVersion",text:"Kernel version",source:["status.nodeInfo.kernelVersion"],format:"string"},{name:"containerRuntime",text:"CRI",source:["status.nodeInfo.containerRuntimeVersion"],format:"string"},{name:"kubeletVersion",text:"Kubelet",source:["status.nodeInfo.kubeletVersion"],format:"string"},ai]},{name:"workload",text:"Workload",root:"origin",items:[{name:"taints",text:"Taints",source:["spec.taints"],format:"objectlist",style:["table"],items:[{name:"taint",text:"Taint",source:["key"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"},{name:"age",text:"Age",source:["timeAdded"],format:"age"}]}]},{name:"compute",text:"Compute",root:"origin",items:[{name:"capacity",text:"Capacity",source:["status.capacity"],format:"objectprops",style:["table"],items:[{name:"cpu",text:"CPU",source:["status.capacity.cpu"],format:"string"},{name:"storage",text:"Storage",source:["status.capacity.ephemeral-storage"],format:"string",style:["mb"]},{name:"hp1gi",text:"Hugepages-1Gi",source:["status.capacity.hugepages-2Mi"],format:"string"},{name:"hp2m",text:"Hugepages-2Mi",source:["status.capacity.hugepages-1Gi"],format:"string"},{name:"memory",text:"Memory",source:["status.capacity.memory"],format:"string",style:["mb"]},{name:"pods",text:"Pods",source:["status.capacity.pods"],format:"string"}]},{name:"allocatable",text:"Allocatable",source:["status.allocatable"],format:"objectprops",style:["table"],items:[{name:"cpu",text:"CPU",source:["status.allocatable.cpu"],format:"string"},{name:"storage",text:"Storage",source:["status.allocatable.ephemeral-storage"],format:"string",style:["mb"]},{name:"hp1gi",text:"Hugepages-1Gi",source:["status.allocatable.hugepages-2Mi"],format:"string"},{name:"hp2m",text:"Hugepages-2Mi",source:["status.allocatable.hugepages-1Gi"],format:"string"},{name:"memory",text:"Memory",source:["status.allocatable.memory"],format:"string",style:["mb"]},{name:"pods",text:"Pods",source:["status.allocatable.pods"],format:"string"}]}]},{name:"storage",text:"Storage",root:"origin",items:[{name:"inuse",text:"In Use",source:["#status.volumesInUse"],format:"stringlist",style:["column","link:$PersistentVolume:.:."],processValue:e=>e.split("/")[e.split("/").length-1]},{name:"attached",text:"Attached",source:["status.volumesAttached"],format:"objectlist",style:["column"],items:[{name:"name",text:"",source:["#name"],format:"string",style:["column","link:$PersistentVolume:name:."],processValue:e=>e.split("/")[e.split("/").length-1]}]}]},{name:"network",text:"Network",root:"origin",items:[{name:"addresses",text:"Addresses",source:["status.addresses"],format:"objectlist",style:["table"],items:[{name:"type",text:"Type",source:["type"],format:"string"},{name:"value",text:"Value",source:["address"],format:"string"}]}]},Ie]);ue.set("V1APIResource",[{name:"properties",text:"Properties",root:"origin",items:[{name:"kind",text:"Kind",format:"string",source:["kindName"]},{name:"namespaced",text:"Namespaced",format:"boolean",source:["namespaced"],style:["ifpresent","true:Yes:green","false:No:red",":No:red"]},{name:"shortNames",text:"Short names",format:"string",source:["shortNames"],style:["ifpresent"]},{name:"singularName",text:"Singular",format:"string",source:["singularName"],style:["ifpresent"]},{name:"categories",text:"Categories",format:"stringlist",source:["categories"],style:["ifpresent"]},{name:"verbs",text:"Verbs",format:"stringlist",source:["verbs"],style:["ifpresent"]}]}]);ue.set("Image",[{name:"properties",text:"Properties",root:"origin",items:[{name:"name",text:"Name",source:["displayName"],format:"string"},{name:"registry",text:"Registry",source:["registry"],format:"string"},{name:"tag",text:"Tag",source:["tag"],format:"string"},{name:"sha",text:"SHA",source:["sha"],format:"string"},{name:"names",text:"Names",source:["names"],format:"stringlist",style:["column"]},{name:"nodes",text:"Nodes",source:["#nodes"],format:"stringlist",style:["column","link:$Node:.:."]}]}]);ue.set("ComponentStatus",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},{name:"conditions",text:"Conditions",root:"origin",items:[{name:"conditions",text:"",source:["conditions"],format:"objectlist",style:["table"],items:[{name:"status",text:"Status",source:["status"],format:"string"},{name:"type",text:"Type",source:["type"],format:"string"},{name:"message",text:"Message",source:["message"],format:"string"}]}]},Ie]);ue.set("ConfigMap",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"data",text:"Data",root:"origin",items:[{name:"item",text:"",source:["data"],format:"objectprops",style:["column","edit","keybold","multiline"]}]},Ie]);ue.set("Secret",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"type",text:"Type",source:["type"],format:"string"}]},{name:"data",text:"Data",root:"origin",items:[{name:"item",text:"",source:["data"],format:"objectprops",style:["column","edit","keybold","multiline","lockicon","base64"]}]},Ie]);ue.set("LimitRange",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"limits",text:"Limits",root:"origin",items:[{name:"limits",text:"",source:["spec.limits"],format:"objectlist",style:["table"],items:[{name:"type",text:"Type",source:["type"],format:"string"},{name:"maxcpu",text:"MaxCPU",source:["max.cpu"],format:"string"},{name:"maxmem",text:"MaxMem",source:["max.memory"],format:"string"},{name:"mincpu",text:"MinCPU",source:["min.cpu"],format:"string"},{name:"minmem",text:"MinMem",source:["min.memory"],format:"string"},{name:"defcpu",text:"DefaultCPU",source:["default.cpu"],format:"string"},{name:"defmem",text:"DefaultMem",source:["default.memory"],format:"string"},{name:"defreqcpu",text:"DefReqCPU",source:["defaultRequest.cpu"],format:"string"},{name:"defreqmem",text:"DefReqMem",source:["defaultRequest.memory"],format:"string"}]}]},Ie]);ue.set("HorizontalPodAutoscaler",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"reference",text:"Reference",source:["spec.scaleTargetRef.kind","$\xA0/\xA0","spec.scaleTargetRef.name"],format:"string"},{name:"minPods",text:"Min Pods",source:["spec.minReplicas"],format:"string"},{name:"maxPods",text:"Max Pods",source:["spec.maxReplicas"],format:"string"},{name:"replicas",text:"Replicas",source:["status.desiredReplicas"],format:"string"}]},Ie]);ue.set("PodDisruptionBudget",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"minAvailable",text:"Min Available",source:["spec.minAvailable"],format:"string",style:["ifpresent"]},{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},ai]},Ie]);ue.set("PriorityClass",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"preemptionPolicy",text:"Policy",source:["preemptionPolicy"],format:"string"}]},Ie]);ue.set("RuntimeClass",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"handler",text:"Handler",source:["handler"],format:"string"}]},Ie]);ue.set("Lease",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"holderIdentity",text:"Holder",source:["spec.holderIdentity"],format:"string"},{name:"leaseDurationSeconds",text:"Duration",source:["spec.leaseDurationSeconds"],format:"string"},{name:"acquireTime",text:"Acquire",source:["spec.acquireTime"],format:"string",style:["ifpresent"]},{name:"renewTime",text:"Renew",source:["spec.renewTime"],format:"string"},{name:"leaseTransitions",text:"Transitions",source:["spec.leaseTransitions"],format:"string",style:["ifpresent"]}]},Ie]);ue.set("ValidatingWebhookConfiguration",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},{name:"webhooks",text:"Webhooks",root:"origin",items:[{name:"webhooks",text:"",format:"objectlist",source:["webhooks"],style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"clientConfig",text:"Client Config",source:["clientConfig.service"],format:"objectprops",style:["column"],items:[{name:"clientconfig",text:"CCName",source:["name"],format:"string"},{name:"name",text:"Name",source:["clientConfig.service.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#clientConfig.service.namespace"],format:"string",style:["link:$Namespace:clientConfig.service.namespace:."]},{name:"route",text:"Route",source:["clientConfig.service.path","$:","clientConfig.service.port"],format:"string"}]},{name:"rules",text:"Rules",source:["rules"],format:"objectlist",style:["column"],items:[{name:"scope",text:"Scope",source:["scope"],format:"string",style:["header"]},{name:"operations",text:"operations",source:["operations"],format:"stringlist",style:["header"]},{name:"apiGroups",text:"Groups",source:["apiGroups"],format:"stringlist",style:["header"]},{name:"apiVersions",text:"API Versions",source:["apiVersions"],format:"stringlist",style:["header"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["header"]}]}]}]},Ie]);ue.set("MutatingWebhookConfiguration",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},{name:"webhooks",text:"Webhooks",root:"origin",items:[{name:"webhooks",text:"",format:"objectlist",source:["webhooks"],style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"clientConfig",text:"Client Config",source:["clientConfig.service"],format:"objectprops",style:["column"],items:[{name:"clientconfig",text:"CCName",source:["name"],format:"string"},{name:"name",text:"Name",source:["clientConfig.service.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#clientConfig.service.namespace"],format:"string",style:["link:$Namespace:clientConfig.service.namespace:."]},{name:"port",text:"Port",source:["clientConfig.service.port"],format:"string"}]},{name:"rules",text:"Rules",source:["rules"],format:"objectlist",style:["column"],items:[{name:"scope",text:"Scope",source:["scope"],format:"string",style:["header"]},{name:"operations",text:"operations",source:["operations"],format:"stringlist",style:["header"]},{name:"apiGroups",text:"Groups",source:["apiGroups"],format:"stringlist",style:["header"]},{name:"apiVersions",text:"API Versions",source:["apiVersions"],format:"stringlist",style:["header"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["header"]}]}]}]},Ie]);ue.set("Pod",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"controlledby",text:"Controlled By",source:["metadata.ownerReferences.0.kind","$\xA0","#metadata.ownerReferences.0.name"],format:"string",style:["link:metadata.ownerReferences.0.kind:metadata.ownerReferences.0.name:$$namespace"]},{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Running:green","Pending:orange"]},{name:"node",text:"Node",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]},{name:"podip",text:"Pod IP",source:["status.podIP"],format:"string"},{name:"podips",text:"Pod IPs",source:["status.podIPs"],format:"objectlist",items:[{name:"ip",text:"IP",source:["ip"],format:"string"}]},{name:"sa",text:"Service Account",source:["#spec.serviceAccount"],format:"string",style:["link:$ServiceAccount:spec.serviceAccount:$$namespace"]},{name:"qosclass",text:"QoS Class",source:["status.qosClass"],format:"string"},ai,{name:"tolerations",text:"Tolerations",source:["spec.tolerations"],format:"table",items:[{name:"key",text:"Key",source:["key"],format:"string"},{name:"operator",text:"Operator",source:["operator"],format:"string"},{name:"value",text:"Value",source:["value"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"},{name:"seconds",text:"Seconds",source:["tolerationSeconds"],format:"string"}]}]},{name:"containers",text:"Containers",root:"origin",items:[{name:"container",text:"",source:["status.containerStatuses|spec.containers:name"],format:"objectobject",style:["column"],items:[{name:"name",text:"",source:["name"],format:"string",style:["bold"]},{name:"id",text:"Id",source:["containerID"],format:"string",style:[""]},{name:"state",text:"State",source:["state"],format:"keylist",style:["running:green","waiting:orange"]},{name:"image",text:"Image",source:["#image"],format:"string",style:["link:$Image:image:."]},{name:"ports",text:"Ports",source:["ports"],format:"objectlist",style:["fullwidth","ifpresent"],items:[{name:"forward",text:"Forward",source:["@jsx"],format:"string"}]},{name:"envs",text:"Environment",source:["env"],format:"objectlist",style:["table"],items:[{name:"env",text:"Variable",source:["name"],format:"string"},{name:"val",text:"Value",source:["value","valueFrom.fieldRef.fieldPath"],format:"string"},{name:"valSecret",text:"From Secret",source:["#valueFrom.secretKeyRef.name","$/","valueFrom.secretKeyRef.key"],format:"string",style:["ifpresent","link:$Secret:valueFrom.secretKeyRef.name:$$namespace"]},{name:"valCm",text:"From CM",source:["#valueFrom.configMapKeyRef.name","$/","valueFrom.configMapKeyRef.key"],format:"string",style:["ifpresent","link:$ConfigMap:valueFrom.configMapKeyRef.name:$$namespace"]}]},{name:"mounts",text:"Mounts",source:["volumeMounts"],format:"table",items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"path",text:"Path",source:["mountPath"],format:"string"}]},{name:"requests",text:"Requests",source:["resources.requests"],format:"objectprops",style:["table","ifpresent"]},{name:"limits",text:"Limits",source:["resources.limits"],format:"objectprops",style:["table","ifpresent"]}]}]},{name:"volumes",text:"Volumes",root:"origin",items:[{name:"volume",text:"",source:["spec.volumes"],format:"table",items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"mode",text:"Mount Mode",source:["projected.defaultMode","configMap.defaultMode","secret.defaultMode"],format:"string"},{name:"pvc",text:"PVC",source:["#persistentVolumeClaim.claimName"],format:"string",style:["link:$PersistentVolumeClaim:persistentVolumeClaim.claimName:$$namespace"]},{name:"configmap",text:"ConfigMap",source:["#configMap.name"],format:"string",style:["link:$ConfigMap:configMap.name:$$namespace"]},{name:"secret",text:"Secret",source:["#secret.secretName"],format:"string",style:["link:$Secret:secret.secretName:$$namespace"]},{name:"projected",text:"Projected",source:["projected.sources"],format:"boolean",style:["true:\u2714\uFE0F:green","false::"]}]}]},Ie]);ue.set("Deployment",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"strategyType",text:"Strategy Type",source:["spec.strategy.type"],format:"string"},{name:"status",text:"Status",source:["@string[]"],format:"string",style:["running:green"]},ai]},ka,Ie]);ue.set("DaemonSet",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["#image"],format:"string",style:["link:$Image:image:."]}],style:["column"]},{name:"strategy",text:"Strategy",source:["spec.updateStrategy.type"],format:"string"},{name:"tolerations",text:"Tolerations",source:["spec.template.spec.tolerations"],format:"objectlist",items:[{name:"key",text:"Key",source:["key"],format:"string"},{name:"operator",text:"Operator",source:["operator"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"}],style:["table"]}]},ka,Ie]);ue.set("ReplicaSet",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"controlledby",text:"Controlled By",source:["metadata.ownerReferences.0.kind","$\xA0","#metadata.ownerReferences.0.name"],format:"string",style:["link:metadata.ownerReferences.0.kind:metadata.ownerReferences.0.name:$$namespace"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]},{name:"replicas",text:"Replicas",source:["status.readyReplicas||0","$/","spec.replicas"],format:"string"}]},ka,Ie]);ue.set("ReplicationController",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"spec",text:"Spec",root:"origin",items:[{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"selector",text:"Selector",source:["spec.selector"],format:"objectprops"}]},{name:"status",text:"Status",root:"origin",items:[{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"availableReplicas",text:"Available",source:["status.availableReplicas"],format:"string"},{name:"labelled",text:"Labelled",source:["status.fullyLabeledReplicas"],format:"string"},{name:"generation",text:"Generation",source:["status.observedGeneration"],format:"string"}]},ka,Ie]);ue.set("StatefulSet",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]}]},ka,Ie]);ue.set("Job",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops"},{name:"nodeSelector",text:"Node Selector",source:["spec.template.spec.nodeSelector"],format:"objectprops",style:["ifpresent"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]},ai,{name:"completions",text:"Completions",source:["spec.completions"],format:"string"},{name:"parallelism",text:"Parallelism",source:["spec.parallelism"],format:"string"}]},ka,Ie]);ue.set("CronJob",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"schedule",text:"Schedule",source:["spec.schedule"],format:"string"},{name:"suspended",text:"Suspended",source:["spec.suspend"],format:"boolean",style:["true:Yes:red","false:No:green"]},{name:"lastSchedule",text:"Last Schedule",source:["status.lastScheduleTime"],format:"string",style:["ifpresent"]},{name:"lastSuccessful",text:"Last Success",source:["status.lastSuccessfulTime"],format:"string",style:["ifpresent"]},{name:"nextExecution",text:"Next Execution",source:["@string[]"],format:"string"},{name:"timeLeft",text:"Time Left",source:["@string[]"],format:"string"}]},{name:"history",text:"History",root:"origin",items:[{name:"jobs",text:"",source:["@string[]"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["#metadata.name"],format:"string",style:["link:$Job:metadata.name:$$namespace"]},{name:"age",text:"Age",source:["status.startTime"],format:"age"}]}]},Ie]);ue.set("ServiceAccount",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"tokens",text:"Tokens",source:["@object[]"],format:"objectlist",style:["column"],items:[{name:"tokens",text:"",source:["#name"],format:"string",style:["column","char:30","ifpresent","link:$Secret:name:namespace"]}]}]},Ie]);ue.set("ClusterRole",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},{name:"rules",text:"Rules",root:"origin",items:[{name:"rules",text:"",source:["rules"],format:"objectlist",items:[{name:"verbs",text:"Verbs",source:["verbs"],format:"stringlist",style:["column"]},{name:"apiGroups",text:"API Groups",source:["apiGroups"],format:"stringlist",style:["column"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["column"]},{name:"nonResourceURLs",text:"Non Resource URLs",source:["nonResourceURLs"],format:"stringlist",style:["column"]}],style:["table"]}]},Ie]);ue.set("Role",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"rules",text:"Rules",root:"origin",items:[{name:"rules",text:"",source:["rules"],format:"objectlist",items:[{name:"verbs",text:"Verbs",source:["verbs"],format:"stringlist",style:["column"]},{name:"apiGroups",text:"API Groups",source:["apiGroups"],format:"stringlist",style:["column"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["column"]}],style:["table"]}]}]);ue.set("ClusterRoleBinding",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},{name:"reference",text:"Reference",root:"origin",items:[{name:"kind",text:"Kind",source:["roleRef.kind"],format:"string"},{name:"name",text:"Name",source:["#roleRef.name"],format:"string",style:["link:$ClusterRole:roleRef.name:."]},{name:"apiGroup",text:"API Group",source:["roleRef.apiGroup"],format:"string"}]},{name:"subjects",text:"Subjects",root:"origin",items:[{name:"bindings",text:"",source:["subjects"],format:"objectlist",items:[{name:"kind",text:"Kind",source:["kind"],format:"string"},{name:"name",text:"Name",source:["name"],format:"string",style:["link:$ServiceAccount:name:."]},{name:"namespace",text:"Namespace",source:["#namespace"],format:"string",style:["link:$Namespace:namespace:."]}],style:["table"]}]},Ie]);ue.set("RoleBinding",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"reference",text:"Reference",root:"origin",items:[{name:"kind",text:"Kind",source:["roleRef.kind"],format:"string"},{name:"name",text:"Name",source:["#roleRef.name"],format:"string",style:["link:$Role:roleRef.name:."]},{name:"apiGroup",text:"API Group",source:["roleRef.apiGroup"],format:"string"}]},{name:"subjects",text:"Subjects",root:"origin",items:[{name:"bindings",text:"",source:["subjects"],format:"objectlist",items:[{name:"kind",text:"Kind",source:["kind"],format:"string"},{name:"name",text:"Name",source:["#name"],format:"string",style:["link:$ServiceAccount:name:."]},{name:"namespace",text:"Namespace",source:["#namespace"],format:"string",style:["link:$Namespace:namespace:."]}],style:["table"]}]},Ie]);ue.set("ResourceQuota",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"quotas",text:"Quotas",root:"origin",items:[{name:"limitcpu",text:"Limit CPU",source:["status.used['limits.cpu']","status.hard['limits.cpu']"],format:"bar",style:["ifpresent"]},{name:"limitmemory",text:"Limit Memory",source:["status.used['limits.memory']","status.hard['limits.memory']"],format:"bar",style:["ifpresent"]},{name:"requestcpu",text:"Request CPU",source:["status.used['requests.cpu']","status.hard['requests.cpu']"],format:"bar",style:["ifpresent"]},{name:"requestmemory",text:"Request Memory",source:["status.used['requests.memory']","status.hard['requests.memory']"],format:"bar",style:["ifpresent"]},{name:"pods",text:"Pods",source:["status.used['count/pods']","status.hard['count/pods']"],format:"bar",style:["ifpresent"]},{name:"persistentvolumeclaims",text:"PVCs",source:["status.used['count/persistentvolumeclaims']","status.hard['count/persistentvolumeclaims']"],format:"bar",style:["ifpresent"]},{name:"services",text:"Services",source:["status.used['count/services']","status.hard['count/services']"],format:"bar",style:["ifpresent"]},{name:"configmaps",text:"ConfigMaps",source:["status.used['count/configmaps']","status.hard['count/configmaps']"],format:"bar",style:["ifpresent"]},{name:"secrets",text:"Secrets",source:["status.used['count/secrets']","status.hard['count/secrets']"],format:"bar",style:["ifpresent"]}]},Ie]);ue.set("CustomResourceDefinition",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"group",text:"Group",source:["spec.group"],format:"string"},{name:"versions",text:"Versions",source:["spec.versions"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"served",text:"Served",source:["served"],format:"boolean",style:["true:Yes:green","false:No:red"]},{name:"storage",text:"Storage",source:["storage"],format:"boolean",style:["true:Yes:green","false:No:red"]}]},ai]},{name:"names",text:"Names",root:"origin",items:[{name:"singular",text:"Singular",source:["spec.names.singular"],format:"string"},{name:"plural",text:"Plural",source:["spec.names.plural"],format:"string"},{name:"kind",text:"Kind",source:["spec.names.kind"],format:"string"},{name:"listKind",text:"List Kind",source:["spec.names.listKind"],format:"string"}]},Ie]);ue.set("#crdInstance#",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"source",text:"Source",source:["spec.source"],format:"string"},{name:"checksum",text:"checksum",source:["spec.checksum"],format:"string",style:["char:80"]}]},Ie]);var xn=I(Jt(),1);var Tt=I(Rt(),1);u();var On=I(Ze(),1);u();var fd=I(Ze());u();u();var ds=function(){return ds=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ds.apply(this,arguments)};var ii=I(Ze());u();var ri=I(Ze());function rc(){var e=(0,ri.useRef)(!1),t=(0,ri.useCallback)(function(){return e.current},[]);return(0,ri.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t}function ic(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var a=(0,ii.useRef)(0),r=rc(),i=(0,ii.useState)(n),s=i[0],o=i[1],l=(0,ii.useCallback)(function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var m=++a.current;return s.loading||o(function(f){return ds(ds({},f),{loading:!0})}),e.apply(void 0,c).then(function(f){return r()&&m===a.current&&o({value:f,loading:!1}),f},function(f){return r()&&m===a.current&&o({error:f,loading:!1}),f})},t);return[s,l]}function sc(e,t){t===void 0&&(t=[]);var n=ic(e,t,{loading:!0}),a=n[0],r=n[1];return(0,fd.useEffect)(function(){r()},[r]),a}var ye=I(ht(),1),ma=I(Jt(),1),Oe=I(Qa(),1),ym=I(Rt(),1),wl=I(Rt(),1),qg=I(Rt(),1);u();var zt=I(Ze(),1),vn=I(ht(),1);u();u();var Ta=I(Ze(),1),et=I(nr(),1),Od=I(fs(),1);u();function Cd(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Cd(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Sd(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Cd(e))&&(a&&(a+=" "),a+=t);return a}var li=I(Ze(),1),_t=I(nr(),1),Ed=I(fs(),1);function fc(e,t){for(let n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function kd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function ps(e){return typeof e=="number"&&!isNaN(e)}function Wt(e){return parseInt(e,10)}function oi(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var oc=["Moz","Webkit","O","ms"];function U1(e="transform"){var t,n;if(typeof window>"u")return"";let a=(n=(t=window.document)==null?void 0:t.documentElement)==null?void 0:n.style;if(!a||e in a)return"";for(let r=0;r<oc.length;r++)if(Rd(e,oc[r])in a)return oc[r];return""}function Rd(e,t){return t?`${t}${Y1(e)}`:e}function Y1(e){let t="",n=!0;for(let a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):e[a]==="-"?n=!0:t+=e[a];return t}var G1=U1(),lc="";function K1(e,t){var n;lc||(lc=(n=fc(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(r){return kd(e[r])}))!=null?n:"");let a=e[lc];return kd(a)?!!a.call(e,t):!1}function Id(e,t,n){let a=e;do{if(K1(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1}function cc(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}function rr(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null}function J1(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Wt(n.borderTopWidth),t+=Wt(n.borderBottomWidth),t}function j1(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Wt(n.borderLeftWidth),t+=Wt(n.borderRightWidth),t}function Z1(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Wt(n.paddingTop),t-=Wt(n.paddingBottom),t}function X1(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Wt(n.paddingLeft),t-=Wt(n.paddingRight),t}function Q1(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}}function eb(e,t){let n=Nd(e,t,"px");return{[Rd("transform",G1)]:n}}function tb(e,t){return Nd(e,t,"")}function Nd({x:e,y:t},n,a){let r=`translate(${e}${a},${t}${a})`;if(n){let i=`${typeof n.x=="string"?n.x:n.x+a}`,s=`${typeof n.y=="string"?n.y:n.y+a}`;r=`translate(${i}, ${s})`+r}return r}function nb(e,t){return e.targetTouches&&fc(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&fc(e.changedTouches,n=>t===n.identifier)}function ab(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function rb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function ib(e,t){if(!e)return;let n=e.getElementById("react-draggable-style-el");if(!n){n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el";let a=t??rb();a&&n.setAttribute("nonce",a),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
245
+ } */`;u();var Pn=k(Ot(),1);u();var fo=class{},po=class{};u();var Bm=k(Kt(),1),us=k(he(),1),$m=(0,us.jsx)(Bm.Search,{}),qm=e=>(0,us.jsx)(us.Fragment,{});var Oe=k(va(),1);u();u();var ms=[{name:"ComponentStatus",priority:5},{name:"Node",priority:1},{name:"V1APIResource",priority:5},{name:"Namespace",priority:1},{name:"NodeMetrics",priority:3},{name:"Pod",priority:2},{name:"PodMetrics",priority:3},{name:"Deployment",priority:2},{name:"DaemonSet",priority:2},{name:"ReplicaSet",priority:2},{name:"ReplicationController",priority:2},{name:"StatefulSet",priority:2},{name:"Job",priority:2},{name:"CronJob",priority:2},{name:"ConfigMap",priority:2},{name:"Secret",priority:2},{name:"ResourceQuota",priority:4},{name:"LimitRange",priority:4},{name:"HorizontalPodAutoscaler",priority:4},{name:"PodDisruptionBudget",priority:4},{name:"PriorityClass",priority:4},{name:"RuntimeClass",priority:4},{name:"Lease",priority:9},{name:"ValidatingWebhookConfiguration",priority:8},{name:"MutatingWebhookConfiguration",priority:8},{name:"Service",priority:2},{name:"Endpoints",priority:3},{name:"Ingress",priority:2},{name:"IngressClass",priority:5},{name:"NetworkPolicy",priority:3},{name:"PersistentVolumeClaim",priority:2},{name:"PersistentVolume",priority:2},{name:"StorageClass",priority:3},{name:"VolumeAttachment",priority:4},{name:"CSIDriver",priority:5},{name:"CSINode",priority:5},{name:"CSIStorageCapacity",priority:5},{name:"ServiceAccount",priority:5},{name:"ClusterRole",priority:2},{name:"Role",priority:2},{name:"ClusterRoleBinding",priority:2},{name:"RoleBinding",priority:2},{name:"CustomResourceDefinition",priority:4},{name:"CRD Instances",priority:4}].sort((e,t)=>e.priority-t.priority),Ql=class{constructor(){this.source=ms;this.sync=ms}},ei=class{constructor(){this.palette="light";this.logLines=5e3;this.dataConfig=new Ql;this.dataHelm=!1;this.dataManagedFields=!1;this.tracing=!1;this.customActions=[]}};var go=class{constructor(){this.clusterInfo=void 0;this.paused=!1;this.started=!1;this.files=[];this.clusterEvents=[];this.currentPath="/";this.timers=[];this.windows=[];this.contentWindows=[];this.pendingWebSocketRequests=new Map;this.metricsCluster=[];this.metricsProviderMissing=!1;this.eventsProviderMissing=!1;this.metricsPodDetail=[];this.logSearchResults=[];this.logSearchDone=!0;this.updateNamespaces=void 0;this.userPreferences=new ei}};u();var Xe=k(je(),1);var _e=k(ft(),1),mt=k(va(),1),I1=k(Km(),1);u();u();var Pt=[];for(let e=0;e<256;++e)Pt.push((e+256).toString(16).slice(1));function Jm(e,t=0){return(Pt[e[t+0]]+Pt[e[t+1]]+Pt[e[t+2]]+Pt[e[t+3]]+"-"+Pt[e[t+4]]+Pt[e[t+5]]+"-"+Pt[e[t+6]]+Pt[e[t+7]]+"-"+Pt[e[t+8]]+Pt[e[t+9]]+"-"+Pt[e[t+10]]+Pt[e[t+11]]+Pt[e[t+12]]+Pt[e[t+13]]+Pt[e[t+14]]+Pt[e[t+15]]).toLowerCase()}u();var ec,G1=new Uint8Array(16);function tc(){if(!ec){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ec=crypto.getRandomValues.bind(crypto)}return ec(G1)}u();u();var K1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),nc={randomUUID:K1};function J1(e,t,n){if(nc.randomUUID&&!t&&!e)return nc.randomUUID();e=e||{};let a=e.random??e.rng?.()??tc();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let r=0;r<16;++r)t[n+r]=a[r];return t}return Jm(a)}var at=J1;var Qs=k(Ot(),1);u();var w=k(Kt(),1);u();var Ln=k(ft(),1),yt=k(he(),1),jm=e=>(0,yt.jsx)(Ln.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"m9 19 1.41-1.41L5.83 13H22v-2H5.83l4.59-4.59L9 5l-7 7z"})}),Zm=e=>(0,yt.jsx)(Ln.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11m-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2M5 20v2h14v-2z"})}),Xm=e=>(0,yt.jsx)(Ln.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M4 11h16v2H4z"})}),ac=e=>(0,yt.jsx)(Ln.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M7 9H2V7h5zm0 3H2v2h5zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3M2 19h10v-2H2z"})}),ds=e=>(0,yt.jsx)(Ln.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2zM19 19H5L19 5zm-2-2v-1.5h-5V17z"})}),Qm=e=>(0,yt.jsx)(Ln.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M18 16h-2v-1H8v1H6v-1H2v5h20v-5h-4zm2-8h-3V6c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v4h4v-2h2v2h8v-2h2v2h4v-4c0-1.1-.9-2-2-2m-5 0H9V6h6z"})}),ed=e=>(0,yt.jsx)(Ln.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"})}),td=e=>(0,yt.jsx)(Ln.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"})}),nd=e=>(0,yt.jsx)(Ln.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"})}),Vn=e=>(0,yt.jsx)(Ln.SvgIcon,{...e,children:(0,yt.jsx)("path",{d:"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37M2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3z"})});u();var qe=k(he(),1),ad=({size:e})=>(0,qe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,qe.jsx)("path",{fill:"currentColor",d:"M13.95 13.5h-.23c-.18.11-.26.32-.18.5l.86 2.11c.83-.53 1.46-1.32 1.79-2.25l-2.23-.36h-.01m-3.45.29a.415.415 0 0 0-.38-.29h-.08l-2.22.37c.33.92.96 1.7 1.79 2.23l.85-2.07V14c.04-.05.04-.14.04-.21m1.83.81a.378.378 0 0 0-.51-.15c-.07.05-.12.08-.15.15h-.01l-1.09 1.97c.78.26 1.62.31 2.43.12c.14-.03.29-.07.43-.12l-1.09-1.97h-.01m3.45-4.57L14.1 11.5l.01.03a.37.37 0 0 0-.04.53c.05.06.11.1.18.12l.01.01l2.17.62c.07-.97-.14-1.95-.65-2.78m-3.11.16c.01.21.18.37.39.36c.08 0 .15-.02.21-.05h.01l1.83-1.31a4.45 4.45 0 0 0-2.57-1.24l.13 2.24m-1.94.31c.17.11.4.08.52-.09c.05-.06.07-.13.08-.21h.01l.12-2.25c-.15.02-.3.05-.46.08c-.8.18-1.54.58-2.12 1.16l1.84 1.31h.01m-.99 1.69c.2-.05.32-.26.26-.46c0-.08-.05-.14-.11-.19v-.01L8.21 10c-.52.86-.74 1.84-.63 2.82l2.16-.62v-.01m1.64.66l.62.3l.62-.3l.15-.67l-.43-.53h-.69l-.43.53l.16.67m10.89 1.32L20.5 6.5c-.09-.42-.37-.76-.74-.94l-7.17-3.43c-.37-.17-.81-.17-1.19 0L4.24 5.56c-.37.18-.65.52-.74.94l-1.77 7.67c-.05.2-.05.4 0 .59c.01.06.03.12.05.18c.03.09.08.19.13.27c.03.04.05.08.09.11l4.95 6.18c.02 0 .05.04.05.06c.1.09.19.16.28.22c.12.08.26.14.4.17c.11.05.23.05.32.05h8.12c.07 0 .14-.03.2-.05c.05-.01.1-.03.14-.04c.04-.02.07-.03.11-.05c.05-.02.1-.05.15-.08c.12-.08.23-.18.33-.28l.15-.2l4.8-5.98c.1-.12.17-.25.22-.38c.02-.06.04-.12.05-.18c.05-.19.05-.4 0-.59m-7.43 2.99c.02.06.04.12.07.17c-.04.08-.06.17-.03.26c.12.24.23.46.38.68c.08.11.16.23.24.34c0 .03.03.08.04.12c.12.2.06.46-.15.59s-.47.05-.59-.15c-.01-.03-.02-.05-.03-.08c-.02-.03-.04-.09-.06-.09c-.05-.15-.09-.28-.12-.41c-.09-.25-.17-.49-.3-.72a.375.375 0 0 0-.21-.14l-.08-.16c-1.29.48-2.7.48-3.97-.01l-.1.18c-.07.01-.14.04-.19.09c-.14.24-.24.49-.33.77c-.03.13-.07.26-.12.4c-.02 0-.04.07-.06.1a.43.43 0 0 1-.81-.29c.01-.03.03-.05.04-.08c.04-.03.04-.08.04-.11c.09-.12.16-.23.24-.35c.16-.21.29-.45.39-.69a.54.54 0 0 0-.03-.25l.07-.18a5.611 5.611 0 0 1-2.47-3.09l-.2.03a.388.388 0 0 0-.23-.09c-.27.05-.51.13-.77.22c-.11.06-.24.11-.37.15c-.03.01-.07.02-.13.03a.438.438 0 0 1-.54-.27c-.07-.23.04-.47.28-.55c.02 0 .05-.01.08-.01v-.01h.01l.11-.02c.14-.04.28-.04.41-.04c.26 0 .52-.06.77-.12c.08-.05.14-.11.19-.19l.19-.05c-.21-1.36.1-2.73.86-3.87l-.14-.12c0-.09-.03-.18-.08-.25c-.2-.17-.41-.32-.64-.45c-.12-.06-.24-.13-.36-.21c-.02-.02-.06-.05-.08-.07l-.01-.01c-.2-.16-.25-.42-.11-.63c.09-.1.21-.15.35-.15c.11.01.21.05.3.12l.09.07c.1.09.19.2.28.3c.18.19.37.37.58.52c.08.04.17.05.26.03l.15.11c.75-.8 1.73-1.36 2.8-1.6c.25-.06.52-.1.78-.12l.01-.18a.45.45 0 0 0 .14-.23c.01-.26-.01-.52-.05-.77c-.03-.13-.05-.27-.06-.41V5.1c-.02-.24.15-.45.39-.48s.44.15.47.38v.22c-.01.14-.03.28-.06.41c-.04.25-.06.51-.05.77c.02.1.07.17.14.22l.01.19c1.36.12 2.62.73 3.56 1.72l.16-.12c.09.02.18.01.26-.03c.21-.15.41-.33.58-.52c.09-.1.18-.2.28-.3c.03-.02.07-.06.1-.06c.17-.18.44-.18.59 0c.19.16.18.43 0 .6c0 .02-.03.04-.06.06a2.495 2.495 0 0 1-.44.28c-.23.13-.45.28-.64.45c-.06.07-.09.15-.08.24l-.16.14a5.44 5.44 0 0 1 .88 3.86l.19.05c.04.08.11.14.19.18c.25.07.51.11.77.14h.41c.03.03.08.04.12.05c.24.03.4.25.37.49c-.05.23-.24.4-.48.37c-.03-.01-.07-.01-.07-.02v-.01c-.06 0-.1-.01-.14-.02c-.13-.04-.25-.09-.36-.15c-.26-.1-.5-.17-.77-.21c-.09 0-.17 0-.23.08c-.07-.01-.13-.02-.19-.03c-.41 1.31-1.31 2.41-2.47 3.11Z"})}),rd=({size:e})=>(0,qe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,qe.jsx)("path",{fill:"currentColor",d:"M10 3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10 0h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM10 13H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1zm8 1h-2v2h-2v2h2v2h2v-2h2v-2h-2z"})}),id=({size:e})=>(0,qe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,qe.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M7.05 6.462a2 2 0 0 0 2.63-1.519l.32-1.72a9 9 0 0 1 3.998 0l.322 1.72a2 2 0 0 0 2.63 1.519l1.649-.58a9 9 0 0 1 2.001 3.46l-1.33 1.14a2 2 0 0 0 0 3.037l1.33 1.139a9 9 0 0 1-2.001 3.46l-1.65-.58a2 2 0 0 0-2.63 1.519L14 20.777a9 9 0 0 1-3.998 0l-.322-1.72a2 2 0 0 0-2.63-1.519l-1.649.58a9 9 0 0 1-2.001-3.46l1.33-1.14a2 2 0 0 0 0-3.036L3.4 9.342a9 9 0 0 1 2-3.46zM12 9a3 3 0 1 1 0 6a3 3 0 0 1 0-6",clipRule:"evenodd"})}),sd=({size:e})=>(0,qe.jsx)("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,qe.jsx)("path",{fill:"currentColor",d:"M12 12h7c-.53 4.11-3.28 7.78-7 8.92zH5V6.3l7-3.11M12 1L3 5v6c0 5.55 3.84 10.73 9 12c5.16-1.27 9-6.45 9-12V5z"})}),od=({size:e})=>(0,qe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,qe.jsx)("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",d:"M2 5.077S3.667 2 12 2s10 3.077 10 3.077v13.846S20.333 22 12 22S2 18.923 2 18.923V5.077ZM2 13s3.333 3 10 3s10-3 10-3M2 7s3.333 3 10 3s10-3 10-3"})}),ld=({size:e})=>(0,qe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 1024 1024",children:(0,qe.jsx)("path",{fill:"currentColor",d:"M992 512H832v256h64q26 0 45 19t19 45v128q0 27-19 45.5t-45 18.5H704q-27 0-45.5-18.5T640 960V832q0-26 18.5-45t45.5-19h64V512H320v256h64q26 0 45 19t19 45v128q0 27-19 45.5t-45 18.5H192q-27 0-45.5-18.5T128 960V832q0-26 18.5-45t45.5-19h64V512H32q-13 0-22.5-9.5T0 480t9.5-22.5T32 448h480V256h-64q-27 0-45.5-18.5T384 192V64q0-26 18.5-45T448 0h192q26 0 45 19t19 45v128q0 27-19 45.5T640 256h-64v192h416q13 0 22.5 9.5t9.5 22.5t-9.5 22.5T992 512z"})}),cd=({size:e})=>(0,qe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",children:(0,qe.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.248 1.87l4.485 2.562L8 7.136L3.268 4.432l4.484-2.563a.5.5 0 0 1 .496 0ZM2.5 10.84V5.72l4.75 2.714v5.409l-4.498-2.57a.5.5 0 0 1-.252-.435Zm6.25 3.004l4.498-2.57a.5.5 0 0 0 .252-.435V5.721L8.75 8.435v5.409ZM8.992.567a2 2 0 0 0-1.984 0l-5 2.857A2 2 0 0 0 1 5.161v5.678a2 2 0 0 0 1.008 1.737l5 2.857a2 2 0 0 0 1.984 0l5-2.857A2 2 0 0 0 15 10.839V5.161a2 2 0 0 0-1.008-1.737l-5-2.857Z",clipRule:"evenodd"})}),ud=({size:e})=>(0,qe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,qe.jsx)("path",{fill:"currentColor",d:"M1 13v10h22V13Zm12 6H4v-2h9Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1ZM1 1v10h22V1Zm12 6H4V5h9Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Z"})}),md=({size:e})=>(0,qe.jsx)("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:(0,qe.jsx)("path",{fillRule:"evenodd",d:"M4 7H3V2h1v5zm-1 7h1v-3H3v3zm5 0h1V8H8v6zm5 0h1v-2h-1v2zm1-12h-1v6h1V2zM9 2H8v2h1V2zM5 8H2c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1zm5-3H7c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1zm5 4h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1z",fill:"currentColor"})}),dd=({size:e})=>(0,qe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,qe.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",children:[(0,qe.jsx)("path",{d:"M1.5 12 7 3h10l5.5 9-5.5 9H7z"}),(0,qe.jsx)("path",{d:"m5 14 5-5 5 5m4 0-4.5-4.5-1 1m-5 2V14"})]})}),fd=({size:e})=>(0,qe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,qe.jsx)("path",{fill:"currentColor",d:"m18.5 10.57-.2.37c.26-.78.11-1.63.15-2.37l-.07-.02c-.07-1.85-1.67-3.82-3.09-4.48-1.23-.57-3.12-.67-3.99-.24.12-.11.6-.15.45-.23-1.37.13-1.06.47-2.11.74-.29.28.86-.22.23.16-.56.13-.82-.12-1.65.74.07.12.53-.35.15.12-.79-.09-2.48 1.8-2.84 2.42l.19.04c-.31.77-.72 1.26-.77 1.72-.08 1.14-.45 3.21.08 3.85l-.06.53.23.45-.12.01c.58 1.83.62.04 1.39 1.94-.11-.04-.23-.08-.39-.32-.02.19.24.69.54 1.08l-.12.14c.16.31.32.38.43.49-.63-.35.57 1.13.7 1.32l.1-.17c-.02.24.17.56.53 1.01l.3-.01c.13.24.58.68.85.7l-.18.24c.69.2.33.29 1.18.59l-.17-.3c.43.37.56.7 1.17.98.85.3.96.18 1.82.43-.73 0-1.59 0-2.17-.22-3.96-1.07-7.56-5.72-7.32-10.5-.06-.97.1-2.18-.06-2.42.22-.74.48-1.64 1.01-2.71-.04-.07.09.21.36-.24.16-.36.29-.75.5-1.1l.1-.03c.11-.61 1.43-1.55 1.85-2.02v.18c.86-.81 2.4-1.35 3.26-1.73-.23.25.51-.03 1.04-.06l-.49.28c.63-.16.6.07 1.25-.03-.23.03-.5.1-.46.16.72.08.84-.22 1.51 0l-.05-.2c.94.34 1.13.28 2.14.82.36.01.4-.22.93 0 .1.16-.02.19.64.59.07-.03-.13-.22-.27-.37 1.3.71 2.75 2.22 3.18 3.84-.41-.74-.04.39-.18.33.18.49.33 1 .43 1.53-.12-.43-.39-1.48-.86-2.15-.03.43-.6-.3-.29.66.22.34.05-.35.34.25 0 .29.11.58.18.95-.1-.02-.22-.41-.3-.31.1.5.27.72.33.76-.03.08-.12-.08-.12.24.04.74.21.43.29.46-.09.37-.41.79-.25 1.42l-.2-.56c-.05.53.11.63-.13 1.28.18-.6.16-1.1-.01-.85.09.82-.65 1.45-.58 1.98l-.21-.29c-.57.83-.01.45-.4 1.06.14-.23-.07-.08.11-.36-.12.01-.55.53-.94.83-1.54 1.23-3.39 1.4-5.15.73h-.01c.01-.04 0-.09-.12-.17-1.51-1.15-2.4-2.13-2.11-4.41.25-.17.31-1.12.84-1.45.32-.71 1.28-1.36 2.31-1.38 1.05-.06 1.94.56 2.39 1.14-.82-.75-2.14-.98-3.28-.43-1.15.53-1.84 1.8-1.76 3.07.06-.07.1-.02.12-.18-.03 2.47 2.66 4.28 4.6 3.37l.03.05c.78-.22.68-.39 1.19-.75-.04.09-.34.3-.16.3.25-.06 1.03-.79 1.42-1.13.17-.38-.1-.23.15-.69l.3-.15c.17-.48.35-.75.35-1.32"})}),rc=({size:e})=>(0,qe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,qe.jsx)("path",{fill:"currentColor",d:"M17.61.455a3.41 3.41 0 0 0-3.41 3.41 3.41 3.41 0 0 0 3.41 3.41 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41M12.92.8C8.923.777 5.137 2.941 3.148 6.451a5 5 0 0 1 .26-.007 4.9 4.9 0 0 1 2.585.737A8.32 8.32 0 0 1 12.688 3.6 4.94 4.94 0 0 1 13.723.834 11 11 0 0 0 12.92.8m9.226 4.994a4.9 4.9 0 0 1-1.918 2.246 8.36 8.36 0 0 1-.273 8.303 4.9 4.9 0 0 1 1.632 2.54 11.16 11.16 0 0 0 .559-13.089M3.41 7.932A3.41 3.41 0 0 0 0 11.342a3.41 3.41 0 0 0 3.41 3.409 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41zm2.027 7.866a4.9 4.9 0 0 1-2.915.358 11.1 11.1 0 0 0 7.991 6.698 11.2 11.2 0 0 0 2.422.249 4.88 4.88 0 0 1-.999-2.85 9 9 0 0 1-.836-.136 8.3 8.3 0 0 1-5.663-4.32zm11.405.928a3.41 3.41 0 0 0-3.41 3.41 3.41 3.41 0 0 0 3.41 3.41 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41"})});var x=k(he(),1),_=new Map,yo=[{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0}],pd=[{name:"Overview",isDirectory:!0,path:"/overview",class:"classOverview",layout:"own"},{name:"Cluster",isDirectory:!0,path:"/cluster",class:"classCluster",layout:"own"},{name:"Overview",isDirectory:!0,path:"/cluster/overview",class:"classClusterOverview",layout:"own"},{name:"Nodes",isDirectory:!0,path:"/cluster/Node",class:"classmenu",children:"Node"},{name:"Namespaces",isDirectory:!0,path:"/cluster/Namespace",class:"classNamespace",children:"Namespace"},{name:"API Resources",isDirectory:!0,path:"/cluster/V1APIResource",class:"classV1APIResource",children:"V1APIResource"},{name:"Images",isDirectory:!0,path:"/cluster/Image",class:"classImage",children:"Image"},{name:"Component status",isDirectory:!0,path:"/cluster/ComponentStatus",class:"classComponentStatus",children:"ComponentStatus"},{name:"Workload",isDirectory:!0,path:"/workload",class:"classWorkload",layout:"own"},{name:"Overview",isDirectory:!0,path:"/workload/overview",class:"classmenu",layout:"own"},{name:"Pods",isDirectory:!0,path:"/workload/Pod",layout:"list",class:"classPod",categories:["Node","Namespace","controller"],children:"Pod"},{name:"Deployments",isDirectory:!0,path:"/workload/Deployment",class:"classDeployment",categories:["Namespace"],children:"Deployment"},{name:"Daemon Sets",isDirectory:!0,path:"/workload/DaemonSet",class:"classDaemonSet",categories:["Namespace"],children:"DaemonSet"},{name:"Replica Sets",isDirectory:!0,path:"/workload/ReplicaSet",class:"classReplicaSet",categories:["Namespace"],children:"ReplicaSet"},{name:"Replication Controllers",isDirectory:!0,path:"/workload/ReplicationController",class:"classReplicationController",categories:["Namespace"],children:"ReplicationController"},{name:"Stateful Sets",isDirectory:!0,path:"/workload/StatefulSet",class:"classStatefulSet",categories:["Namespace"],children:"StatefulSet"},{name:"Jobs",isDirectory:!0,path:"/workload/Job",class:"classJob",categories:["Namespace"],children:"Job"},{name:"Cron jobs",isDirectory:!0,path:"/workload/CronJob",class:"classCronJob",categories:["Namespace"],children:"CronJob"},{name:"Config",isDirectory:!0,path:"/config",class:"classConfig",layout:"own"},{name:"Overview",isDirectory:!0,path:"/config/overview",class:"classmenu",layout:"own"},{name:"Config Maps",isDirectory:!0,path:"/config/ConfigMap",class:"classConfigMap",categories:["Namespace"],children:"ConfigMap"},{name:"Secrets",isDirectory:!0,path:"/config/Secret",class:"classSecret",categories:["Namespace"],children:"Secret"},{name:"Resource Quota",isDirectory:!0,path:"/config/ResourceQuota",class:"classResourceQuota",categories:["Namespace"],children:"ResourceQuota"},{name:"Limit Range",isDirectory:!0,path:"/config/LimitRange",class:"classLimitRange",categories:["Namespace"],children:"LimitRange"},{name:"Horizontal Pod Autoscaler",isDirectory:!0,path:"/config/HorizontalPodAutoscaler",class:"classHorizontalPodAutoscaler",categories:["Namespace"],children:"HorizontalPodAutoscaler"},{name:"Pod Disruption Budget",isDirectory:!0,path:"/config/PodDisruptionBudget",class:"classPodDisruptionBudget",categories:["Namespace"],children:"PodDisruptionBudget"},{name:"Priority Classes",isDirectory:!0,path:"/config/PriorityClass",class:"classPriorityClass",children:"PriorityClass"},{name:"Runtime Classes",path:"/config/RuntimeClass",isDirectory:!0,class:"classRuntimeClass",children:"RuntimeClass"},{name:"Leases",isDirectory:!0,path:"/config/Lease",class:"classLease",categories:["Namespace"],children:"Lease"},{name:"Validating webhooks",isDirectory:!0,path:"/config/ValidatingWebhookConfiguration",class:"classValidatingWebhookConfiguration",children:"ValidatingWebhookConfiguration"},{name:"Mutating webhooks",isDirectory:!0,path:"/config/MutatingWebhookConfiguration",class:"classMutatingWebhookConfiguration",children:"MutatingWebhookConfiguration"},{name:"Network",isDirectory:!0,path:"/network",class:"classNetwork",layout:"own"},{name:"Overview",isDirectory:!0,path:"/network/overview",class:"classmenu",layout:"own"},{name:"Services",isDirectory:!0,path:"/network/Service",layout:"list",class:"classService",categories:["Namespace"],children:"Service"},{name:"Endpoints\xA0",isDirectory:!0,path:"/network/Endpoints",layout:"list",class:"classEndpoints",categories:["Namespace"],children:"Endpoints"},{name:"Ingresses",isDirectory:!0,path:"/network/Ingress",layout:"list",class:"classIngress",categories:["Namespace"],children:"Ingress"},{name:"Ingress classes",isDirectory:!0,path:"/network/IngressClass",layout:"list",class:"classIngressClass",children:"IngressClass"},{name:"Network policies",isDirectory:!0,path:"/network/NetworkPolicy",layout:"list",class:"classNetworkPolicy",categories:["Namespace"],children:"NetworkPolicy"},{name:"Storage",isDirectory:!0,path:"/storage",class:"classStorage",layout:"own"},{name:"Overview",isDirectory:!0,path:"/storage/overview",class:"classmenu",layout:"own"},{name:"Persistent volume claims",isDirectory:!0,path:"/storage/PersistentVolumeClaim",class:"classPersistentVolumeClaim",categories:["Namespace"],children:"PersistentVolumeClaim"},{name:"Persistent volumes",isDirectory:!0,path:"/storage/PersistentVolume",class:"classPersistentVolume",children:"PersistentVolume"},{name:"Volume attachments",isDirectory:!0,path:"/storage/VolumeAttachment",class:"classVolumeAttachment",children:"VolumeAttachment"},{name:"Storage classes",isDirectory:!0,path:"/storage/StorageClass",class:"classStorageClass",children:"StorageClass"},{name:"CSI Drivers",isDirectory:!0,path:"/storage/CSIDriver",class:"classCSIDriver",children:"CSIDriver"},{name:"CSI Nodes",isDirectory:!0,path:"/storage/CSINode",class:"classCSINode",children:"CSINode"},{name:"CSI Storage Capacity",isDirectory:!0,path:"/storage/CSIStorageCapacity",class:"classCSIStorageCapacity",children:"CSIStorageCapacity"},{name:"Access",isDirectory:!0,path:"/access",class:"classAccess",layout:"own"},{name:"Overview",isDirectory:!0,path:"/access/overview",class:"classmenu",layout:"own"},{name:"Service accounts",isDirectory:!0,path:"/access/ServiceAccount",class:"classServiceAccount",categories:["Namespace"],children:"ServiceAccount"},{name:"Cluster roles",isDirectory:!0,path:"/access/ClusterRole",class:"classClusterRole",children:"ClusterRole"},{name:"Roles",isDirectory:!0,path:"/access/Role",class:"classRole",categories:["Namespace"],children:"Role"},{name:"Cluster role bindings",isDirectory:!0,path:"/access/ClusterRoleBinding",class:"classClusterRoleBinding",children:"ClusterRoleBinding"},{name:"Role bindings",isDirectory:!0,path:"/access/RoleBinding",class:"classRoleBinding",categories:["Namespace"],children:"RoleBinding"},{name:"Custom",isDirectory:!0,path:"/custom",class:"classCustom",layout:"own"},{name:"Definitions",isDirectory:!0,path:"/custom/CustomResourceDefinition",class:"classCustomResourceDefinition",children:"CustomResourceDefinition"},{name:"Preferences",isDirectory:!0,path:"/preferences",class:"classSettings",layout:"own"}];_.set("classClusterOverview",{leftItems:[{name:"search",icon:(0,x.jsx)(w.Search,{fontSize:"small"}),text:"Search",permission:!0},{name:"logsearch",icon:(0,x.jsx)(ac,{fontSize:"small"}),text:"Log search",permission:!0},{name:"add",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Add",permission:!0}]});_.set("classService",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New service",permission:!0}]});_.set("Service",{text:"Service name",source:"name",width:20,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit service",permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"type",text:"Type",source:"type",format:"string",width:10,sortable:!0,visible:!0},{name:"clusterIp",text:"ClusterIP",source:"clusterIp",format:"string",width:10,sortable:!1,visible:!0},{name:"ports",text:"Ports",source:"ports",format:"string",width:10,sortable:!1,visible:!0},{name:"externalIp",text:"ExternalIP",source:"externalIp",format:"string",width:10,sortable:!1,visible:!0},{name:"selector",text:"Selector",source:"function",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classEndpoints",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Endpoints",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"endpoints",text:"Endpoints",source:"endpoints",format:"string",width:45,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classIngress",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New ingress",permission:!0}]});_.set("Ingress",{text:"Name",source:"name",width:25,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"loadBalancers",text:"LoadBalancers",source:"loadBalancers",format:"string",width:10,sortable:!0,visible:!0},{name:"rules",text:"Rules",source:"rules",format:"function",width:40,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classIngressClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("IngressClass",{text:"Name",source:"name",width:50,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"default",icon:(0,x.jsx)(w.CheckCircle,{fontSize:"small"}),text:"Set Default",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"controller",text:"Controller",source:"controller",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classNetworkPolicy",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("NetworkPolicy",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"policyTypes",text:"Policy Types",source:"policyTypes",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classConfigMap",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ConfigMap",{text:"Config Map name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"keys",text:"Keys",source:"keys",format:"string",width:40,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classSecret",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Secret",{text:"Secret name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"type",text:"Type",source:"type",format:"string",width:15,sortable:!0,visible:!0},{name:"keys",text:"Keys",source:"keys",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:15,sortable:!0,visible:!0}]});_.set("classResourceQuota",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ResourceQuota",{text:"Quota name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classLimitRange",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("LimitRange",{text:"Limit name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classHorizontalPodAutoscaler",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("HorizontalPodAutoscaler",{text:"HPA name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"metrics",text:"Metrics",source:"metrics",format:"string",width:8,sortable:!0,visible:!0},{name:"minpods",text:"Min Pods",source:"minpods",format:"string",width:8,sortable:!0,visible:!0},{name:"maxpods",text:"Max Pods",source:"maxpods",format:"string",width:8,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"string",width:8,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:8,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPodDisruptionBudget",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("PodDisruptionBudget",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"minAvailable",text:"Min available",source:"minAvailable",format:"string",width:10,sortable:!0,visible:!0},{name:"maxUnavailable",text:"Max unavailable",source:"maxUnavailable",format:"string",width:10,sortable:!0,visible:!0},{name:"currentHealthy",text:"Current Healthy",source:"currentHealthy",format:"string",width:10,sortable:!0,visible:!0},{name:"desiredHealthy",text:"Desired Healthy",source:"desiredHealthy",format:"string",width:10,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPriorityClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("PriorityClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"value",text:"Value",source:"value",format:"string",width:40,sortable:!0,visible:!0},{name:"globalDefault",text:"Global default",source:"globalDefault",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classRuntimeClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("RuntimeClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"handler",text:"Handler",source:"handler",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classLease",{leftItems:[]});_.set("Lease",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"holder",text:"Holder",source:"holder",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classValidatingWebhookConfiguration",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ValidatingWebhookConfiguration",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"webhooks",text:"Webhooks",source:"webhooks",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classMutatingWebhookConfiguration",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("MutatingWebhookConfiguration",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"webhooks",text:"Webhooks",source:"webhooks",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classNamespace",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New namespace",permission:!0}]});_.set("Namespace",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"search",icon:(0,x.jsx)(w.Search,{fontSize:"small"}),text:"Search",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0},{name:"logsearch",icon:(0,x.jsx)(ac,{fontSize:"small"}),text:"Log search",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"labels",text:"Labels",source:"labels",format:"string",width:30,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:15,sortable:!0,visible:!0}]});_.set("Node",{text:"Name",source:"name",width:30,configurable:!1,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"shell",icon:(0,x.jsx)(w.Terminal,{fontSize:"small"}),text:"Shell",multi:!1,permission:!0},{name:"cordon",icon:(0,x.jsx)(w.Pause,{fontSize:"small"}),text:"Cordon",multi:!0,permission:!0},{name:"uncordon",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"UnCordon",multi:!0,permission:!0},{name:"drain",icon:(0,x.jsx)(w.Stop,{fontSize:"small"}),text:"Drain",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"cpu",text:"CPU",source:"cpu",format:"string",width:6,removable:!1,sortable:!0,visible:!0},{name:"memory",text:"Memory",source:"memory",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"taints",text:"Taints",source:"taints",format:"string",width:6,removable:!1,sortable:!0,visible:!0},{name:"roles",text:"Roles",source:"roles",format:"string",width:20,removable:!1,sortable:!1,visible:!0},{name:"version",text:"Version",source:"version",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"conditions",text:"Conditions",source:"conditions",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:8,sortable:!0,visible:!0}]});_.set("classImage",{leftItems:[]});_.set("Image",{text:"Name",source:"name",width:80,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"tag",text:"Tag",source:"tag",format:"string",width:10,sortable:!0,visible:!0},{name:"size",text:"Size",source:"size",format:"storage",width:10,sortable:!0,visible:!0}]});_.set("classV1APIResource",{leftItems:[]});_.set("V1APIResource",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",multi:!1,permission:!0}],properties:[{name:"kindName",text:"Kind",source:"kind",format:"string",width:30,sortable:!0,visible:!0},{name:"singularName",text:"Singular",source:"singular",format:"string",width:30,sortable:!0,visible:!0},{name:"namespaced",text:"Namespaced",source:"namespaced",format:"string",width:10,sortable:!0,visible:!0}]});_.set("classComponentStatus",{leftItems:[]});_.set("ComponentStatus",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"status",text:"Status",source:"status",format:"string",width:20,sortable:!0,visible:!0},{name:"message",text:"Message",source:"message",format:"string",width:50,sortable:!0,visible:!0}]});_.set("classPod",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New pod",permission:!0}]});_.set("Pod",{text:"Name",source:"name",width:25,configurable:!0,leftItems:[{name:"details",text:"Pod details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),permission:!0},{name:"ops",icon:(0,x.jsx)(w.Terminal,{fontSize:"small"}),text:"Shell",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"evict",icon:(0,x.jsx)(w.DeleteSweep,{fontSize:"small"}),text:"Evict",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:10,sortable:!0,visible:!0},{name:"container",text:"Container",source:"na",format:"function",width:10,sortable:!1,removable:!0,visible:!0},{name:"cpu",text:"CPU",source:"cpu",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"memory",text:"Memory",source:"memory",format:"storage",width:10,sortable:!0,removable:!0,visible:!0},{name:"restarts",text:"Restarts",source:"restartCount",format:"number",width:5,sortable:!0,visible:!0},{name:"controller",text:"Controller",source:"controller",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"node",text:"Node",source:"node",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"age",text:"Age",source:"startTime",format:"age",width:5,sortable:!0,removable:!0,visible:!0},{name:"status",text:"Status",source:"function",format:"string",width:5,sortable:!1,removable:!0,visible:!0}]});_.set("classDeployment",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Deployment",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"scale",icon:(0,x.jsx)(ds,{fontSize:"small"}),text:"Scale",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:15,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"function",width:10,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classDaemonSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("DaemonSet",{text:"Name",source:"name",width:25,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:8,sortable:!0,visible:!0},{name:"current",text:"Current",source:"current",format:"number",width:8,sortable:!0,visible:!0},{name:"ready",text:"Ready",source:"ready",format:"number",width:8,sortable:!0,visible:!0},{name:"upToDate",text:"Up-to-Date",source:"upToDate",format:"number",width:8,sortable:!0,visible:!0},{name:"available",text:"Available",source:"available",format:"number",width:8,sortable:!0,visible:!0},{name:"nodeSelector",text:"Node Selector",source:"nodeSelector",format:"string",width:10,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classReplicaSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ReplicaSet",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"scale",icon:(0,x.jsx)(ds,{fontSize:"small"}),text:"Scale",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:10,sortable:!0,visible:!0},{name:"current",text:"Current",source:"current",format:"number",width:10,sortable:!0,visible:!0},{name:"ready",text:"Ready",source:"ready",format:"number",width:10,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classReplicationController",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ReplicationController",{text:"Name",source:"name",width:60,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},{name:"scale",icon:(0,x.jsx)(ds,{fontSize:"small"}),text:"Scale",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:10,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:10,sortable:!0,visible:!0}]});_.set("classStatefulSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("StatefulSet",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"scale",icon:(0,x.jsx)(ds,{fontSize:"small"}),text:"Scale",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:15,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:15,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});_.set("classJob",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Job",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:25,sortable:!0,visible:!0},{name:"completions",text:"Completions",source:"completions",format:"string",width:15,sortable:!0,visible:!0},{name:"conditions",text:"Conditions",source:"conditions",format:"function",width:15,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCronJob",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("CronJob",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"trigger",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"Trigger",permission:!0},{name:"suspend",icon:(0,x.jsx)(w.Pause,{fontSize:"small"}),text:"Suspend",permission:!0},{name:"resume",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"Resume",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:10,sortable:!0,visible:!0},{name:"schedule",text:"Schedule",source:"schedule",format:"string",width:10,sortable:!1,visible:!0},{name:"suspend",text:"Suspend",source:"suspend",format:"string",width:5,sortable:!0,visible:!0},{name:"active",text:"Active",source:"active",format:"function",width:5,sortable:!0,visible:!0},{name:"lastSchedule",text:"Last schedule",source:"lastSchedule",format:"age",width:10,sortable:!0,visible:!0},{name:"nextExecution",text:"Next execution",source:"nextExecution",format:"function",width:10,sortable:!0,visible:!0},{name:"timeZone",text:"Time zone",source:"timezone",format:"string",width:10,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPersistentVolumeClaim",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New PVC",permission:!0}]});_.set("PersistentVolumeClaim",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"storageClass",text:"Storage class",source:"storageClass",format:"string",width:10,sortable:!0,visible:!0},{name:"size",text:"Size",source:"size",format:"storage",width:5,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:20,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:10,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classPersistentVolume",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New PV",permission:!0}]});_.set("PersistentVolume",{text:"Name",source:"name",width:50,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"storageClass",text:"Storage class",source:"storageClass",format:"string",width:10,sortable:!0,visible:!0},{name:"capacity",text:"Capacity",source:"capacity",format:"storage",width:10,sortable:!0,visible:!0},{name:"clain",text:"Claim",source:"claim",format:"string",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:5,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classVolumeAttachment",{leftItems:[]});_.set("VolumeAttachment",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"attacher",text:"Attacher",source:"attacher",format:"string",width:15,sortable:!0,visible:!0},{name:"nodeName",text:"Node name",source:"nodeName",format:"string",width:20,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:20,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:5,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:5,sortable:!0,visible:!0}]});_.set("classStorageClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New storage class",permission:!0}]});_.set("StorageClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"provisioner",text:"Provisioner",source:"provisioner",format:"string",width:15,sortable:!0,visible:!0},{name:"reclaimPolicy",text:"Reclaim policy",source:"reclaimPolicy",format:"string",width:15,sortable:!0,visible:!0},{name:"default",text:"Default",source:"default",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCSIDriver",{leftItems:[]});_.set("CSIDriver",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"attachRequired",text:"Attach Required",source:"attachRequired",format:"string",width:15,sortable:!0,visible:!0},{name:"storageCapacity",text:"Storage Capacity",source:"storageCapacity",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCSINode",{leftItems:[]});_.set("CSINode",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"divers",text:"Drivers",source:"drivers",format:"string",width:55,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classStorageCapacity",{leftItems:[]});_.set("CSIStorageCapacity",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classServiceAccount",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ServiceAccount",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classClusterRole",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ClusterRole",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classRole",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("Role",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classClusterRoleBinding",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("ClusterRoleBinding",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"bindings",text:"Bindings",source:"bindings",format:"string",width:50,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classRoleBinding",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("RoleBinding",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"bindings",text:"Bindings",source:"bindings",format:"string",width:30,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classCustomResourceDefinition",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});_.set("CustomResourceDefinition",{text:"Name",source:"name",width:40,leftItems:[{name:"instantiate",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Instantiate",permission:!0},{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"group",text:"Group",source:"group",format:"string",width:15,sortable:!0,visible:!0},{name:"version",text:"Version",source:"version",format:"string",width:15,sortable:!0,visible:!0},{name:"scope",text:"Scope",source:"scope",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("crdGroup",{text:"Name",source:"name",width:40,leftItems:[],properties:[]});_.set("crdInstance",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:15,sortable:!0,visible:!0},{name:"checksum",text:"Checksum",source:"checksum",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("crdNamespacedInstance",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:15,sortable:!0,visible:!0},{name:"checksum",text:"Checksum",source:"checksum",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});_.set("classOverview",{leftItems:[{name:"kubeworks",icon:(0,x.jsx)(Qm,{fontSize:"small"}),text:"Kube works",permission:!0}]});_.set("classmenu",{});_.set("classWorkload",{});_.set("classConfig",{});_.set("classNetwork",{});_.set("classStorage",{});_.set("classAccess",{});_.set("classCustom",{});_.set("classSettings",{});var Wn=new Map;Wn.set("classOverview",{default:(0,x.jsx)(ad,{size:"16"})});Wn.set("classCluster",{default:(0,x.jsx)(ud,{size:"16"})});Wn.set("classWorkload",{default:(0,x.jsx)(cd,{size:"16"})});Wn.set("classConfig",{default:(0,x.jsx)(id,{size:"16"})});Wn.set("classNetwork",{default:(0,x.jsx)(ld,{size:"16"})});Wn.set("classStorage",{default:(0,x.jsx)(od,{size:"16"})});Wn.set("classAccess",{default:(0,x.jsx)(sd,{size:"16"})});Wn.set("classCustom",{default:(0,x.jsx)(rd,{size:"16"})});Wn.set("classSettings",{default:(0,x.jsx)(md,{size:"16"})});var hd=new Map;u();var fe=new Map,Tt=[{name:"created",text:"Created",source:["metadata.creationTimestamp"],format:"string",style:["ifpresent"]},{name:"name",text:"Name",source:["metadata.name"],format:"string"},{name:"labels",text:"Labels",source:["metadata.labels"],format:"objectprops",style:["column","ifpresent","collapse"]},{name:"annotations",text:"Annotations",source:["metadata.annotations"],format:"objectprops",style:["column","ifpresent","char:50","collapse"]}],pt=[{name:"created",text:"Created",source:["metadata.creationTimestamp"],format:"string"},{name:"name",text:"Name",source:["metadata.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#metadata.namespace"],format:"string",style:["link:$Namespace:metadata.namespace:."]},{name:"labels",text:"Labels",source:["metadata.labels"],format:"objectprops",style:["column","ifpresent","collapse"]},{name:"annotations",text:"Annotations",source:["metadata.annotations"],format:"objectprops",style:["column","char:50","ifpresent","collapse"]}],ai={name:"conditions",text:"Conditions",source:["status.conditions"],format:"objectlist",style:["table","ifpresent"],items:[{name:"type",text:"Type",source:["type"],format:"string",style:["property:status:True:text.primary","property:status:False:text.disabled"]},{name:"reason",text:"Reason",source:["reason"],format:"string",style:["FailedCreate:red","Available:green","Progressing:green","NewReplicaSetAvailable:green","MinimumReplicasUnavailable:red","MinimumReplicasAvailable:green","InsufficientPods:red","PodCompleted:green","KubeletHasSufficientMemory:green","KubeletHasNoDiskPressure:green","KubeletHasSufficientPID:green","KubeletReady:green","CompletionsReached:green","KernelHasNoDeadlock:green","NoFrequentContainerdRestart:green","NoFrequentKubeletRestart:green","ContainerRuntimeIsUp:green","FilesystemIsOK:green","KubeletIsUp:green","NoFrequentDockerRestart:green","NoFrequentUnregisterNetDevice:green","SufficientPods:green","NoConflicts:green","InitialNamesAccepted:green","Unschedulable:red","BackoffLimitExceeded:red","ContainersNotReady:red","NoVMEventScheduled:green","FilesystemIsNotReadOnly:orange","ApprovedAnnotation:green"]},{name:"message",text:"Message",source:["message"],format:"string"},{name:"age",text:"Age",source:["lastUpdateTime||lastTransitionTime||$default"],format:"age"}]},Ie={name:"events",text:"Events",root:"events",items:[{name:"events",text:"",source:["list"],format:"objectlist",style:["table"],items:[{name:"message",text:"Message",source:["message"],format:"string"},{name:"count",text:"Count",source:["count"],format:"string"},{name:"age",text:"Age",source:["lastTimestamp"],format:"age"}]}]},Ia={name:"pods",text:"Pods",root:"origin",items:[{name:"pods",text:"",source:["@string[]"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["#metadata.name"],format:"string",style:["link:$Pod:metadata.name:metadata.namespace"]},{name:"node",text:"Node",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]}]}]};fe.set("PersistentVolumeClaim",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist"},{name:"accessModes",text:"Access Modes",source:["spec.accessModes"],format:"stringlist"},{name:"storageClassName",text:"Storage Class",source:["#spec.storageClassName"],format:"string",style:["link:$StorageClass:spec.storageClassName:."]},{name:"storage",text:"Storage",source:["spec.resources.requests.storage"],format:"string"},{name:"pods",text:"Pods",source:["#@string[]"],format:"stringlist",style:["column","link:$Pod:name:$$namespace"]},{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Bound:green","Pending:orange"]},{name:"pv",text:"PV",source:["#spec.volumeName"],format:"string",style:["link:$PersistentVolume:spec.volumeName:."]}]},Ie]);fe.set("PersistentVolume",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist"},{name:"capacity",text:"Capacity",source:["spec.capacity.storage"],format:"string"},{name:"accessModes",text:"Access Modes",source:["spec.accessModes"],format:"stringlist"},{name:"persistentVolumeReclaimPolicy",text:"Reclaim Policy",source:["spec.persistentVolumeReclaimPolicy"],format:"string"},{name:"storageClassName",text:"Storage Class",source:["#spec.storageClassName"],format:"string",style:["link:$StorageClass:spec.storageClassName:."]},{name:"status",text:"Status",source:["status.phase"],format:"string"},{name:"pvc",text:"PVC",source:["#spec.claimRef.name"],format:"string",style:["link:spec.claimRef.kind:spec.claimRef.name:spec.claimRef.namespace"]}]},Ie]);fe.set("StorageClass",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"provisioner",text:"Provisioner",source:["#provisioner"],format:"string",style:["link:$CSIDriver:provisioner:."]},{name:"volumeBindingMode",text:"Binding Mode",source:["volumeBindingMode"],format:"string"},{name:"reclaimPolicy",text:"Reclaim Policy",source:["reclaimPolicy"],format:"string"},{name:"pvs",text:"PV",source:["#@string[]"],format:"stringlist",style:["column","link:$PersistentVolume:.:.","ifpresent"]},{name:"pvcs",text:"PVC",source:["@object[]"],items:[{name:"pvc",text:"",source:["#name"],format:"string",style:["link:$PersistentVolumeClaim:name:namespace"]}],format:"objectlist",style:["column"]}]},Ie]);fe.set("VolumeAttachment",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"attacher",text:"Attacher",source:["#spec.attacher"],format:"string",style:["link:$CSIDriver:spec.attacher:."]},{name:"nodeName",text:"Node Name",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]},{name:"persistentVolumeName",text:"PV",source:["#spec.source.persistentVolumeName"],format:"string",style:["link:$PersistentVolume:spec.source.persistentVolumeName:."]},{name:"attached",text:"Attached",source:["status.attached"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"attachError",text:"Attach Error",source:["status.attachError.time","$\xA0\xA0-\xA0\xA0","status.attachError.message"],format:"string",style:["ifpresent","color:red"]},{name:"detachError",text:"Detach Error",source:["status.detachError.time","$\xA0\xA0-\xA0\xA0","status.detachError.message"],format:"string",style:["ifpresent","color:red"]}]},Ie]);fe.set("CSIDriver",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"attachRequired",text:"Attach Required",source:["spec.attachRequired"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"fsGroupPolicy",text:"Group Policy",source:["spec.fsGroupPolicy"],format:"string"},{name:"republish",text:"Requires republish",source:["spec.requiresRepublish"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"linuxMount",text:"LinuxMount",source:["spec.seLinuxMount"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"stgCap",text:"Stg Capacity",source:["spec.storageCapacity"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"volumeLifecycleModes",text:"Lifecycle modes",source:["spec.volumeLifecycleModes"],format:"stringlist"},{name:"storageClasses",text:"",source:["@jsx[]"],format:"string",style:["column"]}]},Ie]);fe.set("CSINode",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"drivers",text:"Drivers",source:["spec.drivers"],format:"objectlist",style:["column"],items:[{name:"name",text:"Name",source:["#name"],format:"string",style:["link:$CSIDriver:name:."]}]}]},Ie]);fe.set("CSIStorageCapacity",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},Ie]);fe.set("NetworkPolicy",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"podSelector",text:"Pod Selector",source:["spec.podSelector.matchLabels"],format:"objectprops"}]},Ie]);fe.set("Service",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector"],format:"objectprops",style:["column"]}]},{name:"connection",text:"Connection",root:"origin",items:[{name:"clusterIp",text:"Cluster IP",source:["spec.clusterIP"],format:"string"},{name:"clusterIps",text:"Cluster IPs",source:["spec.clusterIPs"],format:"stringlist"},{name:"ipFamilies",text:"IP families",source:["spec.ipFamilies"],format:"stringlist"},{name:"ipFamilyPolicy",text:"IP family policy",source:["spec.ipFamilyPolicy"],format:"string"},{name:"ports",text:"Ports",source:["spec.ports"],format:"objectlist",style:["column"],items:[{name:"forward",text:"Forward",source:["@jsx"],format:"string"}]}]},Ie]);fe.set("Endpoints",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"subsets",text:"Subsets",root:"origin",items:[{name:"subsetlist",text:"",source:["subsets"],format:"objectlist",items:[{name:"address",text:"Address",source:["addresses"],format:"objectlist",style:["table"],items:[{name:"ip",text:"IP",source:["ip"],format:"string"},{name:"target",text:"Target",source:["targetRef.kind","$\xA0","#targetRef.name","$\xA0(namespace:\xA0","targetRef.namespace","$)"],format:"string",style:["link:targetRef.kind:targetRef.name:targetRef.namespace","ifpresent"]}]}]}]},Ie]);fe.set("Ingress",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"ingressClass",text:"Ingress class",source:["#spec.ingressClassName"],format:"string",style:["bold","link:$IngressClass:spec.ingressClassName:."]}]},{name:"rules",text:"Rules",root:"origin",items:[{name:"host",text:"Host",source:["spec.rules"],format:"objectlist",style:["table"],items:[{name:"host",text:"Host",source:["host"],format:"string",style:["bold"]},{name:"paths",text:"Paths",source:["http.paths"],format:"objectlist",style:["column"],items:[{name:"path",text:"Path",source:["path","$\xA0(","#backend.service.name","$:","backend.service.port.number","$)"],format:"string",style:["link:$Service:backend.service.name:$$namespace"]}]}]}]},Ie]);fe.set("IngressClass",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"controller",text:"Controller",source:["spec.controller"],format:"string"},{name:"default",text:"Default",source:['metadata.annotations["ingressclass.kubernetes.io/is-default-class"]'],format:"boolean",style:["true:Yes:green","false:No:red","undefined:No:red",":No:red"]},{name:"ingresses",text:"Ingress",source:["@object[]"],items:[{name:"ingress",text:"",source:["#name"],format:"string",style:["link:$Ingress:name:namespace"]}],format:"objectlist",style:["column"]}]},Ie]);fe.set("Namespace",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Active:green"]}]},{name:"content",text:"Content",root:"origin",items:[{name:"content",text:"Content",source:["@jsx[]"],format:"string",style:["column"]}]},Ie]);fe.set("Node",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist",style:["column"]},{name:"os",text:"OS",source:["status.nodeInfo.operatingSystem","$(","status.nodeInfo.architecture","$)"],format:"string"},{name:"osImage",text:"OS Image",source:["status.nodeInfo.osImage"],format:"string"},{name:"kernelVersion",text:"Kernel version",source:["status.nodeInfo.kernelVersion"],format:"string"},{name:"containerRuntime",text:"CRI",source:["status.nodeInfo.containerRuntimeVersion"],format:"string"},{name:"kubeletVersion",text:"Kubelet",source:["status.nodeInfo.kubeletVersion"],format:"string"},ai]},{name:"workload",text:"Workload",root:"origin",items:[{name:"taints",text:"Taints",source:["spec.taints"],format:"objectlist",style:["table"],items:[{name:"taint",text:"Taint",source:["key"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"},{name:"age",text:"Age",source:["timeAdded"],format:"age"}]}]},{name:"compute",text:"Compute",root:"origin",items:[{name:"capacity",text:"Capacity",source:["status.capacity"],format:"objectprops",style:["table"],items:[{name:"cpu",text:"CPU",source:["status.capacity.cpu"],format:"string"},{name:"storage",text:"Storage",source:["status.capacity.ephemeral-storage"],format:"string",style:["mb"]},{name:"hp1gi",text:"Hugepages-1Gi",source:["status.capacity.hugepages-2Mi"],format:"string"},{name:"hp2m",text:"Hugepages-2Mi",source:["status.capacity.hugepages-1Gi"],format:"string"},{name:"memory",text:"Memory",source:["status.capacity.memory"],format:"string",style:["mb"]},{name:"pods",text:"Pods",source:["status.capacity.pods"],format:"string"}]},{name:"allocatable",text:"Allocatable",source:["status.allocatable"],format:"objectprops",style:["table"],items:[{name:"cpu",text:"CPU",source:["status.allocatable.cpu"],format:"string"},{name:"storage",text:"Storage",source:["status.allocatable.ephemeral-storage"],format:"string",style:["mb"]},{name:"hp1gi",text:"Hugepages-1Gi",source:["status.allocatable.hugepages-2Mi"],format:"string"},{name:"hp2m",text:"Hugepages-2Mi",source:["status.allocatable.hugepages-1Gi"],format:"string"},{name:"memory",text:"Memory",source:["status.allocatable.memory"],format:"string",style:["mb"]},{name:"pods",text:"Pods",source:["status.allocatable.pods"],format:"string"}]}]},{name:"storage",text:"Storage",root:"origin",items:[{name:"inuse",text:"In Use",source:["#status.volumesInUse"],format:"stringlist",style:["column","link:$PersistentVolume:.:."],processValue:e=>e.split("/")[e.split("/").length-1]},{name:"attached",text:"Attached",source:["status.volumesAttached"],format:"objectlist",style:["column"],items:[{name:"name",text:"",source:["#name"],format:"string",style:["column","link:$PersistentVolume:name:."],processValue:e=>e.split("/")[e.split("/").length-1]}]}]},{name:"network",text:"Network",root:"origin",items:[{name:"addresses",text:"Addresses",source:["status.addresses"],format:"objectlist",style:["table"],items:[{name:"type",text:"Type",source:["type"],format:"string"},{name:"value",text:"Value",source:["address"],format:"string"}]}]},Ie]);fe.set("V1APIResource",[{name:"properties",text:"Properties",root:"origin",items:[{name:"kind",text:"Kind",format:"string",source:["kindName"]},{name:"namespaced",text:"Namespaced",format:"boolean",source:["namespaced"],style:["ifpresent","true:Yes:green","false:No:red",":No:red"]},{name:"shortNames",text:"Short names",format:"string",source:["shortNames"],style:["ifpresent"]},{name:"singularName",text:"Singular",format:"string",source:["singularName"],style:["ifpresent"]},{name:"categories",text:"Categories",format:"stringlist",source:["categories"],style:["ifpresent"]},{name:"verbs",text:"Verbs",format:"stringlist",source:["verbs"],style:["ifpresent"]}]}]);fe.set("Image",[{name:"properties",text:"Properties",root:"origin",items:[{name:"name",text:"Name",source:["displayName"],format:"string"},{name:"registry",text:"Registry",source:["registry"],format:"string"},{name:"tag",text:"Tag",source:["tag"],format:"string"},{name:"sha",text:"SHA",source:["sha"],format:"string"},{name:"names",text:"Names",source:["names"],format:"stringlist",style:["column"]},{name:"nodes",text:"Nodes",source:["#nodes"],format:"stringlist",style:["column","link:$Node:.:."]}]}]);fe.set("ComponentStatus",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},{name:"conditions",text:"Conditions",root:"origin",items:[{name:"conditions",text:"",source:["conditions"],format:"objectlist",style:["table"],items:[{name:"status",text:"Status",source:["status"],format:"string"},{name:"type",text:"Type",source:["type"],format:"string"},{name:"message",text:"Message",source:["message"],format:"string"}]}]},Ie]);fe.set("ConfigMap",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"data",text:"Data",root:"origin",items:[{name:"item",text:"",source:["data"],format:"objectprops",style:["column","edit","keybold","multiline"]}]},Ie]);fe.set("Secret",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"type",text:"Type",source:["type"],format:"string"}]},{name:"data",text:"Data",root:"origin",items:[{name:"item",text:"",source:["data"],format:"objectprops",style:["column","edit","keybold","multiline","lockicon","base64"]}]},Ie]);fe.set("LimitRange",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"limits",text:"Limits",root:"origin",items:[{name:"limits",text:"",source:["spec.limits"],format:"objectlist",style:["table"],items:[{name:"type",text:"Type",source:["type"],format:"string"},{name:"maxcpu",text:"MaxCPU",source:["max.cpu"],format:"string"},{name:"maxmem",text:"MaxMem",source:["max.memory"],format:"string"},{name:"mincpu",text:"MinCPU",source:["min.cpu"],format:"string"},{name:"minmem",text:"MinMem",source:["min.memory"],format:"string"},{name:"defcpu",text:"DefaultCPU",source:["default.cpu"],format:"string"},{name:"defmem",text:"DefaultMem",source:["default.memory"],format:"string"},{name:"defreqcpu",text:"DefReqCPU",source:["defaultRequest.cpu"],format:"string"},{name:"defreqmem",text:"DefReqMem",source:["defaultRequest.memory"],format:"string"}]}]},Ie]);fe.set("HorizontalPodAutoscaler",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"reference",text:"Reference",source:["spec.scaleTargetRef.kind","$\xA0/\xA0","spec.scaleTargetRef.name"],format:"string"},{name:"minPods",text:"Min Pods",source:["spec.minReplicas"],format:"string"},{name:"maxPods",text:"Max Pods",source:["spec.maxReplicas"],format:"string"},{name:"replicas",text:"Replicas",source:["status.desiredReplicas"],format:"string"}]},Ie]);fe.set("PodDisruptionBudget",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"minAvailable",text:"Min Available",source:["spec.minAvailable"],format:"string",style:["ifpresent"]},{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},ai]},Ie]);fe.set("PriorityClass",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"preemptionPolicy",text:"Policy",source:["preemptionPolicy"],format:"string"}]},Ie]);fe.set("RuntimeClass",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"handler",text:"Handler",source:["handler"],format:"string"}]},Ie]);fe.set("Lease",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"holderIdentity",text:"Holder",source:["spec.holderIdentity"],format:"string"},{name:"leaseDurationSeconds",text:"Duration",source:["spec.leaseDurationSeconds"],format:"string"},{name:"acquireTime",text:"Acquire",source:["spec.acquireTime"],format:"string",style:["ifpresent"]},{name:"renewTime",text:"Renew",source:["spec.renewTime"],format:"string"},{name:"leaseTransitions",text:"Transitions",source:["spec.leaseTransitions"],format:"string",style:["ifpresent"]}]},Ie]);fe.set("ValidatingWebhookConfiguration",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},{name:"webhooks",text:"Webhooks",root:"origin",items:[{name:"webhooks",text:"",format:"objectlist",source:["webhooks"],style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"clientConfig",text:"Client Config",source:["clientConfig.service"],format:"objectprops",style:["column"],items:[{name:"clientconfig",text:"CCName",source:["name"],format:"string"},{name:"name",text:"Name",source:["clientConfig.service.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#clientConfig.service.namespace"],format:"string",style:["link:$Namespace:clientConfig.service.namespace:."]},{name:"route",text:"Route",source:["clientConfig.service.path","$:","clientConfig.service.port"],format:"string"}]},{name:"rules",text:"Rules",source:["rules"],format:"objectlist",style:["column"],items:[{name:"scope",text:"Scope",source:["scope"],format:"string",style:["header"]},{name:"operations",text:"operations",source:["operations"],format:"stringlist",style:["header"]},{name:"apiGroups",text:"Groups",source:["apiGroups"],format:"stringlist",style:["header"]},{name:"apiVersions",text:"API Versions",source:["apiVersions"],format:"stringlist",style:["header"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["header"]}]}]}]},Ie]);fe.set("MutatingWebhookConfiguration",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},{name:"webhooks",text:"Webhooks",root:"origin",items:[{name:"webhooks",text:"",format:"objectlist",source:["webhooks"],style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"clientConfig",text:"Client Config",source:["clientConfig.service"],format:"objectprops",style:["column"],items:[{name:"clientconfig",text:"CCName",source:["name"],format:"string"},{name:"name",text:"Name",source:["clientConfig.service.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#clientConfig.service.namespace"],format:"string",style:["link:$Namespace:clientConfig.service.namespace:."]},{name:"port",text:"Port",source:["clientConfig.service.port"],format:"string"}]},{name:"rules",text:"Rules",source:["rules"],format:"objectlist",style:["column"],items:[{name:"scope",text:"Scope",source:["scope"],format:"string",style:["header"]},{name:"operations",text:"operations",source:["operations"],format:"stringlist",style:["header"]},{name:"apiGroups",text:"Groups",source:["apiGroups"],format:"stringlist",style:["header"]},{name:"apiVersions",text:"API Versions",source:["apiVersions"],format:"stringlist",style:["header"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["header"]}]}]}]},Ie]);fe.set("Pod",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"controlledby",text:"Controlled By",source:["metadata.ownerReferences.0.kind","$\xA0","#metadata.ownerReferences.0.name"],format:"string",style:["link:metadata.ownerReferences.0.kind:metadata.ownerReferences.0.name:$$namespace"]},{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Running:green","Pending:orange"]},{name:"node",text:"Node",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]},{name:"podip",text:"Pod IP",source:["status.podIP"],format:"string"},{name:"podips",text:"Pod IPs",source:["status.podIPs"],format:"objectlist",items:[{name:"ip",text:"IP",source:["ip"],format:"string"}]},{name:"sa",text:"Service Account",source:["#spec.serviceAccount"],format:"string",style:["link:$ServiceAccount:spec.serviceAccount:$$namespace"]},{name:"qosclass",text:"QoS Class",source:["status.qosClass"],format:"string"},ai,{name:"tolerations",text:"Tolerations",source:["spec.tolerations"],format:"table",items:[{name:"key",text:"Key",source:["key"],format:"string"},{name:"operator",text:"Operator",source:["operator"],format:"string"},{name:"value",text:"Value",source:["value"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"},{name:"seconds",text:"Seconds",source:["tolerationSeconds"],format:"string"}]}]},{name:"containers",text:"Containers",root:"origin",items:[{name:"container",text:"",source:["status.containerStatuses|spec.containers:name"],format:"objectobject",style:["column"],items:[{name:"name",text:"",source:["name"],format:"string",style:["bold"]},{name:"id",text:"Id",source:["containerID"],format:"string",style:[""]},{name:"state",text:"State",source:["state"],format:"keylist",style:["running:green","waiting:orange"]},{name:"image",text:"Image",source:["#image"],format:"string",style:["link:$Image:image:."]},{name:"ports",text:"Ports",source:["ports"],format:"objectlist",style:["fullwidth","ifpresent"],items:[{name:"forward",text:"Forward",source:["@jsx"],format:"string"}]},{name:"envs",text:"Environment",source:["env"],format:"objectlist",style:["table"],items:[{name:"env",text:"Variable",source:["name"],format:"string"},{name:"val",text:"Value",source:["value","valueFrom.fieldRef.fieldPath"],format:"string"},{name:"valSecret",text:"From Secret",source:["#valueFrom.secretKeyRef.name","$/","valueFrom.secretKeyRef.key"],format:"string",style:["ifpresent","link:$Secret:valueFrom.secretKeyRef.name:$$namespace"]},{name:"valCm",text:"From CM",source:["#valueFrom.configMapKeyRef.name","$/","valueFrom.configMapKeyRef.key"],format:"string",style:["ifpresent","link:$ConfigMap:valueFrom.configMapKeyRef.name:$$namespace"]}]},{name:"mounts",text:"Mounts",source:["volumeMounts"],format:"table",items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"path",text:"Path",source:["mountPath"],format:"string"}]},{name:"requests",text:"Requests",source:["resources.requests"],format:"objectprops",style:["table","ifpresent"]},{name:"limits",text:"Limits",source:["resources.limits"],format:"objectprops",style:["table","ifpresent"]}]}]},{name:"volumes",text:"Volumes",root:"origin",items:[{name:"volume",text:"",source:["spec.volumes"],format:"table",items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"mode",text:"Mount Mode",source:["projected.defaultMode","configMap.defaultMode","secret.defaultMode"],format:"string"},{name:"pvc",text:"PVC",source:["#persistentVolumeClaim.claimName"],format:"string",style:["link:$PersistentVolumeClaim:persistentVolumeClaim.claimName:$$namespace"]},{name:"configmap",text:"ConfigMap",source:["#configMap.name"],format:"string",style:["link:$ConfigMap:configMap.name:$$namespace"]},{name:"secret",text:"Secret",source:["#secret.secretName"],format:"string",style:["link:$Secret:secret.secretName:$$namespace"]},{name:"projected",text:"Projected",source:["projected.sources"],format:"boolean",style:["true:\u2714\uFE0F:green","false::"]}]}]},Ie]);fe.set("Deployment",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"strategyType",text:"Strategy Type",source:["spec.strategy.type"],format:"string"},{name:"status",text:"Status",source:["@string[]"],format:"string",style:["running:green"]},ai]},Ia,Ie]);fe.set("DaemonSet",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["#image"],format:"string",style:["link:$Image:image:."]}],style:["column"]},{name:"strategy",text:"Strategy",source:["spec.updateStrategy.type"],format:"string"},{name:"tolerations",text:"Tolerations",source:["spec.template.spec.tolerations"],format:"objectlist",items:[{name:"key",text:"Key",source:["key"],format:"string"},{name:"operator",text:"Operator",source:["operator"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"}],style:["table"]}]},Ia,Ie]);fe.set("ReplicaSet",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"controlledby",text:"Controlled By",source:["metadata.ownerReferences.0.kind","$\xA0","#metadata.ownerReferences.0.name"],format:"string",style:["link:metadata.ownerReferences.0.kind:metadata.ownerReferences.0.name:$$namespace"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]},{name:"replicas",text:"Replicas",source:["status.readyReplicas||0","$/","spec.replicas"],format:"string"}]},Ia,Ie]);fe.set("ReplicationController",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"spec",text:"Spec",root:"origin",items:[{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"selector",text:"Selector",source:["spec.selector"],format:"objectprops"}]},{name:"status",text:"Status",root:"origin",items:[{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"availableReplicas",text:"Available",source:["status.availableReplicas"],format:"string"},{name:"labelled",text:"Labelled",source:["status.fullyLabeledReplicas"],format:"string"},{name:"generation",text:"Generation",source:["status.observedGeneration"],format:"string"}]},Ia,Ie]);fe.set("StatefulSet",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]}]},Ia,Ie]);fe.set("Job",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops"},{name:"nodeSelector",text:"Node Selector",source:["spec.template.spec.nodeSelector"],format:"objectprops",style:["ifpresent"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]},ai,{name:"completions",text:"Completions",source:["spec.completions"],format:"string"},{name:"parallelism",text:"Parallelism",source:["spec.parallelism"],format:"string"}]},Ia,Ie]);fe.set("CronJob",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"schedule",text:"Schedule",source:["spec.schedule"],format:"string"},{name:"suspended",text:"Suspended",source:["spec.suspend"],format:"boolean",style:["true:Yes:red","false:No:green"]},{name:"lastSchedule",text:"Last Schedule",source:["status.lastScheduleTime"],format:"string",style:["ifpresent"]},{name:"lastSuccessful",text:"Last Success",source:["status.lastSuccessfulTime"],format:"string",style:["ifpresent"]},{name:"nextExecution",text:"Next Execution",source:["@string[]"],format:"string"},{name:"timeLeft",text:"Time Left",source:["@string[]"],format:"string"}]},{name:"history",text:"History",root:"origin",items:[{name:"jobs",text:"",source:["@string[]"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["#metadata.name"],format:"string",style:["link:$Job:metadata.name:$$namespace"]},{name:"age",text:"Age",source:["status.startTime"],format:"age"}]}]},Ie]);fe.set("ServiceAccount",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"tokens",text:"Tokens",source:["@object[]"],format:"objectlist",style:["column"],items:[{name:"tokens",text:"",source:["#name"],format:"string",style:["column","char:30","ifpresent","link:$Secret:name:namespace"]}]}]},Ie]);fe.set("ClusterRole",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},{name:"rules",text:"Rules",root:"origin",items:[{name:"rules",text:"",source:["rules"],format:"objectlist",items:[{name:"verbs",text:"Verbs",source:["verbs"],format:"stringlist",style:["column"]},{name:"apiGroups",text:"API Groups",source:["apiGroups"],format:"stringlist",style:["column"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["column"]},{name:"nonResourceURLs",text:"Non Resource URLs",source:["nonResourceURLs"],format:"stringlist",style:["column"]}],style:["table"]}]},Ie]);fe.set("Role",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"rules",text:"Rules",root:"origin",items:[{name:"rules",text:"",source:["rules"],format:"objectlist",items:[{name:"verbs",text:"Verbs",source:["verbs"],format:"stringlist",style:["column"]},{name:"apiGroups",text:"API Groups",source:["apiGroups"],format:"stringlist",style:["column"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["column"]}],style:["table"]}]}]);fe.set("ClusterRoleBinding",[{name:"properties",text:"Properties",root:"origin",items:[...Tt]},{name:"reference",text:"Reference",root:"origin",items:[{name:"kind",text:"Kind",source:["roleRef.kind"],format:"string"},{name:"name",text:"Name",source:["#roleRef.name"],format:"string",style:["link:$ClusterRole:roleRef.name:."]},{name:"apiGroup",text:"API Group",source:["roleRef.apiGroup"],format:"string"}]},{name:"subjects",text:"Subjects",root:"origin",items:[{name:"bindings",text:"",source:["subjects"],format:"objectlist",items:[{name:"kind",text:"Kind",source:["kind"],format:"string"},{name:"name",text:"Name",source:["name"],format:"string",style:["link:$ServiceAccount:name:."]},{name:"namespace",text:"Namespace",source:["#namespace"],format:"string",style:["link:$Namespace:namespace:."]}],style:["table"]}]},Ie]);fe.set("RoleBinding",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"reference",text:"Reference",root:"origin",items:[{name:"kind",text:"Kind",source:["roleRef.kind"],format:"string"},{name:"name",text:"Name",source:["#roleRef.name"],format:"string",style:["link:$Role:roleRef.name:."]},{name:"apiGroup",text:"API Group",source:["roleRef.apiGroup"],format:"string"}]},{name:"subjects",text:"Subjects",root:"origin",items:[{name:"bindings",text:"",source:["subjects"],format:"objectlist",items:[{name:"kind",text:"Kind",source:["kind"],format:"string"},{name:"name",text:"Name",source:["#name"],format:"string",style:["link:$ServiceAccount:name:."]},{name:"namespace",text:"Namespace",source:["#namespace"],format:"string",style:["link:$Namespace:namespace:."]}],style:["table"]}]},Ie]);fe.set("ResourceQuota",[{name:"properties",text:"Properties",root:"origin",items:[...pt]},{name:"quotas",text:"Quotas",root:"origin",items:[{name:"limitcpu",text:"Limit CPU",source:["status.used['limits.cpu']","status.hard['limits.cpu']"],format:"bar",style:["ifpresent"]},{name:"limitmemory",text:"Limit Memory",source:["status.used['limits.memory']","status.hard['limits.memory']"],format:"bar",style:["ifpresent"]},{name:"requestcpu",text:"Request CPU",source:["status.used['requests.cpu']","status.hard['requests.cpu']"],format:"bar",style:["ifpresent"]},{name:"requestmemory",text:"Request Memory",source:["status.used['requests.memory']","status.hard['requests.memory']"],format:"bar",style:["ifpresent"]},{name:"pods",text:"Pods",source:["status.used['count/pods']","status.hard['count/pods']"],format:"bar",style:["ifpresent"]},{name:"persistentvolumeclaims",text:"PVCs",source:["status.used['count/persistentvolumeclaims']","status.hard['count/persistentvolumeclaims']"],format:"bar",style:["ifpresent"]},{name:"services",text:"Services",source:["status.used['count/services']","status.hard['count/services']"],format:"bar",style:["ifpresent"]},{name:"configmaps",text:"ConfigMaps",source:["status.used['count/configmaps']","status.hard['count/configmaps']"],format:"bar",style:["ifpresent"]},{name:"secrets",text:"Secrets",source:["status.used['count/secrets']","status.hard['count/secrets']"],format:"bar",style:["ifpresent"]}]},Ie]);fe.set("CustomResourceDefinition",[{name:"properties",text:"Properties",root:"origin",items:[...Tt,{name:"group",text:"Group",source:["spec.group"],format:"string"},{name:"versions",text:"Versions",source:["spec.versions"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"served",text:"Served",source:["served"],format:"boolean",style:["true:Yes:green","false:No:red"]},{name:"storage",text:"Storage",source:["storage"],format:"boolean",style:["true:Yes:green","false:No:red"]}]},ai]},{name:"names",text:"Names",root:"origin",items:[{name:"singular",text:"Singular",source:["spec.names.singular"],format:"string"},{name:"plural",text:"Plural",source:["spec.names.plural"],format:"string"},{name:"kind",text:"Kind",source:["spec.names.kind"],format:"string"},{name:"listKind",text:"List Kind",source:["spec.names.listKind"],format:"string"}]},Ie]);fe.set("#crdInstance#",[{name:"properties",text:"Properties",root:"origin",items:[...pt,{name:"source",text:"Source",source:["spec.source"],format:"string"},{name:"checksum",text:"checksum",source:["spec.checksum"],format:"string",style:["char:80"]}]},Ie]);var yn=k(Kt(),1);var vt=k(Ot(),1);u();var Dn=k(je(),1);u();var gd=k(je());u();u();var fs=function(){return fs=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},fs.apply(this,arguments)};var ii=k(je());u();var ri=k(je());function ic(){var e=(0,ri.useRef)(!1),t=(0,ri.useCallback)(function(){return e.current},[]);return(0,ri.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t}function sc(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var a=(0,ii.useRef)(0),r=ic(),i=(0,ii.useState)(n),s=i[0],o=i[1],l=(0,ii.useCallback)(function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var m=++a.current;return s.loading||o(function(f){return fs(fs({},f),{loading:!0})}),e.apply(void 0,c).then(function(f){return r()&&m===a.current&&o({value:f,loading:!1}),f},function(f){return r()&&m===a.current&&o({error:f,loading:!1}),f})},t);return[s,l]}function oc(e,t){t===void 0&&(t=[]);var n=sc(e,t,{loading:!0}),a=n[0],r=n[1];return(0,gd.useEffect)(function(){r()},[r]),a}var ye=k(ft(),1),ma=k(Kt(),1),Me=k(va(),1),xm=k(Ot(),1),wl=k(Ot(),1),Gg=k(Ot(),1);u();var _t=k(je(),1),wn=k(ft(),1);u();u();var Ta=k(je(),1),Qe=k(tr(),1),Ed=k(ps(),1);u();function kd(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=kd(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Td(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=kd(e))&&(a&&(a+=" "),a+=t);return a}var li=k(je(),1),Ft=k(tr(),1),Fd=k(ps(),1);function pc(e,t){for(let n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function Md(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function hs(e){return typeof e=="number"&&!isNaN(e)}function Vt(e){return parseInt(e,10)}function oi(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var lc=["Moz","Webkit","O","ms"];function X1(e="transform"){var t,n;if(typeof window>"u")return"";let a=(n=(t=window.document)==null?void 0:t.documentElement)==null?void 0:n.style;if(!a||e in a)return"";for(let r=0;r<lc.length;r++)if(Ad(e,lc[r])in a)return lc[r];return""}function Ad(e,t){return t?`${t}${Q1(e)}`:e}function Q1(e){let t="",n=!0;for(let a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):e[a]==="-"?n=!0:t+=e[a];return t}var eb=X1(),cc="";function tb(e,t){var n;cc||(cc=(n=pc(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(r){return Md(e[r])}))!=null?n:"");let a=e[cc];return Md(a)?!!a.call(e,t):!1}function Dd(e,t,n){let a=e;do{if(tb(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1}function uc(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}function ar(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null}function nb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Vt(n.borderTopWidth),t+=Vt(n.borderBottomWidth),t}function ab(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Vt(n.borderLeftWidth),t+=Vt(n.borderRightWidth),t}function rb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Vt(n.paddingTop),t-=Vt(n.paddingBottom),t}function ib(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Vt(n.paddingLeft),t-=Vt(n.paddingRight),t}function sb(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}}function ob(e,t){let n=Pd(e,t,"px");return{[Ad("transform",eb)]:n}}function lb(e,t){return Pd(e,t,"")}function Pd({x:e,y:t},n,a){let r=`translate(${e}${a},${t}${a})`;if(n){let i=`${typeof n.x=="string"?n.x:n.x+a}`,s=`${typeof n.y=="string"?n.y:n.y+a}`;r=`translate(${i}, ${s})`+r}return r}function cb(e,t){return e.targetTouches&&pc(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&pc(e.changedTouches,n=>t===n.identifier)}function ub(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function mb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function db(e,t){if(!e)return;let n=e.getElementById("react-draggable-style-el");if(!n){n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el";let a=t??mb();a&&n.setAttribute("nonce",a),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
246
246
  `,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
247
- `,e.getElementsByTagName("head")[0].appendChild(n)}e.body&&sb(e.body,"react-draggable-transparent-selection")}function Td(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Md(e)}):Md(e)}function Md(e){if(e)try{e.body&&ob(e.body,"react-draggable-transparent-selection");let t=e.selection;if(t)t.empty();else{let n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function sb(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function ob(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}function lb(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a=typeof a=="string"?a:mb(a);let r=pc(e);if(typeof a=="string"){let{ownerDocument:i}=r,s=i.defaultView;if(!s)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(a==="parent"?o=r.parentNode:o=r.getRootNode().querySelector(a),!(o instanceof s.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');let l=o,c=s.getComputedStyle(r),d=s.getComputedStyle(l);a={left:-r.offsetLeft+Wt(d.paddingLeft)+Wt(c.marginLeft),top:-r.offsetTop+Wt(d.paddingTop)+Wt(c.marginTop),right:X1(l)-j1(r)-r.offsetLeft+Wt(d.paddingRight)-Wt(c.marginRight),bottom:Z1(l)-J1(r)-r.offsetTop+Wt(d.paddingBottom)-Wt(c.marginBottom)}}return ps(a.right)&&(t=Math.min(t,a.right)),ps(a.bottom)&&(n=Math.min(n,a.bottom)),ps(a.left)&&(t=Math.max(t,a.left)),ps(a.top)&&(n=Math.max(n,a.top)),[t,n]}function Dd(e,t,n){let a=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[a,r]}function cb(e){return e.props.axis==="both"||e.props.axis==="x"}function ub(e){return e.props.axis==="both"||e.props.axis==="y"}function uc(e,t,n){let a=typeof t=="number"?nb(e,t):null;if(typeof t=="number"&&!a)return null;let r=pc(n),i=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return Q1(a||e,i,n.props.scale)}function mc(e,t,n){let a=!ps(e.lastX),r=pc(e);return a?{node:r,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:r,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function dc(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function mb(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function pc(e){let t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var db=typeof process<"u"&&process.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},Qn=db,Hn={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Ia=Hn.mouse,ir=class extends li.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Id(e.target,this.props.handle,t)||this.props.cancel&&Id(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();let a=ab(e);this.touchIdentifier=a;let r=uc(e,a,this);if(r==null)return;let{x:i,y:s}=r,o=mc(this,i,s);Qn("DraggableCore: handleDragStart: %j",o),Qn("calling",this.props.onStart),!(this.props.onStart(e,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&ib(n,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=s,cc(n,Ia.move,this.handleDrag),cc(n,Ia.stop,this.handleDragStop))},this.handleDrag=e=>{let t=uc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let s=n-this.lastX,o=a-this.lastY;if([s,o]=Dd(this.props.grid,s,o),!s&&!o)return;n=this.lastX+s,a=this.lastY+o}let r=mc(this,n,a);if(Qn("DraggableCore: handleDrag: %j",r),this.props.onDrag(e,r)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let s=document.createEvent("MouseEvents");s.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(s)}return}this.lastX=n,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=uc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=a-this.lastY||0;[o,l]=Dd(this.props.grid,o,l),n=this.lastX+o,a=this.lastY+l}let r=mc(this,n,a);if(this.props.onStop(e,r)===!1||this.mounted===!1)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&Td(s.ownerDocument),Qn("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(Qn("DraggableCore: Removing handlers"),rr(s.ownerDocument,Ia.move,this.handleDrag),rr(s.ownerDocument,Ia.stop,this.handleDragStop))},this.onMouseDown=e=>(Ia=Hn.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(Ia=Hn.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(Ia=Hn.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(Ia=Hn.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&cc(e,Hn.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;rr(t,Hn.mouse.move,this.handleDrag),rr(t,Hn.touch.move,this.handleDrag),rr(t,Hn.mouse.stop,this.handleDragStop),rr(t,Hn.touch.stop,this.handleDragStop),rr(e,Hn.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&Td(t)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Ed.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):(Qn("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return li.cloneElement(li.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};ir.displayName="DraggableCore";ir.propTypes={allowAnyClick:_t.default.bool,allowMobileScroll:_t.default.bool,children:_t.default.node.isRequired,disabled:_t.default.bool,enableUserSelectHack:_t.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_t.default.arrayOf(_t.default.number),handle:_t.default.string,cancel:_t.default.string,nodeRef:_t.default.object,nonce:_t.default.string,onStart:_t.default.func,onDrag:_t.default.func,onStop:_t.default.func,onMouseDown:_t.default.func,scale:_t.default.number,className:oi,style:oi,transform:oi};ir.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var hs=class extends Ta.Component{constructor(e){super(e),this.onDragStart=(t,n)=>{if(Qn("Draggable: onDragStart: %j",n),this.props.onStart(t,dc(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,n)=>{if(!this.state.dragging)return!1;Qn("Draggable: onDrag: %j",n);let a=dc(this,n),r={x:a.x,y:a.y,slackX:0,slackY:0};if(this.props.bounds){let{x:s,y:o}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[l,c]=lb(this,r.x,r.y);r.x=l,r.y=c,r.slackX=this.state.slackX+(s-r.x),r.slackY=this.state.slackY+(o-r.y),a.x=r.x,a.y=r.y,a.deltaX=r.x-this.state.x,a.deltaY=r.y-this.state.y}if(this.props.onDrag(t,a)===!1)return!1;this.setState(r)},this.onDragStop=(t,n)=>{if(!this.state.dragging||this.props.onStop(t,dc(this,n))===!1)return!1;Qn("Draggable: onDragStop: %j",n);let r={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){let{x:s,y:o}=this.props.position;r.x=s,r.y=o}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(Qn("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Od.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:r,defaultClassNameDragging:i,defaultClassNameDragged:s,position:o,positionOffset:l,scale:c,...d}=this.props,m={},f=null,k=!!!o||this.state.dragging,v=o||a,A={x:cb(this)&&k?this.state.x:v.x,y:ub(this)&&k?this.state.y:v.y};this.state.isElementSVG?f=tb(A,l):m=eb(A,l);let q=Ta.Children.only(n),de=Sd(q.props.className||"",r,{[i]:this.state.dragging,[s]:this.state.dragged});return Ta.createElement(ir,{...d,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},Ta.cloneElement(q,{className:de,style:{...q.props.style,...m},transform:f}))}};hs.displayName="Draggable";hs.propTypes={...ir.propTypes,axis:et.default.oneOf(["both","x","y","none"]),bounds:et.default.oneOfType([et.default.shape({left:et.default.number,right:et.default.number,top:et.default.number,bottom:et.default.number}),et.default.string,et.default.oneOf([!1])]),defaultClassName:et.default.string,defaultClassNameDragging:et.default.string,defaultClassNameDragged:et.default.string,defaultPosition:et.default.shape({x:et.default.number,y:et.default.number}),positionOffset:et.default.shape({x:et.default.oneOfType([et.default.number,et.default.string]),y:et.default.oneOfType([et.default.number,et.default.string])}),position:et.default.shape({x:et.default.number,y:et.default.number}),className:oi,style:oi,transform:oi};hs.defaultProps={...ir.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1};var Ad=hs;var sf=I(rf(),1),cn=I(fe(),1),hw=zt.default.forwardRef((e,t)=>{let{handleAxis:n,...a}=e,r=n==="ne"||n==="nw",i=n==="se"||n==="ne",s={se:"nwse-resize",sw:"nesw-resize",ne:"nesw-resize",nw:"nwse-resize"},o={position:"absolute",[r?"top":"bottom"]:3,[i?"right":"left"]:3,width:"12px",height:"12px",zIndex:20,cursor:s[n]??"pointer",borderRight:i?"3px solid #bdbdbd":"none",borderLeft:i?"none":"3px solid #bdbdbd",borderTop:r?"3px solid #bdbdbd":"none",borderBottom:r?"none":"3px solid #bdbdbd",borderRadius:n==="se"?"0 0 4px 0":n==="sw"?"0 0 0 4px":n==="ne"?"0 4px 0 0":"4px 0 0 0"};return(0,cn.jsx)("div",{ref:t,style:o,...a})}),gw=zt.default.forwardRef((e,t)=>{let{nodeRef:n,position:a,onDrag:r,onStart:i,onStop:s,disabled:o,...l}=e;return(0,cn.jsx)(Ad,{nodeRef:n,handle:"#draggable-dialog-title",cancel:'[class*="MuiIconButton-root"], [class*="MuiButton-root"], .no-drag',position:o?{x:0,y:0}:a,onStart:i,onDrag:r,onStop:s,disabled:o,children:(0,cn.jsx)(vn.Paper,{...l,ref:n,style:{...l.style,position:"fixed",top:0,left:0,margin:0,display:"flex",flexDirection:"column",overflow:"hidden"}})})});function yw({id:e,children:t,isMaximized:n=!1,isActive:a=!1,onFocus:r,onWindowChange:i,x:s=100,y:o=50,width:l=800,height:c=600},d){let[m,f]=(0,zt.useState)(!1),[h,k]=(0,zt.useState)(!1),[v,A]=(0,zt.useState)({x:s,y:o,width:l,height:c}),q=(0,zt.useRef)(null),de=(0,zt.useRef)(null),pe=(0,zt.useRef)(null),H=(0,vn.useTheme)();(0,zt.useImperativeHandle)(d,()=>({snapTo:se=>{let j=Math.floor(window.innerWidth/2),Fe=window.innerHeight,Ve=se==="left"?{x:0,y:0,width:j,height:Fe}:{x:j,y:0,width:j,height:Fe};A(Ve),i?.(e,!1,Ve.x,Ve.y,Ve.width,Ve.height)}}));let le=()=>{q.current&&de.current&&(de.current.innerHTML=q.current.innerHTML)},R=()=>{le(),f(!0),r?.()},ce=()=>{f(!1),i?.(e,n,v.x,v.y,v.width,v.height)},ve=()=>{k(!0),r?.()},ke=()=>{k(!1),i?.(e,n,v.x,v.y,v.width,v.height)},z=(0,zt.useCallback)((se,j)=>{A(Fe=>({...Fe,x:j.x,y:j.y}))},[]),B=(0,zt.useCallback)((se,{size:j,handle:Fe})=>{A(Ve=>{let rt=Ve.x,Mt=Ve.y;return(Fe==="sw"||Fe==="nw")&&(rt=Ve.x-(j.width-Ve.width)),(Fe==="ne"||Fe==="nw")&&(Mt=Ve.y-(j.height-Ve.height)),{...Ve,width:j.width,height:j.height,x:rt,y:Mt}})},[]);return(0,cn.jsx)(vn.Dialog,{open:!0,hideBackdrop:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,disablePortal:!0,maxWidth:!1,onMouseDown:r,PaperComponent:gw,PaperProps:{nodeRef:pe,position:{x:v.x,y:v.y},onStart:R,onDrag:z,onStop:ce,disabled:n},sx:{pointerEvents:"none","& .MuiDialog-container":{display:"block"},"& .MuiDialog-paper":{pointerEvents:"auto",maxWidth:"none",maxHeight:"none",transition:m||h?"none":"all 0.2s ease-in-out"}},children:(0,cn.jsx)(sf.ResizableBox,{width:n?window.innerWidth:v.width,height:n?window.innerHeight:v.height,onResizeStart:ve,onResize:B,onResizeStop:ke,resizeHandles:n?[]:["se","sw","ne","nw"],handle:(se,j)=>(0,cn.jsx)(hw,{handleAxis:se,ref:j}),children:(0,cn.jsxs)(vn.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",position:"relative",overflow:"hidden",bgcolor:"background.paper",border:H.palette.mode==="dark"?`1px solid ${a?"rgba(255,255,255,0.18)":"rgba(255,255,255,0.05)"}`:`1px solid ${H.palette.divider}`,boxShadow:H.palette.mode==="dark"?a?"0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 40px rgba(0,0,0,1), 0 4px 12px rgba(0,0,0,0.8)":"0 2px 8px rgba(0,0,0,0.6)":void 0,opacity:H.palette.mode==="dark"&&!a?.6:1,transition:"box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease"},children:[h&&(0,cn.jsx)(vn.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"text.secondary"},children:"Resizing..."}),(0,cn.jsx)(vn.Box,{ref:de,sx:{display:m?"block":"none",width:"100%",height:"100%",filter:"blur(3px)",opacity:.8,pointerEvents:"none",transform:"translateZ(0)"}}),(0,cn.jsx)(vn.Box,{ref:q,sx:{display:m||h?"none":"block",width:"100%",height:"100%"},children:(0,cn.jsx)(vn.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",border:H.palette.mode==="dark"?`1px solid ${a?"#444":"#1e1e1e"}`:"1px solid #ccc",backgroundColor:H.palette.background.default,position:"relative",borderRadius:n?0:"4px",overflow:"hidden"},children:t})})]})})})}var ta=zt.default.forwardRef(yw);u();var of=I(Ze(),1),ft=I(ht(),1),na=I(Jt(),1);var We=I(fe(),1),aa=({id:e,atTop:t,isMaximized:n,onMinimize:a,onTop:r,onMaximize:i,onClose:s,onSnap:o})=>{let[l,c]=(0,of.useState)(null),d=()=>c(null);return(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(ft.IconButton,{size:"small",onClick:m=>c(m.currentTarget),children:(0,We.jsx)(na.MoreVert,{fontSize:"small"})}),(0,We.jsxs)(ft.Menu,{anchorEl:l,open:!!l,onClose:d,children:[(0,We.jsxs)(ft.MenuItem,{onClick:()=>{r(),d()},children:[(0,We.jsx)(ft.ListItemIcon,{children:t?(0,We.jsx)(Km,{fontSize:"small",sx:{color:"info.main"}}):(0,We.jsx)(na.Place,{fontSize:"small"})}),(0,We.jsx)(ft.ListItemText,{children:t?"Unpin from top":"Pin to top"})]}),(0,We.jsxs)(ft.MenuItem,{onClick:()=>{i(),d()},children:[(0,We.jsx)(ft.ListItemIcon,{children:n?(0,We.jsx)(na.FullscreenExit,{fontSize:"small"}):(0,We.jsx)(Qm,{fontSize:"small"})}),(0,We.jsx)(ft.ListItemText,{children:n?"Restore":"Maximize"})]}),o&&(0,We.jsx)(ft.Divider,{}),o&&(0,We.jsxs)(ft.MenuItem,{onClick:()=>{o("left"),d()},children:[(0,We.jsx)(ft.ListItemIcon,{children:(0,We.jsx)(Gm,{fontSize:"small"})}),(0,We.jsx)(ft.ListItemText,{children:"Snap left"})]}),o&&(0,We.jsxs)(ft.MenuItem,{onClick:()=>{o("right"),d()},children:[(0,We.jsx)(ft.ListItemIcon,{children:(0,We.jsx)(na.East,{fontSize:"small"})}),(0,We.jsx)(ft.ListItemText,{children:"Snap right"})]})]}),(0,We.jsx)(ft.IconButton,{size:"small",onClick:a,children:(0,We.jsx)(Jm,{fontSize:"small"})}),(0,We.jsx)(ft.IconButton,{size:"small",onClick:s,sx:{"&:hover":{color:"error.main"}},children:(0,We.jsx)(na.Close,{fontSize:"small"})})]})};u();var ze=I(ht(),1),Fi=I(Ze(),1);u();var Vg=I(bh(),1),pI=xl(),Wg=e=>{try{let t=["apiVersion","kind","metadata","status","spec"],n={};return t.forEach(a=>{e&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}),Object.keys(e).forEach(a=>{t.includes(a)||(n[a]=e[a])}),n}catch(t){return console.error("Error al convertir JSON a YAML:",t),{}}};function Bs(e){if(e)return JSON.parse(JSON.stringify(e))}function $s(e,t){if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let r of n)if(!a.includes(r)||!$s(e[r],t[r]))return!1;return!0}function gm(e,t,n){let a=[];if(!t)return[];let r=n?t:t.toLowerCase();function i(s,o){if(s!=null)if(typeof s=="object"){for(let l in s)if(Object.prototype.hasOwnProperty.call(s,l)){let c=Array.isArray(s)?`${o}[${l}]`:o?`${o}.${l}`:l;(n?l:l.toLowerCase()).includes(r)&&a.push(c),i(s[l],c)}}else{let l=String(s);(n?l:l.toLowerCase()).includes(r)&&a.push(o)}}return i(e,""),[...new Set(a)].filter(s=>s!=="")}function qs(e,t=2){if(!Number.isFinite(e)||e===0)return"0 Bytes";let n=1024,a=t<0?0:t,r=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(a))+" "+r[i]}function Us(e){let t=e;return e.endsWith("n")&&(t=(+e.replace("n","")/1e9).toString()),e.endsWith("m")&&(t=(+e.replace("m","")/1e6).toString()),e.endsWith("k")&&(t=(+e.replace("k","")/1e3).toString()),+t}function Kn(e){if(!e)return 0;e=e.toString();let t=e.trim().match(/^([\d.]+)\s*([KMGTPE]i?)B?$/i);if(!t)return/^\d+$/.test(e)?+e:(console.error(`'size' format is not recognized: ${e}`),0);let n=parseFloat(t[1]),a=t[2].toUpperCase().replace(/B$/,""),r,i=1024;switch(a){case"EI":case"E":r=i**6;break;case"PI":case"P":r=i**5;break;case"TI":case"T":r=i**4;break;case"GI":case"G":r=i**3;break;case"MI":case"M":r=i**2;break;case"KI":case"K":r=i**1;break;case"":case"B":r=1;break;default:console.warn(`Unknown unit '${a}'. We assume Bytes.`),r=1;break}return n*r}function bl(e){try{let n=Vg.CronExpressionParser.parse(e).next().toDate(),a=new Date,r=n.getTime()-a.getTime(),i=Math.floor(r/1e3%60),s=Math.floor(r/(1e3*60)%60),o=Math.floor(r/(1e3*60*60)%24),l=Math.floor(r/(1e3*60*60*24));return{date:n,isoString:n.toISOString(),timeLeft:{days:l,hours:o,minutes:s,seconds:i},description:`${l}d ${o}h ${s}m ${i}s`}}catch{return}}function Hg(e){let t=e.spec.versions.find(l=>l.served);if(!t)return"";let n=e.spec.group,a=e.spec.names.kind,r=t.name,i=t.schema.openAPIV3Schema;function s(l){if(!l)return;if(l.type==="object"){let d={};return l.required&&l.properties&&l.required.forEach(m=>{let f=s(l.properties[m]);f!==void 0&&(d[m]=f)}),Object.keys(d).length>0?d:void 0}if(l.type==="array"&&l.items){let d=s(l.items);return d!==void 0?[d]:[]}if(l.default!==void 0)return l.default;let c={string:"example-value",integer:1,number:1,boolean:!0};return l.type?c[l.type]:"todo-value"}let o={apiVersion:`${n}/${r}`,kind:a,metadata:{name:`minimal-${a.toLowerCase()}`,namespace:"default"},spec:s(i.properties?.spec)||{}};return pI.dump(o,{indent:2,noRefs:!0})}var xt=I(fe(),1),Bg=e=>{let[t,n]=(0,Fi.useState)(null),[a,r]=(0,Fi.useState)({}),[i,s]=(0,Fi.useState)({});(0,Fi.useEffect)(()=>{if(e.model){let d=Bs(e.model);n(d),Object.keys(d).forEach(m=>{let f=d[m];f&&typeof f=="object"&&f.text&&typeof e.model[m]?.asyncAction=="function"&&e.model[m].asyncAction().then(h=>{r(k=>({...k,[m]:h}))})})}},[e.model]);let o=(d,m)=>{n(f=>({...f,[d]:m}))},l=(d,m,f)=>{n(h=>({...h,[d]:{...h[d],[m]:f}}))},c=()=>{t&&e.onApply(Bs(t))};return t?(0,xt.jsxs)(ze.Menu,{open:!!e.anchorParent,anchorEl:e.anchorParent,onClose:e.onClose,children:[(0,xt.jsx)(ze.Stack,{direction:"column",width:"460px",p:2,spacing:1.5,children:Object.keys(t).map((d,m)=>{let f=t[d];return(0,xt.jsxs)(ze.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:2,children:[(0,xt.jsxs)(ze.Typography,{variant:"body2",sx:{fontWeight:"bold",textTransform:"capitalize"},children:[d,":"]}),typeof f=="boolean"&&(0,xt.jsx)(ze.Switch,{checked:f,onChange:h=>o(d,h.target.checked)}),typeof f=="number"&&(0,xt.jsx)(ze.TextField,{type:"number",variant:"standard",value:f,onChange:h=>o(d,Number(h.target.value)),slotProps:{htmlInput:{style:{textAlign:"right",width:"80px"}}}}),f&&typeof f=="object"&&f.options&&f.value!==void 0&&(0,xt.jsx)(ze.Select,{variant:"standard",value:f.value,onChange:h=>l(d,"value",h.target.value),sx:{minWidth:"100px"},children:f.options.map((h,k)=>(0,xt.jsx)(ze.MenuItem,{value:h,children:h},k))}),f&&typeof f=="object"&&f.button&&(0,xt.jsx)(ze.Button,{variant:"outlined",size:"small",onClick:()=>e.model[d].action(),children:f.button}),f&&typeof f=="object"&&f.text&&(0,xt.jsx)(ze.Typography,{variant:"body2",color:"text.secondary",children:a[d]!==void 0?a[d]:"..."}),f&&typeof f=="object"&&Array.isArray(f.available)&&Array.isArray(f.value)&&(0,xt.jsxs)(ze.Stack,{spacing:.5,sx:{width:"100%",mt:.5},children:[f.available.length>8&&(0,xt.jsx)(ze.TextField,{size:"small",variant:"outlined",placeholder:"Filter...",value:i[d]??"",onChange:h=>s(k=>({...k,[d]:h.target.value})),slotProps:{htmlInput:{style:{padding:"4px 8px",fontSize:"0.75rem"}}}}),(0,xt.jsx)(ze.List,{dense:!0,disablePadding:!0,sx:{maxHeight:200,overflowY:"auto",width:"100%",border:"1px solid",borderColor:"divider",borderRadius:1},children:f.available.filter(h=>!i[d]||h.toLowerCase().includes(i[d].toLowerCase())).map((h,k)=>(0,xt.jsx)(ze.ListItem,{disablePadding:!0,sx:{px:1},children:(0,xt.jsx)(ze.FormControlLabel,{control:(0,xt.jsx)(ze.Checkbox,{size:"small",checked:f.value.includes(h),onChange:v=>{let A=v.target.checked?[...f.value,h]:f.value.filter(q=>q!==h);l(d,"value",A)}}),label:(0,xt.jsx)(ze.Typography,{variant:"caption",children:h})})},k))})]})]},m)})}),(0,xt.jsxs)(ze.DialogActions,{sx:{p:2},children:[(0,xt.jsx)(ze.Button,{onClick:e.onClose,color:"inherit",children:"Cancel"}),(0,xt.jsx)(ze.Button,{onClick:c,variant:"contained",color:"primary",children:"Apply"})]})]}):null};u();var hI=e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return Math.abs(t)%360},$g=(e,t="light")=>{if(!e)return{dot:"transparent",tabBg:t==="dark"?"#2a2a2a":"#ebebeb"};let n=hI(e);return{dot:`hsl(${n}, 55%, 45%)`,tabBg:t==="dark"?`hsl(${n}, 30%, 26%)`:`hsl(${n}, 22%, 89%)`}},Tr=e=>({headers:{Authorization:e?"Bearer "+e:"","X-Kwirth-App":"true"}});var an=I(Rt(),1),X=I(fe(),1),Ug=e=>{let t=e.data,n=(0,On.useRef)(null),a=(0,On.useRef)(null),[r,i]=(0,On.useState)((0,X.jsx)(X.Fragment,{})),[s,o]=(0,On.useState)(void 0),[l,c]=(0,On.useState)(void 0),[d,m]=(0,On.useState)(e.isMaximized),[,f]=(0,On.useState)(0),h=()=>f(z=>z+1);(0,On.useEffect)(()=>{if(!t.isInitialized){if(t.isInitialized=!0,t.content=k(t.channelId),!t.content)return;switch(t.channelId){case"log":{let z=t.content?.externalChannel;if(z?.prepareExternalChannel){let B=z.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=B.data,t.content.externalChannelObject.config=B.config,t.content.externalChannelObject.instanceConfig=B.instanceConfig,t.content.externalChannelObject.config.maxMessages=t.settings?.logLines??5e3}t.formConfig={lines:t.settings?.logLines??5e3,showNames:!1,timestamp:!1,startDiagnostics:!1};break}case"metrics":{let z=t.content?.externalChannel;if(z?.prepareExternalChannel){let Fe=z.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=Fe.data,t.content.externalChannelObject.config=Fe.config,t.content.externalChannelObject.instanceConfig=Fe.instanceConfig}let B=Array.from(t.channelObject?.metricsList?.keys()||[]).filter(Fe=>Fe.startsWith("container_")||Fe.startsWith("kwirth_")),se=["kwirth_container_cpu_percentage","kwirth_container_memory_percentage","kwirth_container_transmit_mbps","kwirth_container_receive_mbps","kwirth_container_write_mbps","kwirth_container_read_mbps"],j=t.content?.externalChannelObject?.instanceConfig?.metrics;t.formConfig={aggregate:!0,merge:!1,type:{value:"line",options:["line","bar","area"]},width:3,depth:50,legend:!0,metrics:{available:B,value:j?.length?j:se}};break}case"fileman":t.formConfig={},A(t.content);break;case"trivy":{let z=t.content?.externalChannel;if(z?.prepareExternalChannel){let se=z.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=se.data,t.content.externalChannelObject.config=se.config,t.content.externalChannelObject.instanceConfig=se.instanceConfig}let B=t.content.externalChannelObject.instanceConfig;t.formConfig={ignoreCritical:B?.ignoreCritical??!1,ignoreHigh:B?.ignoreHigh??!1,ignoreMedium:B?.ignoreMedium??!1,ignoreLow:B?.ignoreLow??!0,Status:{text:"Status",asyncAction:async()=>{try{return t.content?.externalChannelObject?.data.ri?await(await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=status`,Tr(t.content?.externalChannelObject?.accessString))).text():"No RI. Wait a few seconds."}catch{return"N/A"}}},"Install Trivy operator":{button:"Install",action:async()=>{t.content?.externalChannelObject?.data.ri?(i((0,an.MsgBoxWait)("Trivy install","Wait for Trivy to start installation",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=install`,Tr(t.content?.externalChannelObject?.accessString)),i((0,an.MsgBoxOk)("Install","Installation started, close this dialog and wait for Trivy to finish startup",i))):i((0,an.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))}},"Remove Trivy operator":{button:"Remove",action:async()=>{t.content?.externalChannelObject?.data.ri?(i((0,an.MsgBoxWait)("Trivy remove","Wait for Trivy to start removing",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=remove`,Tr(t.content?.externalChannelObject?.accessString)),i((0,an.MsgBoxOk)("Remove","Removing started, close this dialog and wait for Trivy to completely disappear from your cluster",i))):i((0,an.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))}}};break}case"news":t.formConfig={maxItems:50,feeds:{available:["kubernetes","ai"],value:["kubernetes","ai"]}};break;default:{let z=t.content?.externalChannel;if(z?.prepareExternalChannel){let B=z.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=B.data,t.content.externalChannelObject.config=B.config,t.content.externalChannelObject.instanceConfig=B.instanceConfig,t.formConfig=B.formConfig}else t.formConfig={};break}}}},[]),(0,On.useEffect)(()=>{if(t.channelId==="ops"){let z=async B=>{if(!a.current?.contains(document.activeElement)||["Control","Alt","Shift","Meta"].includes(B.key))return;let se=t.content.termId||e.selectedFiles[0]?.data?.origin?.metadata?.namespace+"/"+e.selectedFiles[0]?.data?.origin?.metadata?.name+"/"+e.container,j=t.content?.externalChannelObject?.data?.terminalManager?.terminals.get(se),Fe=j?.socket;if(!Fe||Fe.readyState!==WebSocket.OPEN)return;let Ve=B.key.toLowerCase(),rt=null;if(B.ctrlKey,B.ctrlKey&&B.shiftKey&&Ve==="c"){B.preventDefault();let Mt=j.term?j.term.getSelection():window.getSelection()?.toString();Mt&&await navigator.clipboard.writeText(Mt);return}if(B.ctrlKey&&B.shiftKey&&Ve==="v"){B.preventDefault();try{let Mt=await navigator.clipboard.readText();Mt&&Fe.send(Mt)}catch(Mt){console.error("Clipboard could not be accessed",Mt)}return}rt=yI(B),!rt&&B.ctrlKey&&(rt=xI(B.key)),!rt&&B.altKey&&B.key.length===1&&(rt="\x1B"+B.key),rt||(rt=gI[B.key]||(B.key.length===1?B.key:null)),rt&&(B.preventDefault(),B.stopPropagation(),Fe.send(rt))};return window.addEventListener("keydown",z,!0),()=>{window.removeEventListener("keydown",z,!0)}}},[e.container,e.selectedFiles,t.content?.externalChannelObject]),sc(async()=>{if(t.content&&!t.content.externalChannelObject.data&&await t.content.externalChannel.initChannel(t.content.externalChannelObject),t.options.autostart&&t.content&&!t.content.externalChannelStarted){for(;t.content?.ws?.readyState!==WebSocket.OPEN;)await new Promise(z=>setTimeout(z,10));t.content?.ws?.readyState===WebSocket.OPEN&&q()}},[]);let k=z=>{let B=(0,wl.createChannelInstance)(t.frontChannels.get(z));if(!B){console.log("Invaid channel instance created");return}let se={ws:void 0,externalChannel:B,externalChannelObject:{isDesktop:t.isDesktop,clusterName:t.channelObject?.clusterName,instanceId:"",view:t.contentView,namespace:t.contentView===Oe.EInstanceConfigView.NAMESPACE?e.selectedFiles.map(j=>j.data.origin.metadata.name).join(","):[...new Set(e.selectedFiles.map(j=>j.data.origin.metadata.namespace))].join(","),group:t.contentView===Oe.EInstanceConfigView.GROUP?e.selectedFiles.map(j=>j.data.origin.kind+"+"+j.data.origin.metadata.name).join(","):"",pod:t.contentView===Oe.EInstanceConfigView.POD?e.selectedFiles.map(j=>j.data.origin.metadata.name).join(","):"",container:t.contentView===Oe.EInstanceConfigView.CONTAINER?e.selectedFiles[0].data.origin.metadata.name+"+"+e.container:"",config:void 0,data:void 0,instanceConfig:void 0,channelId:B.channelId},externalChannelStarted:!1,externalChannelPaused:!1,externalChannelPending:!1,settings:t.settings,termId:e.selectedFiles[0]?.data?.origin?.metadata?.namespace+"/"+e.selectedFiles[0]?.data?.origin?.metadata?.name.split("+")[0]+"/"+e.container};return B.requirements.notifier&&(se.externalChannelObject.notify=t.channelObject?.notify),B.requirements.metrics&&(se.externalChannelObject.metricsList=t.channelObject?.metricsList),B.requirements.clusterUrl&&(se.externalChannelObject.clusterUrl=t.channelObject?.clusterUrl),B.requirements.accessString&&(se.externalChannelObject.accessString=t.channelObject?.accessString),se.ws=new WebSocket(t.channelObject?.clusterUrl),se.ws.onmessage=j=>v(j),se.ws.onerror=j=>()=>{console.log("WebSocket error:"+j,new Date().toISOString())},se.ws.onclose=j=>{console.log("WebSocket disconnect:"+j.reason,new Date().toISOString())},B.requirements.webSocket&&(se.externalChannelObject.webSocket=se.ws),t.onOpenExternal&&(se.externalChannelObject.openExternal=t.onOpenExternal),se},v=z=>{let B;try{B=JSON.parse(z.data)}catch(se){console.log(se.stack),console.log(z.data);return}if(!(B.action===Oe.EInstanceMessageAction.PING||B.channel===""))if(t.frontChannels.has(B.channel)){let se=t.content.externalChannel?.processChannelMessage(t.content.externalChannelObject,z);se&&(se.action===ym.EChannelRefreshAction.REFRESH?t.onRefresh():se.action===ym.EChannelRefreshAction.STOP&&pe())}else console.log("Received invalid channel in message: ",B),t.onNotify(void 0,qg.ENotifyLevel.ERROR,`'Received invalid channel in message: ${B.channel}`)},A=z=>{let B={paused:!1,started:!1,files:[],currentPath:"",ri:void 0},se={notify:t.onNotify};z.externalChannelObject.webSocket=t.content.ws,z.externalChannelObject.data=B,z.externalChannelObject.config=se},q=()=>{if(!(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)){if(t.content.externalChannelPaused){t.content.externalChannel.continueChannel(t.content.externalChannelObject);let z={channel:t.content.externalChannel.channelId,objects:Oe.EInstanceConfigObject.PODS,action:Oe.EInstanceMessageAction.CONTINUE,flow:Oe.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.contentView,scope:Oe.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Oe.EInstanceMessageType.SIGNAL};t.content.externalChannelPaused=!1,t.content.ws.send(JSON.stringify(z))}else{t.content.externalChannel.startChannel(t.content.externalChannelObject);let z={channel:t.content.externalChannel.channelId,objects:Oe.EInstanceConfigObject.PODS,action:Oe.EInstanceMessageAction.START,flow:Oe.EInstanceMessageFlow.REQUEST,instance:"",accessKey:t.channelObject?.accessString,scope:Oe.EInstanceConfigScope.NONE,view:t.contentView,namespace:t.contentView===Oe.EInstanceConfigView.NAMESPACE?e.selectedFiles.map(B=>B.data.origin.metadata.name).join(","):[...new Set(e.selectedFiles.map(B=>B.data.origin.metadata.namespace))].join(","),group:t.contentView===Oe.EInstanceConfigView.GROUP?e.selectedFiles.map(B=>B.data.origin.kind+"+"+B.data.origin.metadata.name).join(","):"",pod:t.contentView===Oe.EInstanceConfigView.POD?e.selectedFiles.map(B=>B.data.origin.metadata.name).join(","):"",container:t.contentView===Oe.EInstanceConfigView.CONTAINER?e.selectedFiles[0].data.origin.metadata.name+"+"+e.container:"",type:Oe.EInstanceMessageType.SIGNAL};z.scope=t.content.externalChannel.getScope()||"",z.data=t.content.externalChannelObject.instanceConfig,t.content.ws.send(JSON.stringify(z)),t.content.externalChannelStarted=!0,t.content.externalChannelPaused=!1}h()}},de=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;t.content.externalChannel.pauseChannel(t.content.externalChannelObject);let z={channel:t.content.externalChannel.channelId,objects:Oe.EInstanceConfigObject.PODS,action:Oe.EInstanceMessageAction.PAUSE,flow:Oe.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.content.externalChannelObject.view,scope:Oe.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Oe.EInstanceMessageType.SIGNAL};t.content.externalChannelPaused=!0,z.action=Oe.EInstanceMessageAction.PAUSE,t.content.ws.send(JSON.stringify(z)),h()},pe=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;let z={channel:t.content.externalChannel.channelId,objects:Oe.EInstanceConfigObject.PODS,action:Oe.EInstanceMessageAction.STOP,flow:Oe.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.content.externalChannelObject.view,scope:Oe.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Oe.EInstanceMessageType.SIGNAL};t.content.externalChannel.stopChannel(t.content.externalChannelObject),t.content.ws.send(JSON.stringify(z)),t.content.externalChannelStarted=!1,t.content.externalChannelPaused=!1,h()},H=()=>{let z=(0,X.jsx)(X.Fragment,{});switch(t.channelId){case"log":z=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Log"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"You can configure log depth (number of lines) on the configuration menu."}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"Other configuration options, like Start Diagnostics, are not available to Magnify, but you can use them in log channel."})]});break;case"metrics":z=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Metrics"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"You can change every individual chart type, but it won't be saved. Next time you'll need to reconfigure it again."}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"Data visualization refreshment depends on your Kwirth front configuration, your Magnify configuration."}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"On the other side, data freshness depends on Kwirth backend configuration. If you ser a visualization refresh lower than your data freshness, you'll get repeated values on different intervals."})]});break;case"ops":z=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Ops"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsxs)(ye.Typography,{fontSize:12,children:["You can use clipboard functions by pressing ",(0,X.jsx)("b",{children:"Ctrl+Shift+C"})," for copying and ",(0,X.jsx)("b",{children:"Ctrl+Shift+V"})," for pasting"]}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"You can minimize this window and the connection will keep open, or you can close this window and the connection to the container will be closed."})]});break;case"fileman":z=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Fileman"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"You can refresh filesystem data everytime you suspect what you are viewing is not acccurate. Just click on top-righ icon to refresh content."}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"Upload and Download capabilities depend on your kind of Kwirth deployment. These actions are not available for all architectures. They should be available, at least, on Kubernetes Deployment. Accessing them via Electron may not be working."})]});break;case"trivy":z=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Trivy"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"Kwirth Trivy channel is a powerful tool for managing your workload security. It is based on Trivy Operator, which you can install by your own or use Kwirth for deploying Trivy without any effort (perform installation from a Trivy channel or from 'Settings' on this window)."}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"Once Trivy Operator is installed, you will see here Trivy information related to artifacts you've selected in Magnify. You can select, for instance, several pods and access this Trivy channel for viewing Trivy information about those set of pods."}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"From the asset list you will be able to see: Vulnerabilities report, Config Audit report, Exposed secrets report and also a SBOM (Software Bill of Materials, where you can analyze pacakges and its dependencies)."})]});break;case"pinocchio":z=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Pinocchio"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"This is real WIP."})]});break;default:{let B=t.content?.externalChannel?.getExternalHelpContent?.();B&&(z=(0,X.jsx)(X.Fragment,{children:B}));break}}return(0,X.jsx)(ye.Popover,{anchorEl:s,open:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{width:400,maxHeight:500}}},onClose:()=>o(void 0),children:(0,X.jsx)(ye.Box,{sx:{p:2,display:"flex",alignItems:"left",gap:1,flexDirection:"column"},children:z})})},le=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;let z=t.content.externalChannel.TabContent,B={channelObject:t.content.externalChannelObject,onEnd:()=>e.onClose(e.id)};return B.channelObject.channelId==="ops"?(0,X.jsx)("div",{ref:a,children:(0,X.jsx)(z,{...B})}):(0,X.jsx)(z,{...B})},R=()=>{e.onFocus&&e.onFocus()},ce=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},ve=z=>{m(!1),n.current?.snapTo(z)},ke=z=>{switch(c(void 0),t.formConfig=z,t.channelId){case"log":{let j=t.content.externalChannelObject.config;j.maxMessages=z.lines,j.showNames=z.showNames,j.startDiagnostics=z.startDiagnostics;let Fe=t.content.externalChannelObject.instanceConfig;Fe.timestamp=z.timestamp,pe(),q();break}case"metrics":let B=t.content.externalChannelObject.config,se=t.content.externalChannelObject.instanceConfig;B.width=z.width,B.merge=z.merge,B.depth=z.depth,B.legend=z.legend,B.chart=z.type?.value??B.chart,se.aggregate=z.aggregate,se.metrics=z.metrics?.value??se.metrics,pe(),q();break;case"shell":break;case"fileman":break;case"trivy":{let j=t.content.externalChannelObject.instanceConfig;j.ignoreCritical=z.ignoreCritical??!1,j.ignoreHigh=z.ignoreHigh??!1,j.ignoreMedium=z.ignoreMedium??!1,j.ignoreLow=z.ignoreLow??!0,t.formConfig.Status.asyncAction=async()=>{try{return t.content?.externalChannelObject?.data.ri?await(await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=status`,Tr(t.content?.externalChannelObject?.accessString))).text():"No RI. Wait a few seconds."}catch{return"N/A"}},t.formConfig["Install Trivy operator"].action=async()=>{t.content?.externalChannelObject?.data.ri?(i((0,an.MsgBoxWait)("Trivy install","Wait for Trivy to start installation",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=install`,Tr(t.content?.externalChannelObject?.accessString)),i((0,an.MsgBoxOk)("Install","Installation started, close this dialog and wait for Trivy to finish startup",i))):i((0,an.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))},t.formConfig["Remove Trivy operator"].action=async()=>{t.content?.externalChannelObject?.data.ri?(i((0,an.MsgBoxWait)("Trivy remove","Wait for Trivy to start removing",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=remove`,Tr(t.content?.externalChannelObject?.accessString)),i((0,an.MsgBoxOk)("Remove","Removing started, close this dialog and wait for Trivy to completely disappear from your cluster",i))):i((0,an.MsgBoxOk)("Trivy remove","Running instance is not yet available, please try again in a few seconds",i))};break}case"news":{t.content?.externalChannel?.onExternalConfigApply?.(t.content.externalChannelObject,z),pe(),q();break}case"pinocchio":break;default:{t.content?.externalChannel?.onExternalConfigApply?.(t.content.externalChannelObject,z)&&h();break}}};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(ta,{ref:n,id:e.id,isMaximized:d,isActive:e.atFront,onFocus:R,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,X.jsx)(ye.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,X.jsxs)(ye.Stack,{direction:"row",alignItems:"center",children:[(0,X.jsx)(ye.IconButton,{size:"small",onClick:q,disabled:!t.options.autostart||t.content?.externalChannelStarted&&!t.content?.externalChannelPaused,children:(0,X.jsx)(ma.PlayArrow,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",onClick:de,disabled:!t.options.pauseable||!t.content?.externalChannelStarted||t.content?.externalChannelPaused,children:(0,X.jsx)(ma.Pause,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",onClick:pe,disabled:!t.options.stoppable||!t.content?.externalChannelStarted,children:(0,X.jsx)(ma.Stop,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",disabled:!t.options.configurable,onClick:z=>c(z.target),children:(0,X.jsx)(ma.Settings,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",onClick:z=>o(z.currentTarget),children:(0,X.jsx)(ma.Info,{fontSize:"small"})}),(0,X.jsx)(ye.Typography,{sx:{flexGrow:1}}),(0,X.jsxs)(ye.Typography,{children:[(0,wl.getChannelIconOf)(t.content?.externalChannel),"\xA0",e.title]}),(0,X.jsx)(ye.Typography,{sx:{flexGrow:1}}),(0,X.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:ce,onClose:()=>e.onClose(e.id),onSnap:ve})]})}),(0,X.jsx)(ye.DialogContent,{sx:{display:"flex",flexDirection:"column",p:0,overflow:"hidden",height:"100%",minHeight:0,paddingBottom:1},children:le()})]}),s&&H(),l&&(0,X.jsx)(Bg,{anchorParent:l,model:t.formConfig,onApply:ke,onClose:()=>c(void 0)}),r]})},gI={ArrowUp:"\x1B[A",ArrowDown:"\x1B[B",ArrowRight:"\x1B[C",ArrowLeft:"\x1B[D",Home:"\x1B[H",End:"\x1B[F",PageUp:"\x1B[5~",PageDown:"\x1B[6~",Insert:"\x1B[2~",Delete:"\x1B[3~",Backspace:"\x7F",Tab:" ",Enter:"\r",Escape:"\x1B",F1:"\x1BOP",F2:"\x1BOQ",F3:"\x1BOR",F4:"\x1BOS",F5:"\x1B[15~",F6:"\x1B[17~",F7:"\x1B[18~",F8:"\x1B[19~",F9:"\x1B[20~",F10:"\x1B[21~",F11:"\x1B[23~",F12:"\x1B[24~"},yI=e=>{let{key:t,ctrlKey:n,altKey:a,shiftKey:r}=e,i=1;if(r&&(i+=1),a&&(i+=2),n&&(i+=4),i===1)return null;let s={F1:"P",F2:"Q",F3:"R",F4:"S"};if(s[t])return`\x1B[1;${i}${s[t]}`;let o={F5:15,F6:17,F7:18,F8:19,F9:20,F10:21,F11:23,F12:24};if(o[t])return`\x1B[${o[t]};${i}~`;let l={ArrowUp:"A",ArrowDown:"B",ArrowRight:"C",ArrowLeft:"D",Home:"H",End:"F"};if(l[t])return`\x1B[1;${i}${l[t]}`;let c={Insert:2,Delete:3,PageUp:5,PageDown:6};return c[t]?`\x1B[${c[t]};${i}~`:null};function xI(e){let t=e.toLowerCase().charCodeAt(0);return t>=97&&t<=122?String.fromCharCode(t-96):null}u();var Jn=I(Ze(),1),ut=I(ht(),1),ox=I(Jt(),1);u();var Q0=I(Jt(),1),U=I(ht(),1);var Rn=I(Ze(),1),ex=I(Ml(),1),tx=I(Dl(),1),S=I(fe(),1),Ne={get:ex.default,set:tx.default};function SM(e){let t=[],n=Math.floor(e.days);n>0&&(t.push(`${n}d`),e.days-=e.days);let a=Math.floor(e.hours);(a>0||t.length>0)&&(t.push(`${a}h`),e.hours-=e.hours);let r=Math.floor(e.minutes);return r>0&&t.length<2&&t.push(`${r}m`),t.slice(0,2).join("")}var nx=e=>{let t=0,n=15,a=Rn.default.useMemo(()=>!e.sections||!e.object.data?!1:e.sections.some(c=>c.items.some(d=>d.format==="edit"||d.style&&d.style.includes("edit"))),[e.sections,e.object.data]);Rn.default.useEffect(()=>{e.onContainsEdit&&e.onContainsEdit(a)},[a,e.onContainsEdit]);let r=(c,d)=>{let m;if(d.includes("||")){let f=d.split("||");f[f.length-1]==="$default"?m="$default":m=f[f.length-1];for(let h of f)if(Ne.get(c,h)){m=Ne.get(c,h);break}}else m=Ne.get(c,d);return m},i=(c,d,m,f,h,k,v,A,q)=>{let de=m;if(m.startsWith("$"))return(0,S.jsx)(U.Typography,{fontWeight:h.includes("bold")?"700":"",variant:"body2",children:m.substring(1)});let pe=!1;m.startsWith("#")&&(m=m.substring(1),pe=!0);let H=JSON.parse(JSON.stringify(d));if(m.includes("|")&&m.includes(":")){let R=m.split(":")[1],ce=m.split(":")[0].split("|"),ve=[],ke=[];Ne.get(H,ce[0])&&(ve=Ne.get(H,ce[0]).map(z=>z[R]));for(let z of ve){let B=Ne.get(H,ce[0]).filter(j=>j[R]===z),se=Ne.get(H,ce[1]).filter(j=>j[R]===z);if(B.length===1&&se.length===1){let j={...B[0],...se[0]};ke.push(j)}}Ne.set(H,ce[0],ke),m=ce[0]}let le=h&&h.includes("header")&&q?q.text+":\xA0":"";switch(f){case"age":let R=Date.parse(r(H,m)),ve=new Date().getTime()-R,ke=Math.floor(ve/(1e3*60*60*24));ve-=ke*(1e3*60*60*24);let z=Math.floor(ve/(1e3*60*60));ve-=z*(1e3*60*60);let B=Math.floor(ve/(1e3*60));return(0,S.jsx)(U.Typography,{variant:"body2",children:SM({days:ke,hours:z,minutes:B})});case"boolean":let j=!1;m==="@string[]"&&A?j=!!A(c,H,e.onLink)[0]:j=!!Ne.get(H,m);let Fe=h.filter(Y=>Y.startsWith(j+":"));if(h&&Fe.length===1){let Y=Fe[0].split(":");return j?(0,S.jsx)(U.Typography,{sx:{color:Y[2]},variant:"body2",children:Y[1]}):(0,S.jsx)(U.Typography,{sx:{color:Y[2]},variant:"body2",children:Y[1]})}else return j?(0,S.jsx)(U.Typography,{sx:{color:"success.main"},variant:"body2",children:"OK"}):(0,S.jsx)(U.Typography,{sx:{color:"error.main"},variant:"body2",children:"ko"});case"string":let Ve="";if((m==="@string"||m==="@jsx")&&q?.invoke)return(0,S.jsx)(S.Fragment,{children:q.invoke(c,H,e.onLink)});if(m==="@string[]"&&A?Ve=A(c,H,e.onLink)[0]:Ve=r(H,m),q?.processValue)try{Ve=q.processValue(Ve)}catch{}if(h&&h.includes("mb")&&(Ve=qs(Kn(Ve))),h&&h.includes("edit"))return(0,S.jsxs)(S.Fragment,{children:[le,i(c,d,m,"edit",h,k,[],void 0)]});{let Y=Ve,he="",Me=[],dt=(0,S.jsx)(S.Fragment,{children:Y});if(Y&&h){let Lt=h.find(qe=>qe.startsWith("char:"));if(Lt){let qe=+Lt.substring(5);Y&&Y.length>qe&&(dt=(0,S.jsx)(S.Fragment,{children:Y.substring(0,qe)+"..."}))}h.includes("bold")&&(he="700"),Me=h.filter(qe=>qe.startsWith(Ve+":"));let vt=h.find(qe=>qe.startsWith("color:"));vt&&(Me=[vt]);let Fn=h.find(qe=>qe.startsWith("link:"));if(Fn&&pe){let qe=Fn.split(":");qe.length<4&&console.log("link<4",Fn);for(let bn=1;bn<=3;bn++)qe[bn].startsWith("$")?qe[bn]=qe[bn].substring(1):qe[bn]=Ne.get(H,qe[bn]);qe[3]==="$namespace"&&(qe[3]=c.metadata.namespace),dt=(0,S.jsx)("a",{href:"#",onClick:()=>e.onLink(qe[1],Y,qe[3]),children:Y})}}if(Me.length>0)return(0,S.jsxs)(U.Typography,{component:"div",color:Me[0].split(":")[1],fontWeight:he,variant:"body2",children:[le,dt]});if(h){let Lt=h.filter(vt=>vt.startsWith("property:"));if(Lt.length>0)for(let vt of Lt){let Fn=vt.split(":");if(Ne.get(H,Fn[1])===Fn[2])return(0,S.jsxs)(U.Typography,{component:"div",color:Fn[3],fontWeight:he,variant:"body2",children:[le,dt]})}}return(0,S.jsxs)(U.Typography,{component:"div",fontWeight:he,variant:"body2",children:[le,dt]})}case"edit":let rt=Ne.get(H,m);return h.includes("base64")&&(rt=atob(rt)),h.includes("multiline")?(0,S.jsx)(U.TextareaAutosize,{name:m,defaultValue:rt,style:{width:"100%",marginTop:1,marginBottom:1,resize:"vertical",minHeight:"64px"},onChange:Y=>e.onChangeData(m,Y.target.value)}):(0,S.jsx)(U.TextField,{name:m,defaultValue:rt,maxRows:5,sx:{width:"100%",mt:1,mb:1},size:"small",onChange:Y=>e.onChangeData(m,Y.target.value)});case"booleankey":return Ne.get(H,m)===!0?(0,S.jsx)(S.Fragment,{children:m}):(0,S.jsx)(S.Fragment,{});case"keylist":let Mt=Object.keys(Ne.get(H,m));return(0,S.jsx)(S.Fragment,{children:i(c,{keys:Mt},"keys","stringlist",h,k,[],void 0)});case"stringlist":let ae=[];if(m==="@string[]"&&A?ae=A(c,H,e.onLink):ae=Ne.get(H,m),!ae)return(0,S.jsx)(S.Fragment,{});if(q?.processValue)try{for(let Y=0;Y<ae.length;Y++)ae[Y]=q.processValue(ae[Y])}catch{}if(h.includes("column")){let Y=de.startsWith("#")?"#":"";return(0,S.jsx)(U.Stack,{direction:"column",children:ae.map((he,Me)=>(0,S.jsx)(U.Typography,{component:"div",variant:"body2",children:i(c,ae,Y+"["+Me+"]","string",h,k+1,void 0,void 0)},Me))})}else{let Y=ae.join(",\xA0"),he=h.filter(Me=>Me.startsWith(Y+":"));return he.length>0?(0,S.jsxs)(U.Typography,{color:he[0].split(":")[1],variant:"body2",children:[le,Y]}):(0,S.jsxs)(U.Typography,{variant:"body2",children:[le,Y]})}case"objectlist":let De=[];return m==="@string[]"&&A||m==="@object[]"&&A?De=A(c,H,e.onLink):De=Ne.get(H,m),De?h.includes("table")&&v?(0,S.jsx)(U.TableContainer,{component:U.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,S.jsxs)(U.Table,{size:"small",sx:{width:"100%"},children:[(0,S.jsx)(U.TableHead,{children:(0,S.jsx)(U.TableRow,{children:v.map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Y.text},he))})}),(0,S.jsx)(U.TableBody,{children:De.map((Y,he)=>(0,S.jsx)(U.TableRow,{children:v.map((Me,dt)=>{let Lt=v.find(vt=>vt.name===Me.name);return!Lt||!v?(0,S.jsx)(S.Fragment,{}):(0,S.jsxs)(U.TableCell,{children:[" ",typeof Ne.get(Y,Me.source[0])=="object"?Array.isArray(Ne.get(Y,Me.source[0]))?(0,S.jsx)(S.Fragment,{children:i(c,Y,Me.source[0],Lt.format,Me.style||[],k+1,Lt.items,void 0)}):(0,S.jsx)(S.Fragment,{children:i(c,Y,Me.source[0],v.find(vt=>vt.source[0]===Me.source[0]).format,v.find(vt=>vt.source[0]===Me.source[0]).style||[],k+1,[Lt],void 0)}):(0,S.jsx)(S.Fragment,{children:s(c,Y,Me,k+1)})]},dt)})},he))})]})}):(0,S.jsx)(S.Fragment,{children:De.map((Y,he)=>v?(0,S.jsx)(U.Stack,{direction:h.includes("column")?"column":"row",sx:{width:h.includes("fullwidth")?"100%":"auto"},children:h.includes("column")?v.map((Me,dt)=>(0,S.jsx)(Rn.default.Fragment,{children:s(c,Y,Me,k+1)},dt)):v.map((Me,dt)=>(0,S.jsxs)(Rn.default.Fragment,{children:[s(c,Y,Me,k+1)," ",(0,S.jsx)(S.Fragment,{children:he<De.length-1?",\xA0":""})," "]},dt))},he):(0,S.jsx)(Rn.default.Fragment,{},he))}):(0,S.jsx)(S.Fragment,{});case"objectobject":return h.includes("table")?(0,S.jsx)(U.TableContainer,{component:U.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,S.jsxs)(U.Table,{size:"small",children:[(0,S.jsx)(U.TableHead,{children:(0,S.jsx)(U.TableRow,{children:Object.keys(Ne.get(H,m)[0]).map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Y},he))})}),(0,S.jsx)(U.TableBody,{children:Ne.get(H,m).map((Y,he)=>(0,S.jsx)(U.TableRow,{children:Object.keys(Ne.get(H,m)[0]).map((Me,dt)=>(0,S.jsx)(U.TableCell,{children:i(c,Y,m,"string",[],k+1,[],void 0)},dt))},he))})]})}):(0,S.jsx)(S.Fragment,{children:Ne.get(H,m).map((Y,he)=>v?(0,S.jsx)(Rn.default.Fragment,{children:v.map((Me,dt)=>(0,S.jsx)(Rn.default.Fragment,{children:o(c,Y,Me,n,k+1)},dt))},he):(0,S.jsx)(S.Fragment,{}))});case"objectprops":return Ne.get(H,m)?h&&h.includes("table")?q&&q?.items?(0,S.jsx)(U.TableContainer,{component:U.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,S.jsxs)(U.Table,{size:"small",children:[(0,S.jsx)(U.TableHead,{children:(0,S.jsx)(U.TableRow,{children:q.items.map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Y.text},he))})}),(0,S.jsx)(U.TableBody,{children:(0,S.jsx)(U.TableRow,{children:q.items.map((Y,he)=>(0,S.jsx)(U.TableCell,{children:i(c,H,Y.source[0],Y.format,Y.style||[],k)},he))})})]})}):(0,S.jsx)(U.TableContainer,{component:U.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,S.jsxs)(U.Table,{size:"small",children:[(0,S.jsx)(U.TableHead,{children:(0,S.jsx)(U.TableRow,{children:Object.keys(Ne.get(H,m)).map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Y},he))})}),(0,S.jsx)(U.TableBody,{children:(0,S.jsx)(U.TableRow,{children:Object.keys(Ne.get(H,m)).map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Ne.get(H,m+".['"+Y+"']")},he))})})]})}):v?(0,S.jsx)(S.Fragment,{children:v.map((Y,he)=>(0,S.jsxs)(U.Stack,{direction:Y.style&&Y.style.includes("column")?"column":"row",children:[(0,S.jsxs)(U.Typography,{fontWeight:h&&h.includes("keybold")?"700":"",variant:"body2",children:[Y.text,":\xA0"]}),s(c,H,Y,k+1)]},he))}):(0,S.jsx)(S.Fragment,{children:Object.keys(Ne.get(H,m)).map((Y,he)=>h&&h.includes("edit")?(0,S.jsxs)(U.Stack,{direction:"column",sx:{mt:1},children:[(0,S.jsxs)(U.Stack,{direction:"row",children:[(0,S.jsx)(U.Tooltip,{title:Y,placement:"top",children:(0,S.jsx)(U.Typography,{fontWeight:h.includes("keybold")?"700":"",variant:"body2",children:Y})}),h.includes("lockicon")&&(0,S.jsx)(Q0.Https,{fontSize:"small",sx:{color:"error.main"}})]}),i(c,H,m+".['"+Y+"']","edit",h,k+1,[],void 0)]},he):(0,S.jsxs)(U.Stack,{direction:"row",children:[(0,S.jsxs)(U.Typography,{fontWeight:h.includes("keybold")?"700":"",variant:"body2",children:[Y,":\xA0"]}),i(c,H,m+".['"+Y+"']","string",h,k+1,[],void 0)]},he))}):(0,S.jsx)(S.Fragment,{});case"table":return v?Ne.get(H,m)&&(0,S.jsx)(U.TableContainer,{component:U.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,S.jsxs)(U.Table,{size:"small",children:[(0,S.jsx)(U.TableHead,{children:(0,S.jsx)(U.TableRow,{children:v.map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Y.text},he))})}),(0,S.jsx)(U.TableBody,{children:Ne.get(H,m).map((Y,he)=>(0,S.jsx)(U.TableRow,{children:v.map((Me,dt)=>(0,S.jsx)(U.TableCell,{children:s(c,Y,Me,k+1)},dt))},he))})]})}):(0,S.jsx)(S.Fragment,{});default:return(0,S.jsx)(S.Fragment,{})}},s=(c,d,m,f)=>{let h=m.source[0].replace("#","");if(!h.startsWith("@")&&m.style?.includes("ifpresent")&&Ne.get(d,h)===void 0)return(0,S.jsx)(S.Fragment,{});if(m.format==="bar"){let k=Ne.get(d,m.source[0]),v=Ne.get(d,m.source[1]);if(!k||!v)return(0,S.jsx)(S.Fragment,{});let A=+k/+v*100;return(0,S.jsxs)(U.Stack,{direction:"row",width:"100%",alignItems:"center",children:[(0,S.jsx)(U.LinearProgress,{variant:"determinate",value:A>100?100:A,sx:{width:"90%"}}),"\xA0",(0,S.jsxs)(U.Typography,{variant:"body2",children:[k||0,"/",v||0]})]})}else return(0,S.jsx)(U.Stack,{direction:m.style?.includes("column")?"column":"row",width:"100%",alignItems:m.style?.includes("row")?"center":"",children:m.source.map((k,v)=>(0,S.jsx)(Rn.default.Fragment,{children:i(c,d,k,m.format,m.style||[],f+1,m.items,m.invoke,m)},v))})},o=(c,d,m,f,h)=>{let k="class-kwirth-"+t,v=m.source[0].replace("#","");if(!v.startsWith("@")&&m.style?.includes("ifpresent")&&Ne.get(d,v)===void 0)return(0,S.jsx)(S.Fragment,{});if(m.source&&v==="@jsx[]")return m.invoke?(0,S.jsx)(U.Stack,{direction:m.style&&m.style.includes("column")?"column":"row",alignItems:"stretch",sx:{width:"100%"},children:m.invoke(c,d,e.onLink).map((A,q)=>(0,S.jsx)(Rn.default.Fragment,{children:A},q))}):(0,S.jsx)(S.Fragment,{children:"Inexistent Invoke"});{let A=0;return m.source&&Ne.get(d,m.source[0])&&(A=Object.keys(Ne.get(d,m.source[0])).length),t++,(0,S.jsxs)(U.Stack,{direction:"row",alignItems:"baseline",children:[m.text===""&&(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(U.Typography,{component:"div",width:"100%",variant:"body2",children:s(c,d,m,h)})}),m.text!==""&&(0,S.jsxs)(S.Fragment,{children:[A>1&&m.style&&m.style.includes("collapse")?(0,S.jsxs)(U.Stack,{direction:"row",width:`${f-2}%`,alignItems:"center",children:[(0,S.jsx)(U.Typography,{variant:"body2",children:m.text}),(0,S.jsx)("svg",{className:"svg-"+k,width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",onClick:()=>{let q=document.getElementsByClassName(k)[0];q&&(q.style.height==="auto"?(q.style.height="22px",document.getElementsByClassName("svg-"+k)[0].innerHTML='<path d="M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z" />'):(q.style.height="auto",document.getElementsByClassName("svg-"+k)[0].innerHTML='<path d="M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z" />'))},children:(0,S.jsx)("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z"})})]}):(0,S.jsx)(U.Typography,{width:`${f}%`,variant:"body2",children:m.text}),A>1&&m.style&&m.style.includes("collapse")?(0,S.jsx)("div",{className:k,style:{height:"22px",overflow:"hidden"},children:s(c,d,m,h)}):s(c,d,m,h)]})]})}},l=(c,d)=>{if(c)return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(U.Typography,{sx:{mt:2,mb:1},variant:"body1",children:(0,S.jsx)("b",{children:d.text})}),d.items.map((m,f)=>(0,S.jsx)(Rn.default.Fragment,{children:o(c,c,m,n,0)},f))]})};if(e.object.data)if(e.sections){let c=e.sections.map((d,m)=>(0,S.jsx)(Rn.default.Fragment,{children:l(e.object.data[d.root],d)},m));return(0,S.jsx)(S.Fragment,{children:c})}else return(0,S.jsx)(S.Fragment,{children:(0,S.jsx)("pre",{children:JSON.stringify(e.object.data.origin,void 0,2)})});else return console.log(e.object),(0,S.jsx)(S.Fragment,{children:"No data"})};u();var Yt=I(ht(),1),ax=I(Ze(),1),rn=I(fe(),1),Ol=e=>((0,ax.useEffect)(()=>{e.file&&e.file.data.origin.status.containerStatuses?.length===1&&e.onContainerSelected(e.channel,e.file,e.file.data.origin.status.containerStatuses[0].name)},[e.file,e.channel,e.onContainerSelected]),!e.file||!e.file.data.origin.status.containerStatuses||e.file.data.origin.status.containerStatuses.length===1?null:(0,rn.jsx)(Yt.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,rn.jsxs)(Yt.MenuList,{dense:!0,sx:{minWidth:120},children:[e.file.data.origin.status.containerStatuses.map(t=>{let n="orange";return t.started?(n="green",e.file&&e.file.data.origin.metadata.deletionTimestamp&&(n="blue")):t.state.terminated&&(n="gray"),(0,rn.jsx)(Yt.MenuItem,{onClick:()=>e.onContainerSelected(e.channel,e.file,t.name),children:(0,rn.jsxs)(Yt.Stack,{direction:"row",alignItems:"center",children:[(0,rn.jsx)(Yt.Box,{sx:{width:"10px",height:"10px",backgroundColor:n,margin:"1px",display:"inline-block"}}),(0,rn.jsxs)(Yt.Typography,{children:["\xA0",t.name]})]})},t.name)}),e.includeAllContainers&&(0,rn.jsxs)(rn.Fragment,{children:[(0,rn.jsx)(Yt.Divider,{}),(0,rn.jsx)(Yt.MenuItem,{onClick:()=>e.onContainerSelected(e.channel,e.file,"*all"),children:(0,rn.jsx)(Yt.Typography,{children:"All containers"})},"all")]})]})}));var lx=I(Rt(),1),cx=I(Ml(),1),ux=I(Dl(),1),tt=I(fe(),1),sx={get:cx.default,set:ux.default},MM=ix(),mx=e=>{let t=(0,Jn.useRef)(null),n=(0,Jn.useRef)(e.data.source.data.origin),[a,r]=(0,Jn.useState)(!1),[i,s]=(0,Jn.useState)(!1),[o,l]=(0,Jn.useState)(),[c,d]=(0,Jn.useState)(""),[m,f]=(0,Jn.useState)(e.isMaximized),h=e.data;(0,Jn.useEffect)(()=>{n.current||(n.current={})},[]),(0,lx.useKeyboard)(e.onClose,e.id);let k=(R,ce,ve)=>{e.onClose(e.id),e.data.onLink(R,ce,ve)},v=e.data.actions.filter(R=>R.name!=="details"&&(R.isVisible?.(R.name??"",e.data.source,e.selectedFiles)??!0)),A=R=>R.isEnabled?.(R.name??"",e.data.source,e.selectedFiles)??!0,q=(R,ce)=>{if(e.selectedFiles[0].class==="Pod"&&(e.data.containerSelectionOptions.get(R)||0)>=1){d(R),l(ce);return}e.data.onAction(R,e.selectedFiles[0].path||"",void 0)},de=()=>{e.onFocus&&e.onFocus()},pe=()=>{e.onWindowChange(e.id,!m,e.x,e.y,e.width,e.height),f(!m)},H=R=>{f(!1),t.current?.snapTo(R)},le=(R,ce)=>{e.data.source.data.origin.kind==="ConfigMap"&&sx.set(n.current,R,ce),e.data.source.data.origin.kind==="Secret"&&sx.set(n.current,R,btoa(ce)),s(!0)};return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)(ta,{ref:t,id:e.id,isMaximized:m,isActive:e.atFront,onFocus:de,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,tt.jsx)(ut.DialogTitle,{sx:{cursor:m?"default":"move",py:1},id:"draggable-dialog-title",children:(0,tt.jsxs)(ut.Stack,{direction:"row",alignItems:"center",spacing:1,children:[(0,tt.jsx)(ut.Typography,{variant:"subtitle1",noWrap:!0,sx:{fontWeight:"bold",flexShrink:0},children:`${h.source.data.origin.kind}:`}),(0,tt.jsx)(ut.Typography,{variant:"body2",noWrap:!0,children:e.title}),(0,tt.jsx)(ut.Tooltip,{title:"Copy",children:(0,tt.jsx)(ut.IconButton,{size:"small",onClick:()=>MM(e.title),children:(0,tt.jsx)(ox.ContentCopy,{fontSize:"inherit"})})}),(0,tt.jsx)(ut.Stack,{direction:"row",spacing:.5,className:"no-drag",children:v.map((R,ce)=>R.name==="divider"?(0,tt.jsx)(ut.Typography,{sx:{flexGrow:1}}):(0,tt.jsx)(ut.Tooltip,{title:R.text,children:(0,tt.jsx)("span",{children:(0,tt.jsx)(ut.IconButton,{size:"small",color:"primary",disabled:!A(R),onClick:ve=>q(R.name,ve.currentTarget),children:R.icon})})},ce))}),(0,tt.jsx)(ut.Typography,{sx:{flexGrow:1}}),(0,tt.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:m,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:pe,onClose:()=>e.onClose(e.id),onSnap:H})]})}),(0,tt.jsx)(ut.DialogContent,{dividers:!0,sx:{p:0,display:"flex",flexDirection:"column"},children:(0,tt.jsx)(ut.Box,{sx:{p:2,flexGrow:1,overflow:"auto"},children:(0,tt.jsx)(nx,{object:h.source,sections:h.sections,onChangeData:le,onLink:k,onContainsEdit:r})})}),(0,tt.jsx)(ut.DialogActions,{sx:{p:.5,pr:2},children:(0,tt.jsx)(ut.Button,{onClick:()=>e.data.onApply(h.path,n.current),disabled:!a||!i,variant:"contained",size:"small",children:"Apply"})})]}),o&&e.selectedFiles.length>0&&(0,tt.jsx)(Ol,{channel:c,file:e.selectedFiles[0],onClose:()=>l(void 0),anchorParent:o,onContainerSelected:(R,ce,ve)=>{e.data.onAction(R,ce.path||"",ve),l(void 0)},includeAllContainers:h.containerSelectionOptions.get(c)===2})]})};u();var Gt=I(ht(),1),Nn=I(Ze(),1),Dx=I(fx(),1),Ox=I(hx(),1),Rx=I(yx(),1),Nx=I(Jt(),1);var Gi=I(bx(),1),Rl=I(vx(),1),Ex=I(Sx(),1),Ax=I(Ix(),1);var Nl=I(Rt(),1),Px=I(Mx(),1),wt=I(fe(),1),Im=xl(),Fx=e=>{let t=(0,Gt.useTheme)(),n=t.palette.mode==="dark"?Px.oneDark:"light",[a,r]=(0,Nn.useState)((0,wt.jsx)(wt.Fragment,{})),[i,s]=(0,Nn.useState)(""),o=(0,Nn.useRef)(null),l=(0,Nn.useRef)(!1),c=(0,Nn.useRef)(null),d=(0,Nn.useRef)(null),[m,f]=(0,Nn.useState)(e.isMaximized),h=e.data,k=Rl.EditorView.theme({"&":{height:"100%",fontSize:"12px",fontFamily:"'Fira Code', 'Source Code Pro', monospace"},".cm-foldGutter":{width:"25px",pointerEvents:"auto !important"},".cm-gutterElement":{display:"flex !important",alignItems:"center",justifyContent:"center",cursor:"pointer !important",pointerEvents:"auto !important"},".cm-foldGutter span":{pointerEvents:"none"}},{dark:t.palette.mode==="dark"});(0,Nn.useEffect)(()=>{let H=le=>{if(le.key==="Escape"&&v(),!c.current?.contains(document.activeElement))return;let R=le.ctrlKey||le.metaKey;R&&le.key.toLowerCase()==="f"&&(le.preventDefault(),le.stopPropagation(),d.current&&(0,Gi.openSearchPanel)(d.current)),R&&le.key.toLowerCase()==="d"&&(le.preventDefault(),le.stopPropagation())};return window.addEventListener("keydown",H,!0),()=>window.removeEventListener("keydown",H,!0)},[]);let v=()=>{l.current?r((0,Nl.MsgBoxYesNo)("Edit exit","You have some changes not applied. Are you sure you want to exit without applying?",r,H=>{H===Nl.MsgBoxButtons.Yes&&e.onClose(e.id)})):e.onClose(e.id)};(0,Nn.useEffect)(()=>{if(h.isInitialized)h.code&&s(h.code);else{if(h.isInitialized=!0,h.code===void 0){let H=e.selectedFiles[0].data.origin,le=Wg(H);h.code=Im.dump(le),s(h.code)}else s(h.code);h.oldCode=h.code}},[]);let A=()=>{e.onFocus&&e.onFocus()},q=()=>{e.onWindowChange(e.id,!m,e.x,e.y,e.width,e.height),f(!m)},de=H=>{f(!1),o.current?.snapTo(H)},pe=H=>{h.code=H,s(H);try{let le=Im.load(h.oldCode),R=Im.load(H);l.current=!$s(R,le)}catch{l.current=(H??"")!==(h.oldCode??"")}};return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)(ta,{ref:o,id:e.id,isMaximized:m,isActive:e.atFront,onFocus:A,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,wt.jsx)(Gt.DialogTitle,{sx:{cursor:m?"default":"move",py:1},id:"draggable-dialog-title",children:(0,wt.jsxs)(Gt.Stack,{direction:"row",alignItems:"center",children:[(0,wt.jsx)(Gt.Typography,{sx:{flexGrow:1}}),(0,wt.jsxs)(Gt.Typography,{children:[h.allowEdit?(0,wt.jsx)(Nx.Edit,{}):(0,wt.jsx)(Vn,{}),"\xA0",e.title]}),(0,wt.jsx)(Gt.Typography,{sx:{flexGrow:1}}),(0,wt.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:m,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:q,onClose:v,onSnap:de})]})}),(0,wt.jsx)(Gt.DialogContent,{children:(0,wt.jsx)("div",{ref:c,style:{height:"100%",width:"100%",paddingTop:"2px"},onMouseDownCapture:H=>{H.target.closest(".cm-foldGutter")&&d.current&&(H.preventDefault(),H.stopPropagation(),d.current.focus(),(0,Ax.foldCode)(d.current))},className:"no-drag",children:(0,wt.jsx)(Dx.default,{value:i,onChange:pe,theme:n,onUpdate:H=>{H.view&&(d.current=H.view)},extensions:[Ox.EditorState.readOnly.of(!h.allowEdit),(0,Rx.yaml)(),(0,Gi.search)({top:!0}),k,Rl.keymap.of([...Ex.defaultKeymap,...Gi.searchKeymap])]})})}),(0,wt.jsx)(Gt.DialogActions,{sx:{p:"4px 4px",pr:2},children:(0,wt.jsx)(Gt.Button,{onClick:()=>h.onOk?.(i,h.source),disabled:!l.current,children:"Ok"})})]}),a]})};u();var Ee=new Map;Ee.set("Pod",`
247
+ `,e.getElementsByTagName("head")[0].appendChild(n)}e.body&&fb(e.body,"react-draggable-transparent-selection")}function Od(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Rd(e)}):Rd(e)}function Rd(e){if(e)try{e.body&&pb(e.body,"react-draggable-transparent-selection");let t=e.selection;if(t)t.empty();else{let n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function fb(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function pb(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}function hb(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a=typeof a=="string"?a:xb(a);let r=hc(e);if(typeof a=="string"){let{ownerDocument:i}=r,s=i.defaultView;if(!s)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(a==="parent"?o=r.parentNode:o=r.getRootNode().querySelector(a),!(o instanceof s.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');let l=o,c=s.getComputedStyle(r),d=s.getComputedStyle(l);a={left:-r.offsetLeft+Vt(d.paddingLeft)+Vt(c.marginLeft),top:-r.offsetTop+Vt(d.paddingTop)+Vt(c.marginTop),right:ib(l)-ab(r)-r.offsetLeft+Vt(d.paddingRight)-Vt(c.marginRight),bottom:rb(l)-nb(r)-r.offsetTop+Vt(d.paddingBottom)-Vt(c.marginBottom)}}return hs(a.right)&&(t=Math.min(t,a.right)),hs(a.bottom)&&(n=Math.min(n,a.bottom)),hs(a.left)&&(t=Math.max(t,a.left)),hs(a.top)&&(n=Math.max(n,a.top)),[t,n]}function Nd(e,t,n){let a=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[a,r]}function gb(e){return e.props.axis==="both"||e.props.axis==="x"}function yb(e){return e.props.axis==="both"||e.props.axis==="y"}function mc(e,t,n){let a=typeof t=="number"?cb(e,t):null;if(typeof t=="number"&&!a)return null;let r=hc(n),i=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return sb(a||e,i,n.props.scale)}function dc(e,t,n){let a=!hs(e.lastX),r=hc(e);return a?{node:r,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:r,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function fc(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function xb(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function hc(e){let t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var bb=typeof process<"u"&&process.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},Qn=bb,Hn={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},ka=Hn.mouse,rr=class extends li.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Dd(e.target,this.props.handle,t)||this.props.cancel&&Dd(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();let a=ub(e);this.touchIdentifier=a;let r=mc(e,a,this);if(r==null)return;let{x:i,y:s}=r,o=dc(this,i,s);Qn("DraggableCore: handleDragStart: %j",o),Qn("calling",this.props.onStart),!(this.props.onStart(e,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&db(n,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=s,uc(n,ka.move,this.handleDrag),uc(n,ka.stop,this.handleDragStop))},this.handleDrag=e=>{let t=mc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let s=n-this.lastX,o=a-this.lastY;if([s,o]=Nd(this.props.grid,s,o),!s&&!o)return;n=this.lastX+s,a=this.lastY+o}let r=dc(this,n,a);if(Qn("DraggableCore: handleDrag: %j",r),this.props.onDrag(e,r)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let s=document.createEvent("MouseEvents");s.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(s)}return}this.lastX=n,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=mc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=a-this.lastY||0;[o,l]=Nd(this.props.grid,o,l),n=this.lastX+o,a=this.lastY+l}let r=dc(this,n,a);if(this.props.onStop(e,r)===!1||this.mounted===!1)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&Od(s.ownerDocument),Qn("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(Qn("DraggableCore: Removing handlers"),ar(s.ownerDocument,ka.move,this.handleDrag),ar(s.ownerDocument,ka.stop,this.handleDragStop))},this.onMouseDown=e=>(ka=Hn.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(ka=Hn.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(ka=Hn.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(ka=Hn.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&uc(e,Hn.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;ar(t,Hn.mouse.move,this.handleDrag),ar(t,Hn.touch.move,this.handleDrag),ar(t,Hn.mouse.stop,this.handleDragStop),ar(t,Hn.touch.stop,this.handleDragStop),ar(e,Hn.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&Od(t)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Fd.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):(Qn("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return li.cloneElement(li.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};rr.displayName="DraggableCore";rr.propTypes={allowAnyClick:Ft.default.bool,allowMobileScroll:Ft.default.bool,children:Ft.default.node.isRequired,disabled:Ft.default.bool,enableUserSelectHack:Ft.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Ft.default.arrayOf(Ft.default.number),handle:Ft.default.string,cancel:Ft.default.string,nodeRef:Ft.default.object,nonce:Ft.default.string,onStart:Ft.default.func,onDrag:Ft.default.func,onStop:Ft.default.func,onMouseDown:Ft.default.func,scale:Ft.default.number,className:oi,style:oi,transform:oi};rr.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var gs=class extends Ta.Component{constructor(e){super(e),this.onDragStart=(t,n)=>{if(Qn("Draggable: onDragStart: %j",n),this.props.onStart(t,fc(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,n)=>{if(!this.state.dragging)return!1;Qn("Draggable: onDrag: %j",n);let a=fc(this,n),r={x:a.x,y:a.y,slackX:0,slackY:0};if(this.props.bounds){let{x:s,y:o}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[l,c]=hb(this,r.x,r.y);r.x=l,r.y=c,r.slackX=this.state.slackX+(s-r.x),r.slackY=this.state.slackY+(o-r.y),a.x=r.x,a.y=r.y,a.deltaX=r.x-this.state.x,a.deltaY=r.y-this.state.y}if(this.props.onDrag(t,a)===!1)return!1;this.setState(r)},this.onDragStop=(t,n)=>{if(!this.state.dragging||this.props.onStop(t,fc(this,n))===!1)return!1;Qn("Draggable: onDragStop: %j",n);let r={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){let{x:s,y:o}=this.props.position;r.x=s,r.y=o}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(Qn("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Ed.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:r,defaultClassNameDragging:i,defaultClassNameDragged:s,position:o,positionOffset:l,scale:c,...d}=this.props,m={},f=null,I=!!!o||this.state.dragging,C=o||a,L={x:gb(this)&&I?this.state.x:C.x,y:yb(this)&&I?this.state.y:C.y};this.state.isElementSVG?f=lb(L,l):m=ob(L,l);let U=Ta.Children.only(n),oe=Td(U.props.className||"",r,{[i]:this.state.dragging,[s]:this.state.dragged});return Ta.createElement(rr,{...d,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},Ta.cloneElement(U,{className:oe,style:{...U.props.style,...m},transform:f}))}};gs.displayName="Draggable";gs.propTypes={...rr.propTypes,axis:Qe.default.oneOf(["both","x","y","none"]),bounds:Qe.default.oneOfType([Qe.default.shape({left:Qe.default.number,right:Qe.default.number,top:Qe.default.number,bottom:Qe.default.number}),Qe.default.string,Qe.default.oneOf([!1])]),defaultClassName:Qe.default.string,defaultClassNameDragging:Qe.default.string,defaultClassNameDragged:Qe.default.string,defaultPosition:Qe.default.shape({x:Qe.default.number,y:Qe.default.number}),positionOffset:Qe.default.shape({x:Qe.default.oneOfType([Qe.default.number,Qe.default.string]),y:Qe.default.oneOfType([Qe.default.number,Qe.default.string])}),position:Qe.default.shape({x:Qe.default.number,y:Qe.default.number}),className:oi,style:oi,transform:oi};gs.defaultProps={...rr.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1};var _d=gs;var cf=k(lf(),1),ln=k(he(),1),Cw=_t.default.forwardRef((e,t)=>{let{handleAxis:n,...a}=e,r=n==="ne"||n==="nw",i=n==="se"||n==="ne",s={se:"nwse-resize",sw:"nesw-resize",ne:"nesw-resize",nw:"nwse-resize"},o={position:"absolute",[r?"top":"bottom"]:3,[i?"right":"left"]:3,width:"12px",height:"12px",zIndex:20,cursor:s[n]??"pointer",borderRight:i?"3px solid #bdbdbd":"none",borderLeft:i?"none":"3px solid #bdbdbd",borderTop:r?"3px solid #bdbdbd":"none",borderBottom:r?"none":"3px solid #bdbdbd",borderRadius:n==="se"?"0 0 4px 0":n==="sw"?"0 0 0 4px":n==="ne"?"0 4px 0 0":"4px 0 0 0"};return(0,ln.jsx)("div",{ref:t,style:o,...a})}),vw=_t.default.forwardRef((e,t)=>{let{nodeRef:n,position:a,onDrag:r,onStart:i,onStop:s,disabled:o,...l}=e;return(0,ln.jsx)(_d,{nodeRef:n,handle:"#draggable-dialog-title",cancel:'[class*="MuiIconButton-root"], [class*="MuiButton-root"], .no-drag',position:o?{x:0,y:0}:a,onStart:i,onDrag:r,onStop:s,disabled:o,children:(0,ln.jsx)(wn.Paper,{...l,ref:n,style:{...l.style,position:"fixed",top:0,left:0,margin:0,display:"flex",flexDirection:"column",overflow:"hidden"}})})});function Iw({id:e,children:t,isMaximized:n=!1,isActive:a=!1,onFocus:r,onWindowChange:i,x:s=100,y:o=50,width:l=800,height:c=600},d){let[m,f]=(0,_t.useState)(!1),[g,I]=(0,_t.useState)(!1),[C,L]=(0,_t.useState)({x:s,y:o,width:l,height:c}),U=(0,_t.useRef)(null),oe=(0,_t.useRef)(null),de=(0,_t.useRef)(null),B=(0,wn.useTheme)();(0,_t.useImperativeHandle)(d,()=>({snapTo:le=>{let Q=Math.floor(window.innerWidth/2),Ee=window.innerHeight,ze=le==="left"?{x:0,y:0,width:Q,height:Ee}:{x:Q,y:0,width:Q,height:Ee};L(ze),i?.(e,!1,ze.x,ze.y,ze.width,ze.height)}}));let ue=()=>{U.current&&oe.current&&(oe.current.innerHTML=U.current.innerHTML)},R=()=>{ue(),f(!0),r?.()},ce=()=>{f(!1),i?.(e,n,C.x,C.y,C.width,C.height)},Ce=()=>{I(!0),r?.()},Te=()=>{I(!1),i?.(e,n,C.x,C.y,C.width,C.height)},z=(0,_t.useCallback)((le,Q)=>{L(Ee=>({...Ee,x:Q.x,y:Q.y}))},[]),H=(0,_t.useCallback)((le,{size:Q,handle:Ee})=>{L(ze=>{let $e=ze.x,It=ze.y;return(Ee==="sw"||Ee==="nw")&&($e=ze.x-(Q.width-ze.width)),(Ee==="ne"||Ee==="nw")&&(It=ze.y-(Q.height-ze.height)),{...ze,width:Q.width,height:Q.height,x:$e,y:It}})},[]);return(0,ln.jsx)(wn.Dialog,{open:!0,hideBackdrop:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,disablePortal:!0,maxWidth:!1,onMouseDown:r,PaperComponent:vw,PaperProps:{nodeRef:de,position:{x:C.x,y:C.y},onStart:R,onDrag:z,onStop:ce,disabled:n},sx:{pointerEvents:"none","& .MuiDialog-container":{display:"block"},"& .MuiDialog-paper":{pointerEvents:"auto",maxWidth:"none",maxHeight:"none",transition:m||g?"none":"all 0.2s ease-in-out"}},children:(0,ln.jsx)(cf.ResizableBox,{width:n?window.innerWidth:C.width,height:n?window.innerHeight:C.height,onResizeStart:Ce,onResize:H,onResizeStop:Te,resizeHandles:n?[]:["se","sw","ne","nw"],handle:(le,Q)=>(0,ln.jsx)(Cw,{handleAxis:le,ref:Q}),children:(0,ln.jsxs)(wn.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",position:"relative",overflow:"hidden",bgcolor:"background.paper",border:B.palette.mode==="dark"?`1px solid ${a?"rgba(255,255,255,0.18)":"rgba(255,255,255,0.05)"}`:`1px solid ${B.palette.divider}`,boxShadow:B.palette.mode==="dark"?a?"0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 40px rgba(0,0,0,1), 0 4px 12px rgba(0,0,0,0.8)":"0 2px 8px rgba(0,0,0,0.6)":void 0,opacity:B.palette.mode==="dark"&&!a?.6:1,transition:"box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease"},children:[g&&(0,ln.jsx)(wn.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"text.secondary"},children:"Resizing..."}),(0,ln.jsx)(wn.Box,{ref:oe,sx:{display:m?"block":"none",width:"100%",height:"100%",filter:"blur(3px)",opacity:.8,pointerEvents:"none",transform:"translateZ(0)"}}),(0,ln.jsx)(wn.Box,{ref:U,sx:{display:m||g?"none":"block",width:"100%",height:"100%"},children:(0,ln.jsx)(wn.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",border:B.palette.mode==="dark"?`1px solid ${a?"#444":"#1e1e1e"}`:"1px solid #ccc",backgroundColor:B.palette.background.default,position:"relative",borderRadius:n?0:"4px",overflow:"hidden"},children:t})})]})})})}var ta=_t.default.forwardRef(Iw);u();var uf=k(je(),1),ut=k(ft(),1),na=k(Kt(),1);var Le=k(he(),1),aa=({id:e,atTop:t,isMaximized:n,onMinimize:a,onTop:r,onMaximize:i,onClose:s,onSnap:o})=>{let[l,c]=(0,uf.useState)(null),d=()=>c(null);return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(ut.IconButton,{size:"small",onClick:m=>c(m.currentTarget),children:(0,Le.jsx)(na.MoreVert,{fontSize:"small"})}),(0,Le.jsxs)(ut.Menu,{anchorEl:l,open:!!l,onClose:d,children:[(0,Le.jsxs)(ut.MenuItem,{onClick:()=>{r(),d()},children:[(0,Le.jsx)(ut.ListItemIcon,{children:t?(0,Le.jsx)(Zm,{fontSize:"small",sx:{color:"info.main"}}):(0,Le.jsx)(na.Place,{fontSize:"small"})}),(0,Le.jsx)(ut.ListItemText,{children:t?"Unpin from top":"Pin to top"})]}),(0,Le.jsxs)(ut.MenuItem,{onClick:()=>{i(),d()},children:[(0,Le.jsx)(ut.ListItemIcon,{children:n?(0,Le.jsx)(na.FullscreenExit,{fontSize:"small"}):(0,Le.jsx)(nd,{fontSize:"small"})}),(0,Le.jsx)(ut.ListItemText,{children:n?"Restore":"Maximize"})]}),o&&(0,Le.jsx)(ut.Divider,{}),o&&(0,Le.jsxs)(ut.MenuItem,{onClick:()=>{o("left"),d()},children:[(0,Le.jsx)(ut.ListItemIcon,{children:(0,Le.jsx)(jm,{fontSize:"small"})}),(0,Le.jsx)(ut.ListItemText,{children:"Snap left"})]}),o&&(0,Le.jsxs)(ut.MenuItem,{onClick:()=>{o("right"),d()},children:[(0,Le.jsx)(ut.ListItemIcon,{children:(0,Le.jsx)(na.East,{fontSize:"small"})}),(0,Le.jsx)(ut.ListItemText,{children:"Snap right"})]})]}),(0,Le.jsx)(ut.IconButton,{size:"small",onClick:a,children:(0,Le.jsx)(Xm,{fontSize:"small"})}),(0,Le.jsx)(ut.IconButton,{size:"small",onClick:s,sx:{"&:hover":{color:"error.main"}},children:(0,Le.jsx)(na.Close,{fontSize:"small"})})]})};u();var Fe=k(ft(),1),Fi=k(je(),1);u();var Bg=k(Ch(),1),Sk=xl(),$g=e=>{try{let t=["apiVersion","kind","metadata","status","spec"],n={};return t.forEach(a=>{e&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}),Object.keys(e).forEach(a=>{t.includes(a)||(n[a]=e[a])}),n}catch(t){return console.error("Error al convertir JSON a YAML:",t),{}}};function $s(e){if(e)return JSON.parse(JSON.stringify(e))}function qs(e,t){if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let r of n)if(!a.includes(r)||!qs(e[r],t[r]))return!1;return!0}function ym(e,t,n){let a=[];if(!t)return[];let r=n?t:t.toLowerCase();function i(s,o){if(s!=null)if(typeof s=="object"){for(let l in s)if(Object.prototype.hasOwnProperty.call(s,l)){let c=Array.isArray(s)?`${o}[${l}]`:o?`${o}.${l}`:l;(n?l:l.toLowerCase()).includes(r)&&a.push(c),i(s[l],c)}}else{let l=String(s);(n?l:l.toLowerCase()).includes(r)&&a.push(o)}}return i(e,""),[...new Set(a)].filter(s=>s!=="")}function Us(e,t=2){if(!Number.isFinite(e)||e===0)return"0 Bytes";let n=1024,a=t<0?0:t,r=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(a))+" "+r[i]}function Ys(e){let t=e;return e.endsWith("n")&&(t=(+e.replace("n","")/1e9).toString()),e.endsWith("m")&&(t=(+e.replace("m","")/1e6).toString()),e.endsWith("k")&&(t=(+e.replace("k","")/1e3).toString()),+t}function Kn(e){if(!e)return 0;e=e.toString();let t=e.trim().match(/^([\d.]+)\s*([KMGTPE]i?)B?$/i);if(!t)return/^\d+$/.test(e)?+e:(console.error(`'size' format is not recognized: ${e}`),0);let n=parseFloat(t[1]),a=t[2].toUpperCase().replace(/B$/,""),r,i=1024;switch(a){case"EI":case"E":r=i**6;break;case"PI":case"P":r=i**5;break;case"TI":case"T":r=i**4;break;case"GI":case"G":r=i**3;break;case"MI":case"M":r=i**2;break;case"KI":case"K":r=i**1;break;case"":case"B":r=1;break;default:console.warn(`Unknown unit '${a}'. We assume Bytes.`),r=1;break}return n*r}function bl(e){try{let n=Bg.CronExpressionParser.parse(e).next().toDate(),a=new Date,r=n.getTime()-a.getTime(),i=Math.floor(r/1e3%60),s=Math.floor(r/(1e3*60)%60),o=Math.floor(r/(1e3*60*60)%24),l=Math.floor(r/(1e3*60*60*24));return{date:n,isoString:n.toISOString(),timeLeft:{days:l,hours:o,minutes:s,seconds:i},description:`${l}d ${o}h ${s}m ${i}s`}}catch{return}}function qg(e){let t=e.spec.versions.find(l=>l.served);if(!t)return"";let n=e.spec.group,a=e.spec.names.kind,r=t.name,i=t.schema.openAPIV3Schema;function s(l){if(!l)return;if(l.type==="object"){let d={};return l.required&&l.properties&&l.required.forEach(m=>{let f=s(l.properties[m]);f!==void 0&&(d[m]=f)}),Object.keys(d).length>0?d:void 0}if(l.type==="array"&&l.items){let d=s(l.items);return d!==void 0?[d]:[]}if(l.default!==void 0)return l.default;let c={string:"example-value",integer:1,number:1,boolean:!0};return l.type?c[l.type]:"todo-value"}let o={apiVersion:`${n}/${r}`,kind:a,metadata:{name:`minimal-${a.toLowerCase()}`,namespace:"default"},spec:s(i.properties?.spec)||{}};return Sk.dump(o,{indent:2,noRefs:!0})}var gt=k(he(),1),Ug=e=>{let[t,n]=(0,Fi.useState)(null),[a,r]=(0,Fi.useState)({}),[i,s]=(0,Fi.useState)({});(0,Fi.useEffect)(()=>{if(e.model){let d=$s(e.model);n(d),Object.keys(d).forEach(m=>{let f=d[m];f&&typeof f=="object"&&f.text&&typeof e.model[m]?.asyncAction=="function"&&e.model[m].asyncAction().then(g=>{r(I=>({...I,[m]:g}))})})}},[e.model]);let o=(d,m)=>{n(f=>({...f,[d]:m}))},l=(d,m,f)=>{n(g=>({...g,[d]:{...g[d],[m]:f}}))},c=()=>{t&&e.onApply($s(t))};return t?(0,gt.jsxs)(Fe.Menu,{open:!!e.anchorParent,anchorEl:e.anchorParent,onClose:e.onClose,children:[(0,gt.jsx)(Fe.Stack,{direction:"column",width:"460px",p:2,spacing:1.5,children:Object.keys(t).map((d,m)=>{let f=t[d];return(0,gt.jsxs)(Fe.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:2,children:[(0,gt.jsxs)(Fe.Typography,{variant:"body2",sx:{fontWeight:"bold",textTransform:"capitalize"},children:[d,":"]}),typeof f=="boolean"&&(0,gt.jsx)(Fe.Switch,{checked:f,onChange:g=>o(d,g.target.checked)}),typeof f=="number"&&(0,gt.jsx)(Fe.TextField,{type:"number",variant:"standard",value:f,onChange:g=>o(d,Number(g.target.value)),slotProps:{htmlInput:{style:{textAlign:"right",width:"80px"}}}}),f&&typeof f=="object"&&f.options&&f.value!==void 0&&(0,gt.jsx)(Fe.Select,{variant:"standard",value:f.value,onChange:g=>l(d,"value",g.target.value),sx:{minWidth:"100px"},children:f.options.map((g,I)=>(0,gt.jsx)(Fe.MenuItem,{value:g,children:g},I))}),f&&typeof f=="object"&&f.button&&(0,gt.jsx)(Fe.Button,{variant:"outlined",size:"small",onClick:()=>e.model[d].action(),children:f.button}),f&&typeof f=="object"&&f.text&&(0,gt.jsx)(Fe.Typography,{variant:"body2",color:"text.secondary",children:a[d]!==void 0?a[d]:"..."}),f&&typeof f=="object"&&Array.isArray(f.available)&&Array.isArray(f.value)&&(0,gt.jsxs)(Fe.Stack,{spacing:.5,sx:{width:"100%",mt:.5},children:[f.available.length>8&&(0,gt.jsx)(Fe.TextField,{size:"small",variant:"outlined",placeholder:"Filter...",value:i[d]??"",onChange:g=>s(I=>({...I,[d]:g.target.value})),slotProps:{htmlInput:{style:{padding:"4px 8px",fontSize:"0.75rem"}}}}),(0,gt.jsx)(Fe.List,{dense:!0,disablePadding:!0,sx:{maxHeight:200,overflowY:"auto",width:"100%",border:"1px solid",borderColor:"divider",borderRadius:1},children:f.available.filter(g=>!i[d]||g.toLowerCase().includes(i[d].toLowerCase())).map((g,I)=>(0,gt.jsx)(Fe.ListItem,{disablePadding:!0,sx:{px:1},children:(0,gt.jsx)(Fe.FormControlLabel,{control:(0,gt.jsx)(Fe.Checkbox,{size:"small",checked:f.value.includes(g),onChange:C=>{let L=C.target.checked?[...f.value,g]:f.value.filter(U=>U!==g);l(d,"value",L)}}),label:(0,gt.jsx)(Fe.Typography,{variant:"caption",children:g})})},I))})]})]},m)})}),(0,gt.jsxs)(Fe.DialogActions,{sx:{p:2},children:[(0,gt.jsx)(Fe.Button,{onClick:e.onClose,color:"inherit",children:"Cancel"}),(0,gt.jsx)(Fe.Button,{onClick:c,variant:"contained",color:"primary",children:"Apply"})]})]}):null};u();var Ck=e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return Math.abs(t)%360},Yg=(e,t="light")=>{if(!e)return{dot:"transparent",tabBg:t==="dark"?"#2a2a2a":"#ebebeb"};let n=Ck(e);return{dot:`hsl(${n}, 55%, 45%)`,tabBg:t==="dark"?`hsl(${n}, 30%, 26%)`:`hsl(${n}, 22%, 89%)`}},kr=e=>({headers:{Authorization:e?"Bearer "+e:"","X-Kwirth-App":"true"}});var nn=k(Ot(),1),Z=k(he(),1),Kg=e=>{let t=e.data,n=(0,Dn.useRef)(null),a=(0,Dn.useRef)(null),[r,i]=(0,Dn.useState)((0,Z.jsx)(Z.Fragment,{})),[s,o]=(0,Dn.useState)(void 0),[l,c]=(0,Dn.useState)(void 0),[d,m]=(0,Dn.useState)(e.isMaximized),[,f]=(0,Dn.useState)(0),g=()=>f(z=>z+1);(0,Dn.useEffect)(()=>{if(!t.isInitialized){if(t.isInitialized=!0,t.content=I(t.channelId),!t.content)return;switch(t.channelId){case"log":{let z=t.content?.externalChannel;if(z?.prepareExternalChannel){let H=z.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=H.data,t.content.externalChannelObject.config=H.config,t.content.externalChannelObject.instanceConfig=H.instanceConfig,t.content.externalChannelObject.config.maxMessages=t.settings?.logLines??5e3}t.formConfig={lines:t.settings?.logLines??5e3,showNames:!1,timestamp:!1,startDiagnostics:!1};break}case"metrics":{let z=t.content?.externalChannel;if(z?.prepareExternalChannel){let Ee=z.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=Ee.data,t.content.externalChannelObject.config=Ee.config,t.content.externalChannelObject.instanceConfig=Ee.instanceConfig}let H=Array.from(t.channelObject?.metricsList?.keys()||[]).filter(Ee=>Ee.startsWith("container_")||Ee.startsWith("kwirth_")),le=["kwirth_container_cpu_percentage","kwirth_container_memory_percentage","kwirth_container_transmit_mbps","kwirth_container_receive_mbps","kwirth_container_write_mbps","kwirth_container_read_mbps"],Q=t.content?.externalChannelObject?.instanceConfig?.metrics;t.formConfig={aggregate:!0,merge:!1,type:{value:"line",options:["line","bar","area"]},width:3,depth:50,legend:!0,metrics:{available:H,value:Q?.length?Q:le}};break}case"fileman":t.formConfig={},L(t.content);break;case"trivy":{let z=t.content?.externalChannel;if(z?.prepareExternalChannel){let le=z.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=le.data,t.content.externalChannelObject.config=le.config,t.content.externalChannelObject.instanceConfig=le.instanceConfig}let H=t.content.externalChannelObject.instanceConfig;t.formConfig={ignoreCritical:H?.ignoreCritical??!1,ignoreHigh:H?.ignoreHigh??!1,ignoreMedium:H?.ignoreMedium??!1,ignoreLow:H?.ignoreLow??!0,Status:{text:"Status",asyncAction:async()=>{try{return t.content?.externalChannelObject?.data.ri?await(await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=status`,kr(t.content?.externalChannelObject?.accessString))).text():"No RI. Wait a few seconds."}catch{return"N/A"}}},"Install Trivy operator":{button:"Install",action:async()=>{t.content?.externalChannelObject?.data.ri?(i((0,nn.MsgBoxWait)("Trivy install","Wait for Trivy to start installation",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=install`,kr(t.content?.externalChannelObject?.accessString)),i((0,nn.MsgBoxOk)("Install","Installation started, close this dialog and wait for Trivy to finish startup",i))):i((0,nn.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))}},"Remove Trivy operator":{button:"Remove",action:async()=>{t.content?.externalChannelObject?.data.ri?(i((0,nn.MsgBoxWait)("Trivy remove","Wait for Trivy to start removing",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=remove`,kr(t.content?.externalChannelObject?.accessString)),i((0,nn.MsgBoxOk)("Remove","Removing started, close this dialog and wait for Trivy to completely disappear from your cluster",i))):i((0,nn.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))}}};break}case"news":t.formConfig={maxItems:50,feeds:{available:["kubernetes","ai"],value:["kubernetes","ai"]}};break;default:{let z=t.content?.externalChannel;if(z?.prepareExternalChannel){let H=z.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=H.data,t.content.externalChannelObject.config=H.config,t.content.externalChannelObject.instanceConfig=H.instanceConfig,t.formConfig=H.formConfig}else t.formConfig={};break}}}},[]),(0,Dn.useEffect)(()=>{if(t.channelId==="ops"){let z=async H=>{if(!a.current?.contains(document.activeElement)||["Control","Alt","Shift","Meta"].includes(H.key))return;let le=t.content.termId||e.selectedFiles[0]?.data?.origin?.metadata?.namespace+"/"+e.selectedFiles[0]?.data?.origin?.metadata?.name+"/"+e.container,Q=t.content?.externalChannelObject?.data?.terminalManager?.terminals.get(le),Ee=Q?.socket;if(!Ee||Ee.readyState!==WebSocket.OPEN)return;let ze=H.key.toLowerCase(),$e=null;if(H.ctrlKey,H.ctrlKey&&H.shiftKey&&ze==="c"){H.preventDefault();let It=Q.term?Q.term.getSelection():window.getSelection()?.toString();It&&await navigator.clipboard.writeText(It);return}if(H.ctrlKey&&H.shiftKey&&ze==="v"){H.preventDefault();try{let It=await navigator.clipboard.readText();It&&Ee.send(It)}catch(It){console.error("Clipboard could not be accessed",It)}return}$e=Ik(H),!$e&&H.ctrlKey&&($e=kk(H.key)),!$e&&H.altKey&&H.key.length===1&&($e="\x1B"+H.key),$e||($e=vk[H.key]||(H.key.length===1?H.key:null)),$e&&(H.preventDefault(),H.stopPropagation(),Ee.send($e))};return window.addEventListener("keydown",z,!0),()=>{window.removeEventListener("keydown",z,!0)}}},[e.container,e.selectedFiles,t.content?.externalChannelObject]),oc(async()=>{if(t.content&&!t.content.externalChannelObject.data&&await t.content.externalChannel.initChannel(t.content.externalChannelObject),t.options.autostart&&t.content&&!t.content.externalChannelStarted){for(;t.content?.ws?.readyState!==WebSocket.OPEN;)await new Promise(z=>setTimeout(z,10));t.content?.ws?.readyState===WebSocket.OPEN&&U()}},[]);let I=z=>{let H=(0,wl.createChannelInstance)(t.frontChannels.get(z));if(!H){console.log("Invaid channel instance created");return}let le={ws:void 0,externalChannel:H,externalChannelObject:{isDesktop:t.isDesktop,clusterName:t.channelObject?.clusterName,instanceId:"",view:t.contentView,namespace:t.contentView===Me.EInstanceConfigView.NAMESPACE?e.selectedFiles.map(Q=>Q.data.origin.metadata.name).join(","):[...new Set(e.selectedFiles.map(Q=>Q.data.origin.metadata.namespace))].join(","),group:t.contentView===Me.EInstanceConfigView.GROUP?e.selectedFiles.map(Q=>Q.data.origin.kind+"+"+Q.data.origin.metadata.name).join(","):"",pod:t.contentView===Me.EInstanceConfigView.POD?e.selectedFiles.map(Q=>Q.data.origin.metadata.name).join(","):"",container:t.contentView===Me.EInstanceConfigView.CONTAINER?e.selectedFiles[0].data.origin.metadata.name+"+"+e.container:"",config:void 0,data:void 0,instanceConfig:void 0,channelId:H.channelId},externalChannelStarted:!1,externalChannelPaused:!1,externalChannelPending:!1,settings:t.settings,termId:e.selectedFiles[0]?.data?.origin?.metadata?.namespace+"/"+e.selectedFiles[0]?.data?.origin?.metadata?.name.split("+")[0]+"/"+e.container};return H.requirements.notifier&&(le.externalChannelObject.notify=t.channelObject?.notify),H.requirements.metrics&&(le.externalChannelObject.metricsList=t.channelObject?.metricsList),H.requirements.clusterUrl&&(le.externalChannelObject.clusterUrl=t.channelObject?.clusterUrl),H.requirements.accessString&&(le.externalChannelObject.accessString=t.channelObject?.accessString),le.ws=new WebSocket(t.channelObject?.clusterUrl),le.ws.onmessage=Q=>C(Q),le.ws.onerror=Q=>()=>{console.log("WebSocket error:"+Q,new Date().toISOString())},le.ws.onclose=Q=>{console.log("WebSocket disconnect:"+Q.reason,new Date().toISOString())},H.requirements.webSocket&&(le.externalChannelObject.webSocket=le.ws),t.onOpenExternal&&(le.externalChannelObject.openExternal=t.onOpenExternal),le},C=z=>{let H;try{H=JSON.parse(z.data)}catch(le){console.log(le.stack),console.log(z.data);return}if(!(H.action===Me.EInstanceMessageAction.PING||H.channel===""))if(t.frontChannels.has(H.channel)){let le=t.content.externalChannel?.processChannelMessage(t.content.externalChannelObject,z);le&&(le.action===xm.EChannelRefreshAction.REFRESH?t.onRefresh():le.action===xm.EChannelRefreshAction.STOP&&de())}else console.log("Received invalid channel in message: ",H),t.onNotify(void 0,Gg.ENotifyLevel.ERROR,`'Received invalid channel in message: ${H.channel}`)},L=z=>{let H={paused:!1,started:!1,files:[],currentPath:"",ri:void 0},le={notify:t.onNotify};z.externalChannelObject.webSocket=t.content.ws,z.externalChannelObject.data=H,z.externalChannelObject.config=le},U=()=>{if(!(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)){if(t.content.externalChannelPaused){t.content.externalChannel.continueChannel(t.content.externalChannelObject);let z={channel:t.content.externalChannel.channelId,objects:Me.EInstanceConfigObject.PODS,action:Me.EInstanceMessageAction.CONTINUE,flow:Me.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.contentView,scope:Me.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Me.EInstanceMessageType.SIGNAL};t.content.externalChannelPaused=!1,t.content.ws.send(JSON.stringify(z))}else{t.content.externalChannel.startChannel(t.content.externalChannelObject);let z={channel:t.content.externalChannel.channelId,objects:Me.EInstanceConfigObject.PODS,action:Me.EInstanceMessageAction.START,flow:Me.EInstanceMessageFlow.REQUEST,instance:"",accessKey:t.channelObject?.accessString,scope:Me.EInstanceConfigScope.NONE,view:t.contentView,namespace:t.contentView===Me.EInstanceConfigView.NAMESPACE?e.selectedFiles.map(H=>H.data.origin.metadata.name).join(","):[...new Set(e.selectedFiles.map(H=>H.data.origin.metadata.namespace))].join(","),group:t.contentView===Me.EInstanceConfigView.GROUP?e.selectedFiles.map(H=>H.data.origin.kind+"+"+H.data.origin.metadata.name).join(","):"",pod:t.contentView===Me.EInstanceConfigView.POD?e.selectedFiles.map(H=>H.data.origin.metadata.name).join(","):"",container:t.contentView===Me.EInstanceConfigView.CONTAINER?e.selectedFiles[0].data.origin.metadata.name+"+"+e.container:"",type:Me.EInstanceMessageType.SIGNAL};z.scope=t.content.externalChannel.getScope()||"",z.data=t.content.externalChannelObject.instanceConfig,t.content.ws.send(JSON.stringify(z)),t.content.externalChannelStarted=!0,t.content.externalChannelPaused=!1}g()}},oe=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;t.content.externalChannel.pauseChannel(t.content.externalChannelObject);let z={channel:t.content.externalChannel.channelId,objects:Me.EInstanceConfigObject.PODS,action:Me.EInstanceMessageAction.PAUSE,flow:Me.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.content.externalChannelObject.view,scope:Me.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Me.EInstanceMessageType.SIGNAL};t.content.externalChannelPaused=!0,z.action=Me.EInstanceMessageAction.PAUSE,t.content.ws.send(JSON.stringify(z)),g()},de=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;let z={channel:t.content.externalChannel.channelId,objects:Me.EInstanceConfigObject.PODS,action:Me.EInstanceMessageAction.STOP,flow:Me.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.content.externalChannelObject.view,scope:Me.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:Me.EInstanceMessageType.SIGNAL};t.content.externalChannel.stopChannel(t.content.externalChannelObject),t.content.ws.send(JSON.stringify(z)),t.content.externalChannelStarted=!1,t.content.externalChannelPaused=!1,g()},B=()=>{let z=(0,Z.jsx)(Z.Fragment,{});switch(t.channelId){case"log":z=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Log"}),(0,Z.jsx)(ye.Divider,{}),(0,Z.jsx)(ye.Typography,{fontSize:12,children:"You can configure log depth (number of lines) on the configuration menu."}),(0,Z.jsx)(ye.Typography,{fontSize:12,children:"Other configuration options, like Start Diagnostics, are not available to Magnify, but you can use them in log channel."})]});break;case"metrics":z=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Metrics"}),(0,Z.jsx)(ye.Divider,{}),(0,Z.jsx)(ye.Typography,{fontSize:12,children:"You can change every individual chart type, but it won't be saved. Next time you'll need to reconfigure it again."}),(0,Z.jsx)(ye.Typography,{fontSize:12,children:"Data visualization refreshment depends on your Kwirth front configuration, your Magnify configuration."}),(0,Z.jsx)(ye.Typography,{fontSize:12,children:"On the other side, data freshness depends on Kwirth backend configuration. If you ser a visualization refresh lower than your data freshness, you'll get repeated values on different intervals."})]});break;case"ops":z=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Ops"}),(0,Z.jsx)(ye.Divider,{}),(0,Z.jsxs)(ye.Typography,{fontSize:12,children:["You can use clipboard functions by pressing ",(0,Z.jsx)("b",{children:"Ctrl+Shift+C"})," for copying and ",(0,Z.jsx)("b",{children:"Ctrl+Shift+V"})," for pasting"]}),(0,Z.jsx)(ye.Typography,{fontSize:12,children:"You can minimize this window and the connection will keep open, or you can close this window and the connection to the container will be closed."})]});break;case"fileman":z=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Fileman"}),(0,Z.jsx)(ye.Divider,{}),(0,Z.jsx)(ye.Typography,{fontSize:12,children:"You can refresh filesystem data everytime you suspect what you are viewing is not acccurate. Just click on top-righ icon to refresh content."}),(0,Z.jsx)(ye.Typography,{fontSize:12,children:"Upload and Download capabilities depend on your kind of Kwirth deployment. These actions are not available for all architectures. They should be available, at least, on Kubernetes Deployment. Accessing them via Electron may not be working."})]});break;case"trivy":z=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Trivy"}),(0,Z.jsx)(ye.Divider,{}),(0,Z.jsx)(ye.Typography,{variant:"body2",children:"Kwirth Trivy channel is a powerful tool for managing your workload security. It is based on Trivy Operator, which you can install by your own or use Kwirth for deploying Trivy without any effort (perform installation from a Trivy channel or from 'Settings' on this window)."}),(0,Z.jsx)(ye.Typography,{variant:"body2",children:"Once Trivy Operator is installed, you will see here Trivy information related to artifacts you've selected in Magnify. You can select, for instance, several pods and access this Trivy channel for viewing Trivy information about those set of pods."}),(0,Z.jsx)(ye.Typography,{variant:"body2",children:"From the asset list you will be able to see: Vulnerabilities report, Config Audit report, Exposed secrets report and also a SBOM (Software Bill of Materials, where you can analyze pacakges and its dependencies)."})]});break;case"pinocchio":z=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Pinocchio"}),(0,Z.jsx)(ye.Divider,{}),(0,Z.jsx)(ye.Typography,{variant:"body2",children:"This is real WIP."})]});break;default:{let H=t.content?.externalChannel?.getExternalHelpContent?.();H&&(z=(0,Z.jsx)(Z.Fragment,{children:H}));break}}return(0,Z.jsx)(ye.Popover,{anchorEl:s,open:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{width:400,maxHeight:500}}},onClose:()=>o(void 0),children:(0,Z.jsx)(ye.Box,{sx:{p:2,display:"flex",alignItems:"left",gap:1,flexDirection:"column"},children:z})})},ue=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;let z=t.content.externalChannel.TabContent,H={channelObject:t.content.externalChannelObject,onEnd:()=>e.onClose(e.id)};return H.channelObject.channelId==="ops"?(0,Z.jsx)("div",{ref:a,children:(0,Z.jsx)(z,{...H})}):(0,Z.jsx)(z,{...H})},R=()=>{e.onFocus&&e.onFocus()},ce=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},Ce=z=>{m(!1),n.current?.snapTo(z)},Te=z=>{switch(c(void 0),t.formConfig=z,t.channelId){case"log":{let Q=t.content.externalChannelObject.config;Q.maxMessages=z.lines,Q.showNames=z.showNames,Q.startDiagnostics=z.startDiagnostics;let Ee=t.content.externalChannelObject.instanceConfig;Ee.timestamp=z.timestamp,de(),U();break}case"metrics":let H=t.content.externalChannelObject.config,le=t.content.externalChannelObject.instanceConfig;H.width=z.width,H.merge=z.merge,H.depth=z.depth,H.legend=z.legend,H.chart=z.type?.value??H.chart,le.aggregate=z.aggregate,le.metrics=z.metrics?.value??le.metrics,de(),U();break;case"shell":break;case"fileman":break;case"trivy":{let Q=t.content.externalChannelObject.instanceConfig;Q.ignoreCritical=z.ignoreCritical??!1,Q.ignoreHigh=z.ignoreHigh??!1,Q.ignoreMedium=z.ignoreMedium??!1,Q.ignoreLow=z.ignoreLow??!0,t.formConfig.Status.asyncAction=async()=>{try{return t.content?.externalChannelObject?.data.ri?await(await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=status`,kr(t.content?.externalChannelObject?.accessString))).text():"No RI. Wait a few seconds."}catch{return"N/A"}},t.formConfig["Install Trivy operator"].action=async()=>{t.content?.externalChannelObject?.data.ri?(i((0,nn.MsgBoxWait)("Trivy install","Wait for Trivy to start installation",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=install`,kr(t.content?.externalChannelObject?.accessString)),i((0,nn.MsgBoxOk)("Install","Installation started, close this dialog and wait for Trivy to finish startup",i))):i((0,nn.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))},t.formConfig["Remove Trivy operator"].action=async()=>{t.content?.externalChannelObject?.data.ri?(i((0,nn.MsgBoxWait)("Trivy remove","Wait for Trivy to start removing",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=remove`,kr(t.content?.externalChannelObject?.accessString)),i((0,nn.MsgBoxOk)("Remove","Removing started, close this dialog and wait for Trivy to completely disappear from your cluster",i))):i((0,nn.MsgBoxOk)("Trivy remove","Running instance is not yet available, please try again in a few seconds",i))};break}case"news":{t.content?.externalChannel?.onExternalConfigApply?.(t.content.externalChannelObject,z),de(),U();break}case"pinocchio":break;default:{t.content?.externalChannel?.onExternalConfigApply?.(t.content.externalChannelObject,z)&&g();break}}};return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(ta,{ref:n,id:e.id,isMaximized:d,isActive:e.atFront,onFocus:R,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,Z.jsx)(ye.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,Z.jsxs)(ye.Stack,{direction:"row",alignItems:"center",children:[(0,Z.jsx)(ye.IconButton,{size:"small",onClick:U,disabled:!t.options.autostart||t.content?.externalChannelStarted&&!t.content?.externalChannelPaused,children:(0,Z.jsx)(ma.PlayArrow,{fontSize:"small"})}),(0,Z.jsx)(ye.IconButton,{size:"small",onClick:oe,disabled:!t.options.pauseable||!t.content?.externalChannelStarted||t.content?.externalChannelPaused,children:(0,Z.jsx)(ma.Pause,{fontSize:"small"})}),(0,Z.jsx)(ye.IconButton,{size:"small",onClick:de,disabled:!t.options.stoppable||!t.content?.externalChannelStarted,children:(0,Z.jsx)(ma.Stop,{fontSize:"small"})}),(0,Z.jsx)(ye.IconButton,{size:"small",disabled:!t.options.configurable,onClick:z=>c(z.target),children:(0,Z.jsx)(ma.Settings,{fontSize:"small"})}),(0,Z.jsx)(ye.IconButton,{size:"small",onClick:z=>o(z.currentTarget),children:(0,Z.jsx)(ma.Info,{fontSize:"small"})}),(0,Z.jsx)(ye.Typography,{sx:{flexGrow:1}}),(0,Z.jsxs)(ye.Typography,{children:[(0,wl.getChannelIconOf)(t.content?.externalChannel),"\xA0",e.title]}),(0,Z.jsx)(ye.Typography,{sx:{flexGrow:1}}),(0,Z.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:ce,onClose:()=>e.onClose(e.id),onSnap:Ce})]})}),(0,Z.jsx)(ye.DialogContent,{sx:{display:"flex",flexDirection:"column",p:0,overflow:"hidden",height:"100%",minHeight:0,paddingBottom:1},children:ue()})]}),s&&B(),l&&(0,Z.jsx)(Ug,{anchorParent:l,model:t.formConfig,onApply:Te,onClose:()=>c(void 0)}),r]})},vk={ArrowUp:"\x1B[A",ArrowDown:"\x1B[B",ArrowRight:"\x1B[C",ArrowLeft:"\x1B[D",Home:"\x1B[H",End:"\x1B[F",PageUp:"\x1B[5~",PageDown:"\x1B[6~",Insert:"\x1B[2~",Delete:"\x1B[3~",Backspace:"\x7F",Tab:" ",Enter:"\r",Escape:"\x1B",F1:"\x1BOP",F2:"\x1BOQ",F3:"\x1BOR",F4:"\x1BOS",F5:"\x1B[15~",F6:"\x1B[17~",F7:"\x1B[18~",F8:"\x1B[19~",F9:"\x1B[20~",F10:"\x1B[21~",F11:"\x1B[23~",F12:"\x1B[24~"},Ik=e=>{let{key:t,ctrlKey:n,altKey:a,shiftKey:r}=e,i=1;if(r&&(i+=1),a&&(i+=2),n&&(i+=4),i===1)return null;let s={F1:"P",F2:"Q",F3:"R",F4:"S"};if(s[t])return`\x1B[1;${i}${s[t]}`;let o={F5:15,F6:17,F7:18,F8:19,F9:20,F10:21,F11:23,F12:24};if(o[t])return`\x1B[${o[t]};${i}~`;let l={ArrowUp:"A",ArrowDown:"B",ArrowRight:"C",ArrowLeft:"D",Home:"H",End:"F"};if(l[t])return`\x1B[1;${i}${l[t]}`;let c={Insert:2,Delete:3,PageUp:5,PageDown:6};return c[t]?`\x1B[${c[t]};${i}~`:null};function kk(e){let t=e.toLowerCase().charCodeAt(0);return t>=97&&t<=122?String.fromCharCode(t-96):null}u();var Jn=k(je(),1),lt=k(ft(),1),ux=k(Kt(),1);u();var nx=k(Kt(),1),Y=k(ft(),1);var On=k(je(),1),ax=k(Ml(),1),rx=k(Dl(),1),v=k(he(),1),Re={get:ax.default,set:rx.default};function RM(e){let t=[],n=Math.floor(e.days);n>0&&(t.push(`${n}d`),e.days-=e.days);let a=Math.floor(e.hours);(a>0||t.length>0)&&(t.push(`${a}h`),e.hours-=e.hours);let r=Math.floor(e.minutes);return r>0&&t.length<2&&t.push(`${r}m`),t.slice(0,2).join("")}var ix=e=>{let t=0,n=15,a=On.default.useMemo(()=>!e.sections||!e.object.data?!1:e.sections.some(c=>c.items.some(d=>d.format==="edit"||d.style&&d.style.includes("edit"))),[e.sections,e.object.data]);On.default.useEffect(()=>{e.onContainsEdit&&e.onContainsEdit(a)},[a,e.onContainsEdit]);let r=(c,d)=>{let m;if(d.includes("||")){let f=d.split("||");f[f.length-1]==="$default"?m="$default":m=f[f.length-1];for(let g of f)if(Re.get(c,g)){m=Re.get(c,g);break}}else m=Re.get(c,d);return m},i=(c,d,m,f,g,I,C,L,U)=>{let oe=m;if(m.startsWith("$"))return(0,v.jsx)(Y.Typography,{fontWeight:g.includes("bold")?"700":"",variant:"body2",children:m.substring(1)});let de=!1;m.startsWith("#")&&(m=m.substring(1),de=!0);let B=JSON.parse(JSON.stringify(d));if(m.includes("|")&&m.includes(":")){let R=m.split(":")[1],ce=m.split(":")[0].split("|"),Ce=[],Te=[];Re.get(B,ce[0])&&(Ce=Re.get(B,ce[0]).map(z=>z[R]));for(let z of Ce){let H=Re.get(B,ce[0]).filter(Q=>Q[R]===z),le=Re.get(B,ce[1]).filter(Q=>Q[R]===z);if(H.length===1&&le.length===1){let Q={...H[0],...le[0]};Te.push(Q)}}Re.set(B,ce[0],Te),m=ce[0]}let ue=g&&g.includes("header")&&U?U.text+":\xA0":"";switch(f){case"age":let R=Date.parse(r(B,m)),Ce=new Date().getTime()-R,Te=Math.floor(Ce/(1e3*60*60*24));Ce-=Te*(1e3*60*60*24);let z=Math.floor(Ce/(1e3*60*60));Ce-=z*(1e3*60*60);let H=Math.floor(Ce/(1e3*60));return(0,v.jsx)(Y.Typography,{variant:"body2",children:RM({days:Te,hours:z,minutes:H})});case"boolean":let Q=!1;m==="@string[]"&&L?Q=!!L(c,B,e.onLink)[0]:Q=!!Re.get(B,m);let Ee=g.filter(E=>E.startsWith(Q+":"));if(g&&Ee.length===1){let E=Ee[0].split(":");return Q?(0,v.jsx)(Y.Typography,{sx:{color:E[2]},variant:"body2",children:E[1]}):(0,v.jsx)(Y.Typography,{sx:{color:E[2]},variant:"body2",children:E[1]})}else return Q?(0,v.jsx)(Y.Typography,{sx:{color:"success.main"},variant:"body2",children:"OK"}):(0,v.jsx)(Y.Typography,{sx:{color:"error.main"},variant:"body2",children:"ko"});case"string":let ze="";if((m==="@string"||m==="@jsx")&&U?.invoke)return(0,v.jsx)(v.Fragment,{children:U.invoke(c,B,e.onLink)});if(m==="@string[]"&&L?ze=L(c,B,e.onLink)[0]:ze=r(B,m),U?.processValue)try{ze=U.processValue(ze)}catch{}if(g&&g.includes("mb")&&(ze=Us(Kn(ze))),g&&g.includes("edit"))return(0,v.jsxs)(v.Fragment,{children:[ue,i(c,d,m,"edit",g,I,[],void 0)]});{let E=ze,ae="",ie=[],Je=(0,v.jsx)(v.Fragment,{children:E});if(E&&g){let zt=g.find(He=>He.startsWith("char:"));if(zt){let He=+zt.substring(5);E&&E.length>He&&(Je=(0,v.jsx)(v.Fragment,{children:E.substring(0,He)+"..."}))}g.includes("bold")&&(ae="700"),ie=g.filter(He=>He.startsWith(ze+":"));let bt=g.find(He=>He.startsWith("color:"));bt&&(ie=[bt]);let Fn=g.find(He=>He.startsWith("link:"));if(Fn&&de){let He=Fn.split(":");He.length<4&&console.log("link<4",Fn);for(let xn=1;xn<=3;xn++)He[xn].startsWith("$")?He[xn]=He[xn].substring(1):He[xn]=Re.get(B,He[xn]);He[3]==="$namespace"&&(He[3]=c.metadata.namespace),Je=(0,v.jsx)("a",{href:"#",onClick:()=>e.onLink(He[1],E,He[3]),children:E})}}if(ie.length>0)return(0,v.jsxs)(Y.Typography,{component:"div",color:ie[0].split(":")[1],fontWeight:ae,variant:"body2",children:[ue,Je]});if(g){let zt=g.filter(bt=>bt.startsWith("property:"));if(zt.length>0)for(let bt of zt){let Fn=bt.split(":");if(Re.get(B,Fn[1])===Fn[2])return(0,v.jsxs)(Y.Typography,{component:"div",color:Fn[3],fontWeight:ae,variant:"body2",children:[ue,Je]})}}return(0,v.jsxs)(Y.Typography,{component:"div",fontWeight:ae,variant:"body2",children:[ue,Je]})}case"edit":let $e=Re.get(B,m);return g.includes("base64")&&($e=atob($e)),g.includes("multiline")?(0,v.jsx)(Y.TextareaAutosize,{name:m,defaultValue:$e,style:{width:"100%",marginTop:1,marginBottom:1,resize:"vertical",minHeight:"64px"},onChange:E=>e.onChangeData(m,E.target.value)}):(0,v.jsx)(Y.TextField,{name:m,defaultValue:$e,maxRows:5,sx:{width:"100%",mt:1,mb:1},size:"small",onChange:E=>e.onChangeData(m,E.target.value)});case"booleankey":return Re.get(B,m)===!0?(0,v.jsx)(v.Fragment,{children:m}):(0,v.jsx)(v.Fragment,{});case"keylist":let It=Object.keys(Re.get(B,m));return(0,v.jsx)(v.Fragment,{children:i(c,{keys:It},"keys","stringlist",g,I,[],void 0)});case"stringlist":let Dt=[];if(m==="@string[]"&&L?Dt=L(c,B,e.onLink):Dt=Re.get(B,m),!Dt)return(0,v.jsx)(v.Fragment,{});if(U?.processValue)try{for(let E=0;E<Dt.length;E++)Dt[E]=U.processValue(Dt[E])}catch{}if(g.includes("column")){let E=oe.startsWith("#")?"#":"";return(0,v.jsx)(Y.Stack,{direction:"column",children:Dt.map((ae,ie)=>(0,v.jsx)(Y.Typography,{component:"div",variant:"body2",children:i(c,Dt,E+"["+ie+"]","string",g,I+1,void 0,void 0)},ie))})}else{let E=Dt.join(",\xA0"),ae=g.filter(ie=>ie.startsWith(E+":"));return ae.length>0?(0,v.jsxs)(Y.Typography,{color:ae[0].split(":")[1],variant:"body2",children:[ue,E]}):(0,v.jsxs)(Y.Typography,{variant:"body2",children:[ue,E]})}case"objectlist":let ct=[];return m==="@string[]"&&L||m==="@object[]"&&L?ct=L(c,B,e.onLink):ct=Re.get(B,m),ct?g.includes("table")&&C?(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",sx:{width:"100%"},children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:C.map((E,ae)=>(0,v.jsx)(Y.TableCell,{children:E.text},ae))})}),(0,v.jsx)(Y.TableBody,{children:ct.map((E,ae)=>(0,v.jsx)(Y.TableRow,{children:C.map((ie,Je)=>{let zt=C.find(bt=>bt.name===ie.name);return!zt||!C?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)(Y.TableCell,{children:[" ",typeof Re.get(E,ie.source[0])=="object"?Array.isArray(Re.get(E,ie.source[0]))?(0,v.jsx)(v.Fragment,{children:i(c,E,ie.source[0],zt.format,ie.style||[],I+1,zt.items,void 0)}):(0,v.jsx)(v.Fragment,{children:i(c,E,ie.source[0],C.find(bt=>bt.source[0]===ie.source[0]).format,C.find(bt=>bt.source[0]===ie.source[0]).style||[],I+1,[zt],void 0)}):(0,v.jsx)(v.Fragment,{children:s(c,E,ie,I+1)})]},Je)})},ae))})]})}):(0,v.jsx)(v.Fragment,{children:ct.map((E,ae)=>C?(0,v.jsx)(Y.Stack,{direction:g.includes("column")?"column":"row",sx:{width:g.includes("fullwidth")?"100%":"auto"},children:g.includes("column")?C.map((ie,Je)=>(0,v.jsx)(On.default.Fragment,{children:s(c,E,ie,I+1)},Je)):C.map((ie,Je)=>(0,v.jsxs)(On.default.Fragment,{children:[s(c,E,ie,I+1)," ",(0,v.jsx)(v.Fragment,{children:ae<ct.length-1?",\xA0":""})," "]},Je))},ae):(0,v.jsx)(On.default.Fragment,{},ae))}):(0,v.jsx)(v.Fragment,{});case"objectobject":return g.includes("table")?(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:Object.keys(Re.get(B,m)[0]).map((E,ae)=>(0,v.jsx)(Y.TableCell,{children:E},ae))})}),(0,v.jsx)(Y.TableBody,{children:Re.get(B,m).map((E,ae)=>(0,v.jsx)(Y.TableRow,{children:Object.keys(Re.get(B,m)[0]).map((ie,Je)=>(0,v.jsx)(Y.TableCell,{children:i(c,E,m,"string",[],I+1,[],void 0)},Je))},ae))})]})}):(0,v.jsx)(v.Fragment,{children:Re.get(B,m).map((E,ae)=>C?(0,v.jsx)(On.default.Fragment,{children:C.map((ie,Je)=>(0,v.jsx)(On.default.Fragment,{children:o(c,E,ie,n,I+1)},Je))},ae):(0,v.jsx)(v.Fragment,{}))});case"objectprops":return Re.get(B,m)?g&&g.includes("table")?U&&U?.items?(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:U.items.map((E,ae)=>(0,v.jsx)(Y.TableCell,{children:E.text},ae))})}),(0,v.jsx)(Y.TableBody,{children:(0,v.jsx)(Y.TableRow,{children:U.items.map((E,ae)=>(0,v.jsx)(Y.TableCell,{children:i(c,B,E.source[0],E.format,E.style||[],I)},ae))})})]})}):(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:Object.keys(Re.get(B,m)).map((E,ae)=>(0,v.jsx)(Y.TableCell,{children:E},ae))})}),(0,v.jsx)(Y.TableBody,{children:(0,v.jsx)(Y.TableRow,{children:Object.keys(Re.get(B,m)).map((E,ae)=>(0,v.jsx)(Y.TableCell,{children:Re.get(B,m+".['"+E+"']")},ae))})})]})}):C?(0,v.jsx)(v.Fragment,{children:C.map((E,ae)=>(0,v.jsxs)(Y.Stack,{direction:E.style&&E.style.includes("column")?"column":"row",children:[(0,v.jsxs)(Y.Typography,{fontWeight:g&&g.includes("keybold")?"700":"",variant:"body2",children:[E.text,":\xA0"]}),s(c,B,E,I+1)]},ae))}):(0,v.jsx)(v.Fragment,{children:Object.keys(Re.get(B,m)).map((E,ae)=>g&&g.includes("edit")?(0,v.jsxs)(Y.Stack,{direction:"column",sx:{mt:1},children:[(0,v.jsxs)(Y.Stack,{direction:"row",children:[(0,v.jsx)(Y.Tooltip,{title:E,placement:"top",children:(0,v.jsx)(Y.Typography,{fontWeight:g.includes("keybold")?"700":"",variant:"body2",children:E})}),g.includes("lockicon")&&(0,v.jsx)(nx.Https,{fontSize:"small",sx:{color:"error.main"}})]}),i(c,B,m+".['"+E+"']","edit",g,I+1,[],void 0)]},ae):(0,v.jsxs)(Y.Stack,{direction:"row",children:[(0,v.jsxs)(Y.Typography,{fontWeight:g.includes("keybold")?"700":"",variant:"body2",children:[E,":\xA0"]}),i(c,B,m+".['"+E+"']","string",g,I+1,[],void 0)]},ae))}):(0,v.jsx)(v.Fragment,{});case"table":return C?Re.get(B,m)&&(0,v.jsx)(Y.TableContainer,{component:Y.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,v.jsxs)(Y.Table,{size:"small",children:[(0,v.jsx)(Y.TableHead,{children:(0,v.jsx)(Y.TableRow,{children:C.map((E,ae)=>(0,v.jsx)(Y.TableCell,{children:E.text},ae))})}),(0,v.jsx)(Y.TableBody,{children:Re.get(B,m).map((E,ae)=>(0,v.jsx)(Y.TableRow,{children:C.map((ie,Je)=>(0,v.jsx)(Y.TableCell,{children:s(c,E,ie,I+1)},Je))},ae))})]})}):(0,v.jsx)(v.Fragment,{});default:return(0,v.jsx)(v.Fragment,{})}},s=(c,d,m,f)=>{let g=m.source[0].replace("#","");if(!g.startsWith("@")&&m.style?.includes("ifpresent")&&Re.get(d,g)===void 0)return(0,v.jsx)(v.Fragment,{});if(m.format==="bar"){let I=Re.get(d,m.source[0]),C=Re.get(d,m.source[1]);if(!I||!C)return(0,v.jsx)(v.Fragment,{});let L=+I/+C*100;return(0,v.jsxs)(Y.Stack,{direction:"row",width:"100%",alignItems:"center",children:[(0,v.jsx)(Y.LinearProgress,{variant:"determinate",value:L>100?100:L,sx:{width:"90%"}}),"\xA0",(0,v.jsxs)(Y.Typography,{variant:"body2",children:[I||0,"/",C||0]})]})}else return(0,v.jsx)(Y.Stack,{direction:m.style?.includes("column")?"column":"row",width:"100%",alignItems:m.style?.includes("row")?"center":"",children:m.source.map((I,C)=>(0,v.jsx)(On.default.Fragment,{children:i(c,d,I,m.format,m.style||[],f+1,m.items,m.invoke,m)},C))})},o=(c,d,m,f,g)=>{let I="class-kwirth-"+t,C=m.source[0].replace("#","");if(!C.startsWith("@")&&m.style?.includes("ifpresent")&&Re.get(d,C)===void 0)return(0,v.jsx)(v.Fragment,{});if(m.source&&C==="@jsx[]")return m.invoke?(0,v.jsx)(Y.Stack,{direction:m.style&&m.style.includes("column")?"column":"row",alignItems:"stretch",sx:{width:"100%"},children:m.invoke(c,d,e.onLink).map((L,U)=>(0,v.jsx)(On.default.Fragment,{children:L},U))}):(0,v.jsx)(v.Fragment,{children:"Inexistent Invoke"});{let L=0;return m.source&&Re.get(d,m.source[0])&&(L=Object.keys(Re.get(d,m.source[0])).length),t++,(0,v.jsxs)(Y.Stack,{direction:"row",alignItems:"baseline",children:[m.text===""&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(Y.Typography,{component:"div",width:"100%",variant:"body2",children:s(c,d,m,g)})}),m.text!==""&&(0,v.jsxs)(v.Fragment,{children:[L>1&&m.style&&m.style.includes("collapse")?(0,v.jsxs)(Y.Stack,{direction:"row",width:`${f-2}%`,alignItems:"center",children:[(0,v.jsx)(Y.Typography,{variant:"body2",children:m.text}),(0,v.jsx)("svg",{className:"svg-"+I,width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",onClick:()=>{let U=document.getElementsByClassName(I)[0];U&&(U.style.height==="auto"?(U.style.height="22px",document.getElementsByClassName("svg-"+I)[0].innerHTML='<path d="M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z" />'):(U.style.height="auto",document.getElementsByClassName("svg-"+I)[0].innerHTML='<path d="M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z" />'))},children:(0,v.jsx)("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z"})})]}):(0,v.jsx)(Y.Typography,{width:`${f}%`,variant:"body2",children:m.text}),L>1&&m.style&&m.style.includes("collapse")?(0,v.jsx)("div",{className:I,style:{height:"22px",overflow:"hidden"},children:s(c,d,m,g)}):s(c,d,m,g)]})]})}},l=(c,d)=>{if(c)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Y.Typography,{sx:{mt:2,mb:1},variant:"body1",children:(0,v.jsx)("b",{children:d.text})}),d.items.map((m,f)=>(0,v.jsx)(On.default.Fragment,{children:o(c,c,m,n,0)},f))]})};if(e.object.data)if(e.sections){let c=e.sections.map((d,m)=>(0,v.jsx)(On.default.Fragment,{children:l(e.object.data[d.root],d)},m));return(0,v.jsx)(v.Fragment,{children:c})}else return(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("pre",{children:JSON.stringify(e.object.data.origin,void 0,2)})});else return console.log(e.object),(0,v.jsx)(v.Fragment,{children:"No data"})};u();var Ut=k(ft(),1),sx=k(je(),1),an=k(he(),1),Ol=e=>((0,sx.useEffect)(()=>{e.file&&e.file.data.origin.status.containerStatuses?.length===1&&e.onContainerSelected(e.channel,e.file,e.file.data.origin.status.containerStatuses[0].name)},[e.file,e.channel,e.onContainerSelected]),!e.file||!e.file.data.origin.status.containerStatuses||e.file.data.origin.status.containerStatuses.length===1?null:(0,an.jsx)(Ut.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,an.jsxs)(Ut.MenuList,{dense:!0,sx:{minWidth:120},children:[e.file.data.origin.status.containerStatuses.map(t=>{let n="orange";return t.started?(n="green",e.file&&e.file.data.origin.metadata.deletionTimestamp&&(n="blue")):t.state.terminated&&(n="gray"),(0,an.jsx)(Ut.MenuItem,{onClick:()=>e.onContainerSelected(e.channel,e.file,t.name),children:(0,an.jsxs)(Ut.Stack,{direction:"row",alignItems:"center",children:[(0,an.jsx)(Ut.Box,{sx:{width:"10px",height:"10px",backgroundColor:n,margin:"1px",display:"inline-block"}}),(0,an.jsxs)(Ut.Typography,{children:["\xA0",t.name]})]})},t.name)}),e.includeAllContainers&&(0,an.jsxs)(an.Fragment,{children:[(0,an.jsx)(Ut.Divider,{}),(0,an.jsx)(Ut.MenuItem,{onClick:()=>e.onContainerSelected(e.channel,e.file,"*all"),children:(0,an.jsx)(Ut.Typography,{children:"All containers"})},"all")]})]})}));var mx=k(Ot(),1),dx=k(Ml(),1),fx=k(Dl(),1),et=k(he(),1),cx={get:dx.default,set:fx.default},PM=lx(),px=e=>{let t=(0,Jn.useRef)(null),n=(0,Jn.useRef)(e.data.source.data.origin),[a,r]=(0,Jn.useState)(!1),[i,s]=(0,Jn.useState)(!1),[o,l]=(0,Jn.useState)(),[c,d]=(0,Jn.useState)(""),[m,f]=(0,Jn.useState)(e.isMaximized),g=e.data;(0,Jn.useEffect)(()=>{n.current||(n.current={})},[]),(0,mx.useKeyboard)(e.onClose,e.id);let I=(R,ce,Ce)=>{e.onClose(e.id),e.data.onLink(R,ce,Ce)},C=e.data.actions.filter(R=>R.name!=="details"&&(R.isVisible?.(R.name??"",e.data.source,e.selectedFiles)??!0)),L=R=>R.isEnabled?.(R.name??"",e.data.source,e.selectedFiles)??!0,U=(R,ce)=>{if(e.selectedFiles[0].class==="Pod"&&(e.data.containerSelectionOptions.get(R)||0)>=1){d(R),l(ce);return}e.data.onAction(R,e.selectedFiles[0].path||"",void 0)},oe=()=>{e.onFocus&&e.onFocus()},de=()=>{e.onWindowChange(e.id,!m,e.x,e.y,e.width,e.height),f(!m)},B=R=>{f(!1),t.current?.snapTo(R)},ue=(R,ce)=>{e.data.source.data.origin.kind==="ConfigMap"&&cx.set(n.current,R,ce),e.data.source.data.origin.kind==="Secret"&&cx.set(n.current,R,btoa(ce)),s(!0)};return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsxs)(ta,{ref:t,id:e.id,isMaximized:m,isActive:e.atFront,onFocus:oe,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,et.jsx)(lt.DialogTitle,{sx:{cursor:m?"default":"move",py:1},id:"draggable-dialog-title",children:(0,et.jsxs)(lt.Stack,{direction:"row",alignItems:"center",spacing:1,children:[(0,et.jsx)(lt.Typography,{variant:"subtitle1",noWrap:!0,sx:{fontWeight:"bold",flexShrink:0},children:`${g.source.data.origin.kind}:`}),(0,et.jsx)(lt.Typography,{variant:"body2",noWrap:!0,children:e.title}),(0,et.jsx)(lt.Tooltip,{title:"Copy",children:(0,et.jsx)(lt.IconButton,{size:"small",onClick:()=>PM(e.title),children:(0,et.jsx)(ux.ContentCopy,{fontSize:"inherit"})})}),(0,et.jsx)(lt.Stack,{direction:"row",spacing:.5,className:"no-drag",children:C.map((R,ce)=>R.name==="divider"?(0,et.jsx)(lt.Typography,{sx:{flexGrow:1}}):(0,et.jsx)(lt.Tooltip,{title:R.text,children:(0,et.jsx)("span",{children:(0,et.jsx)(lt.IconButton,{size:"small",color:"primary",disabled:!L(R),onClick:Ce=>U(R.name,Ce.currentTarget),children:R.icon})})},ce))}),(0,et.jsx)(lt.Typography,{sx:{flexGrow:1}}),(0,et.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:m,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:de,onClose:()=>e.onClose(e.id),onSnap:B})]})}),(0,et.jsx)(lt.DialogContent,{dividers:!0,sx:{p:0,display:"flex",flexDirection:"column"},children:(0,et.jsx)(lt.Box,{sx:{p:2,flexGrow:1,overflow:"auto"},children:(0,et.jsx)(ix,{object:g.source,sections:g.sections,onChangeData:ue,onLink:I,onContainsEdit:r})})}),(0,et.jsx)(lt.DialogActions,{sx:{p:.5,pr:2},children:(0,et.jsx)(lt.Button,{onClick:()=>e.data.onApply(g.path,n.current),disabled:!a||!i,variant:"contained",size:"small",children:"Apply"})})]}),o&&e.selectedFiles.length>0&&(0,et.jsx)(Ol,{channel:c,file:e.selectedFiles[0],onClose:()=>l(void 0),anchorParent:o,onContainerSelected:(R,ce,Ce)=>{e.data.onAction(R,ce.path||"",Ce),l(void 0)},includeAllContainers:g.containerSelectionOptions.get(c)===2})]})};u();var Yt=k(ft(),1),Rn=k(je(),1),Nx=k(gx(),1),Ex=k(xx(),1),Ax=k(wx(),1),Px=k(Kt(),1);var Gi=k(Cx(),1),Rl=k(Ix(),1),Fx=k(Tx(),1),_x=k(Dx(),1);var Nl=k(Ot(),1),zx=k(Rx(),1),xt=k(he(),1),Tm=xl(),Lx=e=>{let t=(0,Yt.useTheme)(),n=t.palette.mode==="dark"?zx.oneDark:"light",[a,r]=(0,Rn.useState)((0,xt.jsx)(xt.Fragment,{})),[i,s]=(0,Rn.useState)(""),o=(0,Rn.useRef)(null),l=(0,Rn.useRef)(!1),c=(0,Rn.useRef)(null),d=(0,Rn.useRef)(null),[m,f]=(0,Rn.useState)(e.isMaximized),g=e.data,I=Rl.EditorView.theme({"&":{height:"100%",fontSize:"12px",fontFamily:"'Fira Code', 'Source Code Pro', monospace"},".cm-foldGutter":{width:"25px",pointerEvents:"auto !important"},".cm-gutterElement":{display:"flex !important",alignItems:"center",justifyContent:"center",cursor:"pointer !important",pointerEvents:"auto !important"},".cm-foldGutter span":{pointerEvents:"none"}},{dark:t.palette.mode==="dark"});(0,Rn.useEffect)(()=>{let B=ue=>{if(ue.key==="Escape"&&C(),!c.current?.contains(document.activeElement))return;let R=ue.ctrlKey||ue.metaKey;R&&ue.key.toLowerCase()==="f"&&(ue.preventDefault(),ue.stopPropagation(),d.current&&(0,Gi.openSearchPanel)(d.current)),R&&ue.key.toLowerCase()==="d"&&(ue.preventDefault(),ue.stopPropagation())};return window.addEventListener("keydown",B,!0),()=>window.removeEventListener("keydown",B,!0)},[]);let C=()=>{l.current?r((0,Nl.MsgBoxYesNo)("Edit exit","You have some changes not applied. Are you sure you want to exit without applying?",r,B=>{B===Nl.MsgBoxButtons.Yes&&e.onClose(e.id)})):e.onClose(e.id)};(0,Rn.useEffect)(()=>{if(g.isInitialized)g.code&&s(g.code);else{if(g.isInitialized=!0,g.code===void 0){let B=e.selectedFiles[0].data.origin,ue=$g(B);g.code=Tm.dump(ue),s(g.code)}else s(g.code);g.oldCode=g.code}},[]);let L=()=>{e.onFocus&&e.onFocus()},U=()=>{e.onWindowChange(e.id,!m,e.x,e.y,e.width,e.height),f(!m)},oe=B=>{f(!1),o.current?.snapTo(B)},de=B=>{g.code=B,s(B);try{let ue=Tm.load(g.oldCode),R=Tm.load(B);l.current=!qs(R,ue)}catch{l.current=(B??"")!==(g.oldCode??"")}};return(0,xt.jsxs)(xt.Fragment,{children:[(0,xt.jsxs)(ta,{ref:o,id:e.id,isMaximized:m,isActive:e.atFront,onFocus:L,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,xt.jsx)(Yt.DialogTitle,{sx:{cursor:m?"default":"move",py:1},id:"draggable-dialog-title",children:(0,xt.jsxs)(Yt.Stack,{direction:"row",alignItems:"center",children:[(0,xt.jsx)(Yt.Typography,{sx:{flexGrow:1}}),(0,xt.jsxs)(Yt.Typography,{children:[g.allowEdit?(0,xt.jsx)(Px.Edit,{}):(0,xt.jsx)(Vn,{}),"\xA0",e.title]}),(0,xt.jsx)(Yt.Typography,{sx:{flexGrow:1}}),(0,xt.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:m,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:U,onClose:C,onSnap:oe})]})}),(0,xt.jsx)(Yt.DialogContent,{children:(0,xt.jsx)("div",{ref:c,style:{height:"100%",width:"100%",paddingTop:"2px"},onMouseDownCapture:B=>{B.target.closest(".cm-foldGutter")&&d.current&&(B.preventDefault(),B.stopPropagation(),d.current.focus(),(0,_x.foldCode)(d.current))},className:"no-drag",children:(0,xt.jsx)(Nx.default,{value:i,onChange:de,theme:n,onUpdate:B=>{B.view&&(d.current=B.view)},extensions:[Ex.EditorState.readOnly.of(!g.allowEdit),(0,Ax.yaml)(),(0,Gi.search)({top:!0}),I,Rl.keymap.of([...Fx.defaultKeymap,...Gi.searchKeymap])]})})}),(0,xt.jsx)(Yt.DialogActions,{sx:{p:"4px 4px",pr:2},children:(0,xt.jsx)(Yt.Button,{onClick:()=>g.onOk?.(i,g.source),disabled:!l.current,children:"Ok"})})]}),a]})};u();var Ne=new Map;Ne.set("Pod",`
248
248
  apiVersion: v1
249
249
  kind: Pod
250
250
  metadata:
@@ -259,7 +259,7 @@ spec:
259
259
  - name: web
260
260
  containerPort: 80
261
261
  protocol: TCP
262
- `);Ee.set("Deployment",`
262
+ `);Ne.set("Deployment",`
263
263
  apiVersion: apps/v1
264
264
  kind: Deployment
265
265
  metadata:
@@ -281,7 +281,7 @@ spec:
281
281
  image: nginx:1.14.2
282
282
  ports:
283
283
  - containerPort: 80
284
- `);Ee.set("DaemonSet",`
284
+ `);Ne.set("DaemonSet",`
285
285
  apiVersion: apps/v1
286
286
  kind: DaemonSet
287
287
  metadata:
@@ -326,7 +326,7 @@ spec:
326
326
  - name: varlibdockercontainers
327
327
  hostPath:
328
328
  path: /var/lib/docker/containers
329
- `);Ee.set("StatefulSet",`
329
+ `);Ne.set("StatefulSet",`
330
330
  apiVersion: apps/v1
331
331
  kind: StatefulSet
332
332
  metadata:
@@ -361,7 +361,7 @@ spec:
361
361
  resources:
362
362
  requests:
363
363
  storage: 1Gi
364
- `);Ee.set("ReplicaSet",`
364
+ `);Ne.set("ReplicaSet",`
365
365
  apiVersion: apps/v1
366
366
  kind: ReplicaSet
367
367
  metadata:
@@ -383,7 +383,7 @@ spec:
383
383
  containers:
384
384
  - name: php-redis
385
385
  image: gcr.io/google_samples/gb-frontend:v3
386
- `);Ee.set("ReplicationController",`
386
+ `);Ne.set("ReplicationController",`
387
387
  apiVersion: v1
388
388
  kind: ReplicationController
389
389
  metadata:
@@ -403,7 +403,7 @@ spec:
403
403
  image: nginx
404
404
  ports:
405
405
  - containerPort: 80
406
- `);Ee.set("Job",`
406
+ `);Ne.set("Job",`
407
407
  apiVersion: batch/v1
408
408
  kind: Job
409
409
  metadata:
@@ -417,7 +417,7 @@ spec:
417
417
  command: ["echo", "$HOSTNAME"]
418
418
  restartPolicy: Never
419
419
  backoffLimit: 3
420
- `);Ee.set("CronJob",`
420
+ `);Ne.set("CronJob",`
421
421
  apiVersion: batch/v1
422
422
  kind: CronJob
423
423
  metadata:
@@ -437,7 +437,7 @@ spec:
437
437
  - -c
438
438
  - date; echo Hello from the Kubernetes cluster
439
439
  restartPolicy: OnFailure
440
- `);Ee.set("ConfigMap",`
440
+ `);Ne.set("ConfigMap",`
441
441
  apiVersion: v1
442
442
  kind: ConfigMap
443
443
  metadata:
@@ -449,7 +449,7 @@ data:
449
449
  other.properties: |
450
450
  enemy.types=aliens,monsters
451
451
  player.maximum-lives=5
452
- `);Ee.set("Secret",`
452
+ `);Ne.set("Secret",`
453
453
  apiVersion: v1
454
454
  kind: Secret
455
455
  metadata:
@@ -457,7 +457,7 @@ metadata:
457
457
  data:
458
458
  admin: a3dyaXRoIGlzIGZ1bm55IQ==
459
459
  type: Opaque
460
- `);Ee.set("ResourceQuota",`
460
+ `);Ne.set("ResourceQuota",`
461
461
  apiVersion: v1
462
462
  kind: ResourceQuota
463
463
  metadata:
@@ -467,7 +467,7 @@ spec:
467
467
  hard:
468
468
  limits.cpu: '2'
469
469
  limits.memory: '1Gi'
470
- `);Ee.set("LimitRange",`
470
+ `);Ne.set("LimitRange",`
471
471
  apiVersion: v1
472
472
  kind: LimitRange
473
473
  metadata:
@@ -483,7 +483,7 @@ spec:
483
483
  min:
484
484
  cpu: 100m
485
485
  type: Container
486
- `);Ee.set("HorizontalPodAutoscaler",`
486
+ `);Ne.set("HorizontalPodAutoscaler",`
487
487
  apiVersion: autoscaling/v2
488
488
  kind: HorizontalPodAutoscaler
489
489
  metadata:
@@ -502,7 +502,7 @@ spec:
502
502
  target:
503
503
  type: Utilization
504
504
  averageUtilization: 80
505
- `);Ee.set("PodDisruptionBudget",`
505
+ `);Ne.set("PodDisruptionBudget",`
506
506
  apiVersion: policy/v1
507
507
  kind: PodDisruptionBudget
508
508
  metadata:
@@ -512,7 +512,7 @@ spec:
512
512
  selector:
513
513
  matchLabels:
514
514
  app: apache
515
- `);Ee.set("PriorityClass",`
515
+ `);Ne.set("PriorityClass",`
516
516
  apiVersion: scheduling.k8s.io/v1
517
517
  kind: PriorityClass
518
518
  metadata:
@@ -521,7 +521,7 @@ description: Basic Priority class.
521
521
  preemptionPolicy: PreemptLowerPriority
522
522
  globalDefault: false
523
523
  value: 5
524
- `);Ee.set("RuntimeClass",`
524
+ `);Ne.set("RuntimeClass",`
525
525
  apiVersion: node.k8s.io/v1
526
526
  kind: RuntimeClass
527
527
  metadata:
@@ -534,14 +534,14 @@ scheduling:
534
534
  - key: cpuCount
535
535
  value: '8'
536
536
  effect: NoSchedule
537
- `);Ee.set("Lease",`
537
+ `);Ne.set("Lease",`
538
538
  apiVersion: coordination.k8s.io/v1
539
539
  kind: Lease
540
540
  metadata:
541
541
  name: sample-lease
542
542
  spec:
543
543
  leaseDurationSeconds: 1000
544
- `);Ee.set("MutatingWebhookConfiguration",`
544
+ `);Ne.set("MutatingWebhookConfiguration",`
545
545
  apiVersion: admissionregistration.k8s.io/v1
546
546
  kind: MutatingWebhookConfiguration
547
547
  metadata:
@@ -564,7 +564,7 @@ webhooks:
564
564
  apiVersions: ["*"]
565
565
  resources: ["*"]
566
566
  scope: "*"
567
- `);Ee.set("ValidatingWebhookConfiguration",`
567
+ `);Ne.set("ValidatingWebhookConfiguration",`
568
568
  apiVersion: admissionregistration.k8s.io/v1
569
569
  kind: ValidatingWebhookConfiguration
570
570
  metadata:
@@ -585,7 +585,7 @@ webhooks:
585
585
  resources: ["*"]
586
586
  failurePolicy: "Ignore"
587
587
  sideEffects: None
588
- `);Ee.set("Service",`
588
+ `);Ne.set("Service",`
589
589
  apiVersion: v1
590
590
  kind: Service
591
591
  metadata:
@@ -597,7 +597,7 @@ spec:
597
597
  - protocol: TCP
598
598
  port: 80
599
599
  targetPort: 80
600
- `);Ee.set("Endpoints",`
600
+ `);Ne.set("Endpoints",`
601
601
  apiVersion: v1
602
602
  kind: Endpoints
603
603
  metadata:
@@ -614,7 +614,7 @@ subsets:
614
614
  - name: metrics
615
615
  port: 9100
616
616
  protocol: TCP
617
- `);Ee.set("Ingress",`
617
+ `);Ne.set("Ingress",`
618
618
  apiVersion: networking.k8s.io/v1
619
619
  kind: Ingress
620
620
  metadata:
@@ -630,7 +630,7 @@ spec:
630
630
  name: apache-service
631
631
  port:
632
632
  number: 80
633
- `);Ee.set("IngressClass",`
633
+ `);Ne.set("IngressClass",`
634
634
  apiVersion: networking.k8s.io/v1
635
635
  kind: IngressClass
636
636
  metadata:
@@ -641,7 +641,7 @@ spec:
641
641
  apiGroup: k8s.example.com
642
642
  kind: IngressParameters
643
643
  name: external-ic
644
- `);Ee.set("NetworkPolicy",`
644
+ `);Ne.set("NetworkPolicy",`
645
645
  apiVersion: networking.k8s.io/v1
646
646
  kind: NetworkPolicy
647
647
  metadata:
@@ -676,7 +676,7 @@ spec:
676
676
  policyTypes:
677
677
  - Ingress
678
678
  - Egress
679
- `);Ee.set("PersistentVolumeClaim",`
679
+ `);Ne.set("PersistentVolumeClaim",`
680
680
  apiVersion: v1
681
681
  kind: PersistentVolumeClaim
682
682
  metadata:
@@ -691,7 +691,7 @@ spec:
691
691
  volumeName: my-local-pv
692
692
  storageClassName: local-path
693
693
  volumeMode: Filesystem
694
- `);Ee.set("PersistentVolume",`
694
+ `);Ne.set("PersistentVolume",`
695
695
  apiVersion: v1
696
696
  kind: PersistentVolume
697
697
  metadata:
@@ -707,7 +707,7 @@ spec:
707
707
  persistentVolumeReclaimPolicy: Retain
708
708
  storageClassName: local-path
709
709
  volumeMode: Filesystem
710
- `);Ee.set("StorageClass",`
710
+ `);Ne.set("StorageClass",`
711
711
  apiVersion: storage.k8s.io/v1
712
712
  kind: StorageClass
713
713
  metadata:
@@ -715,13 +715,13 @@ metadata:
715
715
  provisioner: rancher.io/local-path
716
716
  reclaimPolicy: Delete
717
717
  volumeBindingMode: WaitForFirstConsumer
718
- `);Ee.set("ServiceAccount",`
718
+ `);Ne.set("ServiceAccount",`
719
719
  apiVersion: v1
720
720
  kind: ServiceAccount
721
721
  metadata:
722
722
  name: sample-sa
723
723
  namespace: default
724
- `);Ee.set("ClusterRole",`
724
+ `);Ne.set("ClusterRole",`
725
725
  apiVersion: rbac.authorization.k8s.io/v1
726
726
  kind: ClusterRole
727
727
  metadata:
@@ -733,7 +733,7 @@ rules:
733
733
  - '*'
734
734
  resources:
735
735
  - '*'
736
- `);Ee.set("Role",`
736
+ `);Ne.set("Role",`
737
737
  apiVersion: rbac.authorization.k8s.io/v1
738
738
  kind: Role
739
739
  metadata:
@@ -746,7 +746,7 @@ rules:
746
746
  - '*'
747
747
  resources:
748
748
  - namespaces
749
- `);Ee.set("ClusterRoleBinding",`
749
+ `);Ne.set("ClusterRoleBinding",`
750
750
  apiVersion: rbac.authorization.k8s.io/v1
751
751
  kind: ClusterRoleBinding
752
752
  metadata:
@@ -759,7 +759,7 @@ roleRef:
759
759
  apiGroup: rbac.authorization.k8s.io
760
760
  kind: ClusterRole
761
761
  name: sample-cr
762
- `);Ee.set("RoleBinding",`
762
+ `);Ne.set("RoleBinding",`
763
763
  apiVersion: rbac.authorization.k8s.io/v1
764
764
  kind: RoleBinding
765
765
  metadata:
@@ -773,7 +773,7 @@ roleRef:
773
773
  apiGroup: rbac.authorization.k8s.io
774
774
  kind: Role
775
775
  name: sample-role
776
- `);Ee.set("CustomResourceDefinition",`
776
+ `);Ne.set("CustomResourceDefinition",`
777
777
  apiVersion: apiextensions.k8s.io/v1
778
778
  kind: CustomResourceDefinition
779
779
  metadata:
@@ -800,17 +800,17 @@ spec:
800
800
  plural: crds
801
801
  singular: crd
802
802
  kind: Crd
803
- `);u();var je=I(ht(),1),Ha=I(Ze(),1),_x=I(Jt(),1);var zx=I(Rt(),1);var Lx=I(Rt(),1),Je=I(fe(),1),Vx=e=>{let t=(0,Ha.useRef)(null),[n,a]=(0,Ha.useState)(e.data.searchText),[r,i]=(0,Ha.useState)(e.data.includeStatus),[s,o]=(0,Ha.useState)(e.data.merge),[l,c]=(0,Ha.useState)(e.data.matchCase),[d,m]=(0,Ha.useState)(e.isMaximized),f=e.data;(0,Lx.useKeyboard)(e.onClose,e.id);let h=()=>{e.onFocus&&e.onFocus()},k=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},v=R=>{m(!1),t.current?.snapTo(R)},A=R=>{a(R.target.value),e.data.searchText=R.target.value},q=()=>{i(!r),e.data.includeStatus=!e.data.includeStatus},de=()=>{c(!l),e.data.matchCase=!e.data.matchCase},pe=()=>{o(!s),e.data.merge=!e.data.merge};function H(R,ce){if(!R||!ce)return;let ve=ce.replace(/\[(\d+)\]/g,".$1").split(".").filter(z=>z!==""),ke=R;for(let z of ve){if(ke===null||typeof ke!="object")return;if(z in ke)ke=ke[z];else return}return ke}let le=(R,ce,ve,ke,z)=>{if(!R||!R.kind)return[];let B=[];if(R.kind==="Secret"&&R.data){let se=Bs(R);for(let j of Object.keys(se.data))se.data[j]=atob(se.data[j]);B=gm(se,ce,ke)}else B=gm(R,ce,ke);return ve||(B=B.filter(se=>!se.startsWith("status"))),z&&B.length>1&&(B=[B[0]]),B};return(0,Je.jsxs)(ta,{ref:t,id:e.id,isMaximized:d,isActive:e.atFront,onFocus:h,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,Je.jsx)(je.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,Je.jsxs)(je.Stack,{direction:"row",alignItems:"center",children:[(0,Je.jsx)(_x.Search,{fontSize:"small",sx:{color:"text.secondary",mr:1}}),(0,Je.jsxs)(je.Typography,{variant:"body2",fontWeight:500,flex:1,children:["Search \u2014 ",f.scope===":cluster:"?"All cluster":"Namespace: "+f.scope]}),(0,Je.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:k,onClose:()=>e.onClose(e.id),onSnap:v})]})}),(0,Je.jsxs)(je.DialogContent,{children:[(0,Je.jsxs)(je.Stack,{direction:"row",alignItems:"center",children:[(0,Je.jsx)(je.TextField,{value:n,onChange:A,variant:"standard",label:"Search..."}),(0,Je.jsx)(je.FormControlLabel,{control:(0,Je.jsx)(je.Checkbox,{}),checked:r,onChange:q,label:"Include status"}),(0,Je.jsx)(je.FormControlLabel,{control:(0,Je.jsx)(je.Checkbox,{}),checked:l,onChange:de,label:"Match case"}),(0,Je.jsx)(je.FormControlLabel,{control:(0,Je.jsx)(je.Checkbox,{}),checked:s,onChange:pe,label:"Merge repeated results"}),(0,Je.jsx)(je.Typography,{flexGrow:1}),n.trim()!==""&&n.length>=3&&(0,Je.jsxs)(je.Typography,{children:["Results: ",f.selectedFiles.reduce((R,ce)=>R+le(ce.data?.origin,n,r,l,s).length,0)]})]}),(0,Je.jsx)(je.Stack,{direction:"column",mt:1,children:n.trim()!==""&&n.length>=3&&f.selectedFiles.map(R=>le(R.data?.origin,n,r,l,s).map((ve,ke)=>{let z=H(R.data.origin,ve),B;return R.data.origin.metadata?B=(0,Je.jsx)(je.Typography,{variant:"body2",children:(0,Je.jsx)("a",{href:"#",onClick:()=>f.onLink(R.data.origin.kind,R.data.origin.metadata.name,R.data.origin.metadata.namespace),children:R.data.origin.metadata.name})}):B=(0,Je.jsx)(je.Typography,{variant:"body2",children:(0,Je.jsx)("a",{href:"#",onClick:()=>f.onLink(R.data.origin.kind,R.data.origin.name,""),children:R.data.origin.name})}),(0,Je.jsxs)(je.Stack,{direction:"row",sx:{mb:2,ml:1},alignItems:"center",children:[(0,zx.getIconFromKind)(R.data?.origin?.kind,32),(0,Je.jsxs)(je.Stack,{direction:"column",sx:{ml:2},children:[B,(0,Je.jsx)(je.Typography,{variant:"body2",children:ve}),(0,Je.jsxs)(je.Typography,{variant:"body2",children:[String(z).substring(0,80),String(z).length>80?"...":""]})]})]},ke)}))})]})]})};u();var jn=I(Ze(),1),xe=I(ht(),1),Fr=I(Jt(),1);var En=I(Qa(),1);var Se=I(fe(),1),Wx=e=>{let t=(0,jn.useRef)(null),[n,a]=(0,jn.useState)(""),[r,i]=(0,jn.useState)(!1),[s,o]=(0,jn.useState)(!1),[l,c]=(0,jn.useState)(100),[d,m]=(0,jn.useState)(!1),[f,h]=(0,jn.useState)(null),{magnifyData:k}=e,v=!k.logSearchDone,A=k.logSearchResults,q=()=>{if(!n.trim()||!e.channelObject.webSocket)return;k.logSearchResults=[],k.logSearchDone=!1;let R=it();h(R);let ce=JSON.stringify({query:n,namespaces:e.data.namespaces,pods:e.data.pods,tailLines:l,caseSensitive:r,useRegex:s}),ve={flow:En.EInstanceMessageFlow.REQUEST,action:En.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:En.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:R,command:"logsearch",namespace:"",group:"",pod:"",container:"",params:[ce],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(ve))},de=()=>{if(!f||!e.channelObject.webSocket)return;let R={flow:En.EInstanceMessageFlow.REQUEST,action:En.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:En.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:it(),command:"logsearchstop",namespace:"",group:"",pod:"",container:"",params:[JSON.stringify({searchId:f})],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(R)),k.logSearchDone=!0,h(null)};(0,jn.useEffect)(()=>()=>{if(f&&e.channelObject.webSocket){let R={flow:En.EInstanceMessageFlow.REQUEST,action:En.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:En.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:it(),command:"logsearchstop",namespace:"",group:"",pod:"",container:"",params:[JSON.stringify({searchId:f})],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(R))}},[f]);let pe=R=>{e.data.onOpenLog(R.namespace,R.pod,R.container)},H=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},le=R=>{m(!1),t.current?.snapTo(R)};return(0,Se.jsxs)(ta,{ref:t,id:e.id,x:e.x,y:e.y,width:e.width,height:e.height,isMaximized:d,isActive:e.atFront,onFocus:e.onFocus,onWindowChange:e.onWindowChange,children:[(0,Se.jsx)(xe.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,Se.jsxs)(xe.Stack,{direction:"row",alignItems:"center",children:[(0,Se.jsx)(Fr.Search,{fontSize:"small",sx:{color:"text.secondary",mr:1}}),(0,Se.jsxs)(xe.Typography,{variant:"body2",fontWeight:500,flex:1,children:["Log Search \u2014 ",e.data.scopeLabel]}),(0,Se.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:H,onClose:()=>e.onClose(e.id),onSnap:le})]})}),(0,Se.jsxs)(xe.DialogContent,{sx:{display:"flex",flexDirection:"column",p:1,gap:1,overflow:"hidden",height:"100%"},children:[(0,Se.jsx)(xe.Stack,{direction:"row",spacing:1,alignItems:"center",children:(0,Se.jsx)(xe.TextField,{size:"small",fullWidth:!0,placeholder:"Search in logs\u2026",value:n,onChange:R=>a(R.target.value),onKeyDown:R=>{R.key==="Enter"&&q(),R.key==="Escape"&&e.onClose(e.id)},slotProps:{input:{endAdornment:(0,Se.jsx)(xe.InputAdornment,{position:"end",children:(0,Se.jsx)(xe.IconButton,{size:"small",onClick:q,disabled:v||!n.trim(),children:v?(0,Se.jsx)(xe.CircularProgress,{size:16}):(0,Se.jsx)(Fr.Search,{fontSize:"small"})})})}}})}),(0,Se.jsxs)(xe.Stack,{direction:"row",spacing:1,alignItems:"center",children:[(0,Se.jsx)(xe.FormControlLabel,{control:(0,Se.jsx)(xe.Checkbox,{size:"small",checked:r,onChange:R=>i(R.target.checked)}),label:(0,Se.jsx)(xe.Typography,{variant:"caption",children:"Case"}),sx:{mr:0}}),(0,Se.jsx)(xe.FormControlLabel,{control:(0,Se.jsx)(xe.Checkbox,{size:"small",checked:s,onChange:R=>o(R.target.checked)}),label:(0,Se.jsx)(xe.Typography,{variant:"caption",children:"Regex"}),sx:{mr:0}}),(0,Se.jsx)(xe.TextField,{size:"small",type:"number",label:"Lines",value:l,onChange:R=>c(Math.min(500,+R.target.value)),sx:{width:90},slotProps:{htmlInput:{min:1,max:500,style:{padding:"4px 8px",fontSize:"0.75rem"}}}}),(0,Se.jsx)(xe.Tooltip,{title:"Stop search",children:(0,Se.jsx)("span",{children:(0,Se.jsx)(xe.IconButton,{size:"small",onClick:de,disabled:!v,children:(0,Se.jsx)(Fr.Stop,{fontSize:"small",color:v?"error":"disabled"})})})}),v&&(0,Se.jsx)(xe.Typography,{variant:"caption",color:"text.secondary",children:"Searching\u2026"}),k.logSearchDone&&A.length>0&&!v&&(0,Se.jsx)(xe.Chip,{label:`${A.length} container${A.length>1?"s":""} with matches`,size:"small",color:"primary",variant:"outlined"}),k.logSearchDone&&A.length===0&&!v&&n&&(0,Se.jsx)(xe.Typography,{variant:"caption",color:"text.secondary",children:"No matches found."})]}),(0,Se.jsx)(xe.Divider,{}),(0,Se.jsx)(xe.Box,{sx:{flex:1,overflowY:"auto"},children:A.map((R,ce)=>(0,Se.jsxs)(xe.Box,{sx:{mb:1.5},children:[(0,Se.jsxs)(xe.Stack,{direction:"row",alignItems:"center",spacing:.5,sx:{mb:.5},children:[(0,Se.jsxs)(xe.Typography,{variant:"caption",fontWeight:600,sx:{fontFamily:"monospace",color:"primary.main"},children:[R.namespace,"/",R.pod]}),(0,Se.jsx)(xe.Chip,{label:R.container,size:"small",variant:"outlined",sx:{height:16,fontSize:"9px","& .MuiChip-label":{px:.5}}}),(0,Se.jsx)(xe.Chip,{label:`${R.lines.length} line${R.lines.length>1?"s":""}`,size:"small",sx:{height:16,fontSize:"9px","& .MuiChip-label":{px:.5}}}),(0,Se.jsx)(xe.Tooltip,{title:"Open log",children:(0,Se.jsx)(xe.IconButton,{size:"small",sx:{p:0},onClick:()=>pe(R),children:(0,Se.jsx)(Fr.Launch,{sx:{fontSize:12}})})})]}),R.lines.map((ve,ke)=>(0,Se.jsx)(xe.Typography,{variant:"caption",display:"block",sx:{fontFamily:"monospace",fontSize:"10px",pl:1,color:"text.secondary",wordBreak:"break-all",borderLeft:"2px solid",borderColor:"divider",mb:.25},children:ve},ke))]},ce))})]})]})};u();var L=I(ht(),1);u();var El=I(ht(),1),Ue=I(Mm(),1),nt=I(fe(),1),Bx=e=>{let t=e.channelObject.data;if(t.metricsProviderMissing)return(0,nt.jsx)(El.Alert,{severity:"info",sx:{my:1},children:"The metrics provider is not installed in this cluster, so there is no cluster usage to draw. Install it from \u2630 \u2192 Manage extensions \u2192 Providers."});let n=[...t.metricsCluster];return(0,nt.jsxs)(El.Stack,{direction:"row",sx:{height:"200px"},children:[(0,nt.jsx)(Ue.ResponsiveContainer,{children:(0,nt.jsxs)(Ue.LineChart,{data:n,title:"CPU",children:[(0,nt.jsx)(Ue.CartesianGrid,{strokeDasharray:"3 3"}),(0,nt.jsx)(Ue.XAxis,{dataKey:"timestamp",fontSize:8}),(0,nt.jsx)(Ue.YAxis,{fontSize:8}),(0,nt.jsx)(Ue.Legend,{}),(0,nt.jsx)(Ue.Line,{name:"% CPU",type:"monotone",dataKey:"cpuUsage",dot:!1})]})}),(0,nt.jsx)(Ue.ResponsiveContainer,{children:(0,nt.jsxs)(Ue.LineChart,{data:n,title:"Memory",children:[(0,nt.jsx)(Ue.CartesianGrid,{strokeDasharray:"3 3"}),(0,nt.jsx)(Ue.XAxis,{dataKey:"timestamp",fontSize:8}),(0,nt.jsx)(Ue.YAxis,{fontSize:8}),(0,nt.jsx)(Ue.Legend,{}),(0,nt.jsx)(Ue.Line,{name:"% Memory",type:"monotone",dataKey:"memoryUsage",dot:!1})]})}),(0,nt.jsx)(Ue.ResponsiveContainer,{children:(0,nt.jsxs)(Ue.LineChart,{data:n,title:"Network",children:[(0,nt.jsx)(Ue.CartesianGrid,{strokeDasharray:"3 3"}),(0,nt.jsx)(Ue.XAxis,{dataKey:"timestamp",fontSize:8}),(0,nt.jsx)(Ue.YAxis,{fontSize:8}),(0,nt.jsx)(Ue.Legend,{}),(0,nt.jsx)(Ue.Line,{name:"Tx Mbps",type:"monotone",dataKey:"txmbps",stroke:"#6e5bb8",dot:!1}),(0,nt.jsx)(Ue.Line,{name:"Rx Mbps",type:"monotone",dataKey:"rxmbps",stroke:"#4a9076",dot:!1})]})})]})};u();var Pn=I(ht(),1),At=I(Rt(),1),$x=I(Ze(),1),sn=I(Rt(),1),qx=I(Ml(),1),Ux=I(Dl(),1),An=I(fe(),1),Ji={get:qx.default,set:Ux.default},gn=(e,t)=>(0,An.jsx)(Pn.Stack,{direction:"column",children:e.map((n,a)=>(0,An.jsxs)(Pn.Typography,{variant:"body2",children:[n.text,":\xA0",(0,An.jsx)("a",{href:"#",onClick:()=>t(n.kind,n.name,n.namespace),children:n.name})]},a))}),Yx=e=>{let t=[];for(let n of e.filter(a=>a.class==="ReplicaSet").map(a=>a.data.origin))n.status?.replicas===0||n.status?.availableReplicas===0||n.status?.readyReplicas===0?t.push({kind:"ReplicaSet",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.WARNING,text:"Unneeded ReplicaSet"}):(n.status?.replicas===0||n.spec.availableReplicas===0)&&t.push({kind:"ReplicaSet",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.WARNING,text:"0 replicas desired"});return t},Gx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Deployment").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"Deployment",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.WARNING,text:"Unready replicas"});return t},Kx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Job").map(a=>a.data.origin))n.status?.failed!==void 0&&+n.status?.failed>0&&t.push({kind:"Job",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.ERROR,text:"Failed Job"});return t},Jx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Stateful").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"StatefulSet",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.ERROR,text:"SS Replicas unready"});return t},jx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Stateful").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"StatefulSet",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.ERROR,text:"DS replicas unready"});return t},Zx=e=>{let t=e.filter(i=>i.class==="ConfigMap"&&i.data?.origin?.metadata?.namespace!=="kube-system"&&i.data?.origin?.metadata?.namespace!=="kube-public"),n=[...t],a=(i,s)=>{let o=i.envFrom||[];for(let c of o)if(c.configMapRef?.name===s)return!0;let l=i.env||[];for(let c of l)if(c.valueFrom?.configMapRef?.name===s)return!0;return!1},r=(i,s)=>{for(let l of i.spec?.containers||[])if(a(l,s))return!0;let o=i.spec?.volumes||[];for(let l of o)if(l.configMap?.name===s||l.projected?.sources?.some(c=>c.configMap?.name===s))return!0;return!1};for(let i of t){let s=i.data.origin.metadata.name;" kwirth.keys kwirth-keys ".includes(s)&&(n=n.filter(o=>o!==i));for(let o of e.filter(l=>l.class==="Pod/").map(l=>l.data.origin))r(o,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="StatefulSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="ReplicaSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="Deployment").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="DaemonSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="ReplicationController").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i))}return n.map(i=>({name:i.data.origin.metadata.name,namespace:i.data.origin.metadata.namespace,kind:"ConfigMap",text:"Unreferenced ConfigMap",level:At.ENotifyLevel.WARNING}))},Xx=e=>{let t=e.filter(a=>a.class==="Secret"&&a.data?.origin?.metadata?.namespace!=="kube-system"&&a.data?.origin?.metadata?.namespace!=="kube-public"),n=[...t];for(let a of t){let r=a.data.origin.metadata.name;" kwirth-sa-kwirthtoken kwirth-users kwirth.keys kwirth-keys ".includes(r)&&(n=n.filter(i=>i!==a)),a.data?.origin?.type?.startsWith("helm.sh/release.")&&(n=n.filter(i=>i!==a));for(let i of e.filter(s=>s.class==="Pod")){let s=i.data.origin;if((Ji.get(s,"spec.imagePullSecrets")||[]).map(c=>c.name).some(c=>c===r)){n=n.filter(c=>c!==a);break}let o=s.spec?.containers||[];for(let c of o){let d=c.envFrom||[];for(let f of d)f.secretRef?.name===r&&(n=n.filter(h=>h!==a));let m=c.env||[];for(let f of m)f.valueFrom?.secretKeyRef?.name===r&&(n=n.filter(h=>h!==a))}let l=s.spec?.volumes||[];for(let c of l)c.secret?.secretName===r&&(n=n.filter(d=>d!==a)),c.projected?.sources?.some(d=>d.secret?.name===r)&&(n=n.filter(d=>d!==a))}for(let i of e.filter(s=>s.class==="Deployment"||s.class==="Job"||s.class==="ReplicaSet"||s.class==="DaemonSet"||s.class==="StatefulSet").map(s=>s.data.origin))if((Ji.get(i,"spec.template.spec.imagePullSecrets")||[]).map(s=>s.name).some(s=>s===r)){n=n.filter(s=>s!==a);break}for(let i of e.filter(s=>s.class==="Ingress")){let s=i.data.origin;(Ji.get(s,"spec.tls")||[]).some(o=>o.secretName===r)&&(n=n.filter(o=>o!==a))}for(let i of e.filter(s=>s.class==="PersistentVolume")){let s=i.data.origin;Ji.get(s,"spec.csi.nodeStageSecretRef.name")===r&&(n=n.filter(o=>o!==a)),Ji.get(s,"spec.csi.volumeAttributes.secretName")===r&&(n=n.filter(o=>o!==a))}for(let i of e.filter(s=>s.class==="StorageClass")){let s=i.data.origin;Ji.get(s,"parameters.secretName")===r&&(n=n.filter(o=>o!==a))}}return n.map(a=>({name:a.data.origin.metadata.name,namespace:a.data.origin.metadata.namespace,kind:"Secret",text:"Unreferenced Secret",level:At.ENotifyLevel.WARNING}))},Qx=e=>{let t=e.filter(a=>a.class==="VolumeAttachment"),n=[];for(let a of t)(a.data.origin.status.attachError||a.data.origin.status.detachError)&&n.push({kind:"VolumeAttach",name:a.data.origin.metadata.name,namespace:"",level:At.ENotifyLevel.ERROR,text:"Attach/detach error"});return n},e1=e=>{let t=[],n=e.filter(a=>a.class==="Node").map(a=>a.data.origin);for(let a of n)a.status.conditions.some(i=>i.type==="Ready"&&i.status==="True")||t.push({name:a.metadata.name,namespace:"",kind:"Node",text:"Node not ready",level:At.ENotifyLevel.ERROR});return t},t1=e=>{let t=[],n=e.filter(a=>a.class==="Ingress").map(a=>a.data.origin);for(let a of n){let r=a.metadata?.namespace,i=a.spec?.rules;for(let s of i){let o=s.http?.paths;for(let l of o){let c=l.backend?.service?.name;e.find(d=>d.class==="Service"&&d.data.origin?.metadata?.name===c&&d.data.origin?.metadata?.namespace===r)||t.push({kind:"Ingress",name:a.metadata.name,namespace:a.metadata.namespace,level:At.ENotifyLevel.ERROR,text:"Inexistent service "+c})}}}return t},n1=e=>{let t=[],n=e.filter(a=>a.class==="Service"&&a.data.origin?.metadata?.namespace!=="kube-system"&&a.data.origin?.metadata?.namespace!=="kube-public").map(a=>a.data.origin);for(let a of n){let r=a.metadata?.namespace,i=a.spec.selector;if(i){let s=!1;for(let o of e.filter(l=>l.class==="Pod"&&l.data.origin?.metadata?.namespace===r).map(l=>l.data.origin)){let l=0;for(let c of Object.keys(i))o.metadata?.labels?.[c]===i[c]&&l++;if(l===Object.keys(i).length){s=!0;break}}s||t.push({kind:"Service",name:a.metadata.name,namespace:a.metadata.namespace,level:At.ENotifyLevel.ERROR,text:"Inexistent service destination pods"})}}return t},a1=e=>{let t=[],n=e.filter(a=>a.class==="Role"&&a.data.origin?.metadata?.namespace!=="kube-system"&&a.data.origin?.metadata?.namespace!=="kube-public").map(a=>a.data.origin);for(let a of n){let r=!1;for(let i of e.filter(s=>s.class==="RoleBinding").map(s=>s.data.origin))if(r=i.subjects.some(s=>s.kind==="ServiceAccount"&&s.name===a.metadata.name&&s.namespace===a.metadata.namespace),r)break;r||t.push({kind:"Role",name:a.metadata.name,namespace:a.metadata.namespace,level:At.ENotifyLevel.WARNING,text:"Role not in use"})}return t},r1=e=>{let t=[],n=e.filter(a=>a.class==="ClusterRole").map(a=>a.data.origin);for(let a of n){let r=!1;for(let i of e.filter(s=>s.class==="ClusterRoleBinding").map(s=>s.data.origin))if(r=i.subjects&&i.subjects.some(s=>s.kind==="ServiceAccount"&&s.name===i.metadata.name&&s.namespace===i.metadata.namespace),r)break;r||t.push({kind:"ClusterRole",name:a.metadata.name,namespace:"",level:At.ENotifyLevel.WARNING,text:"ClusterRole not in use"})}return t},yn=(e,t,n,a)=>{let r=e.filter(s=>s.level===At.ENotifyLevel.ERROR).length,i=e.filter(s=>s.level===At.ENotifyLevel.WARNING).length;return(0,An.jsx)(Pn.Button,{onClick:()=>n(a),sx:{backgroundColor:r>0?"#ffaaaa":""},children:(0,An.jsxs)(Pn.Stack,{direction:"column",alignItems:"center",children:[t,(0,An.jsxs)(Pn.Stack,{direction:"row",children:[(0,An.jsxs)(Pn.Typography,{variant:"caption",color:r>0?"red":"gray",children:[r,"\xA0\xA0"]}),(0,An.jsx)(Pn.Typography,{variant:"caption",color:i>0?"orange":r>0?"gray":"orange",children:e.filter(s=>s.level===At.ENotifyLevel.WARNING).length})]})]})})},DM=(e,t)=>(0,An.jsxs)(Pn.Stack,{direction:"row",flex:1,justifyContent:"space-between",children:[yn(e1(e),(0,sn.getIconFromKind)("Node",50),t,"/cluster/Node"),yn(Zx(e),(0,sn.getIconFromKind)("ConfigMap",50),t,"/config/ConfigMap"),yn(Xx(e),(0,sn.getIconFromKind)("Secret",50),t,"/config/Secret"),yn(Gx(e),(0,sn.getIconFromKind)("Deployment",50),t,"/workload/Deployment"),yn(Yx(e),(0,sn.getIconFromKind)("ReplicaSet",50),t,"/workload/ReplicaSet"),yn(Jx(e),(0,sn.getIconFromKind)("StatefulSet",50),t,"/workload/StatefulSet"),yn(jx(e),(0,sn.getIconFromKind)("DaemonSet",50),t,"/workload/DaemonSet"),yn(Kx(e),(0,sn.getIconFromKind)("Job",50),t,"/workload/Job"),yn(t1(e),(0,sn.getIconFromKind)("Ingress",50),t,"/network/Ingress"),yn(n1(e),(0,sn.getIconFromKind)("Service",50),t,"/network/Service"),yn(Qx(e),(0,sn.getIconFromKind)("VolumeAttachment",50),t,"/storage/VolumeAttachment"),yn(a1(e),(0,sn.getIconFromKind)("Role",50),t,"/access/Role"),yn(r1(e),(0,sn.getIconFromKind)("ClusterRole",50),t,"/access/ClusterRole")]}),Ba=e=>{let t=(0,$x.useMemo)(()=>{let n={},{options:a,files:r,onNavigate:i}=e;return a.node&&(n.node=e1(r)),a.configMap&&(n.configMap=Zx(r)),a.secret&&(n.secret=Xx(r)),a.deployment&&(n.deployment=Gx(r)),a.replicaSet&&(n.replicaSet=Yx(r)),a.statefulSet&&(n.statefulSet=Jx(r)),a.daemonSet&&(n.daemonSet=jx(r)),a.job&&(n.job=Kx(r)),a.volumeAttachment&&(n.volumeAttachment=Qx(r)),a.ingress&&(n.ingress=t1(r)),a.service&&(n.service=n1(r)),a.role&&(n.role=a1(r)),a.custerRole&&(n.clusterRole=r1(r)),a.summary&&(n.summary=DM(r,i)),n},[e.files,e.options,e.onNavigate]);return(0,An.jsxs)(Pn.Stack,{children:[e.options.node&&gn(t.node,e.onLink),e.options.configMap&&gn(t.configMap,e.onLink),e.options.secret&&gn(t.secret,e.onLink),e.options.deployment&&gn(t.deployment,e.onLink),e.options.replicaSet&&gn(t.replicaSet,e.onLink),e.options.statefulSet&&gn(t.statefulSet,e.onLink),e.options.daemonSet&&gn(t.daemonSet,e.onLink),e.options.job&&gn(t.job,e.onLink),e.options.volumeAttachment&&gn(t.volumeAttachment,e.onLink),e.options.ingress&&gn(t.ingress,e.onLink),e.options.service&&gn(t.service,e.onLink),e.options.role&&gn(t.role,e.onLink),e.options.custerRole&&gn(t.clusterRole,e.onLink),e.options.summary&&t.summary]})};u();var Kt=I(Ze(),1),_=I(ht(),1),zr=I(Jt(),1);var s1=I(Rt(),1);u();var Be=I(ht(),1),at=I(fe(),1),i1=e=>(0,at.jsxs)(Be.Dialog,{open:!0,onClose:e.onClose,disableRestoreFocus:!0,maxWidth:"xs",fullWidth:!0,children:[(0,at.jsx)(Be.DialogTitle,{children:"About Kwirth..."}),(0,at.jsx)(Be.DialogContent,{children:(0,at.jsxs)(Be.Stack,{spacing:2,sx:{p:2,borderRadius:2,backgroundColor:"rgba(245,130,10,0.07)",border:"1px solid rgba(245,130,10,0.2)"},children:[(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"h5",fontWeight:"bold",sx:{color:"#f5820a"},children:"Kwirth"}),(0,at.jsx)(Be.Typography,{variant:"body2",color:"text.secondary",children:"Kubernetes observability platform"})]}),(0,at.jsx)(Be.Divider,{}),(0,at.jsxs)(Be.Stack,{spacing:1.5,children:[(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"caption",color:"text.secondary",display:"block",children:"VERSION"}),(0,at.jsx)(Be.Typography,{variant:"body2",children:e.kwirthVersion??"unknown"})]}),(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"caption",color:"text.secondary",display:"block",children:"HOMEPAGE"}),(0,at.jsx)(Be.Typography,{variant:"body2",children:(0,at.jsx)("a",{href:"https://kwirthmagnify.dev",target:"_blank",rel:"noreferrer",children:"kwirthmagnify.dev"})})]}),(0,at.jsxs)(Be.Box,{children:[(0,at.jsx)(Be.Typography,{variant:"caption",color:"text.secondary",display:"block",children:"SOURCE CODE"}),(0,at.jsx)(Be.Typography,{variant:"body2",children:(0,at.jsx)("a",{href:"https://github.com/kwirthmagnify/kwirth",target:"_blank",rel:"noreferrer",children:"github.com/kwirthmagnify/kwirth"})})]})]}),(0,at.jsx)(Be.Divider,{}),(0,at.jsx)(Be.Typography,{variant:"caption",color:"text.secondary",children:"\xA9 2025 Kwirth contributors \xB7 Apache 2.0"})]})}),(0,at.jsx)(Be.DialogActions,{children:(0,at.jsx)(Be.Button,{onClick:e.onClose,children:"OK"})})]});var js=I(Qa(),1),F=I(fe(),1),o1=e=>{let[t,n]=(0,Kt.useState)(e.preferences.palette||"light"),[a,r]=(0,Kt.useState)(e.preferences.logLines),[i,s]=(0,Kt.useState)(e.preferences.tracing),[o,l]=(0,Kt.useState)(e.preferences.dataConfig?.source),[c,d]=(0,Kt.useState)(e.preferences.dataConfig?.sync),[m,f]=(0,Kt.useState)(e.preferences.dataHelm),[h,k]=(0,Kt.useState)(e.preferences.dataManagedFields),[v,A]=(0,Kt.useState)(e.preferences.customActions||[]),[q,de]=(0,Kt.useState)(!1),[pe,H]=(0,Kt.useState)(!1),[le,R]=(0,Kt.useState)(!1),[ce,ve]=(0,Kt.useState)(!1),ke=(0,Kt.useRef)(null),[z,B]=(0,Kt.useState)(!1),se="Paste here a complete YAML of a pod that will be launched when a user selects this action in Magnify 'Overview' top menu ('Kwirth Works' action)";(0,s1.useKeyboard)();let j=()=>{e.channelObject.writeChannelUserPreferences&&(e.preferences.palette=t,e.preferences.dataHelm=m,e.preferences.dataManagedFields=h,e.preferences.dataConfig.source=o,e.preferences.dataConfig.sync=c,e.preferences.logLines=a,e.preferences.tracing=i,e.preferences.customActions=v,e.channelObject.writeChannelUserPreferences(e.channelObject.channelId,e.preferences),de(!1),H(!1),R(!1),ve(!1))},Fe=()=>{e.onDataReload&&e.onDataReload()},Ve=()=>{console.log(e.files.filter(ae=>ae.name.includes(ke.current.value)||ae.path.includes(ke.current.value)))},rt=(ae,De)=>{let $e=o;ae==="sync"&&($e=c),$e.some(Y=>Y.name===De.name)?$e=$e.filter(Y=>Y.name!==De.name):$e.push(De),ae==="source"&&l([...$e]),ae==="sync"&&d([...$e]),H(!0)},Mt=ae=>{v.splice(ae,1),A([...v])};return(0,F.jsxs)(_.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,F.jsxs)(_.Accordion,{defaultExpanded:!0,children:[(0,F.jsx)(_.AccordionSummary,{expandIcon:(0,F.jsx)(zr.ExpandMore,{}),children:(0,F.jsx)(_.Typography,{component:"span",children:(0,F.jsx)("b",{children:"Display"})})}),(0,F.jsx)(_.AccordionDetails,{children:(0,F.jsxs)(_.Stack,{direction:"column",spacing:.5,children:[(0,F.jsxs)(_.Stack,{direction:"row",alignItems:"center",children:[(0,F.jsx)(_.Typography,{variant:"body2",sx:{flexGrow:1},children:"Palette mode"}),(0,F.jsx)(_.Typography,{variant:"body2",color:"text.secondary",sx:{mr:1},children:t==="dark"?"Dark":"Light"}),(0,F.jsx)(_.Switch,{size:"small",checked:t==="dark",onChange:ae=>{let De=ae.target.checked?"dark":"light";n(De),e.channelObject.setPalette?.(De),de(!0)}})]}),(0,F.jsxs)(_.Stack,{direction:"row",alignItems:"center",children:[(0,F.jsx)(_.Typography,{variant:"body2",sx:{flexGrow:1},children:"About Kwirth"}),(0,F.jsx)(_.Button,{size:"small",onClick:()=>B(!0),children:"About"})]})]})}),(0,F.jsx)(_.AccordionActions,{children:(0,F.jsx)(_.Button,{size:"small",onClick:j,disabled:!q,children:"Save"})})]}),(0,F.jsxs)(_.Accordion,{children:[(0,F.jsx)(_.AccordionSummary,{expandIcon:(0,F.jsx)(zr.ExpandMore,{}),children:(0,F.jsx)(_.Typography,{component:"span",children:(0,F.jsx)("b",{children:"Custom actions"})})}),(0,F.jsxs)(_.AccordionDetails,{children:[v.map((ae,De)=>(0,F.jsxs)(_.Stack,{direction:"column",spacing:1,sx:{mb:2},children:[(0,F.jsxs)(_.Stack,{direction:"row",spacing:1,alignItems:"center",children:[(0,F.jsxs)(_.Select,{value:ae.type,onChange:$e=>{ae.type=$e.target.value,A([...v])},variant:"standard",sx:{width:100},children:[(0,F.jsx)(_.MenuItem,{value:"kwirth",disabled:!0,children:"Kwirth"}),(0,F.jsx)(_.MenuItem,{value:"kube",children:"Kube"})]}),(0,F.jsx)(_.TextField,{value:ae.name,onChange:$e=>{ae.name=$e.target.value,A([...v])},variant:"standard",placeholder:"Name",sx:{minWidth:"15%"}}),(0,F.jsxs)(_.Select,{value:ae.onReady,onChange:$e=>{ae.onReady=$e.target.value,A([...v])},variant:"standard",sx:{minWidth:"10%"},children:[(0,F.jsx)(_.MenuItem,{value:"nothing",children:"Nothing"}),(0,F.jsx)(_.MenuItem,{value:"shell",children:"Shell"}),(0,F.jsx)(_.MenuItem,{value:"http",disabled:!0,children:"HTTP"}),(0,F.jsx)(_.MenuItem,{value:"https",disabled:!0,children:"HTTPS"})]}),(0,F.jsx)(_.FormControlLabel,{control:(0,F.jsx)(_.Checkbox,{size:"small",onChange:$e=>{ae.forward=$e.target.checked,A([...v])},checked:ae.forward,disabled:"nothing shell".includes(ae.onReady)}),label:"Forward"}),(0,F.jsx)(_.TextField,{value:ae.url,onChange:$e=>{ae.url=$e.target.value,A([...v])},disabled:"nothing shell".includes(ae.onReady)||ae.forward,fullWidth:!0,variant:"standard",placeholder:"URL"}),(0,F.jsx)(_.Box,{sx:{flexGrow:1}}),(0,F.jsx)(_.Button,{size:"small",onClick:()=>Mt(De),children:"Remove"})]}),(0,F.jsx)(_.TextareaAutosize,{value:ae.podYaml,onChange:$e=>{ae.podYaml=$e.target.value,A([...v])},style:{height:100,fontFamily:"monospace",fontSize:12,padding:8,boxSizing:"border-box",width:"100%"},placeholder:se},"yaml"+De)]},"action"+De)),(0,F.jsx)(_.Stack,{direction:"row",justifyContent:"flex-end",children:(0,F.jsx)(_.Button,{size:"small",onClick:()=>A([...v,{type:"kube",name:"",podYaml:"",onReady:"nothing"}]),children:"Add"})})]}),(0,F.jsx)(_.AccordionActions,{children:(0,F.jsx)(_.Button,{size:"small",onClick:j,children:"Save"})})]}),(0,F.jsxs)(_.Accordion,{children:[(0,F.jsx)(_.AccordionSummary,{expandIcon:(0,F.jsx)(zr.ExpandMore,{}),children:(0,F.jsx)(_.Typography,{component:"span",children:(0,F.jsx)("b",{children:"External content"})})}),(0,F.jsx)(_.AccordionDetails,{children:(0,F.jsx)(_.TextField,{value:a,onChange:ae=>{r(+ae.target.value),ve(!0)},variant:"standard",label:"Max messages",type:"number",fullWidth:!0})}),(0,F.jsx)(_.AccordionActions,{children:(0,F.jsx)(_.Button,{size:"small",onClick:j,disabled:!ce,children:"Save"})})]}),(0,F.jsxs)(_.Accordion,{children:[(0,F.jsx)(_.AccordionSummary,{expandIcon:(0,F.jsx)(zr.ExpandMore,{}),children:(0,F.jsx)(_.Typography,{component:"span",children:(0,F.jsx)("b",{children:"Data management"})})}),(0,F.jsx)(_.AccordionDetails,{children:(0,F.jsxs)(_.Stack,{direction:"row",spacing:2,children:[(0,F.jsxs)(_.Stack,{direction:"column",flex:1,children:[(0,F.jsx)(_.Typography,{variant:"body2",fontWeight:"bold",children:"Storage"}),(0,F.jsx)(_.FormControlLabel,{control:(0,F.jsx)(_.Checkbox,{size:"small",onChange:ae=>{f(ae.target.checked),H(!0)},checked:m}),label:(0,F.jsx)(_.Typography,{variant:"body2",children:"Keep Helm data"})}),(0,F.jsx)(_.FormControlLabel,{control:(0,F.jsx)(_.Checkbox,{size:"small",onChange:ae=>{k(ae.target.checked),H(!0)},checked:h}),label:(0,F.jsx)(_.Typography,{variant:"body2",children:"Keep managed fields"})})]}),(0,F.jsxs)(_.Stack,{direction:"column",flex:1,children:[(0,F.jsx)(_.Typography,{variant:"body2",fontWeight:"bold",children:"Source"}),us.map(ae=>(0,F.jsx)(_.FormControlLabel,{control:(0,F.jsx)(_.Checkbox,{size:"small",onChange:()=>rt("source",ae),checked:o.some(De=>De.name===ae.name)}),label:(0,F.jsx)(_.Typography,{variant:"body2",children:ae.name})},ae.name))]}),(0,F.jsxs)(_.Stack,{direction:"column",flex:1,children:[(0,F.jsx)(_.Typography,{variant:"body2",fontWeight:"bold",children:"Sync"}),us.map(ae=>(0,F.jsx)(_.FormControlLabel,{control:(0,F.jsx)(_.Checkbox,{size:"small",onChange:()=>rt("sync",ae),checked:c.some(De=>De.name===ae.name)}),label:(0,F.jsx)(_.Typography,{variant:"body2",children:ae.name})},ae.name))]})]})}),(0,F.jsx)(_.AccordionActions,{children:(0,F.jsx)(_.Button,{size:"small",onClick:j,disabled:!pe,children:"Save"})})]}),(0,F.jsxs)(_.Accordion,{children:[(0,F.jsx)(_.AccordionSummary,{expandIcon:(0,F.jsx)(zr.ExpandMore,{}),children:(0,F.jsx)(_.Typography,{component:"span",children:(0,F.jsx)("b",{children:"Debug"})})}),(0,F.jsx)(_.AccordionDetails,{children:(0,F.jsxs)(_.Stack,{direction:"column",spacing:.5,children:[(0,F.jsxs)(_.Stack,{direction:"row",alignItems:"center",spacing:1,children:[(0,F.jsxs)(_.Typography,{variant:"body2",sx:{flexGrow:1},children:["Files collection (",e.files.length," objects, ",(JSON.stringify(e.files).length/1024/1024).toFixed(2)," MB)"]}),(0,F.jsx)(_.TextField,{inputRef:ke,label:"Filter",variant:"standard",size:"small"}),(0,F.jsx)(_.Button,{size:"small",onClick:Fe,children:"Reload"}),(0,F.jsx)(_.Button,{size:"small",onClick:Ve,children:"Show"})]}),(0,F.jsxs)(_.Stack,{direction:"row",alignItems:"center",children:[(0,F.jsx)(_.Typography,{variant:"body2",sx:{flexGrow:1},children:"Metrics names"}),(0,F.jsx)(_.Button,{size:"small",onClick:()=>console.log(e.channelObject.metricsList?.keys()),children:"Show"})]}),(0,F.jsxs)(_.Stack,{direction:"row",alignItems:"center",children:[(0,F.jsx)(_.Typography,{variant:"body2",sx:{flexGrow:1},children:"Channel object"}),(0,F.jsx)(_.Button,{size:"small",onClick:()=>console.log(e.channelObject),children:"Show"})]}),(0,F.jsxs)(_.Stack,{direction:"row",alignItems:"center",children:[(0,F.jsx)(_.Typography,{variant:"body2",sx:{flexGrow:1},children:"Message tracing (log received messages to console)"}),(0,F.jsx)(_.Checkbox,{size:"small",checked:i,onChange:()=>{s(!i),R(!0)}})]})]})}),(0,F.jsx)(_.AccordionActions,{children:(0,F.jsx)(_.Button,{size:"small",onClick:j,disabled:!le,children:"Save"})})]}),(0,F.jsxs)(_.Accordion,{children:[(0,F.jsx)(_.AccordionSummary,{expandIcon:(0,F.jsx)(zr.ExpandMore,{}),children:(0,F.jsx)(_.Typography,{component:"span",children:(0,F.jsx)("b",{children:"Extensions"})})}),(0,F.jsx)(_.AccordionDetails,{children:(0,F.jsx)(_.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[{type:js.EExtensionType.PLUGIN,label:"Plugins",desc:"Install, update and remove channel plugins that extend Kwirth with new visualization and analysis capabilities."},{type:js.EExtensionType.PROVIDER,label:"Providers",desc:"Configure data source providers that feed events and metrics into your channels from external systems."},{type:js.EExtensionType.SENDER,label:"Senders",desc:"Manage notification senders to forward alerts and reports to Slack, Teams, email and other destinations."},{type:js.EExtensionType.THEME,label:"Themes",desc:"Install and activate visual themes to customize the look and feel of Kwirth."}].map(({type:ae,label:De,desc:$e})=>(0,F.jsxs)(_.Box,{sx:{border:1,borderColor:"divider",borderRadius:1,p:1.5,flex:1,minWidth:120,display:"flex",flexDirection:"column",gap:1},children:[(0,F.jsx)(_.Typography,{variant:"body2",fontWeight:"bold",children:De}),(0,F.jsx)(_.Typography,{variant:"caption",color:"text.secondary",sx:{flexGrow:1},children:$e}),(0,F.jsx)(_.Button,{size:"small",onClick:()=>e.channelObject.openManager?.(ae),children:"Manage"})]},ae))})})]}),z&&(0,F.jsx)(i1,{kwirthVersion:e.channelObject.kwirthVersion,onClose:()=>B(!1)})]})};var ji=I(Qa(),1);u();var N=I(fe(),1),da="var(--magnify-section-bg, white)",Lr=e=>(0,N.jsxs)("svg",{viewBox:"0 0 360 400",width:"300",height:"333",role:"img","aria-label":e.label,children:[(0,N.jsx)("g",{fill:"none",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",children:e.children}),(0,N.jsx)("text",{x:"180",y:"378",textAnchor:"middle",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"30",fill:"currentColor",children:e.label})]}),on=e=>{let t=e.r??11,n=[0,1,2,3,4,5].map(a=>{let r=Math.PI/6+a*Math.PI/3;return`${(e.cx+t*Math.cos(r)).toFixed(1)},${(e.cy+t*Math.sin(r)).toFixed(1)}`}).join(" ");return(0,N.jsx)("polygon",{points:n})},Zs=e=>{let{cx:t,cy:n,r:a}=e;return(0,N.jsxs)("g",{children:[(0,N.jsx)("circle",{cx:t,cy:n,r:a}),(0,N.jsx)("circle",{cx:t,cy:n,r:a*.4}),[0,1,2,3,4,5,6,7].map(r=>{let i=r*Math.PI/4;return(0,N.jsx)("line",{x1:t+a*Math.cos(i),y1:n+a*Math.sin(i),x2:t+(a+a*.45)*Math.cos(i),y2:n+(a+a*.45)*Math.sin(i)},r)})]})},Al=e=>{let{cx:t,cy:n,s:a}=e;return(0,N.jsxs)("g",{children:[(0,N.jsx)("path",{d:`M${t},${n-a} L${t+a},${n-a/2} L${t},${n} L${t-a},${n-a/2} Z`}),(0,N.jsx)("path",{d:`M${t-a},${n-a/2} L${t-a},${n+a/2} L${t},${n+a} L${t},${n}`}),(0,N.jsx)("path",{d:`M${t+a},${n-a/2} L${t+a},${n+a/2} L${t},${n+a}`}),[0,1,2].map(r=>(0,N.jsx)("line",{x1:t+a*.25,y1:n+a*.1+r*a*.22,x2:t+a*.75,y2:n-a*.15+r*a*.22},r))]})},OM=()=>(0,N.jsxs)(Lr,{label:"WORKLOAD",children:[(0,N.jsxs)("g",{fill:"currentColor",stroke:"none",children:[(0,N.jsx)("rect",{x:"62",y:"198",width:"34",height:"57",rx:"3"}),(0,N.jsx)("rect",{x:"110",y:"212",width:"34",height:"43",rx:"3"}),(0,N.jsx)("rect",{x:"158",y:"150",width:"34",height:"105",rx:"3"}),(0,N.jsx)("rect",{x:"206",y:"162",width:"34",height:"93",rx:"3"}),(0,N.jsx)("rect",{x:"254",y:"106",width:"34",height:"149",rx:"3"})]}),(0,N.jsx)("line",{x1:"52",y1:"268",x2:"298",y2:"268"}),(0,N.jsx)("circle",{cx:"44",cy:"268",r:"8"}),(0,N.jsx)("circle",{cx:"306",cy:"268",r:"8"}),(0,N.jsx)("polyline",{points:"70,170 158,100 198,124 282,46",strokeWidth:"12"}),(0,N.jsx)("polyline",{points:"248,44 286,42 284,80",strokeWidth:"12"}),(0,N.jsx)(Zs,{cx:130,cy:178,r:12})]}),RM=()=>(0,N.jsxs)(Lr,{label:"NETWORKING",children:[(0,N.jsx)("circle",{cx:"180",cy:"165",r:"130"}),(0,N.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"52"}),(0,N.jsx)("ellipse",{cx:"180",cy:"165",rx:"62",ry:"130"}),(0,N.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"60",transform:"rotate(35 180 165)",strokeDasharray:"10 10",strokeWidth:"3"}),(0,N.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"60",transform:"rotate(-35 180 165)",strokeDasharray:"10 10",strokeWidth:"3"}),[[50,165],[310,165],[180,35],[180,295],[242,98],[136,175],[210,222],[262,52],[100,78],[292,222]].map(([e,t],n)=>(0,N.jsx)("circle",{cx:e,cy:t,r:"10",fill:da},n))]}),NM=()=>(0,N.jsxs)(Lr,{label:"SECURITY",children:[(0,N.jsx)("rect",{x:"34",y:"26",width:"292",height:"254",strokeDasharray:"14 10",strokeWidth:"4"}),(0,N.jsx)(on,{cx:34,cy:26}),(0,N.jsx)(on,{cx:326,cy:26}),(0,N.jsx)(on,{cx:34,cy:280}),(0,N.jsx)(on,{cx:326,cy:280}),(0,N.jsx)("circle",{cx:"180",cy:"26",r:"8"}),(0,N.jsx)("circle",{cx:"180",cy:"280",r:"8"}),(0,N.jsx)("circle",{cx:"34",cy:"153",r:"8"}),(0,N.jsx)("circle",{cx:"326",cy:"153",r:"8"}),(0,N.jsx)("path",{d:"M180,52 C214,72 244,78 270,78 L270,160 C270,226 232,262 180,290 C128,262 90,226 90,160 L90,78 C116,78 146,72 180,52 Z"}),(0,N.jsx)("path",{d:"M180,72 C208,88 232,94 252,94 L252,160 C252,214 222,244 180,268 C138,244 108,214 108,160 L108,94 C128,94 152,88 180,72 Z",strokeWidth:"4"}),(0,N.jsx)("rect",{x:"142",y:"150",width:"76",height:"62",rx:"8"}),(0,N.jsx)("path",{d:"M156,150 V132 a24,24 0 0 1 48,0 V150"}),(0,N.jsx)("circle",{cx:"180",cy:"176",r:"7"}),(0,N.jsx)("line",{x1:"180",y1:"183",x2:"180",y2:"198"})]}),EM=()=>(0,N.jsxs)(Lr,{label:"CLUSTER",children:[(0,N.jsx)("circle",{cx:"180",cy:"168",r:"150",strokeDasharray:"12 10",strokeWidth:"4"}),[[110,102],[250,102],[110,236],[250,236]].map(([e,t],n)=>(0,N.jsxs)("g",{children:[(0,N.jsx)("line",{x1:e,y1:t,x2:e<180?70:290,y2:t,strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("circle",{cx:e<180?64:296,cy:t,r:"7"})]},n)),(0,N.jsx)("line",{x1:"180",y1:"130",x2:"180",y2:"206"}),(0,N.jsx)("line",{x1:"140",y1:"168",x2:"220",y2:"168"}),(0,N.jsx)(Al,{cx:180,cy:92,s:40}),(0,N.jsx)(Al,{cx:104,cy:168,s:40}),(0,N.jsx)(Al,{cx:256,cy:168,s:40}),(0,N.jsx)(Al,{cx:180,cy:236,s:40})]}),l1=()=>(0,N.jsxs)("g",{children:[(0,N.jsx)("circle",{cx:"180",cy:"62",r:"32",fill:da}),(0,N.jsx)("circle",{cx:"180",cy:"258",r:"32",fill:da}),(0,N.jsx)("rect",{x:"166",y:"86",width:"28",height:"148",rx:"10",fill:da}),(0,N.jsx)("rect",{x:"168",y:"22",width:"24",height:"38",rx:"3",fill:da}),(0,N.jsx)("rect",{x:"168",y:"260",width:"24",height:"38",rx:"3",fill:da}),(0,N.jsx)("rect",{x:"170",y:"16",width:"20",height:"12",fill:da,stroke:"none"}),(0,N.jsx)("rect",{x:"170",y:"292",width:"20",height:"12",fill:da,stroke:"none"})]}),AM=()=>(0,N.jsxs)(Lr,{label:"CONFIG",children:[(0,N.jsx)(on,{cx:86,cy:86,r:52}),(0,N.jsx)(Zs,{cx:86,cy:86,r:20}),(0,N.jsx)(on,{cx:274,cy:236,r:50}),(0,N.jsx)(Zs,{cx:274,cy:236,r:19}),(0,N.jsx)(on,{cx:326,cy:96,r:16}),(0,N.jsx)(on,{cx:34,cy:226,r:16}),(0,N.jsx)(on,{cx:186,cy:24,r:14}),(0,N.jsx)("line",{x1:"150",y1:"24",x2:"170",y2:"24",strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"326",y1:"114",x2:"326",y2:"140",strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"34",y1:"192",x2:"34",y2:"208",strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("g",{transform:"rotate(45 180 160)",children:(0,N.jsx)(l1,{})}),(0,N.jsx)("text",{x:"20",y:"176",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"22",fill:"currentColor",stroke:"none",children:"101"}),(0,N.jsx)("text",{x:"296",y:"162",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"22",fill:"currentColor",stroke:"none",children:"101"})]}),PM=()=>(0,N.jsxs)(Lr,{label:"STORAGE",children:[[26,70,114].map((e,t)=>(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:"92",y:e,width:"176",height:"40",rx:"8"}),(0,N.jsx)("circle",{cx:"112",cy:e+20,r:"7"}),[0,1,2,3].map(n=>[0,1].map(a=>(0,N.jsx)("circle",{cx:210+n*14,cy:e+13+a*14,r:"2.5",fill:"currentColor",stroke:"none"},`${n}${a}`)))]},t)),(0,N.jsx)("line",{x1:"62",y1:"150",x2:"42",y2:"76"}),(0,N.jsx)("line",{x1:"298",y1:"150",x2:"318",y2:"76"}),(0,N.jsx)("rect",{x:"34",y:"154",width:"292",height:"36",rx:"18"}),(0,N.jsx)("path",{d:"M58,190 L94,302 L266,302 L302,190"}),(0,N.jsx)("line",{x1:"116",y1:"190",x2:"132",y2:"302",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"244",y1:"190",x2:"228",y2:"302",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"70",y1:"238",x2:"290",y2:"238",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"180",y1:"284",x2:"180",y2:"214"}),(0,N.jsx)("polyline",{points:"162,232 180,212 198,232"})]}),FM=()=>(0,N.jsxs)(Lr,{label:"CUSTOMIZATION",children:[(0,N.jsx)("g",{transform:"translate(180 160) rotate(-45) scale(0.8) translate(-180 -160)",children:(0,N.jsx)(l1,{})}),(0,N.jsxs)("g",{transform:"rotate(45 180 160)",children:[(0,N.jsx)("rect",{x:"170",y:"160",width:"20",height:"118",rx:"10"}),(0,N.jsx)("rect",{x:"162",y:"122",width:"36",height:"40",rx:"4"}),(0,N.jsx)("path",{d:"M162,122 C158,96 166,64 180,44 C194,64 202,96 198,122"}),(0,N.jsx)("line",{x1:"180",y1:"60",x2:"180",y2:"120",strokeWidth:"3"})]}),(0,N.jsx)("line",{x1:"262",y1:"150",x2:"318",y2:"150"}),(0,N.jsx)("circle",{cx:"300",cy:"150",r:"8",fill:da}),(0,N.jsx)("line",{x1:"262",y1:"184",x2:"318",y2:"184"}),(0,N.jsx)("circle",{cx:"276",cy:"184",r:"8",fill:da}),(0,N.jsx)(Zs,{cx:178,cy:36,r:10}),(0,N.jsx)(Zs,{cx:130,cy:262,r:12}),(0,N.jsx)(on,{cx:32,cy:150}),(0,N.jsx)(on,{cx:84,cy:160,r:14}),(0,N.jsx)(on,{cx:48,cy:232}),(0,N.jsx)(on,{cx:180,cy:268,r:14}),(0,N.jsx)(on,{cx:292,cy:112,r:12}),(0,N.jsx)("circle",{cx:"34",cy:"36",r:"8"}),(0,N.jsx)("circle",{cx:"326",cy:"36",r:"8"}),(0,N.jsx)("circle",{cx:"34",cy:"270",r:"8"}),(0,N.jsx)("circle",{cx:"326",cy:"270",r:"8"}),(0,N.jsx)("line",{x1:"44",y1:"36",x2:"96",y2:"36",strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"264",y1:"36",x2:"316",y2:"36",strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"44",y1:"270",x2:"96",y2:"270",strokeDasharray:"4 8",strokeWidth:"4"})]}),c1={access:NM,cluster:EM,config:AM,custom:FM,network:RM,storage:PM,workload:OM};var D=I(fe(),1),va=(e,t,n)=>{if(!e.properties)return;let a=e.properties.find(r=>r.name===t);a&&(a.format="function",a.source=n)},g=(e,t,n,a,r)=>{let i=e.leftItems?.find(s=>s.name===t);i&&(i.onClick=n,a&&(i.isVisible=a),r&&(i.isEnabled=r))};function _M(e){let t=e.state??{};if(e.ready)return"green";if(t.terminated)return"gray";if(t.waiting){let n=t.waiting.reason??"";return["ContainerCreating","PodInitializing"].includes(n)?"orange":"red"}return"blue"}var u1=(e,t,n,a,r,i,s,o,l,c,d,m)=>{let f=(E,$)=>{let re=t.files.find(te=>te.path===E);re&&(re.children=$)},h=()=>{let E={msgtype:"magnifymessage",accessKey:n.accessString,instance:n.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"events",action:ji.EInstanceMessageAction.COMMAND,flow:ji.EInstanceMessageFlow.REQUEST,type:ji.EInstanceMessageType.DATA,channel:n.channelId,params:["cluster","","","","500"]};n.webSocket&&n.webSocket.send(JSON.stringify(E))},k=()=>t.clusterInfo?(0,D.jsx)(L.Box,{sx:{bgcolor:"background.default"},width:"100%",height:"100%",children:(0,D.jsx)(L.Card,{sx:{m:2,display:"flex",flexDirection:"column",height:"calc(100% - 55px)"},children:(0,D.jsxs)(L.CardContent,{sx:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",p:2},children:[(0,D.jsxs)(L.Stack,{direction:"row",justifyContent:"space-between",width:"100%",px:1,children:[(0,D.jsxs)(L.Typography,{variant:"body2",children:[(0,D.jsx)("b",{children:"Cluster:"})," ",n.clusterInfo?.name]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:[(0,D.jsx)("b",{children:"Version:"})," ",t.clusterInfo.major,".",t.clusterInfo.minor,"\xA0\xA0(",t.clusterInfo.gitVersion,")"]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:[(0,D.jsx)("b",{children:"Platform:"})," ",t.clusterInfo.platform]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:[(0,D.jsx)("b",{children:"Nodes:"})," ",t.files.filter(E=>E.class==="Node").length]})]}),(0,D.jsx)(L.Divider,{sx:{mt:1,mb:1}}),(0,D.jsx)(Bx,{channelObject:n}),(0,D.jsx)(L.Divider,{sx:{mt:1,mb:1}}),(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{summary:!0}}),(0,D.jsx)(L.Divider,{sx:{mt:1,mb:1}}),(0,D.jsxs)(L.Box,{sx:{flex:1,overflowY:"auto",ml:1,mr:1},children:[t.eventsProviderMissing&&(0,D.jsx)(L.Alert,{severity:"info",sx:{my:1},children:"The events provider is not installed in this cluster, so there are no cluster events to show. Install it from \u2630 \u2192 Manage extensions \u2192 Providers."}),(0,D.jsx)(L.Stack,{direction:"column",children:t.clusterEvents?.map((E,$)=>{let re=E.type?E.type[0]:"",te="--mui-palette-text-primary";return re==="W"&&(te="orange"),re==="E"&&(te="red"),(0,D.jsxs)(L.Stack,{direction:"row",children:[(0,D.jsx)(L.Typography,{variant:"body2",sx:{width:"5%",color:te},children:re}),(0,D.jsx)(L.Typography,{variant:"body2",sx:{width:"25%",color:te},children:E.eventTime||E.lastTimestamp||E.firstTimestamp}),(0,D.jsx)(L.Typography,{variant:"body2",sx:{width:"70%",color:te},children:E.message})]},$)})}),(0,D.jsxs)(L.Stack,{direction:"row",children:[(0,D.jsx)(L.Typography,{flexGrow:1}),(0,D.jsx)(L.Button,{onClick:h,children:"More Events"})]})]})]})})}):(0,D.jsx)(D.Fragment,{}),v=E=>{let $=E.path.replaceAll("/",""),re=c1[$];return(0,D.jsx)(L.Box,{width:"100%",height:"100%",sx:{bgcolor:"background.default",color:"text.secondary","--magnify-section-bg":te=>te.palette.background.default},display:"flex",justifyContent:"center",alignItems:"center",children:re&&(0,D.jsx)(re,{})})},A=()=>(0,D.jsxs)(L.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Status"}),(0,D.jsxs)(L.CardContent,{children:[(0,D.jsxs)(L.Typography,{variant:"body2",children:["Total CPU: ",t.files.filter(E=>E.class==="Node").reduce((E,$)=>E+ +$.data.origin.status.capacity.cpu,0)]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Total Memory: ",qs(t.files.filter(E=>E.class==="Node").reduce((E,$)=>E+Kn($.data.origin.status.capacity.memory),0))]}),(0,D.jsx)(L.Typography,{mt:1}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Actual pods: ",t.files.filter(E=>E.class==="Pod").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Max pods: ",t.files.filter(E=>E.class==="Node").reduce((E,$)=>E+ +$.data.origin.status.capacity.pods,0)]})]})]}),(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Validations"}),(0,D.jsx)(L.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{node:!0}})})]})]}),q=()=>(0,D.jsxs)(L.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Status"}),(0,D.jsxs)(L.CardContent,{children:[(0,D.jsxs)(L.Typography,{variant:"body2",children:["Pods: ",t.files.filter(E=>E.class==="Pod").length]}),(0,D.jsx)(L.Typography,{mt:1}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Deployments: ",t.files.filter(E=>E.class==="Deployment").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Daemon sets: ",t.files.filter(E=>E.class==="DaemonSet").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Replica sets: ",t.files.filter(E=>E.class==="ReplicaSet").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Replication Controllers: ",t.files.filter(E=>E.class==="ReplicationController").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Stateful sets: ",t.files.filter(E=>E.class==="StatefulSet").length]}),(0,D.jsx)(L.Typography,{mt:1}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Jobs: ",t.files.filter(E=>E.class==="Job").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Cron jobs: ",t.files.filter(E=>E.class==="CronJob").length]})]})]}),(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Validations"}),(0,D.jsx)(L.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{replicaSet:!0,daemonSet:!0,deployment:!0,statefulSet:!0,job:!0}})})]})]}),de=()=>(0,D.jsxs)(L.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Status"}),(0,D.jsxs)(L.CardContent,{children:[(0,D.jsxs)(L.Typography,{variant:"body2",children:["Services: ",t.files.filter(E=>E.class==="Service").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Ingresses: ",t.files.filter(E=>E.class==="Ingress").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Ingress classes: ",t.files.filter(E=>E.class==="IngressClass").length]})]})]}),(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Validations"}),(0,D.jsx)(L.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{ingress:!0,service:!0}})})]})]}),pe=()=>(0,D.jsxs)(L.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Status"}),(0,D.jsxs)(L.CardContent,{children:[(0,D.jsxs)(L.Typography,{variant:"body2",children:["ConfigMap: ",t.files.filter(E=>E.class==="ConfigMap").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Secret: ",t.files.filter(E=>E.class==="Secret").length]})]})]}),(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Validations"}),(0,D.jsx)(L.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{configMap:!0,secret:!0}})})]})]}),H=()=>(0,D.jsxs)(L.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Status"}),(0,D.jsxs)(L.CardContent,{children:[(0,D.jsxs)(L.Typography,{variant:"body2",children:["Total SA's: ",t.files.filter(E=>E.class==="ServiceAccount").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Total Roles: ",t.files.filter(E=>E.class==="Role").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Total Cluster Roles: ",t.files.filter(E=>E.class==="ClusterRole").length]})]})]}),(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Validations"}),(0,D.jsx)(L.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{role:!0,custerRole:!0}})})]})]}),le=()=>(0,D.jsxs)(L.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Status"}),(0,D.jsxs)(L.CardContent,{children:[(0,D.jsxs)(L.Typography,{variant:"body2",children:["Total PV's: ",t.files.filter(E=>E.class==="PersistentVolume").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Total PVC's: ",t.files.filter(E=>E.class==="PersistentVolumeClaim").length]}),(0,D.jsxs)(L.Typography,{variant:"body2",children:["Total storage: ",qs(t.files.filter(E=>E.class==="PersistentVolumeClaim").reduce((E,$)=>E+$.data.size,0))]})]})]}),(0,D.jsxs)(L.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(L.CardHeader,{title:"Validations"}),(0,D.jsx)(L.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{volumeAttachment:!0}})})]})]}),R=()=>(0,D.jsx)(L.Box,{sx:{bgcolor:"background.default"},width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,children:(0,D.jsx)(o1,{preferences:t.userPreferences,files:t.files,onDataReload:ce,channelObject:n})}),ce=()=>{t.files=t.files.filter(E=>E.isDirectory&&E.path.split("/").length-1<=2),t.files=t.files.filter(E=>E.class!=="crdGroup"),t.currentPath="/overview",Dm(n)};f("/overview",k),f("/cluster",v),f("/workload",v),f("/config",v),f("/network",v),f("/storage",v),f("/access",v),f("/custom",v),f("/cluster/overview",A),f("/workload/overview",q),f("/network/overview",de),f("/config/overview",pe),f("/storage/overview",le),f("/access/overview",H),f("/preferences",R);let ve=a.get("classOverview");g(ve,"create",()=>s("Pod"));let ke=ka.items.find(E=>E.name==="pods");ke&&(ke.invoke=(E,$)=>{let re=E.kind,te=t.files.filter(oe=>oe.class==="Pod");return te=te.filter(oe=>{let St=!1;if(re==="Deployment"){let pt=oe.data.origin.metadata.ownerReferences?.filter(Pt=>Pt.kind==="ReplicaSet")||[];if(pt&&pt.length>0){let Pt=t.files.find(Jr=>Jr.path===`/workload/ReplicaSet/${pt[0].name}:${E.metadata.namespace}`);St=Pt&&Pt.data.origin.metadata.ownerReferences.some(Jr=>Jr.kind==="Deployment"&&Jr.name===E.metadata.name)}}else St=oe.data.origin.metadata.ownerReferences?.some(pt=>pt.kind===re&&pt.name===E.metadata.name)||!1;return St}),te.map(oe=>oe.data.origin)});let z=E=>{let $=t.files.find(oe=>E===oe.path);if(!$||!$.data.origin.status?.containerStatuses)return(0,D.jsx)(D.Fragment,{});let re=[],te=(oe,St)=>{St.map((pt,Pt)=>{re.push((0,D.jsx)(L.Box,{sx:{width:"8px",height:"8px",backgroundColor:_M(pt),margin:"1px",display:"inline-block"}},(oe*1e3+Pt).toString()))})};return $.data.origin.status.initContainerStatuses&&$.data.origin.status.initContainerStatuses.length>0&&te(0,$.data.origin.status.initContainerStatuses),$.data.origin.status.containerStatuses&&$.data.origin.status.containerStatuses.length>0&&te(1,$.data.origin.status.containerStatuses),re},B=E=>{let $=t.files.find(te=>E===te.path);if(!$||!$.data?.origin?.status)return(0,D.jsx)(D.Fragment,{});let re=$.data.origin?.metadata?.deletionTimestamp?"Terminating":$.data.origin?.status.phase;return(0,D.jsx)(L.Typography,{color:re==="Running"?"green":re==="Terminating"?"blue":re==="Succeeded"?"gray":re==="Pending"?"orange":"red",fontSize:12,children:re})},se=a.get("classPod");g(se,"create",()=>s("Pod"));let j=a.get("Pod");g(j,"details",l),g(j,"edit",c),g(j,"delete",o),va(j,"container",z),va(j,"status",B);let Fe=E=>{let $=t.files.find(te=>E===te.path);if(!$)return;if(!$.data?.origin?.status?.conditions)return(0,D.jsx)(D.Fragment,{});let re=[];for(let te of $.data.origin.status.conditions)te.status==="True"&&re.push((0,D.jsx)(L.Typography,{fontSize:12,children:te.type},te.type));return(0,D.jsx)(L.Stack,{direction:"column",children:re})},Ve=E=>{let $=t.files.find(te=>E===te.path);if(!$)return;let re=bl($.data.origin.spec.schedule);return[`${re?.timeLeft.days}d${re?.timeLeft.hours}h${re?.timeLeft.minutes}m${re?.timeLeft.seconds}s`]},rt=E=>{let $=t.files.find(re=>E===re.path);if($)return[`${$.data.origin.status?.active?.length||0}`]},Mt=a.get("classDeployment");g(Mt,"create",()=>s("Deployment"));let ae=a.get("Deployment");g(ae,"details",l),g(ae,"edit",c),g(ae,"delete",o);let De=a.get("classDaemonSet");g(De,"create",()=>s("DaemonSet"));let $e=a.get("DaemonSet");g($e,"details",l),g($e,"edit",c),g($e,"delete",o);let Y=a.get("classReplicaSet");g(Y,"create",()=>s("ReplicaSet"));let he=a.get("ReplicaSet");g(he,"details",l),g(he,"edit",c),g(he,"delete",o);let Me=a.get("classReplicationController");g(Me,"create",()=>s("ReplicationController"));let dt=a.get("ReplicationController");g(dt,"details",l),g(dt,"edit",c),g(dt,"delete",o);let Lt=a.get("classStatefulSet");g(Lt,"create",()=>s("StatefulSet"));let vt=a.get("StatefulSet");g(vt,"details",l),g(vt,"edit",c),g(vt,"delete",o);let Fn=a.get("classJob");g(Fn,"create",()=>s("Job"));let qe=a.get("Job");va(qe,"conditions",Fe),g(qe,"details",l),g(qe,"edit",c),g(qe,"delete",o);let bn=a.get("classCronJob");g(bn,"create",()=>s("CronJob"));let qa=a.get("CronJob");va(qa,"active",rt),va(qa,"nextExecution",Ve),g(qa,"details",l),g(qa,"edit",c),g(qa,"delete",o);let Vr=ue.get("CronJob");if(Vr){let E=Vr.find($=>$.name==="properties").items.find($=>$.name==="nextExecution");E&&(E.invoke=($,re)=>[bl(re.spec.schedule)?.isoString]),E=Vr.find($=>$.name==="properties").items.find($=>$.name==="timeLeft"),E&&(E.invoke=($,re)=>{let te=bl(re.spec.schedule);return[`${te?.timeLeft.days}d${te?.timeLeft.hours}h${te?.timeLeft.minutes}m${te?.timeLeft.seconds}s`]}),E=Vr.find($=>$.name==="history").items.find($=>$.name==="jobs"),E&&(E.invoke=($,re)=>{let te=t.files.filter(oe=>oe.class==="Job");return te=te.filter(oe=>(oe.data.origin.metadata.ownerReferences||[]).some(pt=>pt.name===re.metadata.name&&pt.kind==="CronJob")),te=te.map(oe=>oe.data.origin),te})}let Xt=a.get("Node");g(Xt,"details",l),g(Xt,"edit",c),g(Xt,"delete",o);let _n=a.get("V1APIResource");g(_n,"details",l),g(_n,"browse",d);let zn=a.get("Image");g(zn,"details",l),g(zn,"delete",o);let Ua=a.get("classClusterOverview");g(Ua,"search",m);let Wr=a.get("Namespace");g(Wr,"details",l),g(Wr,"edit",c),g(Wr,"delete",o),g(Wr,"search",m);let to=ue.get("Namespace");if(to){let E=(re,te,oe)=>{let St=te;te.includes("+")&&([te,St]=te.split("+"));let pt=t.files.filter(Pt=>Pt.data?.origin?.kind===te&&Pt.data?.origin?.metadata.namespace===re)?.map(Pt=>Pt.data?.origin);return pt.length===0?(0,D.jsx)(D.Fragment,{}):(0,D.jsxs)(L.Stack,{flexDirection:"row",children:[(0,D.jsx)(L.Typography,{width:"13%",variant:"body2",children:St}),(0,D.jsx)(L.Stack,{flexDirection:"column",children:pt.map((Pt,Jr)=>(0,D.jsx)(L.Typography,{variant:"body2",children:(0,D.jsx)("a",{href:"#",onClick:()=>oe(te,Pt.metadata.name,Pt.metadata.namespace),children:Pt.metadata.name},Jr)}))})]})},$=to?.find(re=>re.name==="content")?.items.find(re=>re.name==="content");$&&($.invoke=(re,te,oe)=>["Pod","Deployment","DaemonSet","ReplicaSet","ReplicationController+RepController","StatefulSet","Job","CronJob","PersistentVolumeClaim+PVC","PersistentVolume+PV","ConfigMap","Secret","Service","Endpoints","Ingress","ServiceAccount+SrvAccnt","Role","RoleBinding"].map(St=>E(te.metadata.name,St,oe)))}let es=a.get("ComponentStatus");g(es,"details",l),g(es,"browse",d);let no=E=>{let $=t.files.find(re=>E===re.path);if($)return $.data?.origin?.spec?.selector?(0,D.jsx)(L.Stack,{direction:"column",children:Object.keys($.data.origin.spec.selector).map((re,te)=>(0,D.jsxs)(L.Typography,{fontSize:12,children:[re,"=",$?.data.origin.spec.selector[re]]},te))}):(0,D.jsx)(D.Fragment,{})},ao=a.get("classService");g(ao,"create",()=>s("Service"));let Ya=a.get("Service");va(Ya,"selector",no),g(Ya,"details",l),g(Ya,"edit",c),g(Ya,"delete",o);let Ct=a.get("classEndpoints");g(Ct,"create",()=>s("Endpoints"));let ts=a.get("Endpoints");g(ts,"details",l),g(ts,"edit",c),g(ts,"delete",o);let ns=E=>{let $=t.files.find(re=>E===re.path);if($)return $.data?.origin?.spec?.rules?(0,D.jsx)(L.Stack,{direction:"column",children:$.data.origin.spec.rules.map((re,te)=>re.http.paths.map((oe,St)=>(0,D.jsxs)(L.Typography,{fontSize:12,children:["http://",re.host,oe.path,"\xA0\u2192\xA0",oe.backend.service.name,":",oe.backend.service.port.number]},te+"-"+St)))}):(0,D.jsx)(D.Fragment,{})},ro=a.get("classIngress");g(ro,"create",()=>s("Ingress"));let Hr=a.get("Ingress");va(Hr,"rules",ns),g(Hr,"details",l),g(Hr,"edit",c),g(Hr,"delete",o);let Fl=a.get("classIngressClass");g(Fl,"create",()=>s("IngressClass"));let Br=a.get("IngressClass");g(Br,"details",l),g(Br,"edit",c),g(Br,"delete",o);let io=ue.get("IngressClass");if(io){let E=io?.find($=>$.name==="properties")?.items.find($=>$.name==="ingresses");E&&(E.invoke=($,re)=>{let te=t.files.filter(oe=>oe.path.startsWith("/network/Ingress/"));return te=te.filter(oe=>oe.data.origin.spec?.ingressClassName===$.metadata?.name||oe.data.origin.metadata?.annotations?.["kubernetes.io/ingress.class"]===$.metadata?.name),te.map(oe=>({name:oe.data.origin.metadata.name,namespace:oe.data.origin.metadata.namespace}))})}let _l=a.get("classNetworkPolicy");g(_l,"create",()=>s("NetworkPolicy"));let as=a.get("NetworkPolicy");g(as,"details",l),g(as,"edit",c),g(as,"delete",o);let zl=a.get("classConfigMap");g(zl,"create",()=>s("ConfigMap"));let pa=a.get("ConfigMap");g(pa,"details",l),g(pa,"edit",c),g(pa,"delete",o);let Ga=a.get("classSecret");g(Ga,"create",()=>s("Secret"));let Ae=a.get("Secret");g(Ae,"details",l),g(Ae,"edit",c),g(Ae,"delete",o);let Ll=a.get("classResourceQuota");g(Ll,"create",()=>s("ResourceQuota"));let $r=a.get("ResourceQuota");g($r,"details",l),g($r,"edit",c),g($r,"delete",o);let so=a.get("classLimitRange");g(so,"create",()=>s("LimitRange"));let qr=a.get("LimitRange");g(qr,"details",l),g(qr,"edit",c),g(qr,"delete",o);let oo=a.get("classHorizontalPodAutoscaler");g(oo,"create",()=>s("HorizontalPodAutoscaler"));let Ur=a.get("HorizontalPodAutoscaler");g(Ur,"details",l),g(Ur,"edit",c),g(Ur,"delete",o);let lo=a.get("classPodDisruptionBudget");g(lo,"create",()=>s("PodDisruptionBudget"));let Yr=a.get("PodDisruptionBudget");g(Yr,"details",l),g(Yr,"edit",c),g(Yr,"delete",o);let co=a.get("classPriorityClass");g(co,"create",()=>s("PriorityClass"));let rs=a.get("PriorityClass");g(rs,"details",l),g(rs,"edit",c),g(rs,"delete",o);let lt=a.get("classRuntimeClass");g(lt,"create",()=>s("RuntimeClass"));let is=a.get("RuntimeClass");g(is,"details",l),g(is,"edit",c),g(is,"delete",o);let Vl=a.get("classLease");g(Vl,"create",()=>s("Lease"));let Ka=a.get("Lease");g(Ka,"details",l),g(Ka,"edit",c),g(Ka,"delete",o);let Wl=a.get("classValidatingWebhookConfiguration");g(Wl,"create",()=>s("ValidatingWebhookConfiguration"));let Vt=a.get("ValidatingWebhookConfiguration");g(Vt,"details",l),g(Vt,"edit",c),g(Vt,"delete",o);let Xn=a.get("classMutatingWebhookConfiguration");g(Xn,"create",()=>s("MutatingWebhookConfiguration"));let wn=a.get("MutatingWebhookConfiguration");g(wn,"details",l),g(wn,"edit",c),g(wn,"delete",o);let uo=a.get("classPersistentVolumeClaim");g(uo,"create",()=>s("PersistentVolumeClaim"));let ss=a.get("PersistentVolumeClaim");g(ss,"details",l),g(ss,"edit",c),g(ss,"delete",o);let mo=ue.get("PersistentVolumeClaim");if(mo){let E=mo.find($=>$.name==="properties").items.find($=>$.name==="pods");E&&(E.invoke=($,re)=>t.files.filter(pt=>pt.class==="Pod").filter(pt=>pt.data.origin.spec?.volumes?.some(Pt=>Pt.persistentVolumeClaim?.claimName===re.metadata.name)).map(pt=>pt.data.origin.metadata.name))}let Hl=a.get("classPersistentVolume");g(Hl,"create",()=>s("PersistentVolume"));let os=a.get("PersistentVolume");g(os,"details",l),g(os,"edit",c),g(os,"delete",o);let Bl=a.get("classStorageClass");g(Bl,"create",()=>s("StorageClass"));let Sa=a.get("StorageClass");g(Sa,"details",l),g(Sa,"edit",c),g(Sa,"delete",o);let p=ue.get("StorageClass");if(p){let E=p.find($=>$.name==="properties").items.find($=>$.name==="pvs");E&&(E.invoke=($,re)=>{let te=t.files.filter(oe=>oe.path.startsWith("/storage/PersistentVolume/"));return te=te.filter(oe=>oe.data.origin.spec?.storageClassName===$.metadata.name),te.map(oe=>oe.data.origin.metadata.name)}),E=p.find($=>$.name==="properties").items.find($=>$.name==="pvcs"),E&&(E.invoke=($,re)=>{let te=t.files.filter(oe=>oe.path.startsWith("/storage/PersistentVolumeClaim/"));return te=te.filter(oe=>oe.data.origin.spec?.storageClassName===$.metadata.name),te.map(oe=>({name:oe.data.origin.metadata.name,namespace:oe.data.origin.metadata.namespace}))})}let y=a.get("VolumeAttachment");g(y,"details",l),g(y,"browse",d);let b=a.get("CSIDriver");g(b,"details",l),g(b,"browse",d);let T=ue.get("CSIDriver");if(T){let E=T?.find($=>$.name==="properties")?.items.find($=>$.name==="storageClasses");E&&(E.invoke=($,re,te)=>{let oe=t.files.filter(St=>St.path.startsWith("/storage/StorageClass/"));return[(0,D.jsxs)(L.Stack,{flexDirection:"row",children:[(0,D.jsx)(L.Typography,{width:"13%",children:"StgClass"}),(0,D.jsx)(L.Stack,{flexDirection:"column",children:oe.map((St,pt)=>{if(St.data.origin.provisioner===$.metadata?.name)return(0,D.jsx)("a",{href:"#",onClick:()=>te("StorageClass",St.data.origin.metadata.name,""),children:St.data.origin.metadata.name},pt)})})]})]})}let V=a.get("CSINode");g(V,"details",l),g(V,"browse",d);let W=a.get("CSIStorageCapacity");g(W,"details",l),g(W,"browse",d);let ee=a.get("classServiceAccount");g(ee,"create",()=>s("ServiceAccount"));let J=a.get("ServiceAccount");g(J,"details",l),g(J,"edit",c),g(J,"delete",o);let Gr=ue.get("ServiceAccount");if(Gr){let E=Gr.find($=>$.name==="properties").items.find($=>$.name==="tokens");E&&(E.invoke=($,re)=>t.files.filter(oe=>oe.data?.origin?.metadata?.annotations&&oe.data?.origin?.metadata?.namespace&&oe.data?.origin?.metadata?.annotations["kubernetes.io/service-account.name"]==="kwirth-sa"&&oe.data?.origin?.metadata?.namespace===re.metadata.namespace).map(oe=>({name:oe.data.origin.metadata.name,namespace:oe.data.origin.metadata.namespace})))}let ls=a.get("classClusterRole");g(ls,"create",()=>s("ClusterRole"));let Kr=a.get("ClusterRole");g(Kr,"details",l),g(Kr,"edit",c),g(Kr,"delete",o);let $l=a.get("classRole");g($l,"create",()=>s("Role"));let ql=a.get("Role");g(ql,"details",l),g(ql,"edit",c),g(ql,"delete",o);let v1=a.get("classClusterRoleBinding");g(v1,"create",()=>s("ClusterRoleBinding"));let Ul=a.get("ClusterRoleBinding");g(Ul,"details",l),g(Ul,"edit",c),g(Ul,"delete",o);let C1=a.get("classRoleBinding");g(C1,"create",()=>s("RoleBinding"));let Yl=a.get("RoleBinding");g(Yl,"details",l),g(Yl,"edit",c),g(Yl,"delete",o);let S1=a.get("classCustomResourceDefinition");g(S1,"create",()=>s("CustomResourceDefinition"));let Gl=a.get("CustomResourceDefinition");g(Gl,"details",l),g(Gl,"edit",c),g(Gl,"delete",o);let Kl=a.get("crdInstance");g(Kl,"details",l),g(Kl,"edit",c),g(Kl,"delete",o);let Jl=a.get("crdNamespacedInstance");g(Jl,"details",l),g(Jl,"edit",c),g(Jl,"delete",o)};var Ca=I(Rt(),1);u();var fa=I(ht(),1);var m1=I(Jt(),1),ln=I(fe(),1),d1=e=>(0,ln.jsx)(fa.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,ln.jsxs)(fa.MenuList,{dense:!0,sx:{minWidth:140},children:[(0,ln.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("ubuntu"),children:[(0,ln.jsx)(ac,{size:"18"}),"\xA0Ubuntu"]}),(0,ln.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("alpine"),children:[(0,ln.jsx)(cd,{size:"18"}),"\xA0Alpine"]}),(0,ln.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("dnsutils"),children:[(0,ln.jsx)(ud,{size:"18"}),"\xA0DNS Utils"]}),(0,ln.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("jubuntu"),children:[(0,ln.jsx)(ac,{size:"18"}),"\xA0jUbuntu"]}),e.customActions&&e.customActions.filter(t=>t.type==="kube").map((t,n)=>(0,ln.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected(t.name),children:[(0,ln.jsx)(m1.Construction,{sx:{fontSize:"18px"}}),"\xA0",t.name]},n))]})});var x1=I(ht(),1);u();var Xi=I(ht(),1),f1=I(Jt(),1),Zi=I(fe(),1),p1=e=>(0,Zi.jsx)(Xi.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,Zi.jsx)(Xi.MenuList,{dense:!0,sx:{minWidth:140},children:e.customActions.filter(t=>t.type==="kwirth").map((t,n)=>(0,Zi.jsxs)(Xi.MenuItem,{onClick:()=>e.onWorkSelected(t.name),children:[(0,Zi.jsx)(f1.Construction,{sx:{fontSize:"18px"}}),"\xA0",t.name]},n))})});var b1=I(Rt(),1);u();var we=I(ht(),1),$a=I(Mm(),1),Qi=I(Jt(),1),h1=I(Ze(),1);var Ce=I(fe(),1),g1=e=>{if(!(e.channelObject.isFullscreen===!0)||e.channelObject.isDesktop)return null;let[n,a]=(0,h1.useState)(!1),i=e.channelObject.data?.metricsCluster??[],s=i.map(v=>({value:v.cpuUsage})),o=i.map(v=>({value:v.memoryUsage})),l=i.map(v=>({value:v.txmbps+v.rxmbps||0})),c=i.length>0?i[i.length-1]:null,d=c?.cpuUsage??0,m=c?.memoryUsage??0,f=c?.txmbps??0,h=c?.rxmbps??0,k=e.channelObject.clusters??[];return(0,Ce.jsxs)(we.AppBar,{position:"sticky",color:"default",elevation:1,sx:{zIndex:1300},children:[(0,Ce.jsxs)(we.Toolbar,{sx:{gap:1.5},children:[(0,Ce.jsx)(we.IconButton,{size:"small",onClick:()=>a(!0),children:(0,Ce.jsx)(Qi.Menu,{fontSize:"small"})}),(0,Ce.jsxs)(we.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,Ce.jsx)(Qi.Search,{}),(0,Ce.jsx)(we.Typography,{variant:"h6",sx:{fontWeight:700,color:"#f5820a"},children:"Kwirth"}),(0,Ce.jsxs)(we.Box,{sx:{display:"flex",alignItems:"baseline",gap:1},children:[(0,Ce.jsx)(we.Typography,{variant:"h6",sx:{fontWeight:700},children:"Magnify"}),e.channelObject.clusterName&&(0,Ce.jsxs)(we.Typography,{variant:"subtitle1",sx:{fontWeight:600,color:"text.secondary"},children:["\xB7 ",e.channelObject.clusterName]})]})]}),(0,Ce.jsx)(we.Box,{sx:{flex:1}}),(0,Ce.jsx)(we.Tooltip,{title:`${(d||0).toFixed(2)}%`,children:(0,Ce.jsxs)(we.Stack,{direction:"column",alignItems:"center",mr:"2px",children:[(0,Ce.jsx)(we.Typography,{fontSize:8,mb:-1,children:"CPU"}),(0,Ce.jsx)($a.AreaChart,{width:120,height:20,data:s,margin:{top:0,right:0,bottom:0,left:0},children:(0,Ce.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#8884d8",strokeWidth:2,dot:!1,fill:"#bbbbdd"})})]})}),(0,Ce.jsx)(we.Tooltip,{title:`${(m||0).toFixed(2)}%`,children:(0,Ce.jsxs)(we.Stack,{direction:"column",alignItems:"center",mr:"2px",children:[(0,Ce.jsx)(we.Typography,{fontSize:8,mb:-1,children:"Mem"}),(0,Ce.jsx)($a.AreaChart,{width:120,height:20,data:o,margin:{top:0,right:0,bottom:0,left:0},children:(0,Ce.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#d88488",strokeWidth:2,dot:!1,fill:"#ddbbbb"})})]})}),(0,Ce.jsx)(we.Tooltip,{title:`${(f||0).toFixed(2)}Mbps / ${(h||0).toFixed(2)}Mbps`,children:(0,Ce.jsxs)(we.Stack,{direction:"column",alignItems:"center",children:[(0,Ce.jsx)(we.Typography,{fontSize:8,mb:-1,children:"Net"}),(0,Ce.jsx)($a.AreaChart,{width:120,height:20,data:l,margin:{top:0,right:0,bottom:0,left:0},children:(0,Ce.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#88d884",strokeWidth:2,dot:!1,fill:"#bbddbb"})})]})}),e.channelObject.clusterUrl&&(0,Ce.jsx)(we.Typography,{variant:"caption",color:"text.secondary",sx:{ml:1},children:e.channelObject.clusterUrl}),(0,Ce.jsx)(we.Tooltip,{title:"Exit fullscreen",children:(0,Ce.jsx)(we.IconButton,{size:"small",onClick:()=>e.channelObject.exitFullscreen?.(),children:(0,Ce.jsx)(Qi.FullscreenExit,{fontSize:"small"})})})]}),(0,Ce.jsx)(we.Drawer,{anchor:"left",open:n,onClose:()=>a(!1),children:(0,Ce.jsxs)(we.Box,{sx:{width:250},children:[(0,Ce.jsx)(we.Typography,{variant:"subtitle1",sx:{fontWeight:700,px:2,py:1.5},children:"Clusters"}),(0,Ce.jsx)(we.Divider,{}),(0,Ce.jsxs)(we.List,{dense:!0,children:[k.map(v=>{let A=v.home?!0:!!v.reachable;return(0,Ce.jsxs)(we.ListItemButton,{disabled:!A,selected:v.name===e.channelObject.clusterName,onClick:()=>{e.channelObject.switchCluster?.(v.name),a(!1)},children:[(0,Ce.jsx)(we.ListItemIcon,{sx:{minWidth:28},children:(0,Ce.jsx)(we.Box,{sx:{width:12,height:12,borderRadius:"50%",bgcolor:$g(v.name).dot,flexShrink:0}})}),(0,Ce.jsx)(we.ListItemText,{primary:v.name,secondary:v.home?"home":void 0})]},v.name)}),k.length===0&&(0,Ce.jsx)(we.ListItemText,{primary:"No clusters",sx:{px:2,color:"text.secondary"}})]})]})})]})};var Q=I(fe(),1),zM=e=>{let t=(0,Qe.useRef)(null);return e.title?(0,Q.jsxs)(Le.Dialog,{open:!0,onClose:()=>{e.onClose(),e.onResult?.(void 0)},children:[(0,Q.jsx)(Le.DialogTitle,{children:e.title}),(0,Q.jsx)(Le.DialogContent,{children:(0,Q.jsxs)(Le.Stack,{sx:{mt:2},direction:"column",children:[typeof e.message=="string"?(0,Q.jsx)(Le.Typography,{component:"div",sx:{ml:2},children:(0,Q.jsx)("div",{dangerouslySetInnerHTML:{__html:e.message}})}):e.message,(0,Q.jsx)(Le.TextField,{inputRef:t,sx:{width:e.width},defaultValue:e.default},e.message?.toString())]})}),(0,Q.jsxs)(Le.DialogActions,{children:[(0,Q.jsx)(Le.Button,{onClick:()=>{e.onClose(),e.onResult?.(t.current?.value)},children:"ok"}),(0,Q.jsx)(Le.Button,{onClick:()=>e.onClose(),children:"cancel"})]})]}):null},Xs=xl(),LM={ContentDetails:(0,Q.jsx)(Xm,{}),ArtifactSearch:(0,Q.jsx)(xn.Search,{}),LogSearchPanel:(0,Q.jsx)(xn.Search,{}),ContentEdit:(0,Q.jsx)(xn.Edit,{}),ContentBrowse:(0,Q.jsx)(Vn,{})},w1=e=>{let t=(0,x1.useTheme)(),n=e.channelObject.data,a={create:!1,delete:!1,download:!1,copy:!1,move:!1,rename:!1,upload:!1},[r,i]=(0,Qe.useState)(0),s=(0,Qe.useRef)(null),o=(0,Qe.useRef)(null),l=(0,Qe.useRef)(null),[c,d]=(0,Qe.useState)(0),[m,f]=(0,Qe.useState)((0,Q.jsx)(Q.Fragment,{})),[h,k]=(0,Qe.useState)(),[v,A]=(0,Qe.useState)(),[q,de]=(0,Qe.useState)(),[pe,H]=(0,Qe.useState)(),[le,R]=(0,Qe.useState)(),[ce,ve]=(0,Qe.useState)(),[ke,z]=(0,Qe.useState)(),[B,se]=(0,Qe.useState)(),[j,Fe]=(0,Qe.useState)(""),[Ve,rt]=(0,Qe.useState)(!1),[Mt,ae]=(0,Qe.useState)(void 0),[,De]=(0,Qe.useState)(0),$e=(p,y)=>{let b=Me.find(V=>V.key===p);if(!b)return!0;let T=!0;switch(p){case"Node":T=b.selected.includes("all")||b.selected.some(V=>y.data?.origin?.spec?.nodeName?.includes(V));break;case"Namespace":T=b.selected.includes("all")||b.selected.some(V=>y.data?.origin?.metadata?.namespace===V);break;case"controller":T=b.selected.includes("all")||b.selected.some(V=>y.data?.origin?.metadata?.ownerReferences?.[0]?.kind===V);break}return T},Y=p=>{let y=Me.find(b=>b.key===p);return y?!(y.selected.length===1&&y.selected[0]==="all"):!1},he=(p,y,b)=>{let T=Me.find(V=>V.key===p);T&&(y==="all"?b=["all"]:y!=="all"&&b.length===2&&b.includes("all")?b=b.filter(V=>V!=="all"):b.length===0&&(b=["all"]),T.selected=b,n.selectedCategories||(n.selectedCategories={}),n.selectedCategories[p]=b,dt([...Me]))},[Me,dt]=(0,Qe.useState)([{key:"Node",text:"Node",all:[{key:"all",text:"All..."},{key:"-"}],selected:n.selectedCategories?.Node??["all"],onCategoryValuesChange:he,onCategoryFilter:$e,isFilterActive:Y},{key:"Namespace",text:"Namespace",all:[{key:"all",text:"All..."},{key:"-"}],selected:n.selectedCategories?.Namespace??["all"],onCategoryValuesChange:he,onCategoryFilter:$e,isFilterActive:Y},{key:"controller",text:"Controller",all:[{key:"all",text:"All..."},{key:"-"},{key:"ReplicaSet"},{key:"DaemonSet"},{key:"StatefulSet"},{key:"ReplicationController"},{key:"Job"}],selected:n.selectedCategories?.controller??["all"],onCategoryValuesChange:he,onCategoryFilter:$e,isFilterActive:Y}]),Lt=p=>{switch(p){case"exit":return(0,Q.jsx)(xn.ExitToApp,{sx:{color:"gray"}});case"notifications":return e.channelObject.notifications.length>0?(0,Q.jsx)(xn.NotificationsActive,{sx:{color:"success.main"}}):(0,Q.jsx)(xn.Notifications,{sx:{color:"text.disabled"}});case"cloud":return e.channelObject.webSocket?.readyState===1?(0,Q.jsx)(Le.Tooltip,{title:(0,Q.jsxs)("div",{style:{textAlign:"center"},children:["Communications to",(0,Q.jsx)("br",{})," Kwirth backend are ok"]}),children:(0,Q.jsx)(xn.CloudQueue,{sx:{color:"success.main"}})}):(0,Q.jsx)(Le.Tooltip,{title:(0,Q.jsxs)("div",{style:{textAlign:"center"},children:["Communications to Kwirth backend",(0,Q.jsx)("br",{}),"have been interrupted.",(0,Q.jsx)("br",{}),"You need to exit cluster and reenter."]}),children:(0,Q.jsx)(Zm,{sx:{color:"error.main",animation:"blink 1.5s infinite","@keyframes blink":{"0%":{opacity:1},"50%":{opacity:.1},"100%":{opacity:1}}}})})}},vt=(p,y)=>{switch(p){case"exit":f((0,Tt.MsgBoxYesNo)("Exit cluster","Are you sure you want to leave this cluster and go back to initial cluster selection?",f,b=>{b===Tt.MsgBoxButtons.Yes&&e.channelObject.exit?.()}));break;case"notifications":ae(y);break;case"cloud":e.channelObject.webSocket?.readyState!==1&&f((0,Tt.MsgBoxYesNo)("Reconnect Kwirth","Kwirth has been disconnected. Do you want to reconnect?",f,b=>{}));break}},Fn=[{name:"cloud",onClick:(p,y)=>vt(p,y),onDraw:p=>Lt(p)},{name:"notifications",onClick:(p,y)=>vt(p,y),onDraw:p=>Lt(p)},{name:"exit",onClick:(p,y)=>vt(p,y),onDraw:p=>Lt(p)}];(0,Qe.useLayoutEffect)(()=>{let p=new ResizeObserver(()=>{requestAnimationFrame(()=>{if(!s.current)return;let{top:y}=s.current.getBoundingClientRect();i(window.innerHeight-y)})});return p.observe(document.body),()=>p.disconnect()},[]),(0,Qe.useLayoutEffect)(()=>{l.current&&d(l.current.getBoundingClientRect().top)},[n.started]),(0,Qe.useEffect)(()=>{e.channelObject.setPalette?.(n.userPreferences?.palette),n.files.some(b=>b.path==="/overview")||n.files.push(...md),u1(t,n,e.channelObject,P,Ka,rs,Wr,es,Ua,no,ao,ts),Fl(),io(),Hr(),_l(),zl(),n.refreshUsage=()=>De(b=>b+1);let p=Me.find(b=>b.key==="Namespace");if(p)for(let b of n.files.filter(T=>T.data?.origin?.kind==="Namespace"))p.all.some(T=>T.key===b.name)||p.all.push({key:b.name,text:b.name});let y=Me.find(b=>b.key==="Node");if(y)for(let b of n.files.filter(T=>T.data?.origin?.kind==="Node"))y.all.some(T=>T.key===b.name)||y.all.push({key:b.name,text:b.name});return n.updateCategoryValues=(b,T,V)=>{let W=Me.find(ee=>ee.key===b);W&&(T==="DELETED"?W.all=W.all.filter(ee=>ee.key!==V):W.all.some(ee=>ee.key===V)||W.all.push({key:V}))},()=>{z(void 0)}},[]);let qe=(p,y,b)=>{z(void 0),b==="*all"?Ct(p,[y],mt.EInstanceConfigView.POD,void 0,void 0):Ct(p,[y],mt.EInstanceConfigView.CONTAINER,void 0,b)},bn=p=>{if(p.onReady==="shell"&&!so())return;let y=Xs.load(p.podYaml);lt("apply",[p.podYaml]);let b=p.url;if(p.onReady==="http"||p.onReady==="https"){p.forward&&(b="http://localhost:3000/kwirth/port-forward/pod/default/galaga/80");let T=window.setInterval(async()=>{try{let V=await fetch(b);V.status>=200&&V.status<400&&(clearInterval(T),f((0,Q.jsx)(Q.Fragment,{})))}catch(V){console.log(V)}},1e3);f((0,Tt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the ${p.name} work to start (waiting for... ${b})...`,f,V=>{V===Tt.MsgBoxButtons.Cancel&&clearInterval(T)}))}else if(p.onReady==="shell"){let T=window.setInterval(async()=>{try{let V=n.files.find(W=>W.class==="Pod"&&W.data.origin.metadata.namespace===(y.metadata.namespace||"default")&&W.data.origin.metadata.name===y.metadata.name);V&&V.data.origin.status.phase==="Running"&&(clearInterval(T),f((0,Q.jsx)(Q.Fragment,{})),Ct("ops",[V],mt.EInstanceConfigView.CONTAINER,void 0,V.data.origin.spec.containers[0].name))}catch(V){console.log(V)}},1e3);f((0,Tt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the ${p.name} work to start (waiting for shell)...`,f,V=>{V===Tt.MsgBoxButtons.Cancel&&clearInterval(T)}))}},qa=p=>{R(void 0);let y=n.userPreferences.customActions.find(b=>b.name===p);y?bn(y):lt("Pod",["work",p])},Vr=p=>{let y=n.userPreferences.customActions.find(b=>b.name===p);y&&bn(y)},Xt=p=>{n.windows.forEach(b=>b.atFront=!1);let y=n.windows.find(b=>b.id===p);if(y){y.visible=!0,y.atFront=!0,De(b=>b+1);return}},_n=p=>{n.windows.forEach(y=>y.atFront=!1),n.windows.push(p),De(y=>y+1)},zn=(p,y,b,T,V,W)=>{let ee=n.windows.find(J=>J.id===p);ee&&(ee.isMaximized=y,ee.x=b,ee.y=T,ee.width=V,ee.height=W)},Ua=(p,y)=>{let b=n.files.filter(W=>p.includes(W.path)),T=ue.get(b[0].data.origin.kind);b[0].path.startsWith("/custom/")&&!b[0].path.startsWith("/custom/CustomResourceDefinition/")&&(T=ue.get("#crdInstance#"));let V=n.windows.find(W=>W.selectedFiles.find(ee=>ee.path===b[0].path)&&W.class==="ContentDetails");if(V)Xt(V.id);else{let W=P.get(b[0].data.origin.kind),ee={id:"details-"+b[0].path+"-"+it(),class:"ContentDetails",visible:!0,atTop:!1,atFront:!0,title:b[0].data.origin.metadata?.name,isMaximized:!1,x:100,y:50,width:800,height:600,data:{source:b[0],path:b[0].path,sections:T,actions:W&&W.leftItems?W.leftItems:[],onApply:mo,onAction:Hl,onLink:Ka,containerSelectionOptions:new Map([["log",2],["metrics",2],["fileman",2],["trivy",0],["topology",0],["ops",1],["evict",0],["cordon",0],["uncordon",0],["drain",0],["scale",0],["restart",0],["trigger",0],["suspend",0],["resume",0]])},selectedFiles:[b[0]],onWindowChange:zn,onMinimize:Xn,onTop:wn,onClose:Vt};_n(ee)}b[0].data.origin.metadata&&(b[0].data.events&&delete b[0].data.events,lt("events",["object",b[0].data.origin.metadata.namespace,b[0].data.origin.kind,b[0].data.origin.metadata.name]))},Wr=p=>{let y=(Ee.get(p)||`apiVersion: v1
803
+ `);u();var Ke=k(ft(),1),Ha=k(je(),1),Vx=k(Kt(),1);var Wx=k(Ot(),1);var Hx=k(Ot(),1),Ge=k(he(),1),Bx=e=>{let t=(0,Ha.useRef)(null),[n,a]=(0,Ha.useState)(e.data.searchText),[r,i]=(0,Ha.useState)(e.data.includeStatus),[s,o]=(0,Ha.useState)(e.data.merge),[l,c]=(0,Ha.useState)(e.data.matchCase),[d,m]=(0,Ha.useState)(e.isMaximized),f=e.data;(0,Hx.useKeyboard)(e.onClose,e.id);let g=()=>{e.onFocus&&e.onFocus()},I=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},C=R=>{m(!1),t.current?.snapTo(R)},L=R=>{a(R.target.value),e.data.searchText=R.target.value},U=()=>{i(!r),e.data.includeStatus=!e.data.includeStatus},oe=()=>{c(!l),e.data.matchCase=!e.data.matchCase},de=()=>{o(!s),e.data.merge=!e.data.merge};function B(R,ce){if(!R||!ce)return;let Ce=ce.replace(/\[(\d+)\]/g,".$1").split(".").filter(z=>z!==""),Te=R;for(let z of Ce){if(Te===null||typeof Te!="object")return;if(z in Te)Te=Te[z];else return}return Te}let ue=(R,ce,Ce,Te,z)=>{if(!R||!R.kind)return[];let H=[];if(R.kind==="Secret"&&R.data){let le=$s(R);for(let Q of Object.keys(le.data))le.data[Q]=atob(le.data[Q]);H=ym(le,ce,Te)}else H=ym(R,ce,Te);return Ce||(H=H.filter(le=>!le.startsWith("status"))),z&&H.length>1&&(H=[H[0]]),H};return(0,Ge.jsxs)(ta,{ref:t,id:e.id,isMaximized:d,isActive:e.atFront,onFocus:g,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,Ge.jsx)(Ke.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,Ge.jsxs)(Ke.Stack,{direction:"row",alignItems:"center",children:[(0,Ge.jsx)(Vx.Search,{fontSize:"small",sx:{color:"text.secondary",mr:1}}),(0,Ge.jsxs)(Ke.Typography,{variant:"body2",fontWeight:500,flex:1,children:["Search \u2014 ",f.scope===":cluster:"?"All cluster":"Namespace: "+f.scope]}),(0,Ge.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:I,onClose:()=>e.onClose(e.id),onSnap:C})]})}),(0,Ge.jsxs)(Ke.DialogContent,{children:[(0,Ge.jsxs)(Ke.Stack,{direction:"row",alignItems:"center",children:[(0,Ge.jsx)(Ke.TextField,{value:n,onChange:L,variant:"standard",label:"Search..."}),(0,Ge.jsx)(Ke.FormControlLabel,{control:(0,Ge.jsx)(Ke.Checkbox,{}),checked:r,onChange:U,label:"Include status"}),(0,Ge.jsx)(Ke.FormControlLabel,{control:(0,Ge.jsx)(Ke.Checkbox,{}),checked:l,onChange:oe,label:"Match case"}),(0,Ge.jsx)(Ke.FormControlLabel,{control:(0,Ge.jsx)(Ke.Checkbox,{}),checked:s,onChange:de,label:"Merge repeated results"}),(0,Ge.jsx)(Ke.Typography,{flexGrow:1}),n.trim()!==""&&n.length>=3&&(0,Ge.jsxs)(Ke.Typography,{children:["Results: ",f.selectedFiles.reduce((R,ce)=>R+ue(ce.data?.origin,n,r,l,s).length,0)]})]}),(0,Ge.jsx)(Ke.Stack,{direction:"column",mt:1,children:n.trim()!==""&&n.length>=3&&f.selectedFiles.map(R=>ue(R.data?.origin,n,r,l,s).map((Ce,Te)=>{let z=B(R.data.origin,Ce),H;return R.data.origin.metadata?H=(0,Ge.jsx)(Ke.Typography,{variant:"body2",children:(0,Ge.jsx)("a",{href:"#",onClick:()=>f.onLink(R.data.origin.kind,R.data.origin.metadata.name,R.data.origin.metadata.namespace),children:R.data.origin.metadata.name})}):H=(0,Ge.jsx)(Ke.Typography,{variant:"body2",children:(0,Ge.jsx)("a",{href:"#",onClick:()=>f.onLink(R.data.origin.kind,R.data.origin.name,""),children:R.data.origin.name})}),(0,Ge.jsxs)(Ke.Stack,{direction:"row",sx:{mb:2,ml:1},alignItems:"center",children:[(0,Wx.getIconFromKind)(R.data?.origin?.kind,32),(0,Ge.jsxs)(Ke.Stack,{direction:"column",sx:{ml:2},children:[H,(0,Ge.jsx)(Ke.Typography,{variant:"body2",children:Ce}),(0,Ge.jsxs)(Ke.Typography,{variant:"body2",children:[String(z).substring(0,80),String(z).length>80?"...":""]})]})]},Te)}))})]})]})};u();var jn=k(je(),1),xe=k(ft(),1),Pr=k(Kt(),1);var Nn=k(va(),1);var ve=k(he(),1),$x=e=>{let t=(0,jn.useRef)(null),[n,a]=(0,jn.useState)(""),[r,i]=(0,jn.useState)(!1),[s,o]=(0,jn.useState)(!1),[l,c]=(0,jn.useState)(100),[d,m]=(0,jn.useState)(!1),[f,g]=(0,jn.useState)(null),{magnifyData:I}=e,C=!I.logSearchDone,L=I.logSearchResults,U=()=>{if(!n.trim()||!e.channelObject.webSocket)return;I.logSearchResults=[],I.logSearchDone=!1;let R=at();g(R);let ce=JSON.stringify({query:n,namespaces:e.data.namespaces,pods:e.data.pods,tailLines:l,caseSensitive:r,useRegex:s}),Ce={flow:Nn.EInstanceMessageFlow.REQUEST,action:Nn.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:Nn.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:R,command:"logsearch",namespace:"",group:"",pod:"",container:"",params:[ce],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(Ce))},oe=()=>{if(!f||!e.channelObject.webSocket)return;let R={flow:Nn.EInstanceMessageFlow.REQUEST,action:Nn.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:Nn.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:at(),command:"logsearchstop",namespace:"",group:"",pod:"",container:"",params:[JSON.stringify({searchId:f})],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(R)),I.logSearchDone=!0,g(null)};(0,jn.useEffect)(()=>()=>{if(f&&e.channelObject.webSocket){let R={flow:Nn.EInstanceMessageFlow.REQUEST,action:Nn.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:Nn.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:at(),command:"logsearchstop",namespace:"",group:"",pod:"",container:"",params:[JSON.stringify({searchId:f})],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(R))}},[f]);let de=R=>{e.data.onOpenLog(R.namespace,R.pod,R.container)},B=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},ue=R=>{m(!1),t.current?.snapTo(R)};return(0,ve.jsxs)(ta,{ref:t,id:e.id,x:e.x,y:e.y,width:e.width,height:e.height,isMaximized:d,isActive:e.atFront,onFocus:e.onFocus,onWindowChange:e.onWindowChange,children:[(0,ve.jsx)(xe.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,ve.jsxs)(xe.Stack,{direction:"row",alignItems:"center",children:[(0,ve.jsx)(Pr.Search,{fontSize:"small",sx:{color:"text.secondary",mr:1}}),(0,ve.jsxs)(xe.Typography,{variant:"body2",fontWeight:500,flex:1,children:["Log Search \u2014 ",e.data.scopeLabel]}),(0,ve.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:B,onClose:()=>e.onClose(e.id),onSnap:ue})]})}),(0,ve.jsxs)(xe.DialogContent,{sx:{display:"flex",flexDirection:"column",p:1,gap:1,overflow:"hidden",height:"100%"},children:[(0,ve.jsx)(xe.Stack,{direction:"row",spacing:1,alignItems:"center",children:(0,ve.jsx)(xe.TextField,{size:"small",fullWidth:!0,placeholder:"Search in logs\u2026",value:n,onChange:R=>a(R.target.value),onKeyDown:R=>{R.key==="Enter"&&U(),R.key==="Escape"&&e.onClose(e.id)},slotProps:{input:{endAdornment:(0,ve.jsx)(xe.InputAdornment,{position:"end",children:(0,ve.jsx)(xe.IconButton,{size:"small",onClick:U,disabled:C||!n.trim(),children:C?(0,ve.jsx)(xe.CircularProgress,{size:16}):(0,ve.jsx)(Pr.Search,{fontSize:"small"})})})}}})}),(0,ve.jsxs)(xe.Stack,{direction:"row",spacing:1,alignItems:"center",children:[(0,ve.jsx)(xe.FormControlLabel,{control:(0,ve.jsx)(xe.Checkbox,{size:"small",checked:r,onChange:R=>i(R.target.checked)}),label:(0,ve.jsx)(xe.Typography,{variant:"caption",children:"Case"}),sx:{mr:0}}),(0,ve.jsx)(xe.FormControlLabel,{control:(0,ve.jsx)(xe.Checkbox,{size:"small",checked:s,onChange:R=>o(R.target.checked)}),label:(0,ve.jsx)(xe.Typography,{variant:"caption",children:"Regex"}),sx:{mr:0}}),(0,ve.jsx)(xe.TextField,{size:"small",type:"number",label:"Lines",value:l,onChange:R=>c(Math.min(500,+R.target.value)),sx:{width:90},slotProps:{htmlInput:{min:1,max:500,style:{padding:"4px 8px",fontSize:"0.75rem"}}}}),(0,ve.jsx)(xe.Tooltip,{title:"Stop search",children:(0,ve.jsx)("span",{children:(0,ve.jsx)(xe.IconButton,{size:"small",onClick:oe,disabled:!C,children:(0,ve.jsx)(Pr.Stop,{fontSize:"small",color:C?"error":"disabled"})})})}),C&&(0,ve.jsx)(xe.Typography,{variant:"caption",color:"text.secondary",children:"Searching\u2026"}),I.logSearchDone&&L.length>0&&!C&&(0,ve.jsx)(xe.Chip,{label:`${L.length} container${L.length>1?"s":""} with matches`,size:"small",color:"primary",variant:"outlined"}),I.logSearchDone&&L.length===0&&!C&&n&&(0,ve.jsx)(xe.Typography,{variant:"caption",color:"text.secondary",children:"No matches found."})]}),(0,ve.jsx)(xe.Divider,{}),(0,ve.jsx)(xe.Box,{sx:{flex:1,overflowY:"auto"},children:L.map((R,ce)=>(0,ve.jsxs)(xe.Box,{sx:{mb:1.5},children:[(0,ve.jsxs)(xe.Stack,{direction:"row",alignItems:"center",spacing:.5,sx:{mb:.5},children:[(0,ve.jsxs)(xe.Typography,{variant:"caption",fontWeight:600,sx:{fontFamily:"monospace",color:"primary.main"},children:[R.namespace,"/",R.pod]}),(0,ve.jsx)(xe.Chip,{label:R.container,size:"small",variant:"outlined",sx:{height:16,fontSize:"9px","& .MuiChip-label":{px:.5}}}),(0,ve.jsx)(xe.Chip,{label:`${R.lines.length} line${R.lines.length>1?"s":""}`,size:"small",sx:{height:16,fontSize:"9px","& .MuiChip-label":{px:.5}}}),(0,ve.jsx)(xe.Tooltip,{title:"Open log",children:(0,ve.jsx)(xe.IconButton,{size:"small",sx:{p:0},onClick:()=>de(R),children:(0,ve.jsx)(Pr.Launch,{sx:{fontSize:12}})})})]}),R.lines.map((Ce,Te)=>(0,ve.jsx)(xe.Typography,{variant:"caption",display:"block",sx:{fontFamily:"monospace",fontSize:"10px",pl:1,color:"text.secondary",wordBreak:"break-all",borderLeft:"2px solid",borderColor:"divider",mb:.25},children:Ce},Te))]},ce))})]})]})};u();var V=k(ft(),1);u();var El=k(ft(),1),Be=k(Dm(),1),tt=k(he(),1),Ux=e=>{let t=e.channelObject.data;if(t.metricsProviderMissing)return(0,tt.jsx)(El.Alert,{severity:"info",sx:{my:1},children:"The metrics provider is not installed in this cluster, so there is no cluster usage to draw. Install it from \u2630 \u2192 Manage extensions \u2192 Providers."});let n=[...t.metricsCluster];return(0,tt.jsxs)(El.Stack,{direction:"row",sx:{height:"200px"},children:[(0,tt.jsx)(Be.ResponsiveContainer,{children:(0,tt.jsxs)(Be.LineChart,{data:n,title:"CPU",children:[(0,tt.jsx)(Be.CartesianGrid,{strokeDasharray:"3 3"}),(0,tt.jsx)(Be.XAxis,{dataKey:"timestamp",fontSize:8}),(0,tt.jsx)(Be.YAxis,{fontSize:8}),(0,tt.jsx)(Be.Legend,{}),(0,tt.jsx)(Be.Line,{name:"% CPU",type:"monotone",dataKey:"cpuUsage",dot:!1})]})}),(0,tt.jsx)(Be.ResponsiveContainer,{children:(0,tt.jsxs)(Be.LineChart,{data:n,title:"Memory",children:[(0,tt.jsx)(Be.CartesianGrid,{strokeDasharray:"3 3"}),(0,tt.jsx)(Be.XAxis,{dataKey:"timestamp",fontSize:8}),(0,tt.jsx)(Be.YAxis,{fontSize:8}),(0,tt.jsx)(Be.Legend,{}),(0,tt.jsx)(Be.Line,{name:"% Memory",type:"monotone",dataKey:"memoryUsage",dot:!1})]})}),(0,tt.jsx)(Be.ResponsiveContainer,{children:(0,tt.jsxs)(Be.LineChart,{data:n,title:"Network",children:[(0,tt.jsx)(Be.CartesianGrid,{strokeDasharray:"3 3"}),(0,tt.jsx)(Be.XAxis,{dataKey:"timestamp",fontSize:8}),(0,tt.jsx)(Be.YAxis,{fontSize:8}),(0,tt.jsx)(Be.Legend,{}),(0,tt.jsx)(Be.Line,{name:"Tx Mbps",type:"monotone",dataKey:"txmbps",stroke:"#6e5bb8",dot:!1}),(0,tt.jsx)(Be.Line,{name:"Rx Mbps",type:"monotone",dataKey:"rxmbps",stroke:"#4a9076",dot:!1})]})})]})};u();var An=k(ft(),1),Et=k(Ot(),1),Yx=k(je(),1),rn=k(Ot(),1),Gx=k(Ml(),1),Kx=k(Dl(),1),En=k(he(),1),Ji={get:Gx.default,set:Kx.default},hn=(e,t)=>(0,En.jsx)(An.Stack,{direction:"column",children:e.map((n,a)=>(0,En.jsxs)(An.Typography,{variant:"body2",children:[n.text,":\xA0",(0,En.jsx)("a",{href:"#",onClick:()=>t(n.kind,n.name,n.namespace),children:n.name})]},a))}),Jx=e=>{let t=[];for(let n of e.filter(a=>a.class==="ReplicaSet").map(a=>a.data.origin))n.status?.replicas===0||n.status?.availableReplicas===0||n.status?.readyReplicas===0?t.push({kind:"ReplicaSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.WARNING,text:"Unneeded ReplicaSet"}):(n.status?.replicas===0||n.spec.availableReplicas===0)&&t.push({kind:"ReplicaSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.WARNING,text:"0 replicas desired"});return t},jx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Deployment").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"Deployment",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.WARNING,text:"Unready replicas"});return t},Zx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Job").map(a=>a.data.origin))n.status?.failed!==void 0&&+n.status?.failed>0&&t.push({kind:"Job",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.ERROR,text:"Failed Job"});return t},Xx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Stateful").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"StatefulSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.ERROR,text:"SS Replicas unready"});return t},Qx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Stateful").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"StatefulSet",name:n.metadata.name,namespace:n.metadata.namespace,level:Et.ENotifyLevel.ERROR,text:"DS replicas unready"});return t},e1=e=>{let t=e.filter(i=>i.class==="ConfigMap"&&i.data?.origin?.metadata?.namespace!=="kube-system"&&i.data?.origin?.metadata?.namespace!=="kube-public"),n=[...t],a=(i,s)=>{let o=i.envFrom||[];for(let c of o)if(c.configMapRef?.name===s)return!0;let l=i.env||[];for(let c of l)if(c.valueFrom?.configMapRef?.name===s)return!0;return!1},r=(i,s)=>{for(let l of i.spec?.containers||[])if(a(l,s))return!0;let o=i.spec?.volumes||[];for(let l of o)if(l.configMap?.name===s||l.projected?.sources?.some(c=>c.configMap?.name===s))return!0;return!1};for(let i of t){let s=i.data.origin.metadata.name;" kwirth.keys kwirth-keys ".includes(s)&&(n=n.filter(o=>o!==i));for(let o of e.filter(l=>l.class==="Pod/").map(l=>l.data.origin))r(o,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="StatefulSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="ReplicaSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="Deployment").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="DaemonSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="ReplicationController").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i))}return n.map(i=>({name:i.data.origin.metadata.name,namespace:i.data.origin.metadata.namespace,kind:"ConfigMap",text:"Unreferenced ConfigMap",level:Et.ENotifyLevel.WARNING}))},t1=e=>{let t=e.filter(a=>a.class==="Secret"&&a.data?.origin?.metadata?.namespace!=="kube-system"&&a.data?.origin?.metadata?.namespace!=="kube-public"),n=[...t];for(let a of t){let r=a.data.origin.metadata.name;" kwirth-sa-kwirthtoken kwirth-users kwirth.keys kwirth-keys ".includes(r)&&(n=n.filter(i=>i!==a)),a.data?.origin?.type?.startsWith("helm.sh/release.")&&(n=n.filter(i=>i!==a));for(let i of e.filter(s=>s.class==="Pod")){let s=i.data.origin;if((Ji.get(s,"spec.imagePullSecrets")||[]).map(c=>c.name).some(c=>c===r)){n=n.filter(c=>c!==a);break}let o=s.spec?.containers||[];for(let c of o){let d=c.envFrom||[];for(let f of d)f.secretRef?.name===r&&(n=n.filter(g=>g!==a));let m=c.env||[];for(let f of m)f.valueFrom?.secretKeyRef?.name===r&&(n=n.filter(g=>g!==a))}let l=s.spec?.volumes||[];for(let c of l)c.secret?.secretName===r&&(n=n.filter(d=>d!==a)),c.projected?.sources?.some(d=>d.secret?.name===r)&&(n=n.filter(d=>d!==a))}for(let i of e.filter(s=>s.class==="Deployment"||s.class==="Job"||s.class==="ReplicaSet"||s.class==="DaemonSet"||s.class==="StatefulSet").map(s=>s.data.origin))if((Ji.get(i,"spec.template.spec.imagePullSecrets")||[]).map(s=>s.name).some(s=>s===r)){n=n.filter(s=>s!==a);break}for(let i of e.filter(s=>s.class==="Ingress")){let s=i.data.origin;(Ji.get(s,"spec.tls")||[]).some(o=>o.secretName===r)&&(n=n.filter(o=>o!==a))}for(let i of e.filter(s=>s.class==="PersistentVolume")){let s=i.data.origin;Ji.get(s,"spec.csi.nodeStageSecretRef.name")===r&&(n=n.filter(o=>o!==a)),Ji.get(s,"spec.csi.volumeAttributes.secretName")===r&&(n=n.filter(o=>o!==a))}for(let i of e.filter(s=>s.class==="StorageClass")){let s=i.data.origin;Ji.get(s,"parameters.secretName")===r&&(n=n.filter(o=>o!==a))}}return n.map(a=>({name:a.data.origin.metadata.name,namespace:a.data.origin.metadata.namespace,kind:"Secret",text:"Unreferenced Secret",level:Et.ENotifyLevel.WARNING}))},n1=e=>{let t=e.filter(a=>a.class==="VolumeAttachment"),n=[];for(let a of t)(a.data.origin.status.attachError||a.data.origin.status.detachError)&&n.push({kind:"VolumeAttach",name:a.data.origin.metadata.name,namespace:"",level:Et.ENotifyLevel.ERROR,text:"Attach/detach error"});return n},a1=e=>{let t=[],n=e.filter(a=>a.class==="Node").map(a=>a.data.origin);for(let a of n)a.status.conditions.some(i=>i.type==="Ready"&&i.status==="True")||t.push({name:a.metadata.name,namespace:"",kind:"Node",text:"Node not ready",level:Et.ENotifyLevel.ERROR});return t},r1=e=>{let t=[],n=e.filter(a=>a.class==="Ingress").map(a=>a.data.origin);for(let a of n){let r=a.metadata?.namespace,i=a.spec?.rules;for(let s of i){let o=s.http?.paths;for(let l of o){let c=l.backend?.service?.name;e.find(d=>d.class==="Service"&&d.data.origin?.metadata?.name===c&&d.data.origin?.metadata?.namespace===r)||t.push({kind:"Ingress",name:a.metadata.name,namespace:a.metadata.namespace,level:Et.ENotifyLevel.ERROR,text:"Inexistent service "+c})}}}return t},i1=e=>{let t=[],n=e.filter(a=>a.class==="Service"&&a.data.origin?.metadata?.namespace!=="kube-system"&&a.data.origin?.metadata?.namespace!=="kube-public").map(a=>a.data.origin);for(let a of n){let r=a.metadata?.namespace,i=a.spec.selector;if(i){let s=!1;for(let o of e.filter(l=>l.class==="Pod"&&l.data.origin?.metadata?.namespace===r).map(l=>l.data.origin)){let l=0;for(let c of Object.keys(i))o.metadata?.labels?.[c]===i[c]&&l++;if(l===Object.keys(i).length){s=!0;break}}s||t.push({kind:"Service",name:a.metadata.name,namespace:a.metadata.namespace,level:Et.ENotifyLevel.ERROR,text:"Inexistent service destination pods"})}}return t},s1=e=>{let t=[],n=e.filter(a=>a.class==="Role"&&a.data.origin?.metadata?.namespace!=="kube-system"&&a.data.origin?.metadata?.namespace!=="kube-public").map(a=>a.data.origin);for(let a of n){let r=!1;for(let i of e.filter(s=>s.class==="RoleBinding").map(s=>s.data.origin))if(r=i.subjects.some(s=>s.kind==="ServiceAccount"&&s.name===a.metadata.name&&s.namespace===a.metadata.namespace),r)break;r||t.push({kind:"Role",name:a.metadata.name,namespace:a.metadata.namespace,level:Et.ENotifyLevel.WARNING,text:"Role not in use"})}return t},o1=e=>{let t=[],n=e.filter(a=>a.class==="ClusterRole").map(a=>a.data.origin);for(let a of n){let r=!1;for(let i of e.filter(s=>s.class==="ClusterRoleBinding").map(s=>s.data.origin))if(r=i.subjects&&i.subjects.some(s=>s.kind==="ServiceAccount"&&s.name===i.metadata.name&&s.namespace===i.metadata.namespace),r)break;r||t.push({kind:"ClusterRole",name:a.metadata.name,namespace:"",level:Et.ENotifyLevel.WARNING,text:"ClusterRole not in use"})}return t},gn=(e,t,n,a)=>{let r=e.filter(s=>s.level===Et.ENotifyLevel.ERROR).length,i=e.filter(s=>s.level===Et.ENotifyLevel.WARNING).length;return(0,En.jsx)(An.Button,{onClick:()=>n(a),sx:{backgroundColor:r>0?"#ffaaaa":""},children:(0,En.jsxs)(An.Stack,{direction:"column",alignItems:"center",children:[t,(0,En.jsxs)(An.Stack,{direction:"row",children:[(0,En.jsxs)(An.Typography,{variant:"caption",color:r>0?"red":"gray",children:[r,"\xA0\xA0"]}),(0,En.jsx)(An.Typography,{variant:"caption",color:i>0?"orange":r>0?"gray":"orange",children:e.filter(s=>s.level===Et.ENotifyLevel.WARNING).length})]})]})})},FM=(e,t)=>(0,En.jsxs)(An.Stack,{direction:"row",flex:1,justifyContent:"space-between",children:[gn(a1(e),(0,rn.getIconFromKind)("Node",50),t,"/cluster/Node"),gn(e1(e),(0,rn.getIconFromKind)("ConfigMap",50),t,"/config/ConfigMap"),gn(t1(e),(0,rn.getIconFromKind)("Secret",50),t,"/config/Secret"),gn(jx(e),(0,rn.getIconFromKind)("Deployment",50),t,"/workload/Deployment"),gn(Jx(e),(0,rn.getIconFromKind)("ReplicaSet",50),t,"/workload/ReplicaSet"),gn(Xx(e),(0,rn.getIconFromKind)("StatefulSet",50),t,"/workload/StatefulSet"),gn(Qx(e),(0,rn.getIconFromKind)("DaemonSet",50),t,"/workload/DaemonSet"),gn(Zx(e),(0,rn.getIconFromKind)("Job",50),t,"/workload/Job"),gn(r1(e),(0,rn.getIconFromKind)("Ingress",50),t,"/network/Ingress"),gn(i1(e),(0,rn.getIconFromKind)("Service",50),t,"/network/Service"),gn(n1(e),(0,rn.getIconFromKind)("VolumeAttachment",50),t,"/storage/VolumeAttachment"),gn(s1(e),(0,rn.getIconFromKind)("Role",50),t,"/access/Role"),gn(o1(e),(0,rn.getIconFromKind)("ClusterRole",50),t,"/access/ClusterRole")]}),Ba=e=>{let t=(0,Yx.useMemo)(()=>{let n={},{options:a,files:r,onNavigate:i}=e;return a.node&&(n.node=a1(r)),a.configMap&&(n.configMap=e1(r)),a.secret&&(n.secret=t1(r)),a.deployment&&(n.deployment=jx(r)),a.replicaSet&&(n.replicaSet=Jx(r)),a.statefulSet&&(n.statefulSet=Xx(r)),a.daemonSet&&(n.daemonSet=Qx(r)),a.job&&(n.job=Zx(r)),a.volumeAttachment&&(n.volumeAttachment=n1(r)),a.ingress&&(n.ingress=r1(r)),a.service&&(n.service=i1(r)),a.role&&(n.role=s1(r)),a.custerRole&&(n.clusterRole=o1(r)),a.summary&&(n.summary=FM(r,i)),n},[e.files,e.options,e.onNavigate]);return(0,En.jsxs)(An.Stack,{children:[e.options.node&&hn(t.node,e.onLink),e.options.configMap&&hn(t.configMap,e.onLink),e.options.secret&&hn(t.secret,e.onLink),e.options.deployment&&hn(t.deployment,e.onLink),e.options.replicaSet&&hn(t.replicaSet,e.onLink),e.options.statefulSet&&hn(t.statefulSet,e.onLink),e.options.daemonSet&&hn(t.daemonSet,e.onLink),e.options.job&&hn(t.job,e.onLink),e.options.volumeAttachment&&hn(t.volumeAttachment,e.onLink),e.options.ingress&&hn(t.ingress,e.onLink),e.options.service&&hn(t.service,e.onLink),e.options.role&&hn(t.role,e.onLink),e.options.custerRole&&hn(t.clusterRole,e.onLink),e.options.summary&&t.summary]})};u();var Gt=k(je(),1),F=k(ft(),1),_r=k(Kt(),1);var f1=k(Ot(),1);u();var We=k(ft(),1),nt=k(he(),1),l1=e=>(0,nt.jsxs)(We.Dialog,{open:!0,onClose:e.onClose,disableRestoreFocus:!0,maxWidth:"xs",fullWidth:!0,children:[(0,nt.jsx)(We.DialogTitle,{children:"About Kwirth..."}),(0,nt.jsx)(We.DialogContent,{children:(0,nt.jsxs)(We.Stack,{spacing:2,sx:{p:2,borderRadius:2,backgroundColor:"rgba(245,130,10,0.07)",border:"1px solid rgba(245,130,10,0.2)"},children:[(0,nt.jsxs)(We.Box,{children:[(0,nt.jsx)(We.Typography,{variant:"h5",fontWeight:"bold",sx:{color:"#f5820a"},children:"Kwirth"}),(0,nt.jsx)(We.Typography,{variant:"body2",color:"text.secondary",children:"Kubernetes observability platform"})]}),(0,nt.jsx)(We.Divider,{}),(0,nt.jsxs)(We.Stack,{spacing:1.5,children:[(0,nt.jsxs)(We.Box,{children:[(0,nt.jsx)(We.Typography,{variant:"caption",color:"text.secondary",display:"block",children:"VERSION"}),(0,nt.jsx)(We.Typography,{variant:"body2",children:e.kwirthVersion??"unknown"})]}),(0,nt.jsxs)(We.Box,{children:[(0,nt.jsx)(We.Typography,{variant:"caption",color:"text.secondary",display:"block",children:"HOMEPAGE"}),(0,nt.jsx)(We.Typography,{variant:"body2",children:(0,nt.jsx)("a",{href:"https://kwirthmagnify.dev",target:"_blank",rel:"noreferrer",children:"kwirthmagnify.dev"})})]}),(0,nt.jsxs)(We.Box,{children:[(0,nt.jsx)(We.Typography,{variant:"caption",color:"text.secondary",display:"block",children:"SOURCE CODE"}),(0,nt.jsx)(We.Typography,{variant:"body2",children:(0,nt.jsx)("a",{href:"https://github.com/kwirthmagnify/kwirth",target:"_blank",rel:"noreferrer",children:"github.com/kwirthmagnify/kwirth"})})]})]}),(0,nt.jsx)(We.Divider,{}),(0,nt.jsx)(We.Typography,{variant:"caption",color:"text.secondary",children:"\xA9 2025 Kwirth contributors \xB7 Apache 2.0"})]})}),(0,nt.jsx)(We.DialogActions,{children:(0,nt.jsx)(We.Button,{onClick:e.onClose,children:"OK"})})]});var zr=k(va(),1);u();var Al=k(va(),1);u();var c1="hideKinds";var _M="cluster",Om="admin",u1=["","magnify$user","magnify$read","magnify$write",_M,Om];var m1=e=>u1.indexOf(e);var LM=e=>{if(!e)return[];try{return(0,Al.parseResources)(e.resources).map(t=>{let n=(t.namespaces||"").split(",").map(i=>i.trim()).filter(Boolean),a=-1,r;for(let i of(t.scopes||"").split(",").map(s=>s.trim()).filter(Boolean)){let s=(0,Al.parseThinScope)(i),o=m1(s?s.wide:i);if(o<0||(o>a&&(a=o,r=void 0),o!==a))continue;let l=s?WM(s.config):new Set;r=r===void 0?l:VM(r,l)}return{level:a,hidden:r??new Set,namespaces:n}})}catch{return[]}},VM=(e,t)=>new Set([...e].filter(n=>t.has(n))),WM=e=>{if(!e||typeof e!="object")return new Set;let t=e[c1],n=Array.isArray(t)?t.map(String):typeof t=="string"?t.split(","):[];return new Set(n.map(a=>a.trim()).filter(Boolean))};var d1=(e,t)=>{let n=m1(t);return LM(e).some(a=>a.level>=n)};var P=k(he(),1),Rm=(e,t)=>{try{return d1((0,zr.accessKeyDeserialize)(e??""),t)}catch{return!1}},p1=e=>{let t=Rm(e.channelObject.accessString,"magnify$read"),n=Rm(e.channelObject.accessString,"magnify$write"),a=Rm(e.channelObject.accessString,Om),[r,i]=(0,Gt.useState)(e.preferences.palette||"light"),[s,o]=(0,Gt.useState)(e.preferences.logLines),[l,c]=(0,Gt.useState)(e.preferences.tracing),[d,m]=(0,Gt.useState)(e.preferences.dataConfig?.source),[f,g]=(0,Gt.useState)(e.preferences.dataConfig?.sync),[I,C]=(0,Gt.useState)(e.preferences.dataHelm),[L,U]=(0,Gt.useState)(e.preferences.dataManagedFields),[oe,de]=(0,Gt.useState)(e.preferences.customActions||[]),[B,ue]=(0,Gt.useState)(!1),[R,ce]=(0,Gt.useState)(!1),[Ce,Te]=(0,Gt.useState)(!1),[z,H]=(0,Gt.useState)(!1),le=(0,Gt.useRef)(null),[Q,Ee]=(0,Gt.useState)(!1),ze="Paste here a complete YAML of a pod that will be launched when a user selects this action in Magnify 'Overview' top menu ('Kwirth Works' action)";(0,f1.useKeyboard)();let $e=()=>{e.channelObject.writeChannelUserPreferences&&(e.preferences.palette=r,e.preferences.dataHelm=I,e.preferences.dataManagedFields=L,e.preferences.dataConfig.source=d,e.preferences.dataConfig.sync=f,e.preferences.logLines=s,e.preferences.tracing=l,e.preferences.customActions=oe,e.channelObject.writeChannelUserPreferences(e.channelObject.channelId,e.preferences),ue(!1),ce(!1),Te(!1),H(!1))},It=()=>{e.onDataReload&&e.onDataReload()},Dt=()=>{console.log(e.files.filter(E=>E.name.includes(le.current.value)||E.path.includes(le.current.value)))},ct=(E,ae)=>{let ie=d;E==="sync"&&(ie=f),ie.some(Je=>Je.name===ae.name)?ie=ie.filter(Je=>Je.name!==ae.name):ie.push(ae),E==="source"&&m([...ie]),E==="sync"&&g([...ie]),ce(!0)},Zn=E=>{oe.splice(E,1),de([...oe])};return(0,P.jsxs)(F.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,P.jsxs)(F.Accordion,{defaultExpanded:!0,children:[(0,P.jsx)(F.AccordionSummary,{expandIcon:(0,P.jsx)(_r.ExpandMore,{}),children:(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Display"})})}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"column",spacing:.5,children:[(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Palette mode"}),(0,P.jsx)(F.Typography,{variant:"body2",color:"text.secondary",sx:{mr:1},children:r==="dark"?"Dark":"Light"}),(0,P.jsx)(F.Switch,{size:"small",checked:r==="dark",onChange:E=>{let ae=E.target.checked?"dark":"light";i(ae),e.channelObject.setPalette?.(ae),ue(!0)}})]}),(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"About Kwirth"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>Ee(!0),children:"About"})]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:$e,disabled:!B,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!n,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(_r.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Custom actions"})}),!n&&(0,P.jsxs)(F.Typography,{variant:"caption",color:"text.secondary",sx:{ml:1},children:["\u2014 needs '","magnify$write","'"]})]}),(0,P.jsxs)(F.AccordionDetails,{children:[oe.map((E,ae)=>(0,P.jsxs)(F.Stack,{direction:"column",spacing:1,sx:{mb:2},children:[(0,P.jsxs)(F.Stack,{direction:"row",spacing:1,alignItems:"center",children:[(0,P.jsxs)(F.Select,{value:E.type,onChange:ie=>{E.type=ie.target.value,de([...oe])},variant:"standard",sx:{width:100},children:[(0,P.jsx)(F.MenuItem,{value:"kwirth",disabled:!0,children:"Kwirth"}),(0,P.jsx)(F.MenuItem,{value:"kube",children:"Kube"})]}),(0,P.jsx)(F.TextField,{value:E.name,onChange:ie=>{E.name=ie.target.value,de([...oe])},variant:"standard",placeholder:"Name",sx:{minWidth:"15%"}}),(0,P.jsxs)(F.Select,{value:E.onReady,onChange:ie=>{E.onReady=ie.target.value,de([...oe])},variant:"standard",sx:{minWidth:"10%"},children:[(0,P.jsx)(F.MenuItem,{value:"nothing",children:"Nothing"}),(0,P.jsx)(F.MenuItem,{value:"shell",children:"Shell"}),(0,P.jsx)(F.MenuItem,{value:"http",disabled:!0,children:"HTTP"}),(0,P.jsx)(F.MenuItem,{value:"https",disabled:!0,children:"HTTPS"})]}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:ie=>{E.forward=ie.target.checked,de([...oe])},checked:E.forward,disabled:"nothing shell".includes(E.onReady)}),label:"Forward"}),(0,P.jsx)(F.TextField,{value:E.url,onChange:ie=>{E.url=ie.target.value,de([...oe])},disabled:"nothing shell".includes(E.onReady)||E.forward,fullWidth:!0,variant:"standard",placeholder:"URL"}),(0,P.jsx)(F.Box,{sx:{flexGrow:1}}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>Zn(ae),children:"Remove"})]}),(0,P.jsx)(F.TextareaAutosize,{value:E.podYaml,onChange:ie=>{E.podYaml=ie.target.value,de([...oe])},style:{height:100,fontFamily:"monospace",fontSize:12,padding:8,boxSizing:"border-box",width:"100%"},placeholder:ze},"yaml"+ae)]},"action"+ae)),(0,P.jsx)(F.Stack,{direction:"row",justifyContent:"flex-end",children:(0,P.jsx)(F.Button,{size:"small",onClick:()=>de([...oe,{type:"kube",name:"",podYaml:"",onReady:"nothing"}]),children:"Add"})})]}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:$e,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!t,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(_r.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"External content"})}),!t&&(0,P.jsxs)(F.Typography,{variant:"caption",color:"text.secondary",sx:{ml:1},children:["\u2014 needs '","magnify$read","'"]})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsx)(F.TextField,{value:s,onChange:E=>{o(+E.target.value),H(!0)},variant:"standard",label:"Max messages",type:"number",fullWidth:!0})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:$e,disabled:!z,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!t,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(_r.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Data management"})}),!t&&(0,P.jsxs)(F.Typography,{variant:"caption",color:"text.secondary",sx:{ml:1},children:["\u2014 needs '","magnify$read","'"]})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"row",spacing:2,children:[(0,P.jsxs)(F.Stack,{direction:"column",flex:1,children:[(0,P.jsx)(F.Typography,{variant:"body2",fontWeight:"bold",children:"Storage"}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:E=>{C(E.target.checked),ce(!0)},checked:I}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:"Keep Helm data"})}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:E=>{U(E.target.checked),ce(!0)},checked:L}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:"Keep managed fields"})})]}),(0,P.jsxs)(F.Stack,{direction:"column",flex:1,children:[(0,P.jsx)(F.Typography,{variant:"body2",fontWeight:"bold",children:"Source"}),ms.map(E=>(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:()=>ct("source",E),checked:d.some(ae=>ae.name===E.name)}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:E.name})},E.name))]}),(0,P.jsxs)(F.Stack,{direction:"column",flex:1,children:[(0,P.jsx)(F.Typography,{variant:"body2",fontWeight:"bold",children:"Sync"}),ms.map(E=>(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:()=>ct("sync",E),checked:f.some(ae=>ae.name===E.name)}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:E.name})},E.name))]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:$e,disabled:!R,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!t,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(_r.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Debug"})}),!t&&(0,P.jsxs)(F.Typography,{variant:"caption",color:"text.secondary",sx:{ml:1},children:["\u2014 needs '","magnify$read","'"]})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"column",spacing:.5,children:[(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",spacing:1,children:[(0,P.jsxs)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:["Files collection (",e.files.length," objects, ",(JSON.stringify(e.files).length/1024/1024).toFixed(2)," MB)"]}),(0,P.jsx)(F.TextField,{inputRef:le,label:"Filter",variant:"standard",size:"small"}),(0,P.jsx)(F.Button,{size:"small",onClick:It,children:"Reload"}),(0,P.jsx)(F.Button,{size:"small",onClick:Dt,children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Metrics names"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>console.log(e.channelObject.metricsList?.keys()),children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Channel object"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>console.log(e.channelObject),children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Message tracing (log received messages to console)"}),(0,P.jsx)(F.Checkbox,{size:"small",checked:l,onChange:()=>{c(!l),Te(!0)}})]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:$e,disabled:!Ce,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{disabled:!a,children:[(0,P.jsxs)(F.AccordionSummary,{expandIcon:(0,P.jsx)(_r.ExpandMore,{}),children:[(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Extensions"})}),!a&&(0,P.jsx)(F.Typography,{variant:"caption",color:"text.secondary",sx:{ml:1},children:"\u2014 needs 'admin'"})]}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsx)(F.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[{type:zr.EExtensionType.PLUGIN,label:"Plugins",desc:"Install, update and remove channel plugins that extend Kwirth with new visualization and analysis capabilities."},{type:zr.EExtensionType.PROVIDER,label:"Providers",desc:"Configure data source providers that feed events and metrics into your channels from external systems."},{type:zr.EExtensionType.SENDER,label:"Senders",desc:"Manage notification senders to forward alerts and reports to Slack, Teams, email and other destinations."},{type:zr.EExtensionType.THEME,label:"Themes",desc:"Install and activate visual themes to customize the look and feel of Kwirth."}].map(({type:E,label:ae,desc:ie})=>(0,P.jsxs)(F.Box,{sx:{border:1,borderColor:"divider",borderRadius:1,p:1.5,flex:1,minWidth:120,display:"flex",flexDirection:"column",gap:1},children:[(0,P.jsx)(F.Typography,{variant:"body2",fontWeight:"bold",children:ae}),(0,P.jsx)(F.Typography,{variant:"caption",color:"text.secondary",sx:{flexGrow:1},children:ie}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>e.channelObject.openManager?.(E),children:"Manage"})]},E))})})]}),Q&&(0,P.jsx)(l1,{kwirthVersion:e.channelObject.kwirthVersion,onClose:()=>Ee(!1)})]})};var ji=k(va(),1);u();var N=k(he(),1),da="var(--magnify-section-bg, white)",Lr=e=>(0,N.jsxs)("svg",{viewBox:"0 0 360 400",width:"300",height:"333",role:"img","aria-label":e.label,children:[(0,N.jsx)("g",{fill:"none",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",children:e.children}),(0,N.jsx)("text",{x:"180",y:"378",textAnchor:"middle",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"30",fill:"currentColor",children:e.label})]}),sn=e=>{let t=e.r??11,n=[0,1,2,3,4,5].map(a=>{let r=Math.PI/6+a*Math.PI/3;return`${(e.cx+t*Math.cos(r)).toFixed(1)},${(e.cy+t*Math.sin(r)).toFixed(1)}`}).join(" ");return(0,N.jsx)("polygon",{points:n})},Zs=e=>{let{cx:t,cy:n,r:a}=e;return(0,N.jsxs)("g",{children:[(0,N.jsx)("circle",{cx:t,cy:n,r:a}),(0,N.jsx)("circle",{cx:t,cy:n,r:a*.4}),[0,1,2,3,4,5,6,7].map(r=>{let i=r*Math.PI/4;return(0,N.jsx)("line",{x1:t+a*Math.cos(i),y1:n+a*Math.sin(i),x2:t+(a+a*.45)*Math.cos(i),y2:n+(a+a*.45)*Math.sin(i)},r)})]})},Pl=e=>{let{cx:t,cy:n,s:a}=e;return(0,N.jsxs)("g",{children:[(0,N.jsx)("path",{d:`M${t},${n-a} L${t+a},${n-a/2} L${t},${n} L${t-a},${n-a/2} Z`}),(0,N.jsx)("path",{d:`M${t-a},${n-a/2} L${t-a},${n+a/2} L${t},${n+a} L${t},${n}`}),(0,N.jsx)("path",{d:`M${t+a},${n-a/2} L${t+a},${n+a/2} L${t},${n+a}`}),[0,1,2].map(r=>(0,N.jsx)("line",{x1:t+a*.25,y1:n+a*.1+r*a*.22,x2:t+a*.75,y2:n-a*.15+r*a*.22},r))]})},HM=()=>(0,N.jsxs)(Lr,{label:"WORKLOAD",children:[(0,N.jsxs)("g",{fill:"currentColor",stroke:"none",children:[(0,N.jsx)("rect",{x:"62",y:"198",width:"34",height:"57",rx:"3"}),(0,N.jsx)("rect",{x:"110",y:"212",width:"34",height:"43",rx:"3"}),(0,N.jsx)("rect",{x:"158",y:"150",width:"34",height:"105",rx:"3"}),(0,N.jsx)("rect",{x:"206",y:"162",width:"34",height:"93",rx:"3"}),(0,N.jsx)("rect",{x:"254",y:"106",width:"34",height:"149",rx:"3"})]}),(0,N.jsx)("line",{x1:"52",y1:"268",x2:"298",y2:"268"}),(0,N.jsx)("circle",{cx:"44",cy:"268",r:"8"}),(0,N.jsx)("circle",{cx:"306",cy:"268",r:"8"}),(0,N.jsx)("polyline",{points:"70,170 158,100 198,124 282,46",strokeWidth:"12"}),(0,N.jsx)("polyline",{points:"248,44 286,42 284,80",strokeWidth:"12"}),(0,N.jsx)(Zs,{cx:130,cy:178,r:12})]}),BM=()=>(0,N.jsxs)(Lr,{label:"NETWORKING",children:[(0,N.jsx)("circle",{cx:"180",cy:"165",r:"130"}),(0,N.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"52"}),(0,N.jsx)("ellipse",{cx:"180",cy:"165",rx:"62",ry:"130"}),(0,N.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"60",transform:"rotate(35 180 165)",strokeDasharray:"10 10",strokeWidth:"3"}),(0,N.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"60",transform:"rotate(-35 180 165)",strokeDasharray:"10 10",strokeWidth:"3"}),[[50,165],[310,165],[180,35],[180,295],[242,98],[136,175],[210,222],[262,52],[100,78],[292,222]].map(([e,t],n)=>(0,N.jsx)("circle",{cx:e,cy:t,r:"10",fill:da},n))]}),$M=()=>(0,N.jsxs)(Lr,{label:"SECURITY",children:[(0,N.jsx)("rect",{x:"34",y:"26",width:"292",height:"254",strokeDasharray:"14 10",strokeWidth:"4"}),(0,N.jsx)(sn,{cx:34,cy:26}),(0,N.jsx)(sn,{cx:326,cy:26}),(0,N.jsx)(sn,{cx:34,cy:280}),(0,N.jsx)(sn,{cx:326,cy:280}),(0,N.jsx)("circle",{cx:"180",cy:"26",r:"8"}),(0,N.jsx)("circle",{cx:"180",cy:"280",r:"8"}),(0,N.jsx)("circle",{cx:"34",cy:"153",r:"8"}),(0,N.jsx)("circle",{cx:"326",cy:"153",r:"8"}),(0,N.jsx)("path",{d:"M180,52 C214,72 244,78 270,78 L270,160 C270,226 232,262 180,290 C128,262 90,226 90,160 L90,78 C116,78 146,72 180,52 Z"}),(0,N.jsx)("path",{d:"M180,72 C208,88 232,94 252,94 L252,160 C252,214 222,244 180,268 C138,244 108,214 108,160 L108,94 C128,94 152,88 180,72 Z",strokeWidth:"4"}),(0,N.jsx)("rect",{x:"142",y:"150",width:"76",height:"62",rx:"8"}),(0,N.jsx)("path",{d:"M156,150 V132 a24,24 0 0 1 48,0 V150"}),(0,N.jsx)("circle",{cx:"180",cy:"176",r:"7"}),(0,N.jsx)("line",{x1:"180",y1:"183",x2:"180",y2:"198"})]}),qM=()=>(0,N.jsxs)(Lr,{label:"CLUSTER",children:[(0,N.jsx)("circle",{cx:"180",cy:"168",r:"150",strokeDasharray:"12 10",strokeWidth:"4"}),[[110,102],[250,102],[110,236],[250,236]].map(([e,t],n)=>(0,N.jsxs)("g",{children:[(0,N.jsx)("line",{x1:e,y1:t,x2:e<180?70:290,y2:t,strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("circle",{cx:e<180?64:296,cy:t,r:"7"})]},n)),(0,N.jsx)("line",{x1:"180",y1:"130",x2:"180",y2:"206"}),(0,N.jsx)("line",{x1:"140",y1:"168",x2:"220",y2:"168"}),(0,N.jsx)(Pl,{cx:180,cy:92,s:40}),(0,N.jsx)(Pl,{cx:104,cy:168,s:40}),(0,N.jsx)(Pl,{cx:256,cy:168,s:40}),(0,N.jsx)(Pl,{cx:180,cy:236,s:40})]}),h1=()=>(0,N.jsxs)("g",{children:[(0,N.jsx)("circle",{cx:"180",cy:"62",r:"32",fill:da}),(0,N.jsx)("circle",{cx:"180",cy:"258",r:"32",fill:da}),(0,N.jsx)("rect",{x:"166",y:"86",width:"28",height:"148",rx:"10",fill:da}),(0,N.jsx)("rect",{x:"168",y:"22",width:"24",height:"38",rx:"3",fill:da}),(0,N.jsx)("rect",{x:"168",y:"260",width:"24",height:"38",rx:"3",fill:da}),(0,N.jsx)("rect",{x:"170",y:"16",width:"20",height:"12",fill:da,stroke:"none"}),(0,N.jsx)("rect",{x:"170",y:"292",width:"20",height:"12",fill:da,stroke:"none"})]}),UM=()=>(0,N.jsxs)(Lr,{label:"CONFIG",children:[(0,N.jsx)(sn,{cx:86,cy:86,r:52}),(0,N.jsx)(Zs,{cx:86,cy:86,r:20}),(0,N.jsx)(sn,{cx:274,cy:236,r:50}),(0,N.jsx)(Zs,{cx:274,cy:236,r:19}),(0,N.jsx)(sn,{cx:326,cy:96,r:16}),(0,N.jsx)(sn,{cx:34,cy:226,r:16}),(0,N.jsx)(sn,{cx:186,cy:24,r:14}),(0,N.jsx)("line",{x1:"150",y1:"24",x2:"170",y2:"24",strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"326",y1:"114",x2:"326",y2:"140",strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"34",y1:"192",x2:"34",y2:"208",strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("g",{transform:"rotate(45 180 160)",children:(0,N.jsx)(h1,{})}),(0,N.jsx)("text",{x:"20",y:"176",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"22",fill:"currentColor",stroke:"none",children:"101"}),(0,N.jsx)("text",{x:"296",y:"162",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"22",fill:"currentColor",stroke:"none",children:"101"})]}),YM=()=>(0,N.jsxs)(Lr,{label:"STORAGE",children:[[26,70,114].map((e,t)=>(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:"92",y:e,width:"176",height:"40",rx:"8"}),(0,N.jsx)("circle",{cx:"112",cy:e+20,r:"7"}),[0,1,2,3].map(n=>[0,1].map(a=>(0,N.jsx)("circle",{cx:210+n*14,cy:e+13+a*14,r:"2.5",fill:"currentColor",stroke:"none"},`${n}${a}`)))]},t)),(0,N.jsx)("line",{x1:"62",y1:"150",x2:"42",y2:"76"}),(0,N.jsx)("line",{x1:"298",y1:"150",x2:"318",y2:"76"}),(0,N.jsx)("rect",{x:"34",y:"154",width:"292",height:"36",rx:"18"}),(0,N.jsx)("path",{d:"M58,190 L94,302 L266,302 L302,190"}),(0,N.jsx)("line",{x1:"116",y1:"190",x2:"132",y2:"302",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"244",y1:"190",x2:"228",y2:"302",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"70",y1:"238",x2:"290",y2:"238",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"180",y1:"284",x2:"180",y2:"214"}),(0,N.jsx)("polyline",{points:"162,232 180,212 198,232"})]}),GM=()=>(0,N.jsxs)(Lr,{label:"CUSTOMIZATION",children:[(0,N.jsx)("g",{transform:"translate(180 160) rotate(-45) scale(0.8) translate(-180 -160)",children:(0,N.jsx)(h1,{})}),(0,N.jsxs)("g",{transform:"rotate(45 180 160)",children:[(0,N.jsx)("rect",{x:"170",y:"160",width:"20",height:"118",rx:"10"}),(0,N.jsx)("rect",{x:"162",y:"122",width:"36",height:"40",rx:"4"}),(0,N.jsx)("path",{d:"M162,122 C158,96 166,64 180,44 C194,64 202,96 198,122"}),(0,N.jsx)("line",{x1:"180",y1:"60",x2:"180",y2:"120",strokeWidth:"3"})]}),(0,N.jsx)("line",{x1:"262",y1:"150",x2:"318",y2:"150"}),(0,N.jsx)("circle",{cx:"300",cy:"150",r:"8",fill:da}),(0,N.jsx)("line",{x1:"262",y1:"184",x2:"318",y2:"184"}),(0,N.jsx)("circle",{cx:"276",cy:"184",r:"8",fill:da}),(0,N.jsx)(Zs,{cx:178,cy:36,r:10}),(0,N.jsx)(Zs,{cx:130,cy:262,r:12}),(0,N.jsx)(sn,{cx:32,cy:150}),(0,N.jsx)(sn,{cx:84,cy:160,r:14}),(0,N.jsx)(sn,{cx:48,cy:232}),(0,N.jsx)(sn,{cx:180,cy:268,r:14}),(0,N.jsx)(sn,{cx:292,cy:112,r:12}),(0,N.jsx)("circle",{cx:"34",cy:"36",r:"8"}),(0,N.jsx)("circle",{cx:"326",cy:"36",r:"8"}),(0,N.jsx)("circle",{cx:"34",cy:"270",r:"8"}),(0,N.jsx)("circle",{cx:"326",cy:"270",r:"8"}),(0,N.jsx)("line",{x1:"44",y1:"36",x2:"96",y2:"36",strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"264",y1:"36",x2:"316",y2:"36",strokeDasharray:"4 8",strokeWidth:"4"}),(0,N.jsx)("line",{x1:"44",y1:"270",x2:"96",y2:"270",strokeDasharray:"4 8",strokeWidth:"4"})]}),g1={access:$M,cluster:qM,config:UM,custom:GM,network:BM,storage:YM,workload:HM};var M=k(he(),1),Sa=(e,t,n)=>{if(!e.properties)return;let a=e.properties.find(r=>r.name===t);a&&(a.format="function",a.source=n)},h=(e,t,n,a,r)=>{let i=e.leftItems?.find(s=>s.name===t);i&&(i.onClick=n,a&&(i.isVisible=a),r&&(i.isEnabled=r))};function KM(e){let t=e.state??{};if(e.ready)return"green";if(t.terminated)return"gray";if(t.waiting){let n=t.waiting.reason??"";return["ContainerCreating","PodInitializing"].includes(n)?"orange":"red"}return"blue"}var y1=(e,t,n,a,r,i,s,o,l,c,d,m)=>{let f=(A,q)=>{let re=t.files.find(te=>te.path===A);re&&(re.children=q)},g=()=>{let A={msgtype:"magnifymessage",accessKey:n.accessString,instance:n.instanceId,id:at(),namespace:"",group:"",pod:"",container:"",command:"events",action:ji.EInstanceMessageAction.COMMAND,flow:ji.EInstanceMessageFlow.REQUEST,type:ji.EInstanceMessageType.DATA,channel:n.channelId,params:["cluster","","","","500"]};n.webSocket&&n.webSocket.send(JSON.stringify(A))},I=()=>t.clusterInfo?(0,M.jsx)(V.Box,{sx:{bgcolor:"background.default"},width:"100%",height:"100%",children:(0,M.jsx)(V.Card,{sx:{m:2,display:"flex",flexDirection:"column",height:"calc(100% - 55px)"},children:(0,M.jsxs)(V.CardContent,{sx:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",p:2},children:[(0,M.jsxs)(V.Stack,{direction:"row",justifyContent:"space-between",width:"100%",px:1,children:[(0,M.jsxs)(V.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Cluster:"})," ",n.clusterInfo?.name]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Version:"})," ",t.clusterInfo.major,".",t.clusterInfo.minor,"\xA0\xA0(",t.clusterInfo.gitVersion,")"]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Platform:"})," ",t.clusterInfo.platform]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:[(0,M.jsx)("b",{children:"Nodes:"})," ",t.files.filter(A=>A.class==="Node").length]})]}),(0,M.jsx)(V.Divider,{sx:{mt:1,mb:1}}),(0,M.jsx)(Ux,{channelObject:n}),(0,M.jsx)(V.Divider,{sx:{mt:1,mb:1}}),(0,M.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{summary:!0}}),(0,M.jsx)(V.Divider,{sx:{mt:1,mb:1}}),(0,M.jsxs)(V.Box,{sx:{flex:1,overflowY:"auto",ml:1,mr:1},children:[t.eventsProviderMissing&&(0,M.jsx)(V.Alert,{severity:"info",sx:{my:1},children:"The events provider is not installed in this cluster, so there are no cluster events to show. Install it from \u2630 \u2192 Manage extensions \u2192 Providers."}),(0,M.jsx)(V.Stack,{direction:"column",children:t.clusterEvents?.map((A,q)=>{let re=A.type?A.type[0]:"",te="--mui-palette-text-primary";return re==="W"&&(te="orange"),re==="E"&&(te="red"),(0,M.jsxs)(V.Stack,{direction:"row",children:[(0,M.jsx)(V.Typography,{variant:"body2",sx:{width:"5%",color:te},children:re}),(0,M.jsx)(V.Typography,{variant:"body2",sx:{width:"25%",color:te},children:A.eventTime||A.lastTimestamp||A.firstTimestamp}),(0,M.jsx)(V.Typography,{variant:"body2",sx:{width:"70%",color:te},children:A.message})]},q)})}),(0,M.jsxs)(V.Stack,{direction:"row",children:[(0,M.jsx)(V.Typography,{flexGrow:1}),(0,M.jsx)(V.Button,{onClick:g,children:"More Events"})]})]})]})})}):(0,M.jsx)(M.Fragment,{}),C=A=>{let q=A.path.replaceAll("/",""),re=g1[q];return(0,M.jsx)(V.Box,{width:"100%",height:"100%",sx:{bgcolor:"background.default",color:"text.secondary","--magnify-section-bg":te=>te.palette.background.default},display:"flex",justifyContent:"center",alignItems:"center",children:re&&(0,M.jsx)(re,{})})},L=()=>(0,M.jsxs)(V.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Status"}),(0,M.jsxs)(V.CardContent,{children:[(0,M.jsxs)(V.Typography,{variant:"body2",children:["Total CPU: ",t.files.filter(A=>A.class==="Node").reduce((A,q)=>A+ +q.data.origin.status.capacity.cpu,0)]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Total Memory: ",Us(t.files.filter(A=>A.class==="Node").reduce((A,q)=>A+Kn(q.data.origin.status.capacity.memory),0))]}),(0,M.jsx)(V.Typography,{mt:1}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Actual pods: ",t.files.filter(A=>A.class==="Pod").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Max pods: ",t.files.filter(A=>A.class==="Node").reduce((A,q)=>A+ +q.data.origin.status.capacity.pods,0)]})]})]}),(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Validations"}),(0,M.jsx)(V.CardContent,{children:(0,M.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{node:!0}})})]})]}),U=()=>(0,M.jsxs)(V.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Status"}),(0,M.jsxs)(V.CardContent,{children:[(0,M.jsxs)(V.Typography,{variant:"body2",children:["Pods: ",t.files.filter(A=>A.class==="Pod").length]}),(0,M.jsx)(V.Typography,{mt:1}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Deployments: ",t.files.filter(A=>A.class==="Deployment").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Daemon sets: ",t.files.filter(A=>A.class==="DaemonSet").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Replica sets: ",t.files.filter(A=>A.class==="ReplicaSet").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Replication Controllers: ",t.files.filter(A=>A.class==="ReplicationController").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Stateful sets: ",t.files.filter(A=>A.class==="StatefulSet").length]}),(0,M.jsx)(V.Typography,{mt:1}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Jobs: ",t.files.filter(A=>A.class==="Job").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Cron jobs: ",t.files.filter(A=>A.class==="CronJob").length]})]})]}),(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Validations"}),(0,M.jsx)(V.CardContent,{children:(0,M.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{replicaSet:!0,daemonSet:!0,deployment:!0,statefulSet:!0,job:!0}})})]})]}),oe=()=>(0,M.jsxs)(V.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Status"}),(0,M.jsxs)(V.CardContent,{children:[(0,M.jsxs)(V.Typography,{variant:"body2",children:["Services: ",t.files.filter(A=>A.class==="Service").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Ingresses: ",t.files.filter(A=>A.class==="Ingress").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Ingress classes: ",t.files.filter(A=>A.class==="IngressClass").length]})]})]}),(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Validations"}),(0,M.jsx)(V.CardContent,{children:(0,M.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{ingress:!0,service:!0}})})]})]}),de=()=>(0,M.jsxs)(V.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Status"}),(0,M.jsxs)(V.CardContent,{children:[(0,M.jsxs)(V.Typography,{variant:"body2",children:["ConfigMap: ",t.files.filter(A=>A.class==="ConfigMap").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Secret: ",t.files.filter(A=>A.class==="Secret").length]})]})]}),(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Validations"}),(0,M.jsx)(V.CardContent,{children:(0,M.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{configMap:!0,secret:!0}})})]})]}),B=()=>(0,M.jsxs)(V.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Status"}),(0,M.jsxs)(V.CardContent,{children:[(0,M.jsxs)(V.Typography,{variant:"body2",children:["Total SA's: ",t.files.filter(A=>A.class==="ServiceAccount").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Total Roles: ",t.files.filter(A=>A.class==="Role").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Total Cluster Roles: ",t.files.filter(A=>A.class==="ClusterRole").length]})]})]}),(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Validations"}),(0,M.jsx)(V.CardContent,{children:(0,M.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{role:!0,custerRole:!0}})})]})]}),ue=()=>(0,M.jsxs)(V.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Status"}),(0,M.jsxs)(V.CardContent,{children:[(0,M.jsxs)(V.Typography,{variant:"body2",children:["Total PV's: ",t.files.filter(A=>A.class==="PersistentVolume").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Total PVC's: ",t.files.filter(A=>A.class==="PersistentVolumeClaim").length]}),(0,M.jsxs)(V.Typography,{variant:"body2",children:["Total storage: ",Us(t.files.filter(A=>A.class==="PersistentVolumeClaim").reduce((A,q)=>A+q.data.size,0))]})]})]}),(0,M.jsxs)(V.Card,{sx:{m:1,flexShrink:0},children:[(0,M.jsx)(V.CardHeader,{title:"Validations"}),(0,M.jsx)(V.CardContent,{children:(0,M.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{volumeAttachment:!0}})})]})]}),R=()=>(0,M.jsx)(V.Box,{sx:{bgcolor:"background.default"},width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,children:(0,M.jsx)(p1,{preferences:t.userPreferences,files:t.files,onDataReload:ce,channelObject:n})}),ce=()=>{t.files=t.files.filter(A=>A.isDirectory&&A.path.split("/").length-1<=2),t.files=t.files.filter(A=>A.class!=="crdGroup"),t.currentPath="/overview",Nm(n)};f("/overview",I),f("/cluster",C),f("/workload",C),f("/config",C),f("/network",C),f("/storage",C),f("/access",C),f("/custom",C),f("/cluster/overview",L),f("/workload/overview",U),f("/network/overview",oe),f("/config/overview",de),f("/storage/overview",ue),f("/access/overview",B),f("/preferences",R);let Ce=a.get("classOverview");h(Ce,"create",()=>s("Pod"));let Te=Ia.items.find(A=>A.name==="pods");Te&&(Te.invoke=(A,q)=>{let re=A.kind,te=t.files.filter(me=>me.class==="Pod");return te=te.filter(me=>{let wt=!1;if(re==="Deployment"){let dt=me.data.origin.metadata.ownerReferences?.filter(At=>At.kind==="ReplicaSet")||[];if(dt&&dt.length>0){let At=t.files.find(Jr=>Jr.path===`/workload/ReplicaSet/${dt[0].name}:${A.metadata.namespace}`);wt=At&&At.data.origin.metadata.ownerReferences.some(Jr=>Jr.kind==="Deployment"&&Jr.name===A.metadata.name)}}else wt=me.data.origin.metadata.ownerReferences?.some(dt=>dt.kind===re&&dt.name===A.metadata.name)||!1;return wt}),te.map(me=>me.data.origin)});let z=A=>{let q=t.files.find(me=>A===me.path);if(!q||!q.data.origin.status?.containerStatuses)return(0,M.jsx)(M.Fragment,{});let re=[],te=(me,wt)=>{wt.map((dt,At)=>{re.push((0,M.jsx)(V.Box,{sx:{width:"8px",height:"8px",backgroundColor:KM(dt),margin:"1px",display:"inline-block"}},(me*1e3+At).toString()))})};return q.data.origin.status.initContainerStatuses&&q.data.origin.status.initContainerStatuses.length>0&&te(0,q.data.origin.status.initContainerStatuses),q.data.origin.status.containerStatuses&&q.data.origin.status.containerStatuses.length>0&&te(1,q.data.origin.status.containerStatuses),re},H=A=>{let q=t.files.find(te=>A===te.path);if(!q||!q.data?.origin?.status)return(0,M.jsx)(M.Fragment,{});let re=q.data.origin?.metadata?.deletionTimestamp?"Terminating":q.data.origin?.status.phase;return(0,M.jsx)(V.Typography,{color:re==="Running"?"green":re==="Terminating"?"blue":re==="Succeeded"?"gray":re==="Pending"?"orange":"red",fontSize:12,children:re})},le=a.get("classPod");h(le,"create",()=>s("Pod"));let Q=a.get("Pod");h(Q,"details",l),h(Q,"edit",c),h(Q,"delete",o),Sa(Q,"container",z),Sa(Q,"status",H);let Ee=A=>{let q=t.files.find(te=>A===te.path);if(!q)return;if(!q.data?.origin?.status?.conditions)return(0,M.jsx)(M.Fragment,{});let re=[];for(let te of q.data.origin.status.conditions)te.status==="True"&&re.push((0,M.jsx)(V.Typography,{fontSize:12,children:te.type},te.type));return(0,M.jsx)(V.Stack,{direction:"column",children:re})},ze=A=>{let q=t.files.find(te=>A===te.path);if(!q)return;let re=bl(q.data.origin.spec.schedule);return[`${re?.timeLeft.days}d${re?.timeLeft.hours}h${re?.timeLeft.minutes}m${re?.timeLeft.seconds}s`]},$e=A=>{let q=t.files.find(re=>A===re.path);if(q)return[`${q.data.origin.status?.active?.length||0}`]},It=a.get("classDeployment");h(It,"create",()=>s("Deployment"));let Dt=a.get("Deployment");h(Dt,"details",l),h(Dt,"edit",c),h(Dt,"delete",o);let ct=a.get("classDaemonSet");h(ct,"create",()=>s("DaemonSet"));let Zn=a.get("DaemonSet");h(Zn,"details",l),h(Zn,"edit",c),h(Zn,"delete",o);let E=a.get("classReplicaSet");h(E,"create",()=>s("ReplicaSet"));let ae=a.get("ReplicaSet");h(ae,"details",l),h(ae,"edit",c),h(ae,"delete",o);let ie=a.get("classReplicationController");h(ie,"create",()=>s("ReplicationController"));let Je=a.get("ReplicationController");h(Je,"details",l),h(Je,"edit",c),h(Je,"delete",o);let zt=a.get("classStatefulSet");h(zt,"create",()=>s("StatefulSet"));let bt=a.get("StatefulSet");h(bt,"details",l),h(bt,"edit",c),h(bt,"delete",o);let Fn=a.get("classJob");h(Fn,"create",()=>s("Job"));let He=a.get("Job");Sa(He,"conditions",Ee),h(He,"details",l),h(He,"edit",c),h(He,"delete",o);let xn=a.get("classCronJob");h(xn,"create",()=>s("CronJob"));let qa=a.get("CronJob");Sa(qa,"active",$e),Sa(qa,"nextExecution",ze),h(qa,"details",l),h(qa,"edit",c),h(qa,"delete",o);let Vr=fe.get("CronJob");if(Vr){let A=Vr.find(q=>q.name==="properties").items.find(q=>q.name==="nextExecution");A&&(A.invoke=(q,re)=>[bl(re.spec.schedule)?.isoString]),A=Vr.find(q=>q.name==="properties").items.find(q=>q.name==="timeLeft"),A&&(A.invoke=(q,re)=>{let te=bl(re.spec.schedule);return[`${te?.timeLeft.days}d${te?.timeLeft.hours}h${te?.timeLeft.minutes}m${te?.timeLeft.seconds}s`]}),A=Vr.find(q=>q.name==="history").items.find(q=>q.name==="jobs"),A&&(A.invoke=(q,re)=>{let te=t.files.filter(me=>me.class==="Job");return te=te.filter(me=>(me.data.origin.metadata.ownerReferences||[]).some(dt=>dt.name===re.metadata.name&&dt.kind==="CronJob")),te=te.map(me=>me.data.origin),te})}let Zt=a.get("Node");h(Zt,"details",l),h(Zt,"edit",c),h(Zt,"delete",o);let _n=a.get("V1APIResource");h(_n,"details",l),h(_n,"browse",d);let zn=a.get("Image");h(zn,"details",l),h(zn,"delete",o);let Ua=a.get("classClusterOverview");h(Ua,"search",m);let Wr=a.get("Namespace");h(Wr,"details",l),h(Wr,"edit",c),h(Wr,"delete",o),h(Wr,"search",m);let to=fe.get("Namespace");if(to){let A=(re,te,me)=>{let wt=te;te.includes("+")&&([te,wt]=te.split("+"));let dt=t.files.filter(At=>At.data?.origin?.kind===te&&At.data?.origin?.metadata.namespace===re)?.map(At=>At.data?.origin);return dt.length===0?(0,M.jsx)(M.Fragment,{}):(0,M.jsxs)(V.Stack,{flexDirection:"row",children:[(0,M.jsx)(V.Typography,{width:"13%",variant:"body2",children:wt}),(0,M.jsx)(V.Stack,{flexDirection:"column",children:dt.map((At,Jr)=>(0,M.jsx)(V.Typography,{variant:"body2",children:(0,M.jsx)("a",{href:"#",onClick:()=>me(te,At.metadata.name,At.metadata.namespace),children:At.metadata.name},Jr)}))})]})},q=to?.find(re=>re.name==="content")?.items.find(re=>re.name==="content");q&&(q.invoke=(re,te,me)=>["Pod","Deployment","DaemonSet","ReplicaSet","ReplicationController+RepController","StatefulSet","Job","CronJob","PersistentVolumeClaim+PVC","PersistentVolume+PV","ConfigMap","Secret","Service","Endpoints","Ingress","ServiceAccount+SrvAccnt","Role","RoleBinding"].map(wt=>A(te.metadata.name,wt,me)))}let ts=a.get("ComponentStatus");h(ts,"details",l),h(ts,"browse",d);let no=A=>{let q=t.files.find(re=>A===re.path);if(q)return q.data?.origin?.spec?.selector?(0,M.jsx)(V.Stack,{direction:"column",children:Object.keys(q.data.origin.spec.selector).map((re,te)=>(0,M.jsxs)(V.Typography,{fontSize:12,children:[re,"=",q?.data.origin.spec.selector[re]]},te))}):(0,M.jsx)(M.Fragment,{})},ao=a.get("classService");h(ao,"create",()=>s("Service"));let Ya=a.get("Service");Sa(Ya,"selector",no),h(Ya,"details",l),h(Ya,"edit",c),h(Ya,"delete",o);let kt=a.get("classEndpoints");h(kt,"create",()=>s("Endpoints"));let ns=a.get("Endpoints");h(ns,"details",l),h(ns,"edit",c),h(ns,"delete",o);let as=A=>{let q=t.files.find(re=>A===re.path);if(q)return q.data?.origin?.spec?.rules?(0,M.jsx)(V.Stack,{direction:"column",children:q.data.origin.spec.rules.map((re,te)=>re.http.paths.map((me,wt)=>(0,M.jsxs)(V.Typography,{fontSize:12,children:["http://",re.host,me.path,"\xA0\u2192\xA0",me.backend.service.name,":",me.backend.service.port.number]},te+"-"+wt)))}):(0,M.jsx)(M.Fragment,{})},ro=a.get("classIngress");h(ro,"create",()=>s("Ingress"));let Hr=a.get("Ingress");Sa(Hr,"rules",as),h(Hr,"details",l),h(Hr,"edit",c),h(Hr,"delete",o);let _l=a.get("classIngressClass");h(_l,"create",()=>s("IngressClass"));let Br=a.get("IngressClass");h(Br,"details",l),h(Br,"edit",c),h(Br,"delete",o);let io=fe.get("IngressClass");if(io){let A=io?.find(q=>q.name==="properties")?.items.find(q=>q.name==="ingresses");A&&(A.invoke=(q,re)=>{let te=t.files.filter(me=>me.path.startsWith("/network/Ingress/"));return te=te.filter(me=>me.data.origin.spec?.ingressClassName===q.metadata?.name||me.data.origin.metadata?.annotations?.["kubernetes.io/ingress.class"]===q.metadata?.name),te.map(me=>({name:me.data.origin.metadata.name,namespace:me.data.origin.metadata.namespace}))})}let zl=a.get("classNetworkPolicy");h(zl,"create",()=>s("NetworkPolicy"));let rs=a.get("NetworkPolicy");h(rs,"details",l),h(rs,"edit",c),h(rs,"delete",o);let Ll=a.get("classConfigMap");h(Ll,"create",()=>s("ConfigMap"));let pa=a.get("ConfigMap");h(pa,"details",l),h(pa,"edit",c),h(pa,"delete",o);let Ga=a.get("classSecret");h(Ga,"create",()=>s("Secret"));let Ae=a.get("Secret");h(Ae,"details",l),h(Ae,"edit",c),h(Ae,"delete",o);let Vl=a.get("classResourceQuota");h(Vl,"create",()=>s("ResourceQuota"));let $r=a.get("ResourceQuota");h($r,"details",l),h($r,"edit",c),h($r,"delete",o);let so=a.get("classLimitRange");h(so,"create",()=>s("LimitRange"));let qr=a.get("LimitRange");h(qr,"details",l),h(qr,"edit",c),h(qr,"delete",o);let oo=a.get("classHorizontalPodAutoscaler");h(oo,"create",()=>s("HorizontalPodAutoscaler"));let Ur=a.get("HorizontalPodAutoscaler");h(Ur,"details",l),h(Ur,"edit",c),h(Ur,"delete",o);let lo=a.get("classPodDisruptionBudget");h(lo,"create",()=>s("PodDisruptionBudget"));let Yr=a.get("PodDisruptionBudget");h(Yr,"details",l),h(Yr,"edit",c),h(Yr,"delete",o);let co=a.get("classPriorityClass");h(co,"create",()=>s("PriorityClass"));let is=a.get("PriorityClass");h(is,"details",l),h(is,"edit",c),h(is,"delete",o);let st=a.get("classRuntimeClass");h(st,"create",()=>s("RuntimeClass"));let ss=a.get("RuntimeClass");h(ss,"details",l),h(ss,"edit",c),h(ss,"delete",o);let Wl=a.get("classLease");h(Wl,"create",()=>s("Lease"));let Ka=a.get("Lease");h(Ka,"details",l),h(Ka,"edit",c),h(Ka,"delete",o);let Hl=a.get("classValidatingWebhookConfiguration");h(Hl,"create",()=>s("ValidatingWebhookConfiguration"));let Lt=a.get("ValidatingWebhookConfiguration");h(Lt,"details",l),h(Lt,"edit",c),h(Lt,"delete",o);let Xn=a.get("classMutatingWebhookConfiguration");h(Xn,"create",()=>s("MutatingWebhookConfiguration"));let bn=a.get("MutatingWebhookConfiguration");h(bn,"details",l),h(bn,"edit",c),h(bn,"delete",o);let uo=a.get("classPersistentVolumeClaim");h(uo,"create",()=>s("PersistentVolumeClaim"));let os=a.get("PersistentVolumeClaim");h(os,"details",l),h(os,"edit",c),h(os,"delete",o);let mo=fe.get("PersistentVolumeClaim");if(mo){let A=mo.find(q=>q.name==="properties").items.find(q=>q.name==="pods");A&&(A.invoke=(q,re)=>t.files.filter(dt=>dt.class==="Pod").filter(dt=>dt.data.origin.spec?.volumes?.some(At=>At.persistentVolumeClaim?.claimName===re.metadata.name)).map(dt=>dt.data.origin.metadata.name))}let Bl=a.get("classPersistentVolume");h(Bl,"create",()=>s("PersistentVolume"));let ls=a.get("PersistentVolume");h(ls,"details",l),h(ls,"edit",c),h(ls,"delete",o);let $l=a.get("classStorageClass");h($l,"create",()=>s("StorageClass"));let Ca=a.get("StorageClass");h(Ca,"details",l),h(Ca,"edit",c),h(Ca,"delete",o);let p=fe.get("StorageClass");if(p){let A=p.find(q=>q.name==="properties").items.find(q=>q.name==="pvs");A&&(A.invoke=(q,re)=>{let te=t.files.filter(me=>me.path.startsWith("/storage/PersistentVolume/"));return te=te.filter(me=>me.data.origin.spec?.storageClassName===q.metadata.name),te.map(me=>me.data.origin.metadata.name)}),A=p.find(q=>q.name==="properties").items.find(q=>q.name==="pvcs"),A&&(A.invoke=(q,re)=>{let te=t.files.filter(me=>me.path.startsWith("/storage/PersistentVolumeClaim/"));return te=te.filter(me=>me.data.origin.spec?.storageClassName===q.metadata.name),te.map(me=>({name:me.data.origin.metadata.name,namespace:me.data.origin.metadata.namespace}))})}let y=a.get("VolumeAttachment");h(y,"details",l),h(y,"browse",d);let b=a.get("CSIDriver");h(b,"details",l),h(b,"browse",d);let O=fe.get("CSIDriver");if(O){let A=O?.find(q=>q.name==="properties")?.items.find(q=>q.name==="storageClasses");A&&(A.invoke=(q,re,te)=>{let me=t.files.filter(wt=>wt.path.startsWith("/storage/StorageClass/"));return[(0,M.jsxs)(V.Stack,{flexDirection:"row",children:[(0,M.jsx)(V.Typography,{width:"13%",children:"StgClass"}),(0,M.jsx)(V.Stack,{flexDirection:"column",children:me.map((wt,dt)=>{if(wt.data.origin.provisioner===q.metadata?.name)return(0,M.jsx)("a",{href:"#",onClick:()=>te("StorageClass",wt.data.origin.metadata.name,""),children:wt.data.origin.metadata.name},dt)})})]})]})}let W=a.get("CSINode");h(W,"details",l),h(W,"browse",d);let $=a.get("CSIStorageCapacity");h($,"details",l),h($,"browse",d);let ee=a.get("classServiceAccount");h(ee,"create",()=>s("ServiceAccount"));let J=a.get("ServiceAccount");h(J,"details",l),h(J,"edit",c),h(J,"delete",o);let Gr=fe.get("ServiceAccount");if(Gr){let A=Gr.find(q=>q.name==="properties").items.find(q=>q.name==="tokens");A&&(A.invoke=(q,re)=>t.files.filter(me=>me.data?.origin?.metadata?.annotations&&me.data?.origin?.metadata?.namespace&&me.data?.origin?.metadata?.annotations["kubernetes.io/service-account.name"]==="kwirth-sa"&&me.data?.origin?.metadata?.namespace===re.metadata.namespace).map(me=>({name:me.data.origin.metadata.name,namespace:me.data.origin.metadata.namespace})))}let cs=a.get("classClusterRole");h(cs,"create",()=>s("ClusterRole"));let Kr=a.get("ClusterRole");h(Kr,"details",l),h(Kr,"edit",c),h(Kr,"delete",o);let ql=a.get("classRole");h(ql,"create",()=>s("Role"));let Ul=a.get("Role");h(Ul,"details",l),h(Ul,"edit",c),h(Ul,"delete",o);let D1=a.get("classClusterRoleBinding");h(D1,"create",()=>s("ClusterRoleBinding"));let Yl=a.get("ClusterRoleBinding");h(Yl,"details",l),h(Yl,"edit",c),h(Yl,"delete",o);let O1=a.get("classRoleBinding");h(O1,"create",()=>s("RoleBinding"));let Gl=a.get("RoleBinding");h(Gl,"details",l),h(Gl,"edit",c),h(Gl,"delete",o);let R1=a.get("classCustomResourceDefinition");h(R1,"create",()=>s("CustomResourceDefinition"));let Kl=a.get("CustomResourceDefinition");h(Kl,"details",l),h(Kl,"edit",c),h(Kl,"delete",o);let Jl=a.get("crdInstance");h(Jl,"details",l),h(Jl,"edit",c),h(Jl,"delete",o);let jl=a.get("crdNamespacedInstance");h(jl,"details",l),h(jl,"edit",c),h(jl,"delete",o)};var eo=k(Ot(),1);u();var fa=k(ft(),1);var x1=k(Kt(),1),on=k(he(),1),b1=e=>(0,on.jsx)(fa.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,on.jsxs)(fa.MenuList,{dense:!0,sx:{minWidth:140},children:[(0,on.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("ubuntu"),children:[(0,on.jsx)(rc,{size:"18"}),"\xA0Ubuntu"]}),(0,on.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("alpine"),children:[(0,on.jsx)(dd,{size:"18"}),"\xA0Alpine"]}),(0,on.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("dnsutils"),children:[(0,on.jsx)(fd,{size:"18"}),"\xA0DNS Utils"]}),(0,on.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("jubuntu"),children:[(0,on.jsx)(rc,{size:"18"}),"\xA0jUbuntu"]}),e.customActions&&e.customActions.filter(t=>t.type==="kube").map((t,n)=>(0,on.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected(t.name),children:[(0,on.jsx)(x1.Construction,{sx:{fontSize:"18px"}}),"\xA0",t.name]},n))]})});var k1=k(ft(),1);u();var Xi=k(ft(),1),w1=k(Kt(),1),Zi=k(he(),1),S1=e=>(0,Zi.jsx)(Xi.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,Zi.jsx)(Xi.MenuList,{dense:!0,sx:{minWidth:140},children:e.customActions.filter(t=>t.type==="kwirth").map((t,n)=>(0,Zi.jsxs)(Xi.MenuItem,{onClick:()=>e.onWorkSelected(t.name),children:[(0,Zi.jsx)(w1.Construction,{sx:{fontSize:"18px"}}),"\xA0",t.name]},n))})});var T1=k(Ot(),1);u();var we=k(ft(),1),$a=k(Dm(),1),Qi=k(Kt(),1),C1=k(je(),1);var Se=k(he(),1),v1=e=>{if(!(e.channelObject.isFullscreen===!0)||e.channelObject.isDesktop)return null;let[n,a]=(0,C1.useState)(!1),i=e.channelObject.data?.metricsCluster??[],s=i.map(C=>({value:C.cpuUsage})),o=i.map(C=>({value:C.memoryUsage})),l=i.map(C=>({value:C.txmbps+C.rxmbps||0})),c=i.length>0?i[i.length-1]:null,d=c?.cpuUsage??0,m=c?.memoryUsage??0,f=c?.txmbps??0,g=c?.rxmbps??0,I=e.channelObject.clusters??[];return(0,Se.jsxs)(we.AppBar,{position:"sticky",color:"default",elevation:1,sx:{zIndex:1300},children:[(0,Se.jsxs)(we.Toolbar,{sx:{gap:1.5},children:[(0,Se.jsx)(we.IconButton,{size:"small",onClick:()=>a(!0),children:(0,Se.jsx)(Qi.Menu,{fontSize:"small"})}),(0,Se.jsxs)(we.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,Se.jsx)(Qi.Search,{}),(0,Se.jsx)(we.Typography,{variant:"h6",sx:{fontWeight:700,color:"#f5820a"},children:"Kwirth"}),(0,Se.jsxs)(we.Box,{sx:{display:"flex",alignItems:"baseline",gap:1},children:[(0,Se.jsx)(we.Typography,{variant:"h6",sx:{fontWeight:700},children:"Magnify"}),e.channelObject.clusterName&&(0,Se.jsxs)(we.Typography,{variant:"subtitle1",sx:{fontWeight:600,color:"text.secondary"},children:["\xB7 ",e.channelObject.clusterName]})]})]}),(0,Se.jsx)(we.Box,{sx:{flex:1}}),(0,Se.jsx)(we.Tooltip,{title:`${(d||0).toFixed(2)}%`,children:(0,Se.jsxs)(we.Stack,{direction:"column",alignItems:"center",mr:"2px",children:[(0,Se.jsx)(we.Typography,{fontSize:8,mb:-1,children:"CPU"}),(0,Se.jsx)($a.AreaChart,{width:120,height:20,data:s,margin:{top:0,right:0,bottom:0,left:0},children:(0,Se.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#8884d8",strokeWidth:2,dot:!1,fill:"#bbbbdd"})})]})}),(0,Se.jsx)(we.Tooltip,{title:`${(m||0).toFixed(2)}%`,children:(0,Se.jsxs)(we.Stack,{direction:"column",alignItems:"center",mr:"2px",children:[(0,Se.jsx)(we.Typography,{fontSize:8,mb:-1,children:"Mem"}),(0,Se.jsx)($a.AreaChart,{width:120,height:20,data:o,margin:{top:0,right:0,bottom:0,left:0},children:(0,Se.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#d88488",strokeWidth:2,dot:!1,fill:"#ddbbbb"})})]})}),(0,Se.jsx)(we.Tooltip,{title:`${(f||0).toFixed(2)}Mbps / ${(g||0).toFixed(2)}Mbps`,children:(0,Se.jsxs)(we.Stack,{direction:"column",alignItems:"center",children:[(0,Se.jsx)(we.Typography,{fontSize:8,mb:-1,children:"Net"}),(0,Se.jsx)($a.AreaChart,{width:120,height:20,data:l,margin:{top:0,right:0,bottom:0,left:0},children:(0,Se.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#88d884",strokeWidth:2,dot:!1,fill:"#bbddbb"})})]})}),e.channelObject.clusterUrl&&(0,Se.jsx)(we.Typography,{variant:"caption",color:"text.secondary",sx:{ml:1},children:e.channelObject.clusterUrl}),(0,Se.jsx)(we.Tooltip,{title:"Exit fullscreen",children:(0,Se.jsx)(we.IconButton,{size:"small",onClick:()=>e.channelObject.exitFullscreen?.(),children:(0,Se.jsx)(Qi.FullscreenExit,{fontSize:"small"})})})]}),(0,Se.jsx)(we.Drawer,{anchor:"left",open:n,onClose:()=>a(!1),children:(0,Se.jsxs)(we.Box,{sx:{width:250},children:[(0,Se.jsx)(we.Typography,{variant:"subtitle1",sx:{fontWeight:700,px:2,py:1.5},children:"Clusters"}),(0,Se.jsx)(we.Divider,{}),(0,Se.jsxs)(we.List,{dense:!0,children:[I.map(C=>{let L=C.home?!0:!!C.reachable;return(0,Se.jsxs)(we.ListItemButton,{disabled:!L,selected:C.name===e.channelObject.clusterName,onClick:()=>{e.channelObject.switchCluster?.(C.name),a(!1)},children:[(0,Se.jsx)(we.ListItemIcon,{sx:{minWidth:28},children:(0,Se.jsx)(we.Box,{sx:{width:12,height:12,borderRadius:"50%",bgcolor:Yg(C.name).dot,flexShrink:0}})}),(0,Se.jsx)(we.ListItemText,{primary:C.name,secondary:C.home?"home":void 0})]},C.name)}),I.length===0&&(0,Se.jsx)(we.ListItemText,{primary:"No clusters",sx:{px:2,color:"text.secondary"}})]})]})})]})};var X=k(he(),1),JM=e=>{let t=(0,Xe.useRef)(null);return e.title?(0,X.jsxs)(_e.Dialog,{open:!0,onClose:()=>{e.onClose(),e.onResult?.(void 0)},children:[(0,X.jsx)(_e.DialogTitle,{children:e.title}),(0,X.jsx)(_e.DialogContent,{children:(0,X.jsxs)(_e.Stack,{sx:{mt:2},direction:"column",children:[typeof e.message=="string"?(0,X.jsx)(_e.Typography,{component:"div",sx:{ml:2},children:(0,X.jsx)("div",{dangerouslySetInnerHTML:{__html:e.message}})}):e.message,(0,X.jsx)(_e.TextField,{inputRef:t,sx:{width:e.width},defaultValue:e.default},e.message?.toString())]})}),(0,X.jsxs)(_e.DialogActions,{children:[(0,X.jsx)(_e.Button,{onClick:()=>{e.onClose(),e.onResult?.(t.current?.value)},children:"ok"}),(0,X.jsx)(_e.Button,{onClick:()=>e.onClose(),children:"cancel"})]})]}):null},Xs=xl(),jM={ContentDetails:(0,X.jsx)(td,{}),ArtifactSearch:(0,X.jsx)(yn.Search,{}),LogSearchPanel:(0,X.jsx)(yn.Search,{}),ContentEdit:(0,X.jsx)(yn.Edit,{}),ContentBrowse:(0,X.jsx)(Vn,{})},M1=e=>{let t=(0,k1.useTheme)(),n=e.channelObject.data,a={create:!1,delete:!1,download:!1,copy:!1,move:!1,rename:!1,upload:!1},[r,i]=(0,Xe.useState)(0),s=(0,Xe.useRef)(null),o=(0,Xe.useRef)(null),l=(0,Xe.useRef)(null),[c,d]=(0,Xe.useState)(0),[m,f]=(0,Xe.useState)((0,X.jsx)(X.Fragment,{})),[g,I]=(0,Xe.useState)(),[C,L]=(0,Xe.useState)(),[U,oe]=(0,Xe.useState)(),[de,B]=(0,Xe.useState)(),[ue,R]=(0,Xe.useState)(),[ce,Ce]=(0,Xe.useState)(),[Te,z]=(0,Xe.useState)(),[H,le]=(0,Xe.useState)(),[Q,Ee]=(0,Xe.useState)(""),[ze,$e]=(0,Xe.useState)(!1),[It,Dt]=(0,Xe.useState)(void 0),[,ct]=(0,Xe.useState)(0),Zn=(p,y)=>{let b=ie.find(W=>W.key===p);if(!b)return!0;let O=!0;switch(p){case"Node":O=b.selected.includes("all")||b.selected.some(W=>y.data?.origin?.spec?.nodeName?.includes(W));break;case"Namespace":O=b.selected.includes("all")||b.selected.some(W=>y.data?.origin?.metadata?.namespace===W);break;case"controller":O=b.selected.includes("all")||b.selected.some(W=>y.data?.origin?.metadata?.ownerReferences?.[0]?.kind===W);break}return O},E=p=>{let y=ie.find(b=>b.key===p);return y?!(y.selected.length===1&&y.selected[0]==="all"):!1},ae=(p,y,b)=>{let O=ie.find(W=>W.key===p);O&&(y==="all"?b=["all"]:y!=="all"&&b.length===2&&b.includes("all")?b=b.filter(W=>W!=="all"):b.length===0&&(b=["all"]),O.selected=b,n.selectedCategories||(n.selectedCategories={}),n.selectedCategories[p]=b,Je([...ie]))},[ie,Je]=(0,Xe.useState)([{key:"Node",text:"Node",all:[{key:"all",text:"All..."},{key:"-"}],selected:n.selectedCategories?.Node??["all"],onCategoryValuesChange:ae,onCategoryFilter:Zn,isFilterActive:E},{key:"Namespace",text:"Namespace",all:[{key:"all",text:"All..."},{key:"-"}],selected:n.selectedCategories?.Namespace??["all"],onCategoryValuesChange:ae,onCategoryFilter:Zn,isFilterActive:E},{key:"controller",text:"Controller",all:[{key:"all",text:"All..."},{key:"-"},{key:"ReplicaSet"},{key:"DaemonSet"},{key:"StatefulSet"},{key:"ReplicationController"},{key:"Job"}],selected:n.selectedCategories?.controller??["all"],onCategoryValuesChange:ae,onCategoryFilter:Zn,isFilterActive:E}]),zt=p=>{switch(p){case"exit":return(0,X.jsx)(yn.ExitToApp,{sx:{color:"gray"}});case"notifications":return e.channelObject.notifications.length>0?(0,X.jsx)(yn.NotificationsActive,{sx:{color:"success.main"}}):(0,X.jsx)(yn.Notifications,{sx:{color:"text.disabled"}});case"cloud":return e.channelObject.webSocket?.readyState===1?(0,X.jsx)(_e.Tooltip,{title:(0,X.jsxs)("div",{style:{textAlign:"center"},children:["Communications to",(0,X.jsx)("br",{})," Kwirth backend are ok"]}),children:(0,X.jsx)(yn.CloudQueue,{sx:{color:"success.main"}})}):(0,X.jsx)(_e.Tooltip,{title:(0,X.jsxs)("div",{style:{textAlign:"center"},children:["Communications to Kwirth backend",(0,X.jsx)("br",{}),"have been interrupted.",(0,X.jsx)("br",{}),"You need to exit cluster and reenter."]}),children:(0,X.jsx)(ed,{sx:{color:"error.main",animation:"blink 1.5s infinite","@keyframes blink":{"0%":{opacity:1},"50%":{opacity:.1},"100%":{opacity:1}}}})})}},bt=(p,y)=>{switch(p){case"exit":f((0,vt.MsgBoxYesNo)("Exit cluster","Are you sure you want to leave this cluster and go back to initial cluster selection?",f,b=>{b===vt.MsgBoxButtons.Yes&&e.channelObject.exit?.()}));break;case"notifications":Dt(y);break;case"cloud":e.channelObject.webSocket?.readyState!==1&&f((0,vt.MsgBoxYesNo)("Reconnect Kwirth","Kwirth has been disconnected. Do you want to reconnect?",f,b=>{}));break}},Fn=[{name:"cloud",onClick:(p,y)=>bt(p,y),onDraw:p=>zt(p)},{name:"notifications",onClick:(p,y)=>bt(p,y),onDraw:p=>zt(p)},{name:"exit",onClick:(p,y)=>bt(p,y),onDraw:p=>zt(p)}];(0,Xe.useLayoutEffect)(()=>{let p=new ResizeObserver(()=>{requestAnimationFrame(()=>{if(!s.current)return;let{top:y}=s.current.getBoundingClientRect();i(window.innerHeight-y)})});return p.observe(document.body),()=>p.disconnect()},[]),(0,Xe.useLayoutEffect)(()=>{l.current&&d(l.current.getBoundingClientRect().top)},[n.started]),(0,Xe.useEffect)(()=>{e.channelObject.setPalette?.(n.userPreferences?.palette),n.files.some(b=>b.path==="/overview")||n.files.push(...pd),y1(t,n,e.channelObject,_,Ka,is,Wr,ts,Ua,no,ao,ns),_l(),io(),Hr(),zl(),Ll(),n.refreshUsage=()=>ct(b=>b+1);let p=ie.find(b=>b.key==="Namespace");if(p)for(let b of n.files.filter(O=>O.data?.origin?.kind==="Namespace"))p.all.some(O=>O.key===b.name)||p.all.push({key:b.name,text:b.name});let y=ie.find(b=>b.key==="Node");if(y)for(let b of n.files.filter(O=>O.data?.origin?.kind==="Node"))y.all.some(O=>O.key===b.name)||y.all.push({key:b.name,text:b.name});return n.updateCategoryValues=(b,O,W)=>{let $=ie.find(ee=>ee.key===b);$&&(O==="DELETED"?$.all=$.all.filter(ee=>ee.key!==W):$.all.some(ee=>ee.key===W)||$.all.push({key:W}))},()=>{z(void 0)}},[]);let He=(p,y,b)=>{z(void 0),b==="*all"?kt(p,[y],mt.EInstanceConfigView.POD,void 0,void 0):kt(p,[y],mt.EInstanceConfigView.CONTAINER,void 0,b)},xn=p=>{if(p.onReady==="shell"&&!so())return;let y=Xs.load(p.podYaml);st("apply",[p.podYaml]);let b=p.url;if(p.onReady==="http"||p.onReady==="https"){p.forward&&(b="http://localhost:3000/kwirth/port-forward/pod/default/galaga/80");let O=window.setInterval(async()=>{try{let W=await fetch(b);W.status>=200&&W.status<400&&(clearInterval(O),f((0,X.jsx)(X.Fragment,{})))}catch(W){console.log(W)}},1e3);f((0,vt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the ${p.name} work to start (waiting for... ${b})...`,f,W=>{W===vt.MsgBoxButtons.Cancel&&clearInterval(O)}))}else if(p.onReady==="shell"){let O=window.setInterval(async()=>{try{let W=n.files.find($=>$.class==="Pod"&&$.data.origin.metadata.namespace===(y.metadata.namespace||"default")&&$.data.origin.metadata.name===y.metadata.name);W&&W.data.origin.status.phase==="Running"&&(clearInterval(O),f((0,X.jsx)(X.Fragment,{})),kt("ops",[W],mt.EInstanceConfigView.CONTAINER,void 0,W.data.origin.spec.containers[0].name))}catch(W){console.log(W)}},1e3);f((0,vt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the ${p.name} work to start (waiting for shell)...`,f,W=>{W===vt.MsgBoxButtons.Cancel&&clearInterval(O)}))}},qa=p=>{R(void 0);let y=n.userPreferences.customActions.find(b=>b.name===p);y?xn(y):st("Pod",["work",p])},Vr=p=>{let y=n.userPreferences.customActions.find(b=>b.name===p);y&&xn(y)},Zt=p=>{n.windows.forEach(b=>b.atFront=!1);let y=n.windows.find(b=>b.id===p);if(y){y.visible=!0,y.atFront=!0,ct(b=>b+1);return}},_n=p=>{n.windows.forEach(y=>y.atFront=!1),n.windows.push(p),ct(y=>y+1)},zn=(p,y,b,O,W,$)=>{let ee=n.windows.find(J=>J.id===p);ee&&(ee.isMaximized=y,ee.x=b,ee.y=O,ee.width=W,ee.height=$)},Ua=(p,y)=>{let b=n.files.filter($=>p.includes($.path)),O=fe.get(b[0].data.origin.kind);b[0].path.startsWith("/custom/")&&!b[0].path.startsWith("/custom/CustomResourceDefinition/")&&(O=fe.get("#crdInstance#"));let W=n.windows.find($=>$.selectedFiles.find(ee=>ee.path===b[0].path)&&$.class==="ContentDetails");if(W)Zt(W.id);else{let $=_.get(b[0].data.origin.kind),ee={id:"details-"+b[0].path+"-"+at(),class:"ContentDetails",visible:!0,atTop:!1,atFront:!0,title:b[0].data.origin.metadata?.name,isMaximized:!1,x:100,y:50,width:800,height:600,data:{source:b[0],path:b[0].path,sections:O,actions:$&&$.leftItems?$.leftItems:[],onApply:mo,onAction:Bl,onLink:Ka,containerSelectionOptions:new Map([["log",2],["metrics",2],["fileman",2],["trivy",0],["topology",0],["ops",1],["evict",0],["cordon",0],["uncordon",0],["drain",0],["scale",0],["restart",0],["trigger",0],["suspend",0],["resume",0]])},selectedFiles:[b[0]],onWindowChange:zn,onMinimize:Xn,onTop:bn,onClose:Lt};_n(ee)}b[0].data.origin.metadata&&(b[0].data.events&&delete b[0].data.events,st("events",["object",b[0].data.origin.metadata.namespace,b[0].data.origin.kind,b[0].data.origin.metadata.name]))},Wr=p=>{let y=(Ne.get(p)||`apiVersion: v1
804
804
  Kind: ${p}
805
- ejemplo: true`).trim(),b="create-"+p+"-"+it(),T={id:b,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Create "+p,isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:(V,W)=>{lt("apply",[V]),Vt(b)},code:y,oldCode:void 0},onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt,selectedFiles:[]};_n(T)},to=()=>{let p="add-resources-"+it();_n({id:p,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Add resources",isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:T=>{let V=[];try{Xs.loadAll(T,W=>{W&&V.push(Xs.dump(W,{indent:2}))})}catch(W){e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.ERROR,"Invalid YAML: "+(W?.message??W));return}if(V.length===0){e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.WARNING,"No resources found in the provided YAML");return}lt("apply",V),Vt(p)},code:`# Paste one or more Kubernetes resources here.
805
+ ejemplo: true`).trim(),b="create-"+p+"-"+at(),O={id:b,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Create "+p,isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:(W,$)=>{st("apply",[W]),Lt(b)},code:y,oldCode:void 0},onWindowChange:zn,onTop:bn,onMinimize:Xn,onClose:Lt,selectedFiles:[]};_n(O)},to=()=>{let p="add-resources-"+at();_n({id:p,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Add resources",isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:O=>{let W=[];try{Xs.loadAll(O,$=>{$&&W.push(Xs.dump($,{indent:2}))})}catch($){e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.ERROR,"Invalid YAML: "+($?.message??$));return}if(W.length===0){e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.WARNING,"No resources found in the provided YAML");return}st("apply",W),Lt(p)},code:`# Paste one or more Kubernetes resources here.
806
806
  # Separate multiple resources with a line containing only:
807
807
  # ---
808
- `,oldCode:void 0},onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt,selectedFiles:[]})},es=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length>0&&(y[0].class==="Image"?f((0,Tt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,Q.jsxs)(Le.Box,{children:["Are you sure you want to delete image ",(0,Q.jsx)("b",{children:y[0].displayName}),p.length>1?` (and other ${p.length-1} items)`:""," (take into account that removing images is an asynchronous process (a DaemonSet in fact) and may take up to 30 seconds)?"]}),f,b=>{b===Tt.MsgBoxButtons.Yes&&lt("Image",["delete",...y.map(T=>T.data.origin.metadata.name)])})):f((0,Tt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,Q.jsxs)(Le.Box,{children:["Are you sure you want to delete ",y[0].data.origin.kind,(0,Q.jsxs)("b",{children:[" ",y[0].displayName]}),p.length>1?` (and other ${p.length-1} items)`:"","?"]}),f,b=>{b===Tt.MsgBoxButtons.Yes&&lt("delete",y.map(T=>Xs.dump(T.data.origin,{indent:2})))})))},no=p=>Ya(p,!0),ao=p=>Ya(p,!1),Ya=(p,y)=>{let b=n.files.filter(W=>p.includes(W.path)),T=(y?"edit-":"browse-")+b[0].path+"-"+it(),V={id:T,class:y?"ContentEdit":"ContentBrowse",visible:!0,atTop:!1,atFront:!0,title:(y?"Edit ":"Browse ")+b[0].name,isMaximized:!1,x:100,y:50,width:800,height:600,data:{allowEdit:y,onOk:(W,ee)=>{lt("apply",[W]),Vt(T)},isInitialized:!1,code:void 0,oldCode:void 0},selectedFiles:[b[0]],onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt};_n(V)},Ct=(p,y,b,T,V)=>{let W=800,ee=600;p==="trivy"&&(W=window.innerWidth*.9,ee=window.innerHeight*.9),p==="pinocchio"&&(W=window.innerWidth*.9,ee=window.innerHeight*.8),p==="topology"&&(W=window.innerWidth*.9,ee=window.innerHeight*.9);let J={id:"external-"+p+"-"+it(),class:"ContentExternal",visible:!0,atTop:!1,atFront:!0,title:y.length>0?y[0].data.origin.metadata.name+(V||""):p==="pinocchio"?"Pinocchio":p==="topology"?"Topology":p.charAt(0).toUpperCase()+p.slice(1),isMaximized:!1,x:100,y:50,width:W,height:ee,data:{isInitialized:!1,isDesktop:e.channelObject.isDesktop,channelObject:e.channelObject,settings:n.userPreferences,channelId:p,contentView:b,frontChannels:e.channelObject.frontChannels,onNotify:os,onRefresh:Wl,onOpenExternal:Ct,formConfig:void 0,options:p==="ops"||p==="pinocchio"?{autostart:!0,pauseable:!1,stoppable:!1,configurable:!1,data:T}:{autostart:!0,pauseable:!0,stoppable:!0,configurable:p!=="fileman",data:T}},selectedFiles:y,container:V,onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt};_n(J)},ts=p=>{let y=n.files.filter(W=>p.includes(W.path)),b=[],T;p[0]==="/cluster/overview"?(T=":cluster:",b=n.files):(T=y[0].data.origin.metadata.name,b=n.files.filter(W=>W.data?.origin?.metadata.namespace===y[0].data.origin.metadata.name));let V={id:"search-"+T+"-"+it(),class:"ArtifactSearch",visible:!0,atTop:!1,atFront:!0,title:"Search...",isMaximized:!1,x:100,y:50,width:800,height:600,data:{scope:T,selectedFiles:b,onLink:Ka,searchText:"",includeStatus:!1,merge:!0,matchCase:!1},selectedFiles:[y[0]],onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt};_n(V)},ns=(p,y,b)=>{n.logSearchResults=[],n.logSearchDone=!0;let T={id:"logsearch-"+it(),class:"LogSearchPanel",visible:!0,atTop:!1,atFront:!0,title:"Log Search",isMaximized:!1,x:120,y:60,width:700,height:500,data:{namespaces:p,pods:y,scopeLabel:b??"Cluster",onOpenLog:(V,W,ee)=>{let J={name:W,isDirectory:!1,path:`/workload/Pod/${V}/${W}`,data:{origin:{metadata:{name:W,namespace:V},kind:"Pod"}}};Ct("log",[J],mt.EInstanceConfigView.CONTAINER,void 0,ee)},clusterName:e.channelObject.clusterName,accessString:e.channelObject.accessString,instanceId:e.channelObject.instanceId},selectedFiles:[],onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt};_n(T)};{let p=new Set(["search","logsearch","add"]),y=P.get("classClusterOverview"),b=Array.from(e.channelObject.frontChannels?.keys()??[]).filter(T=>T==="magnify"?!1:e.channelObject.backChannels?.find(W=>W.id===T)?.cluster===!0);y.leftItems=y.leftItems.filter(T=>!T.name||p.has(T.name)||b.includes(T.name));for(let T of b){if(!y.leftItems.some(W=>W.name===T)){let W=e.channelObject.frontChannels.get(T),ee=(0,Ca.createChannelInstance)(W);y.leftItems.push({name:T,icon:(0,Ca.getChannelIconOf)(ee??void 0,T),text:T.charAt(0).toUpperCase()+T.slice(1),permission:!0})}let V=y.leftItems.find(W=>W.name===T);V.onClick=W=>Ct(T,[],mt.EInstanceConfigView.CLUSTER,void 0,void 0)}}let ro=P.get("classOverview");g(ro,"kwirthworks",(p,y)=>ve(y),()=>!0,()=>n.userPreferences?.customActions&&n.userPreferences.customActions.filter(p=>p.type==="kwirth").length>0),g(ro,"kubeworks",(p,y)=>R(y)),g(P.get("classClusterOverview"),"logsearch",()=>ns(void 0,void 0,"Cluster")),g(P.get("classClusterOverview"),"add",()=>to());let Hr=()=>{let p=P.get("classClusterOverview"),y=P.get("Node");g(y,"shell",qr,()=>e.channelObject.frontChannels?.has("ops")??!1),g(y,"cordon",oo),g(y,"uncordon",Ur),g(y,"drain",$r);let b=P.get("Namespace");g(b,"log",V=>{let W=n.files.filter(ee=>V.includes(ee.path));Ct("log",W,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("log")??!1),g(b,"metrics",V=>{let W=n.files.filter(ee=>V.includes(ee.path));Ct("metrics",W,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("metrics")??!1),g(b,"fileman",V=>{let W=n.files.filter(ee=>V.includes(ee.path));Ct("fileman",W,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("fileman")??!1),g(b,"trivy",V=>{let W=n.files.filter(ee=>V.includes(ee.path));Ct("trivy",W,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("trivy")??!1),g(b,"topology",V=>{let W=n.files.filter(ee=>V.includes(ee.path));Ct("topology",W,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("topology")??!1),g(b,"logsearch",V=>{let ee=n.files.filter(J=>V.includes(J.path))[0]?.data?.origin?.metadata?.name;ee&&ns([ee],void 0,`Namespace: ${ee}`)});let T=P.get("classNamespace");g(T,"create",V=>{H(()=>W=>{if(W){let ee=`
808
+ `,oldCode:void 0},onWindowChange:zn,onTop:bn,onMinimize:Xn,onClose:Lt,selectedFiles:[]})},ts=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length>0&&(y[0].class==="Image"?f((0,vt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,X.jsxs)(_e.Box,{children:["Are you sure you want to delete image ",(0,X.jsx)("b",{children:y[0].displayName}),p.length>1?` (and other ${p.length-1} items)`:""," (take into account that removing images is an asynchronous process (a DaemonSet in fact) and may take up to 30 seconds)?"]}),f,b=>{b===vt.MsgBoxButtons.Yes&&st("Image",["delete",...y.map(O=>O.data.origin.metadata.name)])})):f((0,vt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,X.jsxs)(_e.Box,{children:["Are you sure you want to delete ",y[0].data.origin.kind,(0,X.jsxs)("b",{children:[" ",y[0].displayName]}),p.length>1?` (and other ${p.length-1} items)`:"","?"]}),f,b=>{b===vt.MsgBoxButtons.Yes&&st("delete",y.map(O=>Xs.dump(O.data.origin,{indent:2})))})))},no=p=>Ya(p,!0),ao=p=>Ya(p,!1),Ya=(p,y)=>{let b=n.files.filter($=>p.includes($.path)),O=(y?"edit-":"browse-")+b[0].path+"-"+at(),W={id:O,class:y?"ContentEdit":"ContentBrowse",visible:!0,atTop:!1,atFront:!0,title:(y?"Edit ":"Browse ")+b[0].name,isMaximized:!1,x:100,y:50,width:800,height:600,data:{allowEdit:y,onOk:($,ee)=>{st("apply",[$]),Lt(O)},isInitialized:!1,code:void 0,oldCode:void 0},selectedFiles:[b[0]],onWindowChange:zn,onTop:bn,onMinimize:Xn,onClose:Lt};_n(W)},kt=(p,y,b,O,W)=>{let $=800,ee=600;p==="trivy"&&($=window.innerWidth*.9,ee=window.innerHeight*.9),p==="pinocchio"&&($=window.innerWidth*.9,ee=window.innerHeight*.8),p==="topology"&&($=window.innerWidth*.9,ee=window.innerHeight*.9);let J={id:"external-"+p+"-"+at(),class:"ContentExternal",visible:!0,atTop:!1,atFront:!0,title:y.length>0?y[0].data.origin.metadata.name+(W||""):p==="pinocchio"?"Pinocchio":p==="topology"?"Topology":p.charAt(0).toUpperCase()+p.slice(1),isMaximized:!1,x:100,y:50,width:$,height:ee,data:{isInitialized:!1,isDesktop:e.channelObject.isDesktop,channelObject:e.channelObject,settings:n.userPreferences,channelId:p,contentView:b,frontChannels:e.channelObject.frontChannels,onNotify:ls,onRefresh:Hl,onOpenExternal:kt,formConfig:void 0,options:p==="ops"||p==="pinocchio"?{autostart:!0,pauseable:!1,stoppable:!1,configurable:!1,data:O}:{autostart:!0,pauseable:!0,stoppable:!0,configurable:p!=="fileman",data:O}},selectedFiles:y,container:W,onWindowChange:zn,onTop:bn,onMinimize:Xn,onClose:Lt};_n(J)},ns=p=>{let y=n.files.filter($=>p.includes($.path)),b=[],O;p[0]==="/cluster/overview"?(O=":cluster:",b=n.files):(O=y[0].data.origin.metadata.name,b=n.files.filter($=>$.data?.origin?.metadata.namespace===y[0].data.origin.metadata.name));let W={id:"search-"+O+"-"+at(),class:"ArtifactSearch",visible:!0,atTop:!1,atFront:!0,title:"Search...",isMaximized:!1,x:100,y:50,width:800,height:600,data:{scope:O,selectedFiles:b,onLink:Ka,searchText:"",includeStatus:!1,merge:!0,matchCase:!1},selectedFiles:[y[0]],onWindowChange:zn,onTop:bn,onMinimize:Xn,onClose:Lt};_n(W)},as=(p,y,b)=>{n.logSearchResults=[],n.logSearchDone=!0;let O={id:"logsearch-"+at(),class:"LogSearchPanel",visible:!0,atTop:!1,atFront:!0,title:"Log Search",isMaximized:!1,x:120,y:60,width:700,height:500,data:{namespaces:p,pods:y,scopeLabel:b??"Cluster",onOpenLog:(W,$,ee)=>{let J={name:$,isDirectory:!1,path:`/workload/Pod/${W}/${$}`,data:{origin:{metadata:{name:$,namespace:W},kind:"Pod"}}};kt("log",[J],mt.EInstanceConfigView.CONTAINER,void 0,ee)},clusterName:e.channelObject.clusterName,accessString:e.channelObject.accessString,instanceId:e.channelObject.instanceId},selectedFiles:[],onWindowChange:zn,onTop:bn,onMinimize:Xn,onClose:Lt};_n(O)};{let p=new Set(["search","logsearch","add"]),y=_.get("classClusterOverview");y.leftItems=y.leftItems.filter(b=>!b.name||p.has(b.name))}let ro=_.get("classOverview");h(ro,"kwirthworks",(p,y)=>Ce(y),()=>!0,()=>n.userPreferences?.customActions&&n.userPreferences.customActions.filter(p=>p.type==="kwirth").length>0),h(ro,"kubeworks",(p,y)=>R(y)),h(_.get("classClusterOverview"),"logsearch",()=>as(void 0,void 0,"Cluster")),h(_.get("classClusterOverview"),"add",()=>to());let Hr=()=>{let p=_.get("classClusterOverview"),y=_.get("Node");h(y,"shell",qr,()=>e.channelObject.frontChannels?.has("ops")??!1),h(y,"cordon",oo),h(y,"uncordon",Ur),h(y,"drain",$r);let b=_.get("Namespace");h(b,"log",W=>{let $=n.files.filter(ee=>W.includes(ee.path));kt("log",$,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("log")??!1),h(b,"metrics",W=>{let $=n.files.filter(ee=>W.includes(ee.path));kt("metrics",$,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("metrics")??!1),h(b,"fileman",W=>{let $=n.files.filter(ee=>W.includes(ee.path));kt("fileman",$,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("fileman")??!1),h(b,"trivy",W=>{let $=n.files.filter(ee=>W.includes(ee.path));kt("trivy",$,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("trivy")??!1),h(b,"topology",W=>{let $=n.files.filter(ee=>W.includes(ee.path));kt("topology",$,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("topology")??!1),h(b,"logsearch",W=>{let ee=n.files.filter(J=>W.includes(J.path))[0]?.data?.origin?.metadata?.name;ee&&as([ee],void 0,`Namespace: ${ee}`)});let O=_.get("classNamespace");h(O,"create",W=>{B(()=>$=>{if($){let ee=`
809
809
  apiVersion: 'v1'
810
810
  kind: 'Namespace'
811
811
  metadata:
812
- name: ${W}
813
- `;lt("create",[ee])}}),A("Enter namespace name"),k("Create namespace")})},Fl=()=>{let p=(T,V,W)=>{let ee=n.files.filter(J=>V.includes(J.path));ee.length>1?Ct(T,ee,mt.EInstanceConfigView.POD,void 0,void 0):(Fe(T),se(ee[0]),rt(!0),z(W))},y=(T,V,W)=>{let ee=n.files.filter(J=>V.includes(J.path));Fe(T),se(ee[0]),rt(!1),z(W)},b=P.get("Pod");g(b,"log",(T,V)=>p("log",T,V),()=>e.channelObject.frontChannels?.has("log")??!1),g(b,"metrics",(T,V)=>p("metrics",T,V),()=>e.channelObject.frontChannels?.has("metrics")??!1),g(b,"ops",(T,V)=>y("ops",T,V),()=>e.channelObject.frontChannels?.has("ops")??!1),g(b,"fileman",(T,V)=>p("fileman",T,V),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(b,"trivy",(T,V)=>p("trivy",T,V),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(b,"topology",T=>{let V=n.files.filter(W=>T.includes(W.path));Ct("topology",V,mt.EInstanceConfigView.POD,void 0,void 0)},()=>e.channelObject.frontChannels?.has("topology")??!1),g(b,"evict",Br),g(b,"logsearch",T=>{let W=n.files.filter(ee=>T.includes(ee.path)).map(ee=>`${ee.data?.origin?.metadata?.namespace}/${ee.data?.origin?.metadata?.name}`);ns(void 0,W,`Pods (${W.length})`)})},Br=p=>{let y=n.files.filter(b=>p.includes(b.path));f((0,Tt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,Q.jsxs)(Le.Box,{children:["Are you sure you want to evict ",y[0].data.origin.kind," ",(0,Q.jsx)("b",{children:y[0].data.origin.metadata.name}),"?"]}),f,b=>{b===Tt.MsgBoxButtons.Yes&&y.map(T=>lt("Pod",["evict",T.data.origin.metadata.namespace,T.data.origin.metadata.name]))}))},io=()=>{let p=P.get("Deployment");va(p,"status",as),g(p,"scale",Ga),g(p,"restart",pa),g(p,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(p,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),g(p,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(p,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(p,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let y=P.get("DaemonSet");g(y,"restart",pa),g(y,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(y,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),g(y,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let b=P.get("ReplicaSet");g(b,"scale",Ga),g(b,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(b,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),g(b,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(b,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(b,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let T=P.get("ReplicationController");g(T,"restart",pa),g(T,"scale",Ga),g(T,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(T,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),g(T,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(T,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(T,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let V=P.get("StatefulSet");g(V,"scale",Ga),g(V,"restart",pa),g(V,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(V,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),g(V,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(V,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(V,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let W=P.get("Job");g(W,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(W,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),g(W,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(W,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(W,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let ee=P.get("CronJob");g(ee,"trigger",lo),g(ee,"suspend",Yr),g(ee,"resume",co)},_l=()=>{let p=P.get("Service");g(p,"topology",T=>Ae(T,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let y=P.get("Ingress");g(y,"topology",T=>Ae(T,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let b=P.get("IngressClass");g(b,"default",Ll)},as=p=>{let y=n.files.find(T=>p===T.path);if(!y||!y.data?.origin?.status)return(0,Q.jsx)(Q.Fragment,{});let b="Stalled";return y.data.origin?.status?.conditions&&y.data.origin.status.conditions.length>0&&(y.data.origin.status.conditions.some(T=>T.type+T.status==="AvailableTrue")&&y.data.origin.status.conditions.some(T=>T.type+T.status==="ProgressingTrue")?b="Running":y.data.origin.status.conditions.some(T=>T.type+T.status==="AvailableFalse")&&y.data.origin.status.conditions.some(T=>T.type+T.status==="ProgressingTrue")&&(b="Scaling")),(0,Q.jsx)(Le.Typography,{color:b==="Running"?"green":b==="Scaling"?"orange":"red",variant:"body2",children:b})},zl=()=>{let p=(b,T)=>{let V=n.files.filter(W=>b.includes(W.path));if(V.length>=1){let W=Hg(V[0].data.origin),ee="create-"+V[0].data.origin.spec.names.kind+"-"+it(),J={id:ee,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Create "+V[0].data.origin.spec.names.kind,isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:(Gr,ls)=>{lt("apply",[Gr]),Vt(ee)},code:W,oldCode:void 0},onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt,selectedFiles:[]};_n(J)}},y=P.get("CustomResourceDefinition");g(y,"instantiate",p)},pa=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length===1&&lt("Controller",["restart",y[0].data.origin.kind,y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},Ga=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length===1&&(H(()=>b=>{b&&lt("Controller",["scale",y[0].data.origin.kind,y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name,b])}),A("Enter scaling value"),de(y[0].data.origin.spec.replicas),k("Scale "+y[0].data.origin.kind))},Ae=(p,y)=>{let b=n.files.filter(T=>p.includes(T.path));Ct(y,b,mt.EInstanceConfigView.GROUP,void 0,void 0)},Ll=p=>{n.files.filter(b=>p.includes(b.path)).map(b=>lt("IngressClass",["default",b.data.origin.metadata.name]))},$r=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("Node",["drain",y[0].data.origin.metadata.name])},so=()=>e.channelObject.frontChannels?.has("ops")?!0:(e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.WARNING,"A shell needs the Ops plugin: install it from \u2630 \u2192 Manage extensions \u2192 Plugins"),!1),qr=p=>{if(!so())return;let y=n.files.filter(W=>p.includes(W.path)),b="kwirth-node-shell-"+y[0].name,T="default";lt("Node",["shell",y[0].data.origin.metadata.name,T,b]);let V=window.setInterval(async()=>{try{let W=n.files.find(ee=>ee.class==="Pod"&&ee.data.origin.metadata.namespace===T&&ee.data.origin.metadata.name===b);W&&W.data.origin.status.phase==="Running"&&(clearInterval(V),f((0,Q.jsx)(Q.Fragment,{})),Ct("ops",[W],mt.EInstanceConfigView.CONTAINER,{nodeShell:!0},W.data.origin.spec.containers[0].name))}catch(W){console.log(W)}},1e3);f((0,Tt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the node shell to start (pod '${b}' on namespace '${T}' is starting)...`,f,W=>{W===Tt.MsgBoxButtons.Cancel&&clearInterval(V)}))},oo=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("Node",["cordon",y[0].data.origin.metadata.name])},Ur=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("Node",["uncordon",y[0].data.origin.metadata.name])},lo=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("CronJob",["trigger",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},Yr=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("CronJob",["suspend",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},co=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("CronJob",["resume",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},rs=p=>{o.current?.changeFolder(p)},lt=(p,y)=>{if(!e.channelObject.webSocket)return;let b={flow:mt.EInstanceMessageFlow.REQUEST,action:mt.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:mt.EInstanceMessageType.DATA,accessKey:e.channelObject.accessString,instance:e.channelObject.instanceId,id:it(),command:p,namespace:"",group:"",pod:"",container:"",params:y,msgtype:"magnifymessage"},T=JSON.stringify(b);e.channelObject.webSocket.send(T)},is=(p,y)=>{e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.ERROR,p.message)},Vl=p=>{n.currentPath=p},Ka=(p,y,b)=>{let T=be(p,y,b);if(T.startsWith("//")){if(n.files.find(W=>W.class==="crdInstance"&&W.data.origin.metadata.name===y&&W.data.origin.kind===p)){let W=`/custom/${p}/`+y+(b?":"+b:"");Ua([W],void 0);return}}else{let V=n.files.find(W=>W.path===T);if(V){Ua([V.path],void 0);return}else if(p==="Image"){let W="docker.io/library/"+y;y.includes("/")&&(W="docker.io/"+y);let ee=n.files.find(J=>J.class==="Image"&&J.data.origin?.names?.includes(W));if(ee){Ua([ee.path],void 0);return}if(y.includes("@sha256:")){let J=y.indexOf("@sha256:"),Gr=y.substring(J).toLowerCase(),ls=n.files.find(Kr=>Kr.class==="Image"&&Kr.data.origin?.names?.some($l=>$l.toLowerCase().endsWith(Gr)));if(ls){Ua([ls.path],void 0);return}}}}f((0,Tt.MsgBoxOkError)("Object details",(0,Q.jsxs)(Le.Box,{children:["Image '",(0,Q.jsx)("b",{children:y}),"' has not been found on artifacts database. Maybe it exist but is stored with any kind of prefix"]}),f))},Wl=()=>De(p=>p+1),Vt=p=>{let y=n.windows.findIndex(T=>T.id===p);if(y<0)return;n.windows.splice(y,1);let b=[...n.windows].reverse().find(T=>T.visible);b&&Xt(b.id),De(T=>T+1)},Xn=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.visible=!1,y.atFront=!1,uo(),De(b=>b+1))},wn=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.atTop=!y.atTop,De(b=>b+1))},uo=()=>{let p;for(let y of n.windows)y.visible&&!y.atFront&&!y.atTop&&(p=y);p&&Xt(p.id)},ss=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.visible?y.atFront?(y.visible=!1,y.atFront=!1,uo()):Xt(y.id):(y.visible=!0,Xt(y.id)),De(b=>b+1))},mo=(p,y)=>{lt("apply",[Xs.dump(y,{indent:2})])},Hl=(p,y,b)=>{let T=n.files.find(V=>V.path===y);if(T){switch(p){case"delete":es([y]);break;case"edit":no([y]);break;case"browse":ao([y]);break;case"ops":Ct("ops",[T],mt.EInstanceConfigView.CONTAINER,void 0,b);break;case"log":case"metrics":case"fileman":case"trivy":b==="*all"?Ct(p,[T],mt.EInstanceConfigView.POD,void 0,void 0):Ct(p,[T],mt.EInstanceConfigView.CONTAINER,void 0,b);break;case"evict":Br([y]);break;case"cordon":oo([y]);break;case"shell":qr([y]);break;case"uncordon":Ur([y]);break;case"drain":$r([y]);break;case"scale":Ga([y]);break;case"restart":pa([y]);break;case"trigger":lo([y]);break;case"suspend":Yr([y]);break;case"resume":co([y]);break}De(V=>V+1)}},os=(p,y,b)=>{b="Channel message: "+b},Bl=p=>{let y=e.channelObject.frontChannels.get(p.data.channelId);return y?(0,Ca.getChannelIconSafe)(y,p.data.channelId):(console.log("Inexistent channel:",p.data.channelId),(0,Q.jsx)(Q.Fragment,{}))},Sa=(p,y,b)=>{if(p.visible&&p.atFront===y&&p.atTop===b)switch(p.class){case"ContentDetails":return(0,Q.jsx)(mx,{onFocus:()=>Xt(p.id),...p},p.id);case"ArtifactSearch":return(0,Q.jsx)(Vx,{onFocus:()=>Xt(p.id),...p},p.id);case"LogSearchPanel":return(0,Q.jsx)(Wx,{onFocus:()=>Xt(p.id),...p,channelObject:e.channelObject,magnifyData:n},p.id);case"ContentBrowse":case"ContentEdit":return(0,Q.jsx)(Fx,{onFocus:()=>Xt(p.id),...p},p.id);case"ContentExternal":return(0,Q.jsx)(Ug,{onFocus:()=>Xt(p.id),...p},p.id);default:console.error("Invalid window class:",p.class)}};return n.started?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(g1,{channelObject:e.channelObject}),n.started&&(0,Q.jsxs)(Le.Box,{ref:s,sx:{display:"flex",flexDirection:"column",overflowY:"auto",overflowX:"hidden",flexGrow:1,height:`${r}px`,ml:1,mr:1,mt:1},children:[(0,Q.jsx)(y1.FileManager,{ref:o,files:n.files,spaces:P,rightItems:Fn,actions:dd,icons:Wn,initialPath:n.currentPath,layout:"list",enableFilePreview:!1,onCreateFolder:void 0,onError:is,onRename:void 0,onPaste:void 0,onDelete:void 0,onFolderChange:Vl,onRefresh:void 0,permissions:a,filePreviewPath:"http://avoid-console-error",primaryColor:"#1976d2",fontFamily:"Roboto, Helvetica, Arial, sans-serif",height:"100%",className:"custom-fm-magnify",searchMode:"auto",searchRegex:!0,searchCasing:!0,showContextMenu:!1,showRefresh:!1,categories:Me,maxNavigationPaneLevel:2,minFileActionsLevel:2,openMode:"none"}),ke&&(0,Q.jsx)(Ol,{channel:j,file:B,onClose:()=>z(void 0),onContainerSelected:qe,anchorParent:ke,includeAllContainers:Ve}),le&&(0,Q.jsx)(d1,{onWorkSelected:qa,onClose:()=>R(void 0),anchorParent:le,customActions:n.userPreferences.customActions}),ce&&(0,Q.jsx)(p1,{onWorkSelected:Vr,onClose:()=>ve(void 0),anchorParent:ce,customActions:n.userPreferences.customActions}),Mt&&(0,Q.jsx)(b1.MenuNotification,{anchorParent:Mt,notifications:e.channelObject.notifications,onRefresh:()=>De(p=>p+1),onClose:()=>ae(void 0),renderIcon:p=>p?(0,Ca.getChannelIconSafe)(e.channelObject.frontChannels.get(p),p):(0,Ca.getIconFromKind)("IconK8s",20)}),(0,Q.jsx)(Le.Stack,{direction:"row",sx:{mt:1},children:n.windows.map(p=>{let y=p.title||"notitle",b=y;b.length>20&&(b=b.substring(0,10)+"..."+b.substring(b.length-10));let T=LM[p.class]||(p.class==="ContentExternal"?Bl(p):null),V=p.class==="ContentDetails"?y:p.title;return(0,Q.jsx)(Le.Tooltip,{title:V,children:(0,Q.jsxs)(Le.Button,{onClick:()=>ss(p.id),children:[T,b]})},p.id)})})]}),m,(0,Q.jsx)(zM,{title:h,default:q,message:v,onClose:()=>k(void 0),onResult:pe,width:"300px",password:!0}),n.windows.map(p=>Sa(p,!1,!1)),n.windows.map(p=>Sa(p,!0,!1)),n.windows.map(p=>Sa(p,!1,!0)),n.windows.map(p=>Sa(p,!0,!0))]}):(0,Q.jsxs)(Le.Box,{ref:l,sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",height:`calc(100vh - ${c}px - 8px)`,px:4},children:[(0,Q.jsx)(Le.Typography,{variant:"h6",color:"text.secondary",sx:{mb:1},children:"Magnify not started"}),(0,Q.jsx)(Le.Typography,{variant:"body2",color:"text.secondary",sx:{maxWidth:480},children:"Start the channel (tab settings \u2699 \u2192 Start) to explore your cluster."})]})};var eo=I(Rt(),1);var Pl=class{constructor(){this.channelId="magnify";this.setupVisible=!1;this.SetupDialog=Hm;this.TabContent=w1;this.tasks=[];this.requirements={accessString:!0,clusterUrl:!0,clusterInfo:!0,clusterManagement:!0,multiCluster:!0,exit:!0,frontChannels:!0,metrics:!0,notifier:!0,notifications:!0,setup:!1,settings:!1,palette:!0,userSettings:!0,webSocket:!0,backChannels:!0,openManager:!0};this.launchTasks=t=>{this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"usage",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:this.channelId,params:["cluster"]};t.webSocket&&t.webSocket.send(JSON.stringify(a))},15e3,t)),this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"list",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:this.channelId,params:["PodMetrics","NodeMetrics"]};t.webSocket&&t.webSocket.send(JSON.stringify(a))},3e4,t)),this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:n.accessString,instance:n.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"events",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:this.channelId,params:["cluster","","","","25"]};n.webSocket&&n.webSocket.send(JSON.stringify(a))},1e4,t))}}getScope(){return"magnify$read"}getChannelIcon(){return Wm}getSetupVisibility(){return this.setupVisible}setSetupVisibility(t){this.setupVisible=t}processChannelMessage(t,n){let a=JSON.parse(n.data),r=t.data;if(r.userPreferences.tracing&&(console.warn(new Date().toTimeString()),console.log(JSON.parse(n.data))),a.id&&r.pendingWebSocketRequests.has(a.id))return r.pendingWebSocketRequests.get(a.id)(n.data),r.pendingWebSocketRequests.delete(a.id),{action:Zn.EChannelRefreshAction.NONE};switch(a.type){case Pe.EInstanceMessageType.DATA:{let s=JSON.parse(n.data);switch(s.action){case Pe.EInstanceMessageAction.COMMAND:switch(s.command){case"clusterinfo":let o=JSON.parse(s.data);r.clusterInfo=o;break;case"usage":let l=JSON.parse(s.data);r.metricsProviderMissing=l.metricsProvider===!1,r.eventsProviderMissing=l.eventsProvider===!1,r.metricsProviderMissing||(l.timestamp=new Date().toLocaleTimeString("en-GB"),r.metricsCluster.push(l),r.metricsCluster.length>50&&r.metricsCluster.shift()),t.data?.refreshUsage?.();break;case"Pod":JSON.parse(s.data)[0];break;case"list":case"listcrd":let d=JSON.parse(s.data);return d.kind.endsWith("List")?d.items&&d.items.forEach?d.items.forEach(f=>this.loadObject("NONE",t,d.kind.replace("List",""),r,f)):console.log(d):t.notify?.(this.channelId,eo.ENotifyLevel.ERROR,"Unexpected list: "+d.kind),r.files=[...r.files],{action:Zn.EChannelRefreshAction.REFRESH};case"events":let m=JSON.parse(s.data);if(m.type==="cluster"&&m.events)for(let f of m.events){let h=!1;for(let k of r.clusterEvents)if($s(k,f)){h=!0;break}h||(r.clusterEvents.push(f),r.clusterEvents=r.clusterEvents.sort((k,v)=>Date.parse(v.eventTime||v.lastTimestamp||v.firstTimestamp)-Date.parse(k.eventTime||k.lastTimestamp||k.firstTimestamp)))}else if(m.events){m.events=m.events.sort((f,h)=>Date.parse(h.eventTime||h.lastTimestamp||h.firstTimestamp)-Date.parse(f.eventTime||f.lastTimestamp||f.firstTimestamp));for(let f of m.events){let h=be(f.involvedObject.kind,f.involvedObject.name,f.involvedObject.namespace),k=r.files.find(v=>v.path===h);(k&&k?.data.origin.metadata.namespace===f.involvedObject.namespace||k&&!f.involvedObject.namespace)&&(k.data.events||(k.data.events={},k.data.events.list=[]),k.data.events.list.push(f))}r.files=[...r.files]}return{action:Zn.EChannelRefreshAction.REFRESH};case"k8event":switch(s.event){case"ADDED":case"MODIFIED":this.loadObject(s.event,t,s.data.kind,r,s.data),r.files=[...r.files];break;case"DELETED":"Namespace Node".includes(s.data.kind)&&r.updateCategoryValues&&r.updateCategoryValues(s.data.kind,"DELETED",s.data.metadata.name);let f=be(s.data.kind,s.data.metadata.name,s.data.metadata.namespace);if(f.startsWith("//"))r.files=r.files.filter(h=>h.path!=="/custom/"+s.data.kind+"/"+s.data.metadata.name+(s.data.metadata.namespace?":"+s.data.metadata.namespace:""));else if(r.files=r.files.filter(h=>h.path!==f),f.startsWith("/custom/CustomResourceDefinition/")){let h=s.data?.spec?.names?.kind;h&&(r.files=r.files.filter(k=>!k.path.startsWith(`/custom/${h}/`)),r.files=r.files.filter(k=>k.path!==`/custom/${h}`))}break}return{action:Zn.EChannelRefreshAction.REFRESH};case"delete":{console.log("DEL",s.data);let f=JSON.parse(s.data);return f.status==="Success"||t.notify?.(this.channelId,eo.ENotifyLevel.ERROR,"ERROR: "+(f.text||f.message)),{action:Zn.EChannelRefreshAction.REFRESH}}case"create":{let f=JSON.parse(s.data);return f.status==="Success"?t.notify?.(this.channelId,eo.ENotifyLevel.INFO,"Created: "+(f.text||f.message)):t.notify?.(this.channelId,eo.ENotifyLevel.ERROR,"ERROR: "+(f.text||f.message)),{action:Zn.EChannelRefreshAction.REFRESH}}case"logsearch":{let f=JSON.parse(s.data);return f.type==="result"?r.logSearchResults=[...r.logSearchResults,{namespace:f.namespace,pod:f.pod,container:f.container,lines:f.lines}]:f.type==="done"&&(r.logSearchDone=!0),{action:Zn.EChannelRefreshAction.REFRESH}}}}return{action:Zn.EChannelRefreshAction.NONE}}case Pe.EInstanceMessageType.SIGNAL:let i=JSON.parse(n.data);return i.flow===Pe.EInstanceMessageFlow.RESPONSE?i.action===Pe.EInstanceMessageAction.START?(t.instanceId=i.instance,setTimeout(()=>{VM(t),Dm(t),WM(t)},300)):i.action===Pe.EInstanceMessageAction.COMMAND&&i.text&&t.notify?.(this.channelId,i.level,i.text):i.flow===Pe.EInstanceMessageFlow.UNSOLICITED&&(i.event===Pe.ESignalMessageEvent.ADD||i.event===Pe.ESignalMessageEvent.DELETE||i.text&&t.notify?.(this.channelId,i.level,i.text)),{action:Zn.EChannelRefreshAction.REFRESH};default:return console.log(`Invalid message type ${a.type}`),{action:Zn.EChannelRefreshAction.NONE}}}async initChannel(t){let n=new fo;return t.instanceConfig=new po,t.config=n,t.data=new go,t.readChannelUserPreferences&&(t.data.userPreferences=await t.readChannelUserPreferences(this.channelId)),t.data.userPreferences||(t.data.userPreferences=new ei),!1}startChannel(t){let n=t.data;return n.paused=!1,n.started=!0,n.files=n.files.filter(a=>a.isDirectory&&a.path.split("/").length-1<=2),n.files=n.files.filter(a=>a.class!=="crdGroup"),n.currentPath="/overview",this.launchTasks(t),!0}pauseChannel(t){let n=t.data;return n.paused=!0,!1}continueChannel(t){let n=t.data;return n.paused=!1,!0}stopChannel(t){let n=t.data;return n.paused=!1,n.started=!1,this.tasks.forEach(a=>clearInterval(a)),this.tasks=[],!0}onClusterSwitch(t){let n=t.data;n&&(n.clusterInfo=void 0,n.clusterEvents=[],n.metricsCluster=[],n.started=!1,n.currentPath="/overview",n.pendingWebSocketRequests=new Map)}socketDisconnected(t){return!1}socketReconnect(t){return!1}loadObject(t,n,a,r,i){i.metadata?.managedFields&&(r.userPreferences.dataManagedFields||delete i.metadata.managedFields),a==="Pod"?this.loadPod(r,i):a==="ConfigMap"?this.loadConfigMap(r,i):a==="Secret"?this.loadSecret(r,i):a==="ResourceQuota"?this.loadResourceQuota(r,i):a==="LimitRange"?this.loadLimitRange(r,i):a==="HorizontalPodAutoscaler"?this.loadHorizontalPodAutoscaler(r,i):a==="PodDisruptionBudget"?this.loadPodDisruptionBudget(r,i):a==="PriorityClass"?this.loadPriorityClass(r,i):a==="RuntimeClass"?this.loadRuntimeClass(r,i):a==="Lease"?this.loadLease(r,i):a==="ValidatingWebhookConfiguration"?this.loadValidatingWebhookConfiguration(r,i):a==="MutatingWebhookConfiguration"?this.loadMutatingWebhookConfiguration(r,i):a==="Namespace"?this.loadNamespace(r,i):a==="Node"?this.loadNode(r,i):a==="Service"?this.loadService(r,i):a==="Endpoints"?this.loadEndpoints(r,i):a==="Ingress"?this.loadIngress(r,i):a==="IngressClass"?this.loadIngressClass(r,i):a==="NetworkPolicy"?this.loadNetworkPolicy(r,i):a==="Deployment"?this.loadDeployment(r,i):a==="DaemonSet"?this.loadDaemonSet(r,i):a==="ReplicaSet"?this.loadReplicaSet(r,i):a==="ReplicationController"?this.loadReplicationController(r,i):a==="StatefulSet"?this.loadStatefulSet(r,i):a==="Job"?this.loadJob(r,i):a==="CronJob"?this.loadCronJob(r,i):a==="PersistentVolumeClaim"?this.loadPersistentVolumeClaim(r,i):a==="PersistentVolume"?this.loadPersistentVolume(r,i):a==="StorageClass"?this.loadStorageClass(r,i):a==="VolumeAttachment"?this.loadVolumeAttachment(r,i):a==="CSIDriver"?this.loadCSIDriver(r,i):a==="CSINode"?this.loadCSINode(r,i):a==="CSIStorageCapacity"?this.loadCSIStorageCapacity(r,i):a==="ServiceAccount"?this.loadServiceAccount(r,i):a==="ClusterRole"?this.loadClusterRole(r,i):a==="Role"?this.loadRole(r,i):a==="ClusterRoleBinding"?this.loadClusterRoleBinding(r,i):a==="RoleBinding"?this.loadRoleBinding(r,i):a==="V1APIResource"?this.loadApiResource(r,i):a==="CustomResourceDefinition"?this.loadCustomResourceDefinition(n,r,i):a==="PodMetrics"?this.loadPodMetrics(r,i):a==="NodeMetrics"?this.loadNodeMetrics(r,i):a==="ComponentStatus"?this.loadComponentStatus(r,i):a==="Event"||this.loadCustomResourceDefinitionInstance(r,i)||console.log("*** ERR INVALID Kind:",a)}upsertObject(t,n){let a=t.files.findIndex(r=>r.path===n.path);a>=0?t.files[a]=n:t.files.push(n)}loadNamespace(t,n){n.apiVersion="v1",n.kind="Namespace",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("Namespace",n.metadata.name,void 0),class:"Namespace",data:{creationTimestamp:n.metadata.creationTimestamp,status:n.status?.phase,origin:n}}),t.updateCategoryValues&&t.updateCategoryValues("Namespace","ADD",n.metadata.name)}loadConfigMap(t,n){n.apiVersion="v1",n.kind="ConfigMap",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ConfigMap",n.metadata.name,n.metadata.namespace),class:"ConfigMap",data:{namespace:n.metadata.namespace,keys:n.data?Object.keys(n.data).join(", "):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadSecret(t,n){!t.userPreferences.dataHelm&&n.metadata.name.startsWith("sh.helm.release.")||(n.apiVersion="v1",n.kind="Secret",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Secret",n.metadata.name,n.metadata.namespace),class:"Secret",data:{namespace:n.metadata.namespace,keys:n.data?Object.keys(n.data).join(", "):"",creationTimestamp:n.metadata.creationTimestamp,type:n.type,origin:n}}))}loadResourceQuota(t,n){n.apiVersion="v1",n.kind="ResourceQuota",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ResourceQuota",n.metadata.name,n.metadata.namespace),class:"ResourceQuota",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadLimitRange(t,n){n.apiVersion="v1",n.kind="LimitRange",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("LimitRange",n.metadata.name,n.metadata.namespace),class:"LimitRange",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadHorizontalPodAutoscaler(t,n){n.apiVersion="autoscaling/v2",n.kind="HorizontalPodAutoscaler",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("HorizontalPodAutoscaler",n.metadata.name,n.metadata.namespace),class:"HorizontalPodAutoscaler",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPodDisruptionBudget(t,n){n.apiVersion="policy/v1",n.kind="PodDisruptionBudget";let a=t.files.find(r=>r.class==="Pod"&&r.data.origin.metadata.name===n.metadata.name&&r.data.origin.metadata.namespace===n.metadata.namespace);this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PodDisruptionBudget",n.metadata.name,n.metadata.namespace),class:"PodDisruptionBudget",data:{...a?.data?{cpu:a.data.cpu,memory:a.data.memory}:{},namespace:n.metadata.namespace,minAvailable:n.spec.minAvailable||"",maxUnavailable:n.spec.maxUnavailable||"",currentHealthy:n.status.currentHealthy,desiredHealthy:n.status.desiredHealthy,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPriorityClass(t,n){n.apiVersion="scheduling.k8s.io/v1",n.kind="PriorityClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PriorityClass",n.metadata.name,n.metadata.namespace),class:"PriorityClass",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRuntimeClass(t,n){n.apiVersion="node.k8s.io/v1",n.kind="RuntimeClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("RuntimeClass",n.metadata.name,n.metadata.namespace),class:"RuntimeClass",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadLease(t,n){n.apiVersion="node.k8s.io/v1",n.kind="Lease",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Lease",n.metadata.name,n.metadata.namespace),class:"Lease",data:{namespace:n.metadata.namespace,holder:n.spec.holderIdentity,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadValidatingWebhookConfiguration(t,n){n.apiVersion="admissionregistration.k8s.io/v1",n.kind="ValidatingWebhookConfiguration",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ValidatingWebhookConfiguration",n.metadata.name,void 0),class:"ValidatingWebhookConfiguration",data:{webhooks:n.webhooks.length,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadMutatingWebhookConfiguration(t,n){n.apiVersion="admissionregistration.k8s.io/v1",n.kind="MutatingWebhookConfiguration",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("MutatingWebhookConfiguration",n.metadata.name,void 0),class:"MutatingWebhookConfiguration",data:{webhooks:n.webhooks.length,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadNode(t,n){n.apiVersion="v1",n.kind="Node";let a=[];Object.keys(n.metadata.labels).forEach(i=>{i.startsWith("node-role.kubernetes.io")&&n.metadata.labels[i]==="true"&&a.push(i.substring(24))}),n.status.capacity.cpu=Us(n.status.capacity.cpu),n.status.allocatable.cpu=Us(n.status.allocatable.cpu),n.status.capacity.memory=Kn(n.status.capacity.memory),n.status.allocatable.memory=Kn(n.status.allocatable.memory);let r=t.files.find(i=>i.class==="Node"&&i.data.origin.metadata.name===n.metadata?.name);this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("Node",n.metadata.name,void 0),class:"Node",data:{...r?.data?{cpu:r.data.cpu,memory:r.data.memory}:{},creationTimestamp:n.metadata.creationTimestamp,taints:n.spec.taints?n.spec.taints.length:0,roles:a.join(","),conditions:n.spec.unschedulable===!0?"Unschedulable":n.status.conditions.filter(i=>i.status==="True").map(i=>i.type).join(" "),version:n.status.nodeInfo.kubeletVersion,origin:n}}),t.updateCategoryValues&&t.updateCategoryValues("Node","ADD",n.metadata.name);for(let i of t.files.filter(s=>s.class==="Image")){let s=i.data.origin.nodes.indexOf(n.metadata.name);s>=0&&i.data.origin.nodes.splice(s,1)}t.files=t.files.filter(i=>!(i.class==="Image"&&i.data.origin.nodes.length===0));for(let i of n.status?.images){let s=i.sizeBytes,o=[];i.names?(o=i.names.filter(c=>!c.includes("@")),o.length===0&&(o=i.names)):o=["*unnamed"];let l=t.files.find(c=>c.path==="/cluster/Image/"+o[0]);if(l)l.data.origin.nodes.includes(n.metadata.name)||l.data.origin.nodes.push(n.metadata.name);else{let c,d,m,f,h=/^(?:((?:[a-z0-9-]+\.)+[a-z0-9]+(?::\d+)?)\/)?((?:[a-z0-9._-]+\/)*[a-z0-9._-]+)(?::([a-z0-9._-]+))?(?:@(sha256:[a-f0-9]{64}))?$/i;if(i.names)for(let v of i.names){let A=v.match(h);A&&(c||(c=A[1]),d||(d=A[2]),m||(m=A[3]),f||(f=A[4]))}let k={name:o[0],displayName:d,isDirectory:!1,path:"/cluster/Image/"+o[0],class:"Image",data:{size:s,tag:m,origin:{kind:"Image",metadata:{name:o[0]},name:o[0],displayName:o[0],registry:c,tag:m,sha:f,names:i.names,nodes:[n.metadata.name]}}};t.files.push(k)}}}loadNodeMetrics(t,n){let a=n.metadata?.name,r=t.files.find(i=>i.class==="Node"&&i.data.origin.metadata.name===a);if(r){let i=r.data.origin.status.capacity.cpu;r.data.cpu=(Us(n.usage.cpu)/i*100).toFixed(2)+"%",r.data.memory=(Kn(n.usage.memory)/r.data.origin.status.capacity.memory*100).toFixed(2)+"%"}}loadService(t,n){n.apiVersion="v1",n.kind="Service",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Service",n.metadata.name,n.metadata.namespace),class:"Service",data:{namespace:n.metadata.namespace,type:n.spec.type,clusterIp:n.spec.clusterIP,ports:n.spec?.ports?.map(a=>a.port+"/"+a.protocol).join(",")||"-",externalIp:n.status?.loadBalancer?.ingress?.map(a=>a.ip).join(",")||"-",selector:"#",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadEndpoints(t,n){n.apiVersion="v1",n.kind="Endpoints",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Endpoints",n.metadata.name,n.metadata.namespace),class:"Endpoints",data:{namespace:n.metadata.namespace,endpoints:n.subsets?n.subsets?.map(a=>a.addresses?.map(r=>a.ports?.map(i=>r.ip+":"+i.port)).join(",")):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadIngress(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="Ingress",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Ingress",n.metadata.name,n.metadata.namespace),class:"Ingress",data:{namespace:n.metadata.namespace,loadBalancers:n.status?.loadBalancer?.ingress?.map(a=>a.ip).join(","),rules:"#",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadIngressClass(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="IngressClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("IngressClass",n.metadata.name,n.metadata.namespace),class:"IngressClass",data:{namespace:n.metadata.namespace,controller:n.spec.controller,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadNetworkPolicy(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="NetworkPolicy",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("NetworkPolicy",n.metadata.name,n.metadata.namespace),class:"NetworkPolicy",data:{namespace:n.metadata.namespace,policyTypes:n.spec.policyTypes?n.spec.policyTypes.join(","):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadDeployment(t,n){n.apiVersion="apps/v1",n.kind="Deployment",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Deployment",n.metadata.name,n.metadata.namespace),class:"Deployment",data:{namespace:n.metadata.namespace,pods:(n.status.readyReplicas||0)+"/"+(n.status.replicas||0),replicas:n.status.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadDaemonSet(t,n){n.apiVersion="apps/v1",n.kind="DaemonSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("DaemonSet",n.metadata.name,n.metadata.namespace),class:"DaemonSet",data:{namespace:n.metadata.namespace,desired:n.status.desiredNumberScheduled,current:n.status.currentNumberScheduled,ready:n.status.numberReady,upToDate:n.status.updatedNumberScheduled,available:n.status.numberAvailable,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadReplicaSet(t,n){n.apiVersion="apps/v1",n.kind="ReplicaSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ReplicaSet",n.metadata.name,n.metadata.namespace),class:"ReplicaSet",data:{namespace:n.metadata.namespace,desired:n.status.replicas||0,current:n.status.availableReplicas||0,ready:n.status.readyReplicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadReplicationController(t,n){n.apiVersion="v1",n.kind="ReplicationController",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ReplicationController",n.metadata.name,n.metadata.namespace),class:"ReplicationController",data:{namespace:n.metadata.namespace,replicas:n.status.replicas||0,desired:n.spec.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadStatefulSet(t,n){n.apiVersion="apps/v1",n.kind="StatefulSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("StatefulSet",n.metadata.name,n.metadata.namespace),class:"StatefulSet",data:{namespace:n.metadata.namespace,pods:(n.status.readyReplicas||0)+"/"+(n.status.replicas||0),replicas:n.spec.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadJob(t,n){n.apiVersion="batch/v1",n.kind="Job",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Job",n.metadata.name,n.metadata.namespace),class:"Job",data:{namespace:n.metadata.namespace,completions:n.spec.completions+"/"+n.spec.parallelism,conditions:n.status.conditions?n.status.conditions.filter(a=>a.status.toLowerCase()==="true").map(a=>a.name):"-",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCronJob(t,n){n.apiVersion="batch/v1",n.kind="CronJob",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("CronJob",n.metadata.name,n.metadata.namespace),class:"CronJob",data:{namespace:n.metadata.namespace,schedule:n.spec.schedule,suspend:n.spec.suspend||"-",active:"-",lastSchedule:n.status.lastScheduleTime,nextExecution:"-",timezone:"-",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPersistentVolumeClaim(t,n){n.apiVersion="v1",n.kind="PersistentVolumeClaim",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PersistentVolumeClaim",n.metadata.name,n.metadata.namespace),class:"PersistentVolumeClaim",data:{namespace:n.metadata.namespace,storageClass:n.spec.storageClassName,size:n.status?.capacity?.storage?Kn(n.status?.capacity?.storage):0,creationTimestamp:n.metadata.creationTimestamp,status:n.status.phase,origin:n}})}loadPersistentVolume(t,n){n.apiVersion="v1",n.kind="PersistentVolume",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("PersistentVolume",n.metadata.name,void 0),class:"PersistentVolume",data:{storageClass:n.spec?.storageClassName,size:n.status?.capacity?.storage?Kn(n.status?.capacity?.storage):0,claim:n.spec?.claimRef?.name,creationTimestamp:n.metadata?.creationTimestamp,status:n.status?.phase,origin:n}})}loadStorageClass(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="StorageClass",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("StorageClass",n.metadata.name,void 0),class:"StorageClass",data:{provisioner:n.provisioner,reclaimPolicy:n.reclaimPolicy,default:(n.metadata?.annotations&&n.metadata.annotations["storageclass.kubernetes.io/is-default-class"]==="true"?"Yes":"")||"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadVolumeAttachment(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="VolumeAttachment",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("VolumeAttachment",n.metadata.name,void 0),class:"VolumeAttachment",data:{attacher:n.spec.attacher,nodeName:n.spec.nodeName,source:n.spec.source?.persistentVolumeName||"",status:n.status.attached?"attached":"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSIDriver(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSIDriver",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSIDriver",n.metadata.name,void 0),class:"CSIDriver",data:{attachRequired:n.spec.attachRequired?"Yes":"No",storageCapacity:n.spec.storageCapacity?"Yes":"No",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSINode(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSINode",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSINode",n.metadata.name,void 0),class:"CSINode",data:{drivers:n.spec.drivers?.map(a=>a.name).join(","),creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSIStorageCapacity(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSIStorageCapacity",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSIStorageCapacity",n.metadata.name,void 0),class:"CSIStorageCapacity",data:{creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadServiceAccount(t,n){n.apiVersion="v1",n.kind="ServiceAccount",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ServiceAccount",n.metadata.name,n.metadata.namespace),class:"ServiceAccount",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadClusterRole(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="ClusterRole",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ClusterRole",n.metadata.name,void 0),class:"ClusterRole",data:{creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRole(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="Role",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Role",n.metadata.name,n.metadata.namespace),class:"Role",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadClusterRoleBinding(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="ClusterRoleBinding",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ClusterRoleBinding",n.metadata.name,void 0),class:"ClusterRoleBinding",data:{bindings:n.subjects?n.subjects.map(a=>a.name).join(","):"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRoleBinding(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="RoleBinding",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("RoleBinding",n.metadata.name,n.metadata.namespace),class:"RoleBinding",data:{namespace:n.metadata.namespace,bindings:n.subjects?n.subjects.map(a=>a.name).join(","):"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadApiResource(t,n){n.kindName=n.kind,n.metadata={name:n.kind},n.apiVersion="v1",n.kind="V1APIResource",this.upsertObject(t,{name:n.name,isDirectory:!1,path:be("V1APIResource",n.name,void 0),class:"V1APIResource",data:{kind:n.kindName,singular:n.singularName,namespaced:n.namespaced?"Yes":"",origin:n}})}loadPod(t,n){n.apiVersion="v1",n.kind="Pod",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Pod",n.metadata.name,n.metadata.namespace),class:"Pod",data:{namespace:n.metadata.namespace,controller:n.metadata.ownerReferences&&n.metadata.ownerReferences.length>0?n.metadata.ownerReferences[0].kind:"-",node:n.spec.nodeName,startTime:n.status.startTime,status:n.metadata.deletionTimestamp?"Terminating":n.status.phase,restartCount:n.status.containerStatuses?.reduce((a,r)=>a+=r.restartCount,0)||0,origin:n}})}loadPodMetrics(t,n){let a=n.metadata.name,r=n.metadata.namespace,i=t.files.find(s=>s.class==="Pod"&&s.data.origin.metadata.name===a&&s.data.origin.metadata.namespace===r);i&&(i.data.metrics=n,i.data.cpu=n.containers.reduce((s,o)=>s+Us(o.usage.cpu),0),i.data.cpu=i.data.cpu.toFixed(3),i.data.memory=n.containers.reduce((s,o)=>s+Kn(o.usage.memory),0))}loadComponentStatus(t,n){n.apiVersion="v1",n.kind="ComponentStatus",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ComponentStatus",n.metadata.name,void 0),class:"ComponentStatus",data:{status:n.conditions[0].status,message:n.conditions[0].message,origin:n}})}loadCustomResourceDefinition(t,n,a){a.apiVersion="apiextensions.k8s.io/v1",a.kind="CustomResourceDefinition";let r=a.spec.versions&&a.spec.versions.length>0?a.spec.versions[0].name:"-";this.upsertObject(n,{name:a.metadata.name,displayName:a.metadata.name,isDirectory:!1,path:be("CustomResourceDefinition",a.metadata.name,a.metadata.namespace),class:"CustomResourceDefinition",data:{group:a.spec.group,version:r,scope:a.spec.scope,creationTimestamp:a.metadata.creationTimestamp,origin:a}});let i={name:a.spec.names.kind,isDirectory:!0,path:"/custom/"+a.spec.names.kind,class:"crdGroup",children:"crdInstance"};if(a.spec.scope==="Namespaced"&&(i.categories=["namespace"],i.children="crdNamespacedInstance"),this.upsertObject(n,i),a.spec.versions&&a.spec.versions.length>0){let s={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"listcrd",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:this.channelId,params:[a.spec.group,a.spec.versions[0].name,a.spec.names.plural]};t.webSocket.send(JSON.stringify(s))}}loadCustomResourceDefinitionInstance(t,n){return this.upsertObject(t,{name:n.metadata.name+(n.metadata.namespace?":"+n.metadata.namespace:""),displayName:n.metadata.name,isDirectory:!1,path:"/custom/"+n.kind+"/"+n.metadata.name+(n.metadata.namespace?":"+n.metadata.namespace:""),class:"crdInstance",data:{namespace:n.metadata.namespace,source:n.spec?.source,checksum:n.spec?.checksum,creationTimestamp:n.metadata.creationTimestamp,origin:n}}),!0}},be=(e,t,n)=>{let a="";return" V1APIResource Node Namespace ComponentStatus Image ".includes(" "+e+" ")&&(a="cluster")," Pod Deployment DaemonSet ReplicaSet ReplicationController StatefulSet Job CronJob ".includes(" "+e+" ")&&(a="workload")," ConfigMap Secret ResourceQuota LimitRange HorizontalPodAutoscaler PodDisruptionBudget PriorityClass RuntimeClass Lease ValidatingWebhookConfiguration MutatingWebhookConfiguration ".includes(" "+e+" ")&&(a="config")," Service Endpoints Ingress IngressClass NetworkPolicy ".includes(" "+e+" ")&&(a="network")," PersistentVolumeClaim PersistentVolume StorageClass VolumeAttachment CSINode CSIDriver CSIStorageCapacity ".includes(" "+e+" ")&&(a="storage")," ServiceAccount ClusterRole Role ClusterRoleBinding RoleBinding ".includes(" "+e+" ")&&(a="access")," CustomResourceDefinition ".includes(" "+e+" ")&&(a="custom")," V1APIResource Node Namespace V1APIResource Image ComponentStatus ValidatingWebhookConfiguration MutatingWebhookConfiguration PersistentVolume StorageClass VolumeAttachment CSINode CSIDriver CSIStorageCapacity ClusterRole ClusterRoleBinding CustomResourceDefinition ".includes(" "+e+" ")?"/"+a+"/"+e+"/"+t:"/"+a+"/"+e+"/"+t+":"+n},VM=e=>{let t={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"clusterinfo",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:e.channelId,params:[]};e.webSocket.send(JSON.stringify(t))},Dm=async e=>{for(let t=1;t<10;t++){let a=e.data.userPreferences?.dataConfig?.source.filter(i=>i.priority===t).map(i=>i.name);if(a.length===0)break;let r={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"list",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:e.channelId,params:[...a]};e.webSocket.send(JSON.stringify(r)),await new Promise(i=>setTimeout(i,250))}},WM=e=>{let t=e.data,n={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:it(),namespace:"",group:"",pod:"",container:"",command:"subscribe",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:e.channelId,params:t.userPreferences?.dataConfig?.sync.map(a=>a.name)};e.webSocket.send(JSON.stringify(n))};for(let[e,t]of[["kwirth-plugin-magnify-css",Em],["kwirth-plugin-magnify-resizable-css",Am]]){if(document.getElementById(e))continue;let n=document.createElement("style");n.id=e,n.textContent=t,document.head.appendChild(n)}window.__kwirth_plugins__||(window.__kwirth_plugins__={});window.__kwirth_plugins__.magnify=Pl;})();
812
+ name: ${$}
813
+ `;st("create",[ee])}}),L("Enter namespace name"),I("Create namespace")})},_l=()=>{let p=(O,W,$)=>{let ee=n.files.filter(J=>W.includes(J.path));ee.length>1?kt(O,ee,mt.EInstanceConfigView.POD,void 0,void 0):(Ee(O),le(ee[0]),$e(!0),z($))},y=(O,W,$)=>{let ee=n.files.filter(J=>W.includes(J.path));Ee(O),le(ee[0]),$e(!1),z($)},b=_.get("Pod");h(b,"log",(O,W)=>p("log",O,W),()=>e.channelObject.frontChannels?.has("log")??!1),h(b,"metrics",(O,W)=>p("metrics",O,W),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(b,"ops",(O,W)=>y("ops",O,W),()=>e.channelObject.frontChannels?.has("ops")??!1),h(b,"fileman",(O,W)=>p("fileman",O,W),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(b,"trivy",(O,W)=>p("trivy",O,W),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(b,"topology",O=>{let W=n.files.filter($=>O.includes($.path));kt("topology",W,mt.EInstanceConfigView.POD,void 0,void 0)},()=>e.channelObject.frontChannels?.has("topology")??!1),h(b,"evict",Br),h(b,"logsearch",O=>{let $=n.files.filter(ee=>O.includes(ee.path)).map(ee=>`${ee.data?.origin?.metadata?.namespace}/${ee.data?.origin?.metadata?.name}`);as(void 0,$,`Pods (${$.length})`)})},Br=p=>{let y=n.files.filter(b=>p.includes(b.path));f((0,vt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,X.jsxs)(_e.Box,{children:["Are you sure you want to evict ",y[0].data.origin.kind," ",(0,X.jsx)("b",{children:y[0].data.origin.metadata.name}),"?"]}),f,b=>{b===vt.MsgBoxButtons.Yes&&y.map(O=>st("Pod",["evict",O.data.origin.metadata.namespace,O.data.origin.metadata.name]))}))},io=()=>{let p=_.get("Deployment");Sa(p,"status",rs),h(p,"scale",Ga),h(p,"restart",pa),h(p,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(p,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(p,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(p,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(p,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let y=_.get("DaemonSet");h(y,"restart",pa),h(y,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(y,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(y,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let b=_.get("ReplicaSet");h(b,"scale",Ga),h(b,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(b,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(b,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(b,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(b,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let O=_.get("ReplicationController");h(O,"restart",pa),h(O,"scale",Ga),h(O,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(O,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(O,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(O,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(O,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let W=_.get("StatefulSet");h(W,"scale",Ga),h(W,"restart",pa),h(W,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h(W,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h(W,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h(W,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h(W,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let $=_.get("Job");h($,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),h($,"metrics",J=>Ae(J,"metrics"),()=>e.channelObject.frontChannels?.has("metrics")??!1),h($,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),h($,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),h($,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let ee=_.get("CronJob");h(ee,"trigger",lo),h(ee,"suspend",Yr),h(ee,"resume",co)},zl=()=>{let p=_.get("Service");h(p,"topology",O=>Ae(O,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let y=_.get("Ingress");h(y,"topology",O=>Ae(O,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let b=_.get("IngressClass");h(b,"default",Vl)},rs=p=>{let y=n.files.find(O=>p===O.path);if(!y||!y.data?.origin?.status)return(0,X.jsx)(X.Fragment,{});let b="Stalled";return y.data.origin?.status?.conditions&&y.data.origin.status.conditions.length>0&&(y.data.origin.status.conditions.some(O=>O.type+O.status==="AvailableTrue")&&y.data.origin.status.conditions.some(O=>O.type+O.status==="ProgressingTrue")?b="Running":y.data.origin.status.conditions.some(O=>O.type+O.status==="AvailableFalse")&&y.data.origin.status.conditions.some(O=>O.type+O.status==="ProgressingTrue")&&(b="Scaling")),(0,X.jsx)(_e.Typography,{color:b==="Running"?"green":b==="Scaling"?"orange":"red",variant:"body2",children:b})},Ll=()=>{let p=(b,O)=>{let W=n.files.filter($=>b.includes($.path));if(W.length>=1){let $=qg(W[0].data.origin),ee="create-"+W[0].data.origin.spec.names.kind+"-"+at(),J={id:ee,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Create "+W[0].data.origin.spec.names.kind,isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:(Gr,cs)=>{st("apply",[Gr]),Lt(ee)},code:$,oldCode:void 0},onWindowChange:zn,onTop:bn,onMinimize:Xn,onClose:Lt,selectedFiles:[]};_n(J)}},y=_.get("CustomResourceDefinition");h(y,"instantiate",p)},pa=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length===1&&st("Controller",["restart",y[0].data.origin.kind,y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},Ga=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length===1&&(B(()=>b=>{b&&st("Controller",["scale",y[0].data.origin.kind,y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name,b])}),L("Enter scaling value"),oe(y[0].data.origin.spec.replicas),I("Scale "+y[0].data.origin.kind))},Ae=(p,y)=>{let b=n.files.filter(O=>p.includes(O.path));kt(y,b,mt.EInstanceConfigView.GROUP,void 0,void 0)},Vl=p=>{n.files.filter(b=>p.includes(b.path)).map(b=>st("IngressClass",["default",b.data.origin.metadata.name]))},$r=p=>{let y=n.files.filter(b=>p.includes(b.path));st("Node",["drain",y[0].data.origin.metadata.name])},so=()=>e.channelObject.frontChannels?.has("ops")?!0:(e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.WARNING,"A shell needs the Ops plugin: install it from \u2630 \u2192 Manage extensions \u2192 Plugins"),!1),qr=p=>{if(!so())return;let y=n.files.filter($=>p.includes($.path)),b="kwirth-node-shell-"+y[0].name,O="default";st("Node",["shell",y[0].data.origin.metadata.name,O,b]);let W=window.setInterval(async()=>{try{let $=n.files.find(ee=>ee.class==="Pod"&&ee.data.origin.metadata.namespace===O&&ee.data.origin.metadata.name===b);$&&$.data.origin.status.phase==="Running"&&(clearInterval(W),f((0,X.jsx)(X.Fragment,{})),kt("ops",[$],mt.EInstanceConfigView.CONTAINER,{nodeShell:!0},$.data.origin.spec.containers[0].name))}catch($){console.log($)}},1e3);f((0,vt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the node shell to start (pod '${b}' on namespace '${O}' is starting)...`,f,$=>{$===vt.MsgBoxButtons.Cancel&&clearInterval(W)}))},oo=p=>{let y=n.files.filter(b=>p.includes(b.path));st("Node",["cordon",y[0].data.origin.metadata.name])},Ur=p=>{let y=n.files.filter(b=>p.includes(b.path));st("Node",["uncordon",y[0].data.origin.metadata.name])},lo=p=>{let y=n.files.filter(b=>p.includes(b.path));st("CronJob",["trigger",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},Yr=p=>{let y=n.files.filter(b=>p.includes(b.path));st("CronJob",["suspend",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},co=p=>{let y=n.files.filter(b=>p.includes(b.path));st("CronJob",["resume",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},is=p=>{o.current?.changeFolder(p)},st=(p,y)=>{if(!e.channelObject.webSocket)return;let b={flow:mt.EInstanceMessageFlow.REQUEST,action:mt.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:mt.EInstanceMessageType.DATA,accessKey:e.channelObject.accessString,instance:e.channelObject.instanceId,id:at(),command:p,namespace:"",group:"",pod:"",container:"",params:y,msgtype:"magnifymessage"},O=JSON.stringify(b);e.channelObject.webSocket.send(O)},ss=(p,y)=>{e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.ERROR,p.message)},Wl=p=>{n.currentPath=p},Ka=(p,y,b)=>{let O=be(p,y,b);if(O.startsWith("//")){if(n.files.find($=>$.class==="crdInstance"&&$.data.origin.metadata.name===y&&$.data.origin.kind===p)){let $=`/custom/${p}/`+y+(b?":"+b:"");Ua([$],void 0);return}}else{let W=n.files.find($=>$.path===O);if(W){Ua([W.path],void 0);return}else if(p==="Image"){let $="docker.io/library/"+y;y.includes("/")&&($="docker.io/"+y);let ee=n.files.find(J=>J.class==="Image"&&J.data.origin?.names?.includes($));if(ee){Ua([ee.path],void 0);return}if(y.includes("@sha256:")){let J=y.indexOf("@sha256:"),Gr=y.substring(J).toLowerCase(),cs=n.files.find(Kr=>Kr.class==="Image"&&Kr.data.origin?.names?.some(ql=>ql.toLowerCase().endsWith(Gr)));if(cs){Ua([cs.path],void 0);return}}}}f((0,vt.MsgBoxOkError)("Object details",(0,X.jsxs)(_e.Box,{children:["Image '",(0,X.jsx)("b",{children:y}),"' has not been found on artifacts database. Maybe it exist but is stored with any kind of prefix"]}),f))},Hl=()=>ct(p=>p+1),Lt=p=>{let y=n.windows.findIndex(O=>O.id===p);if(y<0)return;n.windows.splice(y,1);let b=[...n.windows].reverse().find(O=>O.visible);b&&Zt(b.id),ct(O=>O+1)},Xn=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.visible=!1,y.atFront=!1,uo(),ct(b=>b+1))},bn=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.atTop=!y.atTop,ct(b=>b+1))},uo=()=>{let p;for(let y of n.windows)y.visible&&!y.atFront&&!y.atTop&&(p=y);p&&Zt(p.id)},os=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.visible?y.atFront?(y.visible=!1,y.atFront=!1,uo()):Zt(y.id):(y.visible=!0,Zt(y.id)),ct(b=>b+1))},mo=(p,y)=>{st("apply",[Xs.dump(y,{indent:2})])},Bl=(p,y,b)=>{let O=n.files.find(W=>W.path===y);if(O){switch(p){case"delete":ts([y]);break;case"edit":no([y]);break;case"browse":ao([y]);break;case"ops":kt("ops",[O],mt.EInstanceConfigView.CONTAINER,void 0,b);break;case"log":case"metrics":case"fileman":case"trivy":b==="*all"?kt(p,[O],mt.EInstanceConfigView.POD,void 0,void 0):kt(p,[O],mt.EInstanceConfigView.CONTAINER,void 0,b);break;case"evict":Br([y]);break;case"cordon":oo([y]);break;case"shell":qr([y]);break;case"uncordon":Ur([y]);break;case"drain":$r([y]);break;case"scale":Ga([y]);break;case"restart":pa([y]);break;case"trigger":lo([y]);break;case"suspend":Yr([y]);break;case"resume":co([y]);break}ct(W=>W+1)}},ls=(p,y,b)=>{b="Channel message: "+b},$l=p=>{let y=e.channelObject.frontChannels.get(p.data.channelId);return y?(0,eo.getChannelIconSafe)(y,p.data.channelId):(console.log("Inexistent channel:",p.data.channelId),(0,X.jsx)(X.Fragment,{}))},Ca=(p,y,b)=>{if(p.visible&&p.atFront===y&&p.atTop===b)switch(p.class){case"ContentDetails":return(0,X.jsx)(px,{onFocus:()=>Zt(p.id),...p},p.id);case"ArtifactSearch":return(0,X.jsx)(Bx,{onFocus:()=>Zt(p.id),...p},p.id);case"LogSearchPanel":return(0,X.jsx)($x,{onFocus:()=>Zt(p.id),...p,channelObject:e.channelObject,magnifyData:n},p.id);case"ContentBrowse":case"ContentEdit":return(0,X.jsx)(Lx,{onFocus:()=>Zt(p.id),...p},p.id);case"ContentExternal":return(0,X.jsx)(Kg,{onFocus:()=>Zt(p.id),...p},p.id);default:console.error("Invalid window class:",p.class)}};return n.started?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(v1,{channelObject:e.channelObject}),n.started&&(0,X.jsxs)(_e.Box,{ref:s,sx:{display:"flex",flexDirection:"column",overflowY:"auto",overflowX:"hidden",flexGrow:1,height:`${r}px`,ml:1,mr:1,mt:1},children:[(0,X.jsx)(I1.FileManager,{ref:o,files:n.files,spaces:_,rightItems:Fn,actions:hd,icons:Wn,initialPath:n.currentPath,layout:"list",enableFilePreview:!1,onCreateFolder:void 0,onError:ss,onRename:void 0,onPaste:void 0,onDelete:void 0,onFolderChange:Wl,onRefresh:void 0,permissions:a,filePreviewPath:"http://avoid-console-error",primaryColor:"#1976d2",fontFamily:"Roboto, Helvetica, Arial, sans-serif",height:"100%",className:"custom-fm-magnify",searchMode:"auto",searchRegex:!0,searchCasing:!0,showContextMenu:!1,showRefresh:!1,categories:ie,maxNavigationPaneLevel:2,minFileActionsLevel:2,openMode:"none"}),Te&&(0,X.jsx)(Ol,{channel:Q,file:H,onClose:()=>z(void 0),onContainerSelected:He,anchorParent:Te,includeAllContainers:ze}),ue&&(0,X.jsx)(b1,{onWorkSelected:qa,onClose:()=>R(void 0),anchorParent:ue,customActions:n.userPreferences.customActions}),ce&&(0,X.jsx)(S1,{onWorkSelected:Vr,onClose:()=>Ce(void 0),anchorParent:ce,customActions:n.userPreferences.customActions}),It&&(0,X.jsx)(T1.MenuNotification,{anchorParent:It,notifications:e.channelObject.notifications,onRefresh:()=>ct(p=>p+1),onClose:()=>Dt(void 0),renderIcon:p=>p?(0,eo.getChannelIconSafe)(e.channelObject.frontChannels.get(p),p):(0,eo.getIconFromKind)("IconK8s",20)}),(0,X.jsx)(_e.Stack,{direction:"row",sx:{mt:1},children:n.windows.map(p=>{let y=p.title||"notitle",b=y;b.length>20&&(b=b.substring(0,10)+"..."+b.substring(b.length-10));let O=jM[p.class]||(p.class==="ContentExternal"?$l(p):null),W=p.class==="ContentDetails"?y:p.title;return(0,X.jsx)(_e.Tooltip,{title:W,children:(0,X.jsxs)(_e.Button,{onClick:()=>os(p.id),children:[O,b]})},p.id)})})]}),m,(0,X.jsx)(JM,{title:g,default:U,message:C,onClose:()=>I(void 0),onResult:de,width:"300px",password:!0}),n.windows.map(p=>Ca(p,!1,!1)),n.windows.map(p=>Ca(p,!0,!1)),n.windows.map(p=>Ca(p,!1,!0)),n.windows.map(p=>Ca(p,!0,!0))]}):(0,X.jsxs)(_e.Box,{ref:l,sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",height:`calc(100vh - ${c}px - 8px)`,px:4},children:[(0,X.jsx)(_e.Typography,{variant:"h6",color:"text.secondary",sx:{mb:1},children:"Magnify not started"}),(0,X.jsx)(_e.Typography,{variant:"body2",color:"text.secondary",sx:{maxWidth:480},children:"Start the channel (tab settings \u2699 \u2192 Start) to explore your cluster."})]})};var es=k(Ot(),1);var Fl=class{constructor(){this.channelId="magnify";this.setupVisible=!1;this.SetupDialog=qm;this.TabContent=M1;this.tasks=[];this.requirements={accessString:!0,clusterUrl:!0,clusterInfo:!0,clusterManagement:!0,multiCluster:!0,exit:!0,frontChannels:!0,metrics:!0,notifier:!0,notifications:!0,setup:!1,settings:!1,palette:!0,userSettings:!0,webSocket:!0,backChannels:!0,openManager:!0};this.launchTasks=t=>{this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:at(),namespace:"",group:"",pod:"",container:"",command:"usage",action:Oe.EInstanceMessageAction.COMMAND,flow:Oe.EInstanceMessageFlow.REQUEST,type:Oe.EInstanceMessageType.DATA,channel:this.channelId,params:["cluster"]};t.webSocket&&t.webSocket.send(JSON.stringify(a))},15e3,t)),this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:at(),namespace:"",group:"",pod:"",container:"",command:"list",action:Oe.EInstanceMessageAction.COMMAND,flow:Oe.EInstanceMessageFlow.REQUEST,type:Oe.EInstanceMessageType.DATA,channel:this.channelId,params:["PodMetrics","NodeMetrics"]};t.webSocket&&t.webSocket.send(JSON.stringify(a))},3e4,t)),this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:n.accessString,instance:n.instanceId,id:at(),namespace:"",group:"",pod:"",container:"",command:"events",action:Oe.EInstanceMessageAction.COMMAND,flow:Oe.EInstanceMessageFlow.REQUEST,type:Oe.EInstanceMessageType.DATA,channel:this.channelId,params:["cluster","","","","25"]};n.webSocket&&n.webSocket.send(JSON.stringify(a))},1e4,t))}}getScope(){return"magnify$read"}getChannelIcon(){return $m}getSetupVisibility(){return this.setupVisible}setSetupVisibility(t){this.setupVisible=t}processChannelMessage(t,n){let a=JSON.parse(n.data),r=t.data;if(r.userPreferences.tracing&&(console.warn(new Date().toTimeString()),console.log(JSON.parse(n.data))),a.id&&r.pendingWebSocketRequests.has(a.id))return r.pendingWebSocketRequests.get(a.id)(n.data),r.pendingWebSocketRequests.delete(a.id),{action:Pn.EChannelRefreshAction.NONE};switch(a.type){case Oe.EInstanceMessageType.DATA:{let s=JSON.parse(n.data);switch(s.action){case Oe.EInstanceMessageAction.COMMAND:switch(s.command){case"clusterinfo":let o=JSON.parse(s.data);r.clusterInfo=o;break;case"usage":let l=JSON.parse(s.data);r.metricsProviderMissing=l.metricsProvider===!1,r.eventsProviderMissing=l.eventsProvider===!1,r.metricsProviderMissing||(l.timestamp=new Date().toLocaleTimeString("en-GB"),r.metricsCluster.push(l),r.metricsCluster.length>50&&r.metricsCluster.shift()),t.data?.refreshUsage?.();break;case"Pod":JSON.parse(s.data)[0];break;case"list":case"listcrd":let d=JSON.parse(s.data);return d.kind.endsWith("List")?d.items&&d.items.forEach?d.items.forEach(f=>this.loadObject("NONE",t,d.kind.replace("List",""),r,f)):console.log(d):t.notify?.(this.channelId,es.ENotifyLevel.ERROR,"Unexpected list: "+d.kind),r.files=[...r.files],{action:Pn.EChannelRefreshAction.REFRESH};case"events":let m=JSON.parse(s.data);if(m.type==="cluster"&&m.events)for(let f of m.events){let g=!1;for(let I of r.clusterEvents)if(qs(I,f)){g=!0;break}g||(r.clusterEvents.push(f),r.clusterEvents=r.clusterEvents.sort((I,C)=>Date.parse(C.eventTime||C.lastTimestamp||C.firstTimestamp)-Date.parse(I.eventTime||I.lastTimestamp||I.firstTimestamp)))}else if(m.events){m.events=m.events.sort((f,g)=>Date.parse(g.eventTime||g.lastTimestamp||g.firstTimestamp)-Date.parse(f.eventTime||f.lastTimestamp||f.firstTimestamp));for(let f of m.events){let g=be(f.involvedObject.kind,f.involvedObject.name,f.involvedObject.namespace),I=r.files.find(C=>C.path===g);(I&&I?.data.origin.metadata.namespace===f.involvedObject.namespace||I&&!f.involvedObject.namespace)&&(I.data.events||(I.data.events={},I.data.events.list=[]),I.data.events.list.push(f))}r.files=[...r.files]}return{action:Pn.EChannelRefreshAction.REFRESH};case"k8event":switch(s.event){case"ADDED":case"MODIFIED":this.loadObject(s.event,t,s.data.kind,r,s.data),r.files=[...r.files];break;case"DELETED":"Namespace Node".includes(s.data.kind)&&r.updateCategoryValues&&r.updateCategoryValues(s.data.kind,"DELETED",s.data.metadata.name);let f=be(s.data.kind,s.data.metadata.name,s.data.metadata.namespace);if(f.startsWith("//"))r.files=r.files.filter(g=>g.path!=="/custom/"+s.data.kind+"/"+s.data.metadata.name+(s.data.metadata.namespace?":"+s.data.metadata.namespace:""));else if(r.files=r.files.filter(g=>g.path!==f),f.startsWith("/custom/CustomResourceDefinition/")){let g=s.data?.spec?.names?.kind;g&&(r.files=r.files.filter(I=>!I.path.startsWith(`/custom/${g}/`)),r.files=r.files.filter(I=>I.path!==`/custom/${g}`))}break}return{action:Pn.EChannelRefreshAction.REFRESH};case"delete":{console.log("DEL",s.data);let f=JSON.parse(s.data);return f.status==="Success"||t.notify?.(this.channelId,es.ENotifyLevel.ERROR,"ERROR: "+(f.text||f.message)),{action:Pn.EChannelRefreshAction.REFRESH}}case"create":{let f=JSON.parse(s.data);return f.status==="Success"?t.notify?.(this.channelId,es.ENotifyLevel.INFO,"Created: "+(f.text||f.message)):t.notify?.(this.channelId,es.ENotifyLevel.ERROR,"ERROR: "+(f.text||f.message)),{action:Pn.EChannelRefreshAction.REFRESH}}case"logsearch":{let f=JSON.parse(s.data);return f.type==="result"?r.logSearchResults=[...r.logSearchResults,{namespace:f.namespace,pod:f.pod,container:f.container,lines:f.lines}]:f.type==="done"&&(r.logSearchDone=!0),{action:Pn.EChannelRefreshAction.REFRESH}}}}return{action:Pn.EChannelRefreshAction.NONE}}case Oe.EInstanceMessageType.SIGNAL:let i=JSON.parse(n.data);if(i.flow===Oe.EInstanceMessageFlow.RESPONSE)if(i.action===Oe.EInstanceMessageAction.START){if(i.level===Oe.ESignalMessageLevel.ERROR)return t.notify?.(this.channelId,es.ENotifyLevel.ERROR,i.text||"Magnify could not be started"),{action:Pn.EChannelRefreshAction.NONE};t.instanceId=i.instance,setTimeout(()=>{ZM(t),Nm(t),XM(t)},300)}else i.action===Oe.EInstanceMessageAction.COMMAND&&i.text&&t.notify?.(this.channelId,i.level,i.text);else i.flow===Oe.EInstanceMessageFlow.UNSOLICITED&&(i.event===Oe.ESignalMessageEvent.ADD||i.event===Oe.ESignalMessageEvent.DELETE||i.text&&t.notify?.(this.channelId,i.level,i.text));return{action:Pn.EChannelRefreshAction.REFRESH};default:return console.log(`Invalid message type ${a.type}`),{action:Pn.EChannelRefreshAction.NONE}}}async initChannel(t){let n=new fo;return t.instanceConfig=new po,t.config=n,t.data=new go,t.readChannelUserPreferences&&(t.data.userPreferences=await t.readChannelUserPreferences(this.channelId)),t.data.userPreferences||(t.data.userPreferences=new ei),!1}startChannel(t){let n=t.data;return n.paused=!1,n.started=!0,n.files=n.files.filter(a=>a.isDirectory&&a.path.split("/").length-1<=2),n.files=n.files.filter(a=>a.class!=="crdGroup"),n.currentPath="/overview",this.launchTasks(t),!0}pauseChannel(t){let n=t.data;return n.paused=!0,!1}continueChannel(t){let n=t.data;return n.paused=!1,!0}stopChannel(t){let n=t.data;return n.paused=!1,n.started=!1,this.tasks.forEach(a=>clearInterval(a)),this.tasks=[],!0}onClusterSwitch(t){let n=t.data;n&&(n.clusterInfo=void 0,n.clusterEvents=[],n.metricsCluster=[],n.started=!1,n.currentPath="/overview",n.pendingWebSocketRequests=new Map)}socketDisconnected(t){return!1}socketReconnect(t){return!1}loadObject(t,n,a,r,i){i.metadata?.managedFields&&(r.userPreferences.dataManagedFields||delete i.metadata.managedFields),a==="Pod"?this.loadPod(r,i):a==="ConfigMap"?this.loadConfigMap(r,i):a==="Secret"?this.loadSecret(r,i):a==="ResourceQuota"?this.loadResourceQuota(r,i):a==="LimitRange"?this.loadLimitRange(r,i):a==="HorizontalPodAutoscaler"?this.loadHorizontalPodAutoscaler(r,i):a==="PodDisruptionBudget"?this.loadPodDisruptionBudget(r,i):a==="PriorityClass"?this.loadPriorityClass(r,i):a==="RuntimeClass"?this.loadRuntimeClass(r,i):a==="Lease"?this.loadLease(r,i):a==="ValidatingWebhookConfiguration"?this.loadValidatingWebhookConfiguration(r,i):a==="MutatingWebhookConfiguration"?this.loadMutatingWebhookConfiguration(r,i):a==="Namespace"?this.loadNamespace(r,i):a==="Node"?this.loadNode(r,i):a==="Service"?this.loadService(r,i):a==="Endpoints"?this.loadEndpoints(r,i):a==="Ingress"?this.loadIngress(r,i):a==="IngressClass"?this.loadIngressClass(r,i):a==="NetworkPolicy"?this.loadNetworkPolicy(r,i):a==="Deployment"?this.loadDeployment(r,i):a==="DaemonSet"?this.loadDaemonSet(r,i):a==="ReplicaSet"?this.loadReplicaSet(r,i):a==="ReplicationController"?this.loadReplicationController(r,i):a==="StatefulSet"?this.loadStatefulSet(r,i):a==="Job"?this.loadJob(r,i):a==="CronJob"?this.loadCronJob(r,i):a==="PersistentVolumeClaim"?this.loadPersistentVolumeClaim(r,i):a==="PersistentVolume"?this.loadPersistentVolume(r,i):a==="StorageClass"?this.loadStorageClass(r,i):a==="VolumeAttachment"?this.loadVolumeAttachment(r,i):a==="CSIDriver"?this.loadCSIDriver(r,i):a==="CSINode"?this.loadCSINode(r,i):a==="CSIStorageCapacity"?this.loadCSIStorageCapacity(r,i):a==="ServiceAccount"?this.loadServiceAccount(r,i):a==="ClusterRole"?this.loadClusterRole(r,i):a==="Role"?this.loadRole(r,i):a==="ClusterRoleBinding"?this.loadClusterRoleBinding(r,i):a==="RoleBinding"?this.loadRoleBinding(r,i):a==="V1APIResource"?this.loadApiResource(r,i):a==="CustomResourceDefinition"?this.loadCustomResourceDefinition(n,r,i):a==="PodMetrics"?this.loadPodMetrics(r,i):a==="NodeMetrics"?this.loadNodeMetrics(r,i):a==="ComponentStatus"?this.loadComponentStatus(r,i):a==="Event"||this.loadCustomResourceDefinitionInstance(r,i)||console.log("*** ERR INVALID Kind:",a)}upsertObject(t,n){let a=t.files.findIndex(r=>r.path===n.path);a>=0?t.files[a]=n:t.files.push(n)}loadNamespace(t,n){n.apiVersion="v1",n.kind="Namespace",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("Namespace",n.metadata.name,void 0),class:"Namespace",data:{creationTimestamp:n.metadata.creationTimestamp,status:n.status?.phase,origin:n}}),t.updateCategoryValues&&t.updateCategoryValues("Namespace","ADD",n.metadata.name)}loadConfigMap(t,n){n.apiVersion="v1",n.kind="ConfigMap",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ConfigMap",n.metadata.name,n.metadata.namespace),class:"ConfigMap",data:{namespace:n.metadata.namespace,keys:n.data?Object.keys(n.data).join(", "):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadSecret(t,n){!t.userPreferences.dataHelm&&n.metadata.name.startsWith("sh.helm.release.")||(n.apiVersion="v1",n.kind="Secret",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Secret",n.metadata.name,n.metadata.namespace),class:"Secret",data:{namespace:n.metadata.namespace,keys:n.data?Object.keys(n.data).join(", "):"",creationTimestamp:n.metadata.creationTimestamp,type:n.type,origin:n}}))}loadResourceQuota(t,n){n.apiVersion="v1",n.kind="ResourceQuota",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ResourceQuota",n.metadata.name,n.metadata.namespace),class:"ResourceQuota",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadLimitRange(t,n){n.apiVersion="v1",n.kind="LimitRange",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("LimitRange",n.metadata.name,n.metadata.namespace),class:"LimitRange",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadHorizontalPodAutoscaler(t,n){n.apiVersion="autoscaling/v2",n.kind="HorizontalPodAutoscaler",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("HorizontalPodAutoscaler",n.metadata.name,n.metadata.namespace),class:"HorizontalPodAutoscaler",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPodDisruptionBudget(t,n){n.apiVersion="policy/v1",n.kind="PodDisruptionBudget";let a=t.files.find(r=>r.class==="Pod"&&r.data.origin.metadata.name===n.metadata.name&&r.data.origin.metadata.namespace===n.metadata.namespace);this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PodDisruptionBudget",n.metadata.name,n.metadata.namespace),class:"PodDisruptionBudget",data:{...a?.data?{cpu:a.data.cpu,memory:a.data.memory}:{},namespace:n.metadata.namespace,minAvailable:n.spec.minAvailable||"",maxUnavailable:n.spec.maxUnavailable||"",currentHealthy:n.status.currentHealthy,desiredHealthy:n.status.desiredHealthy,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPriorityClass(t,n){n.apiVersion="scheduling.k8s.io/v1",n.kind="PriorityClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PriorityClass",n.metadata.name,n.metadata.namespace),class:"PriorityClass",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRuntimeClass(t,n){n.apiVersion="node.k8s.io/v1",n.kind="RuntimeClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("RuntimeClass",n.metadata.name,n.metadata.namespace),class:"RuntimeClass",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadLease(t,n){n.apiVersion="node.k8s.io/v1",n.kind="Lease",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Lease",n.metadata.name,n.metadata.namespace),class:"Lease",data:{namespace:n.metadata.namespace,holder:n.spec.holderIdentity,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadValidatingWebhookConfiguration(t,n){n.apiVersion="admissionregistration.k8s.io/v1",n.kind="ValidatingWebhookConfiguration",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ValidatingWebhookConfiguration",n.metadata.name,void 0),class:"ValidatingWebhookConfiguration",data:{webhooks:n.webhooks.length,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadMutatingWebhookConfiguration(t,n){n.apiVersion="admissionregistration.k8s.io/v1",n.kind="MutatingWebhookConfiguration",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("MutatingWebhookConfiguration",n.metadata.name,void 0),class:"MutatingWebhookConfiguration",data:{webhooks:n.webhooks.length,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadNode(t,n){n.apiVersion="v1",n.kind="Node";let a=[];Object.keys(n.metadata.labels).forEach(i=>{i.startsWith("node-role.kubernetes.io")&&n.metadata.labels[i]==="true"&&a.push(i.substring(24))}),n.status.capacity.cpu=Ys(n.status.capacity.cpu),n.status.allocatable.cpu=Ys(n.status.allocatable.cpu),n.status.capacity.memory=Kn(n.status.capacity.memory),n.status.allocatable.memory=Kn(n.status.allocatable.memory);let r=t.files.find(i=>i.class==="Node"&&i.data.origin.metadata.name===n.metadata?.name);this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("Node",n.metadata.name,void 0),class:"Node",data:{...r?.data?{cpu:r.data.cpu,memory:r.data.memory}:{},creationTimestamp:n.metadata.creationTimestamp,taints:n.spec.taints?n.spec.taints.length:0,roles:a.join(","),conditions:n.spec.unschedulable===!0?"Unschedulable":n.status.conditions.filter(i=>i.status==="True").map(i=>i.type).join(" "),version:n.status.nodeInfo.kubeletVersion,origin:n}}),t.updateCategoryValues&&t.updateCategoryValues("Node","ADD",n.metadata.name);for(let i of t.files.filter(s=>s.class==="Image")){let s=i.data.origin.nodes.indexOf(n.metadata.name);s>=0&&i.data.origin.nodes.splice(s,1)}t.files=t.files.filter(i=>!(i.class==="Image"&&i.data.origin.nodes.length===0));for(let i of n.status?.images){let s=i.sizeBytes,o=[];i.names?(o=i.names.filter(c=>!c.includes("@")),o.length===0&&(o=i.names)):o=["*unnamed"];let l=t.files.find(c=>c.path==="/cluster/Image/"+o[0]);if(l)l.data.origin.nodes.includes(n.metadata.name)||l.data.origin.nodes.push(n.metadata.name);else{let c,d,m,f,g=/^(?:((?:[a-z0-9-]+\.)+[a-z0-9]+(?::\d+)?)\/)?((?:[a-z0-9._-]+\/)*[a-z0-9._-]+)(?::([a-z0-9._-]+))?(?:@(sha256:[a-f0-9]{64}))?$/i;if(i.names)for(let C of i.names){let L=C.match(g);L&&(c||(c=L[1]),d||(d=L[2]),m||(m=L[3]),f||(f=L[4]))}let I={name:o[0],displayName:d,isDirectory:!1,path:"/cluster/Image/"+o[0],class:"Image",data:{size:s,tag:m,origin:{kind:"Image",metadata:{name:o[0]},name:o[0],displayName:o[0],registry:c,tag:m,sha:f,names:i.names,nodes:[n.metadata.name]}}};t.files.push(I)}}}loadNodeMetrics(t,n){let a=n.metadata?.name,r=t.files.find(i=>i.class==="Node"&&i.data.origin.metadata.name===a);if(r){let i=r.data.origin.status.capacity.cpu;r.data.cpu=(Ys(n.usage.cpu)/i*100).toFixed(2)+"%",r.data.memory=(Kn(n.usage.memory)/r.data.origin.status.capacity.memory*100).toFixed(2)+"%"}}loadService(t,n){n.apiVersion="v1",n.kind="Service",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Service",n.metadata.name,n.metadata.namespace),class:"Service",data:{namespace:n.metadata.namespace,type:n.spec.type,clusterIp:n.spec.clusterIP,ports:n.spec?.ports?.map(a=>a.port+"/"+a.protocol).join(",")||"-",externalIp:n.status?.loadBalancer?.ingress?.map(a=>a.ip).join(",")||"-",selector:"#",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadEndpoints(t,n){n.apiVersion="v1",n.kind="Endpoints",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Endpoints",n.metadata.name,n.metadata.namespace),class:"Endpoints",data:{namespace:n.metadata.namespace,endpoints:n.subsets?n.subsets?.map(a=>a.addresses?.map(r=>a.ports?.map(i=>r.ip+":"+i.port)).join(",")):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadIngress(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="Ingress",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Ingress",n.metadata.name,n.metadata.namespace),class:"Ingress",data:{namespace:n.metadata.namespace,loadBalancers:n.status?.loadBalancer?.ingress?.map(a=>a.ip).join(","),rules:"#",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadIngressClass(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="IngressClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("IngressClass",n.metadata.name,n.metadata.namespace),class:"IngressClass",data:{namespace:n.metadata.namespace,controller:n.spec.controller,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadNetworkPolicy(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="NetworkPolicy",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("NetworkPolicy",n.metadata.name,n.metadata.namespace),class:"NetworkPolicy",data:{namespace:n.metadata.namespace,policyTypes:n.spec.policyTypes?n.spec.policyTypes.join(","):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadDeployment(t,n){n.apiVersion="apps/v1",n.kind="Deployment",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Deployment",n.metadata.name,n.metadata.namespace),class:"Deployment",data:{namespace:n.metadata.namespace,pods:(n.status.readyReplicas||0)+"/"+(n.status.replicas||0),replicas:n.status.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadDaemonSet(t,n){n.apiVersion="apps/v1",n.kind="DaemonSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("DaemonSet",n.metadata.name,n.metadata.namespace),class:"DaemonSet",data:{namespace:n.metadata.namespace,desired:n.status.desiredNumberScheduled,current:n.status.currentNumberScheduled,ready:n.status.numberReady,upToDate:n.status.updatedNumberScheduled,available:n.status.numberAvailable,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadReplicaSet(t,n){n.apiVersion="apps/v1",n.kind="ReplicaSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ReplicaSet",n.metadata.name,n.metadata.namespace),class:"ReplicaSet",data:{namespace:n.metadata.namespace,desired:n.status.replicas||0,current:n.status.availableReplicas||0,ready:n.status.readyReplicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadReplicationController(t,n){n.apiVersion="v1",n.kind="ReplicationController",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ReplicationController",n.metadata.name,n.metadata.namespace),class:"ReplicationController",data:{namespace:n.metadata.namespace,replicas:n.status.replicas||0,desired:n.spec.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadStatefulSet(t,n){n.apiVersion="apps/v1",n.kind="StatefulSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("StatefulSet",n.metadata.name,n.metadata.namespace),class:"StatefulSet",data:{namespace:n.metadata.namespace,pods:(n.status.readyReplicas||0)+"/"+(n.status.replicas||0),replicas:n.spec.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadJob(t,n){n.apiVersion="batch/v1",n.kind="Job",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Job",n.metadata.name,n.metadata.namespace),class:"Job",data:{namespace:n.metadata.namespace,completions:n.spec.completions+"/"+n.spec.parallelism,conditions:n.status.conditions?n.status.conditions.filter(a=>a.status.toLowerCase()==="true").map(a=>a.name):"-",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCronJob(t,n){n.apiVersion="batch/v1",n.kind="CronJob",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("CronJob",n.metadata.name,n.metadata.namespace),class:"CronJob",data:{namespace:n.metadata.namespace,schedule:n.spec.schedule,suspend:n.spec.suspend||"-",active:"-",lastSchedule:n.status.lastScheduleTime,nextExecution:"-",timezone:"-",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPersistentVolumeClaim(t,n){n.apiVersion="v1",n.kind="PersistentVolumeClaim",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PersistentVolumeClaim",n.metadata.name,n.metadata.namespace),class:"PersistentVolumeClaim",data:{namespace:n.metadata.namespace,storageClass:n.spec.storageClassName,size:n.status?.capacity?.storage?Kn(n.status?.capacity?.storage):0,creationTimestamp:n.metadata.creationTimestamp,status:n.status.phase,origin:n}})}loadPersistentVolume(t,n){n.apiVersion="v1",n.kind="PersistentVolume",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("PersistentVolume",n.metadata.name,void 0),class:"PersistentVolume",data:{storageClass:n.spec?.storageClassName,size:n.status?.capacity?.storage?Kn(n.status?.capacity?.storage):0,claim:n.spec?.claimRef?.name,creationTimestamp:n.metadata?.creationTimestamp,status:n.status?.phase,origin:n}})}loadStorageClass(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="StorageClass",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("StorageClass",n.metadata.name,void 0),class:"StorageClass",data:{provisioner:n.provisioner,reclaimPolicy:n.reclaimPolicy,default:(n.metadata?.annotations&&n.metadata.annotations["storageclass.kubernetes.io/is-default-class"]==="true"?"Yes":"")||"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadVolumeAttachment(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="VolumeAttachment",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("VolumeAttachment",n.metadata.name,void 0),class:"VolumeAttachment",data:{attacher:n.spec.attacher,nodeName:n.spec.nodeName,source:n.spec.source?.persistentVolumeName||"",status:n.status.attached?"attached":"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSIDriver(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSIDriver",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSIDriver",n.metadata.name,void 0),class:"CSIDriver",data:{attachRequired:n.spec.attachRequired?"Yes":"No",storageCapacity:n.spec.storageCapacity?"Yes":"No",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSINode(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSINode",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSINode",n.metadata.name,void 0),class:"CSINode",data:{drivers:n.spec.drivers?.map(a=>a.name).join(","),creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSIStorageCapacity(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSIStorageCapacity",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSIStorageCapacity",n.metadata.name,void 0),class:"CSIStorageCapacity",data:{creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadServiceAccount(t,n){n.apiVersion="v1",n.kind="ServiceAccount",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ServiceAccount",n.metadata.name,n.metadata.namespace),class:"ServiceAccount",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadClusterRole(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="ClusterRole",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ClusterRole",n.metadata.name,void 0),class:"ClusterRole",data:{creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRole(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="Role",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Role",n.metadata.name,n.metadata.namespace),class:"Role",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadClusterRoleBinding(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="ClusterRoleBinding",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ClusterRoleBinding",n.metadata.name,void 0),class:"ClusterRoleBinding",data:{bindings:n.subjects?n.subjects.map(a=>a.name).join(","):"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRoleBinding(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="RoleBinding",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("RoleBinding",n.metadata.name,n.metadata.namespace),class:"RoleBinding",data:{namespace:n.metadata.namespace,bindings:n.subjects?n.subjects.map(a=>a.name).join(","):"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadApiResource(t,n){n.kindName=n.kind,n.metadata={name:n.kind},n.apiVersion="v1",n.kind="V1APIResource",this.upsertObject(t,{name:n.name,isDirectory:!1,path:be("V1APIResource",n.name,void 0),class:"V1APIResource",data:{kind:n.kindName,singular:n.singularName,namespaced:n.namespaced?"Yes":"",origin:n}})}loadPod(t,n){n.apiVersion="v1",n.kind="Pod",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Pod",n.metadata.name,n.metadata.namespace),class:"Pod",data:{namespace:n.metadata.namespace,controller:n.metadata.ownerReferences&&n.metadata.ownerReferences.length>0?n.metadata.ownerReferences[0].kind:"-",node:n.spec.nodeName,startTime:n.status.startTime,status:n.metadata.deletionTimestamp?"Terminating":n.status.phase,restartCount:n.status.containerStatuses?.reduce((a,r)=>a+=r.restartCount,0)||0,origin:n}})}loadPodMetrics(t,n){let a=n.metadata.name,r=n.metadata.namespace,i=t.files.find(s=>s.class==="Pod"&&s.data.origin.metadata.name===a&&s.data.origin.metadata.namespace===r);i&&(i.data.metrics=n,i.data.cpu=n.containers.reduce((s,o)=>s+Ys(o.usage.cpu),0),i.data.cpu=i.data.cpu.toFixed(3),i.data.memory=n.containers.reduce((s,o)=>s+Kn(o.usage.memory),0))}loadComponentStatus(t,n){n.apiVersion="v1",n.kind="ComponentStatus",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ComponentStatus",n.metadata.name,void 0),class:"ComponentStatus",data:{status:n.conditions[0].status,message:n.conditions[0].message,origin:n}})}loadCustomResourceDefinition(t,n,a){a.apiVersion="apiextensions.k8s.io/v1",a.kind="CustomResourceDefinition";let r=a.spec.versions&&a.spec.versions.length>0?a.spec.versions[0].name:"-";this.upsertObject(n,{name:a.metadata.name,displayName:a.metadata.name,isDirectory:!1,path:be("CustomResourceDefinition",a.metadata.name,a.metadata.namespace),class:"CustomResourceDefinition",data:{group:a.spec.group,version:r,scope:a.spec.scope,creationTimestamp:a.metadata.creationTimestamp,origin:a}});let i={name:a.spec.names.kind,isDirectory:!0,path:"/custom/"+a.spec.names.kind,class:"crdGroup",children:"crdInstance"};if(a.spec.scope==="Namespaced"&&(i.categories=["namespace"],i.children="crdNamespacedInstance"),this.upsertObject(n,i),a.spec.versions&&a.spec.versions.length>0){let s={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:at(),namespace:"",group:"",pod:"",container:"",command:"listcrd",action:Oe.EInstanceMessageAction.COMMAND,flow:Oe.EInstanceMessageFlow.REQUEST,type:Oe.EInstanceMessageType.DATA,channel:this.channelId,params:[a.spec.group,a.spec.versions[0].name,a.spec.names.plural]};t.webSocket.send(JSON.stringify(s))}}loadCustomResourceDefinitionInstance(t,n){return this.upsertObject(t,{name:n.metadata.name+(n.metadata.namespace?":"+n.metadata.namespace:""),displayName:n.metadata.name,isDirectory:!1,path:"/custom/"+n.kind+"/"+n.metadata.name+(n.metadata.namespace?":"+n.metadata.namespace:""),class:"crdInstance",data:{namespace:n.metadata.namespace,source:n.spec?.source,checksum:n.spec?.checksum,creationTimestamp:n.metadata.creationTimestamp,origin:n}}),!0}},be=(e,t,n)=>{let a="";return" V1APIResource Node Namespace ComponentStatus Image ".includes(" "+e+" ")&&(a="cluster")," Pod Deployment DaemonSet ReplicaSet ReplicationController StatefulSet Job CronJob ".includes(" "+e+" ")&&(a="workload")," ConfigMap Secret ResourceQuota LimitRange HorizontalPodAutoscaler PodDisruptionBudget PriorityClass RuntimeClass Lease ValidatingWebhookConfiguration MutatingWebhookConfiguration ".includes(" "+e+" ")&&(a="config")," Service Endpoints Ingress IngressClass NetworkPolicy ".includes(" "+e+" ")&&(a="network")," PersistentVolumeClaim PersistentVolume StorageClass VolumeAttachment CSINode CSIDriver CSIStorageCapacity ".includes(" "+e+" ")&&(a="storage")," ServiceAccount ClusterRole Role ClusterRoleBinding RoleBinding ".includes(" "+e+" ")&&(a="access")," CustomResourceDefinition ".includes(" "+e+" ")&&(a="custom")," V1APIResource Node Namespace V1APIResource Image ComponentStatus ValidatingWebhookConfiguration MutatingWebhookConfiguration PersistentVolume StorageClass VolumeAttachment CSINode CSIDriver CSIStorageCapacity ClusterRole ClusterRoleBinding CustomResourceDefinition ".includes(" "+e+" ")?"/"+a+"/"+e+"/"+t:"/"+a+"/"+e+"/"+t+":"+n},ZM=e=>{let t={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:at(),namespace:"",group:"",pod:"",container:"",command:"clusterinfo",action:Oe.EInstanceMessageAction.COMMAND,flow:Oe.EInstanceMessageFlow.REQUEST,type:Oe.EInstanceMessageType.DATA,channel:e.channelId,params:[]};e.webSocket.send(JSON.stringify(t))},Nm=async e=>{for(let t=1;t<10;t++){let a=e.data.userPreferences?.dataConfig?.source.filter(i=>i.priority===t).map(i=>i.name);if(a.length===0)break;let r={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:at(),namespace:"",group:"",pod:"",container:"",command:"list",action:Oe.EInstanceMessageAction.COMMAND,flow:Oe.EInstanceMessageFlow.REQUEST,type:Oe.EInstanceMessageType.DATA,channel:e.channelId,params:[...a]};e.webSocket.send(JSON.stringify(r)),await new Promise(i=>setTimeout(i,250))}},XM=e=>{let t=e.data,n={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:at(),namespace:"",group:"",pod:"",container:"",command:"subscribe",action:Oe.EInstanceMessageAction.COMMAND,flow:Oe.EInstanceMessageFlow.REQUEST,type:Oe.EInstanceMessageType.DATA,channel:e.channelId,params:t.userPreferences?.dataConfig?.sync.map(a=>a.name)};e.webSocket.send(JSON.stringify(n))};for(let[e,t]of[["kwirth-plugin-magnify-css",Fm],["kwirth-plugin-magnify-resizable-css",_m]]){if(document.getElementById(e))continue;let n=document.createElement("style");n.id=e,n.textContent=t,document.head.appendChild(n)}window.__kwirth_plugins__||(window.__kwirth_plugins__={});window.__kwirth_plugins__.magnify=Fl;})();
814
814
  /*! Bundled license information:
815
815
 
816
816
  react/cjs/react-jsx-runtime.production.min.js: