@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.39 → 0.0.1-alpha.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- (function(oe,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("react"),require("antd"),require("@ant-design/icons"),require("@tanstack/react-query"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","@ant-design/icons","@tanstack/react-query","react-router-dom"],Z):(oe=typeof globalThis<"u"?globalThis:oe||self,Z(oe["@prorobotech/openapi-k8s-toolkit"]={},oe.React,oe.antd,oe.antdIcons,oe.reactQuery,oe.ReactRouterDOM))})(this,function(oe,Z,q,wn,bn,lr){"use strict";function w1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var af={exports:{}},Ut=af.exports={},fr,hr;function Au(){throw new Error("setTimeout has not been defined")}function Su(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?fr=setTimeout:fr=Au}catch{fr=Au}try{typeof clearTimeout=="function"?hr=clearTimeout:hr=Su}catch{hr=Su}})();function uf(e){if(fr===setTimeout)return setTimeout(e,0);if((fr===Au||!fr)&&setTimeout)return fr=setTimeout,setTimeout(e,0);try{return fr(e,0)}catch{try{return fr.call(null,e,0)}catch{return fr.call(this,e,0)}}}function b1(e){if(hr===clearTimeout)return clearTimeout(e);if((hr===Su||!hr)&&clearTimeout)return hr=clearTimeout,clearTimeout(e);try{return hr(e)}catch{try{return hr.call(null,e)}catch{return hr.call(this,e)}}}var Sr=[],Pi=!1,ui,Oo=-1;function v1(){!Pi||!ui||(Pi=!1,ui.length?Sr=ui.concat(Sr):Oo=-1,Sr.length&&cf())}function cf(){if(!Pi){var e=uf(v1);Pi=!0;for(var t=Sr.length;t;){for(ui=Sr,Sr=[];++Oo<t;)ui&&ui[Oo].run();Oo=-1,t=Sr.length}ui=null,Pi=!1,b1(e)}}Ut.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Sr.push(new lf(e,t)),Sr.length===1&&!Pi&&uf(cf)};function lf(e,t){this.fun=e,this.array=t}lf.prototype.run=function(){this.fun.apply(null,this.array)},Ut.title="browser",Ut.browser=!0,Ut.env={},Ut.argv=[],Ut.version="",Ut.versions={};function Er(){}Ut.on=Er,Ut.addListener=Er,Ut.once=Er,Ut.off=Er,Ut.removeListener=Er,Ut.removeAllListeners=Er,Ut.emit=Er,Ut.prependListener=Er,Ut.prependOnceListener=Er,Ut.listeners=function(e){return[]},Ut.binding=function(e){throw new Error("process.binding is not supported")},Ut.cwd=function(){return"/"},Ut.chdir=function(e){throw new Error("process.chdir is not supported")},Ut.umask=function(){return 0};var A1=af.exports;const et=w1(A1);var vn=function(){return vn=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},vn.apply(this,arguments)};function Ri(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,a;i<o;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function S1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var E1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,x1=S1(function(e){return E1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It="-ms-",Ts="-moz-",gt="-webkit-",ff="comm",Io="rule",xu="decl",C1="@import",_1="@namespace",hf="@keyframes",k1="@layer",df=Math.abs,Cu=String.fromCharCode,_u=Object.assign;function T1(e,t){return Yt(e,0)^45?(((t<<2^Yt(e,0))<<2^Yt(e,1))<<2^Yt(e,2))<<2^Yt(e,3):0}function pf(e){return e.trim()}function xr(e,t){return(e=t.exec(e))?e[0]:e}function Je(e,t,n){return e.replace(t,n)}function Fo(e,t,n){return e.indexOf(t,n)}function Yt(e,t){return e.charCodeAt(t)|0}function ci(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function gf(e){return e.length}function Os(e,t){return t.push(e),e}function O1(e,t){return e.map(t).join("")}function yf(e,t){return e.filter(function(n){return!xr(n,t)})}var Bo=1,Li=1,mf=0,Ln=0,Jt=0,Ni="";function Do(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:Bo,column:Li,length:u,return:"",siblings:l}}function Mr(e,t){return _u(Do("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ji(e){for(;e.root;)e=Mr(e.root,{children:[e]});Os(e,e.siblings)}function I1(){return Jt}function F1(){return Jt=Ln>0?Yt(Ni,--Ln):0,Li--,Jt===10&&(Li=1,Bo--),Jt}function Zn(){return Jt=Ln<mf?Yt(Ni,Ln++):0,Li++,Jt===10&&(Li=1,Bo++),Jt}function Ur(){return Yt(Ni,Ln)}function Po(){return Ln}function Ro(e,t){return ci(Ni,e,t)}function Is(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function B1(e){return Bo=Li=1,mf=Qn(Ni=e),Ln=0,[]}function D1(e){return Ni="",e}function ku(e){return pf(Ro(Ln-1,Tu(e===91?e+2:e===40?e+1:e)))}function P1(e){for(;(Jt=Ur())&&Jt<33;)Zn();return Is(e)>2||Is(Jt)>3?"":" "}function R1(e,t){for(;--t&&Zn()&&!(Jt<48||Jt>102||Jt>57&&Jt<65||Jt>70&&Jt<97););return Ro(e,Po()+(t<6&&Ur()==32&&Zn()==32))}function Tu(e){for(;Zn();)switch(Jt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&Tu(Jt);break;case 40:e===41&&Tu(e);break;case 92:Zn();break}return Ln}function L1(e,t){for(;Zn()&&e+Jt!==57;)if(e+Jt===84&&Ur()===47)break;return"/*"+Ro(t,Ln-1)+"*"+Cu(e===47?e:Zn())}function N1(e){for(;!Is(Ur());)Zn();return Ro(e,Ln)}function j1(e){return D1(Lo("",null,null,null,[""],e=B1(e),0,[0],e))}function Lo(e,t,n,i,o,a,u,l,f){for(var h=0,g=0,p=u,v=0,C=0,S=0,E=1,b=1,B=1,N=0,_="",k=o,F=a,P=i,I=_;b;)switch(S=N,N=Zn()){case 40:if(S!=108&&Yt(I,p-1)==58){Fo(I+=Je(ku(N),"&","&\f"),"&\f",df(h?l[h-1]:0))!=-1&&(B=-1);break}case 34:case 39:case 91:I+=ku(N);break;case 9:case 10:case 13:case 32:I+=P1(S);break;case 92:I+=R1(Po()-1,7);continue;case 47:switch(Ur()){case 42:case 47:Os($1(L1(Zn(),Po()),t,n,f),f),(Is(S||1)==5||Is(Ur()||1)==5)&&Qn(I)&&ci(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*E:l[h++]=Qn(I)*B;case 125*E:case 59:case 0:switch(N){case 0:case 125:b=0;case 59+g:B==-1&&(I=Je(I,/\f/g,"")),C>0&&(Qn(I)-p||E===0&&S===47)&&Os(C>32?bf(I+";",i,n,p-1,f):bf(Je(I," ","")+";",i,n,p-2,f),f);break;case 59:I+=";";default:if(Os(P=wf(I,t,n,h,g,o,l,_,k=[],F=[],p,a),a),N===123)if(g===0)Lo(I,t,P,P,k,a,p,l,F);else{switch(v){case 99:if(Yt(I,3)===110)break;case 108:if(Yt(I,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Lo(e,P,P,i&&Os(wf(e,P,P,0,0,o,l,_,o,k=[],p,F),F),o,F,p,l,i?k:F):Lo(I,P,P,P,[""],F,0,l,F)}}h=g=C=0,E=B=1,_=I="",p=u;break;case 58:p=1+Qn(I),C=S;default:if(E<1){if(N==123)--E;else if(N==125&&E++==0&&F1()==125)continue}switch(I+=Cu(N),N*E){case 38:B=g>0?1:(I+="\f",-1);break;case 44:l[h++]=(Qn(I)-1)*B,B=1;break;case 64:Ur()===45&&(I+=ku(Zn())),v=Ur(),g=p=Qn(_=I+=N1(Po())),N++;break;case 45:S===45&&Qn(I)==2&&(E=0)}}return a}function wf(e,t,n,i,o,a,u,l,f,h,g,p){for(var v=o-1,C=o===0?a:[""],S=gf(C),E=0,b=0,B=0;E<i;++E)for(var N=0,_=ci(e,v+1,v=df(b=u[E])),k=e;N<S;++N)(k=pf(b>0?C[N]+" "+_:Je(_,/&\f/g,C[N])))&&(f[B++]=k);return Do(e,t,n,o===0?Io:l,f,h,g,p)}function $1(e,t,n,i){return Do(e,t,n,ff,Cu(I1()),ci(e,2,-2),0,i)}function bf(e,t,n,i,o){return Do(e,t,n,xu,ci(e,0,i),ci(e,i+1,-1),i,o)}function vf(e,t,n){switch(T1(e,t)){case 5103:return gt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return gt+e+e;case 4855:return gt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Ts+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+Ts+e+It+e+e;case 5936:switch(Yt(e,t+11)){case 114:return gt+e+It+Je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+It+Je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+It+Je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gt+e+It+e+e;case 6165:return gt+e+It+"flex-"+e+e;case 5187:return gt+e+Je(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return gt+e+It+"flex-item-"+Je(e,/flex-|-self/g,"")+(xr(e,/flex-|baseline/)?"":It+"grid-row-"+Je(e,/flex-|-self/g,""))+e;case 4675:return gt+e+It+"flex-line-pack"+Je(e,/align-content|flex-|-self/g,"")+e;case 5548:return gt+e+It+Je(e,"shrink","negative")+e;case 5292:return gt+e+It+Je(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+Je(e,"-grow","")+gt+e+It+Je(e,"grow","positive")+e;case 4554:return gt+Je(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return Je(Je(Je(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return Je(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return Je(Je(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+It+"flex-pack:$3"),/space-between/,"justify")+gt+e+e;case 4200:if(!xr(e,/flex-|baseline/))return It+"grid-column-align"+ci(e,t)+e;break;case 2592:case 3360:return It+Je(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,xr(i.props,/grid-\w+-end/)})?~Fo(e+(n=n[t].value),"span",0)?e:It+Je(e,"-start","")+e+It+"grid-row-span:"+(~Fo(n,"span",0)?xr(n,/\d+/):+xr(n,/\d+/)-+xr(e,/\d+/))+";":It+Je(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return xr(i.props,/grid-\w+-start/)})?e:It+Je(Je(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Je(e,/(.+)-inline(.+)/,gt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qn(e)-1-t>6)switch(Yt(e,t+1)){case 109:if(Yt(e,t+4)!==45)break;case 102:return Je(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+Ts+(Yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fo(e,"stretch",0)?vf(Je(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Je(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,h){return It+o+":"+a+h+(u?It+o+"-span:"+(l?f:+f-+a)+h:"")+e});case 4949:if(Yt(e,t+6)===121)return Je(e,":",":"+gt)+e;break;case 6444:switch(Yt(e,Yt(e,14)===45?18:11)){case 120:return Je(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gt+(Yt(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+It+"$2box$3")+e;case 100:return Je(e,":",":"+It)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Je(e,"scroll-","scroll-snap-")+e}return e}function No(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function M1(e,t,n,i){switch(e.type){case k1:if(e.children.length)break;case C1:case _1:case xu:return e.return=e.return||e.value;case ff:return"";case hf:return e.return=e.value+"{"+No(e.children,i)+"}";case Io:if(!Qn(e.value=e.props.join(",")))return""}return Qn(n=No(e.children,i))?e.return=e.value+"{"+n+"}":""}function U1(e){var t=gf(e);return function(n,i,o,a){for(var u="",l=0;l<t;l++)u+=e[l](n,i,o,a)||"";return u}}function V1(e){return function(t){t.root||(t=t.return)&&e(t)}}function q1(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case xu:e.return=vf(e.value,e.length,n);return;case hf:return No([Mr(e,{value:Je(e.value,"@","@"+gt)})],i);case Io:if(e.length)return O1(n=e.props,function(o){switch(xr(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ji(Mr(e,{props:[Je(o,/:(read-\w+)/,":"+Ts+"$1")]})),ji(Mr(e,{props:[o]})),_u(e,{props:yf(n,i)});break;case"::placeholder":ji(Mr(e,{props:[Je(o,/:(plac\w+)/,":"+gt+"input-$1")]})),ji(Mr(e,{props:[Je(o,/:(plac\w+)/,":"+Ts+"$1")]})),ji(Mr(e,{props:[Je(o,/:(plac\w+)/,It+"input-$1")]})),ji(Mr(e,{props:[o]})),_u(e,{props:yf(n,i)});break}return""})}}var W1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},li=typeof et<"u"&&et.env!==void 0&&(et.env.REACT_APP_SC_ATTR||et.env.SC_ATTR)||"data-styled",Ou=typeof window<"u"&&"HTMLElement"in window,K1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof et<"u"&&et.env!==void 0&&et.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&et.env.REACT_APP_SC_DISABLE_SPEEDY!==""?et.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&et.env.REACT_APP_SC_DISABLE_SPEEDY:typeof et<"u"&&et.env!==void 0&&et.env.SC_DISABLE_SPEEDY!==void 0&&et.env.SC_DISABLE_SPEEDY!==""?et.env.SC_DISABLE_SPEEDY!=="false"&&et.env.SC_DISABLE_SPEEDY:et.env.NODE_ENV!=="production"),Af=/invalid hook call/i,jo=new Set,H1=function(e,t){if(et.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",i="The component ".concat(e).concat(n,` has been created dynamically.
1
+ (function(oe,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("react"),require("antd"),require("@ant-design/icons"),require("@tanstack/react-query"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","@ant-design/icons","@tanstack/react-query","react-router-dom"],Z):(oe=typeof globalThis<"u"?globalThis:oe||self,Z(oe["@prorobotech/openapi-k8s-toolkit"]={},oe.React,oe.antd,oe.antdIcons,oe.reactQuery,oe.ReactRouterDOM))})(this,function(oe,Z,q,wn,bn,lr){"use strict";function l1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sf={exports:{}},Mt=sf.exports={},fr,hr;function bu(){throw new Error("setTimeout has not been defined")}function vu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?fr=setTimeout:fr=bu}catch{fr=bu}try{typeof clearTimeout=="function"?hr=clearTimeout:hr=vu}catch{hr=vu}})();function of(e){if(fr===setTimeout)return setTimeout(e,0);if((fr===bu||!fr)&&setTimeout)return fr=setTimeout,setTimeout(e,0);try{return fr(e,0)}catch{try{return fr.call(null,e,0)}catch{return fr.call(this,e,0)}}}function f1(e){if(hr===clearTimeout)return clearTimeout(e);if((hr===vu||!hr)&&clearTimeout)return hr=clearTimeout,clearTimeout(e);try{return hr(e)}catch{try{return hr.call(null,e)}catch{return hr.call(this,e)}}}var Ar=[],Ri=!1,ui,To=-1;function h1(){!Ri||!ui||(Ri=!1,ui.length?Ar=ui.concat(Ar):To=-1,Ar.length&&af())}function af(){if(!Ri){var e=of(h1);Ri=!0;for(var t=Ar.length;t;){for(ui=Ar,Ar=[];++To<t;)ui&&ui[To].run();To=-1,t=Ar.length}ui=null,Ri=!1,f1(e)}}Mt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ar.push(new uf(e,t)),Ar.length===1&&!Ri&&of(af)};function uf(e,t){this.fun=e,this.array=t}uf.prototype.run=function(){this.fun.apply(null,this.array)},Mt.title="browser",Mt.browser=!0,Mt.env={},Mt.argv=[],Mt.version="",Mt.versions={};function Er(){}Mt.on=Er,Mt.addListener=Er,Mt.once=Er,Mt.off=Er,Mt.removeListener=Er,Mt.removeAllListeners=Er,Mt.emit=Er,Mt.prependListener=Er,Mt.prependOnceListener=Er,Mt.listeners=function(e){return[]},Mt.binding=function(e){throw new Error("process.binding is not supported")},Mt.cwd=function(){return"/"},Mt.chdir=function(e){throw new Error("process.chdir is not supported")},Mt.umask=function(){return 0};var d1=sf.exports;const et=l1(d1);var vn=function(){return vn=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},vn.apply(this,arguments)};function Li(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,a;i<o;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function p1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var g1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,y1=p1(function(e){return g1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Su(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It="-ms-",ks="-moz-",gt="-webkit-",cf="comm",Io="rule",Au="decl",m1="@import",w1="@namespace",lf="@keyframes",b1="@layer",ff=Math.abs,Eu=String.fromCharCode,xu=Object.assign;function v1(e,t){return Yt(e,0)^45?(((t<<2^Yt(e,0))<<2^Yt(e,1))<<2^Yt(e,2))<<2^Yt(e,3):0}function hf(e){return e.trim()}function xr(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,n){return e.replace(t,n)}function Oo(e,t,n){return e.indexOf(t,n)}function Yt(e,t){return e.charCodeAt(t)|0}function ci(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function df(e){return e.length}function Ts(e,t){return t.push(e),e}function S1(e,t){return e.map(t).join("")}function pf(e,t){return e.filter(function(n){return!xr(n,t)})}var Fo=1,Pi=1,gf=0,Pn=0,Jt=0,Ni="";function Bo(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:Fo,column:Pi,length:u,return:"",siblings:l}}function Mr(e,t){return xu(Bo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ji(e){for(;e.root;)e=Mr(e.root,{children:[e]});Ts(e,e.siblings)}function A1(){return Jt}function E1(){return Jt=Pn>0?Yt(Ni,--Pn):0,Pi--,Jt===10&&(Pi=1,Fo--),Jt}function Zn(){return Jt=Pn<gf?Yt(Ni,Pn++):0,Pi++,Jt===10&&(Pi=1,Fo++),Jt}function Ur(){return Yt(Ni,Pn)}function Do(){return Pn}function Ro(e,t){return ci(Ni,e,t)}function Is(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function x1(e){return Fo=Pi=1,gf=Qn(Ni=e),Pn=0,[]}function C1(e){return Ni="",e}function Cu(e){return hf(Ro(Pn-1,_u(e===91?e+2:e===40?e+1:e)))}function _1(e){for(;(Jt=Ur())&&Jt<33;)Zn();return Is(e)>2||Is(Jt)>3?"":" "}function k1(e,t){for(;--t&&Zn()&&!(Jt<48||Jt>102||Jt>57&&Jt<65||Jt>70&&Jt<97););return Ro(e,Do()+(t<6&&Ur()==32&&Zn()==32))}function _u(e){for(;Zn();)switch(Jt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&_u(Jt);break;case 40:e===41&&_u(e);break;case 92:Zn();break}return Pn}function T1(e,t){for(;Zn()&&e+Jt!==57;)if(e+Jt===84&&Ur()===47)break;return"/*"+Ro(t,Pn-1)+"*"+Eu(e===47?e:Zn())}function I1(e){for(;!Is(Ur());)Zn();return Ro(e,Pn)}function O1(e){return C1(Lo("",null,null,null,[""],e=x1(e),0,[0],e))}function Lo(e,t,n,i,o,a,u,l,f){for(var d=0,g=0,p=u,v=0,C=0,A=0,E=1,b=1,B=1,N=0,_="",k=o,F=a,R=i,O=_;b;)switch(A=N,N=Zn()){case 40:if(A!=108&&Yt(O,p-1)==58){Oo(O+=Ge(Cu(N),"&","&\f"),"&\f",ff(d?l[d-1]:0))!=-1&&(B=-1);break}case 34:case 39:case 91:O+=Cu(N);break;case 9:case 10:case 13:case 32:O+=_1(A);break;case 92:O+=k1(Do()-1,7);continue;case 47:switch(Ur()){case 42:case 47:Ts(F1(T1(Zn(),Do()),t,n,f),f),(Is(A||1)==5||Is(Ur()||1)==5)&&Qn(O)&&ci(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*E:l[d++]=Qn(O)*B;case 125*E:case 59:case 0:switch(N){case 0:case 125:b=0;case 59+g:B==-1&&(O=Ge(O,/\f/g,"")),C>0&&(Qn(O)-p||E===0&&A===47)&&Ts(C>32?mf(O+";",i,n,p-1,f):mf(Ge(O," ","")+";",i,n,p-2,f),f);break;case 59:O+=";";default:if(Ts(R=yf(O,t,n,d,g,o,l,_,k=[],F=[],p,a),a),N===123)if(g===0)Lo(O,t,R,R,k,a,p,l,F);else{switch(v){case 99:if(Yt(O,3)===110)break;case 108:if(Yt(O,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Lo(e,R,R,i&&Ts(yf(e,R,R,0,0,o,l,_,o,k=[],p,F),F),o,F,p,l,i?k:F):Lo(O,R,R,R,[""],F,0,l,F)}}d=g=C=0,E=B=1,_=O="",p=u;break;case 58:p=1+Qn(O),C=A;default:if(E<1){if(N==123)--E;else if(N==125&&E++==0&&E1()==125)continue}switch(O+=Eu(N),N*E){case 38:B=g>0?1:(O+="\f",-1);break;case 44:l[d++]=(Qn(O)-1)*B,B=1;break;case 64:Ur()===45&&(O+=Cu(Zn())),v=Ur(),g=p=Qn(_=O+=I1(Do())),N++;break;case 45:A===45&&Qn(O)==2&&(E=0)}}return a}function yf(e,t,n,i,o,a,u,l,f,d,g,p){for(var v=o-1,C=o===0?a:[""],A=df(C),E=0,b=0,B=0;E<i;++E)for(var N=0,_=ci(e,v+1,v=ff(b=u[E])),k=e;N<A;++N)(k=hf(b>0?C[N]+" "+_:Ge(_,/&\f/g,C[N])))&&(f[B++]=k);return Bo(e,t,n,o===0?Io:l,f,d,g,p)}function F1(e,t,n,i){return Bo(e,t,n,cf,Eu(A1()),ci(e,2,-2),0,i)}function mf(e,t,n,i,o){return Bo(e,t,n,Au,ci(e,0,i),ci(e,i+1,-1),i,o)}function wf(e,t,n){switch(v1(e,t)){case 5103:return gt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return gt+e+e;case 4855:return gt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return ks+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+ks+e+It+e+e;case 5936:switch(Yt(e,t+11)){case 114:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+It+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gt+e+It+e+e;case 6165:return gt+e+It+"flex-"+e+e;case 5187:return gt+e+Ge(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return gt+e+It+"flex-item-"+Ge(e,/flex-|-self/g,"")+(xr(e,/flex-|baseline/)?"":It+"grid-row-"+Ge(e,/flex-|-self/g,""))+e;case 4675:return gt+e+It+"flex-line-pack"+Ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return gt+e+It+Ge(e,"shrink","negative")+e;case 5292:return gt+e+It+Ge(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+Ge(e,"-grow","")+gt+e+It+Ge(e,"grow","positive")+e;case 4554:return gt+Ge(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+It+"flex-pack:$3"),/space-between/,"justify")+gt+e+e;case 4200:if(!xr(e,/flex-|baseline/))return It+"grid-column-align"+ci(e,t)+e;break;case 2592:case 3360:return It+Ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,xr(i.props,/grid-\w+-end/)})?~Oo(e+(n=n[t].value),"span",0)?e:It+Ge(e,"-start","")+e+It+"grid-row-span:"+(~Oo(n,"span",0)?xr(n,/\d+/):+xr(n,/\d+/)-+xr(e,/\d+/))+";":It+Ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return xr(i.props,/grid-\w+-start/)})?e:It+Ge(Ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ge(e,/(.+)-inline(.+)/,gt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qn(e)-1-t>6)switch(Yt(e,t+1)){case 109:if(Yt(e,t+4)!==45)break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+ks+(Yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Oo(e,"stretch",0)?wf(Ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,d){return It+o+":"+a+d+(u?It+o+"-span:"+(l?f:+f-+a)+d:"")+e});case 4949:if(Yt(e,t+6)===121)return Ge(e,":",":"+gt)+e;break;case 6444:switch(Yt(e,Yt(e,14)===45?18:11)){case 120:return Ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gt+(Yt(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+It+"$2box$3")+e;case 100:return Ge(e,":",":"+It)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ge(e,"scroll-","scroll-snap-")+e}return e}function Po(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function B1(e,t,n,i){switch(e.type){case b1:if(e.children.length)break;case m1:case w1:case Au:return e.return=e.return||e.value;case cf:return"";case lf:return e.return=e.value+"{"+Po(e.children,i)+"}";case Io:if(!Qn(e.value=e.props.join(",")))return""}return Qn(n=Po(e.children,i))?e.return=e.value+"{"+n+"}":""}function D1(e){var t=df(e);return function(n,i,o,a){for(var u="",l=0;l<t;l++)u+=e[l](n,i,o,a)||"";return u}}function R1(e){return function(t){t.root||(t=t.return)&&e(t)}}function L1(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case Au:e.return=wf(e.value,e.length,n);return;case lf:return Po([Mr(e,{value:Ge(e.value,"@","@"+gt)})],i);case Io:if(e.length)return S1(n=e.props,function(o){switch(xr(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ji(Mr(e,{props:[Ge(o,/:(read-\w+)/,":"+ks+"$1")]})),ji(Mr(e,{props:[o]})),xu(e,{props:pf(n,i)});break;case"::placeholder":ji(Mr(e,{props:[Ge(o,/:(plac\w+)/,":"+gt+"input-$1")]})),ji(Mr(e,{props:[Ge(o,/:(plac\w+)/,":"+ks+"$1")]})),ji(Mr(e,{props:[Ge(o,/:(plac\w+)/,It+"input-$1")]})),ji(Mr(e,{props:[o]})),xu(e,{props:pf(n,i)});break}return""})}}var P1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},li=typeof et<"u"&&et.env!==void 0&&(et.env.REACT_APP_SC_ATTR||et.env.SC_ATTR)||"data-styled",ku=typeof window<"u"&&"HTMLElement"in window,N1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof et<"u"&&et.env!==void 0&&et.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&et.env.REACT_APP_SC_DISABLE_SPEEDY!==""?et.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&et.env.REACT_APP_SC_DISABLE_SPEEDY:typeof et<"u"&&et.env!==void 0&&et.env.SC_DISABLE_SPEEDY!==void 0&&et.env.SC_DISABLE_SPEEDY!==""?et.env.SC_DISABLE_SPEEDY!=="false"&&et.env.SC_DISABLE_SPEEDY:et.env.NODE_ENV!=="production"),bf=/invalid hook call/i,No=new Set,j1=function(e,t){if(et.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",i="The component ".concat(e).concat(n,` has been created dynamically.
2
2
  `)+`You may see this warning because you've called styled inside another component.
3
- To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var a=!0;console.error=function(u){for(var l=[],f=1;f<arguments.length;f++)l[f-1]=arguments[f];Af.test(u)?(a=!1,jo.delete(i)):o.apply(void 0,Ri([u],l,!1))},Z.useRef(),a&&!jo.has(i)&&(console.warn(i),jo.add(i))}catch(u){Af.test(u.message)&&jo.delete(i)}finally{console.error=o}}},$o=Object.freeze([]),$i=Object.freeze({});function z1(e,t,n){return n===void 0&&(n=$i),e.theme!==n.theme&&e.theme||t||n.theme}var Iu=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),G1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,J1=/(^-|-$)/g;function Sf(e){return e.replace(G1,"-").replace(J1,"")}var Y1=/(a)(d)/gi,Ef=function(e){return String.fromCharCode(e+(e>25?39:97))};function Fu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ef(t%52)+n;return(Ef(t%52)+n).replace(Y1,"$1-$2")}var Bu,fi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},xf=function(e){return fi(5381,e)};function X1(e){return Fu(xf(e)>>>0)}function Cf(e){return et.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Du(e){return typeof e=="string"&&(et.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var _f=typeof Symbol=="function"&&Symbol.for,kf=_f?Symbol.for("react.memo"):60115,Q1=_f?Symbol.for("react.forward_ref"):60112,Z1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ey={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Tf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ty=((Bu={})[Q1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Bu[kf]=Tf,Bu);function Of(e){return("type"in(t=e)&&t.type.$$typeof)===kf?Tf:"$$typeof"in e?ty[e.$$typeof]:Z1;var t}var ny=Object.defineProperty,ry=Object.getOwnPropertyNames,If=Object.getOwnPropertySymbols,iy=Object.getOwnPropertyDescriptor,sy=Object.getPrototypeOf,Ff=Object.prototype;function Bf(e,t,n){if(typeof t!="string"){if(Ff){var i=sy(t);i&&i!==Ff&&Bf(e,i,n)}var o=ry(t);If&&(o=o.concat(If(t)));for(var a=Of(e),u=Of(t),l=0;l<o.length;++l){var f=o[l];if(!(f in ey||n&&n[f]||u&&f in u||a&&f in a)){var h=iy(t,f);try{ny(e,f,h)}catch{}}}}return e}function Mi(e){return typeof e=="function"}function Pu(e){return typeof e=="object"&&"styledComponentId"in e}function hi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Df(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function Ui(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ru(e,t,n){if(n===void 0&&(n=!1),!n&&!Ui(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Ru(e[i],t[i]);else if(Ui(t))for(var i in t)e[i]=Ru(e[i],t[i]);return e}function Lu(e,t){Object.defineProperty(e,"toString",{value:t})}var oy=et.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
3
+ To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var a=!0;console.error=function(u){for(var l=[],f=1;f<arguments.length;f++)l[f-1]=arguments[f];bf.test(u)?(a=!1,No.delete(i)):o.apply(void 0,Li([u],l,!1))},Z.useRef(),a&&!No.has(i)&&(console.warn(i),No.add(i))}catch(u){bf.test(u.message)&&No.delete(i)}finally{console.error=o}}},jo=Object.freeze([]),$i=Object.freeze({});function $1(e,t,n){return n===void 0&&(n=$i),e.theme!==n.theme&&e.theme||t||n.theme}var Tu=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),M1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,U1=/(^-|-$)/g;function vf(e){return e.replace(M1,"-").replace(U1,"")}var V1=/(a)(d)/gi,Sf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Iu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Sf(t%52)+n;return(Sf(t%52)+n).replace(V1,"$1-$2")}var Ou,fi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Af=function(e){return fi(5381,e)};function q1(e){return Iu(Af(e)>>>0)}function Ef(e){return et.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Fu(e){return typeof e=="string"&&(et.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var xf=typeof Symbol=="function"&&Symbol.for,Cf=xf?Symbol.for("react.memo"):60115,W1=xf?Symbol.for("react.forward_ref"):60112,H1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},K1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_f={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z1=((Ou={})[W1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ou[Cf]=_f,Ou);function kf(e){return("type"in(t=e)&&t.type.$$typeof)===Cf?_f:"$$typeof"in e?z1[e.$$typeof]:H1;var t}var G1=Object.defineProperty,J1=Object.getOwnPropertyNames,Tf=Object.getOwnPropertySymbols,Y1=Object.getOwnPropertyDescriptor,X1=Object.getPrototypeOf,If=Object.prototype;function Of(e,t,n){if(typeof t!="string"){if(If){var i=X1(t);i&&i!==If&&Of(e,i,n)}var o=J1(t);Tf&&(o=o.concat(Tf(t)));for(var a=kf(e),u=kf(t),l=0;l<o.length;++l){var f=o[l];if(!(f in K1||n&&n[f]||u&&f in u||a&&f in a)){var d=Y1(t,f);try{G1(e,f,d)}catch{}}}}return e}function Mi(e){return typeof e=="function"}function Bu(e){return typeof e=="object"&&"styledComponentId"in e}function hi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ff(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function Ui(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Du(e,t,n){if(n===void 0&&(n=!1),!n&&!Ui(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Du(e[i],t[i]);else if(Ui(t))for(var i in t)e[i]=Du(e[i],t[i]);return e}function Ru(e,t){Object.defineProperty(e,"toString",{value:t})}var Q1=et.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
4
4
 
5
5
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
6
6
 
@@ -41,10 +41,10 @@ as for instance in your render method then you may be running into this limitati
41
41
 
42
42
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
43
43
  Has styled-components' style tag been unmounted or altered by another script?
44
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ay(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],i=[],o=1,a=e.length;o<a;o+=1)i.push(e[o]);return i.forEach(function(u){n=n.replace(/%[a-z]/,u)}),n}function Vi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return et.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ay.apply(void 0,Ri([oy[e]],t,!1)).trim())}var uy=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,i=0;i<t;i++)n+=this.groupSizes[i];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;t>=a;)if((a<<=1)<0)throw Vi(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var u=o;u<a;u++)this.groupSizes[u]=0}for(var l=this.indexOfGroup(t+1),f=(u=0,n.length);u<f;u++)this.tag.insertRule(l,n[u])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n;this.groupSizes[t]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var i=this.groupSizes[t],o=this.indexOfGroup(t),a=o+i,u=o;u<a;u++)n+="".concat(this.tag.getRule(u)).concat(`/*!sc*/
45
- `);return n},e}(),Mo=new Map,Uo=new Map,Nu=1,Vo=function(e){if(Mo.has(e))return Mo.get(e);for(;Uo.has(Nu);)Nu++;var t=Nu++;if(et.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw Vi(16,"".concat(t));return Mo.set(e,t),Uo.set(t,e),t},cy=function(e,t){Mo.set(e,t),Uo.set(t,e)},ly="style[".concat(li,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),fy=new RegExp("^".concat(li,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),hy=function(e,t,n){for(var i,o=n.split(","),a=0,u=o.length;a<u;a++)(i=o[a])&&e.registerName(t,i)},dy=function(e,t){for(var n,i=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
46
- `),o=[],a=0,u=i.length;a<u;a++){var l=i[a].trim();if(l){var f=l.match(fy);if(f){var h=0|parseInt(f[1],10),g=f[2];h!==0&&(cy(g,h),hy(e,g,f[3]),e.getTag().insertRules(h,o)),o.length=0}else o.push(l)}}};function py(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Pf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(li,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(li,"active"),i.setAttribute("data-styled-version","6.0.7");var u=py();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},gy=function(){function e(t){this.element=Pf(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var i=document.styleSheets,o=0,a=i.length;o<a;o++){var u=i[o];if(u.ownerNode===n)return u}throw Vi(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),yy=function(){function e(t){this.element=Pf(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),my=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Rf=Ou,wy={isServer:!Ou,useCSSOMInjection:!K1},Lf=function(){function e(t,n,i){t===void 0&&(t=$i),n===void 0&&(n={});var o=this;this.options=vn(vn({},wy),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Ou&&Rf&&(Rf=!1,function(a){for(var u=document.querySelectorAll(ly),l=0,f=u.length;l<f;l++){var h=u[l];h&&h.getAttribute(li)!=="active"&&(dy(a,h),h.parentNode&&h.parentNode.removeChild(h))}}(this)),Lu(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",h=function(p){var v=function(B){return Uo.get(B)}(p);if(v===void 0)return"continue";var C=a.names.get(v),S=u.getGroup(p);if(C===void 0||S.length===0)return"continue";var E="".concat(li,".g").concat(p,'[id="').concat(v,'"]'),b="";C!==void 0&&C.forEach(function(B){B.length>0&&(b+="".concat(B,","))}),f+="".concat(S).concat(E,'{content:"').concat(b,'"}').concat(`/*!sc*/
47
- `)},g=0;g<l;g++)h(g);return f}(o)})}return e.registerId=function(t){return Vo(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(vn(vn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var i=n.useCSSOMInjection,o=n.target;return n.isServer?new my(o):i?new gy(o):new yy(o)}(this.options),new uy(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Vo(t),this.names.has(t))this.names.get(t).add(n);else{var i=new Set;i.add(n),this.names.set(t,i)}},e.prototype.insertRules=function(t,n,i){this.registerName(t,n),this.getTag().insertRules(Vo(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Vo(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),by=/&/g,vy=/^\s*\/\/.*$/gm;function Nf(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(i){return"".concat(t," ").concat(i)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Nf(n.children,t)),n})}function Ay(e){var t,n,i,o=$i,a=o.options,u=a===void 0?$i:a,l=o.plugins,f=l===void 0?$o:l,h=function(v,C,S){return S===n||S.startsWith(n)&&S.endsWith(n)&&S.replaceAll(n,"").length>0?".".concat(t):v},g=f.slice();g.push(function(v){v.type===Io&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(by,n).replace(i,h))}),u.prefix&&g.push(q1),g.push(M1);var p=function(v,C,S,E){C===void 0&&(C=""),S===void 0&&(S=""),E===void 0&&(E="&"),t=E,n=C,i=new RegExp("\\".concat(n,"\\b"),"g");var b=v.replace(vy,""),B=j1(S||C?"".concat(S," ").concat(C," { ").concat(b," }"):b);u.namespace&&(B=Nf(B,u.namespace));var N=[];return No(B,U1(g.concat(V1(function(_){return N.push(_)})))),N};return p.hash=f.length?f.reduce(function(v,C){return C.name||Vi(15),fi(v,C.name)},5381).toString():"",p}var Sy=new Lf,ju=Ay(),jf=Z.createContext({shouldForwardProp:void 0,styleSheet:Sy,stylis:ju});jf.Consumer,Z.createContext(void 0);function $f(){return Z.useContext(jf)}var Mf=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=ju);var u=i.name+a.hash;o.hasNameForId(i.id,u)||o.insertRules(i.id,u,a(i.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Lu(this,function(){throw Vi(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ju),this.name+t.hash},e}(),Ey=function(e){return e>="A"&&e<="Z"};function Uf(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;Ey(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Vf=function(e){return e==null||e===!1||e===""},qf=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Vf(a)&&(Array.isArray(a)&&a.isCss||Mi(a)?i.push("".concat(Uf(o),":"),a,";"):Ui(a)?i.push.apply(i,Ri(Ri(["".concat(o," {")],qf(a),!1),["}"],!1)):i.push("".concat(Uf(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in W1||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function di(e,t,n,i){if(Vf(e))return[];if(Pu(e))return[".".concat(e.styledComponentId)];if(Mi(e)){if(!Mi(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return et.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Mf||Ui(o)||o===null||console.error("".concat(Cf(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),di(o,t,n,i)}var a;return e instanceof Mf?n?(e.inject(n,i),[e.getName(i)]):[e]:Ui(e)?qf(e):Array.isArray(e)?Array.prototype.concat.apply($o,e.map(function(u){return di(u,t,n,i)})):[e.toString()]}function xy(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Mi(n)&&!Pu(n))return!1}return!0}var Cy=xf("6.0.7"),_y=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=et.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&xy(t),this.componentId=n,this.baseHash=fi(Cy,n),this.baseStyle=i,Lf.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=hi(o,this.staticRulesId);else{var a=Df(di(this.rules,t,n,i)),u=Fu(fi(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,u)){var l=i(a,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,l)}o=hi(o,u),this.staticRulesId=u}else{for(var f=fi(this.baseHash,i.hash),h="",g=0;g<this.rules.length;g++){var p=this.rules[g];if(typeof p=="string")h+=p,et.env.NODE_ENV!=="production"&&(f=fi(f,p));else if(p){var v=Df(di(p,t,n,i));f=fi(f,v),h+=v}}if(h){var C=Fu(f>>>0);n.hasNameForId(this.componentId,C)||n.insertRules(this.componentId,C,i(h,".".concat(C),void 0,this.componentId)),o=hi(o,C)}}return o},e}(),Wf=Z.createContext(void 0);Wf.Consumer;var $u={},Kf=new Set;function ky(e,t,n){var i=Pu(e),o=e,a=!Du(e),u=t.attrs,l=u===void 0?$o:u,f=t.componentId,h=f===void 0?function(k,F){var P=typeof k!="string"?"sc":Sf(k);$u[P]=($u[P]||0)+1;var I="".concat(P,"-").concat(X1("6.0.7"+P+$u[P]));return F?"".concat(F,"-").concat(I):I}(t.displayName,t.parentComponentId):f,g=t.displayName,p=g===void 0?function(k){return Du(k)?"styled.".concat(k):"Styled(".concat(Cf(k),")")}(e):g,v=t.displayName&&t.componentId?"".concat(Sf(t.displayName),"-").concat(t.componentId):t.componentId||h,C=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,S=t.shouldForwardProp;if(i&&o.shouldForwardProp){var E=o.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;S=function(k,F){return E(k,F)&&b(k,F)}}else S=E}var B=new _y(n,v,i?o.componentStyle:void 0);function N(k,F){return function(P,I,W){var J=P.attrs,ce=P.componentStyle,le=P.defaultProps,ge=P.foldedComponentIds,ye=P.styledComponentId,Ce=P.target,pe=Z.useContext(Wf),Re=$f(),Se=P.shouldForwardProp||Re.shouldForwardProp;et.env.NODE_ENV!=="production"&&Z.useDebugValue(ye);var Ee=function(Q,ae,Be){for(var We,_e=vn(vn({},ae),{className:void 0,theme:Be}),De=0;De<Q.length;De+=1){var Oe=Mi(We=Q[De])?We(_e):We;for(var Le in Oe)_e[Le]=Le==="className"?hi(_e[Le],Oe[Le]):Le==="style"?vn(vn({},_e[Le]),Oe[Le]):Oe[Le]}return ae.className&&(_e.className=hi(_e.className,ae.className)),_e}(J,I,z1(I,pe,le)||$i),He=Ee.as||Ce,Ae={};for(var me in Ee)Ee[me]===void 0||me[0]==="$"||me==="as"||me==="theme"||(me==="forwardedAs"?Ae.as=Ee.forwardedAs:Se&&!Se(me,He)||(Ae[me]=Ee[me],Se||et.env.NODE_ENV!=="development"||x1(me)||Kf.has(me)||!Iu.has(He)||(Kf.add(me),console.warn('styled-components: it looks like an unknown prop "'.concat(me,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Me=function(Q,ae){var Be=$f(),We=Q.generateAndInjectStyles(ae,Be.styleSheet,Be.stylis);return et.env.NODE_ENV!=="production"&&Z.useDebugValue(We),We}(ce,Ee);et.env.NODE_ENV!=="production"&&P.warnTooManyClasses&&P.warnTooManyClasses(Me);var Y=hi(ge,ye);return Me&&(Y+=" "+Me),Ee.className&&(Y+=" "+Ee.className),Ae[Du(He)&&!Iu.has(He)?"class":"className"]=Y,Ae.ref=W,Z.createElement(He,Ae)}(_,k,F)}et.env.NODE_ENV!=="production"&&(N.displayName=p);var _=Z.forwardRef(N);return _.attrs=C,_.componentStyle=B,_.shouldForwardProp=S,et.env.NODE_ENV!=="production"&&(_.displayName=p),_.foldedComponentIds=i?hi(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=v,_.target=i?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=i?function(F){for(var P=[],I=1;I<arguments.length;I++)P[I-1]=arguments[I];for(var W=0,J=P;W<J.length;W++)Ru(F,J[W],!0);return F}({},o.defaultProps,k):k}}),et.env.NODE_ENV!=="production"&&(H1(p,v),_.warnTooManyClasses=function(k,F){var P={},I=!1;return function(W){if(!I&&(P[W]=!0,Object.keys(P).length>=200)){var J=F?' with the id of "'.concat(F,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(J,`.
44
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Z1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],i=[],o=1,a=e.length;o<a;o+=1)i.push(e[o]);return i.forEach(function(u){n=n.replace(/%[a-z]/,u)}),n}function Vi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return et.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Z1.apply(void 0,Li([Q1[e]],t,!1)).trim())}var ey=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,i=0;i<t;i++)n+=this.groupSizes[i];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;t>=a;)if((a<<=1)<0)throw Vi(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var u=o;u<a;u++)this.groupSizes[u]=0}for(var l=this.indexOfGroup(t+1),f=(u=0,n.length);u<f;u++)this.tag.insertRule(l,n[u])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n;this.groupSizes[t]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var i=this.groupSizes[t],o=this.indexOfGroup(t),a=o+i,u=o;u<a;u++)n+="".concat(this.tag.getRule(u)).concat(`/*!sc*/
45
+ `);return n},e}(),$o=new Map,Mo=new Map,Lu=1,Uo=function(e){if($o.has(e))return $o.get(e);for(;Mo.has(Lu);)Lu++;var t=Lu++;if(et.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw Vi(16,"".concat(t));return $o.set(e,t),Mo.set(t,e),t},ty=function(e,t){$o.set(e,t),Mo.set(t,e)},ny="style[".concat(li,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),ry=new RegExp("^".concat(li,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),iy=function(e,t,n){for(var i,o=n.split(","),a=0,u=o.length;a<u;a++)(i=o[a])&&e.registerName(t,i)},sy=function(e,t){for(var n,i=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
46
+ `),o=[],a=0,u=i.length;a<u;a++){var l=i[a].trim();if(l){var f=l.match(ry);if(f){var d=0|parseInt(f[1],10),g=f[2];d!==0&&(ty(g,d),iy(e,g,f[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(l)}}};function oy(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Bf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(li,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(li,"active"),i.setAttribute("data-styled-version","6.0.7");var u=oy();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},ay=function(){function e(t){this.element=Bf(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var i=document.styleSheets,o=0,a=i.length;o<a;o++){var u=i[o];if(u.ownerNode===n)return u}throw Vi(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),uy=function(){function e(t){this.element=Bf(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),cy=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Df=ku,ly={isServer:!ku,useCSSOMInjection:!N1},Rf=function(){function e(t,n,i){t===void 0&&(t=$i),n===void 0&&(n={});var o=this;this.options=vn(vn({},ly),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&ku&&Df&&(Df=!1,function(a){for(var u=document.querySelectorAll(ny),l=0,f=u.length;l<f;l++){var d=u[l];d&&d.getAttribute(li)!=="active"&&(sy(a,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),Ru(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",d=function(p){var v=function(B){return Mo.get(B)}(p);if(v===void 0)return"continue";var C=a.names.get(v),A=u.getGroup(p);if(C===void 0||A.length===0)return"continue";var E="".concat(li,".g").concat(p,'[id="').concat(v,'"]'),b="";C!==void 0&&C.forEach(function(B){B.length>0&&(b+="".concat(B,","))}),f+="".concat(A).concat(E,'{content:"').concat(b,'"}').concat(`/*!sc*/
47
+ `)},g=0;g<l;g++)d(g);return f}(o)})}return e.registerId=function(t){return Uo(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(vn(vn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var i=n.useCSSOMInjection,o=n.target;return n.isServer?new cy(o):i?new ay(o):new uy(o)}(this.options),new ey(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Uo(t),this.names.has(t))this.names.get(t).add(n);else{var i=new Set;i.add(n),this.names.set(t,i)}},e.prototype.insertRules=function(t,n,i){this.registerName(t,n),this.getTag().insertRules(Uo(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Uo(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),fy=/&/g,hy=/^\s*\/\/.*$/gm;function Lf(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(i){return"".concat(t," ").concat(i)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Lf(n.children,t)),n})}function dy(e){var t,n,i,o=$i,a=o.options,u=a===void 0?$i:a,l=o.plugins,f=l===void 0?jo:l,d=function(v,C,A){return A===n||A.startsWith(n)&&A.endsWith(n)&&A.replaceAll(n,"").length>0?".".concat(t):v},g=f.slice();g.push(function(v){v.type===Io&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(fy,n).replace(i,d))}),u.prefix&&g.push(L1),g.push(B1);var p=function(v,C,A,E){C===void 0&&(C=""),A===void 0&&(A=""),E===void 0&&(E="&"),t=E,n=C,i=new RegExp("\\".concat(n,"\\b"),"g");var b=v.replace(hy,""),B=O1(A||C?"".concat(A," ").concat(C," { ").concat(b," }"):b);u.namespace&&(B=Lf(B,u.namespace));var N=[];return Po(B,D1(g.concat(R1(function(_){return N.push(_)})))),N};return p.hash=f.length?f.reduce(function(v,C){return C.name||Vi(15),fi(v,C.name)},5381).toString():"",p}var py=new Rf,Pu=dy(),Pf=Z.createContext({shouldForwardProp:void 0,styleSheet:py,stylis:Pu});Pf.Consumer,Z.createContext(void 0);function Nf(){return Z.useContext(Pf)}var jf=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=Pu);var u=i.name+a.hash;o.hasNameForId(i.id,u)||o.insertRules(i.id,u,a(i.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Ru(this,function(){throw Vi(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Pu),this.name+t.hash},e}(),gy=function(e){return e>="A"&&e<="Z"};function $f(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;gy(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Mf=function(e){return e==null||e===!1||e===""},Uf=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Mf(a)&&(Array.isArray(a)&&a.isCss||Mi(a)?i.push("".concat($f(o),":"),a,";"):Ui(a)?i.push.apply(i,Li(Li(["".concat(o," {")],Uf(a),!1),["}"],!1)):i.push("".concat($f(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in P1||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function di(e,t,n,i){if(Mf(e))return[];if(Bu(e))return[".".concat(e.styledComponentId)];if(Mi(e)){if(!Mi(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return et.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof jf||Ui(o)||o===null||console.error("".concat(Ef(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),di(o,t,n,i)}var a;return e instanceof jf?n?(e.inject(n,i),[e.getName(i)]):[e]:Ui(e)?Uf(e):Array.isArray(e)?Array.prototype.concat.apply(jo,e.map(function(u){return di(u,t,n,i)})):[e.toString()]}function yy(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Mi(n)&&!Bu(n))return!1}return!0}var my=Af("6.0.7"),wy=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=et.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&yy(t),this.componentId=n,this.baseHash=fi(my,n),this.baseStyle=i,Rf.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=hi(o,this.staticRulesId);else{var a=Ff(di(this.rules,t,n,i)),u=Iu(fi(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,u)){var l=i(a,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,l)}o=hi(o,u),this.staticRulesId=u}else{for(var f=fi(this.baseHash,i.hash),d="",g=0;g<this.rules.length;g++){var p=this.rules[g];if(typeof p=="string")d+=p,et.env.NODE_ENV!=="production"&&(f=fi(f,p));else if(p){var v=Ff(di(p,t,n,i));f=fi(f,v),d+=v}}if(d){var C=Iu(f>>>0);n.hasNameForId(this.componentId,C)||n.insertRules(this.componentId,C,i(d,".".concat(C),void 0,this.componentId)),o=hi(o,C)}}return o},e}(),Vf=Z.createContext(void 0);Vf.Consumer;var Nu={},qf=new Set;function by(e,t,n){var i=Bu(e),o=e,a=!Fu(e),u=t.attrs,l=u===void 0?jo:u,f=t.componentId,d=f===void 0?function(k,F){var R=typeof k!="string"?"sc":vf(k);Nu[R]=(Nu[R]||0)+1;var O="".concat(R,"-").concat(q1("6.0.7"+R+Nu[R]));return F?"".concat(F,"-").concat(O):O}(t.displayName,t.parentComponentId):f,g=t.displayName,p=g===void 0?function(k){return Fu(k)?"styled.".concat(k):"Styled(".concat(Ef(k),")")}(e):g,v=t.displayName&&t.componentId?"".concat(vf(t.displayName),"-").concat(t.componentId):t.componentId||d,C=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,A=t.shouldForwardProp;if(i&&o.shouldForwardProp){var E=o.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;A=function(k,F){return E(k,F)&&b(k,F)}}else A=E}var B=new wy(n,v,i?o.componentStyle:void 0);function N(k,F){return function(R,O,W){var J=R.attrs,le=R.componentStyle,ce=R.defaultProps,ge=R.foldedComponentIds,ye=R.styledComponentId,he=R.target,me=Z.useContext(Vf),Le=Nf(),ke=R.shouldForwardProp||Le.shouldForwardProp;et.env.NODE_ENV!=="production"&&Z.useDebugValue(ye);var xe=function(Q,ue,De){for(var Ye,Te=vn(vn({},ue),{className:void 0,theme:De}),Re=0;Re<Q.length;Re+=1){var Oe=Mi(Ye=Q[Re])?Ye(Te):Ye;for(var Ne in Oe)Te[Ne]=Ne==="className"?hi(Te[Ne],Oe[Ne]):Ne==="style"?vn(vn({},Te[Ne]),Oe[Ne]):Oe[Ne]}return ue.className&&(Te.className=hi(Te.className,ue.className)),Te}(J,O,$1(O,me,ce)||$i),tt=xe.as||he,Ae={};for(var Se in xe)xe[Se]===void 0||Se[0]==="$"||Se==="as"||Se==="theme"||(Se==="forwardedAs"?Ae.as=xe.forwardedAs:ke&&!ke(Se,tt)||(Ae[Se]=xe[Se],ke||et.env.NODE_ENV!=="development"||y1(Se)||qf.has(Se)||!Tu.has(tt)||(qf.add(Se),console.warn('styled-components: it looks like an unknown prop "'.concat(Se,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var We=function(Q,ue){var De=Nf(),Ye=Q.generateAndInjectStyles(ue,De.styleSheet,De.stylis);return et.env.NODE_ENV!=="production"&&Z.useDebugValue(Ye),Ye}(le,xe);et.env.NODE_ENV!=="production"&&R.warnTooManyClasses&&R.warnTooManyClasses(We);var Y=hi(ge,ye);return We&&(Y+=" "+We),xe.className&&(Y+=" "+xe.className),Ae[Fu(tt)&&!Tu.has(tt)?"class":"className"]=Y,Ae.ref=W,Z.createElement(tt,Ae)}(_,k,F)}et.env.NODE_ENV!=="production"&&(N.displayName=p);var _=Z.forwardRef(N);return _.attrs=C,_.componentStyle=B,_.shouldForwardProp=A,et.env.NODE_ENV!=="production"&&(_.displayName=p),_.foldedComponentIds=i?hi(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=v,_.target=i?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=i?function(F){for(var R=[],O=1;O<arguments.length;O++)R[O-1]=arguments[O];for(var W=0,J=R;W<J.length;W++)Du(F,J[W],!0);return F}({},o.defaultProps,k):k}}),et.env.NODE_ENV!=="production"&&(j1(p,v),_.warnTooManyClasses=function(k,F){var R={},O=!1;return function(W){if(!O&&(R[W]=!0,Object.keys(R).length>=200)){var J=F?' with the id of "'.concat(F,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(J,`.
48
48
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
49
  Example:
50
50
  const Component = styled.div.attrs(props => ({
@@ -53,18 +53,18 @@ Example:
53
53
  },
54
54
  }))\`width: 100%;\`
55
55
 
56
- <Component />`),I=!0,P={}}}}(p,v)),Lu(_,function(){return".".concat(_.styledComponentId)}),a&&Bf(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Hf(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var zf=function(e){return Object.assign(e,{isCss:!0})};function Ty(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Mi(e)||Ui(e)){var i=e;return zf(di(Hf($o,Ri([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?di(o):zf(di(Hf(o,t)))}function Mu(e,t,n){if(n===void 0&&(n=$i),!t)throw Vi(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,Ty.apply(void 0,Ri([o],a,!1)))};return i.attrs=function(o){return Mu(e,t,vn(vn({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Mu(e,t,vn(vn({},n),o))},i}var Gf=function(e){return Mu(ky,e)},Ye=Gf;Iu.forEach(function(e){Ye[e]=Gf(e)}),et.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
56
+ <Component />`),O=!0,R={}}}}(p,v)),Ru(_,function(){return".".concat(_.styledComponentId)}),a&&Of(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Wf(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var Hf=function(e){return Object.assign(e,{isCss:!0})};function vy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Mi(e)||Ui(e)){var i=e;return Hf(di(Wf(jo,Li([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?di(o):Hf(di(Wf(o,t)))}function ju(e,t,n){if(n===void 0&&(n=$i),!t)throw Vi(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,vy.apply(void 0,Li([o],a,!1)))};return i.attrs=function(o){return ju(e,t,vn(vn({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return ju(e,t,vn(vn({},n),o))},i}var Kf=function(e){return ju(by,e)},Je=Kf;Tu.forEach(function(e){Je[e]=Kf(e)}),et.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
57
57
  Perhaps you're looking to import 'styled-components/native'?
58
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var qo="__sc-".concat(li,"__");et.env.NODE_ENV!=="production"&&et.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[qo]||(window[qo]=0),window[qo]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
58
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Vo="__sc-".concat(li,"__");et.env.NODE_ENV!=="production"&&et.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Vo]||(window[Vo]=0),window[Vo]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
59
59
 
60
- See https://s-c.sh/2BAXzed for more info.`),window[qo]+=1);const Cr=Ye.div`
60
+ See https://s-c.sh/2BAXzed for more info.`),window[Vo]+=1);const Cr=Je.div`
61
61
  height: ${({$space:e,$spaceMob:t,$samespace:n})=>t||(e&&n?e:24)}px;
62
62
  width: 100%;
63
63
 
64
64
  @media (min-width: 1024px) {
65
65
  height: ${({$space:e})=>e??"48"}px;
66
66
  }
67
- `;var Uu={exports:{}},Fs={};/**
67
+ `;var $u={exports:{}},Os={};/**
68
68
  * @license React
69
69
  * react-jsx-runtime.production.min.js
70
70
  *
@@ -72,33 +72,33 @@ See https://s-c.sh/2BAXzed for more info.`),window[qo]+=1);const Cr=Ye.div`
72
72
  *
73
73
  * This source code is licensed under the MIT license found in the
74
74
  * LICENSE file in the root directory of this source tree.
75
- */var Jf;function Oy(){if(Jf)return Fs;Jf=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,f,h){var g,p={},v=null,C=null;h!==void 0&&(v=""+h),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(C=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(p[g]=f[g]);if(l&&l.defaultProps)for(g in f=l.defaultProps,f)p[g]===void 0&&(p[g]=f[g]);return{$$typeof:t,type:l,key:v,ref:C,props:p,_owner:o.current}}return Fs.Fragment=n,Fs.jsx=u,Fs.jsxs=u,Fs}var Bs={},Yf;function Iy(){return Yf||(Yf=1,et.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),S=Symbol.iterator,E="@@iterator";function b(M){if(M===null||typeof M!="object")return null;var fe=S&&M[S]||M[E];return typeof fe=="function"?fe:null}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(M){{for(var fe=arguments.length,be=new Array(fe>1?fe-1:0),Fe=1;Fe<fe;Fe++)be[Fe-1]=arguments[Fe];_("error",M,be)}}function _(M,fe,be){{var Fe=B.ReactDebugCurrentFrame,lt=Fe.getStackAddendum();lt!==""&&(fe+="%s",be=be.concat([lt]));var ft=be.map(function(tt){return String(tt)});ft.unshift("Warning: "+fe),Function.prototype.apply.call(console[M],console,ft)}}var k=!1,F=!1,P=!1,I=!1,W=!1,J;J=Symbol.for("react.module.reference");function ce(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||W||M===o||M===h||M===g||I||M===C||k||F||P||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===p||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===J||M.getModuleId!==void 0))}function le(M,fe,be){var Fe=M.displayName;if(Fe)return Fe;var lt=fe.displayName||fe.name||"";return lt!==""?be+"("+lt+")":be}function ge(M){return M.displayName||"Context"}function ye(M){if(M==null)return null;if(typeof M.tag=="number"&&N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var fe=M;return ge(fe)+".Consumer";case u:var be=M;return ge(be._context)+".Provider";case f:return le(M,M.render,"ForwardRef");case p:var Fe=M.displayName||null;return Fe!==null?Fe:ye(M.type)||"Memo";case v:{var lt=M,ft=lt._payload,tt=lt._init;try{return ye(tt(ft))}catch{return null}}}return null}var Ce=Object.assign,pe=0,Re,Se,Ee,He,Ae,me,Me;function Y(){}Y.__reactDisabledLog=!0;function Q(){{if(pe===0){Re=console.log,Se=console.info,Ee=console.warn,He=console.error,Ae=console.group,me=console.groupCollapsed,Me=console.groupEnd;var M={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}pe++}}function ae(){{if(pe--,pe===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ce({},M,{value:Re}),info:Ce({},M,{value:Se}),warn:Ce({},M,{value:Ee}),error:Ce({},M,{value:He}),group:Ce({},M,{value:Ae}),groupCollapsed:Ce({},M,{value:me}),groupEnd:Ce({},M,{value:Me})})}pe<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Be=B.ReactCurrentDispatcher,We;function _e(M,fe,be){{if(We===void 0)try{throw Error()}catch(lt){var Fe=lt.stack.trim().match(/\n( *(at )?)/);We=Fe&&Fe[1]||""}return`
76
- `+We+M}}var De=!1,Oe;{var Le=typeof WeakMap=="function"?WeakMap:Map;Oe=new Le}function Tt(M,fe){if(!M||De)return"";{var be=Oe.get(M);if(be!==void 0)return be}var Fe;De=!0;var lt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ft;ft=Be.current,Be.current=null,Q();try{if(fe){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(Kt){Fe=Kt}Reflect.construct(M,[],tt)}else{try{tt.call()}catch(Kt){Fe=Kt}M.call(tt.prototype)}}else{try{throw Error()}catch(Kt){Fe=Kt}M()}}catch(Kt){if(Kt&&Fe&&typeof Kt.stack=="string"){for(var Xe=Kt.stack.split(`
75
+ */var zf;function Sy(){if(zf)return Os;zf=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,f,d){var g,p={},v=null,C=null;d!==void 0&&(v=""+d),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(C=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(p[g]=f[g]);if(l&&l.defaultProps)for(g in f=l.defaultProps,f)p[g]===void 0&&(p[g]=f[g]);return{$$typeof:t,type:l,key:v,ref:C,props:p,_owner:o.current}}return Os.Fragment=n,Os.jsx=u,Os.jsxs=u,Os}var Fs={},Gf;function Ay(){return Gf||(Gf=1,et.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),A=Symbol.iterator,E="@@iterator";function b(M){if(M===null||typeof M!="object")return null;var fe=A&&M[A]||M[E];return typeof fe=="function"?fe:null}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(M){{for(var fe=arguments.length,be=new Array(fe>1?fe-1:0),Fe=1;Fe<fe;Fe++)be[Fe-1]=arguments[Fe];_("error",M,be)}}function _(M,fe,be){{var Fe=B.ReactDebugCurrentFrame,lt=Fe.getStackAddendum();lt!==""&&(fe+="%s",be=be.concat([lt]));var ft=be.map(function(nt){return String(nt)});ft.unshift("Warning: "+fe),Function.prototype.apply.call(console[M],console,ft)}}var k=!1,F=!1,R=!1,O=!1,W=!1,J;J=Symbol.for("react.module.reference");function le(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||W||M===o||M===d||M===g||O||M===C||k||F||R||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===p||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===J||M.getModuleId!==void 0))}function ce(M,fe,be){var Fe=M.displayName;if(Fe)return Fe;var lt=fe.displayName||fe.name||"";return lt!==""?be+"("+lt+")":be}function ge(M){return M.displayName||"Context"}function ye(M){if(M==null)return null;if(typeof M.tag=="number"&&N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case g:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var fe=M;return ge(fe)+".Consumer";case u:var be=M;return ge(be._context)+".Provider";case f:return ce(M,M.render,"ForwardRef");case p:var Fe=M.displayName||null;return Fe!==null?Fe:ye(M.type)||"Memo";case v:{var lt=M,ft=lt._payload,nt=lt._init;try{return ye(nt(ft))}catch{return null}}}return null}var he=Object.assign,me=0,Le,ke,xe,tt,Ae,Se,We;function Y(){}Y.__reactDisabledLog=!0;function Q(){{if(me===0){Le=console.log,ke=console.info,xe=console.warn,tt=console.error,Ae=console.group,Se=console.groupCollapsed,We=console.groupEnd;var M={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}me++}}function ue(){{if(me--,me===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:he({},M,{value:Le}),info:he({},M,{value:ke}),warn:he({},M,{value:xe}),error:he({},M,{value:tt}),group:he({},M,{value:Ae}),groupCollapsed:he({},M,{value:Se}),groupEnd:he({},M,{value:We})})}me<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var De=B.ReactCurrentDispatcher,Ye;function Te(M,fe,be){{if(Ye===void 0)try{throw Error()}catch(lt){var Fe=lt.stack.trim().match(/\n( *(at )?)/);Ye=Fe&&Fe[1]||""}return`
76
+ `+Ye+M}}var Re=!1,Oe;{var Ne=typeof WeakMap=="function"?WeakMap:Map;Oe=new Ne}function kt(M,fe){if(!M||Re)return"";{var be=Oe.get(M);if(be!==void 0)return be}var Fe;Re=!0;var lt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ft;ft=De.current,De.current=null,Q();try{if(fe){var nt=function(){throw Error()};if(Object.defineProperty(nt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(nt,[])}catch(Ht){Fe=Ht}Reflect.construct(M,[],nt)}else{try{nt.call()}catch(Ht){Fe=Ht}M.call(nt.prototype)}}else{try{throw Error()}catch(Ht){Fe=Ht}M()}}catch(Ht){if(Ht&&Fe&&typeof Ht.stack=="string"){for(var Xe=Ht.stack.split(`
77
77
  `),Xt=Fe.stack.split(`
78
- `),Bt=Xe.length-1,Pt=Xt.length-1;Bt>=1&&Pt>=0&&Xe[Bt]!==Xt[Pt];)Pt--;for(;Bt>=1&&Pt>=0;Bt--,Pt--)if(Xe[Bt]!==Xt[Pt]){if(Bt!==1||Pt!==1)do if(Bt--,Pt--,Pt<0||Xe[Bt]!==Xt[Pt]){var cn=`
79
- `+Xe[Bt].replace(" at new "," at ");return M.displayName&&cn.includes("<anonymous>")&&(cn=cn.replace("<anonymous>",M.displayName)),typeof M=="function"&&Oe.set(M,cn),cn}while(Bt>=1&&Pt>=0);break}}}finally{De=!1,Be.current=ft,ae(),Error.prepareStackTrace=lt}var Tn=M?M.displayName||M.name:"",sr=Tn?_e(Tn):"";return typeof M=="function"&&Oe.set(M,sr),sr}function nn(M,fe,be){return Tt(M,!1)}function Lt(M){var fe=M.prototype;return!!(fe&&fe.isReactComponent)}function Nt(M,fe,be){if(M==null)return"";if(typeof M=="function")return Tt(M,Lt(M));if(typeof M=="string")return _e(M);switch(M){case h:return _e("Suspense");case g:return _e("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return nn(M.render);case p:return Nt(M.type,fe,be);case v:{var Fe=M,lt=Fe._payload,ft=Fe._init;try{return Nt(ft(lt),fe,be)}catch{}}}return""}var jt=Object.prototype.hasOwnProperty,bt={},kn=B.ReactDebugCurrentFrame;function An(M){if(M){var fe=M._owner,be=Nt(M.type,M._source,fe?fe.type:null);kn.setExtraStackFrame(be)}else kn.setExtraStackFrame(null)}function ke(M,fe,be,Fe,lt){{var ft=Function.call.bind(jt);for(var tt in M)if(ft(M,tt)){var Xe=void 0;try{if(typeof M[tt]!="function"){var Xt=Error((Fe||"React class")+": "+be+" type `"+tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Xt.name="Invariant Violation",Xt}Xe=M[tt](fe,tt,Fe,be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Bt){Xe=Bt}Xe&&!(Xe instanceof Error)&&(An(lt),N("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Fe||"React class",be,tt,typeof Xe),An(null)),Xe instanceof Error&&!(Xe.message in bt)&&(bt[Xe.message]=!0,An(lt),N("Failed %s type: %s",be,Xe.message),An(null))}}}var Pe=Array.isArray;function he(M){return Pe(M)}function At(M){{var fe=typeof Symbol=="function"&&Symbol.toStringTag,be=fe&&M[Symbol.toStringTag]||M.constructor.name||"Object";return be}}function St(M){try{return Et(M),!1}catch{return!0}}function Et(M){return""+M}function rt(M){if(St(M))return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",At(M)),Et(M)}var we=B.ReactCurrentOwner,Te={key:!0,ref:!0,__self:!0,__source:!0},ut,O;function y(M){if(jt.call(M,"ref")){var fe=Object.getOwnPropertyDescriptor(M,"ref").get;if(fe&&fe.isReactWarning)return!1}return M.ref!==void 0}function w(M){if(jt.call(M,"key")){var fe=Object.getOwnPropertyDescriptor(M,"key").get;if(fe&&fe.isReactWarning)return!1}return M.key!==void 0}function L(M,fe){typeof M.ref=="string"&&we.current}function V(M,fe){{var be=function(){ut||(ut=!0,N("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",fe))};be.isReactWarning=!0,Object.defineProperty(M,"key",{get:be,configurable:!0})}}function G(M,fe){{var be=function(){O||(O=!0,N("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",fe))};be.isReactWarning=!0,Object.defineProperty(M,"ref",{get:be,configurable:!0})}}var ee=function(M,fe,be,Fe,lt,ft,tt){var Xe={$$typeof:t,type:M,key:fe,ref:be,props:tt,_owner:ft};return Xe._store={},Object.defineProperty(Xe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Xe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Fe}),Object.defineProperty(Xe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:lt}),Object.freeze&&(Object.freeze(Xe.props),Object.freeze(Xe)),Xe};function Ue(M,fe,be,Fe,lt){{var ft,tt={},Xe=null,Xt=null;be!==void 0&&(rt(be),Xe=""+be),w(fe)&&(rt(fe.key),Xe=""+fe.key),y(fe)&&(Xt=fe.ref,L(fe,lt));for(ft in fe)jt.call(fe,ft)&&!Te.hasOwnProperty(ft)&&(tt[ft]=fe[ft]);if(M&&M.defaultProps){var Bt=M.defaultProps;for(ft in Bt)tt[ft]===void 0&&(tt[ft]=Bt[ft])}if(Xe||Xt){var Pt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Xe&&V(tt,Pt),Xt&&G(tt,Pt)}return ee(M,Xe,Xt,lt,Fe,we.current,tt)}}var pt=B.ReactCurrentOwner,ct=B.ReactDebugCurrentFrame;function dt(M){if(M){var fe=M._owner,be=Nt(M.type,M._source,fe?fe.type:null);ct.setExtraStackFrame(be)}else ct.setExtraStackFrame(null)}var st;st=!1;function Jr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Si(){{if(pt.current){var M=ye(pt.current.type);if(M)return`
78
+ `),Ft=Xe.length-1,Dt=Xt.length-1;Ft>=1&&Dt>=0&&Xe[Ft]!==Xt[Dt];)Dt--;for(;Ft>=1&&Dt>=0;Ft--,Dt--)if(Xe[Ft]!==Xt[Dt]){if(Ft!==1||Dt!==1)do if(Ft--,Dt--,Dt<0||Xe[Ft]!==Xt[Dt]){var cn=`
79
+ `+Xe[Ft].replace(" at new "," at ");return M.displayName&&cn.includes("<anonymous>")&&(cn=cn.replace("<anonymous>",M.displayName)),typeof M=="function"&&Oe.set(M,cn),cn}while(Ft>=1&&Dt>=0);break}}}finally{Re=!1,De.current=ft,ue(),Error.prepareStackTrace=lt}var Tn=M?M.displayName||M.name:"",sr=Tn?Te(Tn):"";return typeof M=="function"&&Oe.set(M,sr),sr}function nn(M,fe,be){return kt(M,!1)}function Lt(M){var fe=M.prototype;return!!(fe&&fe.isReactComponent)}function Pt(M,fe,be){if(M==null)return"";if(typeof M=="function")return kt(M,Lt(M));if(typeof M=="string")return Te(M);switch(M){case d:return Te("Suspense");case g:return Te("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return nn(M.render);case p:return Pt(M.type,fe,be);case v:{var Fe=M,lt=Fe._payload,ft=Fe._init;try{return Pt(ft(lt),fe,be)}catch{}}}return""}var Nt=Object.prototype.hasOwnProperty,wt={},kn=B.ReactDebugCurrentFrame;function Sn(M){if(M){var fe=M._owner,be=Pt(M.type,M._source,fe?fe.type:null);kn.setExtraStackFrame(be)}else kn.setExtraStackFrame(null)}function Ce(M,fe,be,Fe,lt){{var ft=Function.call.bind(Nt);for(var nt in M)if(ft(M,nt)){var Xe=void 0;try{if(typeof M[nt]!="function"){var Xt=Error((Fe||"React class")+": "+be+" type `"+nt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[nt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Xt.name="Invariant Violation",Xt}Xe=M[nt](fe,nt,Fe,be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ft){Xe=Ft}Xe&&!(Xe instanceof Error)&&(Sn(lt),N("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Fe||"React class",be,nt,typeof Xe),Sn(null)),Xe instanceof Error&&!(Xe.message in wt)&&(wt[Xe.message]=!0,Sn(lt),N("Failed %s type: %s",be,Xe.message),Sn(null))}}}var Be=Array.isArray;function pe(M){return Be(M)}function At(M){{var fe=typeof Symbol=="function"&&Symbol.toStringTag,be=fe&&M[Symbol.toStringTag]||M.constructor.name||"Object";return be}}function xt(M){try{return vt(M),!1}catch{return!0}}function vt(M){return""+M}function rt(M){if(xt(M))return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",At(M)),vt(M)}var we=B.ReactCurrentOwner,_e={key:!0,ref:!0,__self:!0,__source:!0},ut,I;function y(M){if(Nt.call(M,"ref")){var fe=Object.getOwnPropertyDescriptor(M,"ref").get;if(fe&&fe.isReactWarning)return!1}return M.ref!==void 0}function w(M){if(Nt.call(M,"key")){var fe=Object.getOwnPropertyDescriptor(M,"key").get;if(fe&&fe.isReactWarning)return!1}return M.key!==void 0}function P(M,fe){typeof M.ref=="string"&&we.current}function V(M,fe){{var be=function(){ut||(ut=!0,N("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",fe))};be.isReactWarning=!0,Object.defineProperty(M,"key",{get:be,configurable:!0})}}function G(M,fe){{var be=function(){I||(I=!0,N("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",fe))};be.isReactWarning=!0,Object.defineProperty(M,"ref",{get:be,configurable:!0})}}var ee=function(M,fe,be,Fe,lt,ft,nt){var Xe={$$typeof:t,type:M,key:fe,ref:be,props:nt,_owner:ft};return Xe._store={},Object.defineProperty(Xe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Xe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Fe}),Object.defineProperty(Xe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:lt}),Object.freeze&&(Object.freeze(Xe.props),Object.freeze(Xe)),Xe};function Me(M,fe,be,Fe,lt){{var ft,nt={},Xe=null,Xt=null;be!==void 0&&(rt(be),Xe=""+be),w(fe)&&(rt(fe.key),Xe=""+fe.key),y(fe)&&(Xt=fe.ref,P(fe,lt));for(ft in fe)Nt.call(fe,ft)&&!_e.hasOwnProperty(ft)&&(nt[ft]=fe[ft]);if(M&&M.defaultProps){var Ft=M.defaultProps;for(ft in Ft)nt[ft]===void 0&&(nt[ft]=Ft[ft])}if(Xe||Xt){var Dt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Xe&&V(nt,Dt),Xt&&G(nt,Dt)}return ee(M,Xe,Xt,lt,Fe,we.current,nt)}}var pt=B.ReactCurrentOwner,ct=B.ReactDebugCurrentFrame;function dt(M){if(M){var fe=M._owner,be=Pt(M.type,M._source,fe?fe.type:null);ct.setExtraStackFrame(be)}else ct.setExtraStackFrame(null)}var st;st=!1;function Jr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Ai(){{if(pt.current){var M=ye(pt.current.type);if(M)return`
80
80
 
81
- Check the render method of \``+M+"`."}return""}}function cs(M){return""}var ls={};function fs(M){{var fe=Si();if(!fe){var be=typeof M=="string"?M:M.displayName||M.name;be&&(fe=`
81
+ Check the render method of \``+M+"`."}return""}}function us(M){return""}var cs={};function ls(M){{var fe=Ai();if(!fe){var be=typeof M=="string"?M:M.displayName||M.name;be&&(fe=`
82
82
 
83
- Check the top-level render call using <`+be+">.")}return fe}}function Yr(M,fe){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var be=fs(fe);if(ls[be])return;ls[be]=!0;var Fe="";M&&M._owner&&M._owner!==pt.current&&(Fe=" It was passed a child from "+ye(M._owner.type)+"."),dt(M),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',be,Fe),dt(null)}}function Ei(M,fe){{if(typeof M!="object")return;if(he(M))for(var be=0;be<M.length;be++){var Fe=M[be];Jr(Fe)&&Yr(Fe,fe)}else if(Jr(M))M._store&&(M._store.validated=!0);else if(M){var lt=b(M);if(typeof lt=="function"&&lt!==M.entries)for(var ft=lt.call(M),tt;!(tt=ft.next()).done;)Jr(tt.value)&&Yr(tt.value,fe)}}}function oo(M){{var fe=M.type;if(fe==null||typeof fe=="string")return;var be;if(typeof fe=="function")be=fe.propTypes;else if(typeof fe=="object"&&(fe.$$typeof===f||fe.$$typeof===p))be=fe.propTypes;else return;if(be){var Fe=ye(fe);ke(be,M.props,"prop",Fe,M)}else if(fe.PropTypes!==void 0&&!st){st=!0;var lt=ye(fe);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",lt||"Unknown")}typeof fe.getDefaultProps=="function"&&!fe.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ao(M){{for(var fe=Object.keys(M.props),be=0;be<fe.length;be++){var Fe=fe[be];if(Fe!=="children"&&Fe!=="key"){dt(M),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Fe),dt(null);break}}M.ref!==null&&(dt(M),N("Invalid attribute `ref` supplied to `React.Fragment`."),dt(null))}}var Ir={};function ir(M,fe,be,Fe,lt,ft){{var tt=ce(M);if(!tt){var Xe="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(Xe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Xt=cs();Xt?Xe+=Xt:Xe+=Si();var Bt;M===null?Bt="null":he(M)?Bt="array":M!==void 0&&M.$$typeof===t?(Bt="<"+(ye(M.type)||"Unknown")+" />",Xe=" Did you accidentally export a JSX literal instead of a component?"):Bt=typeof M,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Bt,Xe)}var Pt=Ue(M,fe,be,lt,ft);if(Pt==null)return Pt;if(tt){var cn=fe.children;if(cn!==void 0)if(Fe)if(he(cn)){for(var Tn=0;Tn<cn.length;Tn++)Ei(cn[Tn],M);Object.freeze&&Object.freeze(cn)}else N("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ei(cn,M)}if(jt.call(fe,"key")){var sr=ye(M),Kt=Object.keys(fe).filter(function(fo){return fo!=="key"}),xi=Kt.length>0?"{key: someKey, "+Kt.join(": ..., ")+": ...}":"{key: someKey}";if(!Ir[sr+xi]){var lo=Kt.length>0?"{"+Kt.join(": ..., ")+": ...}":"{}";N(`A props object containing a "key" prop is being spread into JSX:
83
+ Check the top-level render call using <`+be+">.")}return fe}}function Yr(M,fe){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var be=ls(fe);if(cs[be])return;cs[be]=!0;var Fe="";M&&M._owner&&M._owner!==pt.current&&(Fe=" It was passed a child from "+ye(M._owner.type)+"."),dt(M),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',be,Fe),dt(null)}}function Ei(M,fe){{if(typeof M!="object")return;if(pe(M))for(var be=0;be<M.length;be++){var Fe=M[be];Jr(Fe)&&Yr(Fe,fe)}else if(Jr(M))M._store&&(M._store.validated=!0);else if(M){var lt=b(M);if(typeof lt=="function"&&lt!==M.entries)for(var ft=lt.call(M),nt;!(nt=ft.next()).done;)Jr(nt.value)&&Yr(nt.value,fe)}}}function so(M){{var fe=M.type;if(fe==null||typeof fe=="string")return;var be;if(typeof fe=="function")be=fe.propTypes;else if(typeof fe=="object"&&(fe.$$typeof===f||fe.$$typeof===p))be=fe.propTypes;else return;if(be){var Fe=ye(fe);Ce(be,M.props,"prop",Fe,M)}else if(fe.PropTypes!==void 0&&!st){st=!0;var lt=ye(fe);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",lt||"Unknown")}typeof fe.getDefaultProps=="function"&&!fe.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function oo(M){{for(var fe=Object.keys(M.props),be=0;be<fe.length;be++){var Fe=fe[be];if(Fe!=="children"&&Fe!=="key"){dt(M),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Fe),dt(null);break}}M.ref!==null&&(dt(M),N("Invalid attribute `ref` supplied to `React.Fragment`."),dt(null))}}var Or={};function ir(M,fe,be,Fe,lt,ft){{var nt=le(M);if(!nt){var Xe="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(Xe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Xt=us();Xt?Xe+=Xt:Xe+=Ai();var Ft;M===null?Ft="null":pe(M)?Ft="array":M!==void 0&&M.$$typeof===t?(Ft="<"+(ye(M.type)||"Unknown")+" />",Xe=" Did you accidentally export a JSX literal instead of a component?"):Ft=typeof M,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ft,Xe)}var Dt=Me(M,fe,be,lt,ft);if(Dt==null)return Dt;if(nt){var cn=fe.children;if(cn!==void 0)if(Fe)if(pe(cn)){for(var Tn=0;Tn<cn.length;Tn++)Ei(cn[Tn],M);Object.freeze&&Object.freeze(cn)}else N("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ei(cn,M)}if(Nt.call(fe,"key")){var sr=ye(M),Ht=Object.keys(fe).filter(function(lo){return lo!=="key"}),xi=Ht.length>0?"{key: someKey, "+Ht.join(": ..., ")+": ...}":"{key: someKey}";if(!Or[sr+xi]){var co=Ht.length>0?"{"+Ht.join(": ..., ")+": ...}":"{}";N(`A props object containing a "key" prop is being spread into JSX:
84
84
  let props = %s;
85
85
  <%s {...props} />
86
86
  React keys must be passed directly to JSX without using spread:
87
87
  let props = %s;
88
- <%s key={someKey} {...props} />`,xi,sr,lo,sr),Ir[sr+xi]=!0}}return M===i?ao(Pt):oo(Pt),Pt}}function Xr(M,fe,be){return ir(M,fe,be,!0)}function uo(M,fe,be){return ir(M,fe,be,!1)}var co=uo,pn=Xr;Bs.Fragment=i,Bs.jsx=co,Bs.jsxs=pn}()),Bs}et.env.NODE_ENV==="production"?Uu.exports=Oy():Uu.exports=Iy();var A=Uu.exports;const Fy={CustomTreeProvider:Ye.div`
88
+ <%s key={someKey} {...props} />`,xi,sr,co,sr),Or[sr+xi]=!0}}return M===i?oo(Dt):so(Dt),Dt}}function Xr(M,fe,be){return ir(M,fe,be,!0)}function ao(M,fe,be){return ir(M,fe,be,!1)}var uo=ao,pn=Xr;Fs.Fragment=i,Fs.jsx=uo,Fs.jsxs=pn}()),Fs}et.env.NODE_ENV==="production"?$u.exports=Sy():$u.exports=Ay();var S=$u.exports;const Ey={CustomTreeProvider:Je.div`
89
89
  .ant-tree-switcher {
90
90
  display: flex;
91
91
  align-items: center;
92
92
  justify-content: center;
93
93
  }
94
- `},{Search:By}=q.Input,Dy=({treeData:e,onSelect:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(""),u=f=>{const{value:h}=f.target,g={},p=(b,B)=>{b.forEach(N=>{g[N.key]=B,N.children&&p(N.children,N.key)})};p(e,null);const v=b=>{const B=[];let N=g[b];for(;N;)B.push(N),N=g[N];return B},C=[],S=b=>{b.forEach(B=>{if(B.title.toLowerCase().includes(h.toLowerCase())){C.push(B.key);const _=v(B.key);C.push(..._)}B.children&&S(B.children)})};S(e);const E=Array.from(new Set(C)).filter(Boolean);i(E),a(h)},l=f=>f.map(h=>{const g=h.title,p=g.toLowerCase().indexOf(o.toLowerCase()),v=g.substring(0,p),C=g.substring(p+o.length),S=p>-1?A.jsxs("span",{children:[v,A.jsx("span",{style:{color:"#f50"},children:o}),C]}):A.jsx("span",{children:g});return h.children?{...h,title:S,children:l(h.children)}:{...h,title:S}});return A.jsxs(A.Fragment,{children:[A.jsx(By,{style:{marginBottom:8},placeholder:"Search",onChange:u}),A.jsx(Fy.CustomTreeProvider,{children:A.jsx(q.Tree,{treeData:l(e),expandedKeys:n,onExpand:f=>{i(f)},onSelect:(f,h)=>{t&&t(f,h),n.includes(h.node.key)?i([...n.filter(g=>g!==h.node.key)]):i([...n,h.node.key])}})})]})},Py=globalThis||void 0||self;function Xf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ry}=Object.prototype,{getPrototypeOf:Vu}=Object,Wo=(e=>t=>{const n=Ry.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),dr=e=>(e=e.toLowerCase(),t=>Wo(t)===e),Ko=e=>t=>typeof t===e,{isArray:qi}=Array,Ds=Ko("undefined");function Ly(e){return e!==null&&!Ds(e)&&e.constructor!==null&&!Ds(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qf=dr("ArrayBuffer");function Ny(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qf(e.buffer),t}const jy=Ko("string"),Nn=Ko("function"),Zf=Ko("number"),Ho=e=>e!==null&&typeof e=="object",$y=e=>e===!0||e===!1,zo=e=>{if(Wo(e)!=="object")return!1;const t=Vu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},My=dr("Date"),Uy=dr("File"),Vy=dr("Blob"),qy=dr("FileList"),Wy=e=>Ho(e)&&Nn(e.pipe),Ky=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nn(e.append)&&((t=Wo(e))==="formdata"||t==="object"&&Nn(e.toString)&&e.toString()==="[object FormData]"))},Hy=dr("URLSearchParams"),zy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ps(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),qi(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let l;for(i=0;i<u;i++)l=a[i],t.call(null,e[l],l,e)}}function eh(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const th=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Py,nh=e=>!Ds(e)&&e!==th;function qu(){const{caseless:e}=nh(this)&&this||{},t={},n=(i,o)=>{const a=e&&eh(t,o)||o;zo(t[a])&&zo(i)?t[a]=qu(t[a],i):zo(i)?t[a]=qu({},i):qi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Ps(arguments[i],n);return t}const Gy=(e,t,n,{allOwnKeys:i}={})=>(Ps(t,(o,a)=>{n&&Nn(o)?e[a]=Xf(o,n):e[a]=o},{allOwnKeys:i}),e),Jy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Yy=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Xy=(e,t,n,i)=>{let o,a,u;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!i||i(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&Vu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qy=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Zy=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Zf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},em=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Vu(Uint8Array)),tm=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},nm=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},rm=dr("HTMLFormElement"),im=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),rh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sm=dr("RegExp"),ih=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Ps(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},om=e=>{ih(e,(t,n)=>{if(Nn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Nn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},am=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return qi(e)?i(e):i(String(e).split(t)),n},um=()=>{},cm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Wu="abcdefghijklmnopqrstuvwxyz",sh="0123456789",oh={DIGIT:sh,ALPHA:Wu,ALPHA_DIGIT:Wu+Wu.toUpperCase()+sh},lm=(e=16,t=oh.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function fm(e){return!!(e&&Nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const hm=e=>{const t=new Array(10),n=(i,o)=>{if(Ho(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=qi(i)?[]:{};return Ps(i,(u,l)=>{const f=n(u,o+1);!Ds(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},dm=dr("AsyncFunction"),re={isArray:qi,isArrayBuffer:Qf,isBuffer:Ly,isFormData:Ky,isArrayBufferView:Ny,isString:jy,isNumber:Zf,isBoolean:$y,isObject:Ho,isPlainObject:zo,isUndefined:Ds,isDate:My,isFile:Uy,isBlob:Vy,isRegExp:sm,isFunction:Nn,isStream:Wy,isURLSearchParams:Hy,isTypedArray:em,isFileList:qy,forEach:Ps,merge:qu,extend:Gy,trim:zy,stripBOM:Jy,inherits:Yy,toFlatObject:Xy,kindOf:Wo,kindOfTest:dr,endsWith:Qy,toArray:Zy,forEachEntry:tm,matchAll:nm,isHTMLForm:rm,hasOwnProperty:rh,hasOwnProp:rh,reduceDescriptors:ih,freezeMethods:om,toObjectSet:am,toCamelCase:im,noop:um,toFiniteNumber:cm,findKey:eh,global:th,isContextDefined:nh,ALPHABET:oh,generateString:lm,isSpecCompliantForm:fm,toJSONObject:hm,isAsyncFn:dm,isThenable:e=>e&&(Ho(e)||Nn(e))&&Nn(e.then)&&Nn(e.catch)};var ah={},Go={};Go.byteLength=ym,Go.toByteArray=wm,Go.fromByteArray=Am;for(var pr=[],jn=[],pm=typeof Uint8Array<"u"?Uint8Array:Array,Ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wi=0,gm=Ku.length;Wi<gm;++Wi)pr[Wi]=Ku[Wi],jn[Ku.charCodeAt(Wi)]=Wi;jn[45]=62,jn[95]=63;function uh(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function ym(e){var t=uh(e),n=t[0],i=t[1];return(n+i)*3/4-i}function mm(e,t,n){return(t+n)*3/4-n}function wm(e){var t,n=uh(e),i=n[0],o=n[1],a=new pm(mm(e,i,o)),u=0,l=o>0?i-4:i,f;for(f=0;f<l;f+=4)t=jn[e.charCodeAt(f)]<<18|jn[e.charCodeAt(f+1)]<<12|jn[e.charCodeAt(f+2)]<<6|jn[e.charCodeAt(f+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=t&255;return o===2&&(t=jn[e.charCodeAt(f)]<<2|jn[e.charCodeAt(f+1)]>>4,a[u++]=t&255),o===1&&(t=jn[e.charCodeAt(f)]<<10|jn[e.charCodeAt(f+1)]<<4|jn[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=t&255),a}function bm(e){return pr[e>>18&63]+pr[e>>12&63]+pr[e>>6&63]+pr[e&63]}function vm(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(bm(i));return o.join("")}function Am(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(vm(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(pr[t>>2]+pr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(pr[t>>10]+pr[t>>4&63]+pr[t<<2&63]+"=")),o.join("")}var Hu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Hu.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,h=f>>1,g=-7,p=n?o-1:0,v=n?-1:1,C=e[t+p];for(p+=v,a=C&(1<<-g)-1,C>>=-g,g+=l;g>0;a=a*256+e[t+p],p+=v,g-=8);for(u=a&(1<<-g)-1,a>>=-g,g+=i;g>0;u=u*256+e[t+p],p+=v,g-=8);if(a===0)a=1-h;else{if(a===f)return u?NaN:(C?-1:1)*(1/0);u=u+Math.pow(2,i),a=a-h}return(C?-1:1)*u*Math.pow(2,a-i)},Hu.write=function(e,t,n,i,o,a){var u,l,f,h=a*8-o-1,g=(1<<h)-1,p=g>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:a-1,S=i?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=g):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?t+=v/f:t+=v*Math.pow(2,1-p),t*f>=2&&(u++,f/=2),u+p>=g?(l=0,u=g):u+p>=1?(l=(t*f-1)*Math.pow(2,o),u=u+p):(l=t*Math.pow(2,p-1)*Math.pow(2,o),u=0));o>=8;e[n+C]=l&255,C+=S,l/=256,o-=8);for(u=u<<o|l,h+=o;h>0;e[n+C]=u&255,C+=S,u/=256,h-=8);e[n+C-S]|=E*128};/*!
94
+ `},{Search:xy}=q.Input,Cy=({treeData:e,onSelect:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(""),u=f=>{const{value:d}=f.target,g={},p=(b,B)=>{b.forEach(N=>{g[N.key]=B,N.children&&p(N.children,N.key)})};p(e,null);const v=b=>{const B=[];let N=g[b];for(;N;)B.push(N),N=g[N];return B},C=[],A=b=>{b.forEach(B=>{if(B.title.toLowerCase().includes(d.toLowerCase())){C.push(B.key);const _=v(B.key);C.push(..._)}B.children&&A(B.children)})};A(e);const E=Array.from(new Set(C)).filter(Boolean);i(E),a(d)},l=f=>f.map(d=>{const g=d.title,p=g.toLowerCase().indexOf(o.toLowerCase()),v=g.substring(0,p),C=g.substring(p+o.length),A=p>-1?S.jsxs("span",{children:[v,S.jsx("span",{style:{color:"#f50"},children:o}),C]}):S.jsx("span",{children:g});return d.children?{...d,title:A,children:l(d.children)}:{...d,title:A}});return S.jsxs(S.Fragment,{children:[S.jsx(xy,{style:{marginBottom:8},placeholder:"Search",onChange:u}),S.jsx(Ey.CustomTreeProvider,{children:S.jsx(q.Tree,{treeData:l(e),expandedKeys:n,onExpand:f=>{i(f)},onSelect:(f,d)=>{t&&t(f,d),n.includes(d.node.key)?i([...n.filter(g=>g!==d.node.key)]):i([...n,d.node.key])}})})]})},_y=globalThis||void 0||self;function Jf(e,t){return function(){return e.apply(t,arguments)}}const{toString:ky}=Object.prototype,{getPrototypeOf:Mu}=Object,qo=(e=>t=>{const n=ky.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),dr=e=>(e=e.toLowerCase(),t=>qo(t)===e),Wo=e=>t=>typeof t===e,{isArray:qi}=Array,Bs=Wo("undefined");function Ty(e){return e!==null&&!Bs(e)&&e.constructor!==null&&!Bs(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yf=dr("ArrayBuffer");function Iy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yf(e.buffer),t}const Oy=Wo("string"),Nn=Wo("function"),Xf=Wo("number"),Ho=e=>e!==null&&typeof e=="object",Fy=e=>e===!0||e===!1,Ko=e=>{if(qo(e)!=="object")return!1;const t=Mu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},By=dr("Date"),Dy=dr("File"),Ry=dr("Blob"),Ly=dr("FileList"),Py=e=>Ho(e)&&Nn(e.pipe),Ny=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nn(e.append)&&((t=qo(e))==="formdata"||t==="object"&&Nn(e.toString)&&e.toString()==="[object FormData]"))},jy=dr("URLSearchParams"),$y=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ds(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),qi(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let l;for(i=0;i<u;i++)l=a[i],t.call(null,e[l],l,e)}}function Qf(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const Zf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:_y,eh=e=>!Bs(e)&&e!==Zf;function Uu(){const{caseless:e}=eh(this)&&this||{},t={},n=(i,o)=>{const a=e&&Qf(t,o)||o;Ko(t[a])&&Ko(i)?t[a]=Uu(t[a],i):Ko(i)?t[a]=Uu({},i):qi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Ds(arguments[i],n);return t}const My=(e,t,n,{allOwnKeys:i}={})=>(Ds(t,(o,a)=>{n&&Nn(o)?e[a]=Jf(o,n):e[a]=o},{allOwnKeys:i}),e),Uy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vy=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},qy=(e,t,n,i)=>{let o,a,u;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!i||i(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&Mu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Wy=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Hy=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Xf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ky=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mu(Uint8Array)),zy=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Gy=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Jy=dr("HTMLFormElement"),Yy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),th=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xy=dr("RegExp"),nh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Ds(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},Qy=e=>{nh(e,(t,n)=>{if(Nn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Nn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Zy=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return qi(e)?i(e):i(String(e).split(t)),n},em=()=>{},tm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Vu="abcdefghijklmnopqrstuvwxyz",rh="0123456789",ih={DIGIT:rh,ALPHA:Vu,ALPHA_DIGIT:Vu+Vu.toUpperCase()+rh},nm=(e=16,t=ih.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function rm(e){return!!(e&&Nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const im=e=>{const t=new Array(10),n=(i,o)=>{if(Ho(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=qi(i)?[]:{};return Ds(i,(u,l)=>{const f=n(u,o+1);!Bs(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},sm=dr("AsyncFunction"),re={isArray:qi,isArrayBuffer:Yf,isBuffer:Ty,isFormData:Ny,isArrayBufferView:Iy,isString:Oy,isNumber:Xf,isBoolean:Fy,isObject:Ho,isPlainObject:Ko,isUndefined:Bs,isDate:By,isFile:Dy,isBlob:Ry,isRegExp:Xy,isFunction:Nn,isStream:Py,isURLSearchParams:jy,isTypedArray:Ky,isFileList:Ly,forEach:Ds,merge:Uu,extend:My,trim:$y,stripBOM:Uy,inherits:Vy,toFlatObject:qy,kindOf:qo,kindOfTest:dr,endsWith:Wy,toArray:Hy,forEachEntry:zy,matchAll:Gy,isHTMLForm:Jy,hasOwnProperty:th,hasOwnProp:th,reduceDescriptors:nh,freezeMethods:Qy,toObjectSet:Zy,toCamelCase:Yy,noop:em,toFiniteNumber:tm,findKey:Qf,global:Zf,isContextDefined:eh,ALPHABET:ih,generateString:nm,isSpecCompliantForm:rm,toJSONObject:im,isAsyncFn:sm,isThenable:e=>e&&(Ho(e)||Nn(e))&&Nn(e.then)&&Nn(e.catch)};var sh={},zo={};zo.byteLength=um,zo.toByteArray=lm,zo.fromByteArray=dm;for(var pr=[],jn=[],om=typeof Uint8Array<"u"?Uint8Array:Array,qu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wi=0,am=qu.length;Wi<am;++Wi)pr[Wi]=qu[Wi],jn[qu.charCodeAt(Wi)]=Wi;jn[45]=62,jn[95]=63;function oh(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function um(e){var t=oh(e),n=t[0],i=t[1];return(n+i)*3/4-i}function cm(e,t,n){return(t+n)*3/4-n}function lm(e){var t,n=oh(e),i=n[0],o=n[1],a=new om(cm(e,i,o)),u=0,l=o>0?i-4:i,f;for(f=0;f<l;f+=4)t=jn[e.charCodeAt(f)]<<18|jn[e.charCodeAt(f+1)]<<12|jn[e.charCodeAt(f+2)]<<6|jn[e.charCodeAt(f+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=t&255;return o===2&&(t=jn[e.charCodeAt(f)]<<2|jn[e.charCodeAt(f+1)]>>4,a[u++]=t&255),o===1&&(t=jn[e.charCodeAt(f)]<<10|jn[e.charCodeAt(f+1)]<<4|jn[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=t&255),a}function fm(e){return pr[e>>18&63]+pr[e>>12&63]+pr[e>>6&63]+pr[e&63]}function hm(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),o.push(fm(i));return o.join("")}function dm(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(hm(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(pr[t>>2]+pr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(pr[t>>10]+pr[t>>4&63]+pr[t<<2&63]+"=")),o.join("")}var Wu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Wu.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,d=f>>1,g=-7,p=n?o-1:0,v=n?-1:1,C=e[t+p];for(p+=v,a=C&(1<<-g)-1,C>>=-g,g+=l;g>0;a=a*256+e[t+p],p+=v,g-=8);for(u=a&(1<<-g)-1,a>>=-g,g+=i;g>0;u=u*256+e[t+p],p+=v,g-=8);if(a===0)a=1-d;else{if(a===f)return u?NaN:(C?-1:1)*(1/0);u=u+Math.pow(2,i),a=a-d}return(C?-1:1)*u*Math.pow(2,a-i)},Wu.write=function(e,t,n,i,o,a){var u,l,f,d=a*8-o-1,g=(1<<d)-1,p=g>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:a-1,A=i?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=g):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?t+=v/f:t+=v*Math.pow(2,1-p),t*f>=2&&(u++,f/=2),u+p>=g?(l=0,u=g):u+p>=1?(l=(t*f-1)*Math.pow(2,o),u=u+p):(l=t*Math.pow(2,p-1)*Math.pow(2,o),u=0));o>=8;e[n+C]=l&255,C+=A,l/=256,o-=8);for(u=u<<o|l,d+=o;d>0;e[n+C]=u&255,C+=A,u/=256,d-=8);e[n+C-A]|=E*128};/*!
95
95
  * The buffer module from node.js, for the browser.
96
96
  *
97
97
  * @author Feross Aboukhadijeh <https://feross.org>
98
98
  * @license MIT
99
- */(function(e){const t=Go,n=Hu,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=g,e.SlowBuffer=F,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;g.TYPED_ARRAY_SUPPORT=f(),!g.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const O=new a(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,a.prototype),Object.setPrototypeOf(O,y),O.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function h(O){if(O>o)throw new RangeError('The value "'+O+'" is invalid for option "size"');const y=new a(O);return Object.setPrototypeOf(y,g.prototype),y}function g(O,y,w){if(typeof O=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(O)}return p(O,y,w)}g.poolSize=8192;function p(O,y,w){if(typeof O=="string")return E(O,y);if(u.isView(O))return B(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(Et(O,u)||O&&Et(O.buffer,u)||typeof l<"u"&&(Et(O,l)||O&&Et(O.buffer,l)))return N(O,y,w);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const L=O.valueOf&&O.valueOf();if(L!=null&&L!==O)return g.from(L,y,w);const V=_(O);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return g.from(O[Symbol.toPrimitive]("string"),y,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}g.from=function(O,y,w){return p(O,y,w)},Object.setPrototypeOf(g.prototype,a.prototype),Object.setPrototypeOf(g,a);function v(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function C(O,y,w){return v(O),O<=0?h(O):y!==void 0?typeof w=="string"?h(O).fill(y,w):h(O).fill(y):h(O)}g.alloc=function(O,y,w){return C(O,y,w)};function S(O){return v(O),h(O<0?0:k(O)|0)}g.allocUnsafe=function(O){return S(O)},g.allocUnsafeSlow=function(O){return S(O)};function E(O,y){if((typeof y!="string"||y==="")&&(y="utf8"),!g.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=P(O,y)|0;let L=h(w);const V=L.write(O,y);return V!==w&&(L=L.slice(0,V)),L}function b(O){const y=O.length<0?0:k(O.length)|0,w=h(y);for(let L=0;L<y;L+=1)w[L]=O[L]&255;return w}function B(O){if(Et(O,a)){const y=new a(O);return N(y.buffer,y.byteOffset,y.byteLength)}return b(O)}function N(O,y,w){if(y<0||O.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<y+(w||0))throw new RangeError('"length" is outside of buffer bounds');let L;return y===void 0&&w===void 0?L=new a(O):w===void 0?L=new a(O,y):L=new a(O,y,w),Object.setPrototypeOf(L,g.prototype),L}function _(O){if(g.isBuffer(O)){const y=k(O.length)|0,w=h(y);return w.length===0||O.copy(w,0,0,y),w}if(O.length!==void 0)return typeof O.length!="number"||rt(O.length)?h(0):b(O);if(O.type==="Buffer"&&Array.isArray(O.data))return b(O.data)}function k(O){if(O>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return O|0}function F(O){return+O!=O&&(O=0),g.alloc(+O)}g.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==g.prototype},g.compare=function(y,w){if(Et(y,a)&&(y=g.from(y,y.offset,y.byteLength)),Et(w,a)&&(w=g.from(w,w.offset,w.byteLength)),!g.isBuffer(y)||!g.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===w)return 0;let L=y.length,V=w.length;for(let G=0,ee=Math.min(L,V);G<ee;++G)if(y[G]!==w[G]){L=y[G],V=w[G];break}return L<V?-1:V<L?1:0},g.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(y,w){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return g.alloc(0);let L;if(w===void 0)for(w=0,L=0;L<y.length;++L)w+=y[L].length;const V=g.allocUnsafe(w);let G=0;for(L=0;L<y.length;++L){let ee=y[L];if(Et(ee,a))G+ee.length>V.length?(g.isBuffer(ee)||(ee=g.from(ee)),ee.copy(V,G)):a.prototype.set.call(V,ee,G);else if(g.isBuffer(ee))ee.copy(V,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return V};function P(O,y){if(g.isBuffer(O))return O.length;if(u.isView(O)||Et(O,u))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);const w=O.length,L=arguments.length>2&&arguments[2]===!0;if(!L&&w===0)return 0;let V=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return ke(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return At(O).length;default:if(V)return L?-1:ke(O).length;y=(""+y).toLowerCase(),V=!0}}g.byteLength=P;function I(O,y,w){let L=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,y>>>=0,w<=y))return"";for(O||(O="utf8");;)switch(O){case"hex":return Me(this,y,w);case"utf8":case"utf-8":return Se(this,y,w);case"ascii":return Ae(this,y,w);case"latin1":case"binary":return me(this,y,w);case"base64":return Re(this,y,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,y,w);default:if(L)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),L=!0}}g.prototype._isBuffer=!0;function W(O,y,w){const L=O[y];O[y]=O[w],O[w]=L}g.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<y;w+=2)W(this,w,w+1);return this},g.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<y;w+=4)W(this,w,w+3),W(this,w+1,w+2);return this},g.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<y;w+=8)W(this,w,w+7),W(this,w+1,w+6),W(this,w+2,w+5),W(this,w+3,w+4);return this},g.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?Se(this,0,y):I.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(y){if(!g.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:g.compare(this,y)===0},g.prototype.inspect=function(){let y="";const w=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(y+=" ... "),"<Buffer "+y+">"},i&&(g.prototype[i]=g.prototype.inspect),g.prototype.compare=function(y,w,L,V,G){if(Et(y,a)&&(y=g.from(y,y.offset,y.byteLength)),!g.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(w===void 0&&(w=0),L===void 0&&(L=y?y.length:0),V===void 0&&(V=0),G===void 0&&(G=this.length),w<0||L>y.length||V<0||G>this.length)throw new RangeError("out of range index");if(V>=G&&w>=L)return 0;if(V>=G)return-1;if(w>=L)return 1;if(w>>>=0,L>>>=0,V>>>=0,G>>>=0,this===y)return 0;let ee=G-V,Ue=L-w;const pt=Math.min(ee,Ue),ct=this.slice(V,G),dt=y.slice(w,L);for(let st=0;st<pt;++st)if(ct[st]!==dt[st]){ee=ct[st],Ue=dt[st];break}return ee<Ue?-1:Ue<ee?1:0};function J(O,y,w,L,V){if(O.length===0)return-1;if(typeof w=="string"?(L=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,rt(w)&&(w=V?0:O.length-1),w<0&&(w=O.length+w),w>=O.length){if(V)return-1;w=O.length-1}else if(w<0)if(V)w=0;else return-1;if(typeof y=="string"&&(y=g.from(y,L)),g.isBuffer(y))return y.length===0?-1:ce(O,y,w,L,V);if(typeof y=="number")return y=y&255,typeof a.prototype.indexOf=="function"?V?a.prototype.indexOf.call(O,y,w):a.prototype.lastIndexOf.call(O,y,w):ce(O,[y],w,L,V);throw new TypeError("val must be string, number or Buffer")}function ce(O,y,w,L,V){let G=1,ee=O.length,Ue=y.length;if(L!==void 0&&(L=String(L).toLowerCase(),L==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(O.length<2||y.length<2)return-1;G=2,ee/=2,Ue/=2,w/=2}function pt(dt,st){return G===1?dt[st]:dt.readUInt16BE(st*G)}let ct;if(V){let dt=-1;for(ct=w;ct<ee;ct++)if(pt(O,ct)===pt(y,dt===-1?0:ct-dt)){if(dt===-1&&(dt=ct),ct-dt+1===Ue)return dt*G}else dt!==-1&&(ct-=ct-dt),dt=-1}else for(w+Ue>ee&&(w=ee-Ue),ct=w;ct>=0;ct--){let dt=!0;for(let st=0;st<Ue;st++)if(pt(O,ct+st)!==pt(y,st)){dt=!1;break}if(dt)return ct}return-1}g.prototype.includes=function(y,w,L){return this.indexOf(y,w,L)!==-1},g.prototype.indexOf=function(y,w,L){return J(this,y,w,L,!0)},g.prototype.lastIndexOf=function(y,w,L){return J(this,y,w,L,!1)};function le(O,y,w,L){w=Number(w)||0;const V=O.length-w;L?(L=Number(L),L>V&&(L=V)):L=V;const G=y.length;L>G/2&&(L=G/2);let ee;for(ee=0;ee<L;++ee){const Ue=parseInt(y.substr(ee*2,2),16);if(rt(Ue))return ee;O[w+ee]=Ue}return ee}function ge(O,y,w,L){return St(ke(y,O.length-w),O,w,L)}function ye(O,y,w,L){return St(Pe(y),O,w,L)}function Ce(O,y,w,L){return St(At(y),O,w,L)}function pe(O,y,w,L){return St(he(y,O.length-w),O,w,L)}g.prototype.write=function(y,w,L,V){if(w===void 0)V="utf8",L=this.length,w=0;else if(L===void 0&&typeof w=="string")V=w,L=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(L)?(L=L>>>0,V===void 0&&(V="utf8")):(V=L,L=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-w;if((L===void 0||L>G)&&(L=G),y.length>0&&(L<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ee=!1;for(;;)switch(V){case"hex":return le(this,y,w,L);case"utf8":case"utf-8":return ge(this,y,w,L);case"ascii":case"latin1":case"binary":return ye(this,y,w,L);case"base64":return Ce(this,y,w,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,y,w,L);default:if(ee)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ee=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Re(O,y,w){return y===0&&w===O.length?t.fromByteArray(O):t.fromByteArray(O.slice(y,w))}function Se(O,y,w){w=Math.min(O.length,w);const L=[];let V=y;for(;V<w;){const G=O[V];let ee=null,Ue=G>239?4:G>223?3:G>191?2:1;if(V+Ue<=w){let pt,ct,dt,st;switch(Ue){case 1:G<128&&(ee=G);break;case 2:pt=O[V+1],(pt&192)===128&&(st=(G&31)<<6|pt&63,st>127&&(ee=st));break;case 3:pt=O[V+1],ct=O[V+2],(pt&192)===128&&(ct&192)===128&&(st=(G&15)<<12|(pt&63)<<6|ct&63,st>2047&&(st<55296||st>57343)&&(ee=st));break;case 4:pt=O[V+1],ct=O[V+2],dt=O[V+3],(pt&192)===128&&(ct&192)===128&&(dt&192)===128&&(st=(G&15)<<18|(pt&63)<<12|(ct&63)<<6|dt&63,st>65535&&st<1114112&&(ee=st))}}ee===null?(ee=65533,Ue=1):ee>65535&&(ee-=65536,L.push(ee>>>10&1023|55296),ee=56320|ee&1023),L.push(ee),V+=Ue}return He(L)}const Ee=4096;function He(O){const y=O.length;if(y<=Ee)return String.fromCharCode.apply(String,O);let w="",L=0;for(;L<y;)w+=String.fromCharCode.apply(String,O.slice(L,L+=Ee));return w}function Ae(O,y,w){let L="";w=Math.min(O.length,w);for(let V=y;V<w;++V)L+=String.fromCharCode(O[V]&127);return L}function me(O,y,w){let L="";w=Math.min(O.length,w);for(let V=y;V<w;++V)L+=String.fromCharCode(O[V]);return L}function Me(O,y,w){const L=O.length;(!y||y<0)&&(y=0),(!w||w<0||w>L)&&(w=L);let V="";for(let G=y;G<w;++G)V+=we[O[G]];return V}function Y(O,y,w){const L=O.slice(y,w);let V="";for(let G=0;G<L.length-1;G+=2)V+=String.fromCharCode(L[G]+L[G+1]*256);return V}g.prototype.slice=function(y,w){const L=this.length;y=~~y,w=w===void 0?L:~~w,y<0?(y+=L,y<0&&(y=0)):y>L&&(y=L),w<0?(w+=L,w<0&&(w=0)):w>L&&(w=L),w<y&&(w=y);const V=this.subarray(y,w);return Object.setPrototypeOf(V,g.prototype),V};function Q(O,y,w){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+y>w)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(y,w,L){y=y>>>0,w=w>>>0,L||Q(y,w,this.length);let V=this[y],G=1,ee=0;for(;++ee<w&&(G*=256);)V+=this[y+ee]*G;return V},g.prototype.readUintBE=g.prototype.readUIntBE=function(y,w,L){y=y>>>0,w=w>>>0,L||Q(y,w,this.length);let V=this[y+--w],G=1;for(;w>0&&(G*=256);)V+=this[y+--w]*G;return V},g.prototype.readUint8=g.prototype.readUInt8=function(y,w){return y=y>>>0,w||Q(y,1,this.length),this[y]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(y,w){return y=y>>>0,w||Q(y,2,this.length),this[y]|this[y+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(y,w){return y=y>>>0,w||Q(y,2,this.length),this[y]<<8|this[y+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},g.prototype.readBigUInt64LE=Te(function(y){y=y>>>0,jt(y,"offset");const w=this[y],L=this[y+7];(w===void 0||L===void 0)&&bt(y,this.length-8);const V=w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,G=this[++y]+this[++y]*2**8+this[++y]*2**16+L*2**24;return BigInt(V)+(BigInt(G)<<BigInt(32))}),g.prototype.readBigUInt64BE=Te(function(y){y=y>>>0,jt(y,"offset");const w=this[y],L=this[y+7];(w===void 0||L===void 0)&&bt(y,this.length-8);const V=w*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],G=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L;return(BigInt(V)<<BigInt(32))+BigInt(G)}),g.prototype.readIntLE=function(y,w,L){y=y>>>0,w=w>>>0,L||Q(y,w,this.length);let V=this[y],G=1,ee=0;for(;++ee<w&&(G*=256);)V+=this[y+ee]*G;return G*=128,V>=G&&(V-=Math.pow(2,8*w)),V},g.prototype.readIntBE=function(y,w,L){y=y>>>0,w=w>>>0,L||Q(y,w,this.length);let V=w,G=1,ee=this[y+--V];for(;V>0&&(G*=256);)ee+=this[y+--V]*G;return G*=128,ee>=G&&(ee-=Math.pow(2,8*w)),ee},g.prototype.readInt8=function(y,w){return y=y>>>0,w||Q(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},g.prototype.readInt16LE=function(y,w){y=y>>>0,w||Q(y,2,this.length);const L=this[y]|this[y+1]<<8;return L&32768?L|4294901760:L},g.prototype.readInt16BE=function(y,w){y=y>>>0,w||Q(y,2,this.length);const L=this[y+1]|this[y]<<8;return L&32768?L|4294901760:L},g.prototype.readInt32LE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},g.prototype.readInt32BE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},g.prototype.readBigInt64LE=Te(function(y){y=y>>>0,jt(y,"offset");const w=this[y],L=this[y+7];(w===void 0||L===void 0)&&bt(y,this.length-8);const V=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(L<<24);return(BigInt(V)<<BigInt(32))+BigInt(w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),g.prototype.readBigInt64BE=Te(function(y){y=y>>>0,jt(y,"offset");const w=this[y],L=this[y+7];(w===void 0||L===void 0)&&bt(y,this.length-8);const V=(w<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(V)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L)}),g.prototype.readFloatLE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),n.read(this,y,!0,23,4)},g.prototype.readFloatBE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),n.read(this,y,!1,23,4)},g.prototype.readDoubleLE=function(y,w){return y=y>>>0,w||Q(y,8,this.length),n.read(this,y,!0,52,8)},g.prototype.readDoubleBE=function(y,w){return y=y>>>0,w||Q(y,8,this.length),n.read(this,y,!1,52,8)};function ae(O,y,w,L,V,G){if(!g.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>V||y<G)throw new RangeError('"value" argument is out of bounds');if(w+L>O.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(y,w,L,V){if(y=+y,w=w>>>0,L=L>>>0,!V){const Ue=Math.pow(2,8*L)-1;ae(this,y,w,L,Ue,0)}let G=1,ee=0;for(this[w]=y&255;++ee<L&&(G*=256);)this[w+ee]=y/G&255;return w+L},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(y,w,L,V){if(y=+y,w=w>>>0,L=L>>>0,!V){const Ue=Math.pow(2,8*L)-1;ae(this,y,w,L,Ue,0)}let G=L-1,ee=1;for(this[w+G]=y&255;--G>=0&&(ee*=256);)this[w+G]=y/ee&255;return w+L},g.prototype.writeUint8=g.prototype.writeUInt8=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,1,255,0),this[w]=y&255,w+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,2,65535,0),this[w]=y&255,this[w+1]=y>>>8,w+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,2,65535,0),this[w]=y>>>8,this[w+1]=y&255,w+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,4,4294967295,0),this[w+3]=y>>>24,this[w+2]=y>>>16,this[w+1]=y>>>8,this[w]=y&255,w+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,4,4294967295,0),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4};function Be(O,y,w,L,V){Nt(y,L,V,O,w,7);let G=Number(y&BigInt(4294967295));O[w++]=G,G=G>>8,O[w++]=G,G=G>>8,O[w++]=G,G=G>>8,O[w++]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return O[w++]=ee,ee=ee>>8,O[w++]=ee,ee=ee>>8,O[w++]=ee,ee=ee>>8,O[w++]=ee,w}function We(O,y,w,L,V){Nt(y,L,V,O,w,7);let G=Number(y&BigInt(4294967295));O[w+7]=G,G=G>>8,O[w+6]=G,G=G>>8,O[w+5]=G,G=G>>8,O[w+4]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return O[w+3]=ee,ee=ee>>8,O[w+2]=ee,ee=ee>>8,O[w+1]=ee,ee=ee>>8,O[w]=ee,w+8}g.prototype.writeBigUInt64LE=Te(function(y,w=0){return Be(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=Te(function(y,w=0){return We(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(y,w,L,V){if(y=+y,w=w>>>0,!V){const pt=Math.pow(2,8*L-1);ae(this,y,w,L,pt-1,-pt)}let G=0,ee=1,Ue=0;for(this[w]=y&255;++G<L&&(ee*=256);)y<0&&Ue===0&&this[w+G-1]!==0&&(Ue=1),this[w+G]=(y/ee>>0)-Ue&255;return w+L},g.prototype.writeIntBE=function(y,w,L,V){if(y=+y,w=w>>>0,!V){const pt=Math.pow(2,8*L-1);ae(this,y,w,L,pt-1,-pt)}let G=L-1,ee=1,Ue=0;for(this[w+G]=y&255;--G>=0&&(ee*=256);)y<0&&Ue===0&&this[w+G+1]!==0&&(Ue=1),this[w+G]=(y/ee>>0)-Ue&255;return w+L},g.prototype.writeInt8=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,1,127,-128),y<0&&(y=255+y+1),this[w]=y&255,w+1},g.prototype.writeInt16LE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,2,32767,-32768),this[w]=y&255,this[w+1]=y>>>8,w+2},g.prototype.writeInt16BE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,2,32767,-32768),this[w]=y>>>8,this[w+1]=y&255,w+2},g.prototype.writeInt32LE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,4,2147483647,-2147483648),this[w]=y&255,this[w+1]=y>>>8,this[w+2]=y>>>16,this[w+3]=y>>>24,w+4},g.prototype.writeInt32BE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4},g.prototype.writeBigInt64LE=Te(function(y,w=0){return Be(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=Te(function(y,w=0){return We(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _e(O,y,w,L,V,G){if(w+L>O.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function De(O,y,w,L,V){return y=+y,w=w>>>0,V||_e(O,y,w,4),n.write(O,y,w,L,23,4),w+4}g.prototype.writeFloatLE=function(y,w,L){return De(this,y,w,!0,L)},g.prototype.writeFloatBE=function(y,w,L){return De(this,y,w,!1,L)};function Oe(O,y,w,L,V){return y=+y,w=w>>>0,V||_e(O,y,w,8),n.write(O,y,w,L,52,8),w+8}g.prototype.writeDoubleLE=function(y,w,L){return Oe(this,y,w,!0,L)},g.prototype.writeDoubleBE=function(y,w,L){return Oe(this,y,w,!1,L)},g.prototype.copy=function(y,w,L,V){if(!g.isBuffer(y))throw new TypeError("argument should be a Buffer");if(L||(L=0),!V&&V!==0&&(V=this.length),w>=y.length&&(w=y.length),w||(w=0),V>0&&V<L&&(V=L),V===L||y.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(L<0||L>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),y.length-w<V-L&&(V=y.length-w+L);const G=V-L;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(w,L,V):a.prototype.set.call(y,this.subarray(L,V),w),G},g.prototype.fill=function(y,w,L,V){if(typeof y=="string"){if(typeof w=="string"?(V=w,w=0,L=this.length):typeof L=="string"&&(V=L,L=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!g.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(y.length===1){const ee=y.charCodeAt(0);(V==="utf8"&&ee<128||V==="latin1")&&(y=ee)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(w<0||this.length<w||this.length<L)throw new RangeError("Out of range index");if(L<=w)return this;w=w>>>0,L=L===void 0?this.length:L>>>0,y||(y=0);let G;if(typeof y=="number")for(G=w;G<L;++G)this[G]=y;else{const ee=g.isBuffer(y)?y:g.from(y,V),Ue=ee.length;if(Ue===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<L-w;++G)this[G+w]=ee[G%Ue]}return this};const Le={};function Tt(O,y,w){Le[O]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(O,y){return`The "${O}" argument must be of type number. Received type ${typeof y}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(O,y,w){let L=`The value of "${O}" is out of range.`,V=w;return Number.isInteger(w)&&Math.abs(w)>2**32?V=nn(String(w)):typeof w=="bigint"&&(V=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(V=nn(V)),V+="n"),L+=` It must be ${y}. Received ${V}`,L},RangeError);function nn(O){let y="",w=O.length;const L=O[0]==="-"?1:0;for(;w>=L+4;w-=3)y=`_${O.slice(w-3,w)}${y}`;return`${O.slice(0,w)}${y}`}function Lt(O,y,w){jt(y,"offset"),(O[y]===void 0||O[y+w]===void 0)&&bt(y,O.length-(w+1))}function Nt(O,y,w,L,V,G){if(O>w||O<y){const ee=typeof y=="bigint"?"n":"";let Ue;throw y===0||y===BigInt(0)?Ue=`>= 0${ee} and < 2${ee} ** ${(G+1)*8}${ee}`:Ue=`>= -(2${ee} ** ${(G+1)*8-1}${ee}) and < 2 ** ${(G+1)*8-1}${ee}`,new Le.ERR_OUT_OF_RANGE("value",Ue,O)}Lt(L,V,G)}function jt(O,y){if(typeof O!="number")throw new Le.ERR_INVALID_ARG_TYPE(y,"number",O)}function bt(O,y,w){throw Math.floor(O)!==O?(jt(O,w),new Le.ERR_OUT_OF_RANGE("offset","an integer",O)):y<0?new Le.ERR_BUFFER_OUT_OF_BOUNDS:new Le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,O)}const kn=/[^+/0-9A-Za-z-_]/g;function An(O){if(O=O.split("=")[0],O=O.trim().replace(kn,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function ke(O,y){y=y||1/0;let w;const L=O.length;let V=null;const G=[];for(let ee=0;ee<L;++ee){if(w=O.charCodeAt(ee),w>55295&&w<57344){if(!V){if(w>56319){(y-=3)>-1&&G.push(239,191,189);continue}else if(ee+1===L){(y-=3)>-1&&G.push(239,191,189);continue}V=w;continue}if(w<56320){(y-=3)>-1&&G.push(239,191,189),V=w;continue}w=(V-55296<<10|w-56320)+65536}else V&&(y-=3)>-1&&G.push(239,191,189);if(V=null,w<128){if((y-=1)<0)break;G.push(w)}else if(w<2048){if((y-=2)<0)break;G.push(w>>6|192,w&63|128)}else if(w<65536){if((y-=3)<0)break;G.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((y-=4)<0)break;G.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return G}function Pe(O){const y=[];for(let w=0;w<O.length;++w)y.push(O.charCodeAt(w)&255);return y}function he(O,y){let w,L,V;const G=[];for(let ee=0;ee<O.length&&!((y-=2)<0);++ee)w=O.charCodeAt(ee),L=w>>8,V=w%256,G.push(V),G.push(L);return G}function At(O){return t.toByteArray(An(O))}function St(O,y,w,L){let V;for(V=0;V<L&&!(V+w>=y.length||V>=O.length);++V)y[V+w]=O[V];return V}function Et(O,y){return O instanceof y||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===y.name}function rt(O){return O!==O}const we=function(){const O="0123456789abcdef",y=new Array(256);for(let w=0;w<16;++w){const L=w*16;for(let V=0;V<16;++V)y[L+V]=O[w]+O[V]}return y}();function Te(O){return typeof BigInt>"u"?ut:O}function ut(){throw new Error("BigInt not supported")}})(ah);const Sm=ah.Buffer;function ht(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}re.inherits(ht,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ch=ht.prototype,lh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lh[e]={value:e}}),Object.defineProperties(ht,lh),Object.defineProperty(ch,"isAxiosError",{value:!0}),ht.from=(e,t,n,i,o,a)=>{const u=Object.create(ch);return re.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),ht.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const Em=null;function zu(e){return re.isPlainObject(e)||re.isArray(e)}function fh(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function hh(e,t,n){return e?e.concat(t).map(function(o,a){return o=fh(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function xm(e){return re.isArray(e)&&!e.some(zu)}const Cm=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function Jo(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,b){return!re.isUndefined(b[E])});const i=n.metaTokens,o=n.visitor||g,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(o))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(re.isDate(S))return S.toISOString();if(!f&&re.isBlob(S))throw new ht("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(S)||re.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Sm.from(S):S}function g(S,E,b){let B=S;if(S&&!b&&typeof S=="object"){if(re.endsWith(E,"{}"))E=i?E:E.slice(0,-2),S=JSON.stringify(S);else if(re.isArray(S)&&xm(S)||(re.isFileList(S)||re.endsWith(E,"[]"))&&(B=re.toArray(S)))return E=fh(E),B.forEach(function(_,k){!(re.isUndefined(_)||_===null)&&t.append(u===!0?hh([E],k,a):u===null?E:E+"[]",h(_))}),!1}return zu(S)?!0:(t.append(hh(b,E,a),h(S)),!1)}const p=[],v=Object.assign(Cm,{defaultVisitor:g,convertValue:h,isVisitable:zu});function C(S,E){if(!re.isUndefined(S)){if(p.indexOf(S)!==-1)throw Error("Circular reference detected in "+E.join("."));p.push(S),re.forEach(S,function(B,N){(!(re.isUndefined(B)||B===null)&&o.call(t,B,re.isString(N)?N.trim():N,E,v))===!0&&C(B,E?E.concat(N):[N])}),p.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return C(e),t}function dh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Gu(e,t){this._pairs=[],e&&Jo(e,this,t)}const ph=Gu.prototype;ph.append=function(t,n){this._pairs.push([t,n])},ph.toString=function(t){const n=t?function(i){return t.call(this,i,dh)}:dh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function _m(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gh(e,t,n){if(!t)return e;const i=n&&n.encode||_m,o=n&&n.serialize;let a;if(o?a=o(t,n):a=re.isURLSearchParams(t)?t.toString():new Gu(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class yh{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(i){i!==null&&t(i)})}}const mh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},km=typeof URLSearchParams<"u"?URLSearchParams:Gu,Tm=typeof FormData<"u"?FormData:null,Om=typeof Blob<"u"?Blob:null,Im=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Fm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gr={classes:{URLSearchParams:km,FormData:Tm,Blob:Om},isStandardBrowserEnv:Im,isStandardBrowserWebWorkerEnv:Fm,protocols:["http","https","file","blob","url","data"]};function Bm(e,t){return Jo(e,new gr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return gr.isNode&&re.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Dm(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pm(e){const t={},n=Object.keys(e);let i;const o=n.length;let a;for(i=0;i<o;i++)a=n[i],t[a]=e[a];return t}function wh(e){function t(n,i,o,a){let u=n[a++];const l=Number.isFinite(+u),f=a>=n.length;return u=!u&&re.isArray(o)?o.length:u,f?(re.hasOwnProp(o,u)?o[u]=[o[u],i]:o[u]=i,!l):((!o[u]||!re.isObject(o[u]))&&(o[u]=[]),t(n,i,o[u],a)&&re.isArray(o[u])&&(o[u]=Pm(o[u])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(i,o)=>{t(Dm(i),o,n,0)}),n}return null}const Rm={"Content-Type":void 0};function Lm(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Ki={transitional:mh,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=re.isObject(t);if(a&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return o&&o?JSON.stringify(wh(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Bm(t,this.formSerializer).toString();if((l=re.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Jo(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Lm(t)):t}],transformResponse:[function(t){const n=this.transitional||Ki.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&re.isString(t)&&(i&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(u)throw l.name==="SyntaxError"?ht.from(l,ht.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gr.classes.FormData,Blob:gr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};re.forEach(["delete","get","head"],function(t){Ki.headers[t]={}}),re.forEach(["post","put","patch"],function(t){Ki.headers[t]=re.merge(Rm)});const Nm=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jm=e=>{const t={};let n,i,o;return e&&e.split(`
100
- `).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),i=u.substring(o+1).trim(),!(!n||t[n]&&Nm[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},bh=Symbol("internals");function Rs(e){return e&&String(e).trim().toLowerCase()}function Yo(e){return e===!1||e==null?e:re.isArray(e)?e.map(Yo):String(e)}function $m(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const Mm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ju(e,t,n,i,o){if(re.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!re.isString(t)){if(re.isString(i))return t.indexOf(i)!==-1;if(re.isRegExp(i))return i.test(t)}}function Um(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Vm(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,a,u){return this[i].call(this,t,o,a,u)},configurable:!0})})}let $n=class{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function a(l,f,h){const g=Rs(f);if(!g)throw new Error("header name must be a non-empty string");const p=re.findKey(o,g);(!p||o[p]===void 0||h===!0||h===void 0&&o[p]!==!1)&&(o[p||f]=Yo(l))}const u=(l,f)=>re.forEach(l,(h,g)=>a(h,g,f));return re.isPlainObject(t)||t instanceof this.constructor?u(t,n):re.isString(t)&&(t=t.trim())&&!Mm(t)?u(jm(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=Rs(t),t){const i=re.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return $m(o);if(re.isFunction(n))return n.call(this,o,i);if(re.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rs(t),t){const i=re.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Ju(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(u){if(u=Rs(u),u){const l=re.findKey(i,u);l&&(!n||Ju(i,i[l],l,n))&&(delete i[l],o=!0)}}return re.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const a=n[i];(!t||Ju(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,i={};return re.forEach(this,(o,a)=>{const u=re.findKey(i,a);if(u){n[u]=Yo(o),delete n[a];return}const l=t?Um(a):String(a).trim();l!==a&&delete n[a],n[l]=Yo(o),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&re.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
101
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[bh]=this[bh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Rs(u);i[l]||(Vm(o,u),i[l]=!0)}return re.isArray(t)?t.forEach(a):a(t),this}};$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.freezeMethods($n.prototype),re.freezeMethods($n);function Yu(e,t){const n=this||Ki,i=t||n,o=$n.from(i.headers);let a=i.data;return re.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function vh(e){return!!(e&&e.__CANCEL__)}function Ls(e,t,n){ht.call(this,e??"canceled",ht.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ls,ht,{__CANCEL__:!0});function qm(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new ht("Request failed with status code "+n.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Wm=gr.isStandardBrowserEnv?function(){return{write:function(n,i,o,a,u,l){const f=[];f.push(n+"="+encodeURIComponent(i)),re.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),re.isString(a)&&f.push("path="+a),re.isString(u)&&f.push("domain="+u),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Km(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hm(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ah(e,t){return e&&!Km(t)?Hm(e,t):t}const zm=gr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function o(a){let u=a;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(u){const l=re.isString(u)?o(u):u;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function Gm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Jm(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),g=i[a];u||(u=h),n[o]=f,i[o]=h;let p=a,v=0;for(;p!==o;)v+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-u<t)return;const C=g&&h-g;return C?Math.round(v*1e3/C):void 0}}function Sh(e,t){let n=0;const i=Jm(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),h=a<=u;n=a;const g={loaded:a,total:u,progress:u?a/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&h?(u-a)/f:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const Xo={http:Em,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){let o=e.data;const a=$n.from(e.headers).normalize(),u=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}re.isFormData(o)&&(gr.isStandardBrowserEnv||gr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let h=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(C+":"+S))}const g=Ah(e.baseURL,e.url);h.open(e.method.toUpperCase(),gh(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function p(){if(!h)return;const C=$n.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),E={data:!u||u==="text"||u==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:C,config:e,request:h};qm(function(B){n(B),f()},function(B){i(B),f()},E),h=null}if("onloadend"in h?h.onloadend=p:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(p)},h.onabort=function(){h&&(i(new ht("Request aborted",ht.ECONNABORTED,e,h)),h=null)},h.onerror=function(){i(new ht("Network Error",ht.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||mh;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(new ht(S,E.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,h)),h=null},gr.isStandardBrowserEnv){const C=(e.withCredentials||zm(g))&&e.xsrfCookieName&&Wm.read(e.xsrfCookieName);C&&a.set(e.xsrfHeaderName,C)}o===void 0&&a.setContentType(null),"setRequestHeader"in h&&re.forEach(a.toJSON(),function(S,E){h.setRequestHeader(E,S)}),re.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),u&&u!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",Sh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",Sh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=C=>{h&&(i(!C||C.type?new Ls(null,e,h):C),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=Gm(g);if(v&&gr.protocols.indexOf(v)===-1){i(new ht("Unsupported protocol "+v+":",ht.ERR_BAD_REQUEST,e));return}h.send(o||null)})}};re.forEach(Xo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ym={getAdapter:e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let o=0;o<t&&(n=e[o],!(i=re.isString(n)?Xo[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new ht(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(re.hasOwnProp(Xo,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!re.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:Xo};function Xu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ls(null,e)}function Eh(e){return Xu(e),e.headers=$n.from(e.headers),e.data=Yu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ym.getAdapter(e.adapter||Ki.adapter)(e).then(function(i){return Xu(e),i.data=Yu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return vh(i)||(Xu(e),i&&i.response&&(i.response.data=Yu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const xh=e=>e instanceof $n?e.toJSON():e;function Hi(e,t){t=t||{};const n={};function i(h,g,p){return re.isPlainObject(h)&&re.isPlainObject(g)?re.merge.call({caseless:p},h,g):re.isPlainObject(g)?re.merge({},g):re.isArray(g)?g.slice():g}function o(h,g,p){if(re.isUndefined(g)){if(!re.isUndefined(h))return i(void 0,h,p)}else return i(h,g,p)}function a(h,g){if(!re.isUndefined(g))return i(void 0,g)}function u(h,g){if(re.isUndefined(g)){if(!re.isUndefined(h))return i(void 0,h)}else return i(void 0,g)}function l(h,g,p){if(p in t)return i(h,g);if(p in e)return i(void 0,h)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(h,g)=>o(xh(h),xh(g),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(g){const p=f[g]||o,v=p(e[g],t[g],g);re.isUndefined(v)&&p!==l||(n[g]=v)}),n}const Ch="1.4.0",Qu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const _h={};Qu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+Ch+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new ht(o(u," has been removed"+(n?" in "+n:"")),ht.ERR_DEPRECATED);return n&&!_h[u]&&(_h[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,l):!0}};function Xm(e,t,n){if(typeof e!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],u=t[a];if(u){const l=e[a],f=l===void 0||u(l,a,e);if(f!==!0)throw new ht("option "+a+" must be "+f,ht.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ht("Unknown option "+a,ht.ERR_BAD_OPTION)}}const Zu={assertOptions:Xm,validators:Qu},Vr=Zu.validators;let pi=class{constructor(t){this.defaults=t,this.interceptors={request:new yh,response:new yh}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Hi(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&Zu.assertOptions(i,{silentJSONParsing:Vr.transitional(Vr.boolean),forcedJSONParsing:Vr.transitional(Vr.boolean),clarifyTimeoutError:Vr.transitional(Vr.boolean)},!1),o!=null&&(re.isFunction(o)?n.paramsSerializer={serialize:o}:Zu.assertOptions(o,{encode:Vr.function,serialize:Vr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=a&&re.merge(a.common,a[n.method]),u&&re.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),n.headers=$n.concat(u,a);const l=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let g,p=0,v;if(!f){const S=[Eh.bind(this),void 0];for(S.unshift.apply(S,l),S.push.apply(S,h),v=S.length,g=Promise.resolve(n);p<v;)g=g.then(S[p++],S[p++]);return g}v=l.length;let C=n;for(p=0;p<v;){const S=l[p++],E=l[p++];try{C=S(C)}catch(b){E.call(this,b);break}}try{g=Eh.call(this,C)}catch(S){return Promise.reject(S)}for(p=0,v=h.length;p<v;)g=g.then(h[p++],h[p++]);return g}getUri(t){t=Hi(this.defaults,t);const n=Ah(t.baseURL,t.url);return gh(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){pi.prototype[t]=function(n,i){return this.request(Hi(i||{},{method:t,url:n,data:(i||{}).data}))}}),re.forEach(["post","put","patch"],function(t){function n(i){return function(a,u,l){return this.request(Hi(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}pi.prototype[t]=n(),pi.prototype[t+"Form"]=n(!0)});let Qm=class m1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const u=new Promise(l=>{i.subscribe(l),a=l}).then(o);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,l){i.reason||(i.reason=new Ls(a,u,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new m1(function(o){t=o}),cancel:t}}};function Zm(e){return function(n){return e.apply(null,n)}}function e2(e){return re.isObject(e)&&e.isAxiosError===!0}const ec={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ec).forEach(([e,t])=>{ec[t]=e});function kh(e){const t=new pi(e),n=Xf(pi.prototype.request,t);return re.extend(n,pi.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return kh(Hi(e,o))},n}const nt=kh(Ki);nt.Axios=pi,nt.CanceledError=Ls,nt.CancelToken=Qm,nt.isCancel=vh,nt.VERSION=Ch,nt.toFormData=Jo,nt.AxiosError=ht,nt.Cancel=nt.CanceledError,nt.all=function(t){return Promise.all(t)},nt.spread=Zm,nt.isAxiosError=e2,nt.mergeConfig=Hi,nt.AxiosHeaders=$n,nt.formToJSON=e=>wh(re.isHTMLForm(e)?new FormData(e):e),nt.HttpStatusCode=ec,nt.default=nt;const{Axios:P8,AxiosError:R8,CanceledError:L8,isCancel:N8,CancelToken:j8,VERSION:$8,all:M8,Cancel:U8,isAxiosError:Qo,spread:V8,toFormData:q8,AxiosHeaders:W8,HttpStatusCode:K8,formToJSON:H8,mergeConfig:z8}=nt,Zo=async({endpoint:e,body:t})=>nt.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),ea=async({endpoint:e,body:t})=>nt.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),tc=async({endpoint:e})=>nt.delete(e),nc=({name:e,onClose:t,endpoint:n})=>{const[i,o]=Z.useState(),[a,u]=Z.useState(!1),l=()=>{u(!0),o(void 0),tc({endpoint:n}).then(()=>{u(!1),o(void 0),t()}).catch(f=>{u(!1),o(f)})};return A.jsx(q.Modal,{title:`Delete «${e}»`,open:!0,onOk:()=>l(),onCancel:()=>{t(),u(!1),o(void 0)},okText:"Delete",confirmLoading:a,okButtonProps:{danger:!0},width:400,children:i&&A.jsx(q.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},t2=({data:e,onClose:t})=>{const[n,i]=Z.useState(),[o,a]=Z.useState(!1),u=()=>{a(!0),i(void 0);const l=e.map(({endpoint:f})=>tc({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return A.jsx(q.Modal,{title:"Delete selected",open:!0,onOk:()=>u(),onCancel:()=>{t(),a(!1),i(void 0)},okText:"Delete",confirmLoading:o,okButtonProps:{danger:!0},width:400,children:n&&A.jsx(q.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},Th=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M17.25 3.5H14.25V1.625C14.25 0.797656 13.5773 0.125 12.75 0.125H5.25C4.42266 0.125 3.75 0.797656 3.75 1.625V3.5H0.75C0.335156 3.5 0 3.83516 0 4.25V5C0 5.10313 0.084375 5.1875 0.1875 5.1875H1.60312L2.18203 17.4453C2.21953 18.2445 2.88047 18.875 3.67969 18.875H14.3203C15.1219 18.875 15.7805 18.2469 15.818 17.4453L16.3969 5.1875H17.8125C17.9156 5.1875 18 5.10313 18 5V4.25C18 3.83516 17.6648 3.5 17.25 3.5ZM12.5625 3.5H5.4375V1.8125H12.5625V3.5Z",fill:e.colorText})})},Oh=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:e.colorText})})},Ih=()=>A.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("g",{clipPath:"url(#clip0_186_9937)",children:A.jsx("path",{d:"M6.33719 9.39777L11.0528 3.36027C11.0652 3.34449 11.073 3.32553 11.0751 3.30557C11.0772 3.2856 11.0737 3.26544 11.0649 3.2474C11.056 3.22936 11.0423 3.21417 11.0253 3.20357C11.0082 3.19298 10.9885 3.18741 10.9684 3.1875L9.93317 3.1875C9.86754 3.1875 9.8046 3.2183 9.76442 3.2692L5.99969 8.09063L2.23495 3.2692C2.19478 3.21697 2.13183 3.1875 2.0662 3.1875L1.03094 3.1875C0.941204 3.1875 0.89165 3.29063 0.946561 3.36027L5.66219 9.39777C5.70221 9.44908 5.75342 9.4906 5.8119 9.51915C5.87038 9.5477 5.93461 9.56254 5.99969 9.56254C6.06477 9.56254 6.12899 9.5477 6.18747 9.51915C6.24596 9.4906 6.29716 9.44908 6.33719 9.39777Z",fill:"currentColor"})}),A.jsx("defs",{children:A.jsx("clipPath",{id:"clip0_186_9937",children:A.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(12) rotate(90)"})})})]}),Fh=()=>A.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("g",{clipPath:"url(#clip0_186_11488)",children:A.jsx("path",{d:"M5.66281 2.60223L0.947189 8.63973C0.934768 8.65551 0.92705 8.67447 0.924919 8.69443C0.922788 8.7144 0.926332 8.73456 0.935143 8.7526C0.943955 8.77064 0.957676 8.78583 0.974732 8.79643C0.991787 8.80702 1.01149 8.81259 1.03156 8.8125L2.06683 8.8125C2.13246 8.8125 2.1954 8.7817 2.23558 8.7308L6.00031 3.90937L9.76505 8.7308C9.80522 8.78303 9.86817 8.8125 9.9338 8.8125L10.9691 8.8125C11.0588 8.8125 11.1083 8.70937 11.0534 8.63973L6.33781 2.60223C6.29779 2.55092 6.24658 2.5094 6.1881 2.48085C6.12962 2.4523 6.06539 2.43746 6.00031 2.43746C5.93523 2.43746 5.87101 2.4523 5.81253 2.48085C5.75404 2.5094 5.70284 2.55092 5.66281 2.60223Z",fill:"currentColor"})}),A.jsx("defs",{children:A.jsx("clipPath",{id:"clip0_186_11488",children:A.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12) rotate(-90)"})})})]}),Bh=()=>{const{token:e}=q.theme.useToken();return A.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsxs("g",{clipPath:"url(#clip0_294_13557)",children:[A.jsx("path",{d:"M0.568356 1.62165L1.19782 2.11384C2.05608 1.01674 3.3909 0.3125 4.88978 0.3125C7.47795 0.3125 9.57282 2.40513 9.57617 4.99442C9.57952 7.58594 7.48019 9.6875 4.88978 9.6875C2.86635 9.6875 1.14202 8.40402 0.485765 6.60603C0.469025 6.55915 0.493578 6.5067 0.540453 6.49107L1.17327 6.27344C1.19533 6.26588 1.21948 6.26725 1.24054 6.27726C1.26161 6.28727 1.27792 6.30513 1.28599 6.32701C1.30608 6.38281 1.3284 6.43862 1.35184 6.4933C1.54492 6.95089 1.8217 7.36161 2.17438 7.71429C2.52421 8.06478 2.93841 8.34445 3.39425 8.53795C3.86635 8.73772 4.36969 8.83929 4.88755 8.83929C5.40653 8.83929 5.90876 8.73772 6.38086 8.53795C6.83713 8.34526 7.25148 8.06549 7.60072 7.71429C7.9515 7.3645 8.23087 6.9498 8.42327 6.4933C8.62304 6.02009 8.72461 5.51786 8.72461 4.99888C8.72461 4.47991 8.62304 3.97768 8.42327 3.50446C8.23019 3.04688 7.9534 2.63616 7.60072 2.28348C7.24804 1.9308 6.83733 1.65402 6.38086 1.45982C5.90876 1.26004 5.40541 1.15848 4.88755 1.15848C4.36858 1.15848 3.86635 1.26004 3.39425 1.45982C2.93797 1.65251 2.52362 1.93228 2.17438 2.28348C2.06389 2.39397 1.9601 2.51116 1.86411 2.63393L2.53599 3.15848C2.54928 3.16877 2.5594 3.18259 2.56519 3.19837C2.57097 3.21415 2.57219 3.23125 2.56869 3.24768C2.56519 3.26412 2.55712 3.27924 2.54542 3.2913C2.53371 3.30336 2.51884 3.31187 2.50251 3.31585L0.542685 3.79576C0.486881 3.80915 0.432195 3.76674 0.432195 3.70982L0.423265 1.69085C0.424381 1.61719 0.51032 1.57589 0.568356 1.62165Z",fill:e.colorPrimary}),A.jsx("circle",{cx:"4.99935",cy:"5.00033",r:"2.08333",fill:e.colorPrimary})]}),A.jsx("defs",{children:A.jsx("clipPath",{id:"clip0_294_13557",children:A.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})},Dh=()=>{const{token:e}=q.theme.useToken();return A.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("g",{clipPath:"url(#clip0_661_14605)",children:A.jsx("path",{d:"M14.6751 8.38707C14.9751 7.99064 15.1412 7.50492 15.1412 6.99957C15.1412 6.19778 14.693 5.43885 13.9715 5.01564C13.7858 4.9067 13.5744 4.84937 13.359 4.84957H9.0769L9.18404 2.65492C9.20904 2.12457 9.02154 1.621 8.65726 1.23707C8.47848 1.04783 8.2628 0.897269 8.02353 0.794683C7.78427 0.692098 7.52651 0.63967 7.26618 0.640638C6.33761 0.640638 5.51618 1.26564 5.26976 2.16028L3.73583 7.71385H1.4269C1.11083 7.71385 0.855469 7.96921 0.855469 8.28528V14.7853C0.855469 15.1014 1.11083 15.3567 1.4269 15.3567H12.1644C12.3287 15.3567 12.4894 15.3246 12.6376 15.2603C13.4876 14.8978 14.0358 14.0674 14.0358 13.146C14.0358 12.921 14.0037 12.6996 13.9394 12.4853C14.2394 12.0889 14.4055 11.6031 14.4055 11.0978C14.4055 10.8728 14.3733 10.6514 14.309 10.4371C14.609 10.0406 14.7751 9.55492 14.7751 9.04957C14.7715 8.82457 14.7394 8.60135 14.6751 8.38707ZM2.14118 14.071V8.99957H3.58761V14.071H2.14118ZM13.5055 7.76742L13.1144 8.10671L13.3626 8.56028C13.4444 8.70969 13.4868 8.87746 13.4858 9.04778C13.4858 9.34242 13.3573 9.62278 13.1358 9.81564L12.7448 10.1549L12.993 10.6085C13.0747 10.7579 13.1171 10.9257 13.1162 11.096C13.1162 11.3906 12.9876 11.671 12.7662 11.8639L12.3751 12.2031L12.6233 12.6567C12.7051 12.8061 12.7475 12.9739 12.7465 13.1442C12.7465 13.5442 12.5108 13.9049 12.1465 14.0692H4.73047V8.94242L6.50726 2.50492C6.55307 2.33992 6.65142 2.19436 6.7874 2.09027C6.92339 1.98619 7.08959 1.92927 7.26083 1.92814C7.39654 1.92814 7.53047 1.96742 7.63761 2.04778C7.8144 2.17992 7.90904 2.37992 7.89833 2.59242L7.7269 6.13528H13.3412C13.659 6.32992 13.8555 6.6585 13.8555 6.99957C13.8555 7.29421 13.7269 7.57278 13.5055 7.76742Z",fill:e.colorSuccess})}),A.jsx("defs",{children:A.jsx("clipPath",{id:"clip0_661_14605",children:A.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})},n2={success:A.jsx(wn.CheckCircleFilled,{}),error:A.jsx(wn.CloseCircleFilled,{}),warning:A.jsx(wn.ExclamationCircleFilled,{}),validating:A.jsx(wn.LoadingOutlined,{})},qr=()=>({...n2,success:A.jsx(Dh,{})}),rc=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M8.53558 1.57227H7.46415C7.36891 1.57227 7.32129 1.61988 7.32129 1.71512V7.32227H2.00028C1.90504 7.32227 1.85742 7.36988 1.85742 7.46512V8.53655C1.85742 8.63179 1.90504 8.67941 2.00028 8.67941H7.32129V14.2866C7.32129 14.3818 7.36891 14.4294 7.46415 14.4294H8.53558C8.63081 14.4294 8.67843 14.3818 8.67843 14.2866V8.67941H14.0003C14.0955 8.67941 14.1431 8.63179 14.1431 8.53655V7.46512C14.1431 7.36988 14.0955 7.32227 14.0003 7.32227H8.67843V1.71512C8.67843 1.61988 8.63081 1.57227 8.53558 1.57227Z",fill:e.colorText})})},sn=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M14.4277 7.32227H1.57059C1.49202 7.32227 1.42773 7.38655 1.42773 7.46512V8.53655C1.42773 8.61512 1.49202 8.67941 1.57059 8.67941H14.4277C14.5063 8.67941 14.5706 8.61512 14.5706 8.53655V7.46512C14.5706 7.38655 14.5063 7.32227 14.4277 7.32227Z",fill:e.colorText})})},Ph=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M11.375 6.34375H10.4453V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398ZM9.46094 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V6.34375Z",fill:e.colorPrimary})})},Rh=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M11.375 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V4.21094C9.46094 4.27109 9.51016 4.32031 9.57031 4.32031H10.3359C10.3961 4.32031 10.4453 4.27109 10.4453 4.21094V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398Z",fill:e.colorText})})},r2={ContentContainer:Ye.div`
99
+ */(function(e){const t=zo,n=Wu,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=g,e.SlowBuffer=F,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;g.TYPED_ARRAY_SUPPORT=f(),!g.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const I=new a(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,a.prototype),Object.setPrototypeOf(I,y),I.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function d(I){if(I>o)throw new RangeError('The value "'+I+'" is invalid for option "size"');const y=new a(I);return Object.setPrototypeOf(y,g.prototype),y}function g(I,y,w){if(typeof I=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(I)}return p(I,y,w)}g.poolSize=8192;function p(I,y,w){if(typeof I=="string")return E(I,y);if(u.isView(I))return B(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(vt(I,u)||I&&vt(I.buffer,u)||typeof l<"u"&&(vt(I,l)||I&&vt(I.buffer,l)))return N(I,y,w);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const P=I.valueOf&&I.valueOf();if(P!=null&&P!==I)return g.from(P,y,w);const V=_(I);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return g.from(I[Symbol.toPrimitive]("string"),y,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}g.from=function(I,y,w){return p(I,y,w)},Object.setPrototypeOf(g.prototype,a.prototype),Object.setPrototypeOf(g,a);function v(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function C(I,y,w){return v(I),I<=0?d(I):y!==void 0?typeof w=="string"?d(I).fill(y,w):d(I).fill(y):d(I)}g.alloc=function(I,y,w){return C(I,y,w)};function A(I){return v(I),d(I<0?0:k(I)|0)}g.allocUnsafe=function(I){return A(I)},g.allocUnsafeSlow=function(I){return A(I)};function E(I,y){if((typeof y!="string"||y==="")&&(y="utf8"),!g.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=R(I,y)|0;let P=d(w);const V=P.write(I,y);return V!==w&&(P=P.slice(0,V)),P}function b(I){const y=I.length<0?0:k(I.length)|0,w=d(y);for(let P=0;P<y;P+=1)w[P]=I[P]&255;return w}function B(I){if(vt(I,a)){const y=new a(I);return N(y.buffer,y.byteOffset,y.byteLength)}return b(I)}function N(I,y,w){if(y<0||I.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<y+(w||0))throw new RangeError('"length" is outside of buffer bounds');let P;return y===void 0&&w===void 0?P=new a(I):w===void 0?P=new a(I,y):P=new a(I,y,w),Object.setPrototypeOf(P,g.prototype),P}function _(I){if(g.isBuffer(I)){const y=k(I.length)|0,w=d(y);return w.length===0||I.copy(w,0,0,y),w}if(I.length!==void 0)return typeof I.length!="number"||rt(I.length)?d(0):b(I);if(I.type==="Buffer"&&Array.isArray(I.data))return b(I.data)}function k(I){if(I>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return I|0}function F(I){return+I!=I&&(I=0),g.alloc(+I)}g.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==g.prototype},g.compare=function(y,w){if(vt(y,a)&&(y=g.from(y,y.offset,y.byteLength)),vt(w,a)&&(w=g.from(w,w.offset,w.byteLength)),!g.isBuffer(y)||!g.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===w)return 0;let P=y.length,V=w.length;for(let G=0,ee=Math.min(P,V);G<ee;++G)if(y[G]!==w[G]){P=y[G],V=w[G];break}return P<V?-1:V<P?1:0},g.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(y,w){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return g.alloc(0);let P;if(w===void 0)for(w=0,P=0;P<y.length;++P)w+=y[P].length;const V=g.allocUnsafe(w);let G=0;for(P=0;P<y.length;++P){let ee=y[P];if(vt(ee,a))G+ee.length>V.length?(g.isBuffer(ee)||(ee=g.from(ee)),ee.copy(V,G)):a.prototype.set.call(V,ee,G);else if(g.isBuffer(ee))ee.copy(V,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return V};function R(I,y){if(g.isBuffer(I))return I.length;if(u.isView(I)||vt(I,u))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);const w=I.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&w===0)return 0;let V=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return Ce(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return At(I).length;default:if(V)return P?-1:Ce(I).length;y=(""+y).toLowerCase(),V=!0}}g.byteLength=R;function O(I,y,w){let P=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,y>>>=0,w<=y))return"";for(I||(I="utf8");;)switch(I){case"hex":return We(this,y,w);case"utf8":case"utf-8":return ke(this,y,w);case"ascii":return Ae(this,y,w);case"latin1":case"binary":return Se(this,y,w);case"base64":return Le(this,y,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,y,w);default:if(P)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),P=!0}}g.prototype._isBuffer=!0;function W(I,y,w){const P=I[y];I[y]=I[w],I[w]=P}g.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<y;w+=2)W(this,w,w+1);return this},g.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<y;w+=4)W(this,w,w+3),W(this,w+1,w+2);return this},g.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<y;w+=8)W(this,w,w+7),W(this,w+1,w+6),W(this,w+2,w+5),W(this,w+3,w+4);return this},g.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?ke(this,0,y):O.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(y){if(!g.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:g.compare(this,y)===0},g.prototype.inspect=function(){let y="";const w=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(y+=" ... "),"<Buffer "+y+">"},i&&(g.prototype[i]=g.prototype.inspect),g.prototype.compare=function(y,w,P,V,G){if(vt(y,a)&&(y=g.from(y,y.offset,y.byteLength)),!g.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(w===void 0&&(w=0),P===void 0&&(P=y?y.length:0),V===void 0&&(V=0),G===void 0&&(G=this.length),w<0||P>y.length||V<0||G>this.length)throw new RangeError("out of range index");if(V>=G&&w>=P)return 0;if(V>=G)return-1;if(w>=P)return 1;if(w>>>=0,P>>>=0,V>>>=0,G>>>=0,this===y)return 0;let ee=G-V,Me=P-w;const pt=Math.min(ee,Me),ct=this.slice(V,G),dt=y.slice(w,P);for(let st=0;st<pt;++st)if(ct[st]!==dt[st]){ee=ct[st],Me=dt[st];break}return ee<Me?-1:Me<ee?1:0};function J(I,y,w,P,V){if(I.length===0)return-1;if(typeof w=="string"?(P=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,rt(w)&&(w=V?0:I.length-1),w<0&&(w=I.length+w),w>=I.length){if(V)return-1;w=I.length-1}else if(w<0)if(V)w=0;else return-1;if(typeof y=="string"&&(y=g.from(y,P)),g.isBuffer(y))return y.length===0?-1:le(I,y,w,P,V);if(typeof y=="number")return y=y&255,typeof a.prototype.indexOf=="function"?V?a.prototype.indexOf.call(I,y,w):a.prototype.lastIndexOf.call(I,y,w):le(I,[y],w,P,V);throw new TypeError("val must be string, number or Buffer")}function le(I,y,w,P,V){let G=1,ee=I.length,Me=y.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(I.length<2||y.length<2)return-1;G=2,ee/=2,Me/=2,w/=2}function pt(dt,st){return G===1?dt[st]:dt.readUInt16BE(st*G)}let ct;if(V){let dt=-1;for(ct=w;ct<ee;ct++)if(pt(I,ct)===pt(y,dt===-1?0:ct-dt)){if(dt===-1&&(dt=ct),ct-dt+1===Me)return dt*G}else dt!==-1&&(ct-=ct-dt),dt=-1}else for(w+Me>ee&&(w=ee-Me),ct=w;ct>=0;ct--){let dt=!0;for(let st=0;st<Me;st++)if(pt(I,ct+st)!==pt(y,st)){dt=!1;break}if(dt)return ct}return-1}g.prototype.includes=function(y,w,P){return this.indexOf(y,w,P)!==-1},g.prototype.indexOf=function(y,w,P){return J(this,y,w,P,!0)},g.prototype.lastIndexOf=function(y,w,P){return J(this,y,w,P,!1)};function ce(I,y,w,P){w=Number(w)||0;const V=I.length-w;P?(P=Number(P),P>V&&(P=V)):P=V;const G=y.length;P>G/2&&(P=G/2);let ee;for(ee=0;ee<P;++ee){const Me=parseInt(y.substr(ee*2,2),16);if(rt(Me))return ee;I[w+ee]=Me}return ee}function ge(I,y,w,P){return xt(Ce(y,I.length-w),I,w,P)}function ye(I,y,w,P){return xt(Be(y),I,w,P)}function he(I,y,w,P){return xt(At(y),I,w,P)}function me(I,y,w,P){return xt(pe(y,I.length-w),I,w,P)}g.prototype.write=function(y,w,P,V){if(w===void 0)V="utf8",P=this.length,w=0;else if(P===void 0&&typeof w=="string")V=w,P=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(P)?(P=P>>>0,V===void 0&&(V="utf8")):(V=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-w;if((P===void 0||P>G)&&(P=G),y.length>0&&(P<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ee=!1;for(;;)switch(V){case"hex":return ce(this,y,w,P);case"utf8":case"utf-8":return ge(this,y,w,P);case"ascii":case"latin1":case"binary":return ye(this,y,w,P);case"base64":return he(this,y,w,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,y,w,P);default:if(ee)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ee=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Le(I,y,w){return y===0&&w===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(y,w))}function ke(I,y,w){w=Math.min(I.length,w);const P=[];let V=y;for(;V<w;){const G=I[V];let ee=null,Me=G>239?4:G>223?3:G>191?2:1;if(V+Me<=w){let pt,ct,dt,st;switch(Me){case 1:G<128&&(ee=G);break;case 2:pt=I[V+1],(pt&192)===128&&(st=(G&31)<<6|pt&63,st>127&&(ee=st));break;case 3:pt=I[V+1],ct=I[V+2],(pt&192)===128&&(ct&192)===128&&(st=(G&15)<<12|(pt&63)<<6|ct&63,st>2047&&(st<55296||st>57343)&&(ee=st));break;case 4:pt=I[V+1],ct=I[V+2],dt=I[V+3],(pt&192)===128&&(ct&192)===128&&(dt&192)===128&&(st=(G&15)<<18|(pt&63)<<12|(ct&63)<<6|dt&63,st>65535&&st<1114112&&(ee=st))}}ee===null?(ee=65533,Me=1):ee>65535&&(ee-=65536,P.push(ee>>>10&1023|55296),ee=56320|ee&1023),P.push(ee),V+=Me}return tt(P)}const xe=4096;function tt(I){const y=I.length;if(y<=xe)return String.fromCharCode.apply(String,I);let w="",P=0;for(;P<y;)w+=String.fromCharCode.apply(String,I.slice(P,P+=xe));return w}function Ae(I,y,w){let P="";w=Math.min(I.length,w);for(let V=y;V<w;++V)P+=String.fromCharCode(I[V]&127);return P}function Se(I,y,w){let P="";w=Math.min(I.length,w);for(let V=y;V<w;++V)P+=String.fromCharCode(I[V]);return P}function We(I,y,w){const P=I.length;(!y||y<0)&&(y=0),(!w||w<0||w>P)&&(w=P);let V="";for(let G=y;G<w;++G)V+=we[I[G]];return V}function Y(I,y,w){const P=I.slice(y,w);let V="";for(let G=0;G<P.length-1;G+=2)V+=String.fromCharCode(P[G]+P[G+1]*256);return V}g.prototype.slice=function(y,w){const P=this.length;y=~~y,w=w===void 0?P:~~w,y<0?(y+=P,y<0&&(y=0)):y>P&&(y=P),w<0?(w+=P,w<0&&(w=0)):w>P&&(w=P),w<y&&(w=y);const V=this.subarray(y,w);return Object.setPrototypeOf(V,g.prototype),V};function Q(I,y,w){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+y>w)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(y,w,P){y=y>>>0,w=w>>>0,P||Q(y,w,this.length);let V=this[y],G=1,ee=0;for(;++ee<w&&(G*=256);)V+=this[y+ee]*G;return V},g.prototype.readUintBE=g.prototype.readUIntBE=function(y,w,P){y=y>>>0,w=w>>>0,P||Q(y,w,this.length);let V=this[y+--w],G=1;for(;w>0&&(G*=256);)V+=this[y+--w]*G;return V},g.prototype.readUint8=g.prototype.readUInt8=function(y,w){return y=y>>>0,w||Q(y,1,this.length),this[y]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(y,w){return y=y>>>0,w||Q(y,2,this.length),this[y]|this[y+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(y,w){return y=y>>>0,w||Q(y,2,this.length),this[y]<<8|this[y+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},g.prototype.readBigUInt64LE=_e(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],P=this[y+7];(w===void 0||P===void 0)&&wt(y,this.length-8);const V=w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,G=this[++y]+this[++y]*2**8+this[++y]*2**16+P*2**24;return BigInt(V)+(BigInt(G)<<BigInt(32))}),g.prototype.readBigUInt64BE=_e(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],P=this[y+7];(w===void 0||P===void 0)&&wt(y,this.length-8);const V=w*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],G=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+P;return(BigInt(V)<<BigInt(32))+BigInt(G)}),g.prototype.readIntLE=function(y,w,P){y=y>>>0,w=w>>>0,P||Q(y,w,this.length);let V=this[y],G=1,ee=0;for(;++ee<w&&(G*=256);)V+=this[y+ee]*G;return G*=128,V>=G&&(V-=Math.pow(2,8*w)),V},g.prototype.readIntBE=function(y,w,P){y=y>>>0,w=w>>>0,P||Q(y,w,this.length);let V=w,G=1,ee=this[y+--V];for(;V>0&&(G*=256);)ee+=this[y+--V]*G;return G*=128,ee>=G&&(ee-=Math.pow(2,8*w)),ee},g.prototype.readInt8=function(y,w){return y=y>>>0,w||Q(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},g.prototype.readInt16LE=function(y,w){y=y>>>0,w||Q(y,2,this.length);const P=this[y]|this[y+1]<<8;return P&32768?P|4294901760:P},g.prototype.readInt16BE=function(y,w){y=y>>>0,w||Q(y,2,this.length);const P=this[y+1]|this[y]<<8;return P&32768?P|4294901760:P},g.prototype.readInt32LE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},g.prototype.readInt32BE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},g.prototype.readBigInt64LE=_e(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],P=this[y+7];(w===void 0||P===void 0)&&wt(y,this.length-8);const V=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(P<<24);return(BigInt(V)<<BigInt(32))+BigInt(w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),g.prototype.readBigInt64BE=_e(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],P=this[y+7];(w===void 0||P===void 0)&&wt(y,this.length-8);const V=(w<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(V)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+P)}),g.prototype.readFloatLE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),n.read(this,y,!0,23,4)},g.prototype.readFloatBE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),n.read(this,y,!1,23,4)},g.prototype.readDoubleLE=function(y,w){return y=y>>>0,w||Q(y,8,this.length),n.read(this,y,!0,52,8)},g.prototype.readDoubleBE=function(y,w){return y=y>>>0,w||Q(y,8,this.length),n.read(this,y,!1,52,8)};function ue(I,y,w,P,V,G){if(!g.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>V||y<G)throw new RangeError('"value" argument is out of bounds');if(w+P>I.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(y,w,P,V){if(y=+y,w=w>>>0,P=P>>>0,!V){const Me=Math.pow(2,8*P)-1;ue(this,y,w,P,Me,0)}let G=1,ee=0;for(this[w]=y&255;++ee<P&&(G*=256);)this[w+ee]=y/G&255;return w+P},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(y,w,P,V){if(y=+y,w=w>>>0,P=P>>>0,!V){const Me=Math.pow(2,8*P)-1;ue(this,y,w,P,Me,0)}let G=P-1,ee=1;for(this[w+G]=y&255;--G>=0&&(ee*=256);)this[w+G]=y/ee&255;return w+P},g.prototype.writeUint8=g.prototype.writeUInt8=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,1,255,0),this[w]=y&255,w+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,2,65535,0),this[w]=y&255,this[w+1]=y>>>8,w+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,2,65535,0),this[w]=y>>>8,this[w+1]=y&255,w+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,4,4294967295,0),this[w+3]=y>>>24,this[w+2]=y>>>16,this[w+1]=y>>>8,this[w]=y&255,w+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,4,4294967295,0),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4};function De(I,y,w,P,V){Pt(y,P,V,I,w,7);let G=Number(y&BigInt(4294967295));I[w++]=G,G=G>>8,I[w++]=G,G=G>>8,I[w++]=G,G=G>>8,I[w++]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[w++]=ee,ee=ee>>8,I[w++]=ee,ee=ee>>8,I[w++]=ee,ee=ee>>8,I[w++]=ee,w}function Ye(I,y,w,P,V){Pt(y,P,V,I,w,7);let G=Number(y&BigInt(4294967295));I[w+7]=G,G=G>>8,I[w+6]=G,G=G>>8,I[w+5]=G,G=G>>8,I[w+4]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[w+3]=ee,ee=ee>>8,I[w+2]=ee,ee=ee>>8,I[w+1]=ee,ee=ee>>8,I[w]=ee,w+8}g.prototype.writeBigUInt64LE=_e(function(y,w=0){return De(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=_e(function(y,w=0){return Ye(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(y,w,P,V){if(y=+y,w=w>>>0,!V){const pt=Math.pow(2,8*P-1);ue(this,y,w,P,pt-1,-pt)}let G=0,ee=1,Me=0;for(this[w]=y&255;++G<P&&(ee*=256);)y<0&&Me===0&&this[w+G-1]!==0&&(Me=1),this[w+G]=(y/ee>>0)-Me&255;return w+P},g.prototype.writeIntBE=function(y,w,P,V){if(y=+y,w=w>>>0,!V){const pt=Math.pow(2,8*P-1);ue(this,y,w,P,pt-1,-pt)}let G=P-1,ee=1,Me=0;for(this[w+G]=y&255;--G>=0&&(ee*=256);)y<0&&Me===0&&this[w+G+1]!==0&&(Me=1),this[w+G]=(y/ee>>0)-Me&255;return w+P},g.prototype.writeInt8=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,1,127,-128),y<0&&(y=255+y+1),this[w]=y&255,w+1},g.prototype.writeInt16LE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,2,32767,-32768),this[w]=y&255,this[w+1]=y>>>8,w+2},g.prototype.writeInt16BE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,2,32767,-32768),this[w]=y>>>8,this[w+1]=y&255,w+2},g.prototype.writeInt32LE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,4,2147483647,-2147483648),this[w]=y&255,this[w+1]=y>>>8,this[w+2]=y>>>16,this[w+3]=y>>>24,w+4},g.prototype.writeInt32BE=function(y,w,P){return y=+y,w=w>>>0,P||ue(this,y,w,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4},g.prototype.writeBigInt64LE=_e(function(y,w=0){return De(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=_e(function(y,w=0){return Ye(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Te(I,y,w,P,V,G){if(w+P>I.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function Re(I,y,w,P,V){return y=+y,w=w>>>0,V||Te(I,y,w,4),n.write(I,y,w,P,23,4),w+4}g.prototype.writeFloatLE=function(y,w,P){return Re(this,y,w,!0,P)},g.prototype.writeFloatBE=function(y,w,P){return Re(this,y,w,!1,P)};function Oe(I,y,w,P,V){return y=+y,w=w>>>0,V||Te(I,y,w,8),n.write(I,y,w,P,52,8),w+8}g.prototype.writeDoubleLE=function(y,w,P){return Oe(this,y,w,!0,P)},g.prototype.writeDoubleBE=function(y,w,P){return Oe(this,y,w,!1,P)},g.prototype.copy=function(y,w,P,V){if(!g.isBuffer(y))throw new TypeError("argument should be a Buffer");if(P||(P=0),!V&&V!==0&&(V=this.length),w>=y.length&&(w=y.length),w||(w=0),V>0&&V<P&&(V=P),V===P||y.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),y.length-w<V-P&&(V=y.length-w+P);const G=V-P;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(w,P,V):a.prototype.set.call(y,this.subarray(P,V),w),G},g.prototype.fill=function(y,w,P,V){if(typeof y=="string"){if(typeof w=="string"?(V=w,w=0,P=this.length):typeof P=="string"&&(V=P,P=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!g.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(y.length===1){const ee=y.charCodeAt(0);(V==="utf8"&&ee<128||V==="latin1")&&(y=ee)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(w<0||this.length<w||this.length<P)throw new RangeError("Out of range index");if(P<=w)return this;w=w>>>0,P=P===void 0?this.length:P>>>0,y||(y=0);let G;if(typeof y=="number")for(G=w;G<P;++G)this[G]=y;else{const ee=g.isBuffer(y)?y:g.from(y,V),Me=ee.length;if(Me===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<P-w;++G)this[G+w]=ee[G%Me]}return this};const Ne={};function kt(I,y,w){Ne[I]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}kt("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),kt("ERR_INVALID_ARG_TYPE",function(I,y){return`The "${I}" argument must be of type number. Received type ${typeof y}`},TypeError),kt("ERR_OUT_OF_RANGE",function(I,y,w){let P=`The value of "${I}" is out of range.`,V=w;return Number.isInteger(w)&&Math.abs(w)>2**32?V=nn(String(w)):typeof w=="bigint"&&(V=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(V=nn(V)),V+="n"),P+=` It must be ${y}. Received ${V}`,P},RangeError);function nn(I){let y="",w=I.length;const P=I[0]==="-"?1:0;for(;w>=P+4;w-=3)y=`_${I.slice(w-3,w)}${y}`;return`${I.slice(0,w)}${y}`}function Lt(I,y,w){Nt(y,"offset"),(I[y]===void 0||I[y+w]===void 0)&&wt(y,I.length-(w+1))}function Pt(I,y,w,P,V,G){if(I>w||I<y){const ee=typeof y=="bigint"?"n":"";let Me;throw y===0||y===BigInt(0)?Me=`>= 0${ee} and < 2${ee} ** ${(G+1)*8}${ee}`:Me=`>= -(2${ee} ** ${(G+1)*8-1}${ee}) and < 2 ** ${(G+1)*8-1}${ee}`,new Ne.ERR_OUT_OF_RANGE("value",Me,I)}Lt(P,V,G)}function Nt(I,y){if(typeof I!="number")throw new Ne.ERR_INVALID_ARG_TYPE(y,"number",I)}function wt(I,y,w){throw Math.floor(I)!==I?(Nt(I,w),new Ne.ERR_OUT_OF_RANGE("offset","an integer",I)):y<0?new Ne.ERR_BUFFER_OUT_OF_BOUNDS:new Ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,I)}const kn=/[^+/0-9A-Za-z-_]/g;function Sn(I){if(I=I.split("=")[0],I=I.trim().replace(kn,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Ce(I,y){y=y||1/0;let w;const P=I.length;let V=null;const G=[];for(let ee=0;ee<P;++ee){if(w=I.charCodeAt(ee),w>55295&&w<57344){if(!V){if(w>56319){(y-=3)>-1&&G.push(239,191,189);continue}else if(ee+1===P){(y-=3)>-1&&G.push(239,191,189);continue}V=w;continue}if(w<56320){(y-=3)>-1&&G.push(239,191,189),V=w;continue}w=(V-55296<<10|w-56320)+65536}else V&&(y-=3)>-1&&G.push(239,191,189);if(V=null,w<128){if((y-=1)<0)break;G.push(w)}else if(w<2048){if((y-=2)<0)break;G.push(w>>6|192,w&63|128)}else if(w<65536){if((y-=3)<0)break;G.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((y-=4)<0)break;G.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return G}function Be(I){const y=[];for(let w=0;w<I.length;++w)y.push(I.charCodeAt(w)&255);return y}function pe(I,y){let w,P,V;const G=[];for(let ee=0;ee<I.length&&!((y-=2)<0);++ee)w=I.charCodeAt(ee),P=w>>8,V=w%256,G.push(V),G.push(P);return G}function At(I){return t.toByteArray(Sn(I))}function xt(I,y,w,P){let V;for(V=0;V<P&&!(V+w>=y.length||V>=I.length);++V)y[V+w]=I[V];return V}function vt(I,y){return I instanceof y||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===y.name}function rt(I){return I!==I}const we=function(){const I="0123456789abcdef",y=new Array(256);for(let w=0;w<16;++w){const P=w*16;for(let V=0;V<16;++V)y[P+V]=I[w]+I[V]}return y}();function _e(I){return typeof BigInt>"u"?ut:I}function ut(){throw new Error("BigInt not supported")}})(sh);const pm=sh.Buffer;function ht(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}re.inherits(ht,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ah=ht.prototype,uh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{uh[e]={value:e}}),Object.defineProperties(ht,uh),Object.defineProperty(ah,"isAxiosError",{value:!0}),ht.from=(e,t,n,i,o,a)=>{const u=Object.create(ah);return re.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),ht.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const gm=null;function Hu(e){return re.isPlainObject(e)||re.isArray(e)}function ch(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function lh(e,t,n){return e?e.concat(t).map(function(o,a){return o=ch(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function ym(e){return re.isArray(e)&&!e.some(Hu)}const mm=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function Go(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,b){return!re.isUndefined(b[E])});const i=n.metaTokens,o=n.visitor||g,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(o))throw new TypeError("visitor must be a function");function d(A){if(A===null)return"";if(re.isDate(A))return A.toISOString();if(!f&&re.isBlob(A))throw new ht("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(A)||re.isTypedArray(A)?f&&typeof Blob=="function"?new Blob([A]):pm.from(A):A}function g(A,E,b){let B=A;if(A&&!b&&typeof A=="object"){if(re.endsWith(E,"{}"))E=i?E:E.slice(0,-2),A=JSON.stringify(A);else if(re.isArray(A)&&ym(A)||(re.isFileList(A)||re.endsWith(E,"[]"))&&(B=re.toArray(A)))return E=ch(E),B.forEach(function(_,k){!(re.isUndefined(_)||_===null)&&t.append(u===!0?lh([E],k,a):u===null?E:E+"[]",d(_))}),!1}return Hu(A)?!0:(t.append(lh(b,E,a),d(A)),!1)}const p=[],v=Object.assign(mm,{defaultVisitor:g,convertValue:d,isVisitable:Hu});function C(A,E){if(!re.isUndefined(A)){if(p.indexOf(A)!==-1)throw Error("Circular reference detected in "+E.join("."));p.push(A),re.forEach(A,function(B,N){(!(re.isUndefined(B)||B===null)&&o.call(t,B,re.isString(N)?N.trim():N,E,v))===!0&&C(B,E?E.concat(N):[N])}),p.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return C(e),t}function fh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Ku(e,t){this._pairs=[],e&&Go(e,this,t)}const hh=Ku.prototype;hh.append=function(t,n){this._pairs.push([t,n])},hh.toString=function(t){const n=t?function(i){return t.call(this,i,fh)}:fh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function wm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dh(e,t,n){if(!t)return e;const i=n&&n.encode||wm,o=n&&n.serialize;let a;if(o?a=o(t,n):a=re.isURLSearchParams(t)?t.toString():new Ku(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ph{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(i){i!==null&&t(i)})}}const gh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bm=typeof URLSearchParams<"u"?URLSearchParams:Ku,vm=typeof FormData<"u"?FormData:null,Sm=typeof Blob<"u"?Blob:null,Am=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Em=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gr={classes:{URLSearchParams:bm,FormData:vm,Blob:Sm},isStandardBrowserEnv:Am,isStandardBrowserWebWorkerEnv:Em,protocols:["http","https","file","blob","url","data"]};function xm(e,t){return Go(e,new gr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return gr.isNode&&re.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Cm(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _m(e){const t={},n=Object.keys(e);let i;const o=n.length;let a;for(i=0;i<o;i++)a=n[i],t[a]=e[a];return t}function yh(e){function t(n,i,o,a){let u=n[a++];const l=Number.isFinite(+u),f=a>=n.length;return u=!u&&re.isArray(o)?o.length:u,f?(re.hasOwnProp(o,u)?o[u]=[o[u],i]:o[u]=i,!l):((!o[u]||!re.isObject(o[u]))&&(o[u]=[]),t(n,i,o[u],a)&&re.isArray(o[u])&&(o[u]=_m(o[u])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(i,o)=>{t(Cm(i),o,n,0)}),n}return null}const km={"Content-Type":void 0};function Tm(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Hi={transitional:gh,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=re.isObject(t);if(a&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return o&&o?JSON.stringify(yh(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return xm(t,this.formSerializer).toString();if((l=re.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Go(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Tm(t)):t}],transformResponse:[function(t){const n=this.transitional||Hi.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&re.isString(t)&&(i&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(u)throw l.name==="SyntaxError"?ht.from(l,ht.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gr.classes.FormData,Blob:gr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};re.forEach(["delete","get","head"],function(t){Hi.headers[t]={}}),re.forEach(["post","put","patch"],function(t){Hi.headers[t]=re.merge(km)});const Im=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Om=e=>{const t={};let n,i,o;return e&&e.split(`
100
+ `).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),i=u.substring(o+1).trim(),!(!n||t[n]&&Im[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},mh=Symbol("internals");function Rs(e){return e&&String(e).trim().toLowerCase()}function Jo(e){return e===!1||e==null?e:re.isArray(e)?e.map(Jo):String(e)}function Fm(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const Bm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,i,o){if(re.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!re.isString(t)){if(re.isString(i))return t.indexOf(i)!==-1;if(re.isRegExp(i))return i.test(t)}}function Dm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Rm(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,a,u){return this[i].call(this,t,o,a,u)},configurable:!0})})}let $n=class{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function a(l,f,d){const g=Rs(f);if(!g)throw new Error("header name must be a non-empty string");const p=re.findKey(o,g);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||f]=Jo(l))}const u=(l,f)=>re.forEach(l,(d,g)=>a(d,g,f));return re.isPlainObject(t)||t instanceof this.constructor?u(t,n):re.isString(t)&&(t=t.trim())&&!Bm(t)?u(Om(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=Rs(t),t){const i=re.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return Fm(o);if(re.isFunction(n))return n.call(this,o,i);if(re.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rs(t),t){const i=re.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||zu(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(u){if(u=Rs(u),u){const l=re.findKey(i,u);l&&(!n||zu(i,i[l],l,n))&&(delete i[l],o=!0)}}return re.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const a=n[i];(!t||zu(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,i={};return re.forEach(this,(o,a)=>{const u=re.findKey(i,a);if(u){n[u]=Jo(o),delete n[a];return}const l=t?Dm(a):String(a).trim();l!==a&&delete n[a],n[l]=Jo(o),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&re.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
101
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[mh]=this[mh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Rs(u);i[l]||(Rm(o,u),i[l]=!0)}return re.isArray(t)?t.forEach(a):a(t),this}};$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.freezeMethods($n.prototype),re.freezeMethods($n);function Gu(e,t){const n=this||Hi,i=t||n,o=$n.from(i.headers);let a=i.data;return re.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function wh(e){return!!(e&&e.__CANCEL__)}function Ls(e,t,n){ht.call(this,e??"canceled",ht.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ls,ht,{__CANCEL__:!0});function Lm(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new ht("Request failed with status code "+n.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Pm=gr.isStandardBrowserEnv?function(){return{write:function(n,i,o,a,u,l){const f=[];f.push(n+"="+encodeURIComponent(i)),re.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),re.isString(a)&&f.push("path="+a),re.isString(u)&&f.push("domain="+u),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Nm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jm(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function bh(e,t){return e&&!Nm(t)?jm(e,t):t}const $m=gr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function o(a){let u=a;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(u){const l=re.isString(u)?o(u):u;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function Mm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Um(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),g=i[a];u||(u=d),n[o]=f,i[o]=d;let p=a,v=0;for(;p!==o;)v+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-u<t)return;const C=g&&d-g;return C?Math.round(v*1e3/C):void 0}}function vh(e,t){let n=0;const i=Um(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),d=a<=u;n=a;const g={loaded:a,total:u,progress:u?a/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&d?(u-a)/f:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const Yo={http:gm,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){let o=e.data;const a=$n.from(e.headers).normalize(),u=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}re.isFormData(o)&&(gr.isStandardBrowserEnv||gr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",A=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(C+":"+A))}const g=bh(e.baseURL,e.url);d.open(e.method.toUpperCase(),dh(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const C=$n.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),E={data:!u||u==="text"||u==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:C,config:e,request:d};Lm(function(B){n(B),f()},function(B){i(B),f()},E),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(i(new ht("Request aborted",ht.ECONNABORTED,e,d)),d=null)},d.onerror=function(){i(new ht("Network Error",ht.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let A=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||gh;e.timeoutErrorMessage&&(A=e.timeoutErrorMessage),i(new ht(A,E.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,d)),d=null},gr.isStandardBrowserEnv){const C=(e.withCredentials||$m(g))&&e.xsrfCookieName&&Pm.read(e.xsrfCookieName);C&&a.set(e.xsrfHeaderName,C)}o===void 0&&a.setContentType(null),"setRequestHeader"in d&&re.forEach(a.toJSON(),function(A,E){d.setRequestHeader(E,A)}),re.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),u&&u!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",vh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",vh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=C=>{d&&(i(!C||C.type?new Ls(null,e,d):C),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=Mm(g);if(v&&gr.protocols.indexOf(v)===-1){i(new ht("Unsupported protocol "+v+":",ht.ERR_BAD_REQUEST,e));return}d.send(o||null)})}};re.forEach(Yo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vm={getAdapter:e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let o=0;o<t&&(n=e[o],!(i=re.isString(n)?Yo[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new ht(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(re.hasOwnProp(Yo,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!re.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:Yo};function Ju(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ls(null,e)}function Sh(e){return Ju(e),e.headers=$n.from(e.headers),e.data=Gu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vm.getAdapter(e.adapter||Hi.adapter)(e).then(function(i){return Ju(e),i.data=Gu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return wh(i)||(Ju(e),i&&i.response&&(i.response.data=Gu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const Ah=e=>e instanceof $n?e.toJSON():e;function Ki(e,t){t=t||{};const n={};function i(d,g,p){return re.isPlainObject(d)&&re.isPlainObject(g)?re.merge.call({caseless:p},d,g):re.isPlainObject(g)?re.merge({},g):re.isArray(g)?g.slice():g}function o(d,g,p){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d,p)}else return i(d,g,p)}function a(d,g){if(!re.isUndefined(g))return i(void 0,g)}function u(d,g){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d)}else return i(void 0,g)}function l(d,g,p){if(p in t)return i(d,g);if(p in e)return i(void 0,d)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(d,g)=>o(Ah(d),Ah(g),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(g){const p=f[g]||o,v=p(e[g],t[g],g);re.isUndefined(v)&&p!==l||(n[g]=v)}),n}const Eh="1.4.0",Yu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const xh={};Yu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+Eh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new ht(o(u," has been removed"+(n?" in "+n:"")),ht.ERR_DEPRECATED);return n&&!xh[u]&&(xh[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,l):!0}};function qm(e,t,n){if(typeof e!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],u=t[a];if(u){const l=e[a],f=l===void 0||u(l,a,e);if(f!==!0)throw new ht("option "+a+" must be "+f,ht.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ht("Unknown option "+a,ht.ERR_BAD_OPTION)}}const Xu={assertOptions:qm,validators:Yu},Vr=Xu.validators;let pi=class{constructor(t){this.defaults=t,this.interceptors={request:new ph,response:new ph}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&Xu.assertOptions(i,{silentJSONParsing:Vr.transitional(Vr.boolean),forcedJSONParsing:Vr.transitional(Vr.boolean),clarifyTimeoutError:Vr.transitional(Vr.boolean)},!1),o!=null&&(re.isFunction(o)?n.paramsSerializer={serialize:o}:Xu.assertOptions(o,{encode:Vr.function,serialize:Vr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=a&&re.merge(a.common,a[n.method]),u&&re.forEach(["delete","get","head","post","put","patch","common"],A=>{delete a[A]}),n.headers=$n.concat(u,a);const l=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let g,p=0,v;if(!f){const A=[Sh.bind(this),void 0];for(A.unshift.apply(A,l),A.push.apply(A,d),v=A.length,g=Promise.resolve(n);p<v;)g=g.then(A[p++],A[p++]);return g}v=l.length;let C=n;for(p=0;p<v;){const A=l[p++],E=l[p++];try{C=A(C)}catch(b){E.call(this,b);break}}try{g=Sh.call(this,C)}catch(A){return Promise.reject(A)}for(p=0,v=d.length;p<v;)g=g.then(d[p++],d[p++]);return g}getUri(t){t=Ki(this.defaults,t);const n=bh(t.baseURL,t.url);return dh(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){pi.prototype[t]=function(n,i){return this.request(Ki(i||{},{method:t,url:n,data:(i||{}).data}))}}),re.forEach(["post","put","patch"],function(t){function n(i){return function(a,u,l){return this.request(Ki(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}pi.prototype[t]=n(),pi.prototype[t+"Form"]=n(!0)});let Wm=class c1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const u=new Promise(l=>{i.subscribe(l),a=l}).then(o);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,l){i.reason||(i.reason=new Ls(a,u,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new c1(function(o){t=o}),cancel:t}}};function Hm(e){return function(n){return e.apply(null,n)}}function Km(e){return re.isObject(e)&&e.isAxiosError===!0}const Qu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qu).forEach(([e,t])=>{Qu[t]=e});function Ch(e){const t=new pi(e),n=Jf(pi.prototype.request,t);return re.extend(n,pi.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ch(Ki(e,o))},n}const Ue=Ch(Hi);Ue.Axios=pi,Ue.CanceledError=Ls,Ue.CancelToken=Wm,Ue.isCancel=wh,Ue.VERSION=Eh,Ue.toFormData=Go,Ue.AxiosError=ht,Ue.Cancel=Ue.CanceledError,Ue.all=function(t){return Promise.all(t)},Ue.spread=Hm,Ue.isAxiosError=Km,Ue.mergeConfig=Ki,Ue.AxiosHeaders=$n,Ue.formToJSON=e=>yh(re.isHTMLForm(e)?new FormData(e):e),Ue.HttpStatusCode=Qu,Ue.default=Ue;const{Axios:I8,AxiosError:O8,CanceledError:F8,isCancel:B8,CancelToken:D8,VERSION:R8,all:L8,Cancel:P8,isAxiosError:Xo,spread:N8,toFormData:j8,AxiosHeaders:$8,HttpStatusCode:M8,formToJSON:U8,mergeConfig:V8}=Ue,Qo=async({endpoint:e,body:t})=>Ue.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Zo=async({endpoint:e,body:t})=>Ue.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),Zu=async({endpoint:e})=>Ue.delete(e),ec=({name:e,onClose:t,endpoint:n})=>{const[i,o]=Z.useState(),[a,u]=Z.useState(!1),l=()=>{u(!0),o(void 0),Zu({endpoint:n}).then(()=>{u(!1),o(void 0),t()}).catch(f=>{u(!1),o(f)})};return S.jsx(q.Modal,{title:`Delete «${e}»`,open:!0,onOk:()=>l(),onCancel:()=>{t(),u(!1),o(void 0)},okText:"Delete",confirmLoading:a,okButtonProps:{danger:!0},width:400,children:i&&S.jsx(q.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},zm=({data:e,onClose:t})=>{const[n,i]=Z.useState(),[o,a]=Z.useState(!1),u=()=>{a(!0),i(void 0);const l=e.map(({endpoint:f})=>Zu({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return S.jsx(q.Modal,{title:"Delete selected",open:!0,onOk:()=>u(),onCancel:()=>{t(),a(!1),i(void 0)},okText:"Delete",confirmLoading:o,okButtonProps:{danger:!0},width:400,children:n&&S.jsx(q.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},_h=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M17.25 3.5H14.25V1.625C14.25 0.797656 13.5773 0.125 12.75 0.125H5.25C4.42266 0.125 3.75 0.797656 3.75 1.625V3.5H0.75C0.335156 3.5 0 3.83516 0 4.25V5C0 5.10313 0.084375 5.1875 0.1875 5.1875H1.60312L2.18203 17.4453C2.21953 18.2445 2.88047 18.875 3.67969 18.875H14.3203C15.1219 18.875 15.7805 18.2469 15.818 17.4453L16.3969 5.1875H17.8125C17.9156 5.1875 18 5.10313 18 5V4.25C18 3.83516 17.6648 3.5 17.25 3.5ZM12.5625 3.5H5.4375V1.8125H12.5625V3.5Z",fill:e.colorText})})},kh=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:e.colorText})})},Th=()=>S.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("g",{clipPath:"url(#clip0_186_9937)",children:S.jsx("path",{d:"M6.33719 9.39777L11.0528 3.36027C11.0652 3.34449 11.073 3.32553 11.0751 3.30557C11.0772 3.2856 11.0737 3.26544 11.0649 3.2474C11.056 3.22936 11.0423 3.21417 11.0253 3.20357C11.0082 3.19298 10.9885 3.18741 10.9684 3.1875L9.93317 3.1875C9.86754 3.1875 9.8046 3.2183 9.76442 3.2692L5.99969 8.09063L2.23495 3.2692C2.19478 3.21697 2.13183 3.1875 2.0662 3.1875L1.03094 3.1875C0.941204 3.1875 0.89165 3.29063 0.946561 3.36027L5.66219 9.39777C5.70221 9.44908 5.75342 9.4906 5.8119 9.51915C5.87038 9.5477 5.93461 9.56254 5.99969 9.56254C6.06477 9.56254 6.12899 9.5477 6.18747 9.51915C6.24596 9.4906 6.29716 9.44908 6.33719 9.39777Z",fill:"currentColor"})}),S.jsx("defs",{children:S.jsx("clipPath",{id:"clip0_186_9937",children:S.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(12) rotate(90)"})})})]}),Ih=()=>S.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("g",{clipPath:"url(#clip0_186_11488)",children:S.jsx("path",{d:"M5.66281 2.60223L0.947189 8.63973C0.934768 8.65551 0.92705 8.67447 0.924919 8.69443C0.922788 8.7144 0.926332 8.73456 0.935143 8.7526C0.943955 8.77064 0.957676 8.78583 0.974732 8.79643C0.991787 8.80702 1.01149 8.81259 1.03156 8.8125L2.06683 8.8125C2.13246 8.8125 2.1954 8.7817 2.23558 8.7308L6.00031 3.90937L9.76505 8.7308C9.80522 8.78303 9.86817 8.8125 9.9338 8.8125L10.9691 8.8125C11.0588 8.8125 11.1083 8.70937 11.0534 8.63973L6.33781 2.60223C6.29779 2.55092 6.24658 2.5094 6.1881 2.48085C6.12962 2.4523 6.06539 2.43746 6.00031 2.43746C5.93523 2.43746 5.87101 2.4523 5.81253 2.48085C5.75404 2.5094 5.70284 2.55092 5.66281 2.60223Z",fill:"currentColor"})}),S.jsx("defs",{children:S.jsx("clipPath",{id:"clip0_186_11488",children:S.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12) rotate(-90)"})})})]}),Oh=()=>{const{token:e}=q.theme.useToken();return S.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsxs("g",{clipPath:"url(#clip0_294_13557)",children:[S.jsx("path",{d:"M0.568356 1.62165L1.19782 2.11384C2.05608 1.01674 3.3909 0.3125 4.88978 0.3125C7.47795 0.3125 9.57282 2.40513 9.57617 4.99442C9.57952 7.58594 7.48019 9.6875 4.88978 9.6875C2.86635 9.6875 1.14202 8.40402 0.485765 6.60603C0.469025 6.55915 0.493578 6.5067 0.540453 6.49107L1.17327 6.27344C1.19533 6.26588 1.21948 6.26725 1.24054 6.27726C1.26161 6.28727 1.27792 6.30513 1.28599 6.32701C1.30608 6.38281 1.3284 6.43862 1.35184 6.4933C1.54492 6.95089 1.8217 7.36161 2.17438 7.71429C2.52421 8.06478 2.93841 8.34445 3.39425 8.53795C3.86635 8.73772 4.36969 8.83929 4.88755 8.83929C5.40653 8.83929 5.90876 8.73772 6.38086 8.53795C6.83713 8.34526 7.25148 8.06549 7.60072 7.71429C7.9515 7.3645 8.23087 6.9498 8.42327 6.4933C8.62304 6.02009 8.72461 5.51786 8.72461 4.99888C8.72461 4.47991 8.62304 3.97768 8.42327 3.50446C8.23019 3.04688 7.9534 2.63616 7.60072 2.28348C7.24804 1.9308 6.83733 1.65402 6.38086 1.45982C5.90876 1.26004 5.40541 1.15848 4.88755 1.15848C4.36858 1.15848 3.86635 1.26004 3.39425 1.45982C2.93797 1.65251 2.52362 1.93228 2.17438 2.28348C2.06389 2.39397 1.9601 2.51116 1.86411 2.63393L2.53599 3.15848C2.54928 3.16877 2.5594 3.18259 2.56519 3.19837C2.57097 3.21415 2.57219 3.23125 2.56869 3.24768C2.56519 3.26412 2.55712 3.27924 2.54542 3.2913C2.53371 3.30336 2.51884 3.31187 2.50251 3.31585L0.542685 3.79576C0.486881 3.80915 0.432195 3.76674 0.432195 3.70982L0.423265 1.69085C0.424381 1.61719 0.51032 1.57589 0.568356 1.62165Z",fill:e.colorPrimary}),S.jsx("circle",{cx:"4.99935",cy:"5.00033",r:"2.08333",fill:e.colorPrimary})]}),S.jsx("defs",{children:S.jsx("clipPath",{id:"clip0_294_13557",children:S.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})},Fh=()=>{const{token:e}=q.theme.useToken();return S.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("g",{clipPath:"url(#clip0_661_14605)",children:S.jsx("path",{d:"M14.6751 8.38707C14.9751 7.99064 15.1412 7.50492 15.1412 6.99957C15.1412 6.19778 14.693 5.43885 13.9715 5.01564C13.7858 4.9067 13.5744 4.84937 13.359 4.84957H9.0769L9.18404 2.65492C9.20904 2.12457 9.02154 1.621 8.65726 1.23707C8.47848 1.04783 8.2628 0.897269 8.02353 0.794683C7.78427 0.692098 7.52651 0.63967 7.26618 0.640638C6.33761 0.640638 5.51618 1.26564 5.26976 2.16028L3.73583 7.71385H1.4269C1.11083 7.71385 0.855469 7.96921 0.855469 8.28528V14.7853C0.855469 15.1014 1.11083 15.3567 1.4269 15.3567H12.1644C12.3287 15.3567 12.4894 15.3246 12.6376 15.2603C13.4876 14.8978 14.0358 14.0674 14.0358 13.146C14.0358 12.921 14.0037 12.6996 13.9394 12.4853C14.2394 12.0889 14.4055 11.6031 14.4055 11.0978C14.4055 10.8728 14.3733 10.6514 14.309 10.4371C14.609 10.0406 14.7751 9.55492 14.7751 9.04957C14.7715 8.82457 14.7394 8.60135 14.6751 8.38707ZM2.14118 14.071V8.99957H3.58761V14.071H2.14118ZM13.5055 7.76742L13.1144 8.10671L13.3626 8.56028C13.4444 8.70969 13.4868 8.87746 13.4858 9.04778C13.4858 9.34242 13.3573 9.62278 13.1358 9.81564L12.7448 10.1549L12.993 10.6085C13.0747 10.7579 13.1171 10.9257 13.1162 11.096C13.1162 11.3906 12.9876 11.671 12.7662 11.8639L12.3751 12.2031L12.6233 12.6567C12.7051 12.8061 12.7475 12.9739 12.7465 13.1442C12.7465 13.5442 12.5108 13.9049 12.1465 14.0692H4.73047V8.94242L6.50726 2.50492C6.55307 2.33992 6.65142 2.19436 6.7874 2.09027C6.92339 1.98619 7.08959 1.92927 7.26083 1.92814C7.39654 1.92814 7.53047 1.96742 7.63761 2.04778C7.8144 2.17992 7.90904 2.37992 7.89833 2.59242L7.7269 6.13528H13.3412C13.659 6.32992 13.8555 6.6585 13.8555 6.99957C13.8555 7.29421 13.7269 7.57278 13.5055 7.76742Z",fill:e.colorSuccess})}),S.jsx("defs",{children:S.jsx("clipPath",{id:"clip0_661_14605",children:S.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})},Gm={success:S.jsx(wn.CheckCircleFilled,{}),error:S.jsx(wn.CloseCircleFilled,{}),warning:S.jsx(wn.ExclamationCircleFilled,{}),validating:S.jsx(wn.LoadingOutlined,{})},qr=()=>({...Gm,success:S.jsx(Fh,{})}),tc=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M8.53558 1.57227H7.46415C7.36891 1.57227 7.32129 1.61988 7.32129 1.71512V7.32227H2.00028C1.90504 7.32227 1.85742 7.36988 1.85742 7.46512V8.53655C1.85742 8.63179 1.90504 8.67941 2.00028 8.67941H7.32129V14.2866C7.32129 14.3818 7.36891 14.4294 7.46415 14.4294H8.53558C8.63081 14.4294 8.67843 14.3818 8.67843 14.2866V8.67941H14.0003C14.0955 8.67941 14.1431 8.63179 14.1431 8.53655V7.46512C14.1431 7.36988 14.0955 7.32227 14.0003 7.32227H8.67843V1.71512C8.67843 1.61988 8.63081 1.57227 8.53558 1.57227Z",fill:e.colorText})})},sn=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M14.4277 7.32227H1.57059C1.49202 7.32227 1.42773 7.38655 1.42773 7.46512V8.53655C1.42773 8.61512 1.49202 8.67941 1.57059 8.67941H14.4277C14.5063 8.67941 14.5706 8.61512 14.5706 8.53655V7.46512C14.5706 7.38655 14.5063 7.32227 14.4277 7.32227Z",fill:e.colorText})})},Bh=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M11.375 6.34375H10.4453V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398ZM9.46094 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V6.34375Z",fill:e.colorPrimary})})},Dh=()=>{const{token:e}=q.theme.useToken();return S.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M11.375 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V4.21094C9.46094 4.27109 9.51016 4.32031 9.57031 4.32031H10.3359C10.3961 4.32031 10.4453 4.27109 10.4453 4.21094V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398Z",fill:e.colorText})})},Jm={ContentContainer:Je.div`
102
102
  border: 1px solid ${({$borderColor:e})=>e};
103
103
  border-radius: 6px;
104
104
  background-color: ${({$bgColor:e})=>e};
@@ -108,10 +108,10 @@ React keys must be passed directly to JSX without using spread:
108
108
  flex-grow: ${({$flexGrow:e})=>e};
109
109
  display: ${({$displayFlex:e})=>e?"flex":"block"};
110
110
  flex-flow: ${({$flexFlow:e})=>e};
111
- `},Lh=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=q.theme.useToken();return A.jsx(r2.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},Nh=async({uri:e})=>nt.get(e),tn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>bn.useQuery({queryKey:t,queryFn:async()=>{const o=await Nh({uri:e}),a=JSON.parse(JSON.stringify(o.data));return a.metadata?.resourceVersion&&delete a.metadata.resourceVersion,a},refetchInterval:n!==void 0?n:5e3,enabled:i}),Ct=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),i2=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?A.jsx(lr.Link,{to:Ct({template:o,replaceValues:t}),children:Ct({template:i,replaceValues:t})}):Ct({template:i,replaceValues:t})})),jh=({data:e,replaceValues:t,pathname:n})=>e.map(({pathToMatch:o,breadcrumbItems:a})=>({pathToMatch:Ct({template:o,replaceValues:t}),breadcrumbItems:i2({rawLinks:a,replaceValues:t})})).find(({pathToMatch:o})=>lr.matchPath(o,n)),ic={HeightDiv:Ye.div`
111
+ `},Rh=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=q.theme.useToken();return S.jsx(Jm.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},Lh=async({uri:e})=>Ue.get(e),tn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>bn.useQuery({queryKey:t,queryFn:async()=>{const o=await Lh({uri:e}),a=JSON.parse(JSON.stringify(o.data));return a.metadata?.resourceVersion&&delete a.metadata.resourceVersion,a},refetchInterval:n!==void 0?n:5e3,enabled:i}),Et=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),Ym=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?S.jsx(lr.Link,{to:Et({template:o,replaceValues:t}),children:Et({template:i,replaceValues:t})}):Et({template:i,replaceValues:t})})),Ph=({data:e,replaceValues:t,pathname:n})=>e.map(({pathToMatch:o,breadcrumbItems:a})=>({pathToMatch:Et({template:o,replaceValues:t}),breadcrumbItems:Ym({rawLinks:a,replaceValues:t})})).find(({pathToMatch:o})=>lr.matchPath(o,n)),nc={HeightDiv:Je.div`
112
112
  min-height: 22px;
113
113
  width: 100%;
114
- `},$h=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=jh({data:i,replaceValues:t,pathname:n});return o?A.jsx(ic.HeightDiv,{children:A.jsx(q.Breadcrumb,{separator:">",items:o.breadcrumbItems})}):A.jsx(ic.HeightDiv,{})},s2=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o})=>{const{data:a,isError:u,isLoading:l}=tn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});return u?null:l?A.jsx(ic.HeightDiv,{children:A.jsx(q.Spin,{})}):a?A.jsx($h,{data:a,replaceValues:i,pathname:o}):null},Mh=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?Ct({template:o,replaceValues:t}):void 0;return{key:n,label:u?A.jsx(lr.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?Mh({rawLinks:a,replaceValues:t}):void 0}}),o2=({items:e,pathname:t,tags:n})=>{const i=(o,a)=>o.flatMap(u=>{const l=[...a,u.key?u.key:String(u.key)],f=u.internalMetaLink?.startsWith("/")?u.internalMetaLink.slice(1):u.internalMetaLink,h=t.startsWith("/")?t.slice(1):t,g=f===h||f&&l&&f.includes(h)?l:[],p=n&&n.keysAndTags&&u.key?n.keysAndTags[typeof u.key=="string"?u.key:String(u.key)]:void 0,v=n&&n.currentTags&&p&&p.some(S=>n.currentTags?.includes(S))?l:[];let C=[];return"children"in u&&u.children&&(C=i(u.children,l)),[...g,...v,...C]});return i(e,[])},Uh=({data:e,replaceValues:t,pathname:n,idToCompare:i,currentTags:o})=>{const a=e.find(h=>h.id===i);if(!a)return;const u={menuItems:Mh({rawLinks:a.menuItems,replaceValues:t})},f=(u?.menuItems?o2({items:u?.menuItems,pathname:n,tags:{keysAndTags:a.keysAndTags,currentTags:o}}):[]).map(h=>typeof h=="string"?h:String(h));return{...u,selectedKeys:f}},a2={CustomMenu:Ye(q.Menu)`
114
+ `},Nh=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=Ph({data:i,replaceValues:t,pathname:n});return o?S.jsx(nc.HeightDiv,{children:S.jsx(q.Breadcrumb,{separator:">",items:o.breadcrumbItems})}):S.jsx(nc.HeightDiv,{})},Xm=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o})=>{const{data:a,isError:u,isLoading:l}=tn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});return u?null:l?S.jsx(nc.HeightDiv,{children:S.jsx(q.Spin,{})}):a?S.jsx(Nh,{data:a,replaceValues:i,pathname:o}):null},jh=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?Et({template:o,replaceValues:t}):void 0;return{key:n,label:u?S.jsx(lr.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?jh({rawLinks:a,replaceValues:t}):void 0}}),Qm=({items:e,pathname:t,tags:n})=>{const i=(o,a)=>o.flatMap(u=>{const l=[...a,u.key?u.key:String(u.key)],f=u.internalMetaLink?.startsWith("/")?u.internalMetaLink.slice(1):u.internalMetaLink,d=t.startsWith("/")?t.slice(1):t,g=f===d||f&&l&&f.includes(d)?l:[],p=n&&n.keysAndTags&&u.key?n.keysAndTags[typeof u.key=="string"?u.key:String(u.key)]:void 0,v=n&&n.currentTags&&p&&p.some(A=>n.currentTags?.includes(A))?l:[];let C=[];return"children"in u&&u.children&&(C=i(u.children,l)),[...g,...v,...C]});return i(e,[])},$h=({data:e,replaceValues:t,pathname:n,idToCompare:i,currentTags:o})=>{const a=e.find(d=>d.id===i);if(!a)return;const u={menuItems:jh({rawLinks:a.menuItems,replaceValues:t})},f=(u?.menuItems?Qm({items:u?.menuItems,pathname:n,tags:{keysAndTags:a.keysAndTags,currentTags:o}}):[]).map(d=>typeof d=="string"?d:String(d));return{...u,selectedKeys:f}},Zm={CustomMenu:Je(q.Menu)`
115
115
  margin-top: ${({$noMarginTop:e})=>e?"0":"16px"};
116
116
  font-size: 14px;
117
117
  line-height: 24px;
@@ -133,38 +133,38 @@ React keys must be passed directly to JSX without using spread:
133
133
  && .ant-menu-sub .ant-menu-item {
134
134
  margin: 0 !important;
135
135
  }
136
- `},Vh=({data:e,replaceValues:t,pathname:n,idToCompare:i,currentTags:o,noMarginTop:a})=>{const u=e?.items.map(({spec:f})=>f);if(!u)return null;const l=Uh({data:u,replaceValues:t,pathname:n,idToCompare:i,currentTags:o});return l?A.jsx(a2.CustomMenu,{selectedKeys:l.selectedKeys,onSelect:()=>{},onDeselect:()=>{},mode:"inline",items:l.menuItems,$noMarginTop:a}):null},qh=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,idToCompare:a,currentTags:u,hidden:l,noMarginTop:f})=>{const{data:h,isError:g,isLoading:p}=tn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});return g?null:p?A.jsx(q.Spin,{}):!h||l?null:A.jsx(Vh,{data:h,replaceValues:i,pathname:o,idToCompare:a,currentTags:u,noMarginTop:f})};var ta={exports:{}};/**
136
+ `},Mh=({data:e,replaceValues:t,pathname:n,idToCompare:i,currentTags:o,noMarginTop:a})=>{const u=e?.items.map(({spec:f})=>f);if(!u)return null;const l=$h({data:u,replaceValues:t,pathname:n,idToCompare:i,currentTags:o});return l?S.jsx(Zm.CustomMenu,{selectedKeys:l.selectedKeys,onSelect:()=>{},onDeselect:()=>{},mode:"inline",items:l.menuItems,$noMarginTop:a}):null},Uh=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,idToCompare:a,currentTags:u,hidden:l,noMarginTop:f})=>{const{data:d,isError:g,isLoading:p}=tn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});return g?null:p?S.jsx(q.Spin,{}):!d||l?null:S.jsx(Mh,{data:d,replaceValues:i,pathname:o,idToCompare:a,currentTags:u,noMarginTop:f})};var ea={exports:{}};/**
137
137
  * @license
138
138
  * Lodash <https://lodash.com/>
139
139
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
140
140
  * Released under MIT license <https://lodash.com/license>
141
141
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
142
142
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
143
- */ta.exports,function(e,t){(function(){var n,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",p=1,v=2,C=4,S=1,E=2,b=1,B=2,N=4,_=8,k=16,F=32,P=64,I=128,W=256,J=512,ce=30,le="...",ge=800,ye=16,Ce=1,pe=2,Re=3,Se=1/0,Ee=9007199254740991,He=17976931348623157e292,Ae=NaN,me=4294967295,Me=me-1,Y=me>>>1,Q=[["ary",I],["bind",b],["bindKey",B],["curry",_],["curryRight",k],["flip",J],["partial",F],["partialRight",P],["rearg",W]],ae="[object Arguments]",Be="[object Array]",We="[object AsyncFunction]",_e="[object Boolean]",De="[object Date]",Oe="[object DOMException]",Le="[object Error]",Tt="[object Function]",nn="[object GeneratorFunction]",Lt="[object Map]",Nt="[object Number]",jt="[object Null]",bt="[object Object]",kn="[object Promise]",An="[object Proxy]",ke="[object RegExp]",Pe="[object Set]",he="[object String]",At="[object Symbol]",St="[object Undefined]",Et="[object WeakMap]",rt="[object WeakSet]",we="[object ArrayBuffer]",Te="[object DataView]",ut="[object Float32Array]",O="[object Float64Array]",y="[object Int8Array]",w="[object Int16Array]",L="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",ee="[object Uint16Array]",Ue="[object Uint32Array]",pt=/\b__p \+= '';/g,ct=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39);/g,Jr=/[&<>"']/g,Si=RegExp(st.source),cs=RegExp(Jr.source),ls=/<%-([\s\S]+?)%>/g,fs=/<%([\s\S]+?)%>/g,Yr=/<%=([\s\S]+?)%>/g,Ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oo=/^\w*$/,ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(Ir.source),Xr=/^\s+/,uo=/\s/,co=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,be=/[()=,{}\[\]\/\s]/,Fe=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Bt=/^0o[0-7]+$/i,Pt=/^(?:0|[1-9]\d*)$/,cn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,sr=/['\n\r\u2028\u2029\\]/g,Kt="\\ud800-\\udfff",xi="\\u0300-\\u036f",lo="\\ufe20-\\ufe2f",fo="\\u20d0-\\u20ff",Oa=xi+lo+fo,Ia="\\u2700-\\u27bf",Fa="a-z\\xdf-\\xf6\\xf8-\\xff",Jc="\\xac\\xb1\\xd7\\xf7",Yc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xc="\\u2000-\\u206f",Qc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",On="A-Z\\xc0-\\xd6\\xd8-\\xde",hs="\\ufe0e\\ufe0f",ho=Jc+Yc+Xc+Qc,ds="['’]",Zc="["+Kt+"]",Qr="["+ho+"]",ps="["+Oa+"]",Ba="\\d+",Da="["+Ia+"]",Pa="["+Fa+"]",Ra="[^"+Kt+ho+Ba+Ia+Fa+On+"]",d="\\ud83c[\\udffb-\\udfff]",x="(?:"+ps+"|"+d+")",j="[^"+Kt+"]",K="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",de="["+On+"]",ze="\\u200d",mt="(?:"+Pa+"|"+Ra+")",Qt="(?:"+de+"|"+Ra+")",Ht="(?:"+ds+"(?:d|ll|m|re|s|t|ve))?",o0="(?:"+ds+"(?:D|LL|M|RE|S|T|VE))?",a0=x+"?",u0="["+hs+"]?",PA="(?:"+ze+"(?:"+[j,K,ne].join("|")+")"+u0+a0+")*",RA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",LA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",c0=u0+a0+PA,NA="(?:"+[Da,K,ne].join("|")+")"+c0,jA="(?:"+[j+ps+"?",ps,K,ne,Zc].join("|")+")",$A=RegExp(ds,"g"),MA=RegExp(ps,"g"),el=RegExp(d+"(?="+d+")|"+jA+c0,"g"),UA=RegExp([de+"?"+Pa+"+"+Ht+"(?="+[Qr,de,"$"].join("|")+")",Qt+"+"+o0+"(?="+[Qr,de+mt,"$"].join("|")+")",de+"?"+mt+"+"+Ht,de+"+"+o0,LA,RA,Ba,NA].join("|"),"g"),VA=RegExp("["+ze+Kt+Oa+hs+"]"),qA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,WA=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],KA=-1,Dt={};Dt[ut]=Dt[O]=Dt[y]=Dt[w]=Dt[L]=Dt[V]=Dt[G]=Dt[ee]=Dt[Ue]=!0,Dt[ae]=Dt[Be]=Dt[we]=Dt[_e]=Dt[Te]=Dt[De]=Dt[Le]=Dt[Tt]=Dt[Lt]=Dt[Nt]=Dt[bt]=Dt[ke]=Dt[Pe]=Dt[he]=Dt[Et]=!1;var Ot={};Ot[ae]=Ot[Be]=Ot[we]=Ot[Te]=Ot[_e]=Ot[De]=Ot[ut]=Ot[O]=Ot[y]=Ot[w]=Ot[L]=Ot[Lt]=Ot[Nt]=Ot[bt]=Ot[ke]=Ot[Pe]=Ot[he]=Ot[At]=Ot[V]=Ot[G]=Ot[ee]=Ot[Ue]=!0,Ot[Le]=Ot[Tt]=Ot[Et]=!1;var HA={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},zA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},GA={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},JA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},YA=parseFloat,XA=parseInt,l0=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,QA=typeof self=="object"&&self&&self.Object===Object&&self,an=l0||QA||Function("return this")(),tl=t&&!t.nodeType&&t,Ci=tl&&!0&&e&&!e.nodeType&&e,f0=Ci&&Ci.exports===tl,nl=f0&&l0.process,qn=function(){try{var H=Ci&&Ci.require&&Ci.require("util").types;return H||nl&&nl.binding&&nl.binding("util")}catch{}}(),h0=qn&&qn.isArrayBuffer,d0=qn&&qn.isDate,p0=qn&&qn.isMap,g0=qn&&qn.isRegExp,y0=qn&&qn.isSet,m0=qn&&qn.isTypedArray;function In(H,te,X){switch(X.length){case 0:return H.call(te);case 1:return H.call(te,X[0]);case 2:return H.call(te,X[0],X[1]);case 3:return H.call(te,X[0],X[1],X[2])}return H.apply(te,X)}function ZA(H,te,X,xe){for(var Ve=-1,wt=H==null?0:H.length;++Ve<wt;){var Zt=H[Ve];te(xe,Zt,X(Zt),H)}return xe}function Wn(H,te){for(var X=-1,xe=H==null?0:H.length;++X<xe&&te(H[X],X,H)!==!1;);return H}function eS(H,te){for(var X=H==null?0:H.length;X--&&te(H[X],X,H)!==!1;);return H}function w0(H,te){for(var X=-1,xe=H==null?0:H.length;++X<xe;)if(!te(H[X],X,H))return!1;return!0}function Zr(H,te){for(var X=-1,xe=H==null?0:H.length,Ve=0,wt=[];++X<xe;){var Zt=H[X];te(Zt,X,H)&&(wt[Ve++]=Zt)}return wt}function La(H,te){var X=H==null?0:H.length;return!!X&&gs(H,te,0)>-1}function rl(H,te,X){for(var xe=-1,Ve=H==null?0:H.length;++xe<Ve;)if(X(te,H[xe]))return!0;return!1}function Rt(H,te){for(var X=-1,xe=H==null?0:H.length,Ve=Array(xe);++X<xe;)Ve[X]=te(H[X],X,H);return Ve}function ei(H,te){for(var X=-1,xe=te.length,Ve=H.length;++X<xe;)H[Ve+X]=te[X];return H}function il(H,te,X,xe){var Ve=-1,wt=H==null?0:H.length;for(xe&&wt&&(X=H[++Ve]);++Ve<wt;)X=te(X,H[Ve],Ve,H);return X}function tS(H,te,X,xe){var Ve=H==null?0:H.length;for(xe&&Ve&&(X=H[--Ve]);Ve--;)X=te(X,H[Ve],Ve,H);return X}function sl(H,te){for(var X=-1,xe=H==null?0:H.length;++X<xe;)if(te(H[X],X,H))return!0;return!1}var nS=ol("length");function rS(H){return H.split("")}function iS(H){return H.match(fe)||[]}function b0(H,te,X){var xe;return X(H,function(Ve,wt,Zt){if(te(Ve,wt,Zt))return xe=wt,!1}),xe}function Na(H,te,X,xe){for(var Ve=H.length,wt=X+(xe?1:-1);xe?wt--:++wt<Ve;)if(te(H[wt],wt,H))return wt;return-1}function gs(H,te,X){return te===te?yS(H,te,X):Na(H,v0,X)}function sS(H,te,X,xe){for(var Ve=X-1,wt=H.length;++Ve<wt;)if(xe(H[Ve],te))return Ve;return-1}function v0(H){return H!==H}function A0(H,te){var X=H==null?0:H.length;return X?ul(H,te)/X:Ae}function ol(H){return function(te){return te==null?n:te[H]}}function al(H){return function(te){return H==null?n:H[te]}}function S0(H,te,X,xe,Ve){return Ve(H,function(wt,Zt,_t){X=xe?(xe=!1,wt):te(X,wt,Zt,_t)}),X}function oS(H,te){var X=H.length;for(H.sort(te);X--;)H[X]=H[X].value;return H}function ul(H,te){for(var X,xe=-1,Ve=H.length;++xe<Ve;){var wt=te(H[xe]);wt!==n&&(X=X===n?wt:X+wt)}return X}function cl(H,te){for(var X=-1,xe=Array(H);++X<H;)xe[X]=te(X);return xe}function aS(H,te){return Rt(te,function(X){return[X,H[X]]})}function E0(H){return H&&H.slice(0,k0(H)+1).replace(Xr,"")}function Fn(H){return function(te){return H(te)}}function ll(H,te){return Rt(te,function(X){return H[X]})}function po(H,te){return H.has(te)}function x0(H,te){for(var X=-1,xe=H.length;++X<xe&&gs(te,H[X],0)>-1;);return X}function C0(H,te){for(var X=H.length;X--&&gs(te,H[X],0)>-1;);return X}function uS(H,te){for(var X=H.length,xe=0;X--;)H[X]===te&&++xe;return xe}var cS=al(HA),lS=al(zA);function fS(H){return"\\"+JA[H]}function hS(H,te){return H==null?n:H[te]}function ys(H){return VA.test(H)}function dS(H){return qA.test(H)}function pS(H){for(var te,X=[];!(te=H.next()).done;)X.push(te.value);return X}function fl(H){var te=-1,X=Array(H.size);return H.forEach(function(xe,Ve){X[++te]=[Ve,xe]}),X}function _0(H,te){return function(X){return H(te(X))}}function ti(H,te){for(var X=-1,xe=H.length,Ve=0,wt=[];++X<xe;){var Zt=H[X];(Zt===te||Zt===g)&&(H[X]=g,wt[Ve++]=X)}return wt}function ja(H){var te=-1,X=Array(H.size);return H.forEach(function(xe){X[++te]=xe}),X}function gS(H){var te=-1,X=Array(H.size);return H.forEach(function(xe){X[++te]=[xe,xe]}),X}function yS(H,te,X){for(var xe=X-1,Ve=H.length;++xe<Ve;)if(H[xe]===te)return xe;return-1}function mS(H,te,X){for(var xe=X+1;xe--;)if(H[xe]===te)return xe;return xe}function ms(H){return ys(H)?bS(H):nS(H)}function or(H){return ys(H)?vS(H):rS(H)}function k0(H){for(var te=H.length;te--&&uo.test(H.charAt(te)););return te}var wS=al(GA);function bS(H){for(var te=el.lastIndex=0;el.test(H);)++te;return te}function vS(H){return H.match(el)||[]}function AS(H){return H.match(UA)||[]}var SS=function H(te){te=te==null?an:ws.defaults(an.Object(),te,ws.pick(an,WA));var X=te.Array,xe=te.Date,Ve=te.Error,wt=te.Function,Zt=te.Math,_t=te.Object,hl=te.RegExp,ES=te.String,Kn=te.TypeError,$a=X.prototype,xS=wt.prototype,bs=_t.prototype,Ma=te["__core-js_shared__"],Ua=xS.toString,xt=bs.hasOwnProperty,CS=0,T0=function(){var r=/[^.]+$/.exec(Ma&&Ma.keys&&Ma.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Va=bs.toString,_S=Ua.call(_t),kS=an._,TS=hl("^"+Ua.call(xt).replace(Ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qa=f0?te.Buffer:n,ni=te.Symbol,Wa=te.Uint8Array,O0=qa?qa.allocUnsafe:n,Ka=_0(_t.getPrototypeOf,_t),I0=_t.create,F0=bs.propertyIsEnumerable,Ha=$a.splice,B0=ni?ni.isConcatSpreadable:n,go=ni?ni.iterator:n,_i=ni?ni.toStringTag:n,za=function(){try{var r=Fi(_t,"defineProperty");return r({},"",{}),r}catch{}}(),OS=te.clearTimeout!==an.clearTimeout&&te.clearTimeout,IS=xe&&xe.now!==an.Date.now&&xe.now,FS=te.setTimeout!==an.setTimeout&&te.setTimeout,Ga=Zt.ceil,Ja=Zt.floor,dl=_t.getOwnPropertySymbols,BS=qa?qa.isBuffer:n,D0=te.isFinite,DS=$a.join,PS=_0(_t.keys,_t),en=Zt.max,ln=Zt.min,RS=xe.now,LS=te.parseInt,P0=Zt.random,NS=$a.reverse,pl=Fi(te,"DataView"),yo=Fi(te,"Map"),gl=Fi(te,"Promise"),vs=Fi(te,"Set"),mo=Fi(te,"WeakMap"),wo=Fi(_t,"create"),Ya=mo&&new mo,As={},jS=Bi(pl),$S=Bi(yo),MS=Bi(gl),US=Bi(vs),VS=Bi(mo),Xa=ni?ni.prototype:n,bo=Xa?Xa.valueOf:n,R0=Xa?Xa.toString:n;function D(r){if(Mt(r)&&!Ke(r)&&!(r instanceof ot)){if(r instanceof Hn)return r;if(xt.call(r,"__wrapped__"))return Lg(r)}return new Hn(r)}var Ss=function(){function r(){}return function(s){if(!$t(s))return{};if(I0)return I0(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Qa(){}function Hn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}D.templateSettings={escape:ls,evaluate:fs,interpolate:Yr,variable:"",imports:{_:D}},D.prototype=Qa.prototype,D.prototype.constructor=D,Hn.prototype=Ss(Qa.prototype),Hn.prototype.constructor=Hn;function ot(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=me,this.__views__=[]}function qS(){var r=new ot(this.__wrapped__);return r.__actions__=Sn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Sn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Sn(this.__views__),r}function WS(){if(this.__filtered__){var r=new ot(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function KS(){var r=this.__wrapped__.value(),s=this.__dir__,c=Ke(r),m=s<0,T=c?r.length:0,R=rx(0,T,this.__views__),$=R.start,U=R.end,z=U-$,ie=m?U:$-1,se=this.__iteratees__,ue=se.length,ve=0,Ie=ln(z,this.__takeCount__);if(!c||!m&&T==z&&Ie==z)return sg(r,this.__actions__);var je=[];e:for(;z--&&ve<Ie;){ie+=s;for(var Qe=-1,$e=r[ie];++Qe<ue;){var it=se[Qe],at=it.iteratee,Pn=it.type,mn=at($e);if(Pn==pe)$e=mn;else if(!mn){if(Pn==Ce)continue e;break e}}je[ve++]=$e}return je}ot.prototype=Ss(Qa.prototype),ot.prototype.constructor=ot;function ki(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function HS(){this.__data__=wo?wo(null):{},this.size=0}function zS(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function GS(r){var s=this.__data__;if(wo){var c=s[r];return c===f?n:c}return xt.call(s,r)?s[r]:n}function JS(r){var s=this.__data__;return wo?s[r]!==n:xt.call(s,r)}function YS(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=wo&&s===n?f:s,this}ki.prototype.clear=HS,ki.prototype.delete=zS,ki.prototype.get=GS,ki.prototype.has=JS,ki.prototype.set=YS;function Fr(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function XS(){this.__data__=[],this.size=0}function QS(r){var s=this.__data__,c=Za(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Ha.call(s,c,1),--this.size,!0}function ZS(r){var s=this.__data__,c=Za(s,r);return c<0?n:s[c][1]}function eE(r){return Za(this.__data__,r)>-1}function tE(r,s){var c=this.__data__,m=Za(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Fr.prototype.clear=XS,Fr.prototype.delete=QS,Fr.prototype.get=ZS,Fr.prototype.has=eE,Fr.prototype.set=tE;function Br(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function nE(){this.size=0,this.__data__={hash:new ki,map:new(yo||Fr),string:new ki}}function rE(r){var s=fu(this,r).delete(r);return this.size-=s?1:0,s}function iE(r){return fu(this,r).get(r)}function sE(r){return fu(this,r).has(r)}function oE(r,s){var c=fu(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Br.prototype.clear=nE,Br.prototype.delete=rE,Br.prototype.get=iE,Br.prototype.has=sE,Br.prototype.set=oE;function Ti(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Br;++s<c;)this.add(r[s])}function aE(r){return this.__data__.set(r,f),this}function uE(r){return this.__data__.has(r)}Ti.prototype.add=Ti.prototype.push=aE,Ti.prototype.has=uE;function ar(r){var s=this.__data__=new Fr(r);this.size=s.size}function cE(){this.__data__=new Fr,this.size=0}function lE(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function fE(r){return this.__data__.get(r)}function hE(r){return this.__data__.has(r)}function dE(r,s){var c=this.__data__;if(c instanceof Fr){var m=c.__data__;if(!yo||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new Br(m)}return c.set(r,s),this.size=c.size,this}ar.prototype.clear=cE,ar.prototype.delete=lE,ar.prototype.get=fE,ar.prototype.has=hE,ar.prototype.set=dE;function L0(r,s){var c=Ke(r),m=!c&&Di(r),T=!c&&!m&&ai(r),R=!c&&!m&&!T&&_s(r),$=c||m||T||R,U=$?cl(r.length,ES):[],z=U.length;for(var ie in r)(s||xt.call(r,ie))&&!($&&(ie=="length"||T&&(ie=="offset"||ie=="parent")||R&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Lr(ie,z)))&&U.push(ie);return U}function N0(r){var s=r.length;return s?r[_l(0,s-1)]:n}function pE(r,s){return hu(Sn(r),Oi(s,0,r.length))}function gE(r){return hu(Sn(r))}function yl(r,s,c){(c!==n&&!ur(r[s],c)||c===n&&!(s in r))&&Dr(r,s,c)}function vo(r,s,c){var m=r[s];(!(xt.call(r,s)&&ur(m,c))||c===n&&!(s in r))&&Dr(r,s,c)}function Za(r,s){for(var c=r.length;c--;)if(ur(r[c][0],s))return c;return-1}function yE(r,s,c,m){return ri(r,function(T,R,$){s(m,T,c(T),$)}),m}function j0(r,s){return r&&vr(s,rn(s),r)}function mE(r,s){return r&&vr(s,xn(s),r)}function Dr(r,s,c){s=="__proto__"&&za?za(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function ml(r,s){for(var c=-1,m=s.length,T=X(m),R=r==null;++c<m;)T[c]=R?n:Xl(r,s[c]);return T}function Oi(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function zn(r,s,c,m,T,R){var $,U=s&p,z=s&v,ie=s&C;if(c&&($=T?c(r,m,T,R):c(r)),$!==n)return $;if(!$t(r))return r;var se=Ke(r);if(se){if($=sx(r),!U)return Sn(r,$)}else{var ue=fn(r),ve=ue==Tt||ue==nn;if(ai(r))return ug(r,U);if(ue==bt||ue==ae||ve&&!T){if($=z||ve?{}:kg(r),!U)return z?GE(r,mE($,r)):zE(r,j0($,r))}else{if(!Ot[ue])return T?r:{};$=ox(r,ue,U)}}R||(R=new ar);var Ie=R.get(r);if(Ie)return Ie;R.set(r,$),n1(r)?r.forEach(function($e){$.add(zn($e,s,c,$e,r,R))}):e1(r)&&r.forEach(function($e,it){$.set(it,zn($e,s,c,it,r,R))});var je=ie?z?Nl:Ll:z?xn:rn,Qe=se?n:je(r);return Wn(Qe||r,function($e,it){Qe&&(it=$e,$e=r[it]),vo($,it,zn($e,s,c,it,r,R))}),$}function wE(r){var s=rn(r);return function(c){return $0(c,r,s)}}function $0(r,s,c){var m=c.length;if(r==null)return!m;for(r=_t(r);m--;){var T=c[m],R=s[T],$=r[T];if($===n&&!(T in r)||!R($))return!1}return!0}function M0(r,s,c){if(typeof r!="function")throw new Kn(u);return ko(function(){r.apply(n,c)},s)}function Ao(r,s,c,m){var T=-1,R=La,$=!0,U=r.length,z=[],ie=s.length;if(!U)return z;c&&(s=Rt(s,Fn(c))),m?(R=rl,$=!1):s.length>=o&&(R=po,$=!1,s=new Ti(s));e:for(;++T<U;){var se=r[T],ue=c==null?se:c(se);if(se=m||se!==0?se:0,$&&ue===ue){for(var ve=ie;ve--;)if(s[ve]===ue)continue e;z.push(se)}else R(s,ue,m)||z.push(se)}return z}var ri=dg(br),U0=dg(bl,!0);function bE(r,s){var c=!0;return ri(r,function(m,T,R){return c=!!s(m,T,R),c}),c}function eu(r,s,c){for(var m=-1,T=r.length;++m<T;){var R=r[m],$=s(R);if($!=null&&(U===n?$===$&&!Dn($):c($,U)))var U=$,z=R}return z}function vE(r,s,c,m){var T=r.length;for(c=Ge(c),c<0&&(c=-c>T?0:T+c),m=m===n||m>T?T:Ge(m),m<0&&(m+=T),m=c>m?0:i1(m);c<m;)r[c++]=s;return r}function V0(r,s){var c=[];return ri(r,function(m,T,R){s(m,T,R)&&c.push(m)}),c}function un(r,s,c,m,T){var R=-1,$=r.length;for(c||(c=ux),T||(T=[]);++R<$;){var U=r[R];s>0&&c(U)?s>1?un(U,s-1,c,m,T):ei(T,U):m||(T[T.length]=U)}return T}var wl=pg(),q0=pg(!0);function br(r,s){return r&&wl(r,s,rn)}function bl(r,s){return r&&q0(r,s,rn)}function tu(r,s){return Zr(s,function(c){return Nr(r[c])})}function Ii(r,s){s=si(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[Ar(s[c++])];return c&&c==m?r:n}function W0(r,s,c){var m=s(r);return Ke(r)?m:ei(m,c(r))}function gn(r){return r==null?r===n?St:jt:_i&&_i in _t(r)?nx(r):gx(r)}function vl(r,s){return r>s}function AE(r,s){return r!=null&&xt.call(r,s)}function SE(r,s){return r!=null&&s in _t(r)}function EE(r,s,c){return r>=ln(s,c)&&r<en(s,c)}function Al(r,s,c){for(var m=c?rl:La,T=r[0].length,R=r.length,$=R,U=X(R),z=1/0,ie=[];$--;){var se=r[$];$&&s&&(se=Rt(se,Fn(s))),z=ln(se.length,z),U[$]=!c&&(s||T>=120&&se.length>=120)?new Ti($&&se):n}se=r[0];var ue=-1,ve=U[0];e:for(;++ue<T&&ie.length<z;){var Ie=se[ue],je=s?s(Ie):Ie;if(Ie=c||Ie!==0?Ie:0,!(ve?po(ve,je):m(ie,je,c))){for($=R;--$;){var Qe=U[$];if(!(Qe?po(Qe,je):m(r[$],je,c)))continue e}ve&&ve.push(je),ie.push(Ie)}}return ie}function xE(r,s,c,m){return br(r,function(T,R,$){s(m,c(T),R,$)}),m}function So(r,s,c){s=si(s,r),r=Fg(r,s);var m=r==null?r:r[Ar(Jn(s))];return m==null?n:In(m,r,c)}function K0(r){return Mt(r)&&gn(r)==ae}function CE(r){return Mt(r)&&gn(r)==we}function _E(r){return Mt(r)&&gn(r)==De}function Eo(r,s,c,m,T){return r===s?!0:r==null||s==null||!Mt(r)&&!Mt(s)?r!==r&&s!==s:kE(r,s,c,m,Eo,T)}function kE(r,s,c,m,T,R){var $=Ke(r),U=Ke(s),z=$?Be:fn(r),ie=U?Be:fn(s);z=z==ae?bt:z,ie=ie==ae?bt:ie;var se=z==bt,ue=ie==bt,ve=z==ie;if(ve&&ai(r)){if(!ai(s))return!1;$=!0,se=!1}if(ve&&!se)return R||(R=new ar),$||_s(r)?xg(r,s,c,m,T,R):ex(r,s,z,c,m,T,R);if(!(c&S)){var Ie=se&&xt.call(r,"__wrapped__"),je=ue&&xt.call(s,"__wrapped__");if(Ie||je){var Qe=Ie?r.value():r,$e=je?s.value():s;return R||(R=new ar),T(Qe,$e,c,m,R)}}return ve?(R||(R=new ar),tx(r,s,c,m,T,R)):!1}function TE(r){return Mt(r)&&fn(r)==Lt}function Sl(r,s,c,m){var T=c.length,R=T,$=!m;if(r==null)return!R;for(r=_t(r);T--;){var U=c[T];if($&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++T<R;){U=c[T];var z=U[0],ie=r[z],se=U[1];if($&&U[2]){if(ie===n&&!(z in r))return!1}else{var ue=new ar;if(m)var ve=m(ie,se,z,r,s,ue);if(!(ve===n?Eo(se,ie,S|E,m,ue):ve))return!1}}return!0}function H0(r){if(!$t(r)||lx(r))return!1;var s=Nr(r)?TS:Xt;return s.test(Bi(r))}function OE(r){return Mt(r)&&gn(r)==ke}function IE(r){return Mt(r)&&fn(r)==Pe}function FE(r){return Mt(r)&&wu(r.length)&&!!Dt[gn(r)]}function z0(r){return typeof r=="function"?r:r==null?Cn:typeof r=="object"?Ke(r)?Y0(r[0],r[1]):J0(r):g1(r)}function El(r){if(!_o(r))return PS(r);var s=[];for(var c in _t(r))xt.call(r,c)&&c!="constructor"&&s.push(c);return s}function BE(r){if(!$t(r))return px(r);var s=_o(r),c=[];for(var m in r)m=="constructor"&&(s||!xt.call(r,m))||c.push(m);return c}function xl(r,s){return r<s}function G0(r,s){var c=-1,m=En(r)?X(r.length):[];return ri(r,function(T,R,$){m[++c]=s(T,R,$)}),m}function J0(r){var s=$l(r);return s.length==1&&s[0][2]?Og(s[0][0],s[0][1]):function(c){return c===r||Sl(c,r,s)}}function Y0(r,s){return Ul(r)&&Tg(s)?Og(Ar(r),s):function(c){var m=Xl(c,r);return m===n&&m===s?Ql(c,r):Eo(s,m,S|E)}}function nu(r,s,c,m,T){r!==s&&wl(s,function(R,$){if(T||(T=new ar),$t(R))DE(r,s,$,c,nu,m,T);else{var U=m?m(ql(r,$),R,$+"",r,s,T):n;U===n&&(U=R),yl(r,$,U)}},xn)}function DE(r,s,c,m,T,R,$){var U=ql(r,c),z=ql(s,c),ie=$.get(z);if(ie){yl(r,c,ie);return}var se=R?R(U,z,c+"",r,s,$):n,ue=se===n;if(ue){var ve=Ke(z),Ie=!ve&&ai(z),je=!ve&&!Ie&&_s(z);se=z,ve||Ie||je?Ke(U)?se=U:zt(U)?se=Sn(U):Ie?(ue=!1,se=ug(z,!0)):je?(ue=!1,se=cg(z,!0)):se=[]:To(z)||Di(z)?(se=U,Di(U)?se=s1(U):(!$t(U)||Nr(U))&&(se=kg(z))):ue=!1}ue&&($.set(z,se),T(se,z,m,R,$),$.delete(z)),yl(r,c,se)}function X0(r,s){var c=r.length;if(c)return s+=s<0?c:0,Lr(s,c)?r[s]:n}function Q0(r,s,c){s.length?s=Rt(s,function(R){return Ke(R)?function($){return Ii($,R.length===1?R[0]:R)}:R}):s=[Cn];var m=-1;s=Rt(s,Fn(Ne()));var T=G0(r,function(R,$,U){var z=Rt(s,function(ie){return ie(R)});return{criteria:z,index:++m,value:R}});return oS(T,function(R,$){return HE(R,$,c)})}function PE(r,s){return Z0(r,s,function(c,m){return Ql(r,m)})}function Z0(r,s,c){for(var m=-1,T=s.length,R={};++m<T;){var $=s[m],U=Ii(r,$);c(U,$)&&xo(R,si($,r),U)}return R}function RE(r){return function(s){return Ii(s,r)}}function Cl(r,s,c,m){var T=m?sS:gs,R=-1,$=s.length,U=r;for(r===s&&(s=Sn(s)),c&&(U=Rt(r,Fn(c)));++R<$;)for(var z=0,ie=s[R],se=c?c(ie):ie;(z=T(U,se,z,m))>-1;)U!==r&&Ha.call(U,z,1),Ha.call(r,z,1);return r}function eg(r,s){for(var c=r?s.length:0,m=c-1;c--;){var T=s[c];if(c==m||T!==R){var R=T;Lr(T)?Ha.call(r,T,1):Ol(r,T)}}return r}function _l(r,s){return r+Ja(P0()*(s-r+1))}function LE(r,s,c,m){for(var T=-1,R=en(Ga((s-r)/(c||1)),0),$=X(R);R--;)$[m?R:++T]=r,r+=c;return $}function kl(r,s){var c="";if(!r||s<1||s>Ee)return c;do s%2&&(c+=r),s=Ja(s/2),s&&(r+=r);while(s);return c}function Ze(r,s){return Wl(Ig(r,s,Cn),r+"")}function NE(r){return N0(ks(r))}function jE(r,s){var c=ks(r);return hu(c,Oi(s,0,c.length))}function xo(r,s,c,m){if(!$t(r))return r;s=si(s,r);for(var T=-1,R=s.length,$=R-1,U=r;U!=null&&++T<R;){var z=Ar(s[T]),ie=c;if(z==="__proto__"||z==="constructor"||z==="prototype")return r;if(T!=$){var se=U[z];ie=m?m(se,z,U):n,ie===n&&(ie=$t(se)?se:Lr(s[T+1])?[]:{})}vo(U,z,ie),U=U[z]}return r}var tg=Ya?function(r,s){return Ya.set(r,s),r}:Cn,$E=za?function(r,s){return za(r,"toString",{configurable:!0,enumerable:!1,value:ef(s),writable:!0})}:Cn;function ME(r){return hu(ks(r))}function Gn(r,s,c){var m=-1,T=r.length;s<0&&(s=-s>T?0:T+s),c=c>T?T:c,c<0&&(c+=T),T=s>c?0:c-s>>>0,s>>>=0;for(var R=X(T);++m<T;)R[m]=r[m+s];return R}function UE(r,s){var c;return ri(r,function(m,T,R){return c=s(m,T,R),!c}),!!c}function ru(r,s,c){var m=0,T=r==null?m:r.length;if(typeof s=="number"&&s===s&&T<=Y){for(;m<T;){var R=m+T>>>1,$=r[R];$!==null&&!Dn($)&&(c?$<=s:$<s)?m=R+1:T=R}return T}return Tl(r,s,Cn,c)}function Tl(r,s,c,m){var T=0,R=r==null?0:r.length;if(R===0)return 0;s=c(s);for(var $=s!==s,U=s===null,z=Dn(s),ie=s===n;T<R;){var se=Ja((T+R)/2),ue=c(r[se]),ve=ue!==n,Ie=ue===null,je=ue===ue,Qe=Dn(ue);if($)var $e=m||je;else ie?$e=je&&(m||ve):U?$e=je&&ve&&(m||!Ie):z?$e=je&&ve&&!Ie&&(m||!Qe):Ie||Qe?$e=!1:$e=m?ue<=s:ue<s;$e?T=se+1:R=se}return ln(R,Me)}function ng(r,s){for(var c=-1,m=r.length,T=0,R=[];++c<m;){var $=r[c],U=s?s($):$;if(!c||!ur(U,z)){var z=U;R[T++]=$===0?0:$}}return R}function rg(r){return typeof r=="number"?r:Dn(r)?Ae:+r}function Bn(r){if(typeof r=="string")return r;if(Ke(r))return Rt(r,Bn)+"";if(Dn(r))return R0?R0.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ii(r,s,c){var m=-1,T=La,R=r.length,$=!0,U=[],z=U;if(c)$=!1,T=rl;else if(R>=o){var ie=s?null:QE(r);if(ie)return ja(ie);$=!1,T=po,z=new Ti}else z=s?[]:U;e:for(;++m<R;){var se=r[m],ue=s?s(se):se;if(se=c||se!==0?se:0,$&&ue===ue){for(var ve=z.length;ve--;)if(z[ve]===ue)continue e;s&&z.push(ue),U.push(se)}else T(z,ue,c)||(z!==U&&z.push(ue),U.push(se))}return U}function Ol(r,s){return s=si(s,r),r=Fg(r,s),r==null||delete r[Ar(Jn(s))]}function ig(r,s,c,m){return xo(r,s,c(Ii(r,s)),m)}function iu(r,s,c,m){for(var T=r.length,R=m?T:-1;(m?R--:++R<T)&&s(r[R],R,r););return c?Gn(r,m?0:R,m?R+1:T):Gn(r,m?R+1:0,m?T:R)}function sg(r,s){var c=r;return c instanceof ot&&(c=c.value()),il(s,function(m,T){return T.func.apply(T.thisArg,ei([m],T.args))},c)}function Il(r,s,c){var m=r.length;if(m<2)return m?ii(r[0]):[];for(var T=-1,R=X(m);++T<m;)for(var $=r[T],U=-1;++U<m;)U!=T&&(R[T]=Ao(R[T]||$,r[U],s,c));return ii(un(R,1),s,c)}function og(r,s,c){for(var m=-1,T=r.length,R=s.length,$={};++m<T;){var U=m<R?s[m]:n;c($,r[m],U)}return $}function Fl(r){return zt(r)?r:[]}function Bl(r){return typeof r=="function"?r:Cn}function si(r,s){return Ke(r)?r:Ul(r,s)?[r]:Rg(vt(r))}var VE=Ze;function oi(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var ag=OS||function(r){return an.clearTimeout(r)};function ug(r,s){if(s)return r.slice();var c=r.length,m=O0?O0(c):new r.constructor(c);return r.copy(m),m}function Dl(r){var s=new r.constructor(r.byteLength);return new Wa(s).set(new Wa(r)),s}function qE(r,s){var c=s?Dl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function WE(r){var s=new r.constructor(r.source,ft.exec(r));return s.lastIndex=r.lastIndex,s}function KE(r){return bo?_t(bo.call(r)):{}}function cg(r,s){var c=s?Dl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function lg(r,s){if(r!==s){var c=r!==n,m=r===null,T=r===r,R=Dn(r),$=s!==n,U=s===null,z=s===s,ie=Dn(s);if(!U&&!ie&&!R&&r>s||R&&$&&z&&!U&&!ie||m&&$&&z||!c&&z||!T)return 1;if(!m&&!R&&!ie&&r<s||ie&&c&&T&&!m&&!R||U&&c&&T||!$&&T||!z)return-1}return 0}function HE(r,s,c){for(var m=-1,T=r.criteria,R=s.criteria,$=T.length,U=c.length;++m<$;){var z=lg(T[m],R[m]);if(z){if(m>=U)return z;var ie=c[m];return z*(ie=="desc"?-1:1)}}return r.index-s.index}function fg(r,s,c,m){for(var T=-1,R=r.length,$=c.length,U=-1,z=s.length,ie=en(R-$,0),se=X(z+ie),ue=!m;++U<z;)se[U]=s[U];for(;++T<$;)(ue||T<R)&&(se[c[T]]=r[T]);for(;ie--;)se[U++]=r[T++];return se}function hg(r,s,c,m){for(var T=-1,R=r.length,$=-1,U=c.length,z=-1,ie=s.length,se=en(R-U,0),ue=X(se+ie),ve=!m;++T<se;)ue[T]=r[T];for(var Ie=T;++z<ie;)ue[Ie+z]=s[z];for(;++$<U;)(ve||T<R)&&(ue[Ie+c[$]]=r[T++]);return ue}function Sn(r,s){var c=-1,m=r.length;for(s||(s=X(m));++c<m;)s[c]=r[c];return s}function vr(r,s,c,m){var T=!c;c||(c={});for(var R=-1,$=s.length;++R<$;){var U=s[R],z=m?m(c[U],r[U],U,c,r):n;z===n&&(z=r[U]),T?Dr(c,U,z):vo(c,U,z)}return c}function zE(r,s){return vr(r,Ml(r),s)}function GE(r,s){return vr(r,Cg(r),s)}function su(r,s){return function(c,m){var T=Ke(c)?ZA:yE,R=s?s():{};return T(c,r,Ne(m,2),R)}}function Es(r){return Ze(function(s,c){var m=-1,T=c.length,R=T>1?c[T-1]:n,$=T>2?c[2]:n;for(R=r.length>3&&typeof R=="function"?(T--,R):n,$&&yn(c[0],c[1],$)&&(R=T<3?n:R,T=1),s=_t(s);++m<T;){var U=c[m];U&&r(s,U,m,R)}return s})}function dg(r,s){return function(c,m){if(c==null)return c;if(!En(c))return r(c,m);for(var T=c.length,R=s?T:-1,$=_t(c);(s?R--:++R<T)&&m($[R],R,$)!==!1;);return c}}function pg(r){return function(s,c,m){for(var T=-1,R=_t(s),$=m(s),U=$.length;U--;){var z=$[r?U:++T];if(c(R[z],z,R)===!1)break}return s}}function JE(r,s,c){var m=s&b,T=Co(r);function R(){var $=this&&this!==an&&this instanceof R?T:r;return $.apply(m?c:this,arguments)}return R}function gg(r){return function(s){s=vt(s);var c=ys(s)?or(s):n,m=c?c[0]:s.charAt(0),T=c?oi(c,1).join(""):s.slice(1);return m[r]()+T}}function xs(r){return function(s){return il(d1(h1(s).replace($A,"")),r,"")}}function Co(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=Ss(r.prototype),m=r.apply(c,s);return $t(m)?m:c}}function YE(r,s,c){var m=Co(r);function T(){for(var R=arguments.length,$=X(R),U=R,z=Cs(T);U--;)$[U]=arguments[U];var ie=R<3&&$[0]!==z&&$[R-1]!==z?[]:ti($,z);if(R-=ie.length,R<c)return vg(r,s,ou,T.placeholder,n,$,ie,n,n,c-R);var se=this&&this!==an&&this instanceof T?m:r;return In(se,this,$)}return T}function yg(r){return function(s,c,m){var T=_t(s);if(!En(s)){var R=Ne(c,3);s=rn(s),c=function(U){return R(T[U],U,T)}}var $=r(s,c,m);return $>-1?T[R?s[$]:$]:n}}function mg(r){return Rr(function(s){var c=s.length,m=c,T=Hn.prototype.thru;for(r&&s.reverse();m--;){var R=s[m];if(typeof R!="function")throw new Kn(u);if(T&&!$&&lu(R)=="wrapper")var $=new Hn([],!0)}for(m=$?m:c;++m<c;){R=s[m];var U=lu(R),z=U=="wrapper"?jl(R):n;z&&Vl(z[0])&&z[1]==(I|_|F|W)&&!z[4].length&&z[9]==1?$=$[lu(z[0])].apply($,z[3]):$=R.length==1&&Vl(R)?$[U]():$.thru(R)}return function(){var ie=arguments,se=ie[0];if($&&ie.length==1&&Ke(se))return $.plant(se).value();for(var ue=0,ve=c?s[ue].apply(this,ie):se;++ue<c;)ve=s[ue].call(this,ve);return ve}})}function ou(r,s,c,m,T,R,$,U,z,ie){var se=s&I,ue=s&b,ve=s&B,Ie=s&(_|k),je=s&J,Qe=ve?n:Co(r);function $e(){for(var it=arguments.length,at=X(it),Pn=it;Pn--;)at[Pn]=arguments[Pn];if(Ie)var mn=Cs($e),Rn=uS(at,mn);if(m&&(at=fg(at,m,T,Ie)),R&&(at=hg(at,R,$,Ie)),it-=Rn,Ie&&it<ie){var Gt=ti(at,mn);return vg(r,s,ou,$e.placeholder,c,at,Gt,U,z,ie-it)}var cr=ue?c:this,$r=ve?cr[r]:r;return it=at.length,U?at=yx(at,U):je&&it>1&&at.reverse(),se&&z<it&&(at.length=z),this&&this!==an&&this instanceof $e&&($r=Qe||Co($r)),$r.apply(cr,at)}return $e}function wg(r,s){return function(c,m){return xE(c,r,s(m),{})}}function au(r,s){return function(c,m){var T;if(c===n&&m===n)return s;if(c!==n&&(T=c),m!==n){if(T===n)return m;typeof c=="string"||typeof m=="string"?(c=Bn(c),m=Bn(m)):(c=rg(c),m=rg(m)),T=r(c,m)}return T}}function Pl(r){return Rr(function(s){return s=Rt(s,Fn(Ne())),Ze(function(c){var m=this;return r(s,function(T){return In(T,m,c)})})})}function uu(r,s){s=s===n?" ":Bn(s);var c=s.length;if(c<2)return c?kl(s,r):s;var m=kl(s,Ga(r/ms(s)));return ys(s)?oi(or(m),0,r).join(""):m.slice(0,r)}function XE(r,s,c,m){var T=s&b,R=Co(r);function $(){for(var U=-1,z=arguments.length,ie=-1,se=m.length,ue=X(se+z),ve=this&&this!==an&&this instanceof $?R:r;++ie<se;)ue[ie]=m[ie];for(;z--;)ue[ie++]=arguments[++U];return In(ve,T?c:this,ue)}return $}function bg(r){return function(s,c,m){return m&&typeof m!="number"&&yn(s,c,m)&&(c=m=n),s=jr(s),c===n?(c=s,s=0):c=jr(c),m=m===n?s<c?1:-1:jr(m),LE(s,c,m,r)}}function cu(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Yn(s),c=Yn(c)),r(s,c)}}function vg(r,s,c,m,T,R,$,U,z,ie){var se=s&_,ue=se?$:n,ve=se?n:$,Ie=se?R:n,je=se?n:R;s|=se?F:P,s&=~(se?P:F),s&N||(s&=-4);var Qe=[r,s,T,Ie,ue,je,ve,U,z,ie],$e=c.apply(n,Qe);return Vl(r)&&Bg($e,Qe),$e.placeholder=m,Dg($e,r,s)}function Rl(r){var s=Zt[r];return function(c,m){if(c=Yn(c),m=m==null?0:ln(Ge(m),292),m&&D0(c)){var T=(vt(c)+"e").split("e"),R=s(T[0]+"e"+(+T[1]+m));return T=(vt(R)+"e").split("e"),+(T[0]+"e"+(+T[1]-m))}return s(c)}}var QE=vs&&1/ja(new vs([,-0]))[1]==Se?function(r){return new vs(r)}:rf;function Ag(r){return function(s){var c=fn(s);return c==Lt?fl(s):c==Pe?gS(s):aS(s,r(s))}}function Pr(r,s,c,m,T,R,$,U){var z=s&B;if(!z&&typeof r!="function")throw new Kn(u);var ie=m?m.length:0;if(ie||(s&=-97,m=T=n),$=$===n?$:en(Ge($),0),U=U===n?U:Ge(U),ie-=T?T.length:0,s&P){var se=m,ue=T;m=T=n}var ve=z?n:jl(r),Ie=[r,s,c,m,T,se,ue,R,$,U];if(ve&&dx(Ie,ve),r=Ie[0],s=Ie[1],c=Ie[2],m=Ie[3],T=Ie[4],U=Ie[9]=Ie[9]===n?z?0:r.length:en(Ie[9]-ie,0),!U&&s&(_|k)&&(s&=-25),!s||s==b)var je=JE(r,s,c);else s==_||s==k?je=YE(r,s,U):(s==F||s==(b|F))&&!T.length?je=XE(r,s,c,m):je=ou.apply(n,Ie);var Qe=ve?tg:Bg;return Dg(Qe(je,Ie),r,s)}function Sg(r,s,c,m){return r===n||ur(r,bs[c])&&!xt.call(m,c)?s:r}function Eg(r,s,c,m,T,R){return $t(r)&&$t(s)&&(R.set(s,r),nu(r,s,n,Eg,R),R.delete(s)),r}function ZE(r){return To(r)?n:r}function xg(r,s,c,m,T,R){var $=c&S,U=r.length,z=s.length;if(U!=z&&!($&&z>U))return!1;var ie=R.get(r),se=R.get(s);if(ie&&se)return ie==s&&se==r;var ue=-1,ve=!0,Ie=c&E?new Ti:n;for(R.set(r,s),R.set(s,r);++ue<U;){var je=r[ue],Qe=s[ue];if(m)var $e=$?m(Qe,je,ue,s,r,R):m(je,Qe,ue,r,s,R);if($e!==n){if($e)continue;ve=!1;break}if(Ie){if(!sl(s,function(it,at){if(!po(Ie,at)&&(je===it||T(je,it,c,m,R)))return Ie.push(at)})){ve=!1;break}}else if(!(je===Qe||T(je,Qe,c,m,R))){ve=!1;break}}return R.delete(r),R.delete(s),ve}function ex(r,s,c,m,T,R,$){switch(c){case Te:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case we:return!(r.byteLength!=s.byteLength||!R(new Wa(r),new Wa(s)));case _e:case De:case Nt:return ur(+r,+s);case Le:return r.name==s.name&&r.message==s.message;case ke:case he:return r==s+"";case Lt:var U=fl;case Pe:var z=m&S;if(U||(U=ja),r.size!=s.size&&!z)return!1;var ie=$.get(r);if(ie)return ie==s;m|=E,$.set(r,s);var se=xg(U(r),U(s),m,T,R,$);return $.delete(r),se;case At:if(bo)return bo.call(r)==bo.call(s)}return!1}function tx(r,s,c,m,T,R){var $=c&S,U=Ll(r),z=U.length,ie=Ll(s),se=ie.length;if(z!=se&&!$)return!1;for(var ue=z;ue--;){var ve=U[ue];if(!($?ve in s:xt.call(s,ve)))return!1}var Ie=R.get(r),je=R.get(s);if(Ie&&je)return Ie==s&&je==r;var Qe=!0;R.set(r,s),R.set(s,r);for(var $e=$;++ue<z;){ve=U[ue];var it=r[ve],at=s[ve];if(m)var Pn=$?m(at,it,ve,s,r,R):m(it,at,ve,r,s,R);if(!(Pn===n?it===at||T(it,at,c,m,R):Pn)){Qe=!1;break}$e||($e=ve=="constructor")}if(Qe&&!$e){var mn=r.constructor,Rn=s.constructor;mn!=Rn&&"constructor"in r&&"constructor"in s&&!(typeof mn=="function"&&mn instanceof mn&&typeof Rn=="function"&&Rn instanceof Rn)&&(Qe=!1)}return R.delete(r),R.delete(s),Qe}function Rr(r){return Wl(Ig(r,n,$g),r+"")}function Ll(r){return W0(r,rn,Ml)}function Nl(r){return W0(r,xn,Cg)}var jl=Ya?function(r){return Ya.get(r)}:rf;function lu(r){for(var s=r.name+"",c=As[s],m=xt.call(As,s)?c.length:0;m--;){var T=c[m],R=T.func;if(R==null||R==r)return T.name}return s}function Cs(r){var s=xt.call(D,"placeholder")?D:r;return s.placeholder}function Ne(){var r=D.iteratee||tf;return r=r===tf?z0:r,arguments.length?r(arguments[0],arguments[1]):r}function fu(r,s){var c=r.__data__;return cx(s)?c[typeof s=="string"?"string":"hash"]:c.map}function $l(r){for(var s=rn(r),c=s.length;c--;){var m=s[c],T=r[m];s[c]=[m,T,Tg(T)]}return s}function Fi(r,s){var c=hS(r,s);return H0(c)?c:n}function nx(r){var s=xt.call(r,_i),c=r[_i];try{r[_i]=n;var m=!0}catch{}var T=Va.call(r);return m&&(s?r[_i]=c:delete r[_i]),T}var Ml=dl?function(r){return r==null?[]:(r=_t(r),Zr(dl(r),function(s){return F0.call(r,s)}))}:sf,Cg=dl?function(r){for(var s=[];r;)ei(s,Ml(r)),r=Ka(r);return s}:sf,fn=gn;(pl&&fn(new pl(new ArrayBuffer(1)))!=Te||yo&&fn(new yo)!=Lt||gl&&fn(gl.resolve())!=kn||vs&&fn(new vs)!=Pe||mo&&fn(new mo)!=Et)&&(fn=function(r){var s=gn(r),c=s==bt?r.constructor:n,m=c?Bi(c):"";if(m)switch(m){case jS:return Te;case $S:return Lt;case MS:return kn;case US:return Pe;case VS:return Et}return s});function rx(r,s,c){for(var m=-1,T=c.length;++m<T;){var R=c[m],$=R.size;switch(R.type){case"drop":r+=$;break;case"dropRight":s-=$;break;case"take":s=ln(s,r+$);break;case"takeRight":r=en(r,s-$);break}}return{start:r,end:s}}function ix(r){var s=r.match(pn);return s?s[1].split(M):[]}function _g(r,s,c){s=si(s,r);for(var m=-1,T=s.length,R=!1;++m<T;){var $=Ar(s[m]);if(!(R=r!=null&&c(r,$)))break;r=r[$]}return R||++m!=T?R:(T=r==null?0:r.length,!!T&&wu(T)&&Lr($,T)&&(Ke(r)||Di(r)))}function sx(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&xt.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function kg(r){return typeof r.constructor=="function"&&!_o(r)?Ss(Ka(r)):{}}function ox(r,s,c){var m=r.constructor;switch(s){case we:return Dl(r);case _e:case De:return new m(+r);case Te:return qE(r,c);case ut:case O:case y:case w:case L:case V:case G:case ee:case Ue:return cg(r,c);case Lt:return new m;case Nt:case he:return new m(r);case ke:return WE(r);case Pe:return new m;case At:return KE(r)}}function ax(r,s){var c=s.length;if(!c)return r;var m=c-1;return s[m]=(c>1?"& ":"")+s[m],s=s.join(c>2?", ":" "),r.replace(co,`{
143
+ */ea.exports,function(e,t){(function(){var n,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,g="__lodash_placeholder__",p=1,v=2,C=4,A=1,E=2,b=1,B=2,N=4,_=8,k=16,F=32,R=64,O=128,W=256,J=512,le=30,ce="...",ge=800,ye=16,he=1,me=2,Le=3,ke=1/0,xe=9007199254740991,tt=17976931348623157e292,Ae=NaN,Se=4294967295,We=Se-1,Y=Se>>>1,Q=[["ary",O],["bind",b],["bindKey",B],["curry",_],["curryRight",k],["flip",J],["partial",F],["partialRight",R],["rearg",W]],ue="[object Arguments]",De="[object Array]",Ye="[object AsyncFunction]",Te="[object Boolean]",Re="[object Date]",Oe="[object DOMException]",Ne="[object Error]",kt="[object Function]",nn="[object GeneratorFunction]",Lt="[object Map]",Pt="[object Number]",Nt="[object Null]",wt="[object Object]",kn="[object Promise]",Sn="[object Proxy]",Ce="[object RegExp]",Be="[object Set]",pe="[object String]",At="[object Symbol]",xt="[object Undefined]",vt="[object WeakMap]",rt="[object WeakSet]",we="[object ArrayBuffer]",_e="[object DataView]",ut="[object Float32Array]",I="[object Float64Array]",y="[object Int8Array]",w="[object Int16Array]",P="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",ee="[object Uint16Array]",Me="[object Uint32Array]",pt=/\b__p \+= '';/g,ct=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39);/g,Jr=/[&<>"']/g,Ai=RegExp(st.source),us=RegExp(Jr.source),cs=/<%-([\s\S]+?)%>/g,ls=/<%([\s\S]+?)%>/g,Yr=/<%=([\s\S]+?)%>/g,Ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/,oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Or=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(Or.source),Xr=/^\s+/,ao=/\s/,uo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,be=/[()=,{}\[\]\/\s]/,Fe=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,nt=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Ft=/^0o[0-7]+$/i,Dt=/^(?:0|[1-9]\d*)$/,cn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,sr=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",xi="\\u0300-\\u036f",co="\\ufe20-\\ufe2f",lo="\\u20d0-\\u20ff",ka=xi+co+lo,Ta="\\u2700-\\u27bf",Ia="a-z\\xdf-\\xf6\\xf8-\\xff",zc="\\xac\\xb1\\xd7\\xf7",Gc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jc="\\u2000-\\u206f",Yc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",In="A-Z\\xc0-\\xd6\\xd8-\\xde",fs="\\ufe0e\\ufe0f",fo=zc+Gc+Jc+Yc,hs="['’]",Xc="["+Ht+"]",Qr="["+fo+"]",ds="["+ka+"]",Oa="\\d+",Fa="["+Ta+"]",Ba="["+Ia+"]",Da="[^"+Ht+fo+Oa+Ta+Ia+In+"]",h="\\ud83c[\\udffb-\\udfff]",x="(?:"+ds+"|"+h+")",j="[^"+Ht+"]",H="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",de="["+In+"]",Ke="\\u200d",yt="(?:"+Ba+"|"+Da+")",Qt="(?:"+de+"|"+Da+")",Kt="(?:"+hs+"(?:d|ll|m|re|s|t|ve))?",Qp="(?:"+hs+"(?:D|LL|M|RE|S|T|VE))?",Zp=x+"?",e0="["+fs+"]?",IS="(?:"+Ke+"(?:"+[j,H,ne].join("|")+")"+e0+Zp+")*",OS="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",t0=e0+Zp+IS,BS="(?:"+[Fa,H,ne].join("|")+")"+t0,DS="(?:"+[j+ds+"?",ds,H,ne,Xc].join("|")+")",RS=RegExp(hs,"g"),LS=RegExp(ds,"g"),Qc=RegExp(h+"(?="+h+")|"+DS+t0,"g"),PS=RegExp([de+"?"+Ba+"+"+Kt+"(?="+[Qr,de,"$"].join("|")+")",Qt+"+"+Qp+"(?="+[Qr,de+yt,"$"].join("|")+")",de+"?"+yt+"+"+Kt,de+"+"+Qp,FS,OS,Oa,BS].join("|"),"g"),NS=RegExp("["+Ke+Ht+ka+fs+"]"),jS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$S=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],MS=-1,Bt={};Bt[ut]=Bt[I]=Bt[y]=Bt[w]=Bt[P]=Bt[V]=Bt[G]=Bt[ee]=Bt[Me]=!0,Bt[ue]=Bt[De]=Bt[we]=Bt[Te]=Bt[_e]=Bt[Re]=Bt[Ne]=Bt[kt]=Bt[Lt]=Bt[Pt]=Bt[wt]=Bt[Ce]=Bt[Be]=Bt[pe]=Bt[vt]=!1;var Tt={};Tt[ue]=Tt[De]=Tt[we]=Tt[_e]=Tt[Te]=Tt[Re]=Tt[ut]=Tt[I]=Tt[y]=Tt[w]=Tt[P]=Tt[Lt]=Tt[Pt]=Tt[wt]=Tt[Ce]=Tt[Be]=Tt[pe]=Tt[At]=Tt[V]=Tt[G]=Tt[ee]=Tt[Me]=!0,Tt[Ne]=Tt[kt]=Tt[vt]=!1;var US={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},VS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},WS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HS=parseFloat,KS=parseInt,n0=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,zS=typeof self=="object"&&self&&self.Object===Object&&self,an=n0||zS||Function("return this")(),Zc=t&&!t.nodeType&&t,Ci=Zc&&!0&&e&&!e.nodeType&&e,r0=Ci&&Ci.exports===Zc,el=r0&&n0.process,qn=function(){try{var K=Ci&&Ci.require&&Ci.require("util").types;return K||el&&el.binding&&el.binding("util")}catch{}}(),i0=qn&&qn.isArrayBuffer,s0=qn&&qn.isDate,o0=qn&&qn.isMap,a0=qn&&qn.isRegExp,u0=qn&&qn.isSet,c0=qn&&qn.isTypedArray;function On(K,te,X){switch(X.length){case 0:return K.call(te);case 1:return K.call(te,X[0]);case 2:return K.call(te,X[0],X[1]);case 3:return K.call(te,X[0],X[1],X[2])}return K.apply(te,X)}function GS(K,te,X,Ee){for(var Ve=-1,mt=K==null?0:K.length;++Ve<mt;){var Zt=K[Ve];te(Ee,Zt,X(Zt),K)}return Ee}function Wn(K,te){for(var X=-1,Ee=K==null?0:K.length;++X<Ee&&te(K[X],X,K)!==!1;);return K}function JS(K,te){for(var X=K==null?0:K.length;X--&&te(K[X],X,K)!==!1;);return K}function l0(K,te){for(var X=-1,Ee=K==null?0:K.length;++X<Ee;)if(!te(K[X],X,K))return!1;return!0}function Zr(K,te){for(var X=-1,Ee=K==null?0:K.length,Ve=0,mt=[];++X<Ee;){var Zt=K[X];te(Zt,X,K)&&(mt[Ve++]=Zt)}return mt}function Ra(K,te){var X=K==null?0:K.length;return!!X&&ps(K,te,0)>-1}function tl(K,te,X){for(var Ee=-1,Ve=K==null?0:K.length;++Ee<Ve;)if(X(te,K[Ee]))return!0;return!1}function Rt(K,te){for(var X=-1,Ee=K==null?0:K.length,Ve=Array(Ee);++X<Ee;)Ve[X]=te(K[X],X,K);return Ve}function ei(K,te){for(var X=-1,Ee=te.length,Ve=K.length;++X<Ee;)K[Ve+X]=te[X];return K}function nl(K,te,X,Ee){var Ve=-1,mt=K==null?0:K.length;for(Ee&&mt&&(X=K[++Ve]);++Ve<mt;)X=te(X,K[Ve],Ve,K);return X}function YS(K,te,X,Ee){var Ve=K==null?0:K.length;for(Ee&&Ve&&(X=K[--Ve]);Ve--;)X=te(X,K[Ve],Ve,K);return X}function rl(K,te){for(var X=-1,Ee=K==null?0:K.length;++X<Ee;)if(te(K[X],X,K))return!0;return!1}var XS=il("length");function QS(K){return K.split("")}function ZS(K){return K.match(fe)||[]}function f0(K,te,X){var Ee;return X(K,function(Ve,mt,Zt){if(te(Ve,mt,Zt))return Ee=mt,!1}),Ee}function La(K,te,X,Ee){for(var Ve=K.length,mt=X+(Ee?1:-1);Ee?mt--:++mt<Ve;)if(te(K[mt],mt,K))return mt;return-1}function ps(K,te,X){return te===te?fA(K,te,X):La(K,h0,X)}function eA(K,te,X,Ee){for(var Ve=X-1,mt=K.length;++Ve<mt;)if(Ee(K[Ve],te))return Ve;return-1}function h0(K){return K!==K}function d0(K,te){var X=K==null?0:K.length;return X?ol(K,te)/X:Ae}function il(K){return function(te){return te==null?n:te[K]}}function sl(K){return function(te){return K==null?n:K[te]}}function p0(K,te,X,Ee,Ve){return Ve(K,function(mt,Zt,Ct){X=Ee?(Ee=!1,mt):te(X,mt,Zt,Ct)}),X}function tA(K,te){var X=K.length;for(K.sort(te);X--;)K[X]=K[X].value;return K}function ol(K,te){for(var X,Ee=-1,Ve=K.length;++Ee<Ve;){var mt=te(K[Ee]);mt!==n&&(X=X===n?mt:X+mt)}return X}function al(K,te){for(var X=-1,Ee=Array(K);++X<K;)Ee[X]=te(X);return Ee}function nA(K,te){return Rt(te,function(X){return[X,K[X]]})}function g0(K){return K&&K.slice(0,b0(K)+1).replace(Xr,"")}function Fn(K){return function(te){return K(te)}}function ul(K,te){return Rt(te,function(X){return K[X]})}function ho(K,te){return K.has(te)}function y0(K,te){for(var X=-1,Ee=K.length;++X<Ee&&ps(te,K[X],0)>-1;);return X}function m0(K,te){for(var X=K.length;X--&&ps(te,K[X],0)>-1;);return X}function rA(K,te){for(var X=K.length,Ee=0;X--;)K[X]===te&&++Ee;return Ee}var iA=sl(US),sA=sl(VS);function oA(K){return"\\"+WS[K]}function aA(K,te){return K==null?n:K[te]}function gs(K){return NS.test(K)}function uA(K){return jS.test(K)}function cA(K){for(var te,X=[];!(te=K.next()).done;)X.push(te.value);return X}function cl(K){var te=-1,X=Array(K.size);return K.forEach(function(Ee,Ve){X[++te]=[Ve,Ee]}),X}function w0(K,te){return function(X){return K(te(X))}}function ti(K,te){for(var X=-1,Ee=K.length,Ve=0,mt=[];++X<Ee;){var Zt=K[X];(Zt===te||Zt===g)&&(K[X]=g,mt[Ve++]=X)}return mt}function Pa(K){var te=-1,X=Array(K.size);return K.forEach(function(Ee){X[++te]=Ee}),X}function lA(K){var te=-1,X=Array(K.size);return K.forEach(function(Ee){X[++te]=[Ee,Ee]}),X}function fA(K,te,X){for(var Ee=X-1,Ve=K.length;++Ee<Ve;)if(K[Ee]===te)return Ee;return-1}function hA(K,te,X){for(var Ee=X+1;Ee--;)if(K[Ee]===te)return Ee;return Ee}function ys(K){return gs(K)?pA(K):XS(K)}function or(K){return gs(K)?gA(K):QS(K)}function b0(K){for(var te=K.length;te--&&ao.test(K.charAt(te)););return te}var dA=sl(qS);function pA(K){for(var te=Qc.lastIndex=0;Qc.test(K);)++te;return te}function gA(K){return K.match(Qc)||[]}function yA(K){return K.match(PS)||[]}var mA=function K(te){te=te==null?an:ms.defaults(an.Object(),te,ms.pick(an,$S));var X=te.Array,Ee=te.Date,Ve=te.Error,mt=te.Function,Zt=te.Math,Ct=te.Object,ll=te.RegExp,wA=te.String,Hn=te.TypeError,Na=X.prototype,bA=mt.prototype,ws=Ct.prototype,ja=te["__core-js_shared__"],$a=bA.toString,St=ws.hasOwnProperty,vA=0,v0=function(){var r=/[^.]+$/.exec(ja&&ja.keys&&ja.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Ma=ws.toString,SA=$a.call(Ct),AA=an._,EA=ll("^"+$a.call(St).replace(Or,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ua=r0?te.Buffer:n,ni=te.Symbol,Va=te.Uint8Array,S0=Ua?Ua.allocUnsafe:n,qa=w0(Ct.getPrototypeOf,Ct),A0=Ct.create,E0=ws.propertyIsEnumerable,Wa=Na.splice,x0=ni?ni.isConcatSpreadable:n,po=ni?ni.iterator:n,_i=ni?ni.toStringTag:n,Ha=function(){try{var r=Fi(Ct,"defineProperty");return r({},"",{}),r}catch{}}(),xA=te.clearTimeout!==an.clearTimeout&&te.clearTimeout,CA=Ee&&Ee.now!==an.Date.now&&Ee.now,_A=te.setTimeout!==an.setTimeout&&te.setTimeout,Ka=Zt.ceil,za=Zt.floor,fl=Ct.getOwnPropertySymbols,kA=Ua?Ua.isBuffer:n,C0=te.isFinite,TA=Na.join,IA=w0(Ct.keys,Ct),en=Zt.max,ln=Zt.min,OA=Ee.now,FA=te.parseInt,_0=Zt.random,BA=Na.reverse,hl=Fi(te,"DataView"),go=Fi(te,"Map"),dl=Fi(te,"Promise"),bs=Fi(te,"Set"),yo=Fi(te,"WeakMap"),mo=Fi(Ct,"create"),Ga=yo&&new yo,vs={},DA=Bi(hl),RA=Bi(go),LA=Bi(dl),PA=Bi(bs),NA=Bi(yo),Ja=ni?ni.prototype:n,wo=Ja?Ja.valueOf:n,k0=Ja?Ja.toString:n;function D(r){if($t(r)&&!He(r)&&!(r instanceof ot)){if(r instanceof Kn)return r;if(St.call(r,"__wrapped__"))return Tg(r)}return new Kn(r)}var Ss=function(){function r(){}return function(s){if(!jt(s))return{};if(A0)return A0(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Ya(){}function Kn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}D.templateSettings={escape:cs,evaluate:ls,interpolate:Yr,variable:"",imports:{_:D}},D.prototype=Ya.prototype,D.prototype.constructor=D,Kn.prototype=Ss(Ya.prototype),Kn.prototype.constructor=Kn;function ot(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Se,this.__views__=[]}function jA(){var r=new ot(this.__wrapped__);return r.__actions__=An(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=An(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=An(this.__views__),r}function $A(){if(this.__filtered__){var r=new ot(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function MA(){var r=this.__wrapped__.value(),s=this.__dir__,c=He(r),m=s<0,T=c?r.length:0,L=QE(0,T,this.__views__),$=L.start,U=L.end,z=U-$,ie=m?U:$-1,se=this.__iteratees__,ae=se.length,ve=0,Ie=ln(z,this.__takeCount__);if(!c||!m&&T==z&&Ie==z)return X0(r,this.__actions__);var je=[];e:for(;z--&&ve<Ie;){ie+=s;for(var Qe=-1,$e=r[ie];++Qe<ae;){var it=se[Qe],at=it.iteratee,Rn=it.type,mn=at($e);if(Rn==me)$e=mn;else if(!mn){if(Rn==he)continue e;break e}}je[ve++]=$e}return je}ot.prototype=Ss(Ya.prototype),ot.prototype.constructor=ot;function ki(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function UA(){this.__data__=mo?mo(null):{},this.size=0}function VA(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function qA(r){var s=this.__data__;if(mo){var c=s[r];return c===f?n:c}return St.call(s,r)?s[r]:n}function WA(r){var s=this.__data__;return mo?s[r]!==n:St.call(s,r)}function HA(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=mo&&s===n?f:s,this}ki.prototype.clear=UA,ki.prototype.delete=VA,ki.prototype.get=qA,ki.prototype.has=WA,ki.prototype.set=HA;function Fr(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function KA(){this.__data__=[],this.size=0}function zA(r){var s=this.__data__,c=Xa(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Wa.call(s,c,1),--this.size,!0}function GA(r){var s=this.__data__,c=Xa(s,r);return c<0?n:s[c][1]}function JA(r){return Xa(this.__data__,r)>-1}function YA(r,s){var c=this.__data__,m=Xa(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Fr.prototype.clear=KA,Fr.prototype.delete=zA,Fr.prototype.get=GA,Fr.prototype.has=JA,Fr.prototype.set=YA;function Br(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function XA(){this.size=0,this.__data__={hash:new ki,map:new(go||Fr),string:new ki}}function QA(r){var s=cu(this,r).delete(r);return this.size-=s?1:0,s}function ZA(r){return cu(this,r).get(r)}function eE(r){return cu(this,r).has(r)}function tE(r,s){var c=cu(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Br.prototype.clear=XA,Br.prototype.delete=QA,Br.prototype.get=ZA,Br.prototype.has=eE,Br.prototype.set=tE;function Ti(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Br;++s<c;)this.add(r[s])}function nE(r){return this.__data__.set(r,f),this}function rE(r){return this.__data__.has(r)}Ti.prototype.add=Ti.prototype.push=nE,Ti.prototype.has=rE;function ar(r){var s=this.__data__=new Fr(r);this.size=s.size}function iE(){this.__data__=new Fr,this.size=0}function sE(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function oE(r){return this.__data__.get(r)}function aE(r){return this.__data__.has(r)}function uE(r,s){var c=this.__data__;if(c instanceof Fr){var m=c.__data__;if(!go||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new Br(m)}return c.set(r,s),this.size=c.size,this}ar.prototype.clear=iE,ar.prototype.delete=sE,ar.prototype.get=oE,ar.prototype.has=aE,ar.prototype.set=uE;function T0(r,s){var c=He(r),m=!c&&Di(r),T=!c&&!m&&ai(r),L=!c&&!m&&!T&&Cs(r),$=c||m||T||L,U=$?al(r.length,wA):[],z=U.length;for(var ie in r)(s||St.call(r,ie))&&!($&&(ie=="length"||T&&(ie=="offset"||ie=="parent")||L&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Pr(ie,z)))&&U.push(ie);return U}function I0(r){var s=r.length;return s?r[xl(0,s-1)]:n}function cE(r,s){return lu(An(r),Ii(s,0,r.length))}function lE(r){return lu(An(r))}function pl(r,s,c){(c!==n&&!ur(r[s],c)||c===n&&!(s in r))&&Dr(r,s,c)}function bo(r,s,c){var m=r[s];(!(St.call(r,s)&&ur(m,c))||c===n&&!(s in r))&&Dr(r,s,c)}function Xa(r,s){for(var c=r.length;c--;)if(ur(r[c][0],s))return c;return-1}function fE(r,s,c,m){return ri(r,function(T,L,$){s(m,T,c(T),$)}),m}function O0(r,s){return r&&vr(s,rn(s),r)}function hE(r,s){return r&&vr(s,xn(s),r)}function Dr(r,s,c){s=="__proto__"&&Ha?Ha(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function gl(r,s){for(var c=-1,m=s.length,T=X(m),L=r==null;++c<m;)T[c]=L?n:Jl(r,s[c]);return T}function Ii(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function zn(r,s,c,m,T,L){var $,U=s&p,z=s&v,ie=s&C;if(c&&($=T?c(r,m,T,L):c(r)),$!==n)return $;if(!jt(r))return r;var se=He(r);if(se){if($=ex(r),!U)return An(r,$)}else{var ae=fn(r),ve=ae==kt||ae==nn;if(ai(r))return eg(r,U);if(ae==wt||ae==ue||ve&&!T){if($=z||ve?{}:bg(r),!U)return z?qE(r,hE($,r)):VE(r,O0($,r))}else{if(!Tt[ae])return T?r:{};$=tx(r,ae,U)}}L||(L=new ar);var Ie=L.get(r);if(Ie)return Ie;L.set(r,$),Gg(r)?r.forEach(function($e){$.add(zn($e,s,c,$e,r,L))}):Kg(r)&&r.forEach(function($e,it){$.set(it,zn($e,s,c,it,r,L))});var je=ie?z?Ll:Rl:z?xn:rn,Qe=se?n:je(r);return Wn(Qe||r,function($e,it){Qe&&(it=$e,$e=r[it]),bo($,it,zn($e,s,c,it,r,L))}),$}function dE(r){var s=rn(r);return function(c){return F0(c,r,s)}}function F0(r,s,c){var m=c.length;if(r==null)return!m;for(r=Ct(r);m--;){var T=c[m],L=s[T],$=r[T];if($===n&&!(T in r)||!L($))return!1}return!0}function B0(r,s,c){if(typeof r!="function")throw new Hn(u);return _o(function(){r.apply(n,c)},s)}function vo(r,s,c,m){var T=-1,L=Ra,$=!0,U=r.length,z=[],ie=s.length;if(!U)return z;c&&(s=Rt(s,Fn(c))),m?(L=tl,$=!1):s.length>=o&&(L=ho,$=!1,s=new Ti(s));e:for(;++T<U;){var se=r[T],ae=c==null?se:c(se);if(se=m||se!==0?se:0,$&&ae===ae){for(var ve=ie;ve--;)if(s[ve]===ae)continue e;z.push(se)}else L(s,ae,m)||z.push(se)}return z}var ri=sg(br),D0=sg(ml,!0);function pE(r,s){var c=!0;return ri(r,function(m,T,L){return c=!!s(m,T,L),c}),c}function Qa(r,s,c){for(var m=-1,T=r.length;++m<T;){var L=r[m],$=s(L);if($!=null&&(U===n?$===$&&!Dn($):c($,U)))var U=$,z=L}return z}function gE(r,s,c,m){var T=r.length;for(c=ze(c),c<0&&(c=-c>T?0:T+c),m=m===n||m>T?T:ze(m),m<0&&(m+=T),m=c>m?0:Yg(m);c<m;)r[c++]=s;return r}function R0(r,s){var c=[];return ri(r,function(m,T,L){s(m,T,L)&&c.push(m)}),c}function un(r,s,c,m,T){var L=-1,$=r.length;for(c||(c=rx),T||(T=[]);++L<$;){var U=r[L];s>0&&c(U)?s>1?un(U,s-1,c,m,T):ei(T,U):m||(T[T.length]=U)}return T}var yl=og(),L0=og(!0);function br(r,s){return r&&yl(r,s,rn)}function ml(r,s){return r&&L0(r,s,rn)}function Za(r,s){return Zr(s,function(c){return Nr(r[c])})}function Oi(r,s){s=si(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[Sr(s[c++])];return c&&c==m?r:n}function P0(r,s,c){var m=s(r);return He(r)?m:ei(m,c(r))}function gn(r){return r==null?r===n?xt:Nt:_i&&_i in Ct(r)?XE(r):lx(r)}function wl(r,s){return r>s}function yE(r,s){return r!=null&&St.call(r,s)}function mE(r,s){return r!=null&&s in Ct(r)}function wE(r,s,c){return r>=ln(s,c)&&r<en(s,c)}function bl(r,s,c){for(var m=c?tl:Ra,T=r[0].length,L=r.length,$=L,U=X(L),z=1/0,ie=[];$--;){var se=r[$];$&&s&&(se=Rt(se,Fn(s))),z=ln(se.length,z),U[$]=!c&&(s||T>=120&&se.length>=120)?new Ti($&&se):n}se=r[0];var ae=-1,ve=U[0];e:for(;++ae<T&&ie.length<z;){var Ie=se[ae],je=s?s(Ie):Ie;if(Ie=c||Ie!==0?Ie:0,!(ve?ho(ve,je):m(ie,je,c))){for($=L;--$;){var Qe=U[$];if(!(Qe?ho(Qe,je):m(r[$],je,c)))continue e}ve&&ve.push(je),ie.push(Ie)}}return ie}function bE(r,s,c,m){return br(r,function(T,L,$){s(m,c(T),L,$)}),m}function So(r,s,c){s=si(s,r),r=Eg(r,s);var m=r==null?r:r[Sr(Jn(s))];return m==null?n:On(m,r,c)}function N0(r){return $t(r)&&gn(r)==ue}function vE(r){return $t(r)&&gn(r)==we}function SE(r){return $t(r)&&gn(r)==Re}function Ao(r,s,c,m,T){return r===s?!0:r==null||s==null||!$t(r)&&!$t(s)?r!==r&&s!==s:AE(r,s,c,m,Ao,T)}function AE(r,s,c,m,T,L){var $=He(r),U=He(s),z=$?De:fn(r),ie=U?De:fn(s);z=z==ue?wt:z,ie=ie==ue?wt:ie;var se=z==wt,ae=ie==wt,ve=z==ie;if(ve&&ai(r)){if(!ai(s))return!1;$=!0,se=!1}if(ve&&!se)return L||(L=new ar),$||Cs(r)?yg(r,s,c,m,T,L):JE(r,s,z,c,m,T,L);if(!(c&A)){var Ie=se&&St.call(r,"__wrapped__"),je=ae&&St.call(s,"__wrapped__");if(Ie||je){var Qe=Ie?r.value():r,$e=je?s.value():s;return L||(L=new ar),T(Qe,$e,c,m,L)}}return ve?(L||(L=new ar),YE(r,s,c,m,T,L)):!1}function EE(r){return $t(r)&&fn(r)==Lt}function vl(r,s,c,m){var T=c.length,L=T,$=!m;if(r==null)return!L;for(r=Ct(r);T--;){var U=c[T];if($&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++T<L;){U=c[T];var z=U[0],ie=r[z],se=U[1];if($&&U[2]){if(ie===n&&!(z in r))return!1}else{var ae=new ar;if(m)var ve=m(ie,se,z,r,s,ae);if(!(ve===n?Ao(se,ie,A|E,m,ae):ve))return!1}}return!0}function j0(r){if(!jt(r)||sx(r))return!1;var s=Nr(r)?EA:Xt;return s.test(Bi(r))}function xE(r){return $t(r)&&gn(r)==Ce}function CE(r){return $t(r)&&fn(r)==Be}function _E(r){return $t(r)&&yu(r.length)&&!!Bt[gn(r)]}function $0(r){return typeof r=="function"?r:r==null?Cn:typeof r=="object"?He(r)?V0(r[0],r[1]):U0(r):a1(r)}function Sl(r){if(!Co(r))return IA(r);var s=[];for(var c in Ct(r))St.call(r,c)&&c!="constructor"&&s.push(c);return s}function kE(r){if(!jt(r))return cx(r);var s=Co(r),c=[];for(var m in r)m=="constructor"&&(s||!St.call(r,m))||c.push(m);return c}function Al(r,s){return r<s}function M0(r,s){var c=-1,m=En(r)?X(r.length):[];return ri(r,function(T,L,$){m[++c]=s(T,L,$)}),m}function U0(r){var s=Nl(r);return s.length==1&&s[0][2]?Sg(s[0][0],s[0][1]):function(c){return c===r||vl(c,r,s)}}function V0(r,s){return $l(r)&&vg(s)?Sg(Sr(r),s):function(c){var m=Jl(c,r);return m===n&&m===s?Yl(c,r):Ao(s,m,A|E)}}function eu(r,s,c,m,T){r!==s&&yl(s,function(L,$){if(T||(T=new ar),jt(L))TE(r,s,$,c,eu,m,T);else{var U=m?m(Ul(r,$),L,$+"",r,s,T):n;U===n&&(U=L),pl(r,$,U)}},xn)}function TE(r,s,c,m,T,L,$){var U=Ul(r,c),z=Ul(s,c),ie=$.get(z);if(ie){pl(r,c,ie);return}var se=L?L(U,z,c+"",r,s,$):n,ae=se===n;if(ae){var ve=He(z),Ie=!ve&&ai(z),je=!ve&&!Ie&&Cs(z);se=z,ve||Ie||je?He(U)?se=U:zt(U)?se=An(U):Ie?(ae=!1,se=eg(z,!0)):je?(ae=!1,se=tg(z,!0)):se=[]:ko(z)||Di(z)?(se=U,Di(U)?se=Xg(U):(!jt(U)||Nr(U))&&(se=bg(z))):ae=!1}ae&&($.set(z,se),T(se,z,m,L,$),$.delete(z)),pl(r,c,se)}function q0(r,s){var c=r.length;if(c)return s+=s<0?c:0,Pr(s,c)?r[s]:n}function W0(r,s,c){s.length?s=Rt(s,function(L){return He(L)?function($){return Oi($,L.length===1?L[0]:L)}:L}):s=[Cn];var m=-1;s=Rt(s,Fn(Pe()));var T=M0(r,function(L,$,U){var z=Rt(s,function(ie){return ie(L)});return{criteria:z,index:++m,value:L}});return tA(T,function(L,$){return UE(L,$,c)})}function IE(r,s){return H0(r,s,function(c,m){return Yl(r,m)})}function H0(r,s,c){for(var m=-1,T=s.length,L={};++m<T;){var $=s[m],U=Oi(r,$);c(U,$)&&Eo(L,si($,r),U)}return L}function OE(r){return function(s){return Oi(s,r)}}function El(r,s,c,m){var T=m?eA:ps,L=-1,$=s.length,U=r;for(r===s&&(s=An(s)),c&&(U=Rt(r,Fn(c)));++L<$;)for(var z=0,ie=s[L],se=c?c(ie):ie;(z=T(U,se,z,m))>-1;)U!==r&&Wa.call(U,z,1),Wa.call(r,z,1);return r}function K0(r,s){for(var c=r?s.length:0,m=c-1;c--;){var T=s[c];if(c==m||T!==L){var L=T;Pr(T)?Wa.call(r,T,1):kl(r,T)}}return r}function xl(r,s){return r+za(_0()*(s-r+1))}function FE(r,s,c,m){for(var T=-1,L=en(Ka((s-r)/(c||1)),0),$=X(L);L--;)$[m?L:++T]=r,r+=c;return $}function Cl(r,s){var c="";if(!r||s<1||s>xe)return c;do s%2&&(c+=r),s=za(s/2),s&&(r+=r);while(s);return c}function Ze(r,s){return Vl(Ag(r,s,Cn),r+"")}function BE(r){return I0(_s(r))}function DE(r,s){var c=_s(r);return lu(c,Ii(s,0,c.length))}function Eo(r,s,c,m){if(!jt(r))return r;s=si(s,r);for(var T=-1,L=s.length,$=L-1,U=r;U!=null&&++T<L;){var z=Sr(s[T]),ie=c;if(z==="__proto__"||z==="constructor"||z==="prototype")return r;if(T!=$){var se=U[z];ie=m?m(se,z,U):n,ie===n&&(ie=jt(se)?se:Pr(s[T+1])?[]:{})}bo(U,z,ie),U=U[z]}return r}var z0=Ga?function(r,s){return Ga.set(r,s),r}:Cn,RE=Ha?function(r,s){return Ha(r,"toString",{configurable:!0,enumerable:!1,value:Ql(s),writable:!0})}:Cn;function LE(r){return lu(_s(r))}function Gn(r,s,c){var m=-1,T=r.length;s<0&&(s=-s>T?0:T+s),c=c>T?T:c,c<0&&(c+=T),T=s>c?0:c-s>>>0,s>>>=0;for(var L=X(T);++m<T;)L[m]=r[m+s];return L}function PE(r,s){var c;return ri(r,function(m,T,L){return c=s(m,T,L),!c}),!!c}function tu(r,s,c){var m=0,T=r==null?m:r.length;if(typeof s=="number"&&s===s&&T<=Y){for(;m<T;){var L=m+T>>>1,$=r[L];$!==null&&!Dn($)&&(c?$<=s:$<s)?m=L+1:T=L}return T}return _l(r,s,Cn,c)}function _l(r,s,c,m){var T=0,L=r==null?0:r.length;if(L===0)return 0;s=c(s);for(var $=s!==s,U=s===null,z=Dn(s),ie=s===n;T<L;){var se=za((T+L)/2),ae=c(r[se]),ve=ae!==n,Ie=ae===null,je=ae===ae,Qe=Dn(ae);if($)var $e=m||je;else ie?$e=je&&(m||ve):U?$e=je&&ve&&(m||!Ie):z?$e=je&&ve&&!Ie&&(m||!Qe):Ie||Qe?$e=!1:$e=m?ae<=s:ae<s;$e?T=se+1:L=se}return ln(L,We)}function G0(r,s){for(var c=-1,m=r.length,T=0,L=[];++c<m;){var $=r[c],U=s?s($):$;if(!c||!ur(U,z)){var z=U;L[T++]=$===0?0:$}}return L}function J0(r){return typeof r=="number"?r:Dn(r)?Ae:+r}function Bn(r){if(typeof r=="string")return r;if(He(r))return Rt(r,Bn)+"";if(Dn(r))return k0?k0.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ii(r,s,c){var m=-1,T=Ra,L=r.length,$=!0,U=[],z=U;if(c)$=!1,T=tl;else if(L>=o){var ie=s?null:zE(r);if(ie)return Pa(ie);$=!1,T=ho,z=new Ti}else z=s?[]:U;e:for(;++m<L;){var se=r[m],ae=s?s(se):se;if(se=c||se!==0?se:0,$&&ae===ae){for(var ve=z.length;ve--;)if(z[ve]===ae)continue e;s&&z.push(ae),U.push(se)}else T(z,ae,c)||(z!==U&&z.push(ae),U.push(se))}return U}function kl(r,s){return s=si(s,r),r=Eg(r,s),r==null||delete r[Sr(Jn(s))]}function Y0(r,s,c,m){return Eo(r,s,c(Oi(r,s)),m)}function nu(r,s,c,m){for(var T=r.length,L=m?T:-1;(m?L--:++L<T)&&s(r[L],L,r););return c?Gn(r,m?0:L,m?L+1:T):Gn(r,m?L+1:0,m?T:L)}function X0(r,s){var c=r;return c instanceof ot&&(c=c.value()),nl(s,function(m,T){return T.func.apply(T.thisArg,ei([m],T.args))},c)}function Tl(r,s,c){var m=r.length;if(m<2)return m?ii(r[0]):[];for(var T=-1,L=X(m);++T<m;)for(var $=r[T],U=-1;++U<m;)U!=T&&(L[T]=vo(L[T]||$,r[U],s,c));return ii(un(L,1),s,c)}function Q0(r,s,c){for(var m=-1,T=r.length,L=s.length,$={};++m<T;){var U=m<L?s[m]:n;c($,r[m],U)}return $}function Il(r){return zt(r)?r:[]}function Ol(r){return typeof r=="function"?r:Cn}function si(r,s){return He(r)?r:$l(r,s)?[r]:kg(bt(r))}var NE=Ze;function oi(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var Z0=xA||function(r){return an.clearTimeout(r)};function eg(r,s){if(s)return r.slice();var c=r.length,m=S0?S0(c):new r.constructor(c);return r.copy(m),m}function Fl(r){var s=new r.constructor(r.byteLength);return new Va(s).set(new Va(r)),s}function jE(r,s){var c=s?Fl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function $E(r){var s=new r.constructor(r.source,ft.exec(r));return s.lastIndex=r.lastIndex,s}function ME(r){return wo?Ct(wo.call(r)):{}}function tg(r,s){var c=s?Fl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function ng(r,s){if(r!==s){var c=r!==n,m=r===null,T=r===r,L=Dn(r),$=s!==n,U=s===null,z=s===s,ie=Dn(s);if(!U&&!ie&&!L&&r>s||L&&$&&z&&!U&&!ie||m&&$&&z||!c&&z||!T)return 1;if(!m&&!L&&!ie&&r<s||ie&&c&&T&&!m&&!L||U&&c&&T||!$&&T||!z)return-1}return 0}function UE(r,s,c){for(var m=-1,T=r.criteria,L=s.criteria,$=T.length,U=c.length;++m<$;){var z=ng(T[m],L[m]);if(z){if(m>=U)return z;var ie=c[m];return z*(ie=="desc"?-1:1)}}return r.index-s.index}function rg(r,s,c,m){for(var T=-1,L=r.length,$=c.length,U=-1,z=s.length,ie=en(L-$,0),se=X(z+ie),ae=!m;++U<z;)se[U]=s[U];for(;++T<$;)(ae||T<L)&&(se[c[T]]=r[T]);for(;ie--;)se[U++]=r[T++];return se}function ig(r,s,c,m){for(var T=-1,L=r.length,$=-1,U=c.length,z=-1,ie=s.length,se=en(L-U,0),ae=X(se+ie),ve=!m;++T<se;)ae[T]=r[T];for(var Ie=T;++z<ie;)ae[Ie+z]=s[z];for(;++$<U;)(ve||T<L)&&(ae[Ie+c[$]]=r[T++]);return ae}function An(r,s){var c=-1,m=r.length;for(s||(s=X(m));++c<m;)s[c]=r[c];return s}function vr(r,s,c,m){var T=!c;c||(c={});for(var L=-1,$=s.length;++L<$;){var U=s[L],z=m?m(c[U],r[U],U,c,r):n;z===n&&(z=r[U]),T?Dr(c,U,z):bo(c,U,z)}return c}function VE(r,s){return vr(r,jl(r),s)}function qE(r,s){return vr(r,mg(r),s)}function ru(r,s){return function(c,m){var T=He(c)?GS:fE,L=s?s():{};return T(c,r,Pe(m,2),L)}}function As(r){return Ze(function(s,c){var m=-1,T=c.length,L=T>1?c[T-1]:n,$=T>2?c[2]:n;for(L=r.length>3&&typeof L=="function"?(T--,L):n,$&&yn(c[0],c[1],$)&&(L=T<3?n:L,T=1),s=Ct(s);++m<T;){var U=c[m];U&&r(s,U,m,L)}return s})}function sg(r,s){return function(c,m){if(c==null)return c;if(!En(c))return r(c,m);for(var T=c.length,L=s?T:-1,$=Ct(c);(s?L--:++L<T)&&m($[L],L,$)!==!1;);return c}}function og(r){return function(s,c,m){for(var T=-1,L=Ct(s),$=m(s),U=$.length;U--;){var z=$[r?U:++T];if(c(L[z],z,L)===!1)break}return s}}function WE(r,s,c){var m=s&b,T=xo(r);function L(){var $=this&&this!==an&&this instanceof L?T:r;return $.apply(m?c:this,arguments)}return L}function ag(r){return function(s){s=bt(s);var c=gs(s)?or(s):n,m=c?c[0]:s.charAt(0),T=c?oi(c,1).join(""):s.slice(1);return m[r]()+T}}function Es(r){return function(s){return nl(s1(i1(s).replace(RS,"")),r,"")}}function xo(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=Ss(r.prototype),m=r.apply(c,s);return jt(m)?m:c}}function HE(r,s,c){var m=xo(r);function T(){for(var L=arguments.length,$=X(L),U=L,z=xs(T);U--;)$[U]=arguments[U];var ie=L<3&&$[0]!==z&&$[L-1]!==z?[]:ti($,z);if(L-=ie.length,L<c)return hg(r,s,iu,T.placeholder,n,$,ie,n,n,c-L);var se=this&&this!==an&&this instanceof T?m:r;return On(se,this,$)}return T}function ug(r){return function(s,c,m){var T=Ct(s);if(!En(s)){var L=Pe(c,3);s=rn(s),c=function(U){return L(T[U],U,T)}}var $=r(s,c,m);return $>-1?T[L?s[$]:$]:n}}function cg(r){return Lr(function(s){var c=s.length,m=c,T=Kn.prototype.thru;for(r&&s.reverse();m--;){var L=s[m];if(typeof L!="function")throw new Hn(u);if(T&&!$&&uu(L)=="wrapper")var $=new Kn([],!0)}for(m=$?m:c;++m<c;){L=s[m];var U=uu(L),z=U=="wrapper"?Pl(L):n;z&&Ml(z[0])&&z[1]==(O|_|F|W)&&!z[4].length&&z[9]==1?$=$[uu(z[0])].apply($,z[3]):$=L.length==1&&Ml(L)?$[U]():$.thru(L)}return function(){var ie=arguments,se=ie[0];if($&&ie.length==1&&He(se))return $.plant(se).value();for(var ae=0,ve=c?s[ae].apply(this,ie):se;++ae<c;)ve=s[ae].call(this,ve);return ve}})}function iu(r,s,c,m,T,L,$,U,z,ie){var se=s&O,ae=s&b,ve=s&B,Ie=s&(_|k),je=s&J,Qe=ve?n:xo(r);function $e(){for(var it=arguments.length,at=X(it),Rn=it;Rn--;)at[Rn]=arguments[Rn];if(Ie)var mn=xs($e),Ln=rA(at,mn);if(m&&(at=rg(at,m,T,Ie)),L&&(at=ig(at,L,$,Ie)),it-=Ln,Ie&&it<ie){var Gt=ti(at,mn);return hg(r,s,iu,$e.placeholder,c,at,Gt,U,z,ie-it)}var cr=ae?c:this,$r=ve?cr[r]:r;return it=at.length,U?at=fx(at,U):je&&it>1&&at.reverse(),se&&z<it&&(at.length=z),this&&this!==an&&this instanceof $e&&($r=Qe||xo($r)),$r.apply(cr,at)}return $e}function lg(r,s){return function(c,m){return bE(c,r,s(m),{})}}function su(r,s){return function(c,m){var T;if(c===n&&m===n)return s;if(c!==n&&(T=c),m!==n){if(T===n)return m;typeof c=="string"||typeof m=="string"?(c=Bn(c),m=Bn(m)):(c=J0(c),m=J0(m)),T=r(c,m)}return T}}function Bl(r){return Lr(function(s){return s=Rt(s,Fn(Pe())),Ze(function(c){var m=this;return r(s,function(T){return On(T,m,c)})})})}function ou(r,s){s=s===n?" ":Bn(s);var c=s.length;if(c<2)return c?Cl(s,r):s;var m=Cl(s,Ka(r/ys(s)));return gs(s)?oi(or(m),0,r).join(""):m.slice(0,r)}function KE(r,s,c,m){var T=s&b,L=xo(r);function $(){for(var U=-1,z=arguments.length,ie=-1,se=m.length,ae=X(se+z),ve=this&&this!==an&&this instanceof $?L:r;++ie<se;)ae[ie]=m[ie];for(;z--;)ae[ie++]=arguments[++U];return On(ve,T?c:this,ae)}return $}function fg(r){return function(s,c,m){return m&&typeof m!="number"&&yn(s,c,m)&&(c=m=n),s=jr(s),c===n?(c=s,s=0):c=jr(c),m=m===n?s<c?1:-1:jr(m),FE(s,c,m,r)}}function au(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Yn(s),c=Yn(c)),r(s,c)}}function hg(r,s,c,m,T,L,$,U,z,ie){var se=s&_,ae=se?$:n,ve=se?n:$,Ie=se?L:n,je=se?n:L;s|=se?F:R,s&=~(se?R:F),s&N||(s&=-4);var Qe=[r,s,T,Ie,ae,je,ve,U,z,ie],$e=c.apply(n,Qe);return Ml(r)&&xg($e,Qe),$e.placeholder=m,Cg($e,r,s)}function Dl(r){var s=Zt[r];return function(c,m){if(c=Yn(c),m=m==null?0:ln(ze(m),292),m&&C0(c)){var T=(bt(c)+"e").split("e"),L=s(T[0]+"e"+(+T[1]+m));return T=(bt(L)+"e").split("e"),+(T[0]+"e"+(+T[1]-m))}return s(c)}}var zE=bs&&1/Pa(new bs([,-0]))[1]==ke?function(r){return new bs(r)}:tf;function dg(r){return function(s){var c=fn(s);return c==Lt?cl(s):c==Be?lA(s):nA(s,r(s))}}function Rr(r,s,c,m,T,L,$,U){var z=s&B;if(!z&&typeof r!="function")throw new Hn(u);var ie=m?m.length:0;if(ie||(s&=-97,m=T=n),$=$===n?$:en(ze($),0),U=U===n?U:ze(U),ie-=T?T.length:0,s&R){var se=m,ae=T;m=T=n}var ve=z?n:Pl(r),Ie=[r,s,c,m,T,se,ae,L,$,U];if(ve&&ux(Ie,ve),r=Ie[0],s=Ie[1],c=Ie[2],m=Ie[3],T=Ie[4],U=Ie[9]=Ie[9]===n?z?0:r.length:en(Ie[9]-ie,0),!U&&s&(_|k)&&(s&=-25),!s||s==b)var je=WE(r,s,c);else s==_||s==k?je=HE(r,s,U):(s==F||s==(b|F))&&!T.length?je=KE(r,s,c,m):je=iu.apply(n,Ie);var Qe=ve?z0:xg;return Cg(Qe(je,Ie),r,s)}function pg(r,s,c,m){return r===n||ur(r,ws[c])&&!St.call(m,c)?s:r}function gg(r,s,c,m,T,L){return jt(r)&&jt(s)&&(L.set(s,r),eu(r,s,n,gg,L),L.delete(s)),r}function GE(r){return ko(r)?n:r}function yg(r,s,c,m,T,L){var $=c&A,U=r.length,z=s.length;if(U!=z&&!($&&z>U))return!1;var ie=L.get(r),se=L.get(s);if(ie&&se)return ie==s&&se==r;var ae=-1,ve=!0,Ie=c&E?new Ti:n;for(L.set(r,s),L.set(s,r);++ae<U;){var je=r[ae],Qe=s[ae];if(m)var $e=$?m(Qe,je,ae,s,r,L):m(je,Qe,ae,r,s,L);if($e!==n){if($e)continue;ve=!1;break}if(Ie){if(!rl(s,function(it,at){if(!ho(Ie,at)&&(je===it||T(je,it,c,m,L)))return Ie.push(at)})){ve=!1;break}}else if(!(je===Qe||T(je,Qe,c,m,L))){ve=!1;break}}return L.delete(r),L.delete(s),ve}function JE(r,s,c,m,T,L,$){switch(c){case _e:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case we:return!(r.byteLength!=s.byteLength||!L(new Va(r),new Va(s)));case Te:case Re:case Pt:return ur(+r,+s);case Ne:return r.name==s.name&&r.message==s.message;case Ce:case pe:return r==s+"";case Lt:var U=cl;case Be:var z=m&A;if(U||(U=Pa),r.size!=s.size&&!z)return!1;var ie=$.get(r);if(ie)return ie==s;m|=E,$.set(r,s);var se=yg(U(r),U(s),m,T,L,$);return $.delete(r),se;case At:if(wo)return wo.call(r)==wo.call(s)}return!1}function YE(r,s,c,m,T,L){var $=c&A,U=Rl(r),z=U.length,ie=Rl(s),se=ie.length;if(z!=se&&!$)return!1;for(var ae=z;ae--;){var ve=U[ae];if(!($?ve in s:St.call(s,ve)))return!1}var Ie=L.get(r),je=L.get(s);if(Ie&&je)return Ie==s&&je==r;var Qe=!0;L.set(r,s),L.set(s,r);for(var $e=$;++ae<z;){ve=U[ae];var it=r[ve],at=s[ve];if(m)var Rn=$?m(at,it,ve,s,r,L):m(it,at,ve,r,s,L);if(!(Rn===n?it===at||T(it,at,c,m,L):Rn)){Qe=!1;break}$e||($e=ve=="constructor")}if(Qe&&!$e){var mn=r.constructor,Ln=s.constructor;mn!=Ln&&"constructor"in r&&"constructor"in s&&!(typeof mn=="function"&&mn instanceof mn&&typeof Ln=="function"&&Ln instanceof Ln)&&(Qe=!1)}return L.delete(r),L.delete(s),Qe}function Lr(r){return Vl(Ag(r,n,Fg),r+"")}function Rl(r){return P0(r,rn,jl)}function Ll(r){return P0(r,xn,mg)}var Pl=Ga?function(r){return Ga.get(r)}:tf;function uu(r){for(var s=r.name+"",c=vs[s],m=St.call(vs,s)?c.length:0;m--;){var T=c[m],L=T.func;if(L==null||L==r)return T.name}return s}function xs(r){var s=St.call(D,"placeholder")?D:r;return s.placeholder}function Pe(){var r=D.iteratee||Zl;return r=r===Zl?$0:r,arguments.length?r(arguments[0],arguments[1]):r}function cu(r,s){var c=r.__data__;return ix(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Nl(r){for(var s=rn(r),c=s.length;c--;){var m=s[c],T=r[m];s[c]=[m,T,vg(T)]}return s}function Fi(r,s){var c=aA(r,s);return j0(c)?c:n}function XE(r){var s=St.call(r,_i),c=r[_i];try{r[_i]=n;var m=!0}catch{}var T=Ma.call(r);return m&&(s?r[_i]=c:delete r[_i]),T}var jl=fl?function(r){return r==null?[]:(r=Ct(r),Zr(fl(r),function(s){return E0.call(r,s)}))}:nf,mg=fl?function(r){for(var s=[];r;)ei(s,jl(r)),r=qa(r);return s}:nf,fn=gn;(hl&&fn(new hl(new ArrayBuffer(1)))!=_e||go&&fn(new go)!=Lt||dl&&fn(dl.resolve())!=kn||bs&&fn(new bs)!=Be||yo&&fn(new yo)!=vt)&&(fn=function(r){var s=gn(r),c=s==wt?r.constructor:n,m=c?Bi(c):"";if(m)switch(m){case DA:return _e;case RA:return Lt;case LA:return kn;case PA:return Be;case NA:return vt}return s});function QE(r,s,c){for(var m=-1,T=c.length;++m<T;){var L=c[m],$=L.size;switch(L.type){case"drop":r+=$;break;case"dropRight":s-=$;break;case"take":s=ln(s,r+$);break;case"takeRight":r=en(r,s-$);break}}return{start:r,end:s}}function ZE(r){var s=r.match(pn);return s?s[1].split(M):[]}function wg(r,s,c){s=si(s,r);for(var m=-1,T=s.length,L=!1;++m<T;){var $=Sr(s[m]);if(!(L=r!=null&&c(r,$)))break;r=r[$]}return L||++m!=T?L:(T=r==null?0:r.length,!!T&&yu(T)&&Pr($,T)&&(He(r)||Di(r)))}function ex(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&St.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function bg(r){return typeof r.constructor=="function"&&!Co(r)?Ss(qa(r)):{}}function tx(r,s,c){var m=r.constructor;switch(s){case we:return Fl(r);case Te:case Re:return new m(+r);case _e:return jE(r,c);case ut:case I:case y:case w:case P:case V:case G:case ee:case Me:return tg(r,c);case Lt:return new m;case Pt:case pe:return new m(r);case Ce:return $E(r);case Be:return new m;case At:return ME(r)}}function nx(r,s){var c=s.length;if(!c)return r;var m=c-1;return s[m]=(c>1?"& ":"")+s[m],s=s.join(c>2?", ":" "),r.replace(uo,`{
144
144
  /* [wrapped with `+s+`] */
145
- `)}function ux(r){return Ke(r)||Di(r)||!!(B0&&r&&r[B0])}function Lr(r,s){var c=typeof r;return s=s??Ee,!!s&&(c=="number"||c!="symbol"&&Pt.test(r))&&r>-1&&r%1==0&&r<s}function yn(r,s,c){if(!$t(c))return!1;var m=typeof s;return(m=="number"?En(c)&&Lr(s,c.length):m=="string"&&s in c)?ur(c[s],r):!1}function Ul(r,s){if(Ke(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Dn(r)?!0:oo.test(r)||!Ei.test(r)||s!=null&&r in _t(s)}function cx(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Vl(r){var s=lu(r),c=D[s];if(typeof c!="function"||!(s in ot.prototype))return!1;if(r===c)return!0;var m=jl(c);return!!m&&r===m[0]}function lx(r){return!!T0&&T0 in r}var fx=Ma?Nr:of;function _o(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||bs;return r===c}function Tg(r){return r===r&&!$t(r)}function Og(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in _t(c))}}function hx(r){var s=yu(r,function(m){return c.size===h&&c.clear(),m}),c=s.cache;return s}function dx(r,s){var c=r[1],m=s[1],T=c|m,R=T<(b|B|I),$=m==I&&c==_||m==I&&c==W&&r[7].length<=s[8]||m==(I|W)&&s[7].length<=s[8]&&c==_;if(!(R||$))return r;m&b&&(r[2]=s[2],T|=c&b?0:N);var U=s[3];if(U){var z=r[3];r[3]=z?fg(z,U,s[4]):U,r[4]=z?ti(r[3],g):s[4]}return U=s[5],U&&(z=r[5],r[5]=z?hg(z,U,s[6]):U,r[6]=z?ti(r[5],g):s[6]),U=s[7],U&&(r[7]=U),m&I&&(r[8]=r[8]==null?s[8]:ln(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=T,r}function px(r){var s=[];if(r!=null)for(var c in _t(r))s.push(c);return s}function gx(r){return Va.call(r)}function Ig(r,s,c){return s=en(s===n?r.length-1:s,0),function(){for(var m=arguments,T=-1,R=en(m.length-s,0),$=X(R);++T<R;)$[T]=m[s+T];T=-1;for(var U=X(s+1);++T<s;)U[T]=m[T];return U[s]=c($),In(r,this,U)}}function Fg(r,s){return s.length<2?r:Ii(r,Gn(s,0,-1))}function yx(r,s){for(var c=r.length,m=ln(s.length,c),T=Sn(r);m--;){var R=s[m];r[m]=Lr(R,c)?T[R]:n}return r}function ql(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var Bg=Pg(tg),ko=FS||function(r,s){return an.setTimeout(r,s)},Wl=Pg($E);function Dg(r,s,c){var m=s+"";return Wl(r,ax(m,mx(ix(m),c)))}function Pg(r){var s=0,c=0;return function(){var m=RS(),T=ye-(m-c);if(c=m,T>0){if(++s>=ge)return arguments[0]}else s=0;return r.apply(n,arguments)}}function hu(r,s){var c=-1,m=r.length,T=m-1;for(s=s===n?m:s;++c<s;){var R=_l(c,T),$=r[R];r[R]=r[c],r[c]=$}return r.length=s,r}var Rg=hx(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(ao,function(c,m,T,R){s.push(T?R.replace(Fe,"$1"):m||c)}),s});function Ar(r){if(typeof r=="string"||Dn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Bi(r){if(r!=null){try{return Ua.call(r)}catch{}try{return r+""}catch{}}return""}function mx(r,s){return Wn(Q,function(c){var m="_."+c[0];s&c[1]&&!La(r,m)&&r.push(m)}),r.sort()}function Lg(r){if(r instanceof ot)return r.clone();var s=new Hn(r.__wrapped__,r.__chain__);return s.__actions__=Sn(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function wx(r,s,c){(c?yn(r,s,c):s===n)?s=1:s=en(Ge(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var T=0,R=0,$=X(Ga(m/s));T<m;)$[R++]=Gn(r,T,T+=s);return $}function bx(r){for(var s=-1,c=r==null?0:r.length,m=0,T=[];++s<c;){var R=r[s];R&&(T[m++]=R)}return T}function vx(){var r=arguments.length;if(!r)return[];for(var s=X(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return ei(Ke(c)?Sn(c):[c],un(s,1))}var Ax=Ze(function(r,s){return zt(r)?Ao(r,un(s,1,zt,!0)):[]}),Sx=Ze(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?Ao(r,un(s,1,zt,!0),Ne(c,2)):[]}),Ex=Ze(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?Ao(r,un(s,1,zt,!0),n,c):[]});function xx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),Gn(r,s<0?0:s,m)):[]}function Cx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),s=m-s,Gn(r,0,s<0?0:s)):[]}function _x(r,s){return r&&r.length?iu(r,Ne(s,3),!0,!0):[]}function kx(r,s){return r&&r.length?iu(r,Ne(s,3),!0):[]}function Tx(r,s,c,m){var T=r==null?0:r.length;return T?(c&&typeof c!="number"&&yn(r,s,c)&&(c=0,m=T),vE(r,s,c,m)):[]}function Ng(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=c==null?0:Ge(c);return T<0&&(T=en(m+T,0)),Na(r,Ne(s,3),T)}function jg(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=m-1;return c!==n&&(T=Ge(c),T=c<0?en(m+T,0):ln(T,m-1)),Na(r,Ne(s,3),T,!0)}function $g(r){var s=r==null?0:r.length;return s?un(r,1):[]}function Ox(r){var s=r==null?0:r.length;return s?un(r,Se):[]}function Ix(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:Ge(s),un(r,s)):[]}function Fx(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var T=r[s];m[T[0]]=T[1]}return m}function Mg(r){return r&&r.length?r[0]:n}function Bx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=c==null?0:Ge(c);return T<0&&(T=en(m+T,0)),gs(r,s,T)}function Dx(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var Px=Ze(function(r){var s=Rt(r,Fl);return s.length&&s[0]===r[0]?Al(s):[]}),Rx=Ze(function(r){var s=Jn(r),c=Rt(r,Fl);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?Al(c,Ne(s,2)):[]}),Lx=Ze(function(r){var s=Jn(r),c=Rt(r,Fl);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?Al(c,n,s):[]});function Nx(r,s){return r==null?"":DS.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function jx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=m;return c!==n&&(T=Ge(c),T=T<0?en(m+T,0):ln(T,m-1)),s===s?mS(r,s,T):Na(r,v0,T,!0)}function $x(r,s){return r&&r.length?X0(r,Ge(s)):n}var Mx=Ze(Ug);function Ug(r,s){return r&&r.length&&s&&s.length?Cl(r,s):r}function Ux(r,s,c){return r&&r.length&&s&&s.length?Cl(r,s,Ne(c,2)):r}function Vx(r,s,c){return r&&r.length&&s&&s.length?Cl(r,s,n,c):r}var qx=Rr(function(r,s){var c=r==null?0:r.length,m=ml(r,s);return eg(r,Rt(s,function(T){return Lr(T,c)?+T:T}).sort(lg)),m});function Wx(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,T=[],R=r.length;for(s=Ne(s,3);++m<R;){var $=r[m];s($,m,r)&&(c.push($),T.push(m))}return eg(r,T),c}function Kl(r){return r==null?r:NS.call(r)}function Kx(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&yn(r,s,c)?(s=0,c=m):(s=s==null?0:Ge(s),c=c===n?m:Ge(c)),Gn(r,s,c)):[]}function Hx(r,s){return ru(r,s)}function zx(r,s,c){return Tl(r,s,Ne(c,2))}function Gx(r,s){var c=r==null?0:r.length;if(c){var m=ru(r,s);if(m<c&&ur(r[m],s))return m}return-1}function Jx(r,s){return ru(r,s,!0)}function Yx(r,s,c){return Tl(r,s,Ne(c,2),!0)}function Xx(r,s){var c=r==null?0:r.length;if(c){var m=ru(r,s,!0)-1;if(ur(r[m],s))return m}return-1}function Qx(r){return r&&r.length?ng(r):[]}function Zx(r,s){return r&&r.length?ng(r,Ne(s,2)):[]}function eC(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function tC(r,s,c){return r&&r.length?(s=c||s===n?1:Ge(s),Gn(r,0,s<0?0:s)):[]}function nC(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),s=m-s,Gn(r,s<0?0:s,m)):[]}function rC(r,s){return r&&r.length?iu(r,Ne(s,3),!1,!0):[]}function iC(r,s){return r&&r.length?iu(r,Ne(s,3)):[]}var sC=Ze(function(r){return ii(un(r,1,zt,!0))}),oC=Ze(function(r){var s=Jn(r);return zt(s)&&(s=n),ii(un(r,1,zt,!0),Ne(s,2))}),aC=Ze(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,ii(un(r,1,zt,!0),n,s)});function uC(r){return r&&r.length?ii(r):[]}function cC(r,s){return r&&r.length?ii(r,Ne(s,2)):[]}function lC(r,s){return s=typeof s=="function"?s:n,r&&r.length?ii(r,n,s):[]}function Hl(r){if(!(r&&r.length))return[];var s=0;return r=Zr(r,function(c){if(zt(c))return s=en(c.length,s),!0}),cl(s,function(c){return Rt(r,ol(c))})}function Vg(r,s){if(!(r&&r.length))return[];var c=Hl(r);return s==null?c:Rt(c,function(m){return In(s,n,m)})}var fC=Ze(function(r,s){return zt(r)?Ao(r,s):[]}),hC=Ze(function(r){return Il(Zr(r,zt))}),dC=Ze(function(r){var s=Jn(r);return zt(s)&&(s=n),Il(Zr(r,zt),Ne(s,2))}),pC=Ze(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,Il(Zr(r,zt),n,s)}),gC=Ze(Hl);function yC(r,s){return og(r||[],s||[],vo)}function mC(r,s){return og(r||[],s||[],xo)}var wC=Ze(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,Vg(r,c)});function qg(r){var s=D(r);return s.__chain__=!0,s}function bC(r,s){return s(r),r}function du(r,s){return s(r)}var vC=Rr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,T=function(R){return ml(R,r)};return s>1||this.__actions__.length||!(m instanceof ot)||!Lr(c)?this.thru(T):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:du,args:[T],thisArg:n}),new Hn(m,this.__chain__).thru(function(R){return s&&!R.length&&R.push(n),R}))});function AC(){return qg(this)}function SC(){return new Hn(this.value(),this.__chain__)}function EC(){this.__values__===n&&(this.__values__=r1(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function xC(){return this}function CC(r){for(var s,c=this;c instanceof Qa;){var m=Lg(c);m.__index__=0,m.__values__=n,s?T.__wrapped__=m:s=m;var T=m;c=c.__wrapped__}return T.__wrapped__=r,s}function _C(){var r=this.__wrapped__;if(r instanceof ot){var s=r;return this.__actions__.length&&(s=new ot(this)),s=s.reverse(),s.__actions__.push({func:du,args:[Kl],thisArg:n}),new Hn(s,this.__chain__)}return this.thru(Kl)}function kC(){return sg(this.__wrapped__,this.__actions__)}var TC=su(function(r,s,c){xt.call(r,c)?++r[c]:Dr(r,c,1)});function OC(r,s,c){var m=Ke(r)?w0:bE;return c&&yn(r,s,c)&&(s=n),m(r,Ne(s,3))}function IC(r,s){var c=Ke(r)?Zr:V0;return c(r,Ne(s,3))}var FC=yg(Ng),BC=yg(jg);function DC(r,s){return un(pu(r,s),1)}function PC(r,s){return un(pu(r,s),Se)}function RC(r,s,c){return c=c===n?1:Ge(c),un(pu(r,s),c)}function Wg(r,s){var c=Ke(r)?Wn:ri;return c(r,Ne(s,3))}function Kg(r,s){var c=Ke(r)?eS:U0;return c(r,Ne(s,3))}var LC=su(function(r,s,c){xt.call(r,c)?r[c].push(s):Dr(r,c,[s])});function NC(r,s,c,m){r=En(r)?r:ks(r),c=c&&!m?Ge(c):0;var T=r.length;return c<0&&(c=en(T+c,0)),bu(r)?c<=T&&r.indexOf(s,c)>-1:!!T&&gs(r,s,c)>-1}var jC=Ze(function(r,s,c){var m=-1,T=typeof s=="function",R=En(r)?X(r.length):[];return ri(r,function($){R[++m]=T?In(s,$,c):So($,s,c)}),R}),$C=su(function(r,s,c){Dr(r,c,s)});function pu(r,s){var c=Ke(r)?Rt:G0;return c(r,Ne(s,3))}function MC(r,s,c,m){return r==null?[]:(Ke(s)||(s=s==null?[]:[s]),c=m?n:c,Ke(c)||(c=c==null?[]:[c]),Q0(r,s,c))}var UC=su(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function VC(r,s,c){var m=Ke(r)?il:S0,T=arguments.length<3;return m(r,Ne(s,4),c,T,ri)}function qC(r,s,c){var m=Ke(r)?tS:S0,T=arguments.length<3;return m(r,Ne(s,4),c,T,U0)}function WC(r,s){var c=Ke(r)?Zr:V0;return c(r,mu(Ne(s,3)))}function KC(r){var s=Ke(r)?N0:NE;return s(r)}function HC(r,s,c){(c?yn(r,s,c):s===n)?s=1:s=Ge(s);var m=Ke(r)?pE:jE;return m(r,s)}function zC(r){var s=Ke(r)?gE:ME;return s(r)}function GC(r){if(r==null)return 0;if(En(r))return bu(r)?ms(r):r.length;var s=fn(r);return s==Lt||s==Pe?r.size:El(r).length}function JC(r,s,c){var m=Ke(r)?sl:UE;return c&&yn(r,s,c)&&(s=n),m(r,Ne(s,3))}var YC=Ze(function(r,s){if(r==null)return[];var c=s.length;return c>1&&yn(r,s[0],s[1])?s=[]:c>2&&yn(s[0],s[1],s[2])&&(s=[s[0]]),Q0(r,un(s,1),[])}),gu=IS||function(){return an.Date.now()};function XC(r,s){if(typeof s!="function")throw new Kn(u);return r=Ge(r),function(){if(--r<1)return s.apply(this,arguments)}}function Hg(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Pr(r,I,n,n,n,n,s)}function zg(r,s){var c;if(typeof s!="function")throw new Kn(u);return r=Ge(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var zl=Ze(function(r,s,c){var m=b;if(c.length){var T=ti(c,Cs(zl));m|=F}return Pr(r,m,s,c,T)}),Gg=Ze(function(r,s,c){var m=b|B;if(c.length){var T=ti(c,Cs(Gg));m|=F}return Pr(s,m,r,c,T)});function Jg(r,s,c){s=c?n:s;var m=Pr(r,_,n,n,n,n,n,s);return m.placeholder=Jg.placeholder,m}function Yg(r,s,c){s=c?n:s;var m=Pr(r,k,n,n,n,n,n,s);return m.placeholder=Yg.placeholder,m}function Xg(r,s,c){var m,T,R,$,U,z,ie=0,se=!1,ue=!1,ve=!0;if(typeof r!="function")throw new Kn(u);s=Yn(s)||0,$t(c)&&(se=!!c.leading,ue="maxWait"in c,R=ue?en(Yn(c.maxWait)||0,s):R,ve="trailing"in c?!!c.trailing:ve);function Ie(Gt){var cr=m,$r=T;return m=T=n,ie=Gt,$=r.apply($r,cr),$}function je(Gt){return ie=Gt,U=ko(it,s),se?Ie(Gt):$}function Qe(Gt){var cr=Gt-z,$r=Gt-ie,y1=s-cr;return ue?ln(y1,R-$r):y1}function $e(Gt){var cr=Gt-z,$r=Gt-ie;return z===n||cr>=s||cr<0||ue&&$r>=R}function it(){var Gt=gu();if($e(Gt))return at(Gt);U=ko(it,Qe(Gt))}function at(Gt){return U=n,ve&&m?Ie(Gt):(m=T=n,$)}function Pn(){U!==n&&ag(U),ie=0,m=z=T=U=n}function mn(){return U===n?$:at(gu())}function Rn(){var Gt=gu(),cr=$e(Gt);if(m=arguments,T=this,z=Gt,cr){if(U===n)return je(z);if(ue)return ag(U),U=ko(it,s),Ie(z)}return U===n&&(U=ko(it,s)),$}return Rn.cancel=Pn,Rn.flush=mn,Rn}var QC=Ze(function(r,s){return M0(r,1,s)}),ZC=Ze(function(r,s,c){return M0(r,Yn(s)||0,c)});function e3(r){return Pr(r,J)}function yu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Kn(u);var c=function(){var m=arguments,T=s?s.apply(this,m):m[0],R=c.cache;if(R.has(T))return R.get(T);var $=r.apply(this,m);return c.cache=R.set(T,$)||R,$};return c.cache=new(yu.Cache||Br),c}yu.Cache=Br;function mu(r){if(typeof r!="function")throw new Kn(u);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function t3(r){return zg(2,r)}var n3=VE(function(r,s){s=s.length==1&&Ke(s[0])?Rt(s[0],Fn(Ne())):Rt(un(s,1),Fn(Ne()));var c=s.length;return Ze(function(m){for(var T=-1,R=ln(m.length,c);++T<R;)m[T]=s[T].call(this,m[T]);return In(r,this,m)})}),Gl=Ze(function(r,s){var c=ti(s,Cs(Gl));return Pr(r,F,n,s,c)}),Qg=Ze(function(r,s){var c=ti(s,Cs(Qg));return Pr(r,P,n,s,c)}),r3=Rr(function(r,s){return Pr(r,W,n,n,n,s)});function i3(r,s){if(typeof r!="function")throw new Kn(u);return s=s===n?s:Ge(s),Ze(r,s)}function s3(r,s){if(typeof r!="function")throw new Kn(u);return s=s==null?0:en(Ge(s),0),Ze(function(c){var m=c[s],T=oi(c,0,s);return m&&ei(T,m),In(r,this,T)})}function o3(r,s,c){var m=!0,T=!0;if(typeof r!="function")throw new Kn(u);return $t(c)&&(m="leading"in c?!!c.leading:m,T="trailing"in c?!!c.trailing:T),Xg(r,s,{leading:m,maxWait:s,trailing:T})}function a3(r){return Hg(r,1)}function u3(r,s){return Gl(Bl(s),r)}function c3(){if(!arguments.length)return[];var r=arguments[0];return Ke(r)?r:[r]}function l3(r){return zn(r,C)}function f3(r,s){return s=typeof s=="function"?s:n,zn(r,C,s)}function h3(r){return zn(r,p|C)}function d3(r,s){return s=typeof s=="function"?s:n,zn(r,p|C,s)}function p3(r,s){return s==null||$0(r,s,rn(s))}function ur(r,s){return r===s||r!==r&&s!==s}var g3=cu(vl),y3=cu(function(r,s){return r>=s}),Di=K0(function(){return arguments}())?K0:function(r){return Mt(r)&&xt.call(r,"callee")&&!F0.call(r,"callee")},Ke=X.isArray,m3=h0?Fn(h0):CE;function En(r){return r!=null&&wu(r.length)&&!Nr(r)}function zt(r){return Mt(r)&&En(r)}function w3(r){return r===!0||r===!1||Mt(r)&&gn(r)==_e}var ai=BS||of,b3=d0?Fn(d0):_E;function v3(r){return Mt(r)&&r.nodeType===1&&!To(r)}function A3(r){if(r==null)return!0;if(En(r)&&(Ke(r)||typeof r=="string"||typeof r.splice=="function"||ai(r)||_s(r)||Di(r)))return!r.length;var s=fn(r);if(s==Lt||s==Pe)return!r.size;if(_o(r))return!El(r).length;for(var c in r)if(xt.call(r,c))return!1;return!0}function S3(r,s){return Eo(r,s)}function E3(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?Eo(r,s,n,c):!!m}function Jl(r){if(!Mt(r))return!1;var s=gn(r);return s==Le||s==Oe||typeof r.message=="string"&&typeof r.name=="string"&&!To(r)}function x3(r){return typeof r=="number"&&D0(r)}function Nr(r){if(!$t(r))return!1;var s=gn(r);return s==Tt||s==nn||s==We||s==An}function Zg(r){return typeof r=="number"&&r==Ge(r)}function wu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Ee}function $t(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function Mt(r){return r!=null&&typeof r=="object"}var e1=p0?Fn(p0):TE;function C3(r,s){return r===s||Sl(r,s,$l(s))}function _3(r,s,c){return c=typeof c=="function"?c:n,Sl(r,s,$l(s),c)}function k3(r){return t1(r)&&r!=+r}function T3(r){if(fx(r))throw new Ve(a);return H0(r)}function O3(r){return r===null}function I3(r){return r==null}function t1(r){return typeof r=="number"||Mt(r)&&gn(r)==Nt}function To(r){if(!Mt(r)||gn(r)!=bt)return!1;var s=Ka(r);if(s===null)return!0;var c=xt.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&Ua.call(c)==_S}var Yl=g0?Fn(g0):OE;function F3(r){return Zg(r)&&r>=-9007199254740991&&r<=Ee}var n1=y0?Fn(y0):IE;function bu(r){return typeof r=="string"||!Ke(r)&&Mt(r)&&gn(r)==he}function Dn(r){return typeof r=="symbol"||Mt(r)&&gn(r)==At}var _s=m0?Fn(m0):FE;function B3(r){return r===n}function D3(r){return Mt(r)&&fn(r)==Et}function P3(r){return Mt(r)&&gn(r)==rt}var R3=cu(xl),L3=cu(function(r,s){return r<=s});function r1(r){if(!r)return[];if(En(r))return bu(r)?or(r):Sn(r);if(go&&r[go])return pS(r[go]());var s=fn(r),c=s==Lt?fl:s==Pe?ja:ks;return c(r)}function jr(r){if(!r)return r===0?r:0;if(r=Yn(r),r===Se||r===-1/0){var s=r<0?-1:1;return s*He}return r===r?r:0}function Ge(r){var s=jr(r),c=s%1;return s===s?c?s-c:s:0}function i1(r){return r?Oi(Ge(r),0,me):0}function Yn(r){if(typeof r=="number")return r;if(Dn(r))return Ae;if($t(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=$t(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=E0(r);var c=Xe.test(r);return c||Bt.test(r)?XA(r.slice(2),c?2:8):tt.test(r)?Ae:+r}function s1(r){return vr(r,xn(r))}function N3(r){return r?Oi(Ge(r),-9007199254740991,Ee):r===0?r:0}function vt(r){return r==null?"":Bn(r)}var j3=Es(function(r,s){if(_o(s)||En(s)){vr(s,rn(s),r);return}for(var c in s)xt.call(s,c)&&vo(r,c,s[c])}),o1=Es(function(r,s){vr(s,xn(s),r)}),vu=Es(function(r,s,c,m){vr(s,xn(s),r,m)}),$3=Es(function(r,s,c,m){vr(s,rn(s),r,m)}),M3=Rr(ml);function U3(r,s){var c=Ss(r);return s==null?c:j0(c,s)}var V3=Ze(function(r,s){r=_t(r);var c=-1,m=s.length,T=m>2?s[2]:n;for(T&&yn(s[0],s[1],T)&&(m=1);++c<m;)for(var R=s[c],$=xn(R),U=-1,z=$.length;++U<z;){var ie=$[U],se=r[ie];(se===n||ur(se,bs[ie])&&!xt.call(r,ie))&&(r[ie]=R[ie])}return r}),q3=Ze(function(r){return r.push(n,Eg),In(a1,n,r)});function W3(r,s){return b0(r,Ne(s,3),br)}function K3(r,s){return b0(r,Ne(s,3),bl)}function H3(r,s){return r==null?r:wl(r,Ne(s,3),xn)}function z3(r,s){return r==null?r:q0(r,Ne(s,3),xn)}function G3(r,s){return r&&br(r,Ne(s,3))}function J3(r,s){return r&&bl(r,Ne(s,3))}function Y3(r){return r==null?[]:tu(r,rn(r))}function X3(r){return r==null?[]:tu(r,xn(r))}function Xl(r,s,c){var m=r==null?n:Ii(r,s);return m===n?c:m}function Q3(r,s){return r!=null&&_g(r,s,AE)}function Ql(r,s){return r!=null&&_g(r,s,SE)}var Z3=wg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Va.call(s)),r[s]=c},ef(Cn)),e_=wg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Va.call(s)),xt.call(r,s)?r[s].push(c):r[s]=[c]},Ne),t_=Ze(So);function rn(r){return En(r)?L0(r):El(r)}function xn(r){return En(r)?L0(r,!0):BE(r)}function n_(r,s){var c={};return s=Ne(s,3),br(r,function(m,T,R){Dr(c,s(m,T,R),m)}),c}function r_(r,s){var c={};return s=Ne(s,3),br(r,function(m,T,R){Dr(c,T,s(m,T,R))}),c}var i_=Es(function(r,s,c){nu(r,s,c)}),a1=Es(function(r,s,c,m){nu(r,s,c,m)}),s_=Rr(function(r,s){var c={};if(r==null)return c;var m=!1;s=Rt(s,function(R){return R=si(R,r),m||(m=R.length>1),R}),vr(r,Nl(r),c),m&&(c=zn(c,p|v|C,ZE));for(var T=s.length;T--;)Ol(c,s[T]);return c});function o_(r,s){return u1(r,mu(Ne(s)))}var a_=Rr(function(r,s){return r==null?{}:PE(r,s)});function u1(r,s){if(r==null)return{};var c=Rt(Nl(r),function(m){return[m]});return s=Ne(s),Z0(r,c,function(m,T){return s(m,T[0])})}function u_(r,s,c){s=si(s,r);var m=-1,T=s.length;for(T||(T=1,r=n);++m<T;){var R=r==null?n:r[Ar(s[m])];R===n&&(m=T,R=c),r=Nr(R)?R.call(r):R}return r}function c_(r,s,c){return r==null?r:xo(r,s,c)}function l_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:xo(r,s,c,m)}var c1=Ag(rn),l1=Ag(xn);function f_(r,s,c){var m=Ke(r),T=m||ai(r)||_s(r);if(s=Ne(s,4),c==null){var R=r&&r.constructor;T?c=m?new R:[]:$t(r)?c=Nr(R)?Ss(Ka(r)):{}:c={}}return(T?Wn:br)(r,function($,U,z){return s(c,$,U,z)}),c}function h_(r,s){return r==null?!0:Ol(r,s)}function d_(r,s,c){return r==null?r:ig(r,s,Bl(c))}function p_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:ig(r,s,Bl(c),m)}function ks(r){return r==null?[]:ll(r,rn(r))}function g_(r){return r==null?[]:ll(r,xn(r))}function y_(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Yn(c),c=c===c?c:0),s!==n&&(s=Yn(s),s=s===s?s:0),Oi(Yn(r),s,c)}function m_(r,s,c){return s=jr(s),c===n?(c=s,s=0):c=jr(c),r=Yn(r),EE(r,s,c)}function w_(r,s,c){if(c&&typeof c!="boolean"&&yn(r,s,c)&&(s=c=n),c===n&&(typeof s=="boolean"?(c=s,s=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&s===n?(r=0,s=1):(r=jr(r),s===n?(s=r,r=0):s=jr(s)),r>s){var m=r;r=s,s=m}if(c||r%1||s%1){var T=P0();return ln(r+T*(s-r+YA("1e-"+((T+"").length-1))),s)}return _l(r,s)}var b_=xs(function(r,s,c){return s=s.toLowerCase(),r+(c?f1(s):s)});function f1(r){return Zl(vt(r).toLowerCase())}function h1(r){return r=vt(r),r&&r.replace(cn,cS).replace(MA,"")}function v_(r,s,c){r=vt(r),s=Bn(s);var m=r.length;c=c===n?m:Oi(Ge(c),0,m);var T=c;return c-=s.length,c>=0&&r.slice(c,T)==s}function A_(r){return r=vt(r),r&&cs.test(r)?r.replace(Jr,lS):r}function S_(r){return r=vt(r),r&&ir.test(r)?r.replace(Ir,"\\$&"):r}var E_=xs(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),x_=xs(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),C_=gg("toLowerCase");function __(r,s,c){r=vt(r),s=Ge(s);var m=s?ms(r):0;if(!s||m>=s)return r;var T=(s-m)/2;return uu(Ja(T),c)+r+uu(Ga(T),c)}function k_(r,s,c){r=vt(r),s=Ge(s);var m=s?ms(r):0;return s&&m<s?r+uu(s-m,c):r}function T_(r,s,c){r=vt(r),s=Ge(s);var m=s?ms(r):0;return s&&m<s?uu(s-m,c)+r:r}function O_(r,s,c){return c||s==null?s=0:s&&(s=+s),LS(vt(r).replace(Xr,""),s||0)}function I_(r,s,c){return(c?yn(r,s,c):s===n)?s=1:s=Ge(s),kl(vt(r),s)}function F_(){var r=arguments,s=vt(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var B_=xs(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function D_(r,s,c){return c&&typeof c!="number"&&yn(r,s,c)&&(s=c=n),c=c===n?me:c>>>0,c?(r=vt(r),r&&(typeof s=="string"||s!=null&&!Yl(s))&&(s=Bn(s),!s&&ys(r))?oi(or(r),0,c):r.split(s,c)):[]}var P_=xs(function(r,s,c){return r+(c?" ":"")+Zl(s)});function R_(r,s,c){return r=vt(r),c=c==null?0:Oi(Ge(c),0,r.length),s=Bn(s),r.slice(c,c+s.length)==s}function L_(r,s,c){var m=D.templateSettings;c&&yn(r,s,c)&&(s=n),r=vt(r),s=vu({},s,m,Sg);var T=vu({},s.imports,m.imports,Sg),R=rn(T),$=ll(T,R),U,z,ie=0,se=s.interpolate||Tn,ue="__p += '",ve=hl((s.escape||Tn).source+"|"+se.source+"|"+(se===Yr?lt:Tn).source+"|"+(s.evaluate||Tn).source+"|$","g"),Ie="//# sourceURL="+(xt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++KA+"]")+`
146
- `;r.replace(ve,function($e,it,at,Pn,mn,Rn){return at||(at=Pn),ue+=r.slice(ie,Rn).replace(sr,fS),it&&(U=!0,ue+=`' +
145
+ `)}function rx(r){return He(r)||Di(r)||!!(x0&&r&&r[x0])}function Pr(r,s){var c=typeof r;return s=s??xe,!!s&&(c=="number"||c!="symbol"&&Dt.test(r))&&r>-1&&r%1==0&&r<s}function yn(r,s,c){if(!jt(c))return!1;var m=typeof s;return(m=="number"?En(c)&&Pr(s,c.length):m=="string"&&s in c)?ur(c[s],r):!1}function $l(r,s){if(He(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Dn(r)?!0:so.test(r)||!Ei.test(r)||s!=null&&r in Ct(s)}function ix(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Ml(r){var s=uu(r),c=D[s];if(typeof c!="function"||!(s in ot.prototype))return!1;if(r===c)return!0;var m=Pl(c);return!!m&&r===m[0]}function sx(r){return!!v0&&v0 in r}var ox=ja?Nr:rf;function Co(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ws;return r===c}function vg(r){return r===r&&!jt(r)}function Sg(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in Ct(c))}}function ax(r){var s=pu(r,function(m){return c.size===d&&c.clear(),m}),c=s.cache;return s}function ux(r,s){var c=r[1],m=s[1],T=c|m,L=T<(b|B|O),$=m==O&&c==_||m==O&&c==W&&r[7].length<=s[8]||m==(O|W)&&s[7].length<=s[8]&&c==_;if(!(L||$))return r;m&b&&(r[2]=s[2],T|=c&b?0:N);var U=s[3];if(U){var z=r[3];r[3]=z?rg(z,U,s[4]):U,r[4]=z?ti(r[3],g):s[4]}return U=s[5],U&&(z=r[5],r[5]=z?ig(z,U,s[6]):U,r[6]=z?ti(r[5],g):s[6]),U=s[7],U&&(r[7]=U),m&O&&(r[8]=r[8]==null?s[8]:ln(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=T,r}function cx(r){var s=[];if(r!=null)for(var c in Ct(r))s.push(c);return s}function lx(r){return Ma.call(r)}function Ag(r,s,c){return s=en(s===n?r.length-1:s,0),function(){for(var m=arguments,T=-1,L=en(m.length-s,0),$=X(L);++T<L;)$[T]=m[s+T];T=-1;for(var U=X(s+1);++T<s;)U[T]=m[T];return U[s]=c($),On(r,this,U)}}function Eg(r,s){return s.length<2?r:Oi(r,Gn(s,0,-1))}function fx(r,s){for(var c=r.length,m=ln(s.length,c),T=An(r);m--;){var L=s[m];r[m]=Pr(L,c)?T[L]:n}return r}function Ul(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var xg=_g(z0),_o=_A||function(r,s){return an.setTimeout(r,s)},Vl=_g(RE);function Cg(r,s,c){var m=s+"";return Vl(r,nx(m,hx(ZE(m),c)))}function _g(r){var s=0,c=0;return function(){var m=OA(),T=ye-(m-c);if(c=m,T>0){if(++s>=ge)return arguments[0]}else s=0;return r.apply(n,arguments)}}function lu(r,s){var c=-1,m=r.length,T=m-1;for(s=s===n?m:s;++c<s;){var L=xl(c,T),$=r[L];r[L]=r[c],r[c]=$}return r.length=s,r}var kg=ax(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(oo,function(c,m,T,L){s.push(T?L.replace(Fe,"$1"):m||c)}),s});function Sr(r){if(typeof r=="string"||Dn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Bi(r){if(r!=null){try{return $a.call(r)}catch{}try{return r+""}catch{}}return""}function hx(r,s){return Wn(Q,function(c){var m="_."+c[0];s&c[1]&&!Ra(r,m)&&r.push(m)}),r.sort()}function Tg(r){if(r instanceof ot)return r.clone();var s=new Kn(r.__wrapped__,r.__chain__);return s.__actions__=An(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function dx(r,s,c){(c?yn(r,s,c):s===n)?s=1:s=en(ze(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var T=0,L=0,$=X(Ka(m/s));T<m;)$[L++]=Gn(r,T,T+=s);return $}function px(r){for(var s=-1,c=r==null?0:r.length,m=0,T=[];++s<c;){var L=r[s];L&&(T[m++]=L)}return T}function gx(){var r=arguments.length;if(!r)return[];for(var s=X(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return ei(He(c)?An(c):[c],un(s,1))}var yx=Ze(function(r,s){return zt(r)?vo(r,un(s,1,zt,!0)):[]}),mx=Ze(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?vo(r,un(s,1,zt,!0),Pe(c,2)):[]}),wx=Ze(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?vo(r,un(s,1,zt,!0),n,c):[]});function bx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),Gn(r,s<0?0:s,m)):[]}function vx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),s=m-s,Gn(r,0,s<0?0:s)):[]}function Sx(r,s){return r&&r.length?nu(r,Pe(s,3),!0,!0):[]}function Ax(r,s){return r&&r.length?nu(r,Pe(s,3),!0):[]}function Ex(r,s,c,m){var T=r==null?0:r.length;return T?(c&&typeof c!="number"&&yn(r,s,c)&&(c=0,m=T),gE(r,s,c,m)):[]}function Ig(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=c==null?0:ze(c);return T<0&&(T=en(m+T,0)),La(r,Pe(s,3),T)}function Og(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=m-1;return c!==n&&(T=ze(c),T=c<0?en(m+T,0):ln(T,m-1)),La(r,Pe(s,3),T,!0)}function Fg(r){var s=r==null?0:r.length;return s?un(r,1):[]}function xx(r){var s=r==null?0:r.length;return s?un(r,ke):[]}function Cx(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:ze(s),un(r,s)):[]}function _x(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var T=r[s];m[T[0]]=T[1]}return m}function Bg(r){return r&&r.length?r[0]:n}function kx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=c==null?0:ze(c);return T<0&&(T=en(m+T,0)),ps(r,s,T)}function Tx(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var Ix=Ze(function(r){var s=Rt(r,Il);return s.length&&s[0]===r[0]?bl(s):[]}),Ox=Ze(function(r){var s=Jn(r),c=Rt(r,Il);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?bl(c,Pe(s,2)):[]}),Fx=Ze(function(r){var s=Jn(r),c=Rt(r,Il);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?bl(c,n,s):[]});function Bx(r,s){return r==null?"":TA.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function Dx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var T=m;return c!==n&&(T=ze(c),T=T<0?en(m+T,0):ln(T,m-1)),s===s?hA(r,s,T):La(r,h0,T,!0)}function Rx(r,s){return r&&r.length?q0(r,ze(s)):n}var Lx=Ze(Dg);function Dg(r,s){return r&&r.length&&s&&s.length?El(r,s):r}function Px(r,s,c){return r&&r.length&&s&&s.length?El(r,s,Pe(c,2)):r}function Nx(r,s,c){return r&&r.length&&s&&s.length?El(r,s,n,c):r}var jx=Lr(function(r,s){var c=r==null?0:r.length,m=gl(r,s);return K0(r,Rt(s,function(T){return Pr(T,c)?+T:T}).sort(ng)),m});function $x(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,T=[],L=r.length;for(s=Pe(s,3);++m<L;){var $=r[m];s($,m,r)&&(c.push($),T.push(m))}return K0(r,T),c}function ql(r){return r==null?r:BA.call(r)}function Mx(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&yn(r,s,c)?(s=0,c=m):(s=s==null?0:ze(s),c=c===n?m:ze(c)),Gn(r,s,c)):[]}function Ux(r,s){return tu(r,s)}function Vx(r,s,c){return _l(r,s,Pe(c,2))}function qx(r,s){var c=r==null?0:r.length;if(c){var m=tu(r,s);if(m<c&&ur(r[m],s))return m}return-1}function Wx(r,s){return tu(r,s,!0)}function Hx(r,s,c){return _l(r,s,Pe(c,2),!0)}function Kx(r,s){var c=r==null?0:r.length;if(c){var m=tu(r,s,!0)-1;if(ur(r[m],s))return m}return-1}function zx(r){return r&&r.length?G0(r):[]}function Gx(r,s){return r&&r.length?G0(r,Pe(s,2)):[]}function Jx(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function Yx(r,s,c){return r&&r.length?(s=c||s===n?1:ze(s),Gn(r,0,s<0?0:s)):[]}function Xx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:ze(s),s=m-s,Gn(r,s<0?0:s,m)):[]}function Qx(r,s){return r&&r.length?nu(r,Pe(s,3),!1,!0):[]}function Zx(r,s){return r&&r.length?nu(r,Pe(s,3)):[]}var eC=Ze(function(r){return ii(un(r,1,zt,!0))}),tC=Ze(function(r){var s=Jn(r);return zt(s)&&(s=n),ii(un(r,1,zt,!0),Pe(s,2))}),nC=Ze(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,ii(un(r,1,zt,!0),n,s)});function rC(r){return r&&r.length?ii(r):[]}function iC(r,s){return r&&r.length?ii(r,Pe(s,2)):[]}function sC(r,s){return s=typeof s=="function"?s:n,r&&r.length?ii(r,n,s):[]}function Wl(r){if(!(r&&r.length))return[];var s=0;return r=Zr(r,function(c){if(zt(c))return s=en(c.length,s),!0}),al(s,function(c){return Rt(r,il(c))})}function Rg(r,s){if(!(r&&r.length))return[];var c=Wl(r);return s==null?c:Rt(c,function(m){return On(s,n,m)})}var oC=Ze(function(r,s){return zt(r)?vo(r,s):[]}),aC=Ze(function(r){return Tl(Zr(r,zt))}),uC=Ze(function(r){var s=Jn(r);return zt(s)&&(s=n),Tl(Zr(r,zt),Pe(s,2))}),cC=Ze(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,Tl(Zr(r,zt),n,s)}),lC=Ze(Wl);function fC(r,s){return Q0(r||[],s||[],bo)}function hC(r,s){return Q0(r||[],s||[],Eo)}var dC=Ze(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,Rg(r,c)});function Lg(r){var s=D(r);return s.__chain__=!0,s}function pC(r,s){return s(r),r}function fu(r,s){return s(r)}var gC=Lr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,T=function(L){return gl(L,r)};return s>1||this.__actions__.length||!(m instanceof ot)||!Pr(c)?this.thru(T):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:fu,args:[T],thisArg:n}),new Kn(m,this.__chain__).thru(function(L){return s&&!L.length&&L.push(n),L}))});function yC(){return Lg(this)}function mC(){return new Kn(this.value(),this.__chain__)}function wC(){this.__values__===n&&(this.__values__=Jg(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function bC(){return this}function vC(r){for(var s,c=this;c instanceof Ya;){var m=Tg(c);m.__index__=0,m.__values__=n,s?T.__wrapped__=m:s=m;var T=m;c=c.__wrapped__}return T.__wrapped__=r,s}function SC(){var r=this.__wrapped__;if(r instanceof ot){var s=r;return this.__actions__.length&&(s=new ot(this)),s=s.reverse(),s.__actions__.push({func:fu,args:[ql],thisArg:n}),new Kn(s,this.__chain__)}return this.thru(ql)}function AC(){return X0(this.__wrapped__,this.__actions__)}var EC=ru(function(r,s,c){St.call(r,c)?++r[c]:Dr(r,c,1)});function xC(r,s,c){var m=He(r)?l0:pE;return c&&yn(r,s,c)&&(s=n),m(r,Pe(s,3))}function CC(r,s){var c=He(r)?Zr:R0;return c(r,Pe(s,3))}var _C=ug(Ig),kC=ug(Og);function TC(r,s){return un(hu(r,s),1)}function IC(r,s){return un(hu(r,s),ke)}function OC(r,s,c){return c=c===n?1:ze(c),un(hu(r,s),c)}function Pg(r,s){var c=He(r)?Wn:ri;return c(r,Pe(s,3))}function Ng(r,s){var c=He(r)?JS:D0;return c(r,Pe(s,3))}var FC=ru(function(r,s,c){St.call(r,c)?r[c].push(s):Dr(r,c,[s])});function BC(r,s,c,m){r=En(r)?r:_s(r),c=c&&!m?ze(c):0;var T=r.length;return c<0&&(c=en(T+c,0)),mu(r)?c<=T&&r.indexOf(s,c)>-1:!!T&&ps(r,s,c)>-1}var DC=Ze(function(r,s,c){var m=-1,T=typeof s=="function",L=En(r)?X(r.length):[];return ri(r,function($){L[++m]=T?On(s,$,c):So($,s,c)}),L}),RC=ru(function(r,s,c){Dr(r,c,s)});function hu(r,s){var c=He(r)?Rt:M0;return c(r,Pe(s,3))}function LC(r,s,c,m){return r==null?[]:(He(s)||(s=s==null?[]:[s]),c=m?n:c,He(c)||(c=c==null?[]:[c]),W0(r,s,c))}var PC=ru(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function NC(r,s,c){var m=He(r)?nl:p0,T=arguments.length<3;return m(r,Pe(s,4),c,T,ri)}function jC(r,s,c){var m=He(r)?YS:p0,T=arguments.length<3;return m(r,Pe(s,4),c,T,D0)}function $C(r,s){var c=He(r)?Zr:R0;return c(r,gu(Pe(s,3)))}function MC(r){var s=He(r)?I0:BE;return s(r)}function UC(r,s,c){(c?yn(r,s,c):s===n)?s=1:s=ze(s);var m=He(r)?cE:DE;return m(r,s)}function VC(r){var s=He(r)?lE:LE;return s(r)}function qC(r){if(r==null)return 0;if(En(r))return mu(r)?ys(r):r.length;var s=fn(r);return s==Lt||s==Be?r.size:Sl(r).length}function WC(r,s,c){var m=He(r)?rl:PE;return c&&yn(r,s,c)&&(s=n),m(r,Pe(s,3))}var HC=Ze(function(r,s){if(r==null)return[];var c=s.length;return c>1&&yn(r,s[0],s[1])?s=[]:c>2&&yn(s[0],s[1],s[2])&&(s=[s[0]]),W0(r,un(s,1),[])}),du=CA||function(){return an.Date.now()};function KC(r,s){if(typeof s!="function")throw new Hn(u);return r=ze(r),function(){if(--r<1)return s.apply(this,arguments)}}function jg(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Rr(r,O,n,n,n,n,s)}function $g(r,s){var c;if(typeof s!="function")throw new Hn(u);return r=ze(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var Hl=Ze(function(r,s,c){var m=b;if(c.length){var T=ti(c,xs(Hl));m|=F}return Rr(r,m,s,c,T)}),Mg=Ze(function(r,s,c){var m=b|B;if(c.length){var T=ti(c,xs(Mg));m|=F}return Rr(s,m,r,c,T)});function Ug(r,s,c){s=c?n:s;var m=Rr(r,_,n,n,n,n,n,s);return m.placeholder=Ug.placeholder,m}function Vg(r,s,c){s=c?n:s;var m=Rr(r,k,n,n,n,n,n,s);return m.placeholder=Vg.placeholder,m}function qg(r,s,c){var m,T,L,$,U,z,ie=0,se=!1,ae=!1,ve=!0;if(typeof r!="function")throw new Hn(u);s=Yn(s)||0,jt(c)&&(se=!!c.leading,ae="maxWait"in c,L=ae?en(Yn(c.maxWait)||0,s):L,ve="trailing"in c?!!c.trailing:ve);function Ie(Gt){var cr=m,$r=T;return m=T=n,ie=Gt,$=r.apply($r,cr),$}function je(Gt){return ie=Gt,U=_o(it,s),se?Ie(Gt):$}function Qe(Gt){var cr=Gt-z,$r=Gt-ie,u1=s-cr;return ae?ln(u1,L-$r):u1}function $e(Gt){var cr=Gt-z,$r=Gt-ie;return z===n||cr>=s||cr<0||ae&&$r>=L}function it(){var Gt=du();if($e(Gt))return at(Gt);U=_o(it,Qe(Gt))}function at(Gt){return U=n,ve&&m?Ie(Gt):(m=T=n,$)}function Rn(){U!==n&&Z0(U),ie=0,m=z=T=U=n}function mn(){return U===n?$:at(du())}function Ln(){var Gt=du(),cr=$e(Gt);if(m=arguments,T=this,z=Gt,cr){if(U===n)return je(z);if(ae)return Z0(U),U=_o(it,s),Ie(z)}return U===n&&(U=_o(it,s)),$}return Ln.cancel=Rn,Ln.flush=mn,Ln}var zC=Ze(function(r,s){return B0(r,1,s)}),GC=Ze(function(r,s,c){return B0(r,Yn(s)||0,c)});function JC(r){return Rr(r,J)}function pu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Hn(u);var c=function(){var m=arguments,T=s?s.apply(this,m):m[0],L=c.cache;if(L.has(T))return L.get(T);var $=r.apply(this,m);return c.cache=L.set(T,$)||L,$};return c.cache=new(pu.Cache||Br),c}pu.Cache=Br;function gu(r){if(typeof r!="function")throw new Hn(u);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function YC(r){return $g(2,r)}var XC=NE(function(r,s){s=s.length==1&&He(s[0])?Rt(s[0],Fn(Pe())):Rt(un(s,1),Fn(Pe()));var c=s.length;return Ze(function(m){for(var T=-1,L=ln(m.length,c);++T<L;)m[T]=s[T].call(this,m[T]);return On(r,this,m)})}),Kl=Ze(function(r,s){var c=ti(s,xs(Kl));return Rr(r,F,n,s,c)}),Wg=Ze(function(r,s){var c=ti(s,xs(Wg));return Rr(r,R,n,s,c)}),QC=Lr(function(r,s){return Rr(r,W,n,n,n,s)});function ZC(r,s){if(typeof r!="function")throw new Hn(u);return s=s===n?s:ze(s),Ze(r,s)}function e3(r,s){if(typeof r!="function")throw new Hn(u);return s=s==null?0:en(ze(s),0),Ze(function(c){var m=c[s],T=oi(c,0,s);return m&&ei(T,m),On(r,this,T)})}function t3(r,s,c){var m=!0,T=!0;if(typeof r!="function")throw new Hn(u);return jt(c)&&(m="leading"in c?!!c.leading:m,T="trailing"in c?!!c.trailing:T),qg(r,s,{leading:m,maxWait:s,trailing:T})}function n3(r){return jg(r,1)}function r3(r,s){return Kl(Ol(s),r)}function i3(){if(!arguments.length)return[];var r=arguments[0];return He(r)?r:[r]}function s3(r){return zn(r,C)}function o3(r,s){return s=typeof s=="function"?s:n,zn(r,C,s)}function a3(r){return zn(r,p|C)}function u3(r,s){return s=typeof s=="function"?s:n,zn(r,p|C,s)}function c3(r,s){return s==null||F0(r,s,rn(s))}function ur(r,s){return r===s||r!==r&&s!==s}var l3=au(wl),f3=au(function(r,s){return r>=s}),Di=N0(function(){return arguments}())?N0:function(r){return $t(r)&&St.call(r,"callee")&&!E0.call(r,"callee")},He=X.isArray,h3=i0?Fn(i0):vE;function En(r){return r!=null&&yu(r.length)&&!Nr(r)}function zt(r){return $t(r)&&En(r)}function d3(r){return r===!0||r===!1||$t(r)&&gn(r)==Te}var ai=kA||rf,p3=s0?Fn(s0):SE;function g3(r){return $t(r)&&r.nodeType===1&&!ko(r)}function y3(r){if(r==null)return!0;if(En(r)&&(He(r)||typeof r=="string"||typeof r.splice=="function"||ai(r)||Cs(r)||Di(r)))return!r.length;var s=fn(r);if(s==Lt||s==Be)return!r.size;if(Co(r))return!Sl(r).length;for(var c in r)if(St.call(r,c))return!1;return!0}function m3(r,s){return Ao(r,s)}function w3(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?Ao(r,s,n,c):!!m}function zl(r){if(!$t(r))return!1;var s=gn(r);return s==Ne||s==Oe||typeof r.message=="string"&&typeof r.name=="string"&&!ko(r)}function b3(r){return typeof r=="number"&&C0(r)}function Nr(r){if(!jt(r))return!1;var s=gn(r);return s==kt||s==nn||s==Ye||s==Sn}function Hg(r){return typeof r=="number"&&r==ze(r)}function yu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=xe}function jt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function $t(r){return r!=null&&typeof r=="object"}var Kg=o0?Fn(o0):EE;function v3(r,s){return r===s||vl(r,s,Nl(s))}function S3(r,s,c){return c=typeof c=="function"?c:n,vl(r,s,Nl(s),c)}function A3(r){return zg(r)&&r!=+r}function E3(r){if(ox(r))throw new Ve(a);return j0(r)}function x3(r){return r===null}function C3(r){return r==null}function zg(r){return typeof r=="number"||$t(r)&&gn(r)==Pt}function ko(r){if(!$t(r)||gn(r)!=wt)return!1;var s=qa(r);if(s===null)return!0;var c=St.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&$a.call(c)==SA}var Gl=a0?Fn(a0):xE;function _3(r){return Hg(r)&&r>=-9007199254740991&&r<=xe}var Gg=u0?Fn(u0):CE;function mu(r){return typeof r=="string"||!He(r)&&$t(r)&&gn(r)==pe}function Dn(r){return typeof r=="symbol"||$t(r)&&gn(r)==At}var Cs=c0?Fn(c0):_E;function k3(r){return r===n}function T3(r){return $t(r)&&fn(r)==vt}function I3(r){return $t(r)&&gn(r)==rt}var O3=au(Al),F3=au(function(r,s){return r<=s});function Jg(r){if(!r)return[];if(En(r))return mu(r)?or(r):An(r);if(po&&r[po])return cA(r[po]());var s=fn(r),c=s==Lt?cl:s==Be?Pa:_s;return c(r)}function jr(r){if(!r)return r===0?r:0;if(r=Yn(r),r===ke||r===-1/0){var s=r<0?-1:1;return s*tt}return r===r?r:0}function ze(r){var s=jr(r),c=s%1;return s===s?c?s-c:s:0}function Yg(r){return r?Ii(ze(r),0,Se):0}function Yn(r){if(typeof r=="number")return r;if(Dn(r))return Ae;if(jt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=jt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=g0(r);var c=Xe.test(r);return c||Ft.test(r)?KS(r.slice(2),c?2:8):nt.test(r)?Ae:+r}function Xg(r){return vr(r,xn(r))}function B3(r){return r?Ii(ze(r),-9007199254740991,xe):r===0?r:0}function bt(r){return r==null?"":Bn(r)}var D3=As(function(r,s){if(Co(s)||En(s)){vr(s,rn(s),r);return}for(var c in s)St.call(s,c)&&bo(r,c,s[c])}),Qg=As(function(r,s){vr(s,xn(s),r)}),wu=As(function(r,s,c,m){vr(s,xn(s),r,m)}),R3=As(function(r,s,c,m){vr(s,rn(s),r,m)}),L3=Lr(gl);function P3(r,s){var c=Ss(r);return s==null?c:O0(c,s)}var N3=Ze(function(r,s){r=Ct(r);var c=-1,m=s.length,T=m>2?s[2]:n;for(T&&yn(s[0],s[1],T)&&(m=1);++c<m;)for(var L=s[c],$=xn(L),U=-1,z=$.length;++U<z;){var ie=$[U],se=r[ie];(se===n||ur(se,ws[ie])&&!St.call(r,ie))&&(r[ie]=L[ie])}return r}),j3=Ze(function(r){return r.push(n,gg),On(Zg,n,r)});function $3(r,s){return f0(r,Pe(s,3),br)}function M3(r,s){return f0(r,Pe(s,3),ml)}function U3(r,s){return r==null?r:yl(r,Pe(s,3),xn)}function V3(r,s){return r==null?r:L0(r,Pe(s,3),xn)}function q3(r,s){return r&&br(r,Pe(s,3))}function W3(r,s){return r&&ml(r,Pe(s,3))}function H3(r){return r==null?[]:Za(r,rn(r))}function K3(r){return r==null?[]:Za(r,xn(r))}function Jl(r,s,c){var m=r==null?n:Oi(r,s);return m===n?c:m}function z3(r,s){return r!=null&&wg(r,s,yE)}function Yl(r,s){return r!=null&&wg(r,s,mE)}var G3=lg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Ma.call(s)),r[s]=c},Ql(Cn)),J3=lg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Ma.call(s)),St.call(r,s)?r[s].push(c):r[s]=[c]},Pe),Y3=Ze(So);function rn(r){return En(r)?T0(r):Sl(r)}function xn(r){return En(r)?T0(r,!0):kE(r)}function X3(r,s){var c={};return s=Pe(s,3),br(r,function(m,T,L){Dr(c,s(m,T,L),m)}),c}function Q3(r,s){var c={};return s=Pe(s,3),br(r,function(m,T,L){Dr(c,T,s(m,T,L))}),c}var Z3=As(function(r,s,c){eu(r,s,c)}),Zg=As(function(r,s,c,m){eu(r,s,c,m)}),e_=Lr(function(r,s){var c={};if(r==null)return c;var m=!1;s=Rt(s,function(L){return L=si(L,r),m||(m=L.length>1),L}),vr(r,Ll(r),c),m&&(c=zn(c,p|v|C,GE));for(var T=s.length;T--;)kl(c,s[T]);return c});function t_(r,s){return e1(r,gu(Pe(s)))}var n_=Lr(function(r,s){return r==null?{}:IE(r,s)});function e1(r,s){if(r==null)return{};var c=Rt(Ll(r),function(m){return[m]});return s=Pe(s),H0(r,c,function(m,T){return s(m,T[0])})}function r_(r,s,c){s=si(s,r);var m=-1,T=s.length;for(T||(T=1,r=n);++m<T;){var L=r==null?n:r[Sr(s[m])];L===n&&(m=T,L=c),r=Nr(L)?L.call(r):L}return r}function i_(r,s,c){return r==null?r:Eo(r,s,c)}function s_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Eo(r,s,c,m)}var t1=dg(rn),n1=dg(xn);function o_(r,s,c){var m=He(r),T=m||ai(r)||Cs(r);if(s=Pe(s,4),c==null){var L=r&&r.constructor;T?c=m?new L:[]:jt(r)?c=Nr(L)?Ss(qa(r)):{}:c={}}return(T?Wn:br)(r,function($,U,z){return s(c,$,U,z)}),c}function a_(r,s){return r==null?!0:kl(r,s)}function u_(r,s,c){return r==null?r:Y0(r,s,Ol(c))}function c_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Y0(r,s,Ol(c),m)}function _s(r){return r==null?[]:ul(r,rn(r))}function l_(r){return r==null?[]:ul(r,xn(r))}function f_(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Yn(c),c=c===c?c:0),s!==n&&(s=Yn(s),s=s===s?s:0),Ii(Yn(r),s,c)}function h_(r,s,c){return s=jr(s),c===n?(c=s,s=0):c=jr(c),r=Yn(r),wE(r,s,c)}function d_(r,s,c){if(c&&typeof c!="boolean"&&yn(r,s,c)&&(s=c=n),c===n&&(typeof s=="boolean"?(c=s,s=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&s===n?(r=0,s=1):(r=jr(r),s===n?(s=r,r=0):s=jr(s)),r>s){var m=r;r=s,s=m}if(c||r%1||s%1){var T=_0();return ln(r+T*(s-r+HS("1e-"+((T+"").length-1))),s)}return xl(r,s)}var p_=Es(function(r,s,c){return s=s.toLowerCase(),r+(c?r1(s):s)});function r1(r){return Xl(bt(r).toLowerCase())}function i1(r){return r=bt(r),r&&r.replace(cn,iA).replace(LS,"")}function g_(r,s,c){r=bt(r),s=Bn(s);var m=r.length;c=c===n?m:Ii(ze(c),0,m);var T=c;return c-=s.length,c>=0&&r.slice(c,T)==s}function y_(r){return r=bt(r),r&&us.test(r)?r.replace(Jr,sA):r}function m_(r){return r=bt(r),r&&ir.test(r)?r.replace(Or,"\\$&"):r}var w_=Es(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),b_=Es(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),v_=ag("toLowerCase");function S_(r,s,c){r=bt(r),s=ze(s);var m=s?ys(r):0;if(!s||m>=s)return r;var T=(s-m)/2;return ou(za(T),c)+r+ou(Ka(T),c)}function A_(r,s,c){r=bt(r),s=ze(s);var m=s?ys(r):0;return s&&m<s?r+ou(s-m,c):r}function E_(r,s,c){r=bt(r),s=ze(s);var m=s?ys(r):0;return s&&m<s?ou(s-m,c)+r:r}function x_(r,s,c){return c||s==null?s=0:s&&(s=+s),FA(bt(r).replace(Xr,""),s||0)}function C_(r,s,c){return(c?yn(r,s,c):s===n)?s=1:s=ze(s),Cl(bt(r),s)}function __(){var r=arguments,s=bt(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var k_=Es(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function T_(r,s,c){return c&&typeof c!="number"&&yn(r,s,c)&&(s=c=n),c=c===n?Se:c>>>0,c?(r=bt(r),r&&(typeof s=="string"||s!=null&&!Gl(s))&&(s=Bn(s),!s&&gs(r))?oi(or(r),0,c):r.split(s,c)):[]}var I_=Es(function(r,s,c){return r+(c?" ":"")+Xl(s)});function O_(r,s,c){return r=bt(r),c=c==null?0:Ii(ze(c),0,r.length),s=Bn(s),r.slice(c,c+s.length)==s}function F_(r,s,c){var m=D.templateSettings;c&&yn(r,s,c)&&(s=n),r=bt(r),s=wu({},s,m,pg);var T=wu({},s.imports,m.imports,pg),L=rn(T),$=ul(T,L),U,z,ie=0,se=s.interpolate||Tn,ae="__p += '",ve=ll((s.escape||Tn).source+"|"+se.source+"|"+(se===Yr?lt:Tn).source+"|"+(s.evaluate||Tn).source+"|$","g"),Ie="//# sourceURL="+(St.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++MS+"]")+`
146
+ `;r.replace(ve,function($e,it,at,Rn,mn,Ln){return at||(at=Rn),ae+=r.slice(ie,Ln).replace(sr,oA),it&&(U=!0,ae+=`' +
147
147
  __e(`+it+`) +
148
- '`),mn&&(z=!0,ue+=`';
148
+ '`),mn&&(z=!0,ae+=`';
149
149
  `+mn+`;
150
- __p += '`),at&&(ue+=`' +
150
+ __p += '`),at&&(ae+=`' +
151
151
  ((__t = (`+at+`)) == null ? '' : __t) +
152
- '`),ie=Rn+$e.length,$e}),ue+=`';
153
- `;var je=xt.call(s,"variable")&&s.variable;if(!je)ue=`with (obj) {
154
- `+ue+`
152
+ '`),ie=Ln+$e.length,$e}),ae+=`';
153
+ `;var je=St.call(s,"variable")&&s.variable;if(!je)ae=`with (obj) {
154
+ `+ae+`
155
155
  }
156
- `;else if(be.test(je))throw new Ve(l);ue=(z?ue.replace(pt,""):ue).replace(ct,"$1").replace(dt,"$1;"),ue="function("+(je||"obj")+`) {
156
+ `;else if(be.test(je))throw new Ve(l);ae=(z?ae.replace(pt,""):ae).replace(ct,"$1").replace(dt,"$1;"),ae="function("+(je||"obj")+`) {
157
157
  `+(je?"":`obj || (obj = {});
158
158
  `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
159
159
  function print() { __p += __j.call(arguments, '') }
160
160
  `:`;
161
- `)+ue+`return __p
162
- }`;var Qe=p1(function(){return wt(R,Ie+"return "+ue).apply(n,$)});if(Qe.source=ue,Jl(Qe))throw Qe;return Qe}function N_(r){return vt(r).toLowerCase()}function j_(r){return vt(r).toUpperCase()}function $_(r,s,c){if(r=vt(r),r&&(c||s===n))return E0(r);if(!r||!(s=Bn(s)))return r;var m=or(r),T=or(s),R=x0(m,T),$=C0(m,T)+1;return oi(m,R,$).join("")}function M_(r,s,c){if(r=vt(r),r&&(c||s===n))return r.slice(0,k0(r)+1);if(!r||!(s=Bn(s)))return r;var m=or(r),T=C0(m,or(s))+1;return oi(m,0,T).join("")}function U_(r,s,c){if(r=vt(r),r&&(c||s===n))return r.replace(Xr,"");if(!r||!(s=Bn(s)))return r;var m=or(r),T=x0(m,or(s));return oi(m,T).join("")}function V_(r,s){var c=ce,m=le;if($t(s)){var T="separator"in s?s.separator:T;c="length"in s?Ge(s.length):c,m="omission"in s?Bn(s.omission):m}r=vt(r);var R=r.length;if(ys(r)){var $=or(r);R=$.length}if(c>=R)return r;var U=c-ms(m);if(U<1)return m;var z=$?oi($,0,U).join(""):r.slice(0,U);if(T===n)return z+m;if($&&(U+=z.length-U),Yl(T)){if(r.slice(U).search(T)){var ie,se=z;for(T.global||(T=hl(T.source,vt(ft.exec(T))+"g")),T.lastIndex=0;ie=T.exec(se);)var ue=ie.index;z=z.slice(0,ue===n?U:ue)}}else if(r.indexOf(Bn(T),U)!=U){var ve=z.lastIndexOf(T);ve>-1&&(z=z.slice(0,ve))}return z+m}function q_(r){return r=vt(r),r&&Si.test(r)?r.replace(st,wS):r}var W_=xs(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Zl=gg("toUpperCase");function d1(r,s,c){return r=vt(r),s=c?n:s,s===n?dS(r)?AS(r):iS(r):r.match(s)||[]}var p1=Ze(function(r,s){try{return In(r,n,s)}catch(c){return Jl(c)?c:new Ve(c)}}),K_=Rr(function(r,s){return Wn(s,function(c){c=Ar(c),Dr(r,c,zl(r[c],r))}),r});function H_(r){var s=r==null?0:r.length,c=Ne();return r=s?Rt(r,function(m){if(typeof m[1]!="function")throw new Kn(u);return[c(m[0]),m[1]]}):[],Ze(function(m){for(var T=-1;++T<s;){var R=r[T];if(In(R[0],this,m))return In(R[1],this,m)}})}function z_(r){return wE(zn(r,p))}function ef(r){return function(){return r}}function G_(r,s){return r==null||r!==r?s:r}var J_=mg(),Y_=mg(!0);function Cn(r){return r}function tf(r){return z0(typeof r=="function"?r:zn(r,p))}function X_(r){return J0(zn(r,p))}function Q_(r,s){return Y0(r,zn(s,p))}var Z_=Ze(function(r,s){return function(c){return So(c,r,s)}}),e8=Ze(function(r,s){return function(c){return So(r,c,s)}});function nf(r,s,c){var m=rn(s),T=tu(s,m);c==null&&!($t(s)&&(T.length||!m.length))&&(c=s,s=r,r=this,T=tu(s,rn(s)));var R=!($t(c)&&"chain"in c)||!!c.chain,$=Nr(r);return Wn(T,function(U){var z=s[U];r[U]=z,$&&(r.prototype[U]=function(){var ie=this.__chain__;if(R||ie){var se=r(this.__wrapped__),ue=se.__actions__=Sn(this.__actions__);return ue.push({func:z,args:arguments,thisArg:r}),se.__chain__=ie,se}return z.apply(r,ei([this.value()],arguments))})}),r}function t8(){return an._===this&&(an._=kS),this}function rf(){}function n8(r){return r=Ge(r),Ze(function(s){return X0(s,r)})}var r8=Pl(Rt),i8=Pl(w0),s8=Pl(sl);function g1(r){return Ul(r)?ol(Ar(r)):RE(r)}function o8(r){return function(s){return r==null?n:Ii(r,s)}}var a8=bg(),u8=bg(!0);function sf(){return[]}function of(){return!1}function c8(){return{}}function l8(){return""}function f8(){return!0}function h8(r,s){if(r=Ge(r),r<1||r>Ee)return[];var c=me,m=ln(r,me);s=Ne(s),r-=me;for(var T=cl(m,s);++c<r;)s(c);return T}function d8(r){return Ke(r)?Rt(r,Ar):Dn(r)?[r]:Sn(Rg(vt(r)))}function p8(r){var s=++CS;return vt(r)+s}var g8=au(function(r,s){return r+s},0),y8=Rl("ceil"),m8=au(function(r,s){return r/s},1),w8=Rl("floor");function b8(r){return r&&r.length?eu(r,Cn,vl):n}function v8(r,s){return r&&r.length?eu(r,Ne(s,2),vl):n}function A8(r){return A0(r,Cn)}function S8(r,s){return A0(r,Ne(s,2))}function E8(r){return r&&r.length?eu(r,Cn,xl):n}function x8(r,s){return r&&r.length?eu(r,Ne(s,2),xl):n}var C8=au(function(r,s){return r*s},1),_8=Rl("round"),k8=au(function(r,s){return r-s},0);function T8(r){return r&&r.length?ul(r,Cn):0}function O8(r,s){return r&&r.length?ul(r,Ne(s,2)):0}return D.after=XC,D.ary=Hg,D.assign=j3,D.assignIn=o1,D.assignInWith=vu,D.assignWith=$3,D.at=M3,D.before=zg,D.bind=zl,D.bindAll=K_,D.bindKey=Gg,D.castArray=c3,D.chain=qg,D.chunk=wx,D.compact=bx,D.concat=vx,D.cond=H_,D.conforms=z_,D.constant=ef,D.countBy=TC,D.create=U3,D.curry=Jg,D.curryRight=Yg,D.debounce=Xg,D.defaults=V3,D.defaultsDeep=q3,D.defer=QC,D.delay=ZC,D.difference=Ax,D.differenceBy=Sx,D.differenceWith=Ex,D.drop=xx,D.dropRight=Cx,D.dropRightWhile=_x,D.dropWhile=kx,D.fill=Tx,D.filter=IC,D.flatMap=DC,D.flatMapDeep=PC,D.flatMapDepth=RC,D.flatten=$g,D.flattenDeep=Ox,D.flattenDepth=Ix,D.flip=e3,D.flow=J_,D.flowRight=Y_,D.fromPairs=Fx,D.functions=Y3,D.functionsIn=X3,D.groupBy=LC,D.initial=Dx,D.intersection=Px,D.intersectionBy=Rx,D.intersectionWith=Lx,D.invert=Z3,D.invertBy=e_,D.invokeMap=jC,D.iteratee=tf,D.keyBy=$C,D.keys=rn,D.keysIn=xn,D.map=pu,D.mapKeys=n_,D.mapValues=r_,D.matches=X_,D.matchesProperty=Q_,D.memoize=yu,D.merge=i_,D.mergeWith=a1,D.method=Z_,D.methodOf=e8,D.mixin=nf,D.negate=mu,D.nthArg=n8,D.omit=s_,D.omitBy=o_,D.once=t3,D.orderBy=MC,D.over=r8,D.overArgs=n3,D.overEvery=i8,D.overSome=s8,D.partial=Gl,D.partialRight=Qg,D.partition=UC,D.pick=a_,D.pickBy=u1,D.property=g1,D.propertyOf=o8,D.pull=Mx,D.pullAll=Ug,D.pullAllBy=Ux,D.pullAllWith=Vx,D.pullAt=qx,D.range=a8,D.rangeRight=u8,D.rearg=r3,D.reject=WC,D.remove=Wx,D.rest=i3,D.reverse=Kl,D.sampleSize=HC,D.set=c_,D.setWith=l_,D.shuffle=zC,D.slice=Kx,D.sortBy=YC,D.sortedUniq=Qx,D.sortedUniqBy=Zx,D.split=D_,D.spread=s3,D.tail=eC,D.take=tC,D.takeRight=nC,D.takeRightWhile=rC,D.takeWhile=iC,D.tap=bC,D.throttle=o3,D.thru=du,D.toArray=r1,D.toPairs=c1,D.toPairsIn=l1,D.toPath=d8,D.toPlainObject=s1,D.transform=f_,D.unary=a3,D.union=sC,D.unionBy=oC,D.unionWith=aC,D.uniq=uC,D.uniqBy=cC,D.uniqWith=lC,D.unset=h_,D.unzip=Hl,D.unzipWith=Vg,D.update=d_,D.updateWith=p_,D.values=ks,D.valuesIn=g_,D.without=fC,D.words=d1,D.wrap=u3,D.xor=hC,D.xorBy=dC,D.xorWith=pC,D.zip=gC,D.zipObject=yC,D.zipObjectDeep=mC,D.zipWith=wC,D.entries=c1,D.entriesIn=l1,D.extend=o1,D.extendWith=vu,nf(D,D),D.add=g8,D.attempt=p1,D.camelCase=b_,D.capitalize=f1,D.ceil=y8,D.clamp=y_,D.clone=l3,D.cloneDeep=h3,D.cloneDeepWith=d3,D.cloneWith=f3,D.conformsTo=p3,D.deburr=h1,D.defaultTo=G_,D.divide=m8,D.endsWith=v_,D.eq=ur,D.escape=A_,D.escapeRegExp=S_,D.every=OC,D.find=FC,D.findIndex=Ng,D.findKey=W3,D.findLast=BC,D.findLastIndex=jg,D.findLastKey=K3,D.floor=w8,D.forEach=Wg,D.forEachRight=Kg,D.forIn=H3,D.forInRight=z3,D.forOwn=G3,D.forOwnRight=J3,D.get=Xl,D.gt=g3,D.gte=y3,D.has=Q3,D.hasIn=Ql,D.head=Mg,D.identity=Cn,D.includes=NC,D.indexOf=Bx,D.inRange=m_,D.invoke=t_,D.isArguments=Di,D.isArray=Ke,D.isArrayBuffer=m3,D.isArrayLike=En,D.isArrayLikeObject=zt,D.isBoolean=w3,D.isBuffer=ai,D.isDate=b3,D.isElement=v3,D.isEmpty=A3,D.isEqual=S3,D.isEqualWith=E3,D.isError=Jl,D.isFinite=x3,D.isFunction=Nr,D.isInteger=Zg,D.isLength=wu,D.isMap=e1,D.isMatch=C3,D.isMatchWith=_3,D.isNaN=k3,D.isNative=T3,D.isNil=I3,D.isNull=O3,D.isNumber=t1,D.isObject=$t,D.isObjectLike=Mt,D.isPlainObject=To,D.isRegExp=Yl,D.isSafeInteger=F3,D.isSet=n1,D.isString=bu,D.isSymbol=Dn,D.isTypedArray=_s,D.isUndefined=B3,D.isWeakMap=D3,D.isWeakSet=P3,D.join=Nx,D.kebabCase=E_,D.last=Jn,D.lastIndexOf=jx,D.lowerCase=x_,D.lowerFirst=C_,D.lt=R3,D.lte=L3,D.max=b8,D.maxBy=v8,D.mean=A8,D.meanBy=S8,D.min=E8,D.minBy=x8,D.stubArray=sf,D.stubFalse=of,D.stubObject=c8,D.stubString=l8,D.stubTrue=f8,D.multiply=C8,D.nth=$x,D.noConflict=t8,D.noop=rf,D.now=gu,D.pad=__,D.padEnd=k_,D.padStart=T_,D.parseInt=O_,D.random=w_,D.reduce=VC,D.reduceRight=qC,D.repeat=I_,D.replace=F_,D.result=u_,D.round=_8,D.runInContext=H,D.sample=KC,D.size=GC,D.snakeCase=B_,D.some=JC,D.sortedIndex=Hx,D.sortedIndexBy=zx,D.sortedIndexOf=Gx,D.sortedLastIndex=Jx,D.sortedLastIndexBy=Yx,D.sortedLastIndexOf=Xx,D.startCase=P_,D.startsWith=R_,D.subtract=k8,D.sum=T8,D.sumBy=O8,D.template=L_,D.times=h8,D.toFinite=jr,D.toInteger=Ge,D.toLength=i1,D.toLower=N_,D.toNumber=Yn,D.toSafeInteger=N3,D.toString=vt,D.toUpper=j_,D.trim=$_,D.trimEnd=M_,D.trimStart=U_,D.truncate=V_,D.unescape=q_,D.uniqueId=p8,D.upperCase=W_,D.upperFirst=Zl,D.each=Wg,D.eachRight=Kg,D.first=Mg,nf(D,function(){var r={};return br(D,function(s,c){xt.call(D.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),D.VERSION=i,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){D[r].placeholder=D}),Wn(["drop","take"],function(r,s){ot.prototype[r]=function(c){c=c===n?1:en(Ge(c),0);var m=this.__filtered__&&!s?new ot(this):this.clone();return m.__filtered__?m.__takeCount__=ln(c,m.__takeCount__):m.__views__.push({size:ln(c,me),type:r+(m.__dir__<0?"Right":"")}),m},ot.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Wn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==Ce||c==Re;ot.prototype[r]=function(T){var R=this.clone();return R.__iteratees__.push({iteratee:Ne(T,3),type:c}),R.__filtered__=R.__filtered__||m,R}}),Wn(["head","last"],function(r,s){var c="take"+(s?"Right":"");ot.prototype[r]=function(){return this[c](1).value()[0]}}),Wn(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");ot.prototype[r]=function(){return this.__filtered__?new ot(this):this[c](1)}}),ot.prototype.compact=function(){return this.filter(Cn)},ot.prototype.find=function(r){return this.filter(r).head()},ot.prototype.findLast=function(r){return this.reverse().find(r)},ot.prototype.invokeMap=Ze(function(r,s){return typeof r=="function"?new ot(this):this.map(function(c){return So(c,r,s)})}),ot.prototype.reject=function(r){return this.filter(mu(Ne(r)))},ot.prototype.slice=function(r,s){r=Ge(r);var c=this;return c.__filtered__&&(r>0||s<0)?new ot(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=Ge(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},ot.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ot.prototype.toArray=function(){return this.take(me)},br(ot.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),T=D[m?"take"+(s=="last"?"Right":""):s],R=m||/^find/.test(s);T&&(D.prototype[s]=function(){var $=this.__wrapped__,U=m?[1]:arguments,z=$ instanceof ot,ie=U[0],se=z||Ke($),ue=function(it){var at=T.apply(D,ei([it],U));return m&&ve?at[0]:at};se&&c&&typeof ie=="function"&&ie.length!=1&&(z=se=!1);var ve=this.__chain__,Ie=!!this.__actions__.length,je=R&&!ve,Qe=z&&!Ie;if(!R&&se){$=Qe?$:new ot(this);var $e=r.apply($,U);return $e.__actions__.push({func:du,args:[ue],thisArg:n}),new Hn($e,ve)}return je&&Qe?r.apply(this,U):($e=this.thru(ue),je?m?$e.value()[0]:$e.value():$e)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(r){var s=$a[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);D.prototype[r]=function(){var T=arguments;if(m&&!this.__chain__){var R=this.value();return s.apply(Ke(R)?R:[],T)}return this[c](function($){return s.apply(Ke($)?$:[],T)})}}),br(ot.prototype,function(r,s){var c=D[s];if(c){var m=c.name+"";xt.call(As,m)||(As[m]=[]),As[m].push({name:s,func:c})}}),As[ou(n,B).name]=[{name:"wrapper",func:n}],ot.prototype.clone=qS,ot.prototype.reverse=WS,ot.prototype.value=KS,D.prototype.at=vC,D.prototype.chain=AC,D.prototype.commit=SC,D.prototype.next=EC,D.prototype.plant=CC,D.prototype.reverse=_C,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=kC,D.prototype.first=D.prototype.head,go&&(D.prototype[go]=xC),D},ws=SS();Ci?((Ci.exports=ws)._=ws,tl._=ws):an._=ws}).call(Xn)}(ta,ta.exports);var Wr=ta.exports;const yt=Eu(Wr),u2={ShortenedText:Ye.div`
161
+ `)+ae+`return __p
162
+ }`;var Qe=o1(function(){return mt(L,Ie+"return "+ae).apply(n,$)});if(Qe.source=ae,zl(Qe))throw Qe;return Qe}function B_(r){return bt(r).toLowerCase()}function D_(r){return bt(r).toUpperCase()}function R_(r,s,c){if(r=bt(r),r&&(c||s===n))return g0(r);if(!r||!(s=Bn(s)))return r;var m=or(r),T=or(s),L=y0(m,T),$=m0(m,T)+1;return oi(m,L,$).join("")}function L_(r,s,c){if(r=bt(r),r&&(c||s===n))return r.slice(0,b0(r)+1);if(!r||!(s=Bn(s)))return r;var m=or(r),T=m0(m,or(s))+1;return oi(m,0,T).join("")}function P_(r,s,c){if(r=bt(r),r&&(c||s===n))return r.replace(Xr,"");if(!r||!(s=Bn(s)))return r;var m=or(r),T=y0(m,or(s));return oi(m,T).join("")}function N_(r,s){var c=le,m=ce;if(jt(s)){var T="separator"in s?s.separator:T;c="length"in s?ze(s.length):c,m="omission"in s?Bn(s.omission):m}r=bt(r);var L=r.length;if(gs(r)){var $=or(r);L=$.length}if(c>=L)return r;var U=c-ys(m);if(U<1)return m;var z=$?oi($,0,U).join(""):r.slice(0,U);if(T===n)return z+m;if($&&(U+=z.length-U),Gl(T)){if(r.slice(U).search(T)){var ie,se=z;for(T.global||(T=ll(T.source,bt(ft.exec(T))+"g")),T.lastIndex=0;ie=T.exec(se);)var ae=ie.index;z=z.slice(0,ae===n?U:ae)}}else if(r.indexOf(Bn(T),U)!=U){var ve=z.lastIndexOf(T);ve>-1&&(z=z.slice(0,ve))}return z+m}function j_(r){return r=bt(r),r&&Ai.test(r)?r.replace(st,dA):r}var $_=Es(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Xl=ag("toUpperCase");function s1(r,s,c){return r=bt(r),s=c?n:s,s===n?uA(r)?yA(r):ZS(r):r.match(s)||[]}var o1=Ze(function(r,s){try{return On(r,n,s)}catch(c){return zl(c)?c:new Ve(c)}}),M_=Lr(function(r,s){return Wn(s,function(c){c=Sr(c),Dr(r,c,Hl(r[c],r))}),r});function U_(r){var s=r==null?0:r.length,c=Pe();return r=s?Rt(r,function(m){if(typeof m[1]!="function")throw new Hn(u);return[c(m[0]),m[1]]}):[],Ze(function(m){for(var T=-1;++T<s;){var L=r[T];if(On(L[0],this,m))return On(L[1],this,m)}})}function V_(r){return dE(zn(r,p))}function Ql(r){return function(){return r}}function q_(r,s){return r==null||r!==r?s:r}var W_=cg(),H_=cg(!0);function Cn(r){return r}function Zl(r){return $0(typeof r=="function"?r:zn(r,p))}function K_(r){return U0(zn(r,p))}function z_(r,s){return V0(r,zn(s,p))}var G_=Ze(function(r,s){return function(c){return So(c,r,s)}}),J_=Ze(function(r,s){return function(c){return So(r,c,s)}});function ef(r,s,c){var m=rn(s),T=Za(s,m);c==null&&!(jt(s)&&(T.length||!m.length))&&(c=s,s=r,r=this,T=Za(s,rn(s)));var L=!(jt(c)&&"chain"in c)||!!c.chain,$=Nr(r);return Wn(T,function(U){var z=s[U];r[U]=z,$&&(r.prototype[U]=function(){var ie=this.__chain__;if(L||ie){var se=r(this.__wrapped__),ae=se.__actions__=An(this.__actions__);return ae.push({func:z,args:arguments,thisArg:r}),se.__chain__=ie,se}return z.apply(r,ei([this.value()],arguments))})}),r}function Y_(){return an._===this&&(an._=AA),this}function tf(){}function X_(r){return r=ze(r),Ze(function(s){return q0(s,r)})}var Q_=Bl(Rt),Z_=Bl(l0),e8=Bl(rl);function a1(r){return $l(r)?il(Sr(r)):OE(r)}function t8(r){return function(s){return r==null?n:Oi(r,s)}}var n8=fg(),r8=fg(!0);function nf(){return[]}function rf(){return!1}function i8(){return{}}function s8(){return""}function o8(){return!0}function a8(r,s){if(r=ze(r),r<1||r>xe)return[];var c=Se,m=ln(r,Se);s=Pe(s),r-=Se;for(var T=al(m,s);++c<r;)s(c);return T}function u8(r){return He(r)?Rt(r,Sr):Dn(r)?[r]:An(kg(bt(r)))}function c8(r){var s=++vA;return bt(r)+s}var l8=su(function(r,s){return r+s},0),f8=Dl("ceil"),h8=su(function(r,s){return r/s},1),d8=Dl("floor");function p8(r){return r&&r.length?Qa(r,Cn,wl):n}function g8(r,s){return r&&r.length?Qa(r,Pe(s,2),wl):n}function y8(r){return d0(r,Cn)}function m8(r,s){return d0(r,Pe(s,2))}function w8(r){return r&&r.length?Qa(r,Cn,Al):n}function b8(r,s){return r&&r.length?Qa(r,Pe(s,2),Al):n}var v8=su(function(r,s){return r*s},1),S8=Dl("round"),A8=su(function(r,s){return r-s},0);function E8(r){return r&&r.length?ol(r,Cn):0}function x8(r,s){return r&&r.length?ol(r,Pe(s,2)):0}return D.after=KC,D.ary=jg,D.assign=D3,D.assignIn=Qg,D.assignInWith=wu,D.assignWith=R3,D.at=L3,D.before=$g,D.bind=Hl,D.bindAll=M_,D.bindKey=Mg,D.castArray=i3,D.chain=Lg,D.chunk=dx,D.compact=px,D.concat=gx,D.cond=U_,D.conforms=V_,D.constant=Ql,D.countBy=EC,D.create=P3,D.curry=Ug,D.curryRight=Vg,D.debounce=qg,D.defaults=N3,D.defaultsDeep=j3,D.defer=zC,D.delay=GC,D.difference=yx,D.differenceBy=mx,D.differenceWith=wx,D.drop=bx,D.dropRight=vx,D.dropRightWhile=Sx,D.dropWhile=Ax,D.fill=Ex,D.filter=CC,D.flatMap=TC,D.flatMapDeep=IC,D.flatMapDepth=OC,D.flatten=Fg,D.flattenDeep=xx,D.flattenDepth=Cx,D.flip=JC,D.flow=W_,D.flowRight=H_,D.fromPairs=_x,D.functions=H3,D.functionsIn=K3,D.groupBy=FC,D.initial=Tx,D.intersection=Ix,D.intersectionBy=Ox,D.intersectionWith=Fx,D.invert=G3,D.invertBy=J3,D.invokeMap=DC,D.iteratee=Zl,D.keyBy=RC,D.keys=rn,D.keysIn=xn,D.map=hu,D.mapKeys=X3,D.mapValues=Q3,D.matches=K_,D.matchesProperty=z_,D.memoize=pu,D.merge=Z3,D.mergeWith=Zg,D.method=G_,D.methodOf=J_,D.mixin=ef,D.negate=gu,D.nthArg=X_,D.omit=e_,D.omitBy=t_,D.once=YC,D.orderBy=LC,D.over=Q_,D.overArgs=XC,D.overEvery=Z_,D.overSome=e8,D.partial=Kl,D.partialRight=Wg,D.partition=PC,D.pick=n_,D.pickBy=e1,D.property=a1,D.propertyOf=t8,D.pull=Lx,D.pullAll=Dg,D.pullAllBy=Px,D.pullAllWith=Nx,D.pullAt=jx,D.range=n8,D.rangeRight=r8,D.rearg=QC,D.reject=$C,D.remove=$x,D.rest=ZC,D.reverse=ql,D.sampleSize=UC,D.set=i_,D.setWith=s_,D.shuffle=VC,D.slice=Mx,D.sortBy=HC,D.sortedUniq=zx,D.sortedUniqBy=Gx,D.split=T_,D.spread=e3,D.tail=Jx,D.take=Yx,D.takeRight=Xx,D.takeRightWhile=Qx,D.takeWhile=Zx,D.tap=pC,D.throttle=t3,D.thru=fu,D.toArray=Jg,D.toPairs=t1,D.toPairsIn=n1,D.toPath=u8,D.toPlainObject=Xg,D.transform=o_,D.unary=n3,D.union=eC,D.unionBy=tC,D.unionWith=nC,D.uniq=rC,D.uniqBy=iC,D.uniqWith=sC,D.unset=a_,D.unzip=Wl,D.unzipWith=Rg,D.update=u_,D.updateWith=c_,D.values=_s,D.valuesIn=l_,D.without=oC,D.words=s1,D.wrap=r3,D.xor=aC,D.xorBy=uC,D.xorWith=cC,D.zip=lC,D.zipObject=fC,D.zipObjectDeep=hC,D.zipWith=dC,D.entries=t1,D.entriesIn=n1,D.extend=Qg,D.extendWith=wu,ef(D,D),D.add=l8,D.attempt=o1,D.camelCase=p_,D.capitalize=r1,D.ceil=f8,D.clamp=f_,D.clone=s3,D.cloneDeep=a3,D.cloneDeepWith=u3,D.cloneWith=o3,D.conformsTo=c3,D.deburr=i1,D.defaultTo=q_,D.divide=h8,D.endsWith=g_,D.eq=ur,D.escape=y_,D.escapeRegExp=m_,D.every=xC,D.find=_C,D.findIndex=Ig,D.findKey=$3,D.findLast=kC,D.findLastIndex=Og,D.findLastKey=M3,D.floor=d8,D.forEach=Pg,D.forEachRight=Ng,D.forIn=U3,D.forInRight=V3,D.forOwn=q3,D.forOwnRight=W3,D.get=Jl,D.gt=l3,D.gte=f3,D.has=z3,D.hasIn=Yl,D.head=Bg,D.identity=Cn,D.includes=BC,D.indexOf=kx,D.inRange=h_,D.invoke=Y3,D.isArguments=Di,D.isArray=He,D.isArrayBuffer=h3,D.isArrayLike=En,D.isArrayLikeObject=zt,D.isBoolean=d3,D.isBuffer=ai,D.isDate=p3,D.isElement=g3,D.isEmpty=y3,D.isEqual=m3,D.isEqualWith=w3,D.isError=zl,D.isFinite=b3,D.isFunction=Nr,D.isInteger=Hg,D.isLength=yu,D.isMap=Kg,D.isMatch=v3,D.isMatchWith=S3,D.isNaN=A3,D.isNative=E3,D.isNil=C3,D.isNull=x3,D.isNumber=zg,D.isObject=jt,D.isObjectLike=$t,D.isPlainObject=ko,D.isRegExp=Gl,D.isSafeInteger=_3,D.isSet=Gg,D.isString=mu,D.isSymbol=Dn,D.isTypedArray=Cs,D.isUndefined=k3,D.isWeakMap=T3,D.isWeakSet=I3,D.join=Bx,D.kebabCase=w_,D.last=Jn,D.lastIndexOf=Dx,D.lowerCase=b_,D.lowerFirst=v_,D.lt=O3,D.lte=F3,D.max=p8,D.maxBy=g8,D.mean=y8,D.meanBy=m8,D.min=w8,D.minBy=b8,D.stubArray=nf,D.stubFalse=rf,D.stubObject=i8,D.stubString=s8,D.stubTrue=o8,D.multiply=v8,D.nth=Rx,D.noConflict=Y_,D.noop=tf,D.now=du,D.pad=S_,D.padEnd=A_,D.padStart=E_,D.parseInt=x_,D.random=d_,D.reduce=NC,D.reduceRight=jC,D.repeat=C_,D.replace=__,D.result=r_,D.round=S8,D.runInContext=K,D.sample=MC,D.size=qC,D.snakeCase=k_,D.some=WC,D.sortedIndex=Ux,D.sortedIndexBy=Vx,D.sortedIndexOf=qx,D.sortedLastIndex=Wx,D.sortedLastIndexBy=Hx,D.sortedLastIndexOf=Kx,D.startCase=I_,D.startsWith=O_,D.subtract=A8,D.sum=E8,D.sumBy=x8,D.template=F_,D.times=a8,D.toFinite=jr,D.toInteger=ze,D.toLength=Yg,D.toLower=B_,D.toNumber=Yn,D.toSafeInteger=B3,D.toString=bt,D.toUpper=D_,D.trim=R_,D.trimEnd=L_,D.trimStart=P_,D.truncate=N_,D.unescape=j_,D.uniqueId=c8,D.upperCase=$_,D.upperFirst=Xl,D.each=Pg,D.eachRight=Ng,D.first=Bg,ef(D,function(){var r={};return br(D,function(s,c){St.call(D.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),D.VERSION=i,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){D[r].placeholder=D}),Wn(["drop","take"],function(r,s){ot.prototype[r]=function(c){c=c===n?1:en(ze(c),0);var m=this.__filtered__&&!s?new ot(this):this.clone();return m.__filtered__?m.__takeCount__=ln(c,m.__takeCount__):m.__views__.push({size:ln(c,Se),type:r+(m.__dir__<0?"Right":"")}),m},ot.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Wn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==he||c==Le;ot.prototype[r]=function(T){var L=this.clone();return L.__iteratees__.push({iteratee:Pe(T,3),type:c}),L.__filtered__=L.__filtered__||m,L}}),Wn(["head","last"],function(r,s){var c="take"+(s?"Right":"");ot.prototype[r]=function(){return this[c](1).value()[0]}}),Wn(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");ot.prototype[r]=function(){return this.__filtered__?new ot(this):this[c](1)}}),ot.prototype.compact=function(){return this.filter(Cn)},ot.prototype.find=function(r){return this.filter(r).head()},ot.prototype.findLast=function(r){return this.reverse().find(r)},ot.prototype.invokeMap=Ze(function(r,s){return typeof r=="function"?new ot(this):this.map(function(c){return So(c,r,s)})}),ot.prototype.reject=function(r){return this.filter(gu(Pe(r)))},ot.prototype.slice=function(r,s){r=ze(r);var c=this;return c.__filtered__&&(r>0||s<0)?new ot(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=ze(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},ot.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ot.prototype.toArray=function(){return this.take(Se)},br(ot.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),T=D[m?"take"+(s=="last"?"Right":""):s],L=m||/^find/.test(s);T&&(D.prototype[s]=function(){var $=this.__wrapped__,U=m?[1]:arguments,z=$ instanceof ot,ie=U[0],se=z||He($),ae=function(it){var at=T.apply(D,ei([it],U));return m&&ve?at[0]:at};se&&c&&typeof ie=="function"&&ie.length!=1&&(z=se=!1);var ve=this.__chain__,Ie=!!this.__actions__.length,je=L&&!ve,Qe=z&&!Ie;if(!L&&se){$=Qe?$:new ot(this);var $e=r.apply($,U);return $e.__actions__.push({func:fu,args:[ae],thisArg:n}),new Kn($e,ve)}return je&&Qe?r.apply(this,U):($e=this.thru(ae),je?m?$e.value()[0]:$e.value():$e)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(r){var s=Na[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);D.prototype[r]=function(){var T=arguments;if(m&&!this.__chain__){var L=this.value();return s.apply(He(L)?L:[],T)}return this[c](function($){return s.apply(He($)?$:[],T)})}}),br(ot.prototype,function(r,s){var c=D[s];if(c){var m=c.name+"";St.call(vs,m)||(vs[m]=[]),vs[m].push({name:s,func:c})}}),vs[iu(n,B).name]=[{name:"wrapper",func:n}],ot.prototype.clone=jA,ot.prototype.reverse=$A,ot.prototype.value=MA,D.prototype.at=gC,D.prototype.chain=yC,D.prototype.commit=mC,D.prototype.next=wC,D.prototype.plant=vC,D.prototype.reverse=SC,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=AC,D.prototype.first=D.prototype.head,po&&(D.prototype[po]=bC),D},ms=mA();Ci?((Ci.exports=ms)._=ms,Zc._=ms):an._=ms}).call(Xn)}(ea,ea.exports);var Wr=ea.exports;const Ut=Su(Wr),e2={ShortenedText:Je.div`
163
163
  max-width: ${({$maxWidth:e})=>e}px;
164
164
  overflow: hidden;
165
165
  white-space: nowrap;
166
166
  text-overflow: ellipsis;
167
- `},zi=({text:e,trimLength:t,maxWidth:n=200})=>{if(t){const i=e.substring(0,t);return A.jsx(q.Tooltip,{title:e,placement:"top",children:i})}return A.jsx(q.Tooltip,{title:e,children:A.jsx(u2.ShortenedText,{$maxWidth:n,children:e})})},c2=({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i,close:o})=>{const a=(l,f)=>{f({closeDropdown:!1})},u=l=>{l()};return A.jsxs("div",{style:{padding:8},onKeyDown:l=>l.stopPropagation(),children:[A.jsx(q.Input,{placeholder:"search",value:t[0],onChange:l=>{e(l.target.value?[l.target.value]:[]),a(l.target.value?[l.target.value]:[],n)},onPressEnter:()=>a(t,n),style:{marginBottom:8,display:"block"}}),A.jsxs(q.Space,{children:[A.jsx(q.Button,{onClick:()=>{i&&(i(),u(i)),a([],n)},size:"small",style:{width:90},children:"Reset"}),A.jsx(q.Button,{type:"link",size:"small",onClick:()=>{o()},children:"close"})]})]})},l2=Ye.div`
167
+ `},zi=({text:e,trimLength:t,maxWidth:n=200})=>{if(t){const i=e.substring(0,t);return S.jsx(q.Tooltip,{title:e,placement:"top",children:i})}return S.jsx(q.Tooltip,{title:e,children:S.jsx(e2.ShortenedText,{$maxWidth:n,children:e})})},t2=({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i,close:o})=>{const a=(l,f)=>{f({closeDropdown:!1})},u=l=>{l()};return S.jsxs("div",{style:{padding:8},onKeyDown:l=>l.stopPropagation(),children:[S.jsx(q.Input,{placeholder:"search",value:t[0],onChange:l=>{e(l.target.value?[l.target.value]:[]),a(l.target.value?[l.target.value]:[],n)},onPressEnter:()=>a(t,n),style:{marginBottom:8,display:"block"}}),S.jsxs(q.Space,{children:[S.jsx(q.Button,{onClick:()=>{i&&(i(),u(i)),a([],n)},size:"small",style:{width:90},children:"Reset"}),S.jsx(q.Button,{type:"link",size:"small",onClick:()=>{o()},children:"close"})]})]})},n2=Je.div`
168
168
  td {
169
169
  cursor: ${({$isCursorPointer:e})=>e&&"pointer"};
170
170
  }
@@ -204,7 +204,7 @@ function print() { __p += __j.call(arguments, '') }
204
204
  && .ant-table-expanded-row-fixed {
205
205
  width: auto !important;
206
206
  }
207
- `,f2=Ye.div`
207
+ `,r2=Je.div`
208
208
  && .ant-table-row .hideable {
209
209
  display: none;
210
210
  }
@@ -214,30 +214,30 @@ function print() { __p += __j.call(arguments, '') }
214
214
  grid-template-columns: repeat(2, 1fr);
215
215
  column-gap: 4px;
216
216
  }
217
- `,Wh={TableContainer:l2,HideableControls:f2},Kh=Ye(q.Button)`
217
+ `,Vh={TableContainer:n2,HideableControls:r2},qh=Je(q.Button)`
218
218
  height: 24px !important;
219
- `,h2=Ye.div`
219
+ `,i2=Je.div`
220
220
  text-align: ${({$align:e})=>e};
221
- `,Hh=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>A.jsx(q.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?A.jsxs(q.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),A.jsx(q.Tooltip,{title:A.jsx(A.Fragment,{children:n(e.slice(t))}),children:A.jsxs(q.Tag,{children:["+",e.length-t]},"more")})]}):A.jsx(q.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},zh=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),Gh=({columns:e,additionalPrinterColumnsUndefinedValues:t,additionalPrinterColumnsTrimLengths:n,additionalPrinterColumnsColWidths:i})=>{if(e)return e.map(o=>{const a=t?.find(({key:f})=>f===o.key)?.value,u=n?.find(({key:f})=>f===o.key)?.value,l=i?.find(({key:f})=>f===o.key)?.value;return{...o,render:f=>typeof f=="object"&&!Array.isArray(f)?zh(f)?A.jsx(Hh,{tags:Object.entries(f).map(([h,g])=>`${h}: ${String(g)}`),trimLength:u}):A.jsx(zi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(h=>h&&!Array.isArray(h))?A.jsx(Hh,{tags:f.map(h=>h.toLocaleString()),trimLength:u}):A.jsx(zi,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?A.jsx(wn.CheckOutlined,{style:{color:"green"}}):A.jsx(wn.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?A.jsx(zi,{trimLength:u,text:String(f)}):typeof f=="string"?A.jsx(zi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?A.jsx(zi,{trimLength:u,text:a}):A.jsx(zi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:h,confirm:g,clearFilters:p,close:v})=>A.jsx(c2,{setSelectedKeys:f,selectedKeys:h,confirm:g,clearFilters:p,close:v}),filterIcon:f=>A.jsx(wn.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,h)=>{const{dataIndex:g}=o,p=Array.isArray(g)?Wr.get(h,g):h[g];if(typeof p=="object"&&!Array.isArray(p))return JSON.stringify(p).toLowerCase().includes(f.toLowerCase());if(Array.isArray(p))return p.some(v=>v.toLowerCase().includes(f.toLowerCase()));if(typeof p=="boolean"){const v=f.toLowerCase()==="true";return p===v}return typeof p=="number"?String(p).includes(f.toLowerCase()):typeof p=="string"?p.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,h)=>{const{dataIndex:g}=o,p=Array.isArray(g)?Wr.get(f,g):f[g],v=Array.isArray(g)?Wr.get(h,g):h[g];return typeof p=="object"&&!Array.isArray(p)&&p!==null?typeof v=="object"&&!Array.isArray(v)&&v!==null?Object.keys(p).length-Object.keys(v).length:Object.keys(p).length?-1:1:Array.isArray(p)?Array.isArray(v)?p.length-v.length:p.length?-1:1:typeof p=="boolean"?p===v?0:p?-1:1:typeof p=="number"?typeof v=="number"?p-v:p?-1:1:typeof p=="string"?typeof v=="string"?p.localeCompare(v):p?-1:1:0}}})},Jh=({enrichedColumns:e,navigate:t,baseprefix:n,editIcon:i,deleteIcon:o})=>{if(e)return[...e,{title:"",dataIndex:"internalDataForControls",key:"controls",className:"controls",width:120,render:a=>A.jsxs(h2,{$align:"right",className:"hideable",children:[A.jsx(Kh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),t(`${n}/${a.cluster}${a.namespace?`/${a.namespace}`:""}${a.syntheticProject?`/${a.syntheticProject}`:""}/${a.pathPrefix}/${a.apiGroupAndVersion}/${a.typeName}/${a.entryName}?backlink=${a.backlink}`)},icon:i||A.jsx(wn.EditOutlined,{size:14}),disabled:!a.permissions.canUpdate}),A.jsx(Kh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),a.onDeleteHandle(a.entryName,`${a.deletePathPrefix}/${a.apiGroupAndVersion}${a.namespace?`/namespaces/${a.namespace}`:""}/${a.typeName}/${a.entryName}`)},icon:o||A.jsx(wn.DeleteOutlined,{size:14}),disabled:!a.permissions.canDelete})]})}]},Yh=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:h,withoutControls:g=!1,tableProps:p})=>{const v=lr.useNavigate();if(!i)return null;const C=Gh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!C)return null;const S=g?C:Jh({enrichedColumns:C,navigate:v,baseprefix:t,editIcon:p?.editIcon,deleteIcon:p?.deleteIcon});if(!S)return null;const E=b=>`Total: ${b}`;return A.jsx(Wh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:p?.borderless,$isTotalLeft:p?.isTotalLeft,children:A.jsx(Wh.HideableControls,{children:A.jsx(q.Table,{dataSource:n,columns:S,pagination:{position:p?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:E},scroll:{x:"max-content"},rowSelection:h?{type:"checkbox",selectedRowKeys:h.selectedRowKeys,onChange:(b,B)=>{h.onChange(b,B.map(({internalDataForControls:N})=>({name:N.entryName,endpoint:`${N.deletePathPrefix}/${N.apiGroupAndVersion}${N.namespace?`/namespaces/${N.namespace}`:""}/${N.typeName}/${N.entryName}`})))}}:void 0,onRow:b=>({onClick:()=>{if(o&&a){const B=Wr.get(b,a),N=typeof B=="string"?B:JSON.stringify(B),_=o.replaceAll("~recordValue~",N);v(_)}}})})})})};function na(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(h,g){if(!o[h]){if(!i[h]){var p=typeof na=="function"&&na;if(!g&&p)return p(h,!0);if(l)return l(h,!0);var v=new Error("Cannot find module '"+h+"'");throw v.code="MODULE_NOT_FOUND",v}var C=o[h]={exports:{}};i[h][0].call(C.exports,function(S){var E=i[h][1][S];return u(E||S)},C,C.exports,n,i,o,a)}return o[h].exports}for(var l=typeof na=="function"&&na,f=0;f<a.length;f++)u(a[f]);return u}({"./aesprim":[function(n,i,o){(function(a,u){u(typeof o<"u"?o:a.esprima={})})(this,function(a){var u,l,f,h,g,p,v,C,S,E,b,B,N,_,k,F,P,I;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},l={},l[u.BooleanLiteral]="Boolean",l[u.EOF]="<end>",l[u.Identifier]="Identifier",l[u.Keyword]="Keyword",l[u.NullLiteral]="Null",l[u.NumericLiteral]="Numeric",l[u.Punctuator]="Punctuator",l[u.StringLiteral]="String",l[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],h={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},g={Data:1,Get:2,Set:4},p={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},v={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function W(d,x){if(!d)throw new Error("ASSERT: "+x)}function J(d){return d>=48&&d<=57}function ce(d){return"0123456789abcdefABCDEF".indexOf(d)>=0}function le(d){return"01234567".indexOf(d)>=0}function ge(d){return d===32||d===9||d===11||d===12||d===160||d>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(d)>=0}function ye(d){return d===10||d===13||d===8232||d===8233}function Ce(d){return d==64||d===36||d===95||d>=65&&d<=90||d>=97&&d<=122||d===92||d>=128&&v.NonAsciiIdentifierStart.test(String.fromCharCode(d))}function pe(d){return d===36||d===95||d>=65&&d<=90||d>=97&&d<=122||d>=48&&d<=57||d===92||d>=128&&v.NonAsciiIdentifierPart.test(String.fromCharCode(d))}function Re(d){switch(d){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function Se(d){switch(d){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function Ee(d){return d==="eval"||d==="arguments"}function He(d){if(E&&Se(d))return!0;switch(d.length){case 2:return d==="if"||d==="in"||d==="do";case 3:return d==="var"||d==="for"||d==="new"||d==="try"||d==="let";case 4:return d==="this"||d==="else"||d==="case"||d==="void"||d==="with"||d==="enum";case 5:return d==="while"||d==="break"||d==="catch"||d==="throw"||d==="const"||d==="yield"||d==="class"||d==="super";case 6:return d==="return"||d==="typeof"||d==="delete"||d==="switch"||d==="export"||d==="import";case 7:return d==="default"||d==="finally"||d==="extends";case 8:return d==="function"||d==="continue"||d==="debugger";case 10:return d==="instanceof";default:return!1}}function Ae(d,x,j,K,ne){var de;W(typeof j=="number","Comment must have valid position"),!(P.lastCommentStart>=j)&&(P.lastCommentStart=j,de={type:d,value:x},I.range&&(de.range=[j,K]),I.loc&&(de.loc=ne),I.comments.push(de),I.attachComment&&(I.leadingComments.push(de),I.trailingComments.push(de)))}function me(d){var x,j,K,ne;for(x=b-d,j={start:{line:B,column:b-N-d}};b<_;)if(K=S.charCodeAt(b),++b,ye(K)){I.comments&&(ne=S.slice(x+d,b-1),j.end={line:B,column:b-N-1},Ae("Line",ne,x,b-1,j)),K===13&&S.charCodeAt(b)===10&&++b,++B,N=b;return}I.comments&&(ne=S.slice(x+d,b),j.end={line:B,column:b-N},Ae("Line",ne,x,b,j))}function Me(){var d,x,j,K;for(I.comments&&(d=b-2,x={start:{line:B,column:b-N-2}});b<_;)if(j=S.charCodeAt(b),ye(j))j===13&&S.charCodeAt(b+1)===10&&++b,++B,++b,N=b,b>=_&&we({},p.UnexpectedToken,"ILLEGAL");else if(j===42){if(S.charCodeAt(b+1)===47){++b,++b,I.comments&&(K=S.slice(d+2,b-2),x.end={line:B,column:b-N},Ae("Block",K,d,b,x));return}++b}else++b;we({},p.UnexpectedToken,"ILLEGAL")}function Y(){var d,x;for(x=b===0;b<_;)if(d=S.charCodeAt(b),ge(d))++b;else if(ye(d))++b,d===13&&S.charCodeAt(b)===10&&++b,++B,N=b,x=!0;else if(d===47)if(d=S.charCodeAt(b+1),d===47)++b,++b,me(2),x=!0;else if(d===42)++b,++b,Me();else break;else if(x&&d===45)if(S.charCodeAt(b+1)===45&&S.charCodeAt(b+2)===62)b+=3,me(3);else break;else if(d===60)if(S.slice(b+1,b+4)==="!--")++b,++b,++b,++b,me(4);else break;else break}function Q(d){var x,j,K,ne=0;for(j=d==="u"?4:2,x=0;x<j;++x)if(b<_&&ce(S[b]))K=S[b++],ne=ne*16+"0123456789abcdef".indexOf(K.toLowerCase());else return"";return String.fromCharCode(ne)}function ae(){var d,x;for(d=S.charCodeAt(b++),x=String.fromCharCode(d),d===92&&(S.charCodeAt(b)!==117&&we({},p.UnexpectedToken,"ILLEGAL"),++b,d=Q("u"),(!d||d==="\\"||!Ce(d.charCodeAt(0)))&&we({},p.UnexpectedToken,"ILLEGAL"),x=d);b<_&&(d=S.charCodeAt(b),!!pe(d));)++b,x+=String.fromCharCode(d),d===92&&(x=x.substr(0,x.length-1),S.charCodeAt(b)!==117&&we({},p.UnexpectedToken,"ILLEGAL"),++b,d=Q("u"),(!d||d==="\\"||!pe(d.charCodeAt(0)))&&we({},p.UnexpectedToken,"ILLEGAL"),x+=d);return x}function Be(){var d,x;for(d=b++;b<_;){if(x=S.charCodeAt(b),x===92)return b=d,ae();if(pe(x))++b;else break}return S.slice(d,b)}function We(){var d,x,j;return d=b,x=S.charCodeAt(b)===92?ae():Be(),x.length===1?j=u.Identifier:He(x)?j=u.Keyword:x==="null"?j=u.NullLiteral:x==="true"||x==="false"?j=u.BooleanLiteral:j=u.Identifier,{type:j,value:x,lineNumber:B,lineStart:N,start:d,end:b}}function _e(){var d=b,x=S.charCodeAt(b),j,K=S[b],ne,de,ze;switch(x){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++b,I.tokenize&&(x===40?I.openParenToken=I.tokens.length:x===123&&(I.openCurlyToken=I.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(x),lineNumber:B,lineStart:N,start:d,end:b};default:if(j=S.charCodeAt(b+1),j===61)switch(x){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return b+=2,{type:u.Punctuator,value:String.fromCharCode(x)+String.fromCharCode(j),lineNumber:B,lineStart:N,start:d,end:b};case 33:case 61:return b+=2,S.charCodeAt(b)===61&&++b,{type:u.Punctuator,value:S.slice(d,b),lineNumber:B,lineStart:N,start:d,end:b}}}if(ze=S.substr(b,4),ze===">>>=")return b+=4,{type:u.Punctuator,value:ze,lineNumber:B,lineStart:N,start:d,end:b};if(de=ze.substr(0,3),de===">>>"||de==="<<="||de===">>=")return b+=3,{type:u.Punctuator,value:de,lineNumber:B,lineStart:N,start:d,end:b};if(ne=de.substr(0,2),K===ne[1]&&"+-<>&|".indexOf(K)>=0||ne==="=>")return b+=2,{type:u.Punctuator,value:ne,lineNumber:B,lineStart:N,start:d,end:b};if("<>=!+-*%&|^/".indexOf(K)>=0)return++b,{type:u.Punctuator,value:K,lineNumber:B,lineStart:N,start:d,end:b};we({},p.UnexpectedToken,"ILLEGAL")}function De(d){for(var x="";b<_&&ce(S[b]);)x+=S[b++];return x.length===0&&we({},p.UnexpectedToken,"ILLEGAL"),Ce(S.charCodeAt(b))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+x,16),lineNumber:B,lineStart:N,start:d,end:b}}function Oe(d){for(var x="0"+S[b++];b<_&&le(S[b]);)x+=S[b++];return(Ce(S.charCodeAt(b))||J(S.charCodeAt(b)))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(x,8),octal:!0,lineNumber:B,lineStart:N,start:d,end:b}}function Le(){var d,x,j;if(j=S[b],W(J(j.charCodeAt(0))||j===".","Numeric literal must start with a decimal digit or a decimal point"),x=b,d="",j!=="."){if(d=S[b++],j=S[b],d==="0"){if(j==="x"||j==="X")return++b,De(x);if(le(j))return Oe(x);j&&J(j.charCodeAt(0))&&we({},p.UnexpectedToken,"ILLEGAL")}for(;J(S.charCodeAt(b));)d+=S[b++];j=S[b]}if(j==="."){for(d+=S[b++];J(S.charCodeAt(b));)d+=S[b++];j=S[b]}if(j==="e"||j==="E")if(d+=S[b++],j=S[b],(j==="+"||j==="-")&&(d+=S[b++]),J(S.charCodeAt(b)))for(;J(S.charCodeAt(b));)d+=S[b++];else we({},p.UnexpectedToken,"ILLEGAL");return Ce(S.charCodeAt(b))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(d),lineNumber:B,lineStart:N,start:x,end:b}}function Tt(){var d="",x,j,K,ne,de,ze,mt=!1,Qt,Ht;for(Qt=B,Ht=N,x=S[b],W(x==="'"||x==='"',"String literal must starts with a quote"),j=b,++b;b<_;)if(K=S[b++],K===x){x="";break}else if(K==="\\")if(K=S[b++],!K||!ye(K.charCodeAt(0)))switch(K){case"u":case"x":ze=b,de=Q(K),de?d+=de:(b=ze,d+=K);break;case"n":d+=`
222
- `;break;case"r":d+="\r";break;case"t":d+=" ";break;case"b":d+="\b";break;case"f":d+="\f";break;case"v":d+="\v";break;default:le(K)?(ne="01234567".indexOf(K),ne!==0&&(mt=!0),b<_&&le(S[b])&&(mt=!0,ne=ne*8+"01234567".indexOf(S[b++]),"0123".indexOf(K)>=0&&b<_&&le(S[b])&&(ne=ne*8+"01234567".indexOf(S[b++]))),d+=String.fromCharCode(ne)):d+=K;break}else++B,K==="\r"&&S[b]===`
223
- `&&++b,N=b;else{if(ye(K.charCodeAt(0)))break;d+=K}return x!==""&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:d,octal:mt,startLineNumber:Qt,startLineStart:Ht,lineNumber:B,lineStart:N,start:j,end:b}}function nn(d,x){var j;try{j=new RegExp(d,x)}catch{we({},p.InvalidRegExp)}return j}function Lt(){var d,x,j,K,ne;for(d=S[b],W(d==="/","Regular expression literal must start with a slash"),x=S[b++],j=!1,K=!1;b<_;)if(d=S[b++],x+=d,d==="\\")d=S[b++],ye(d.charCodeAt(0))&&we({},p.UnterminatedRegExp),x+=d;else if(ye(d.charCodeAt(0)))we({},p.UnterminatedRegExp);else if(j)d==="]"&&(j=!1);else if(d==="/"){K=!0;break}else d==="["&&(j=!0);return K||we({},p.UnterminatedRegExp),ne=x.substr(1,x.length-2),{value:ne,literal:x}}function Nt(){var d,x,j,K;for(x="",j="";b<_&&(d=S[b],!!pe(d.charCodeAt(0)));)if(++b,d==="\\"&&b<_)if(d=S[b],d==="u"){if(++b,K=b,d=Q("u"),d)for(j+=d,x+="\\u";K<b;++K)x+=S[K];else b=K,j+="u",x+="\\u";Te({},p.UnexpectedToken,"ILLEGAL")}else x+="\\",Te({},p.UnexpectedToken,"ILLEGAL");else j+=d,x+=d;return{value:j,literal:x}}function jt(){var d,x,j,K;return F=null,Y(),d=b,x=Lt(),j=Nt(),K=nn(x.value,j.value),I.tokenize?{type:u.RegularExpression,value:K,lineNumber:B,lineStart:N,start:d,end:b}:{literal:x.literal+j.literal,value:K,start:d,end:b}}function bt(){var d,x,j,K;return Y(),d=b,x={start:{line:B,column:b-N}},j=jt(),x.end={line:B,column:b-N},I.tokenize||(I.tokens.length>0&&(K=I.tokens[I.tokens.length-1],K.range[0]===d&&K.type==="Punctuator"&&(K.value==="/"||K.value==="/=")&&I.tokens.pop()),I.tokens.push({type:"RegularExpression",value:j.literal,range:[d,b],loc:x})),j}function kn(d){return d.type===u.Identifier||d.type===u.Keyword||d.type===u.BooleanLiteral||d.type===u.NullLiteral}function An(){var d,x;if(d=I.tokens[I.tokens.length-1],!d)return bt();if(d.type==="Punctuator"){if(d.value==="]")return _e();if(d.value===")")return x=I.tokens[I.openParenToken-1],x&&x.type==="Keyword"&&(x.value==="if"||x.value==="while"||x.value==="for"||x.value==="with")?bt():_e();if(d.value==="}"){if(I.tokens[I.openCurlyToken-3]&&I.tokens[I.openCurlyToken-3].type==="Keyword"){if(x=I.tokens[I.openCurlyToken-4],!x)return _e()}else if(I.tokens[I.openCurlyToken-4]&&I.tokens[I.openCurlyToken-4].type==="Keyword"){if(x=I.tokens[I.openCurlyToken-5],!x)return bt()}else return _e();return f.indexOf(x.value)>=0?_e():bt()}return bt()}return d.type==="Keyword"?bt():_e()}function ke(){var d;return Y(),b>=_?{type:u.EOF,lineNumber:B,lineStart:N,start:b,end:b}:(d=S.charCodeAt(b),Ce(d)?We():d===40||d===41||d===59?_e():d===39||d===34?Tt():d===46?J(S.charCodeAt(b+1))?Le():_e():J(d)?Le():I.tokenize&&d===47?An():_e())}function Pe(){var d,x,j;return Y(),d={start:{line:B,column:b-N}},x=ke(),d.end={line:B,column:b-N},x.type!==u.EOF&&(j=S.slice(x.start,x.end),I.tokens.push({type:l[x.type],value:j,range:[x.start,x.end],loc:d})),x}function he(){var d;return d=F,b=d.end,B=d.lineNumber,N=d.lineStart,F=typeof I.tokens<"u"?Pe():ke(),b=d.end,B=d.lineNumber,N=d.lineStart,d}function At(){var d,x,j;d=b,x=B,j=N,F=typeof I.tokens<"u"?Pe():ke(),b=d,B=x,N=j}function St(d,x){this.line=d,this.column=x}function Et(d,x,j,K){this.start=new St(d,x),this.end=new St(j,K)}C={name:"SyntaxTree",processComment:function(d){var x,j;if(!(d.type===h.Program&&d.body.length>0)){for(I.trailingComments.length>0?I.trailingComments[0].range[0]>=d.range[1]?(j=I.trailingComments,I.trailingComments=[]):I.trailingComments.length=0:I.bottomRightStack.length>0&&I.bottomRightStack[I.bottomRightStack.length-1].trailingComments&&I.bottomRightStack[I.bottomRightStack.length-1].trailingComments[0].range[0]>=d.range[1]&&(j=I.bottomRightStack[I.bottomRightStack.length-1].trailingComments,delete I.bottomRightStack[I.bottomRightStack.length-1].trailingComments);I.bottomRightStack.length>0&&I.bottomRightStack[I.bottomRightStack.length-1].range[0]>=d.range[0];)x=I.bottomRightStack.pop();x?x.leadingComments&&x.leadingComments[x.leadingComments.length-1].range[1]<=d.range[0]&&(d.leadingComments=x.leadingComments,delete x.leadingComments):I.leadingComments.length>0&&I.leadingComments[I.leadingComments.length-1].range[1]<=d.range[0]&&(d.leadingComments=I.leadingComments,I.leadingComments=[]),j&&(d.trailingComments=j),I.bottomRightStack.push(d)}},markEnd:function(d,x){return I.range&&(d.range=[x.start,b]),I.loc&&(d.loc=new Et(x.startLineNumber===void 0?x.lineNumber:x.startLineNumber,x.start-(x.startLineStart===void 0?x.lineStart:x.startLineStart),B,b-N),this.postProcess(d)),I.attachComment&&this.processComment(d),d},postProcess:function(d){return I.source&&(d.loc.source=I.source),d},createArrayExpression:function(d){return{type:h.ArrayExpression,elements:d}},createAssignmentExpression:function(d,x,j){return{type:h.AssignmentExpression,operator:d,left:x,right:j}},createBinaryExpression:function(d,x,j){var K=d==="||"||d==="&&"?h.LogicalExpression:h.BinaryExpression;return{type:K,operator:d,left:x,right:j}},createBlockStatement:function(d){return{type:h.BlockStatement,body:d}},createBreakStatement:function(d){return{type:h.BreakStatement,label:d}},createCallExpression:function(d,x){return{type:h.CallExpression,callee:d,arguments:x}},createCatchClause:function(d,x){return{type:h.CatchClause,param:d,body:x}},createConditionalExpression:function(d,x,j){return{type:h.ConditionalExpression,test:d,consequent:x,alternate:j}},createContinueStatement:function(d){return{type:h.ContinueStatement,label:d}},createDebuggerStatement:function(){return{type:h.DebuggerStatement}},createDoWhileStatement:function(d,x){return{type:h.DoWhileStatement,body:d,test:x}},createEmptyStatement:function(){return{type:h.EmptyStatement}},createExpressionStatement:function(d){return{type:h.ExpressionStatement,expression:d}},createForStatement:function(d,x,j,K){return{type:h.ForStatement,init:d,test:x,update:j,body:K}},createForInStatement:function(d,x,j){return{type:h.ForInStatement,left:d,right:x,body:j,each:!1}},createFunctionDeclaration:function(d,x,j,K){return{type:h.FunctionDeclaration,id:d,params:x,defaults:j,body:K,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(d,x,j,K){return{type:h.FunctionExpression,id:d,params:x,defaults:j,body:K,rest:null,generator:!1,expression:!1}},createIdentifier:function(d){return{type:h.Identifier,name:d}},createIfStatement:function(d,x,j){return{type:h.IfStatement,test:d,consequent:x,alternate:j}},createLabeledStatement:function(d,x){return{type:h.LabeledStatement,label:d,body:x}},createLiteral:function(d){return{type:h.Literal,value:d.value,raw:S.slice(d.start,d.end)}},createMemberExpression:function(d,x,j){return{type:h.MemberExpression,computed:d==="[",object:x,property:j}},createNewExpression:function(d,x){return{type:h.NewExpression,callee:d,arguments:x}},createObjectExpression:function(d){return{type:h.ObjectExpression,properties:d}},createPostfixExpression:function(d,x){return{type:h.UpdateExpression,operator:d,argument:x,prefix:!1}},createProgram:function(d){return{type:h.Program,body:d}},createProperty:function(d,x,j){return{type:h.Property,key:x,value:j,kind:d}},createReturnStatement:function(d){return{type:h.ReturnStatement,argument:d}},createSequenceExpression:function(d){return{type:h.SequenceExpression,expressions:d}},createSwitchCase:function(d,x){return{type:h.SwitchCase,test:d,consequent:x}},createSwitchStatement:function(d,x){return{type:h.SwitchStatement,discriminant:d,cases:x}},createThisExpression:function(){return{type:h.ThisExpression}},createThrowStatement:function(d){return{type:h.ThrowStatement,argument:d}},createTryStatement:function(d,x,j,K){return{type:h.TryStatement,block:d,guardedHandlers:x,handlers:j,finalizer:K}},createUnaryExpression:function(d,x){return d==="++"||d==="--"?{type:h.UpdateExpression,operator:d,argument:x,prefix:!0}:{type:h.UnaryExpression,operator:d,argument:x,prefix:!0}},createVariableDeclaration:function(d,x){return{type:h.VariableDeclaration,declarations:d,kind:x}},createVariableDeclarator:function(d,x){return{type:h.VariableDeclarator,id:d,init:x}},createWhileStatement:function(d,x){return{type:h.WhileStatement,test:d,body:x}},createWithStatement:function(d,x){return{type:h.WithStatement,object:d,body:x}}};function rt(){var d,x,j,K;return d=b,x=B,j=N,Y(),K=B!==x,b=d,B=x,N=j,K}function we(d,x){var j,K=Array.prototype.slice.call(arguments,2),ne=x.replace(/%(\d)/g,function(de,ze){return W(ze<K.length,"Message reference must be in range"),K[ze]});throw typeof d.lineNumber=="number"?(j=new Error("Line "+d.lineNumber+": "+ne),j.index=d.start,j.lineNumber=d.lineNumber,j.column=d.start-N+1):(j=new Error("Line "+B+": "+ne),j.index=b,j.lineNumber=B,j.column=b-N+1),j.description=ne,j}function Te(){try{we.apply(null,arguments)}catch(d){if(I.errors)I.errors.push(d);else throw d}}function ut(d){if(d.type===u.EOF&&we(d,p.UnexpectedEOS),d.type===u.NumericLiteral&&we(d,p.UnexpectedNumber),d.type===u.StringLiteral&&we(d,p.UnexpectedString),d.type===u.Identifier&&we(d,p.UnexpectedIdentifier),d.type===u.Keyword){if(Re(d.value))we(d,p.UnexpectedReserved);else if(E&&Se(d.value)){Te(d,p.StrictReservedWord);return}we(d,p.UnexpectedToken,d.value)}we(d,p.UnexpectedToken,d.value)}function O(d){var x=he();(x.type!==u.Punctuator||x.value!==d)&&ut(x)}function y(d){var x=he();(x.type!==u.Keyword||x.value!==d)&&ut(x)}function w(d){return F.type===u.Punctuator&&F.value===d}function L(d){return F.type===u.Keyword&&F.value===d}function V(){var d;return F.type!==u.Punctuator?!1:(d=F.value,d==="="||d==="*="||d==="/="||d==="%="||d==="+="||d==="-="||d==="<<="||d===">>="||d===">>>="||d==="&="||d==="^="||d==="|=")}function G(){var d;if(S.charCodeAt(b)===59||w(";")){he();return}d=B,Y(),B===d&&F.type!==u.EOF&&!w("}")&&ut(F)}function ee(d){return d.type===h.Identifier||d.type===h.MemberExpression}function Ue(){var d=[],x;for(x=F,O("[");!w("]");)w(",")?(he(),d.push(null)):(d.push(pn()),w("]")||O(","));return he(),k.markEnd(k.createArrayExpression(d),x)}function pt(d,x){var j,K,ne;return j=E,ne=F,K=hs(),x&&E&&Ee(d[0].name)&&Te(x,p.StrictParamName),E=j,k.markEnd(k.createFunctionExpression(null,d,[],K),ne)}function ct(){var d,x;return x=F,d=he(),d.type===u.StringLiteral||d.type===u.NumericLiteral?(E&&d.octal&&Te(d,p.StrictOctalLiteral),k.markEnd(k.createLiteral(d),x)):k.markEnd(k.createIdentifier(d.value),x)}function dt(){var d,x,j,K,ne,de;if(d=F,de=F,d.type===u.Identifier)return j=ct(),d.value==="get"&&!w(":")?(x=ct(),O("("),O(")"),K=pt([]),k.markEnd(k.createProperty("get",x,K),de)):d.value==="set"&&!w(":")?(x=ct(),O("("),d=F,d.type!==u.Identifier?(O(")"),Te(d,p.UnexpectedToken,d.value),K=pt([])):(ne=[Fe()],O(")"),K=pt(ne,d)),k.markEnd(k.createProperty("set",x,K),de)):(O(":"),K=pn(),k.markEnd(k.createProperty("init",j,K),de));if(d.type===u.EOF||d.type===u.Punctuator)ut(d);else return x=ct(),O(":"),K=pn(),k.markEnd(k.createProperty("init",x,K),de)}function st(){var d=[],x,j,K,ne,de={},ze=String,mt;for(mt=F,O("{");!w("}");)x=dt(),x.key.type===h.Identifier?j=x.key.name:j=ze(x.key.value),ne=x.kind==="init"?g.Data:x.kind==="get"?g.Get:g.Set,K="$"+j,Object.prototype.hasOwnProperty.call(de,K)?(de[K]===g.Data?E&&ne===g.Data?Te({},p.StrictDuplicateProperty):ne!==g.Data&&Te({},p.AccessorDataProperty):ne===g.Data?Te({},p.AccessorDataProperty):de[K]&ne&&Te({},p.AccessorGetSet),de[K]|=ne):de[K]=ne,d.push(x),w("}")||O(",");return O("}"),k.markEnd(k.createObjectExpression(d),mt)}function Jr(){var d;return O("("),d=M(),O(")"),d}function Si(){var d,x,j,K;if(w("("))return Jr();if(w("["))return Ue();if(w("{"))return st();if(d=F.type,K=F,d===u.Identifier)j=k.createIdentifier(he().value);else if(d===u.StringLiteral||d===u.NumericLiteral)E&&F.octal&&Te(F,p.StrictOctalLiteral),j=k.createLiteral(he());else if(d===u.Keyword){if(L("function"))return Zc();L("this")?(he(),j=k.createThisExpression()):ut(he())}else d===u.BooleanLiteral?(x=he(),x.value=x.value==="true",j=k.createLiteral(x)):d===u.NullLiteral?(x=he(),x.value=null,j=k.createLiteral(x)):w("/")||w("/=")?(typeof I.tokens<"u"?j=k.createLiteral(bt()):j=k.createLiteral(jt()),At()):ut(he());return k.markEnd(j,K)}function cs(){var d=[];if(O("("),!w(")"))for(;b<_&&(d.push(pn()),!w(")"));)O(",");return O(")"),d}function ls(){var d,x;return x=F,d=he(),kn(d)||ut(d),k.markEnd(k.createIdentifier(d.value),x)}function fs(){return O("."),ls()}function Yr(){var d;return O("["),d=M(),O("]"),d}function Ei(){var d,x,j;return j=F,y("new"),d=ao(),x=w("(")?cs():[],k.markEnd(k.createNewExpression(d,x),j)}function oo(){var d,x,j,K,ne;for(ne=F,d=P.allowIn,P.allowIn=!0,x=L("new")?Ei():Si(),P.allowIn=d;;){if(w("."))K=fs(),x=k.createMemberExpression(".",x,K);else if(w("("))j=cs(),x=k.createCallExpression(x,j);else if(w("["))K=Yr(),x=k.createMemberExpression("[",x,K);else break;k.markEnd(x,ne)}return x}function ao(){var d,x,j,K;for(K=F,d=P.allowIn,x=L("new")?Ei():Si(),P.allowIn=d;w(".")||w("[");)w("[")?(j=Yr(),x=k.createMemberExpression("[",x,j)):(j=fs(),x=k.createMemberExpression(".",x,j)),k.markEnd(x,K);return x}function Ir(){var d,x,j=F;return d=oo(),F.type===u.Punctuator&&(w("++")||w("--"))&&!rt()&&(E&&d.type===h.Identifier&&Ee(d.name)&&Te({},p.StrictLHSPostfix),ee(d)||Te({},p.InvalidLHSInAssignment),x=he(),d=k.markEnd(k.createPostfixExpression(x.value,d),j)),d}function ir(){var d,x,j;return F.type!==u.Punctuator&&F.type!==u.Keyword?x=Ir():w("++")||w("--")?(j=F,d=he(),x=ir(),E&&x.type===h.Identifier&&Ee(x.name)&&Te({},p.StrictLHSPrefix),ee(x)||Te({},p.InvalidLHSInAssignment),x=k.createUnaryExpression(d.value,x),x=k.markEnd(x,j)):w("+")||w("-")||w("~")||w("!")?(j=F,d=he(),x=ir(),x=k.createUnaryExpression(d.value,x),x=k.markEnd(x,j)):L("delete")||L("void")||L("typeof")?(j=F,d=he(),x=ir(),x=k.createUnaryExpression(d.value,x),x=k.markEnd(x,j),E&&x.operator==="delete"&&x.argument.type===h.Identifier&&Te({},p.StrictDelete)):x=Ir(),x}function Xr(d,x){var j=0;if(d.type!==u.Punctuator&&d.type!==u.Keyword)return 0;switch(d.value){case"||":j=1;break;case"&&":j=2;break;case"|":j=3;break;case"^":j=4;break;case"&":j=5;break;case"==":case"!=":case"===":case"!==":j=6;break;case"<":case">":case"<=":case">=":case"instanceof":j=7;break;case"in":j=x?7:0;break;case"<<":case">>":case">>>":j=8;break;case"+":case"-":j=9;break;case"*":case"/":case"%":j=11;break}return j}function uo(){var d,x,j,K,ne,de,ze,mt,Qt,Ht;if(d=F,Qt=ir(),K=F,ne=Xr(K,P.allowIn),ne===0)return Qt;for(K.prec=ne,he(),x=[d,F],ze=ir(),de=[Qt,K,ze];(ne=Xr(F,P.allowIn))>0;){for(;de.length>2&&ne<=de[de.length-2].prec;)ze=de.pop(),mt=de.pop().value,Qt=de.pop(),j=k.createBinaryExpression(mt,Qt,ze),x.pop(),d=x[x.length-1],k.markEnd(j,d),de.push(j);K=he(),K.prec=ne,de.push(K),x.push(F),j=ir(),de.push(j)}for(Ht=de.length-1,j=de[Ht],x.pop();Ht>1;)j=k.createBinaryExpression(de[Ht-1].value,de[Ht-2],j),Ht-=2,d=x.pop(),k.markEnd(j,d);return j}function co(){var d,x,j,K,ne;return ne=F,d=uo(),w("?")&&(he(),x=P.allowIn,P.allowIn=!0,j=pn(),P.allowIn=x,O(":"),K=pn(),d=k.createConditionalExpression(d,j,K),k.markEnd(d,ne)),d}function pn(){var d,x,j,K,ne;return d=F,ne=F,K=x=co(),V()&&(ee(x)||Te({},p.InvalidLHSInAssignment),E&&x.type===h.Identifier&&Ee(x.name)&&Te(d,p.StrictLHSAssignment),d=he(),j=pn(),K=k.markEnd(k.createAssignmentExpression(d.value,x,j),ne)),K}function M(){var d,x=F;if(d=pn(),w(",")){for(d=k.createSequenceExpression([d]);b<_&&w(",");)he(),d.expressions.push(pn());k.markEnd(d,x)}return d}function fe(){for(var d=[],x;b<_&&!(w("}")||(x=Qr(),typeof x>"u"));)d.push(x);return d}function be(){var d,x;return x=F,O("{"),d=fe(),O("}"),k.markEnd(k.createBlockStatement(d),x)}function Fe(){var d,x;return x=F,d=he(),d.type!==u.Identifier&&ut(d),k.markEnd(k.createIdentifier(d.value),x)}function lt(d){var x=null,j,K;return K=F,j=Fe(),E&&Ee(j.name)&&Te({},p.StrictVarName),d==="const"?(O("="),x=pn()):w("=")&&(he(),x=pn()),k.markEnd(k.createVariableDeclarator(j,x),K)}function ft(d){var x=[];do{if(x.push(lt(d)),!w(","))break;he()}while(b<_);return x}function tt(){var d;return y("var"),d=ft(),G(),k.createVariableDeclaration(d,"var")}function Xe(d){var x,j;return j=F,y(d),x=ft(d),G(),k.markEnd(k.createVariableDeclaration(x,d),j)}function Xt(){return O(";"),k.createEmptyStatement()}function Bt(){var d=M();return G(),k.createExpressionStatement(d)}function Pt(){var d,x,j;return y("if"),O("("),d=M(),O(")"),x=On(),L("else")?(he(),j=On()):j=null,k.createIfStatement(d,x,j)}function cn(){var d,x,j;return y("do"),j=P.inIteration,P.inIteration=!0,d=On(),P.inIteration=j,y("while"),O("("),x=M(),O(")"),w(";")&&he(),k.createDoWhileStatement(d,x)}function Tn(){var d,x,j;return y("while"),O("("),d=M(),O(")"),j=P.inIteration,P.inIteration=!0,x=On(),P.inIteration=j,k.createWhileStatement(d,x)}function sr(){var d,x,j;return j=F,d=he(),x=ft(),k.markEnd(k.createVariableDeclaration(x,d.value),j)}function Kt(){var d,x,j,K,ne,de,ze;return d=x=j=null,y("for"),O("("),w(";")?he():(L("var")||L("let")?(P.allowIn=!1,d=sr(),P.allowIn=!0,d.declarations.length===1&&L("in")&&(he(),K=d,ne=M(),d=null)):(P.allowIn=!1,d=M(),P.allowIn=!0,L("in")&&(ee(d)||Te({},p.InvalidLHSInForIn),he(),K=d,ne=M(),d=null)),typeof K>"u"&&O(";")),typeof K>"u"&&(w(";")||(x=M()),O(";"),w(")")||(j=M())),O(")"),ze=P.inIteration,P.inIteration=!0,de=On(),P.inIteration=ze,typeof K>"u"?k.createForStatement(d,x,j,de):k.createForInStatement(K,ne,de)}function xi(){var d=null,x;return y("continue"),S.charCodeAt(b)===59?(he(),P.inIteration||we({},p.IllegalContinue),k.createContinueStatement(null)):rt()?(P.inIteration||we({},p.IllegalContinue),k.createContinueStatement(null)):(F.type===u.Identifier&&(d=Fe(),x="$"+d.name,Object.prototype.hasOwnProperty.call(P.labelSet,x)||we({},p.UnknownLabel,d.name)),G(),d===null&&!P.inIteration&&we({},p.IllegalContinue),k.createContinueStatement(d))}function lo(){var d=null,x;return y("break"),S.charCodeAt(b)===59?(he(),P.inIteration||P.inSwitch||we({},p.IllegalBreak),k.createBreakStatement(null)):rt()?(P.inIteration||P.inSwitch||we({},p.IllegalBreak),k.createBreakStatement(null)):(F.type===u.Identifier&&(d=Fe(),x="$"+d.name,Object.prototype.hasOwnProperty.call(P.labelSet,x)||we({},p.UnknownLabel,d.name)),G(),d===null&&!(P.inIteration||P.inSwitch)&&we({},p.IllegalBreak),k.createBreakStatement(d))}function fo(){var d=null;return y("return"),P.inFunctionBody||Te({},p.IllegalReturn),S.charCodeAt(b)===32&&Ce(S.charCodeAt(b+1))?(d=M(),G(),k.createReturnStatement(d)):rt()?k.createReturnStatement(null):(w(";")||!w("}")&&F.type!==u.EOF&&(d=M()),G(),k.createReturnStatement(d))}function Oa(){var d,x;return E&&(Y(),Te({},p.StrictModeWith)),y("with"),O("("),d=M(),O(")"),x=On(),k.createWithStatement(d,x)}function Ia(){var d,x=[],j,K;for(K=F,L("default")?(he(),d=null):(y("case"),d=M()),O(":");b<_&&!(w("}")||L("default")||L("case"));)j=On(),x.push(j);return k.markEnd(k.createSwitchCase(d,x),K)}function Fa(){var d,x,j,K,ne;if(y("switch"),O("("),d=M(),O(")"),O("{"),x=[],w("}"))return he(),k.createSwitchStatement(d,x);for(K=P.inSwitch,P.inSwitch=!0,ne=!1;b<_&&!w("}");)j=Ia(),j.test===null&&(ne&&we({},p.MultipleDefaultsInSwitch),ne=!0),x.push(j);return P.inSwitch=K,O("}"),k.createSwitchStatement(d,x)}function Jc(){var d;return y("throw"),rt()&&we({},p.NewlineAfterThrow),d=M(),G(),k.createThrowStatement(d)}function Yc(){var d,x,j;return j=F,y("catch"),O("("),w(")")&&ut(F),d=Fe(),E&&Ee(d.name)&&Te({},p.StrictCatchVariable),O(")"),x=be(),k.markEnd(k.createCatchClause(d,x),j)}function Xc(){var d,x=[],j=null;return y("try"),d=be(),L("catch")&&x.push(Yc()),L("finally")&&(he(),j=be()),x.length===0&&!j&&we({},p.NoCatchOrFinally),k.createTryStatement(d,[],x,j)}function Qc(){return y("debugger"),G(),k.createDebuggerStatement()}function On(){var d=F.type,x,j,K,ne;if(d===u.EOF&&ut(F),d===u.Punctuator&&F.value==="{")return be();if(ne=F,d===u.Punctuator)switch(F.value){case";":return k.markEnd(Xt(),ne);case"(":return k.markEnd(Bt(),ne)}if(d===u.Keyword)switch(F.value){case"break":return k.markEnd(lo(),ne);case"continue":return k.markEnd(xi(),ne);case"debugger":return k.markEnd(Qc(),ne);case"do":return k.markEnd(cn(),ne);case"for":return k.markEnd(Kt(),ne);case"function":return k.markEnd(ds(),ne);case"if":return k.markEnd(Pt(),ne);case"return":return k.markEnd(fo(),ne);case"switch":return k.markEnd(Fa(),ne);case"throw":return k.markEnd(Jc(),ne);case"try":return k.markEnd(Xc(),ne);case"var":return k.markEnd(tt(),ne);case"while":return k.markEnd(Tn(),ne);case"with":return k.markEnd(Oa(),ne)}return x=M(),x.type===h.Identifier&&w(":")?(he(),K="$"+x.name,Object.prototype.hasOwnProperty.call(P.labelSet,K)&&we({},p.Redeclaration,"Label",x.name),P.labelSet[K]=!0,j=On(),delete P.labelSet[K],k.markEnd(k.createLabeledStatement(x,j),ne)):(G(),k.markEnd(k.createExpressionStatement(x),ne))}function hs(){var d,x=[],j,K,ne,de,ze,mt,Qt,Ht;for(Ht=F,O("{");b<_&&!(F.type!==u.StringLiteral||(j=F,d=Qr(),x.push(d),d.expression.type!==h.Literal));)K=S.slice(j.start+1,j.end-1),K==="use strict"?(E=!0,ne&&Te(ne,p.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(de=P.labelSet,ze=P.inIteration,mt=P.inSwitch,Qt=P.inFunctionBody,P.labelSet={},P.inIteration=!1,P.inSwitch=!1,P.inFunctionBody=!0;b<_&&!(w("}")||(d=Qr(),typeof d>"u"));)x.push(d);return O("}"),P.labelSet=de,P.inIteration=ze,P.inSwitch=mt,P.inFunctionBody=Qt,k.markEnd(k.createBlockStatement(x),Ht)}function ho(d){var x,j=[],K,ne,de,ze,mt;if(O("("),!w(")"))for(de={};b<_&&(K=F,x=Fe(),ze="$"+K.value,E?(Ee(K.value)&&(ne=K,mt=p.StrictParamName),Object.prototype.hasOwnProperty.call(de,ze)&&(ne=K,mt=p.StrictParamDupe)):d||(Ee(K.value)?(d=K,mt=p.StrictParamName):Se(K.value)?(d=K,mt=p.StrictReservedWord):Object.prototype.hasOwnProperty.call(de,ze)&&(d=K,mt=p.StrictParamDupe)),j.push(x),de[ze]=!0,!w(")"));)O(",");return O(")"),{params:j,stricted:ne,firstRestricted:d,message:mt}}function ds(){var d,x=[],j,K,ne,de,ze,mt,Qt,Ht;return Ht=F,y("function"),K=F,d=Fe(),E?Ee(K.value)&&Te(K,p.StrictFunctionName):Ee(K.value)?(ze=K,mt=p.StrictFunctionName):Se(K.value)&&(ze=K,mt=p.StrictReservedWord),de=ho(ze),x=de.params,ne=de.stricted,ze=de.firstRestricted,de.message&&(mt=de.message),Qt=E,j=hs(),E&&ze&&we(ze,mt),E&&ne&&Te(ne,mt),E=Qt,k.markEnd(k.createFunctionDeclaration(d,x,[],j),Ht)}function Zc(){var d,x=null,j,K,ne,de,ze=[],mt,Qt,Ht;return Ht=F,y("function"),w("(")||(d=F,x=Fe(),E?Ee(d.value)&&Te(d,p.StrictFunctionName):Ee(d.value)?(K=d,ne=p.StrictFunctionName):Se(d.value)&&(K=d,ne=p.StrictReservedWord)),de=ho(K),ze=de.params,j=de.stricted,K=de.firstRestricted,de.message&&(ne=de.message),Qt=E,mt=hs(),E&&K&&we(K,ne),E&&j&&Te(j,ne),E=Qt,k.markEnd(k.createFunctionExpression(x,ze,[],mt),Ht)}function Qr(){if(F.type===u.Keyword)switch(F.value){case"const":case"let":return Xe(F.value);case"function":return ds();default:return On()}if(F.type!==u.EOF)return On()}function ps(){for(var d,x=[],j,K,ne;b<_&&(j=F,!(j.type!==u.StringLiteral||(d=Qr(),x.push(d),d.expression.type!==h.Literal)));)K=S.slice(j.start+1,j.end-1),K==="use strict"?(E=!0,ne&&Te(ne,p.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(;b<_&&(d=Qr(),!(typeof d>"u"));)x.push(d);return x}function Ba(){var d,x;return Y(),At(),x=F,E=!1,d=ps(),k.markEnd(k.createProgram(d),x)}function Da(){var d,x,j,K=[];for(d=0;d<I.tokens.length;++d)x=I.tokens[d],j={type:x.type,value:x.value},I.range&&(j.range=x.range),I.loc&&(j.loc=x.loc),K.push(j);I.tokens=K}function Pa(d,x){var j,K,ne;j=String,typeof d!="string"&&!(d instanceof String)&&(d=j(d)),k=C,S=d,b=0,B=S.length>0?1:0,N=0,_=S.length,F=null,P={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},I={},x=x||{},x.tokens=!0,I.tokens=[],I.tokenize=!0,I.openParenToken=-1,I.openCurlyToken=-1,I.range=typeof x.range=="boolean"&&x.range,I.loc=typeof x.loc=="boolean"&&x.loc,typeof x.comment=="boolean"&&x.comment&&(I.comments=[]),typeof x.tolerant=="boolean"&&x.tolerant&&(I.errors=[]);try{if(At(),F.type===u.EOF)return I.tokens;for(K=he();F.type!==u.EOF;)try{K=he()}catch(de){if(K=F,I.errors){I.errors.push(de);break}else throw de}Da(),ne=I.tokens,typeof I.comments<"u"&&(ne.comments=I.comments),typeof I.errors<"u"&&(ne.errors=I.errors)}catch(de){throw de}finally{I={}}return ne}function Ra(d,x){var j,K;K=String,typeof d!="string"&&!(d instanceof String)&&(d=K(d)),k=C,S=d,b=0,B=S.length>0?1:0,N=0,_=S.length,F=null,P={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},I={},typeof x<"u"&&(I.range=typeof x.range=="boolean"&&x.range,I.loc=typeof x.loc=="boolean"&&x.loc,I.attachComment=typeof x.attachComment=="boolean"&&x.attachComment,I.loc&&x.source!==null&&x.source!==void 0&&(I.source=K(x.source)),typeof x.tokens=="boolean"&&x.tokens&&(I.tokens=[]),typeof x.comment=="boolean"&&x.comment&&(I.comments=[]),typeof x.tolerant=="boolean"&&x.tolerant&&(I.errors=[]),I.attachComment&&(I.range=!0,I.comments=[],I.bottomRightStack=[],I.trailingComments=[],I.leadingComments=[]));try{j=Ba(),typeof I.comments<"u"&&(j.comments=I.comments),typeof I.tokens<"u"&&(Da(),j.tokens=I.tokens),typeof I.errors<"u"&&(j.errors=I.errors)}catch(ne){throw ne}finally{I={}}return j}a.version="1.2.2",a.tokenize=Pa,a.parse=Ra,a.Syntax=function(){var d,x={};typeof Object.create=="function"&&(x=Object.create(null));for(d in h)h.hasOwnProperty(d)&&(x[d]=h[d]);return typeof Object.freeze=="function"&&Object.freeze(x),x}()})},{}],1:[function(n,i,o){(function(a){var u=function(){var l={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(v,C,S,E,b,B,N){E.ast||(E.ast=f,f.initialize());var _=B.length-1;switch(b){case 1:return E.ast.set({expression:{type:"root",value:B[_]}}),E.ast.unshift(),E.ast.yield();case 2:return E.ast.set({expression:{type:"root",value:B[_-1]}}),E.ast.unshift(),E.ast.yield();case 3:return E.ast.unshift(),E.ast.yield();case 4:return E.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:B[_-1]}}),E.ast.unshift(),E.ast.yield();case 5:break;case 6:break;case 7:E.ast.set({operation:"member"}),E.ast.push();break;case 8:E.ast.set({operation:"subscript"}),E.ast.push();break;case 9:E.ast.set({scope:"child"});break;case 10:E.ast.set({scope:"descendant"});break;case 11:break;case 12:E.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:E.ast.set({expression:{type:"wildcard",value:B[_]}});break;case 15:E.ast.set({expression:{type:"identifier",value:B[_]}});break;case 16:E.ast.set({expression:{type:"script_expression",value:B[_]}});break;case 17:E.ast.set({expression:{type:"numeric_literal",value:parseInt(B[_])}});break;case 18:break;case 19:E.ast.set({scope:"child"});break;case 20:E.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:B[_].length>1?E.ast.set({expression:{type:"union",value:B[_]}}):this.$=B[_];break;case 25:this.$=[B[_]];break;case 26:this.$=B[_-2].concat(B[_]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(B[_])}},E.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:B[_]}},E.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:B[_]}},E.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:B[_]}},E.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:B[_]}},E.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:B[_]}},E.ast.set(this.$);break;case 33:this.$=B[_];break;case 34:this.$=B[_];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(v,C){if(C.recoverable)this.trace(v);else throw new Error(v)},parse:function(v){var C=this,S=[0],E=[null],b=[],B=this.table,N="",_=0,k=0,F=2,P=1,I=b.slice.call(arguments,1);this.lexer.setInput(v),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var W=this.lexer.yylloc;b.push(W);var J=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(){var me;return me=C.lexer.lex()||P,typeof me!="number"&&(me=C.symbols_[me]||me),me}for(var le,ge,ye,Ce,pe={},Re,Se,Ee,He;;){if(ge=S[S.length-1],this.defaultActions[ge]?ye=this.defaultActions[ge]:((le===null||typeof le>"u")&&(le=ce()),ye=B[ge]&&B[ge][le]),typeof ye>"u"||!ye.length||!ye[0]){var Ae="";He=[];for(Re in B[ge])this.terminals_[Re]&&Re>F&&He.push("'"+this.terminals_[Re]+"'");this.lexer.showPosition?Ae="Parse error on line "+(_+1)+`:
221
+ `,Wh=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>S.jsx(q.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?S.jsxs(q.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),S.jsx(q.Tooltip,{title:S.jsx(S.Fragment,{children:n(e.slice(t))}),children:S.jsxs(q.Tag,{children:["+",e.length-t]},"more")})]}):S.jsx(q.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},Hh=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),Kh=({columns:e,additionalPrinterColumnsUndefinedValues:t,additionalPrinterColumnsTrimLengths:n,additionalPrinterColumnsColWidths:i})=>{if(e)return e.map(o=>{const a=t?.find(({key:f})=>f===o.key)?.value,u=n?.find(({key:f})=>f===o.key)?.value,l=i?.find(({key:f})=>f===o.key)?.value;return{...o,render:f=>typeof f=="object"&&!Array.isArray(f)?Hh(f)?S.jsx(Wh,{tags:Object.entries(f).map(([d,g])=>`${d}: ${String(g)}`),trimLength:u}):S.jsx(zi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(d=>d&&!Array.isArray(d))?S.jsx(Wh,{tags:f.map(d=>d.toLocaleString()),trimLength:u}):S.jsx(zi,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?S.jsx(wn.CheckOutlined,{style:{color:"green"}}):S.jsx(wn.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?S.jsx(zi,{trimLength:u,text:String(f)}):typeof f=="string"?S.jsx(zi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?S.jsx(zi,{trimLength:u,text:a}):S.jsx(zi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:v})=>S.jsx(t2,{setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:v}),filterIcon:f=>S.jsx(wn.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?Wr.get(d,g):d[g];if(typeof p=="object"&&!Array.isArray(p))return JSON.stringify(p).toLowerCase().includes(f.toLowerCase());if(Array.isArray(p))return p.some(v=>v.toLowerCase().includes(f.toLowerCase()));if(typeof p=="boolean"){const v=f.toLowerCase()==="true";return p===v}return typeof p=="number"?String(p).includes(f.toLowerCase()):typeof p=="string"?p.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?Wr.get(f,g):f[g],v=Array.isArray(g)?Wr.get(d,g):d[g];return typeof p=="object"&&!Array.isArray(p)&&p!==null?typeof v=="object"&&!Array.isArray(v)&&v!==null?Object.keys(p).length-Object.keys(v).length:Object.keys(p).length?-1:1:Array.isArray(p)?Array.isArray(v)?p.length-v.length:p.length?-1:1:typeof p=="boolean"?p===v?0:p?-1:1:typeof p=="number"?typeof v=="number"?p-v:p?-1:1:typeof p=="string"?typeof v=="string"?p.localeCompare(v):p?-1:1:0}}})},zh=({enrichedColumns:e,navigate:t,baseprefix:n,editIcon:i,deleteIcon:o})=>{if(e)return[...e,{title:"",dataIndex:"internalDataForControls",key:"controls",className:"controls",width:120,render:a=>S.jsxs(i2,{$align:"right",className:"hideable",children:[S.jsx(qh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),t(`${n}/${a.cluster}${a.namespace?`/${a.namespace}`:""}${a.syntheticProject?`/${a.syntheticProject}`:""}/${a.pathPrefix}/${a.apiGroupAndVersion}/${a.typeName}/${a.entryName}?backlink=${a.backlink}`)},icon:i||S.jsx(wn.EditOutlined,{size:14}),disabled:!a.permissions.canUpdate}),S.jsx(qh,{type:"text",size:"small",onClick:u=>{u.stopPropagation(),a.onDeleteHandle(a.entryName,`${a.deletePathPrefix}/${a.apiGroupAndVersion}${a.namespace?`/namespaces/${a.namespace}`:""}/${a.typeName}/${a.entryName}`)},icon:o||S.jsx(wn.DeleteOutlined,{size:14}),disabled:!a.permissions.canDelete})]})}]},Gh=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:d,withoutControls:g=!1,tableProps:p})=>{const v=lr.useNavigate();if(!i)return null;const C=Kh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!C)return null;const A=g?C:zh({enrichedColumns:C,navigate:v,baseprefix:t,editIcon:p?.editIcon,deleteIcon:p?.deleteIcon});if(!A)return null;const E=b=>`Total: ${b}`;return S.jsx(Vh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:p?.borderless,$isTotalLeft:p?.isTotalLeft,children:S.jsx(Vh.HideableControls,{children:S.jsx(q.Table,{dataSource:n,columns:A,pagination:{position:p?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:E},scroll:{x:"max-content"},rowSelection:d?{type:"checkbox",selectedRowKeys:d.selectedRowKeys,onChange:(b,B)=>{d.onChange(b,B.map(({internalDataForControls:N})=>({name:N.entryName,endpoint:`${N.deletePathPrefix}/${N.apiGroupAndVersion}${N.namespace?`/namespaces/${N.namespace}`:""}/${N.typeName}/${N.entryName}`})))}}:void 0,onRow:b=>({onClick:()=>{if(o&&a){const B=Wr.get(b,a),N=typeof B=="string"?B:JSON.stringify(B),_=o.replaceAll("~recordValue~",N);v(_)}}})})})})};function ta(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Jh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(d,g){if(!o[d]){if(!i[d]){var p=typeof ta=="function"&&ta;if(!g&&p)return p(d,!0);if(l)return l(d,!0);var v=new Error("Cannot find module '"+d+"'");throw v.code="MODULE_NOT_FOUND",v}var C=o[d]={exports:{}};i[d][0].call(C.exports,function(A){var E=i[d][1][A];return u(E||A)},C,C.exports,n,i,o,a)}return o[d].exports}for(var l=typeof ta=="function"&&ta,f=0;f<a.length;f++)u(a[f]);return u}({"./aesprim":[function(n,i,o){(function(a,u){u(typeof o<"u"?o:a.esprima={})})(this,function(a){var u,l,f,d,g,p,v,C,A,E,b,B,N,_,k,F,R,O;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},l={},l[u.BooleanLiteral]="Boolean",l[u.EOF]="<end>",l[u.Identifier]="Identifier",l[u.Keyword]="Keyword",l[u.NullLiteral]="Null",l[u.NumericLiteral]="Numeric",l[u.Punctuator]="Punctuator",l[u.StringLiteral]="String",l[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],d={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},g={Data:1,Get:2,Set:4},p={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},v={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function W(h,x){if(!h)throw new Error("ASSERT: "+x)}function J(h){return h>=48&&h<=57}function le(h){return"0123456789abcdefABCDEF".indexOf(h)>=0}function ce(h){return"01234567".indexOf(h)>=0}function ge(h){return h===32||h===9||h===11||h===12||h===160||h>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(h)>=0}function ye(h){return h===10||h===13||h===8232||h===8233}function he(h){return h==64||h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h===92||h>=128&&v.NonAsciiIdentifierStart.test(String.fromCharCode(h))}function me(h){return h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h>=48&&h<=57||h===92||h>=128&&v.NonAsciiIdentifierPart.test(String.fromCharCode(h))}function Le(h){switch(h){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function ke(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function xe(h){return h==="eval"||h==="arguments"}function tt(h){if(E&&ke(h))return!0;switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try"||h==="let";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}}function Ae(h,x,j,H,ne){var de;W(typeof j=="number","Comment must have valid position"),!(R.lastCommentStart>=j)&&(R.lastCommentStart=j,de={type:h,value:x},O.range&&(de.range=[j,H]),O.loc&&(de.loc=ne),O.comments.push(de),O.attachComment&&(O.leadingComments.push(de),O.trailingComments.push(de)))}function Se(h){var x,j,H,ne;for(x=b-h,j={start:{line:B,column:b-N-h}};b<_;)if(H=A.charCodeAt(b),++b,ye(H)){O.comments&&(ne=A.slice(x+h,b-1),j.end={line:B,column:b-N-1},Ae("Line",ne,x,b-1,j)),H===13&&A.charCodeAt(b)===10&&++b,++B,N=b;return}O.comments&&(ne=A.slice(x+h,b),j.end={line:B,column:b-N},Ae("Line",ne,x,b,j))}function We(){var h,x,j,H;for(O.comments&&(h=b-2,x={start:{line:B,column:b-N-2}});b<_;)if(j=A.charCodeAt(b),ye(j))j===13&&A.charCodeAt(b+1)===10&&++b,++B,++b,N=b,b>=_&&we({},p.UnexpectedToken,"ILLEGAL");else if(j===42){if(A.charCodeAt(b+1)===47){++b,++b,O.comments&&(H=A.slice(h+2,b-2),x.end={line:B,column:b-N},Ae("Block",H,h,b,x));return}++b}else++b;we({},p.UnexpectedToken,"ILLEGAL")}function Y(){var h,x;for(x=b===0;b<_;)if(h=A.charCodeAt(b),ge(h))++b;else if(ye(h))++b,h===13&&A.charCodeAt(b)===10&&++b,++B,N=b,x=!0;else if(h===47)if(h=A.charCodeAt(b+1),h===47)++b,++b,Se(2),x=!0;else if(h===42)++b,++b,We();else break;else if(x&&h===45)if(A.charCodeAt(b+1)===45&&A.charCodeAt(b+2)===62)b+=3,Se(3);else break;else if(h===60)if(A.slice(b+1,b+4)==="!--")++b,++b,++b,++b,Se(4);else break;else break}function Q(h){var x,j,H,ne=0;for(j=h==="u"?4:2,x=0;x<j;++x)if(b<_&&le(A[b]))H=A[b++],ne=ne*16+"0123456789abcdef".indexOf(H.toLowerCase());else return"";return String.fromCharCode(ne)}function ue(){var h,x;for(h=A.charCodeAt(b++),x=String.fromCharCode(h),h===92&&(A.charCodeAt(b)!==117&&we({},p.UnexpectedToken,"ILLEGAL"),++b,h=Q("u"),(!h||h==="\\"||!he(h.charCodeAt(0)))&&we({},p.UnexpectedToken,"ILLEGAL"),x=h);b<_&&(h=A.charCodeAt(b),!!me(h));)++b,x+=String.fromCharCode(h),h===92&&(x=x.substr(0,x.length-1),A.charCodeAt(b)!==117&&we({},p.UnexpectedToken,"ILLEGAL"),++b,h=Q("u"),(!h||h==="\\"||!me(h.charCodeAt(0)))&&we({},p.UnexpectedToken,"ILLEGAL"),x+=h);return x}function De(){var h,x;for(h=b++;b<_;){if(x=A.charCodeAt(b),x===92)return b=h,ue();if(me(x))++b;else break}return A.slice(h,b)}function Ye(){var h,x,j;return h=b,x=A.charCodeAt(b)===92?ue():De(),x.length===1?j=u.Identifier:tt(x)?j=u.Keyword:x==="null"?j=u.NullLiteral:x==="true"||x==="false"?j=u.BooleanLiteral:j=u.Identifier,{type:j,value:x,lineNumber:B,lineStart:N,start:h,end:b}}function Te(){var h=b,x=A.charCodeAt(b),j,H=A[b],ne,de,Ke;switch(x){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++b,O.tokenize&&(x===40?O.openParenToken=O.tokens.length:x===123&&(O.openCurlyToken=O.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(x),lineNumber:B,lineStart:N,start:h,end:b};default:if(j=A.charCodeAt(b+1),j===61)switch(x){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return b+=2,{type:u.Punctuator,value:String.fromCharCode(x)+String.fromCharCode(j),lineNumber:B,lineStart:N,start:h,end:b};case 33:case 61:return b+=2,A.charCodeAt(b)===61&&++b,{type:u.Punctuator,value:A.slice(h,b),lineNumber:B,lineStart:N,start:h,end:b}}}if(Ke=A.substr(b,4),Ke===">>>=")return b+=4,{type:u.Punctuator,value:Ke,lineNumber:B,lineStart:N,start:h,end:b};if(de=Ke.substr(0,3),de===">>>"||de==="<<="||de===">>=")return b+=3,{type:u.Punctuator,value:de,lineNumber:B,lineStart:N,start:h,end:b};if(ne=de.substr(0,2),H===ne[1]&&"+-<>&|".indexOf(H)>=0||ne==="=>")return b+=2,{type:u.Punctuator,value:ne,lineNumber:B,lineStart:N,start:h,end:b};if("<>=!+-*%&|^/".indexOf(H)>=0)return++b,{type:u.Punctuator,value:H,lineNumber:B,lineStart:N,start:h,end:b};we({},p.UnexpectedToken,"ILLEGAL")}function Re(h){for(var x="";b<_&&le(A[b]);)x+=A[b++];return x.length===0&&we({},p.UnexpectedToken,"ILLEGAL"),he(A.charCodeAt(b))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+x,16),lineNumber:B,lineStart:N,start:h,end:b}}function Oe(h){for(var x="0"+A[b++];b<_&&ce(A[b]);)x+=A[b++];return(he(A.charCodeAt(b))||J(A.charCodeAt(b)))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(x,8),octal:!0,lineNumber:B,lineStart:N,start:h,end:b}}function Ne(){var h,x,j;if(j=A[b],W(J(j.charCodeAt(0))||j===".","Numeric literal must start with a decimal digit or a decimal point"),x=b,h="",j!=="."){if(h=A[b++],j=A[b],h==="0"){if(j==="x"||j==="X")return++b,Re(x);if(ce(j))return Oe(x);j&&J(j.charCodeAt(0))&&we({},p.UnexpectedToken,"ILLEGAL")}for(;J(A.charCodeAt(b));)h+=A[b++];j=A[b]}if(j==="."){for(h+=A[b++];J(A.charCodeAt(b));)h+=A[b++];j=A[b]}if(j==="e"||j==="E")if(h+=A[b++],j=A[b],(j==="+"||j==="-")&&(h+=A[b++]),J(A.charCodeAt(b)))for(;J(A.charCodeAt(b));)h+=A[b++];else we({},p.UnexpectedToken,"ILLEGAL");return he(A.charCodeAt(b))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(h),lineNumber:B,lineStart:N,start:x,end:b}}function kt(){var h="",x,j,H,ne,de,Ke,yt=!1,Qt,Kt;for(Qt=B,Kt=N,x=A[b],W(x==="'"||x==='"',"String literal must starts with a quote"),j=b,++b;b<_;)if(H=A[b++],H===x){x="";break}else if(H==="\\")if(H=A[b++],!H||!ye(H.charCodeAt(0)))switch(H){case"u":case"x":Ke=b,de=Q(H),de?h+=de:(b=Ke,h+=H);break;case"n":h+=`
222
+ `;break;case"r":h+="\r";break;case"t":h+=" ";break;case"b":h+="\b";break;case"f":h+="\f";break;case"v":h+="\v";break;default:ce(H)?(ne="01234567".indexOf(H),ne!==0&&(yt=!0),b<_&&ce(A[b])&&(yt=!0,ne=ne*8+"01234567".indexOf(A[b++]),"0123".indexOf(H)>=0&&b<_&&ce(A[b])&&(ne=ne*8+"01234567".indexOf(A[b++]))),h+=String.fromCharCode(ne)):h+=H;break}else++B,H==="\r"&&A[b]===`
223
+ `&&++b,N=b;else{if(ye(H.charCodeAt(0)))break;h+=H}return x!==""&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:h,octal:yt,startLineNumber:Qt,startLineStart:Kt,lineNumber:B,lineStart:N,start:j,end:b}}function nn(h,x){var j;try{j=new RegExp(h,x)}catch{we({},p.InvalidRegExp)}return j}function Lt(){var h,x,j,H,ne;for(h=A[b],W(h==="/","Regular expression literal must start with a slash"),x=A[b++],j=!1,H=!1;b<_;)if(h=A[b++],x+=h,h==="\\")h=A[b++],ye(h.charCodeAt(0))&&we({},p.UnterminatedRegExp),x+=h;else if(ye(h.charCodeAt(0)))we({},p.UnterminatedRegExp);else if(j)h==="]"&&(j=!1);else if(h==="/"){H=!0;break}else h==="["&&(j=!0);return H||we({},p.UnterminatedRegExp),ne=x.substr(1,x.length-2),{value:ne,literal:x}}function Pt(){var h,x,j,H;for(x="",j="";b<_&&(h=A[b],!!me(h.charCodeAt(0)));)if(++b,h==="\\"&&b<_)if(h=A[b],h==="u"){if(++b,H=b,h=Q("u"),h)for(j+=h,x+="\\u";H<b;++H)x+=A[H];else b=H,j+="u",x+="\\u";_e({},p.UnexpectedToken,"ILLEGAL")}else x+="\\",_e({},p.UnexpectedToken,"ILLEGAL");else j+=h,x+=h;return{value:j,literal:x}}function Nt(){var h,x,j,H;return F=null,Y(),h=b,x=Lt(),j=Pt(),H=nn(x.value,j.value),O.tokenize?{type:u.RegularExpression,value:H,lineNumber:B,lineStart:N,start:h,end:b}:{literal:x.literal+j.literal,value:H,start:h,end:b}}function wt(){var h,x,j,H;return Y(),h=b,x={start:{line:B,column:b-N}},j=Nt(),x.end={line:B,column:b-N},O.tokenize||(O.tokens.length>0&&(H=O.tokens[O.tokens.length-1],H.range[0]===h&&H.type==="Punctuator"&&(H.value==="/"||H.value==="/=")&&O.tokens.pop()),O.tokens.push({type:"RegularExpression",value:j.literal,range:[h,b],loc:x})),j}function kn(h){return h.type===u.Identifier||h.type===u.Keyword||h.type===u.BooleanLiteral||h.type===u.NullLiteral}function Sn(){var h,x;if(h=O.tokens[O.tokens.length-1],!h)return wt();if(h.type==="Punctuator"){if(h.value==="]")return Te();if(h.value===")")return x=O.tokens[O.openParenToken-1],x&&x.type==="Keyword"&&(x.value==="if"||x.value==="while"||x.value==="for"||x.value==="with")?wt():Te();if(h.value==="}"){if(O.tokens[O.openCurlyToken-3]&&O.tokens[O.openCurlyToken-3].type==="Keyword"){if(x=O.tokens[O.openCurlyToken-4],!x)return Te()}else if(O.tokens[O.openCurlyToken-4]&&O.tokens[O.openCurlyToken-4].type==="Keyword"){if(x=O.tokens[O.openCurlyToken-5],!x)return wt()}else return Te();return f.indexOf(x.value)>=0?Te():wt()}return wt()}return h.type==="Keyword"?wt():Te()}function Ce(){var h;return Y(),b>=_?{type:u.EOF,lineNumber:B,lineStart:N,start:b,end:b}:(h=A.charCodeAt(b),he(h)?Ye():h===40||h===41||h===59?Te():h===39||h===34?kt():h===46?J(A.charCodeAt(b+1))?Ne():Te():J(h)?Ne():O.tokenize&&h===47?Sn():Te())}function Be(){var h,x,j;return Y(),h={start:{line:B,column:b-N}},x=Ce(),h.end={line:B,column:b-N},x.type!==u.EOF&&(j=A.slice(x.start,x.end),O.tokens.push({type:l[x.type],value:j,range:[x.start,x.end],loc:h})),x}function pe(){var h;return h=F,b=h.end,B=h.lineNumber,N=h.lineStart,F=typeof O.tokens<"u"?Be():Ce(),b=h.end,B=h.lineNumber,N=h.lineStart,h}function At(){var h,x,j;h=b,x=B,j=N,F=typeof O.tokens<"u"?Be():Ce(),b=h,B=x,N=j}function xt(h,x){this.line=h,this.column=x}function vt(h,x,j,H){this.start=new xt(h,x),this.end=new xt(j,H)}C={name:"SyntaxTree",processComment:function(h){var x,j;if(!(h.type===d.Program&&h.body.length>0)){for(O.trailingComments.length>0?O.trailingComments[0].range[0]>=h.range[1]?(j=O.trailingComments,O.trailingComments=[]):O.trailingComments.length=0:O.bottomRightStack.length>0&&O.bottomRightStack[O.bottomRightStack.length-1].trailingComments&&O.bottomRightStack[O.bottomRightStack.length-1].trailingComments[0].range[0]>=h.range[1]&&(j=O.bottomRightStack[O.bottomRightStack.length-1].trailingComments,delete O.bottomRightStack[O.bottomRightStack.length-1].trailingComments);O.bottomRightStack.length>0&&O.bottomRightStack[O.bottomRightStack.length-1].range[0]>=h.range[0];)x=O.bottomRightStack.pop();x?x.leadingComments&&x.leadingComments[x.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=x.leadingComments,delete x.leadingComments):O.leadingComments.length>0&&O.leadingComments[O.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=O.leadingComments,O.leadingComments=[]),j&&(h.trailingComments=j),O.bottomRightStack.push(h)}},markEnd:function(h,x){return O.range&&(h.range=[x.start,b]),O.loc&&(h.loc=new vt(x.startLineNumber===void 0?x.lineNumber:x.startLineNumber,x.start-(x.startLineStart===void 0?x.lineStart:x.startLineStart),B,b-N),this.postProcess(h)),O.attachComment&&this.processComment(h),h},postProcess:function(h){return O.source&&(h.loc.source=O.source),h},createArrayExpression:function(h){return{type:d.ArrayExpression,elements:h}},createAssignmentExpression:function(h,x,j){return{type:d.AssignmentExpression,operator:h,left:x,right:j}},createBinaryExpression:function(h,x,j){var H=h==="||"||h==="&&"?d.LogicalExpression:d.BinaryExpression;return{type:H,operator:h,left:x,right:j}},createBlockStatement:function(h){return{type:d.BlockStatement,body:h}},createBreakStatement:function(h){return{type:d.BreakStatement,label:h}},createCallExpression:function(h,x){return{type:d.CallExpression,callee:h,arguments:x}},createCatchClause:function(h,x){return{type:d.CatchClause,param:h,body:x}},createConditionalExpression:function(h,x,j){return{type:d.ConditionalExpression,test:h,consequent:x,alternate:j}},createContinueStatement:function(h){return{type:d.ContinueStatement,label:h}},createDebuggerStatement:function(){return{type:d.DebuggerStatement}},createDoWhileStatement:function(h,x){return{type:d.DoWhileStatement,body:h,test:x}},createEmptyStatement:function(){return{type:d.EmptyStatement}},createExpressionStatement:function(h){return{type:d.ExpressionStatement,expression:h}},createForStatement:function(h,x,j,H){return{type:d.ForStatement,init:h,test:x,update:j,body:H}},createForInStatement:function(h,x,j){return{type:d.ForInStatement,left:h,right:x,body:j,each:!1}},createFunctionDeclaration:function(h,x,j,H){return{type:d.FunctionDeclaration,id:h,params:x,defaults:j,body:H,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(h,x,j,H){return{type:d.FunctionExpression,id:h,params:x,defaults:j,body:H,rest:null,generator:!1,expression:!1}},createIdentifier:function(h){return{type:d.Identifier,name:h}},createIfStatement:function(h,x,j){return{type:d.IfStatement,test:h,consequent:x,alternate:j}},createLabeledStatement:function(h,x){return{type:d.LabeledStatement,label:h,body:x}},createLiteral:function(h){return{type:d.Literal,value:h.value,raw:A.slice(h.start,h.end)}},createMemberExpression:function(h,x,j){return{type:d.MemberExpression,computed:h==="[",object:x,property:j}},createNewExpression:function(h,x){return{type:d.NewExpression,callee:h,arguments:x}},createObjectExpression:function(h){return{type:d.ObjectExpression,properties:h}},createPostfixExpression:function(h,x){return{type:d.UpdateExpression,operator:h,argument:x,prefix:!1}},createProgram:function(h){return{type:d.Program,body:h}},createProperty:function(h,x,j){return{type:d.Property,key:x,value:j,kind:h}},createReturnStatement:function(h){return{type:d.ReturnStatement,argument:h}},createSequenceExpression:function(h){return{type:d.SequenceExpression,expressions:h}},createSwitchCase:function(h,x){return{type:d.SwitchCase,test:h,consequent:x}},createSwitchStatement:function(h,x){return{type:d.SwitchStatement,discriminant:h,cases:x}},createThisExpression:function(){return{type:d.ThisExpression}},createThrowStatement:function(h){return{type:d.ThrowStatement,argument:h}},createTryStatement:function(h,x,j,H){return{type:d.TryStatement,block:h,guardedHandlers:x,handlers:j,finalizer:H}},createUnaryExpression:function(h,x){return h==="++"||h==="--"?{type:d.UpdateExpression,operator:h,argument:x,prefix:!0}:{type:d.UnaryExpression,operator:h,argument:x,prefix:!0}},createVariableDeclaration:function(h,x){return{type:d.VariableDeclaration,declarations:h,kind:x}},createVariableDeclarator:function(h,x){return{type:d.VariableDeclarator,id:h,init:x}},createWhileStatement:function(h,x){return{type:d.WhileStatement,test:h,body:x}},createWithStatement:function(h,x){return{type:d.WithStatement,object:h,body:x}}};function rt(){var h,x,j,H;return h=b,x=B,j=N,Y(),H=B!==x,b=h,B=x,N=j,H}function we(h,x){var j,H=Array.prototype.slice.call(arguments,2),ne=x.replace(/%(\d)/g,function(de,Ke){return W(Ke<H.length,"Message reference must be in range"),H[Ke]});throw typeof h.lineNumber=="number"?(j=new Error("Line "+h.lineNumber+": "+ne),j.index=h.start,j.lineNumber=h.lineNumber,j.column=h.start-N+1):(j=new Error("Line "+B+": "+ne),j.index=b,j.lineNumber=B,j.column=b-N+1),j.description=ne,j}function _e(){try{we.apply(null,arguments)}catch(h){if(O.errors)O.errors.push(h);else throw h}}function ut(h){if(h.type===u.EOF&&we(h,p.UnexpectedEOS),h.type===u.NumericLiteral&&we(h,p.UnexpectedNumber),h.type===u.StringLiteral&&we(h,p.UnexpectedString),h.type===u.Identifier&&we(h,p.UnexpectedIdentifier),h.type===u.Keyword){if(Le(h.value))we(h,p.UnexpectedReserved);else if(E&&ke(h.value)){_e(h,p.StrictReservedWord);return}we(h,p.UnexpectedToken,h.value)}we(h,p.UnexpectedToken,h.value)}function I(h){var x=pe();(x.type!==u.Punctuator||x.value!==h)&&ut(x)}function y(h){var x=pe();(x.type!==u.Keyword||x.value!==h)&&ut(x)}function w(h){return F.type===u.Punctuator&&F.value===h}function P(h){return F.type===u.Keyword&&F.value===h}function V(){var h;return F.type!==u.Punctuator?!1:(h=F.value,h==="="||h==="*="||h==="/="||h==="%="||h==="+="||h==="-="||h==="<<="||h===">>="||h===">>>="||h==="&="||h==="^="||h==="|=")}function G(){var h;if(A.charCodeAt(b)===59||w(";")){pe();return}h=B,Y(),B===h&&F.type!==u.EOF&&!w("}")&&ut(F)}function ee(h){return h.type===d.Identifier||h.type===d.MemberExpression}function Me(){var h=[],x;for(x=F,I("[");!w("]");)w(",")?(pe(),h.push(null)):(h.push(pn()),w("]")||I(","));return pe(),k.markEnd(k.createArrayExpression(h),x)}function pt(h,x){var j,H,ne;return j=E,ne=F,H=fs(),x&&E&&xe(h[0].name)&&_e(x,p.StrictParamName),E=j,k.markEnd(k.createFunctionExpression(null,h,[],H),ne)}function ct(){var h,x;return x=F,h=pe(),h.type===u.StringLiteral||h.type===u.NumericLiteral?(E&&h.octal&&_e(h,p.StrictOctalLiteral),k.markEnd(k.createLiteral(h),x)):k.markEnd(k.createIdentifier(h.value),x)}function dt(){var h,x,j,H,ne,de;if(h=F,de=F,h.type===u.Identifier)return j=ct(),h.value==="get"&&!w(":")?(x=ct(),I("("),I(")"),H=pt([]),k.markEnd(k.createProperty("get",x,H),de)):h.value==="set"&&!w(":")?(x=ct(),I("("),h=F,h.type!==u.Identifier?(I(")"),_e(h,p.UnexpectedToken,h.value),H=pt([])):(ne=[Fe()],I(")"),H=pt(ne,h)),k.markEnd(k.createProperty("set",x,H),de)):(I(":"),H=pn(),k.markEnd(k.createProperty("init",j,H),de));if(h.type===u.EOF||h.type===u.Punctuator)ut(h);else return x=ct(),I(":"),H=pn(),k.markEnd(k.createProperty("init",x,H),de)}function st(){var h=[],x,j,H,ne,de={},Ke=String,yt;for(yt=F,I("{");!w("}");)x=dt(),x.key.type===d.Identifier?j=x.key.name:j=Ke(x.key.value),ne=x.kind==="init"?g.Data:x.kind==="get"?g.Get:g.Set,H="$"+j,Object.prototype.hasOwnProperty.call(de,H)?(de[H]===g.Data?E&&ne===g.Data?_e({},p.StrictDuplicateProperty):ne!==g.Data&&_e({},p.AccessorDataProperty):ne===g.Data?_e({},p.AccessorDataProperty):de[H]&ne&&_e({},p.AccessorGetSet),de[H]|=ne):de[H]=ne,h.push(x),w("}")||I(",");return I("}"),k.markEnd(k.createObjectExpression(h),yt)}function Jr(){var h;return I("("),h=M(),I(")"),h}function Ai(){var h,x,j,H;if(w("("))return Jr();if(w("["))return Me();if(w("{"))return st();if(h=F.type,H=F,h===u.Identifier)j=k.createIdentifier(pe().value);else if(h===u.StringLiteral||h===u.NumericLiteral)E&&F.octal&&_e(F,p.StrictOctalLiteral),j=k.createLiteral(pe());else if(h===u.Keyword){if(P("function"))return Xc();P("this")?(pe(),j=k.createThisExpression()):ut(pe())}else h===u.BooleanLiteral?(x=pe(),x.value=x.value==="true",j=k.createLiteral(x)):h===u.NullLiteral?(x=pe(),x.value=null,j=k.createLiteral(x)):w("/")||w("/=")?(typeof O.tokens<"u"?j=k.createLiteral(wt()):j=k.createLiteral(Nt()),At()):ut(pe());return k.markEnd(j,H)}function us(){var h=[];if(I("("),!w(")"))for(;b<_&&(h.push(pn()),!w(")"));)I(",");return I(")"),h}function cs(){var h,x;return x=F,h=pe(),kn(h)||ut(h),k.markEnd(k.createIdentifier(h.value),x)}function ls(){return I("."),cs()}function Yr(){var h;return I("["),h=M(),I("]"),h}function Ei(){var h,x,j;return j=F,y("new"),h=oo(),x=w("(")?us():[],k.markEnd(k.createNewExpression(h,x),j)}function so(){var h,x,j,H,ne;for(ne=F,h=R.allowIn,R.allowIn=!0,x=P("new")?Ei():Ai(),R.allowIn=h;;){if(w("."))H=ls(),x=k.createMemberExpression(".",x,H);else if(w("("))j=us(),x=k.createCallExpression(x,j);else if(w("["))H=Yr(),x=k.createMemberExpression("[",x,H);else break;k.markEnd(x,ne)}return x}function oo(){var h,x,j,H;for(H=F,h=R.allowIn,x=P("new")?Ei():Ai(),R.allowIn=h;w(".")||w("[");)w("[")?(j=Yr(),x=k.createMemberExpression("[",x,j)):(j=ls(),x=k.createMemberExpression(".",x,j)),k.markEnd(x,H);return x}function Or(){var h,x,j=F;return h=so(),F.type===u.Punctuator&&(w("++")||w("--"))&&!rt()&&(E&&h.type===d.Identifier&&xe(h.name)&&_e({},p.StrictLHSPostfix),ee(h)||_e({},p.InvalidLHSInAssignment),x=pe(),h=k.markEnd(k.createPostfixExpression(x.value,h),j)),h}function ir(){var h,x,j;return F.type!==u.Punctuator&&F.type!==u.Keyword?x=Or():w("++")||w("--")?(j=F,h=pe(),x=ir(),E&&x.type===d.Identifier&&xe(x.name)&&_e({},p.StrictLHSPrefix),ee(x)||_e({},p.InvalidLHSInAssignment),x=k.createUnaryExpression(h.value,x),x=k.markEnd(x,j)):w("+")||w("-")||w("~")||w("!")?(j=F,h=pe(),x=ir(),x=k.createUnaryExpression(h.value,x),x=k.markEnd(x,j)):P("delete")||P("void")||P("typeof")?(j=F,h=pe(),x=ir(),x=k.createUnaryExpression(h.value,x),x=k.markEnd(x,j),E&&x.operator==="delete"&&x.argument.type===d.Identifier&&_e({},p.StrictDelete)):x=Or(),x}function Xr(h,x){var j=0;if(h.type!==u.Punctuator&&h.type!==u.Keyword)return 0;switch(h.value){case"||":j=1;break;case"&&":j=2;break;case"|":j=3;break;case"^":j=4;break;case"&":j=5;break;case"==":case"!=":case"===":case"!==":j=6;break;case"<":case">":case"<=":case">=":case"instanceof":j=7;break;case"in":j=x?7:0;break;case"<<":case">>":case">>>":j=8;break;case"+":case"-":j=9;break;case"*":case"/":case"%":j=11;break}return j}function ao(){var h,x,j,H,ne,de,Ke,yt,Qt,Kt;if(h=F,Qt=ir(),H=F,ne=Xr(H,R.allowIn),ne===0)return Qt;for(H.prec=ne,pe(),x=[h,F],Ke=ir(),de=[Qt,H,Ke];(ne=Xr(F,R.allowIn))>0;){for(;de.length>2&&ne<=de[de.length-2].prec;)Ke=de.pop(),yt=de.pop().value,Qt=de.pop(),j=k.createBinaryExpression(yt,Qt,Ke),x.pop(),h=x[x.length-1],k.markEnd(j,h),de.push(j);H=pe(),H.prec=ne,de.push(H),x.push(F),j=ir(),de.push(j)}for(Kt=de.length-1,j=de[Kt],x.pop();Kt>1;)j=k.createBinaryExpression(de[Kt-1].value,de[Kt-2],j),Kt-=2,h=x.pop(),k.markEnd(j,h);return j}function uo(){var h,x,j,H,ne;return ne=F,h=ao(),w("?")&&(pe(),x=R.allowIn,R.allowIn=!0,j=pn(),R.allowIn=x,I(":"),H=pn(),h=k.createConditionalExpression(h,j,H),k.markEnd(h,ne)),h}function pn(){var h,x,j,H,ne;return h=F,ne=F,H=x=uo(),V()&&(ee(x)||_e({},p.InvalidLHSInAssignment),E&&x.type===d.Identifier&&xe(x.name)&&_e(h,p.StrictLHSAssignment),h=pe(),j=pn(),H=k.markEnd(k.createAssignmentExpression(h.value,x,j),ne)),H}function M(){var h,x=F;if(h=pn(),w(",")){for(h=k.createSequenceExpression([h]);b<_&&w(",");)pe(),h.expressions.push(pn());k.markEnd(h,x)}return h}function fe(){for(var h=[],x;b<_&&!(w("}")||(x=Qr(),typeof x>"u"));)h.push(x);return h}function be(){var h,x;return x=F,I("{"),h=fe(),I("}"),k.markEnd(k.createBlockStatement(h),x)}function Fe(){var h,x;return x=F,h=pe(),h.type!==u.Identifier&&ut(h),k.markEnd(k.createIdentifier(h.value),x)}function lt(h){var x=null,j,H;return H=F,j=Fe(),E&&xe(j.name)&&_e({},p.StrictVarName),h==="const"?(I("="),x=pn()):w("=")&&(pe(),x=pn()),k.markEnd(k.createVariableDeclarator(j,x),H)}function ft(h){var x=[];do{if(x.push(lt(h)),!w(","))break;pe()}while(b<_);return x}function nt(){var h;return y("var"),h=ft(),G(),k.createVariableDeclaration(h,"var")}function Xe(h){var x,j;return j=F,y(h),x=ft(h),G(),k.markEnd(k.createVariableDeclaration(x,h),j)}function Xt(){return I(";"),k.createEmptyStatement()}function Ft(){var h=M();return G(),k.createExpressionStatement(h)}function Dt(){var h,x,j;return y("if"),I("("),h=M(),I(")"),x=In(),P("else")?(pe(),j=In()):j=null,k.createIfStatement(h,x,j)}function cn(){var h,x,j;return y("do"),j=R.inIteration,R.inIteration=!0,h=In(),R.inIteration=j,y("while"),I("("),x=M(),I(")"),w(";")&&pe(),k.createDoWhileStatement(h,x)}function Tn(){var h,x,j;return y("while"),I("("),h=M(),I(")"),j=R.inIteration,R.inIteration=!0,x=In(),R.inIteration=j,k.createWhileStatement(h,x)}function sr(){var h,x,j;return j=F,h=pe(),x=ft(),k.markEnd(k.createVariableDeclaration(x,h.value),j)}function Ht(){var h,x,j,H,ne,de,Ke;return h=x=j=null,y("for"),I("("),w(";")?pe():(P("var")||P("let")?(R.allowIn=!1,h=sr(),R.allowIn=!0,h.declarations.length===1&&P("in")&&(pe(),H=h,ne=M(),h=null)):(R.allowIn=!1,h=M(),R.allowIn=!0,P("in")&&(ee(h)||_e({},p.InvalidLHSInForIn),pe(),H=h,ne=M(),h=null)),typeof H>"u"&&I(";")),typeof H>"u"&&(w(";")||(x=M()),I(";"),w(")")||(j=M())),I(")"),Ke=R.inIteration,R.inIteration=!0,de=In(),R.inIteration=Ke,typeof H>"u"?k.createForStatement(h,x,j,de):k.createForInStatement(H,ne,de)}function xi(){var h=null,x;return y("continue"),A.charCodeAt(b)===59?(pe(),R.inIteration||we({},p.IllegalContinue),k.createContinueStatement(null)):rt()?(R.inIteration||we({},p.IllegalContinue),k.createContinueStatement(null)):(F.type===u.Identifier&&(h=Fe(),x="$"+h.name,Object.prototype.hasOwnProperty.call(R.labelSet,x)||we({},p.UnknownLabel,h.name)),G(),h===null&&!R.inIteration&&we({},p.IllegalContinue),k.createContinueStatement(h))}function co(){var h=null,x;return y("break"),A.charCodeAt(b)===59?(pe(),R.inIteration||R.inSwitch||we({},p.IllegalBreak),k.createBreakStatement(null)):rt()?(R.inIteration||R.inSwitch||we({},p.IllegalBreak),k.createBreakStatement(null)):(F.type===u.Identifier&&(h=Fe(),x="$"+h.name,Object.prototype.hasOwnProperty.call(R.labelSet,x)||we({},p.UnknownLabel,h.name)),G(),h===null&&!(R.inIteration||R.inSwitch)&&we({},p.IllegalBreak),k.createBreakStatement(h))}function lo(){var h=null;return y("return"),R.inFunctionBody||_e({},p.IllegalReturn),A.charCodeAt(b)===32&&he(A.charCodeAt(b+1))?(h=M(),G(),k.createReturnStatement(h)):rt()?k.createReturnStatement(null):(w(";")||!w("}")&&F.type!==u.EOF&&(h=M()),G(),k.createReturnStatement(h))}function ka(){var h,x;return E&&(Y(),_e({},p.StrictModeWith)),y("with"),I("("),h=M(),I(")"),x=In(),k.createWithStatement(h,x)}function Ta(){var h,x=[],j,H;for(H=F,P("default")?(pe(),h=null):(y("case"),h=M()),I(":");b<_&&!(w("}")||P("default")||P("case"));)j=In(),x.push(j);return k.markEnd(k.createSwitchCase(h,x),H)}function Ia(){var h,x,j,H,ne;if(y("switch"),I("("),h=M(),I(")"),I("{"),x=[],w("}"))return pe(),k.createSwitchStatement(h,x);for(H=R.inSwitch,R.inSwitch=!0,ne=!1;b<_&&!w("}");)j=Ta(),j.test===null&&(ne&&we({},p.MultipleDefaultsInSwitch),ne=!0),x.push(j);return R.inSwitch=H,I("}"),k.createSwitchStatement(h,x)}function zc(){var h;return y("throw"),rt()&&we({},p.NewlineAfterThrow),h=M(),G(),k.createThrowStatement(h)}function Gc(){var h,x,j;return j=F,y("catch"),I("("),w(")")&&ut(F),h=Fe(),E&&xe(h.name)&&_e({},p.StrictCatchVariable),I(")"),x=be(),k.markEnd(k.createCatchClause(h,x),j)}function Jc(){var h,x=[],j=null;return y("try"),h=be(),P("catch")&&x.push(Gc()),P("finally")&&(pe(),j=be()),x.length===0&&!j&&we({},p.NoCatchOrFinally),k.createTryStatement(h,[],x,j)}function Yc(){return y("debugger"),G(),k.createDebuggerStatement()}function In(){var h=F.type,x,j,H,ne;if(h===u.EOF&&ut(F),h===u.Punctuator&&F.value==="{")return be();if(ne=F,h===u.Punctuator)switch(F.value){case";":return k.markEnd(Xt(),ne);case"(":return k.markEnd(Ft(),ne)}if(h===u.Keyword)switch(F.value){case"break":return k.markEnd(co(),ne);case"continue":return k.markEnd(xi(),ne);case"debugger":return k.markEnd(Yc(),ne);case"do":return k.markEnd(cn(),ne);case"for":return k.markEnd(Ht(),ne);case"function":return k.markEnd(hs(),ne);case"if":return k.markEnd(Dt(),ne);case"return":return k.markEnd(lo(),ne);case"switch":return k.markEnd(Ia(),ne);case"throw":return k.markEnd(zc(),ne);case"try":return k.markEnd(Jc(),ne);case"var":return k.markEnd(nt(),ne);case"while":return k.markEnd(Tn(),ne);case"with":return k.markEnd(ka(),ne)}return x=M(),x.type===d.Identifier&&w(":")?(pe(),H="$"+x.name,Object.prototype.hasOwnProperty.call(R.labelSet,H)&&we({},p.Redeclaration,"Label",x.name),R.labelSet[H]=!0,j=In(),delete R.labelSet[H],k.markEnd(k.createLabeledStatement(x,j),ne)):(G(),k.markEnd(k.createExpressionStatement(x),ne))}function fs(){var h,x=[],j,H,ne,de,Ke,yt,Qt,Kt;for(Kt=F,I("{");b<_&&!(F.type!==u.StringLiteral||(j=F,h=Qr(),x.push(h),h.expression.type!==d.Literal));)H=A.slice(j.start+1,j.end-1),H==="use strict"?(E=!0,ne&&_e(ne,p.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(de=R.labelSet,Ke=R.inIteration,yt=R.inSwitch,Qt=R.inFunctionBody,R.labelSet={},R.inIteration=!1,R.inSwitch=!1,R.inFunctionBody=!0;b<_&&!(w("}")||(h=Qr(),typeof h>"u"));)x.push(h);return I("}"),R.labelSet=de,R.inIteration=Ke,R.inSwitch=yt,R.inFunctionBody=Qt,k.markEnd(k.createBlockStatement(x),Kt)}function fo(h){var x,j=[],H,ne,de,Ke,yt;if(I("("),!w(")"))for(de={};b<_&&(H=F,x=Fe(),Ke="$"+H.value,E?(xe(H.value)&&(ne=H,yt=p.StrictParamName),Object.prototype.hasOwnProperty.call(de,Ke)&&(ne=H,yt=p.StrictParamDupe)):h||(xe(H.value)?(h=H,yt=p.StrictParamName):ke(H.value)?(h=H,yt=p.StrictReservedWord):Object.prototype.hasOwnProperty.call(de,Ke)&&(h=H,yt=p.StrictParamDupe)),j.push(x),de[Ke]=!0,!w(")"));)I(",");return I(")"),{params:j,stricted:ne,firstRestricted:h,message:yt}}function hs(){var h,x=[],j,H,ne,de,Ke,yt,Qt,Kt;return Kt=F,y("function"),H=F,h=Fe(),E?xe(H.value)&&_e(H,p.StrictFunctionName):xe(H.value)?(Ke=H,yt=p.StrictFunctionName):ke(H.value)&&(Ke=H,yt=p.StrictReservedWord),de=fo(Ke),x=de.params,ne=de.stricted,Ke=de.firstRestricted,de.message&&(yt=de.message),Qt=E,j=fs(),E&&Ke&&we(Ke,yt),E&&ne&&_e(ne,yt),E=Qt,k.markEnd(k.createFunctionDeclaration(h,x,[],j),Kt)}function Xc(){var h,x=null,j,H,ne,de,Ke=[],yt,Qt,Kt;return Kt=F,y("function"),w("(")||(h=F,x=Fe(),E?xe(h.value)&&_e(h,p.StrictFunctionName):xe(h.value)?(H=h,ne=p.StrictFunctionName):ke(h.value)&&(H=h,ne=p.StrictReservedWord)),de=fo(H),Ke=de.params,j=de.stricted,H=de.firstRestricted,de.message&&(ne=de.message),Qt=E,yt=fs(),E&&H&&we(H,ne),E&&j&&_e(j,ne),E=Qt,k.markEnd(k.createFunctionExpression(x,Ke,[],yt),Kt)}function Qr(){if(F.type===u.Keyword)switch(F.value){case"const":case"let":return Xe(F.value);case"function":return hs();default:return In()}if(F.type!==u.EOF)return In()}function ds(){for(var h,x=[],j,H,ne;b<_&&(j=F,!(j.type!==u.StringLiteral||(h=Qr(),x.push(h),h.expression.type!==d.Literal)));)H=A.slice(j.start+1,j.end-1),H==="use strict"?(E=!0,ne&&_e(ne,p.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(;b<_&&(h=Qr(),!(typeof h>"u"));)x.push(h);return x}function Oa(){var h,x;return Y(),At(),x=F,E=!1,h=ds(),k.markEnd(k.createProgram(h),x)}function Fa(){var h,x,j,H=[];for(h=0;h<O.tokens.length;++h)x=O.tokens[h],j={type:x.type,value:x.value},O.range&&(j.range=x.range),O.loc&&(j.loc=x.loc),H.push(j);O.tokens=H}function Ba(h,x){var j,H,ne;j=String,typeof h!="string"&&!(h instanceof String)&&(h=j(h)),k=C,A=h,b=0,B=A.length>0?1:0,N=0,_=A.length,F=null,R={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},O={},x=x||{},x.tokens=!0,O.tokens=[],O.tokenize=!0,O.openParenToken=-1,O.openCurlyToken=-1,O.range=typeof x.range=="boolean"&&x.range,O.loc=typeof x.loc=="boolean"&&x.loc,typeof x.comment=="boolean"&&x.comment&&(O.comments=[]),typeof x.tolerant=="boolean"&&x.tolerant&&(O.errors=[]);try{if(At(),F.type===u.EOF)return O.tokens;for(H=pe();F.type!==u.EOF;)try{H=pe()}catch(de){if(H=F,O.errors){O.errors.push(de);break}else throw de}Fa(),ne=O.tokens,typeof O.comments<"u"&&(ne.comments=O.comments),typeof O.errors<"u"&&(ne.errors=O.errors)}catch(de){throw de}finally{O={}}return ne}function Da(h,x){var j,H;H=String,typeof h!="string"&&!(h instanceof String)&&(h=H(h)),k=C,A=h,b=0,B=A.length>0?1:0,N=0,_=A.length,F=null,R={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},O={},typeof x<"u"&&(O.range=typeof x.range=="boolean"&&x.range,O.loc=typeof x.loc=="boolean"&&x.loc,O.attachComment=typeof x.attachComment=="boolean"&&x.attachComment,O.loc&&x.source!==null&&x.source!==void 0&&(O.source=H(x.source)),typeof x.tokens=="boolean"&&x.tokens&&(O.tokens=[]),typeof x.comment=="boolean"&&x.comment&&(O.comments=[]),typeof x.tolerant=="boolean"&&x.tolerant&&(O.errors=[]),O.attachComment&&(O.range=!0,O.comments=[],O.bottomRightStack=[],O.trailingComments=[],O.leadingComments=[]));try{j=Oa(),typeof O.comments<"u"&&(j.comments=O.comments),typeof O.tokens<"u"&&(Fa(),j.tokens=O.tokens),typeof O.errors<"u"&&(j.errors=O.errors)}catch(ne){throw ne}finally{O={}}return j}a.version="1.2.2",a.tokenize=Ba,a.parse=Da,a.Syntax=function(){var h,x={};typeof Object.create=="function"&&(x=Object.create(null));for(h in d)d.hasOwnProperty(h)&&(x[h]=d[h]);return typeof Object.freeze=="function"&&Object.freeze(x),x}()})},{}],1:[function(n,i,o){(function(a){var u=function(){var l={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(v,C,A,E,b,B,N){E.ast||(E.ast=f,f.initialize());var _=B.length-1;switch(b){case 1:return E.ast.set({expression:{type:"root",value:B[_]}}),E.ast.unshift(),E.ast.yield();case 2:return E.ast.set({expression:{type:"root",value:B[_-1]}}),E.ast.unshift(),E.ast.yield();case 3:return E.ast.unshift(),E.ast.yield();case 4:return E.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:B[_-1]}}),E.ast.unshift(),E.ast.yield();case 5:break;case 6:break;case 7:E.ast.set({operation:"member"}),E.ast.push();break;case 8:E.ast.set({operation:"subscript"}),E.ast.push();break;case 9:E.ast.set({scope:"child"});break;case 10:E.ast.set({scope:"descendant"});break;case 11:break;case 12:E.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:E.ast.set({expression:{type:"wildcard",value:B[_]}});break;case 15:E.ast.set({expression:{type:"identifier",value:B[_]}});break;case 16:E.ast.set({expression:{type:"script_expression",value:B[_]}});break;case 17:E.ast.set({expression:{type:"numeric_literal",value:parseInt(B[_])}});break;case 18:break;case 19:E.ast.set({scope:"child"});break;case 20:E.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:B[_].length>1?E.ast.set({expression:{type:"union",value:B[_]}}):this.$=B[_];break;case 25:this.$=[B[_]];break;case 26:this.$=B[_-2].concat(B[_]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(B[_])}},E.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:B[_]}},E.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:B[_]}},E.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:B[_]}},E.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:B[_]}},E.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:B[_]}},E.ast.set(this.$);break;case 33:this.$=B[_];break;case 34:this.$=B[_];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(v,C){if(C.recoverable)this.trace(v);else throw new Error(v)},parse:function(v){var C=this,A=[0],E=[null],b=[],B=this.table,N="",_=0,k=0,F=2,R=1,O=b.slice.call(arguments,1);this.lexer.setInput(v),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var W=this.lexer.yylloc;b.push(W);var J=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function le(){var Se;return Se=C.lexer.lex()||R,typeof Se!="number"&&(Se=C.symbols_[Se]||Se),Se}for(var ce,ge,ye,he,me={},Le,ke,xe,tt;;){if(ge=A[A.length-1],this.defaultActions[ge]?ye=this.defaultActions[ge]:((ce===null||typeof ce>"u")&&(ce=le()),ye=B[ge]&&B[ge][ce]),typeof ye>"u"||!ye.length||!ye[0]){var Ae="";tt=[];for(Le in B[ge])this.terminals_[Le]&&Le>F&&tt.push("'"+this.terminals_[Le]+"'");this.lexer.showPosition?Ae="Parse error on line "+(_+1)+`:
224
224
  `+this.lexer.showPosition()+`
225
- Expecting `+He.join(", ")+", got '"+(this.terminals_[le]||le)+"'":Ae="Parse error on line "+(_+1)+": Unexpected "+(le==P?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(Ae,{text:this.lexer.match,token:this.terminals_[le]||le,line:this.lexer.yylineno,loc:W,expected:He})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+le);switch(ye[0]){case 1:S.push(le),E.push(this.lexer.yytext),b.push(this.lexer.yylloc),S.push(ye[1]),le=null,k=this.lexer.yyleng,N=this.lexer.yytext,_=this.lexer.yylineno,W=this.lexer.yylloc;break;case 2:if(Se=this.productions_[ye[1]][1],pe.$=E[E.length-Se],pe._$={first_line:b[b.length-(Se||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(Se||1)].first_column,last_column:b[b.length-1].last_column},J&&(pe._$.range=[b[b.length-(Se||1)].range[0],b[b.length-1].range[1]]),Ce=this.performAction.apply(pe,[N,k,_,this.yy,ye[1],E,b].concat(I)),typeof Ce<"u")return Ce;Se&&(S=S.slice(0,-1*Se*2),E=E.slice(0,-1*Se),b=b.slice(0,-1*Se)),S.push(this.productions_[ye[1]][0]),E.push(pe.$),b.push(pe._$),Ee=B[S[S.length-2]][S[S.length-1]],S.push(Ee);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(p){for(var v in p)this._node[v]=p[v];return this._node},node:function(p){return arguments.length&&(this._node=p),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var p=this._nodes;return this.initialize(),p}},h=function(){var p={EOF:1,parseError:function(C,S){if(this.yy.parser)this.yy.parser.parseError(C,S);else throw new Error(C)},setInput:function(v){return this._input=v,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var C=v.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),v},unput:function(v){var C=v.length,S=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C-1),this.offset-=C;var E=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===E.length?this.yylloc.first_column:0)+E[E.length-S.length].length-S[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
225
+ Expecting `+tt.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":Ae="Parse error on line "+(_+1)+": Unexpected "+(ce==R?"end of input":"'"+(this.terminals_[ce]||ce)+"'"),this.parseError(Ae,{text:this.lexer.match,token:this.terminals_[ce]||ce,line:this.lexer.yylineno,loc:W,expected:tt})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+ce);switch(ye[0]){case 1:A.push(ce),E.push(this.lexer.yytext),b.push(this.lexer.yylloc),A.push(ye[1]),ce=null,k=this.lexer.yyleng,N=this.lexer.yytext,_=this.lexer.yylineno,W=this.lexer.yylloc;break;case 2:if(ke=this.productions_[ye[1]][1],me.$=E[E.length-ke],me._$={first_line:b[b.length-(ke||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(ke||1)].first_column,last_column:b[b.length-1].last_column},J&&(me._$.range=[b[b.length-(ke||1)].range[0],b[b.length-1].range[1]]),he=this.performAction.apply(me,[N,k,_,this.yy,ye[1],E,b].concat(O)),typeof he<"u")return he;ke&&(A=A.slice(0,-1*ke*2),E=E.slice(0,-1*ke),b=b.slice(0,-1*ke)),A.push(this.productions_[ye[1]][0]),E.push(me.$),b.push(me._$),xe=B[A[A.length-2]][A[A.length-1]],A.push(xe);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(p){for(var v in p)this._node[v]=p[v];return this._node},node:function(p){return arguments.length&&(this._node=p),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var p=this._nodes;return this.initialize(),p}},d=function(){var p={EOF:1,parseError:function(C,A){if(this.yy.parser)this.yy.parser.parseError(C,A);else throw new Error(C)},setInput:function(v){return this._input=v,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var C=v.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),v},unput:function(v){var C=v.length,A=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C-1),this.offset-=C;var E=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),A.length-1&&(this.yylineno-=A.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:A?(A.length===E.length?this.yylloc.first_column:0)+E[E.length-A.length].length-A[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
226
226
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(v){this.unput(this.match.slice(v))},pastInput:function(){var v=this.matched.substr(0,this.matched.length-this.match.length);return(v.length>20?"...":"")+v.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var v=this.match;return v.length<20&&(v+=this._input.substr(0,20-v.length)),(v.substr(0,20)+(v.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var v=this.pastInput(),C=new Array(v.length+1).join("-");return v+this.upcomingInput()+`
227
- `+C+"^"},test_match:function(v,C){var S,E,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),E=v[0].match(/(?:\r\n?|\n).*/g),E&&(this.yylineno+=E.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:E?E[E.length-1].length-E[E.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+v[0].length},this.yytext+=v[0],this.match+=v[0],this.matches=v,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(v[0].length),this.matched+=v[0],S=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var B in b)this[B]=b[B];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var v,C,S,E;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),B=0;B<b.length;B++)if(S=this._input.match(this.rules[b[B]]),S&&(!C||S[0].length>C[0].length)){if(C=S,E=B,this.options.backtrack_lexer){if(v=this.test_match(S,b[B]),v!==!1)return v;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(v=this.test_match(C,b[E]),v!==!1?v:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
228
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var C=this.next();return C||this.lex()},begin:function(C){this.conditionStack.push(C)},popState:function(){var C=this.conditionStack.length-1;return C>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},pushState:function(C){this.begin(C)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(C,S,E,b){switch(E){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return S.yytext=S.yytext.substr(1,S.yyleng-2),32;case 11:return S.yytext=S.yytext.substr(1,S.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return p}();l.lexer=h;function g(){this.yy={}}return g.prototype=l,l.Parser=g,new g}();typeof n<"u"&&typeof o<"u"&&(o.parser=u,o.Parser=u.Parser,o.parse=function(){return u.parse.apply(u,arguments)},o.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),a.exit(1));var h=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return o.parser.parse(h)},typeof i<"u"&&n.main===i&&o.main(a.argv.slice(1)))}).call(this,n("_process"))},{_process:14,fs:12,path:13}],2:[function(n,i,o){i.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(n,i,o){var a=n("./dict"),u=n("fs"),l={lex:{macros:{esc:"\\\\",int:a.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[a.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[a.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[a.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};u.readFileSync&&(l.moduleInclude=u.readFileSync(n.resolve("../include/module.js")),l.actionInclude=u.readFileSync(n.resolve("../include/action.js"))),i.exports=l},{"./dict":2,fs:12}],4:[function(n,i,o){var a=n("./aesprim"),u=n("./slice"),l=n("static-eval"),f=n("underscore").uniq,h=function(){return this.initialize.apply(this,arguments)};h.prototype.initialize=function(){this.traverse=C(!0),this.descend=C()},h.prototype.keys=Object.keys,h.prototype.resolve=function(_){var k=[_.operation,_.scope,_.expression.type].join("-"),F=this._fns[k];if(!F)throw new Error("couldn't resolve key: "+k);return F.bind(this)},h.prototype.register=function(_,k){if(!k instanceof Function)throw new Error("handler must be a function");this._fns[_]=k},h.prototype._fns={"member-child-identifier":function(_,k){var F=_.expression.value,P=k.value;if(P instanceof Object&&F in P)return[{value:P[F],path:k.path.concat(F)}]},"member-descendant-identifier":E(function(_,k,F){return _==F}),"subscript-child-numeric_literal":S(function(_,k,F){return _===F}),"member-child-numeric_literal":S(function(_,k,F){return String(_)===String(F)}),"subscript-descendant-numeric_literal":E(function(_,k,F){return _===F}),"member-child-wildcard":S(function(){return!0}),"member-descendant-wildcard":E(function(){return!0}),"subscript-descendant-wildcard":E(function(){return!0}),"subscript-child-wildcard":S(function(){return!0}),"subscript-child-slice":function(_,k){if(p(k.value)){var F=_.expression.value.split(":").map(N),P=k.value.map(function(I,W){return{value:I,path:k.path.concat(W)}});return u.apply(null,[P].concat(F))}},"subscript-child-union":function(_,k){var F=[];return _.expression.value.forEach(function(P){var I={operation:"subscript",scope:"child",expression:P.expression},W=this.resolve(I),J=W(I,k);J&&(F=F.concat(J))},this),B(F)},"subscript-descendant-union":function(_,k,F){var P=n(".."),I=this,W=[],J=P.nodes(k,"$..*").slice(1);return J.forEach(function(ce){W.length>=F||_.expression.value.forEach(function(le){var ge={operation:"subscript",scope:"child",expression:le.expression},ye=I.resolve(ge),Ce=ye(ge,ce);W=W.concat(Ce)})}),B(W)},"subscript-child-filter_expression":function(_,k,F){var P=_.expression.value.slice(2,-1),I=a.parse(P).body[0].expression,W=function(J,ce){return b(I,{"@":ce})};return this.descend(k,null,W,F)},"subscript-descendant-filter_expression":function(_,k,F){var P=_.expression.value.slice(2,-1),I=a.parse(P).body[0].expression,W=function(J,ce){return b(I,{"@":ce})};return this.traverse(k,null,W,F)},"subscript-child-script_expression":function(_,k){var F=_.expression.value.slice(1,-1);return g(k,F,"$[{{value}}]")},"member-child-script_expression":function(_,k){var F=_.expression.value.slice(1,-1);return g(k,F,"$.{{value}}")},"member-descendant-script_expression":function(_,k){var F=_.expression.value.slice(1,-1);return g(k,F,"$..value")}},h.prototype._fns["subscript-child-string_literal"]=h.prototype._fns["member-child-identifier"],h.prototype._fns["member-descendant-numeric_literal"]=h.prototype._fns["subscript-descendant-string_literal"]=h.prototype._fns["member-descendant-identifier"];function g(_,k,F){var P=n("./index"),I=a.parse(k).body[0].expression,W=b(I,{"@":_.value}),J=F.replace(/\{\{\s*value\s*\}\}/g,W),ce=P.nodes(_.value,J);return ce.forEach(function(le){le.path=_.path.concat(le.path.slice(1))}),ce}function p(_){return Array.isArray(_)}function v(_){return _&&!(_ instanceof Array)&&_ instanceof Object}function C(_){return function(k,F,P,I){var W=k.value,J=k.path,ce=[],le=function(ge,ye){p(ge)?(ge.forEach(function(Ce,pe){ce.length>=I||P(pe,Ce,F)&&ce.push({path:ye.concat(pe),value:Ce})}),ge.forEach(function(Ce,pe){ce.length>=I||_&&le(Ce,ye.concat(pe))})):v(ge)&&(this.keys(ge).forEach(function(Ce){ce.length>=I||P(Ce,ge[Ce],F)&&ce.push({path:ye.concat(Ce),value:ge[Ce]})}),this.keys(ge).forEach(function(Ce){ce.length>=I||_&&le(ge[Ce],ye.concat(Ce))}))}.bind(this);return le(W,J),ce}}function S(_){return function(k,F,P){return this.descend(F,k.expression.value,_,P)}}function E(_){return function(k,F,P){return this.traverse(F,k.expression.value,_,P)}}function b(){try{return l.apply(this,arguments)}catch{}}function B(_){return _=_.filter(function(k){return k}),f(_,function(k){return k.path.map(function(F){return String(F).replace("-","--")}).join("-")})}function N(_){var k=String(_);return k.match(/^-?[0-9]+$/)?parseInt(k):null}i.exports=h},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(n,i,o){var a=n("assert"),u=n("./dict"),l=n("./parser"),f=n("./handlers"),h=function(){this.initialize.apply(this,arguments)};h.prototype.initialize=function(){this.parser=new l,this.handlers=new f},h.prototype.parse=function(v){return a.ok(g(v),"we need a path"),this.parser.parse(v)},h.prototype.parent=function(v,C){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var S=this.nodes(v,C)[0];return S.path.pop(),this.value(v,S.path)},h.prototype.apply=function(v,C,S){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),a.equal(typeof S,"function","fn needs to be function");var E=this.nodes(v,C).sort(function(b,B){return B.path.length-b.path.length});return E.forEach(function(b){var B=b.path.pop(),N=this.value(v,this.stringify(b.path)),_=b.value=S.call(v,N[B]);N[B]=_},this),E},h.prototype.value=function(v,C,S){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),arguments.length>=3){var E=this.nodes(v,C).shift();if(!E)return this._vivify(v,C,S);var b=E.path.slice(-1).shift(),B=this.parent(v,this.stringify(E.path));B[b]=S}return this.query(v,this.stringify(C),1).shift()},h.prototype._vivify=function(v,C,S){var E=this;a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var b=this.parser.parse(C).map(function(N){return N.expression.value}),B=function(N,_){var k=N.pop(),F=E.value(v,N);F||(B(N.concat(),typeof k=="string"?{}:[]),F=E.value(v,N)),F[k]=_};return B(b,S),this.query(v,C)[0]},h.prototype.query=function(v,C,S){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(g(C),"we need a path");var E=this.nodes(v,C,S).map(function(b){return b.value});return E},h.prototype.paths=function(v,C,S){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var E=this.nodes(v,C,S).map(function(b){return b.path});return E},h.prototype.nodes=function(v,C,S){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),S===0)return[];var E=this.parser.parse(C),b=this.handlers,B=[{path:["$"],value:v}],N=[];return E.length&&E[0].expression.type=="root"&&E.shift(),E.length?(E.forEach(function(_,k){if(!(N.length>=S)){var F=b.resolve(_),P=[];B.forEach(function(I){if(!(N.length>=S)){var W=F(_,I,S);k==E.length-1?N=N.concat(W||[]):P=P.concat(W||[])}}),B=P}}),S?N.slice(0,S):N):B},h.prototype.stringify=function(v){a.ok(v,"we need a path");var C="$",S={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return v=this._normalize(v),v.forEach(function(E){if(E.expression.type!="root"){var b=[E.scope,E.operation].join("-"),B=S[b],N;if(E.expression.type=="string_literal"?N=JSON.stringify(E.expression.value):N=E.expression.value,!B)throw new Error("couldn't find template "+b);C+=B.replace(/{{value}}/,N)}}),C},h.prototype._normalize=function(v){if(a.ok(v,"we need a path"),typeof v=="string")return this.parser.parse(v);if(Array.isArray(v)&&typeof v[0]=="string"){var C=[{expression:{type:"root",value:"$"}}];return v.forEach(function(S,E){if(!(S=="$"&&E===0))if(typeof S=="string"&&S.match("^"+u.identifier+"$"))C.push({operation:"member",scope:"child",expression:{value:S,type:"identifier"}});else{var b=typeof S=="number"?"numeric_literal":"string_literal";C.push({operation:"subscript",scope:"child",expression:{value:S,type:b}})}}),C}else if(Array.isArray(v)&&typeof v[0]=="object")return v;throw new Error("couldn't understand path "+v)};function g(v){return Object.prototype.toString.call(v)=="[object String]"}h.Handlers=f,h.Parser=l;var p=new h;p.JSONPath=h,i.exports=p},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(n,i,o){var a=n("./grammar"),u=n("../generated/parser"),l=function(){var f=new u.Parser,h=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),h.apply(f,arguments)},f};l.grammar=a,i.exports=l},{"../generated/parser":1,"./grammar":3}],7:[function(n,i,o){i.exports=function(u,l,f,h){if(typeof l=="string")throw new Error("start cannot be a string");if(typeof f=="string")throw new Error("end cannot be a string");if(typeof h=="string")throw new Error("step cannot be a string");var g=u.length;if(h===0)throw new Error("step cannot be zero");if(h=h?a(h):1,l=l<0?g+l:l,f=f<0?g+f:f,l=a(l===0?0:l||(h>0?0:g-1)),f=a(f===0?0:f||(h>0?g:-1)),l=h>0?Math.max(0,l):Math.min(g,l),f=h>0?Math.min(f,g):Math.max(-1,f),h>0&&f<=l)return[];if(h<0&&l<=f)return[];for(var p=[],v=l;v!=f&&!(h<0&&v<=f||h>0&&v>=f);v+=h)p.push(u[v]);return p};function a(u){return String(u).match(/^[0-9]+$/)?parseInt(u):Number.isFinite(u)?parseInt(u,10):0}},{}],8:[function(n,i,o){var a=n("util/"),u=Array.prototype.slice,l=Object.prototype.hasOwnProperty,f=i.exports=C;f.AssertionError=function(F){this.name="AssertionError",this.actual=F.actual,this.expected=F.expected,this.operator=F.operator,F.message?(this.message=F.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var P=F.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,P);else{var I=new Error;if(I.stack){var W=I.stack,J=P.name,ce=W.indexOf(`
229
- `+J);if(ce>=0){var le=W.indexOf(`
230
- `,ce+1);W=W.substring(le+1)}this.stack=W}}},a.inherits(f.AssertionError,Error);function h(k,F){return a.isUndefined(F)?""+F:a.isNumber(F)&&!isFinite(F)||a.isFunction(F)||a.isRegExp(F)?F.toString():F}function g(k,F){return a.isString(k)?k.length<F?k:k.slice(0,F):k}function p(k){return g(JSON.stringify(k.actual,h),128)+" "+k.operator+" "+g(JSON.stringify(k.expected,h),128)}function v(k,F,P,I,W){throw new f.AssertionError({message:P,actual:k,expected:F,operator:I,stackStartFunction:W})}f.fail=v;function C(k,F){k||v(k,!0,F,"==",f.ok)}f.ok=C,f.equal=function(F,P,I){F!=P&&v(F,P,I,"==",f.equal)},f.notEqual=function(F,P,I){F==P&&v(F,P,I,"!=",f.notEqual)},f.deepEqual=function(F,P,I){S(F,P)||v(F,P,I,"deepEqual",f.deepEqual)};function S(k,F){if(k===F)return!0;if(a.isBuffer(k)&&a.isBuffer(F)){if(k.length!=F.length)return!1;for(var P=0;P<k.length;P++)if(k[P]!==F[P])return!1;return!0}else return a.isDate(k)&&a.isDate(F)?k.getTime()===F.getTime():a.isRegExp(k)&&a.isRegExp(F)?k.source===F.source&&k.global===F.global&&k.multiline===F.multiline&&k.lastIndex===F.lastIndex&&k.ignoreCase===F.ignoreCase:!a.isObject(k)&&!a.isObject(F)?k==F:b(k,F)}function E(k){return Object.prototype.toString.call(k)=="[object Arguments]"}function b(k,F){if(a.isNullOrUndefined(k)||a.isNullOrUndefined(F)||k.prototype!==F.prototype)return!1;if(a.isPrimitive(k)||a.isPrimitive(F))return k===F;var P=E(k),I=E(F);if(P&&!I||!P&&I)return!1;if(P)return k=u.call(k),F=u.call(F),S(k,F);var W=_(k),J=_(F),ce,le;if(W.length!=J.length)return!1;for(W.sort(),J.sort(),le=W.length-1;le>=0;le--)if(W[le]!=J[le])return!1;for(le=W.length-1;le>=0;le--)if(ce=W[le],!S(k[ce],F[ce]))return!1;return!0}f.notDeepEqual=function(F,P,I){S(F,P)&&v(F,P,I,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(F,P,I){F!==P&&v(F,P,I,"===",f.strictEqual)},f.notStrictEqual=function(F,P,I){F===P&&v(F,P,I,"!==",f.notStrictEqual)};function B(k,F){return!k||!F?!1:Object.prototype.toString.call(F)=="[object RegExp]"?F.test(k):k instanceof F?!0:F.call({},k)===!0}function N(k,F,P,I){var W;a.isString(P)&&(I=P,P=null);try{F()}catch(J){W=J}if(I=(P&&P.name?" ("+P.name+").":".")+(I?" "+I:"."),k&&!W&&v(W,P,"Missing expected exception"+I),!k&&B(W,P)&&v(W,P,"Got unwanted exception"+I),k&&W&&P&&!B(W,P)||!k&&W)throw W}f.throws=function(k,F,P){N.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(k,F){N.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(k){if(k)throw k};var _=Object.keys||function(k){var F=[];for(var P in k)l.call(k,P)&&F.push(P);return F}},{"util/":11}],9:[function(n,i,o){typeof Object.create=="function"?i.exports=function(u,l){u.super_=l,u.prototype=Object.create(l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(u,l){u.super_=l;var f=function(){};f.prototype=l.prototype,u.prototype=new f,u.prototype.constructor=u}},{}],10:[function(n,i,o){i.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],11:[function(n,i,o){(function(a,u){var l=/%[sdj%]/g;o.format=function(Y){if(!J(Y)){for(var Q=[],ae=0;ae<arguments.length;ae++)Q.push(g(arguments[ae]));return Q.join(" ")}for(var ae=1,Be=arguments,We=Be.length,_e=String(Y).replace(l,function(Oe){if(Oe==="%%")return"%";if(ae>=We)return Oe;switch(Oe){case"%s":return String(Be[ae++]);case"%d":return Number(Be[ae++]);case"%j":try{return JSON.stringify(Be[ae++])}catch{return"[Circular]"}default:return Oe}}),De=Be[ae];ae<We;De=Be[++ae])P(De)||!ye(De)?_e+=" "+De:_e+=" "+g(De);return _e},o.deprecate=function(Y,Q){if(le(u.process))return function(){return o.deprecate(Y,Q).apply(this,arguments)};if(a.noDeprecation===!0)return Y;var ae=!1;function Be(){if(!ae){if(a.throwDeprecation)throw new Error(Q);a.traceDeprecation?console.trace(Q):console.error(Q),ae=!0}return Y.apply(this,arguments)}return Be};var f={},h;o.debuglog=function(Y){if(le(h)&&(h=a.env.NODE_DEBUG||""),Y=Y.toUpperCase(),!f[Y])if(new RegExp("\\b"+Y+"\\b","i").test(h)){var Q=a.pid;f[Y]=function(){var ae=o.format.apply(o,arguments);console.error("%s %d: %s",Y,Q,ae)}}else f[Y]=function(){};return f[Y]};function g(Y,Q){var ae={seen:[],stylize:v};return arguments.length>=3&&(ae.depth=arguments[2]),arguments.length>=4&&(ae.colors=arguments[3]),F(Q)?ae.showHidden=Q:Q&&o._extend(ae,Q),le(ae.showHidden)&&(ae.showHidden=!1),le(ae.depth)&&(ae.depth=2),le(ae.colors)&&(ae.colors=!1),le(ae.customInspect)&&(ae.customInspect=!0),ae.colors&&(ae.stylize=p),S(ae,Y,ae.depth)}o.inspect=g,g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(Y,Q){var ae=g.styles[Q];return ae?"\x1B["+g.colors[ae][0]+"m"+Y+"\x1B["+g.colors[ae][1]+"m":Y}function v(Y,Q){return Y}function C(Y){var Q={};return Y.forEach(function(ae,Be){Q[ae]=!0}),Q}function S(Y,Q,ae){if(Y.customInspect&&Q&&Re(Q.inspect)&&Q.inspect!==o.inspect&&!(Q.constructor&&Q.constructor.prototype===Q)){var Be=Q.inspect(ae,Y);return J(Be)||(Be=S(Y,Be,ae)),Be}var We=E(Y,Q);if(We)return We;var _e=Object.keys(Q),De=C(_e);if(Y.showHidden&&(_e=Object.getOwnPropertyNames(Q)),pe(Q)&&(_e.indexOf("message")>=0||_e.indexOf("description")>=0))return b(Q);if(_e.length===0){if(Re(Q)){var Oe=Q.name?": "+Q.name:"";return Y.stylize("[Function"+Oe+"]","special")}if(ge(Q))return Y.stylize(RegExp.prototype.toString.call(Q),"regexp");if(Ce(Q))return Y.stylize(Date.prototype.toString.call(Q),"date");if(pe(Q))return b(Q)}var Le="",Tt=!1,nn=["{","}"];if(k(Q)&&(Tt=!0,nn=["[","]"]),Re(Q)){var Lt=Q.name?": "+Q.name:"";Le=" [Function"+Lt+"]"}if(ge(Q)&&(Le=" "+RegExp.prototype.toString.call(Q)),Ce(Q)&&(Le=" "+Date.prototype.toUTCString.call(Q)),pe(Q)&&(Le=" "+b(Q)),_e.length===0&&(!Tt||Q.length==0))return nn[0]+Le+nn[1];if(ae<0)return ge(Q)?Y.stylize(RegExp.prototype.toString.call(Q),"regexp"):Y.stylize("[Object]","special");Y.seen.push(Q);var Nt;return Tt?Nt=B(Y,Q,ae,De,_e):Nt=_e.map(function(jt){return N(Y,Q,ae,De,jt,Tt)}),Y.seen.pop(),_(Nt,Le,nn)}function E(Y,Q){if(le(Q))return Y.stylize("undefined","undefined");if(J(Q)){var ae="'"+JSON.stringify(Q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Y.stylize(ae,"string")}if(W(Q))return Y.stylize(""+Q,"number");if(F(Q))return Y.stylize(""+Q,"boolean");if(P(Q))return Y.stylize("null","null")}function b(Y){return"["+Error.prototype.toString.call(Y)+"]"}function B(Y,Q,ae,Be,We){for(var _e=[],De=0,Oe=Q.length;De<Oe;++De)Me(Q,String(De))?_e.push(N(Y,Q,ae,Be,String(De),!0)):_e.push("");return We.forEach(function(Le){Le.match(/^\d+$/)||_e.push(N(Y,Q,ae,Be,Le,!0))}),_e}function N(Y,Q,ae,Be,We,_e){var De,Oe,Le;if(Le=Object.getOwnPropertyDescriptor(Q,We)||{value:Q[We]},Le.get?Le.set?Oe=Y.stylize("[Getter/Setter]","special"):Oe=Y.stylize("[Getter]","special"):Le.set&&(Oe=Y.stylize("[Setter]","special")),Me(Be,We)||(De="["+We+"]"),Oe||(Y.seen.indexOf(Le.value)<0?(P(ae)?Oe=S(Y,Le.value,null):Oe=S(Y,Le.value,ae-1),Oe.indexOf(`
231
- `)>-1&&(_e?Oe=Oe.split(`
232
- `).map(function(Tt){return" "+Tt}).join(`
227
+ `+C+"^"},test_match:function(v,C){var A,E,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),E=v[0].match(/(?:\r\n?|\n).*/g),E&&(this.yylineno+=E.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:E?E[E.length-1].length-E[E.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+v[0].length},this.yytext+=v[0],this.match+=v[0],this.matches=v,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(v[0].length),this.matched+=v[0],A=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),A)return A;if(this._backtrack){for(var B in b)this[B]=b[B];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var v,C,A,E;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),B=0;B<b.length;B++)if(A=this._input.match(this.rules[b[B]]),A&&(!C||A[0].length>C[0].length)){if(C=A,E=B,this.options.backtrack_lexer){if(v=this.test_match(A,b[B]),v!==!1)return v;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(v=this.test_match(C,b[E]),v!==!1?v:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
228
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var C=this.next();return C||this.lex()},begin:function(C){this.conditionStack.push(C)},popState:function(){var C=this.conditionStack.length-1;return C>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},pushState:function(C){this.begin(C)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(C,A,E,b){switch(E){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return A.yytext=A.yytext.substr(1,A.yyleng-2),32;case 11:return A.yytext=A.yytext.substr(1,A.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return p}();l.lexer=d;function g(){this.yy={}}return g.prototype=l,l.Parser=g,new g}();typeof n<"u"&&typeof o<"u"&&(o.parser=u,o.Parser=u.Parser,o.parse=function(){return u.parse.apply(u,arguments)},o.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),a.exit(1));var d=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return o.parser.parse(d)},typeof i<"u"&&n.main===i&&o.main(a.argv.slice(1)))}).call(this,n("_process"))},{_process:14,fs:12,path:13}],2:[function(n,i,o){i.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(n,i,o){var a=n("./dict"),u=n("fs"),l={lex:{macros:{esc:"\\\\",int:a.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[a.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[a.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[a.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};u.readFileSync&&(l.moduleInclude=u.readFileSync(n.resolve("../include/module.js")),l.actionInclude=u.readFileSync(n.resolve("../include/action.js"))),i.exports=l},{"./dict":2,fs:12}],4:[function(n,i,o){var a=n("./aesprim"),u=n("./slice"),l=n("static-eval"),f=n("underscore").uniq,d=function(){return this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.traverse=C(!0),this.descend=C()},d.prototype.keys=Object.keys,d.prototype.resolve=function(_){var k=[_.operation,_.scope,_.expression.type].join("-"),F=this._fns[k];if(!F)throw new Error("couldn't resolve key: "+k);return F.bind(this)},d.prototype.register=function(_,k){if(!k instanceof Function)throw new Error("handler must be a function");this._fns[_]=k},d.prototype._fns={"member-child-identifier":function(_,k){var F=_.expression.value,R=k.value;if(R instanceof Object&&F in R)return[{value:R[F],path:k.path.concat(F)}]},"member-descendant-identifier":E(function(_,k,F){return _==F}),"subscript-child-numeric_literal":A(function(_,k,F){return _===F}),"member-child-numeric_literal":A(function(_,k,F){return String(_)===String(F)}),"subscript-descendant-numeric_literal":E(function(_,k,F){return _===F}),"member-child-wildcard":A(function(){return!0}),"member-descendant-wildcard":E(function(){return!0}),"subscript-descendant-wildcard":E(function(){return!0}),"subscript-child-wildcard":A(function(){return!0}),"subscript-child-slice":function(_,k){if(p(k.value)){var F=_.expression.value.split(":").map(N),R=k.value.map(function(O,W){return{value:O,path:k.path.concat(W)}});return u.apply(null,[R].concat(F))}},"subscript-child-union":function(_,k){var F=[];return _.expression.value.forEach(function(R){var O={operation:"subscript",scope:"child",expression:R.expression},W=this.resolve(O),J=W(O,k);J&&(F=F.concat(J))},this),B(F)},"subscript-descendant-union":function(_,k,F){var R=n(".."),O=this,W=[],J=R.nodes(k,"$..*").slice(1);return J.forEach(function(le){W.length>=F||_.expression.value.forEach(function(ce){var ge={operation:"subscript",scope:"child",expression:ce.expression},ye=O.resolve(ge),he=ye(ge,le);W=W.concat(he)})}),B(W)},"subscript-child-filter_expression":function(_,k,F){var R=_.expression.value.slice(2,-1),O=a.parse(R).body[0].expression,W=function(J,le){return b(O,{"@":le})};return this.descend(k,null,W,F)},"subscript-descendant-filter_expression":function(_,k,F){var R=_.expression.value.slice(2,-1),O=a.parse(R).body[0].expression,W=function(J,le){return b(O,{"@":le})};return this.traverse(k,null,W,F)},"subscript-child-script_expression":function(_,k){var F=_.expression.value.slice(1,-1);return g(k,F,"$[{{value}}]")},"member-child-script_expression":function(_,k){var F=_.expression.value.slice(1,-1);return g(k,F,"$.{{value}}")},"member-descendant-script_expression":function(_,k){var F=_.expression.value.slice(1,-1);return g(k,F,"$..value")}},d.prototype._fns["subscript-child-string_literal"]=d.prototype._fns["member-child-identifier"],d.prototype._fns["member-descendant-numeric_literal"]=d.prototype._fns["subscript-descendant-string_literal"]=d.prototype._fns["member-descendant-identifier"];function g(_,k,F){var R=n("./index"),O=a.parse(k).body[0].expression,W=b(O,{"@":_.value}),J=F.replace(/\{\{\s*value\s*\}\}/g,W),le=R.nodes(_.value,J);return le.forEach(function(ce){ce.path=_.path.concat(ce.path.slice(1))}),le}function p(_){return Array.isArray(_)}function v(_){return _&&!(_ instanceof Array)&&_ instanceof Object}function C(_){return function(k,F,R,O){var W=k.value,J=k.path,le=[],ce=function(ge,ye){p(ge)?(ge.forEach(function(he,me){le.length>=O||R(me,he,F)&&le.push({path:ye.concat(me),value:he})}),ge.forEach(function(he,me){le.length>=O||_&&ce(he,ye.concat(me))})):v(ge)&&(this.keys(ge).forEach(function(he){le.length>=O||R(he,ge[he],F)&&le.push({path:ye.concat(he),value:ge[he]})}),this.keys(ge).forEach(function(he){le.length>=O||_&&ce(ge[he],ye.concat(he))}))}.bind(this);return ce(W,J),le}}function A(_){return function(k,F,R){return this.descend(F,k.expression.value,_,R)}}function E(_){return function(k,F,R){return this.traverse(F,k.expression.value,_,R)}}function b(){try{return l.apply(this,arguments)}catch{}}function B(_){return _=_.filter(function(k){return k}),f(_,function(k){return k.path.map(function(F){return String(F).replace("-","--")}).join("-")})}function N(_){var k=String(_);return k.match(/^-?[0-9]+$/)?parseInt(k):null}i.exports=d},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(n,i,o){var a=n("assert"),u=n("./dict"),l=n("./parser"),f=n("./handlers"),d=function(){this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.parser=new l,this.handlers=new f},d.prototype.parse=function(v){return a.ok(g(v),"we need a path"),this.parser.parse(v)},d.prototype.parent=function(v,C){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var A=this.nodes(v,C)[0];return A.path.pop(),this.value(v,A.path)},d.prototype.apply=function(v,C,A){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),a.equal(typeof A,"function","fn needs to be function");var E=this.nodes(v,C).sort(function(b,B){return B.path.length-b.path.length});return E.forEach(function(b){var B=b.path.pop(),N=this.value(v,this.stringify(b.path)),_=b.value=A.call(v,N[B]);N[B]=_},this),E},d.prototype.value=function(v,C,A){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),arguments.length>=3){var E=this.nodes(v,C).shift();if(!E)return this._vivify(v,C,A);var b=E.path.slice(-1).shift(),B=this.parent(v,this.stringify(E.path));B[b]=A}return this.query(v,this.stringify(C),1).shift()},d.prototype._vivify=function(v,C,A){var E=this;a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var b=this.parser.parse(C).map(function(N){return N.expression.value}),B=function(N,_){var k=N.pop(),F=E.value(v,N);F||(B(N.concat(),typeof k=="string"?{}:[]),F=E.value(v,N)),F[k]=_};return B(b,A),this.query(v,C)[0]},d.prototype.query=function(v,C,A){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(g(C),"we need a path");var E=this.nodes(v,C,A).map(function(b){return b.value});return E},d.prototype.paths=function(v,C,A){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var E=this.nodes(v,C,A).map(function(b){return b.path});return E},d.prototype.nodes=function(v,C,A){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),A===0)return[];var E=this.parser.parse(C),b=this.handlers,B=[{path:["$"],value:v}],N=[];return E.length&&E[0].expression.type=="root"&&E.shift(),E.length?(E.forEach(function(_,k){if(!(N.length>=A)){var F=b.resolve(_),R=[];B.forEach(function(O){if(!(N.length>=A)){var W=F(_,O,A);k==E.length-1?N=N.concat(W||[]):R=R.concat(W||[])}}),B=R}}),A?N.slice(0,A):N):B},d.prototype.stringify=function(v){a.ok(v,"we need a path");var C="$",A={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return v=this._normalize(v),v.forEach(function(E){if(E.expression.type!="root"){var b=[E.scope,E.operation].join("-"),B=A[b],N;if(E.expression.type=="string_literal"?N=JSON.stringify(E.expression.value):N=E.expression.value,!B)throw new Error("couldn't find template "+b);C+=B.replace(/{{value}}/,N)}}),C},d.prototype._normalize=function(v){if(a.ok(v,"we need a path"),typeof v=="string")return this.parser.parse(v);if(Array.isArray(v)&&typeof v[0]=="string"){var C=[{expression:{type:"root",value:"$"}}];return v.forEach(function(A,E){if(!(A=="$"&&E===0))if(typeof A=="string"&&A.match("^"+u.identifier+"$"))C.push({operation:"member",scope:"child",expression:{value:A,type:"identifier"}});else{var b=typeof A=="number"?"numeric_literal":"string_literal";C.push({operation:"subscript",scope:"child",expression:{value:A,type:b}})}}),C}else if(Array.isArray(v)&&typeof v[0]=="object")return v;throw new Error("couldn't understand path "+v)};function g(v){return Object.prototype.toString.call(v)=="[object String]"}d.Handlers=f,d.Parser=l;var p=new d;p.JSONPath=d,i.exports=p},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(n,i,o){var a=n("./grammar"),u=n("../generated/parser"),l=function(){var f=new u.Parser,d=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),d.apply(f,arguments)},f};l.grammar=a,i.exports=l},{"../generated/parser":1,"./grammar":3}],7:[function(n,i,o){i.exports=function(u,l,f,d){if(typeof l=="string")throw new Error("start cannot be a string");if(typeof f=="string")throw new Error("end cannot be a string");if(typeof d=="string")throw new Error("step cannot be a string");var g=u.length;if(d===0)throw new Error("step cannot be zero");if(d=d?a(d):1,l=l<0?g+l:l,f=f<0?g+f:f,l=a(l===0?0:l||(d>0?0:g-1)),f=a(f===0?0:f||(d>0?g:-1)),l=d>0?Math.max(0,l):Math.min(g,l),f=d>0?Math.min(f,g):Math.max(-1,f),d>0&&f<=l)return[];if(d<0&&l<=f)return[];for(var p=[],v=l;v!=f&&!(d<0&&v<=f||d>0&&v>=f);v+=d)p.push(u[v]);return p};function a(u){return String(u).match(/^[0-9]+$/)?parseInt(u):Number.isFinite(u)?parseInt(u,10):0}},{}],8:[function(n,i,o){var a=n("util/"),u=Array.prototype.slice,l=Object.prototype.hasOwnProperty,f=i.exports=C;f.AssertionError=function(F){this.name="AssertionError",this.actual=F.actual,this.expected=F.expected,this.operator=F.operator,F.message?(this.message=F.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var R=F.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,R);else{var O=new Error;if(O.stack){var W=O.stack,J=R.name,le=W.indexOf(`
229
+ `+J);if(le>=0){var ce=W.indexOf(`
230
+ `,le+1);W=W.substring(ce+1)}this.stack=W}}},a.inherits(f.AssertionError,Error);function d(k,F){return a.isUndefined(F)?""+F:a.isNumber(F)&&!isFinite(F)||a.isFunction(F)||a.isRegExp(F)?F.toString():F}function g(k,F){return a.isString(k)?k.length<F?k:k.slice(0,F):k}function p(k){return g(JSON.stringify(k.actual,d),128)+" "+k.operator+" "+g(JSON.stringify(k.expected,d),128)}function v(k,F,R,O,W){throw new f.AssertionError({message:R,actual:k,expected:F,operator:O,stackStartFunction:W})}f.fail=v;function C(k,F){k||v(k,!0,F,"==",f.ok)}f.ok=C,f.equal=function(F,R,O){F!=R&&v(F,R,O,"==",f.equal)},f.notEqual=function(F,R,O){F==R&&v(F,R,O,"!=",f.notEqual)},f.deepEqual=function(F,R,O){A(F,R)||v(F,R,O,"deepEqual",f.deepEqual)};function A(k,F){if(k===F)return!0;if(a.isBuffer(k)&&a.isBuffer(F)){if(k.length!=F.length)return!1;for(var R=0;R<k.length;R++)if(k[R]!==F[R])return!1;return!0}else return a.isDate(k)&&a.isDate(F)?k.getTime()===F.getTime():a.isRegExp(k)&&a.isRegExp(F)?k.source===F.source&&k.global===F.global&&k.multiline===F.multiline&&k.lastIndex===F.lastIndex&&k.ignoreCase===F.ignoreCase:!a.isObject(k)&&!a.isObject(F)?k==F:b(k,F)}function E(k){return Object.prototype.toString.call(k)=="[object Arguments]"}function b(k,F){if(a.isNullOrUndefined(k)||a.isNullOrUndefined(F)||k.prototype!==F.prototype)return!1;if(a.isPrimitive(k)||a.isPrimitive(F))return k===F;var R=E(k),O=E(F);if(R&&!O||!R&&O)return!1;if(R)return k=u.call(k),F=u.call(F),A(k,F);var W=_(k),J=_(F),le,ce;if(W.length!=J.length)return!1;for(W.sort(),J.sort(),ce=W.length-1;ce>=0;ce--)if(W[ce]!=J[ce])return!1;for(ce=W.length-1;ce>=0;ce--)if(le=W[ce],!A(k[le],F[le]))return!1;return!0}f.notDeepEqual=function(F,R,O){A(F,R)&&v(F,R,O,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(F,R,O){F!==R&&v(F,R,O,"===",f.strictEqual)},f.notStrictEqual=function(F,R,O){F===R&&v(F,R,O,"!==",f.notStrictEqual)};function B(k,F){return!k||!F?!1:Object.prototype.toString.call(F)=="[object RegExp]"?F.test(k):k instanceof F?!0:F.call({},k)===!0}function N(k,F,R,O){var W;a.isString(R)&&(O=R,R=null);try{F()}catch(J){W=J}if(O=(R&&R.name?" ("+R.name+").":".")+(O?" "+O:"."),k&&!W&&v(W,R,"Missing expected exception"+O),!k&&B(W,R)&&v(W,R,"Got unwanted exception"+O),k&&W&&R&&!B(W,R)||!k&&W)throw W}f.throws=function(k,F,R){N.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(k,F){N.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(k){if(k)throw k};var _=Object.keys||function(k){var F=[];for(var R in k)l.call(k,R)&&F.push(R);return F}},{"util/":11}],9:[function(n,i,o){typeof Object.create=="function"?i.exports=function(u,l){u.super_=l,u.prototype=Object.create(l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(u,l){u.super_=l;var f=function(){};f.prototype=l.prototype,u.prototype=new f,u.prototype.constructor=u}},{}],10:[function(n,i,o){i.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],11:[function(n,i,o){(function(a,u){var l=/%[sdj%]/g;o.format=function(Y){if(!J(Y)){for(var Q=[],ue=0;ue<arguments.length;ue++)Q.push(g(arguments[ue]));return Q.join(" ")}for(var ue=1,De=arguments,Ye=De.length,Te=String(Y).replace(l,function(Oe){if(Oe==="%%")return"%";if(ue>=Ye)return Oe;switch(Oe){case"%s":return String(De[ue++]);case"%d":return Number(De[ue++]);case"%j":try{return JSON.stringify(De[ue++])}catch{return"[Circular]"}default:return Oe}}),Re=De[ue];ue<Ye;Re=De[++ue])R(Re)||!ye(Re)?Te+=" "+Re:Te+=" "+g(Re);return Te},o.deprecate=function(Y,Q){if(ce(u.process))return function(){return o.deprecate(Y,Q).apply(this,arguments)};if(a.noDeprecation===!0)return Y;var ue=!1;function De(){if(!ue){if(a.throwDeprecation)throw new Error(Q);a.traceDeprecation?console.trace(Q):console.error(Q),ue=!0}return Y.apply(this,arguments)}return De};var f={},d;o.debuglog=function(Y){if(ce(d)&&(d=a.env.NODE_DEBUG||""),Y=Y.toUpperCase(),!f[Y])if(new RegExp("\\b"+Y+"\\b","i").test(d)){var Q=a.pid;f[Y]=function(){var ue=o.format.apply(o,arguments);console.error("%s %d: %s",Y,Q,ue)}}else f[Y]=function(){};return f[Y]};function g(Y,Q){var ue={seen:[],stylize:v};return arguments.length>=3&&(ue.depth=arguments[2]),arguments.length>=4&&(ue.colors=arguments[3]),F(Q)?ue.showHidden=Q:Q&&o._extend(ue,Q),ce(ue.showHidden)&&(ue.showHidden=!1),ce(ue.depth)&&(ue.depth=2),ce(ue.colors)&&(ue.colors=!1),ce(ue.customInspect)&&(ue.customInspect=!0),ue.colors&&(ue.stylize=p),A(ue,Y,ue.depth)}o.inspect=g,g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(Y,Q){var ue=g.styles[Q];return ue?"\x1B["+g.colors[ue][0]+"m"+Y+"\x1B["+g.colors[ue][1]+"m":Y}function v(Y,Q){return Y}function C(Y){var Q={};return Y.forEach(function(ue,De){Q[ue]=!0}),Q}function A(Y,Q,ue){if(Y.customInspect&&Q&&Le(Q.inspect)&&Q.inspect!==o.inspect&&!(Q.constructor&&Q.constructor.prototype===Q)){var De=Q.inspect(ue,Y);return J(De)||(De=A(Y,De,ue)),De}var Ye=E(Y,Q);if(Ye)return Ye;var Te=Object.keys(Q),Re=C(Te);if(Y.showHidden&&(Te=Object.getOwnPropertyNames(Q)),me(Q)&&(Te.indexOf("message")>=0||Te.indexOf("description")>=0))return b(Q);if(Te.length===0){if(Le(Q)){var Oe=Q.name?": "+Q.name:"";return Y.stylize("[Function"+Oe+"]","special")}if(ge(Q))return Y.stylize(RegExp.prototype.toString.call(Q),"regexp");if(he(Q))return Y.stylize(Date.prototype.toString.call(Q),"date");if(me(Q))return b(Q)}var Ne="",kt=!1,nn=["{","}"];if(k(Q)&&(kt=!0,nn=["[","]"]),Le(Q)){var Lt=Q.name?": "+Q.name:"";Ne=" [Function"+Lt+"]"}if(ge(Q)&&(Ne=" "+RegExp.prototype.toString.call(Q)),he(Q)&&(Ne=" "+Date.prototype.toUTCString.call(Q)),me(Q)&&(Ne=" "+b(Q)),Te.length===0&&(!kt||Q.length==0))return nn[0]+Ne+nn[1];if(ue<0)return ge(Q)?Y.stylize(RegExp.prototype.toString.call(Q),"regexp"):Y.stylize("[Object]","special");Y.seen.push(Q);var Pt;return kt?Pt=B(Y,Q,ue,Re,Te):Pt=Te.map(function(Nt){return N(Y,Q,ue,Re,Nt,kt)}),Y.seen.pop(),_(Pt,Ne,nn)}function E(Y,Q){if(ce(Q))return Y.stylize("undefined","undefined");if(J(Q)){var ue="'"+JSON.stringify(Q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Y.stylize(ue,"string")}if(W(Q))return Y.stylize(""+Q,"number");if(F(Q))return Y.stylize(""+Q,"boolean");if(R(Q))return Y.stylize("null","null")}function b(Y){return"["+Error.prototype.toString.call(Y)+"]"}function B(Y,Q,ue,De,Ye){for(var Te=[],Re=0,Oe=Q.length;Re<Oe;++Re)We(Q,String(Re))?Te.push(N(Y,Q,ue,De,String(Re),!0)):Te.push("");return Ye.forEach(function(Ne){Ne.match(/^\d+$/)||Te.push(N(Y,Q,ue,De,Ne,!0))}),Te}function N(Y,Q,ue,De,Ye,Te){var Re,Oe,Ne;if(Ne=Object.getOwnPropertyDescriptor(Q,Ye)||{value:Q[Ye]},Ne.get?Ne.set?Oe=Y.stylize("[Getter/Setter]","special"):Oe=Y.stylize("[Getter]","special"):Ne.set&&(Oe=Y.stylize("[Setter]","special")),We(De,Ye)||(Re="["+Ye+"]"),Oe||(Y.seen.indexOf(Ne.value)<0?(R(ue)?Oe=A(Y,Ne.value,null):Oe=A(Y,Ne.value,ue-1),Oe.indexOf(`
231
+ `)>-1&&(Te?Oe=Oe.split(`
232
+ `).map(function(kt){return" "+kt}).join(`
233
233
  `).substr(2):Oe=`
234
234
  `+Oe.split(`
235
- `).map(function(Tt){return" "+Tt}).join(`
236
- `))):Oe=Y.stylize("[Circular]","special")),le(De)){if(_e&&We.match(/^\d+$/))return Oe;De=JSON.stringify(""+We),De.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(De=De.substr(1,De.length-2),De=Y.stylize(De,"name")):(De=De.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),De=Y.stylize(De,"string"))}return De+": "+Oe}function _(Y,Q,ae){var Be=Y.reduce(function(We,_e){return _e.indexOf(`
237
- `)>=0,We+_e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Be>60?ae[0]+(Q===""?"":Q+`
235
+ `).map(function(kt){return" "+kt}).join(`
236
+ `))):Oe=Y.stylize("[Circular]","special")),ce(Re)){if(Te&&Ye.match(/^\d+$/))return Oe;Re=JSON.stringify(""+Ye),Re.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Re=Re.substr(1,Re.length-2),Re=Y.stylize(Re,"name")):(Re=Re.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Re=Y.stylize(Re,"string"))}return Re+": "+Oe}function _(Y,Q,ue){var De=Y.reduce(function(Ye,Te){return Te.indexOf(`
237
+ `)>=0,Ye+Te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return De>60?ue[0]+(Q===""?"":Q+`
238
238
  `)+" "+Y.join(`,
239
- `)+" "+ae[1]:ae[0]+Q+" "+Y.join(", ")+" "+ae[1]}function k(Y){return Array.isArray(Y)}o.isArray=k;function F(Y){return typeof Y=="boolean"}o.isBoolean=F;function P(Y){return Y===null}o.isNull=P;function I(Y){return Y==null}o.isNullOrUndefined=I;function W(Y){return typeof Y=="number"}o.isNumber=W;function J(Y){return typeof Y=="string"}o.isString=J;function ce(Y){return typeof Y=="symbol"}o.isSymbol=ce;function le(Y){return Y===void 0}o.isUndefined=le;function ge(Y){return ye(Y)&&Ee(Y)==="[object RegExp]"}o.isRegExp=ge;function ye(Y){return typeof Y=="object"&&Y!==null}o.isObject=ye;function Ce(Y){return ye(Y)&&Ee(Y)==="[object Date]"}o.isDate=Ce;function pe(Y){return ye(Y)&&(Ee(Y)==="[object Error]"||Y instanceof Error)}o.isError=pe;function Re(Y){return typeof Y=="function"}o.isFunction=Re;function Se(Y){return Y===null||typeof Y=="boolean"||typeof Y=="number"||typeof Y=="string"||typeof Y=="symbol"||typeof Y>"u"}o.isPrimitive=Se,o.isBuffer=n("./support/isBuffer");function Ee(Y){return Object.prototype.toString.call(Y)}function He(Y){return Y<10?"0"+Y.toString(10):Y.toString(10)}var Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function me(){var Y=new Date,Q=[He(Y.getHours()),He(Y.getMinutes()),He(Y.getSeconds())].join(":");return[Y.getDate(),Ae[Y.getMonth()],Q].join(" ")}o.log=function(){console.log("%s - %s",me(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(Y,Q){if(!Q||!ye(Q))return Y;for(var ae=Object.keys(Q),Be=ae.length;Be--;)Y[ae[Be]]=Q[ae[Be]];return Y};function Me(Y,Q){return Object.prototype.hasOwnProperty.call(Y,Q)}}).call(this,n("_process"),typeof Xn<"u"?Xn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,o){},{}],13:[function(n,i,o){(function(a){function u(g,p){for(var v=0,C=g.length-1;C>=0;C--){var S=g[C];S==="."?g.splice(C,1):S===".."?(g.splice(C,1),v++):v&&(g.splice(C,1),v--)}if(p)for(;v--;v)g.unshift("..");return g}o.resolve=function(){for(var g="",p=!1,v=arguments.length-1;v>=-1&&!p;v--){var C=v>=0?arguments[v]:a.cwd();if(typeof C!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!C)continue;g=C+"/"+g,p=C.charAt(0)==="/"}return g=u(f(g.split("/"),function(S){return!!S}),!p).join("/"),(p?"/":"")+g||"."},o.normalize=function(g){var p=o.isAbsolute(g),v=h(g,-1)==="/";return g=u(f(g.split("/"),function(C){return!!C}),!p).join("/"),!g&&!p&&(g="."),g&&v&&(g+="/"),(p?"/":"")+g},o.isAbsolute=function(g){return g.charAt(0)==="/"},o.join=function(){var g=Array.prototype.slice.call(arguments,0);return o.normalize(f(g,function(p,v){if(typeof p!="string")throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},o.relative=function(g,p){g=o.resolve(g).substr(1),p=o.resolve(p).substr(1);function v(_){for(var k=0;k<_.length&&_[k]==="";k++);for(var F=_.length-1;F>=0&&_[F]==="";F--);return k>F?[]:_.slice(k,F-k+1)}for(var C=v(g.split("/")),S=v(p.split("/")),E=Math.min(C.length,S.length),b=E,B=0;B<E;B++)if(C[B]!==S[B]){b=B;break}for(var N=[],B=b;B<C.length;B++)N.push("..");return N=N.concat(S.slice(b)),N.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var p=g.charCodeAt(0),v=p===47,C=-1,S=!0,E=g.length-1;E>=1;--E)if(p=g.charCodeAt(E),p===47){if(!S){C=E;break}}else S=!1;return C===-1?v?"/":".":v&&C===1?"/":g.slice(0,C)};function l(g){typeof g!="string"&&(g=g+"");var p=0,v=-1,C=!0,S;for(S=g.length-1;S>=0;--S)if(g.charCodeAt(S)===47){if(!C){p=S+1;break}}else v===-1&&(C=!1,v=S+1);return v===-1?"":g.slice(p,v)}o.basename=function(g,p){var v=l(g);return p&&v.substr(-1*p.length)===p&&(v=v.substr(0,v.length-p.length)),v},o.extname=function(g){typeof g!="string"&&(g=g+"");for(var p=-1,v=0,C=-1,S=!0,E=0,b=g.length-1;b>=0;--b){var B=g.charCodeAt(b);if(B===47){if(!S){v=b+1;break}continue}C===-1&&(S=!1,C=b+1),B===46?p===-1?p=b:E!==1&&(E=1):p!==-1&&(E=-1)}return p===-1||C===-1||E===0||E===1&&p===C-1&&p===v+1?"":g.slice(p,C)};function f(g,p){if(g.filter)return g.filter(p);for(var v=[],C=0;C<g.length;C++)p(g[C],C,g)&&v.push(g[C]);return v}var h="ab".substr(-1)==="b"?function(g,p,v){return g.substr(p,v)}:function(g,p,v){return p<0&&(p=g.length+p),g.substr(p,v)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,o){var a=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=h}catch{l=h}})();function g(k){if(u===setTimeout)return setTimeout(k,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(k,0);try{return u(k,0)}catch{try{return u.call(null,k,0)}catch{return u.call(this,k,0)}}}function p(k){if(l===clearTimeout)return clearTimeout(k);if((l===h||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(k);try{return l(k)}catch{try{return l.call(null,k)}catch{return l.call(this,k)}}}var v=[],C=!1,S,E=-1;function b(){!C||!S||(C=!1,S.length?v=S.concat(v):E=-1,v.length&&B())}function B(){if(!C){var k=g(b);C=!0;for(var F=v.length;F;){for(S=v,v=[];++E<F;)S&&S[E].run();E=-1,F=v.length}S=null,C=!1,p(k)}}a.nextTick=function(k){var F=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)F[P-1]=arguments[P];v.push(new N(k,F)),v.length===1&&!C&&g(B)};function N(k,F){this.fun=k,this.array=F}N.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function _(){}a.on=_,a.addListener=_,a.once=_,a.off=_,a.removeListener=_,a.removeAllListeners=_,a.emit=_,a.prependListener=_,a.prependOnceListener=_,a.listeners=function(k){return[]},a.binding=function(k){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(k){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(n,i,o){var a=n("escodegen").generate;i.exports=function(u,l){l||(l={});var f={},h=function g(p,v){if(p.type==="Literal")return p.value;if(p.type==="UnaryExpression"){var C=g(p.argument);return p.operator==="+"?+C:p.operator==="-"?-C:p.operator==="~"?~C:p.operator==="!"?!C:f}else if(p.type==="ArrayExpression"){for(var S=[],E=0,b=p.elements.length;E<b;E++){var B=g(p.elements[E]);if(B===f)return f;S.push(B)}return S}else if(p.type==="ObjectExpression"){for(var N={},E=0;E<p.properties.length;E++){var _=p.properties[E],k=_.value===null?_.value:g(_.value);if(k===f)return f;N[_.key.value||_.key.name]=k}return N}else if(p.type==="BinaryExpression"||p.type==="LogicalExpression"){var b=g(p.left);if(b===f)return f;var F=g(p.right);if(F===f)return f;var P=p.operator;return P==="=="?b==F:P==="==="?b===F:P==="!="?b!=F:P==="!=="?b!==F:P==="+"?b+F:P==="-"?b-F:P==="*"?b*F:P==="/"?b/F:P==="%"?b%F:P==="<"?b<F:P==="<="?b<=F:P===">"?b>F:P===">="?b>=F:P==="|"?b|F:P==="&"?b&F:P==="^"?b^F:P==="&&"?b&&F:P==="||"?b||F:f}else{if(p.type==="Identifier")return{}.hasOwnProperty.call(l,p.name)?l[p.name]:f;if(p.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(p.type==="CallExpression"){var I=g(p.callee);if(I===f||typeof I!="function")return f;var W=p.callee.object?g(p.callee.object):f;W===f&&(W=null);for(var J=[],E=0,b=p.arguments.length;E<b;E++){var B=g(p.arguments[E]);if(B===f)return f;J.push(B)}return I.apply(W,J)}else if(p.type==="MemberExpression"){var N=g(p.object);if(N===f||typeof N=="function")return f;if(p.property.type==="Identifier")return N[p.property.name];var _=g(p.property);return _===f?f:N[_]}else if(p.type==="ConditionalExpression"){var C=g(p.test);return C===f?f:g(C?p.consequent:p.alternate)}else if(p.type==="ExpressionStatement"){var C=g(p.expression);return C===f?f:C}else{if(p.type==="ReturnStatement")return g(p.argument);if(p.type==="FunctionExpression"){var ce=p.body.body,le={};Object.keys(l).forEach(function(Ae){le[Ae]=l[Ae]});for(var E=0;E<p.params.length;E++){var ge=p.params[E];if(ge.type=="Identifier")l[ge.name]=null;else return f}for(var E in ce)if(g(ce[E])===f)return f;l=le;var ye=Object.keys(l),Ce=ye.map(function(Ae){return l[Ae]});return Function(ye.join(", "),"return "+a(p)).apply(null,Ce)}else if(p.type==="TemplateLiteral"){for(var pe="",E=0;E<p.expressions.length;E++)pe+=g(p.quasis[E]),pe+=g(p.expressions[E]);return pe+=g(p.quasis[E]),pe}else if(p.type==="TaggedTemplateExpression"){var Re=g(p.tag),Se=p.quasi,Ee=Se.quasis.map(g),He=Se.expressions.map(g);return Re.apply(null,[Ee].concat(He))}else return p.type==="TemplateElement"?p.value.cooked:f}}}(u);return h===f?void 0:h}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(Xh);var d2=Xh.exports;const Qh=Eu(d2),Zh=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let h="";f.includes("[")&&(h=JSON.stringify(f),o.push({dataIndex:h,jsonPath:f}));const g=f.split(".").slice(1);return{title:l,dataIndex:h||g,key:l}}):t&&(a=[...Object.keys(t).map(l=>({title:l,dataIndex:l,key:l}))]);let u;return i?(u=e.map(l=>{if(typeof l=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,syntheticProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l,internalDataForControls:f}}return{key:JSON.stringify(l),...l}}return{}}),o.length>0&&(u=u.map(l=>{const f={};return o.forEach(({dataIndex:h,jsonPath:g})=>{const p=Qh.query(l,`$${g}`);f[h]=Array.isArray(p)&&p.length===1?p[0]:p}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&!Array.isArray(l)&&l.spec&&typeof l.spec=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,synthetichProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l.spec,internalDataForControls:f}}return{key:JSON.stringify(l.spec),...l.spec}}return{}}),{dataSource:u,columns:a}},p2=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:h,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:v})=>{if(!i&&!a)return null;const{dataSource:C,columns:S}=Zh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return A.jsx(Yh,{theme:e,baseprefix:t,dataSource:C,columns:S,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:h,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:v})};var g2="Expected a function",ed=NaN,y2="[object Symbol]",m2=/^\s+|\s+$/g,w2=/^[-+]0x[0-9a-f]+$/i,b2=/^0b[01]+$/i,v2=/^0o[0-7]+$/i,A2=parseInt,S2=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,E2=typeof self=="object"&&self&&self.Object===Object&&self,x2=S2||E2||Function("return this")(),C2=Object.prototype,_2=C2.toString,k2=Math.max,T2=Math.min,sc=function(){return x2.Date.now()};function O2(e,t,n){var i,o,a,u,l,f,h=0,g=!1,p=!1,v=!0;if(typeof e!="function")throw new TypeError(g2);t=td(t)||0,oc(n)&&(g=!!n.leading,p="maxWait"in n,a=p?k2(td(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function C(P){var I=i,W=o;return i=o=void 0,h=P,u=e.apply(W,I),u}function S(P){return h=P,l=setTimeout(B,t),g?C(P):u}function E(P){var I=P-f,W=P-h,J=t-I;return p?T2(J,a-W):J}function b(P){var I=P-f,W=P-h;return f===void 0||I>=t||I<0||p&&W>=a}function B(){var P=sc();if(b(P))return N(P);l=setTimeout(B,E(P))}function N(P){return l=void 0,v&&i?C(P):(i=o=void 0,u)}function _(){l!==void 0&&clearTimeout(l),h=0,i=f=o=l=void 0}function k(){return l===void 0?u:N(sc())}function F(){var P=sc(),I=b(P);if(i=arguments,o=this,f=P,I){if(l===void 0)return S(f);if(p)return l=setTimeout(B,t),C(f)}return l===void 0&&(l=setTimeout(B,t)),u}return F.cancel=_,F.flush=k,F}function oc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function I2(e){return!!e&&typeof e=="object"}function F2(e){return typeof e=="symbol"||I2(e)&&_2.call(e)==y2}function td(e){if(typeof e=="number")return e;if(F2(e))return ed;if(oc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(m2,"");var n=b2.test(e);return n||v2.test(e)?A2(e.slice(2),n?2:8):w2.test(e)?ed:+e}var B2=O2;const nd=Eu(B2);function D2(e){const t=Z.useRef(e);t.current=e,Z.useEffect(()=>()=>{t.current()},[])}function P2(e,t=500,n){const i=Z.useRef();D2(()=>{i.current&&i.current.cancel()});const o=Z.useMemo(()=>{const a=nd(e,t,n),u=(...l)=>a(...l);return u.cancel=()=>{a.cancel()},u.isPending=()=>!!i.current,u.flush=()=>a.flush(),u},[e,t,n]);return Z.useEffect(()=>{i.current=nd(e,t,n)},[e,t,n]),o}const rd=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return nt.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},Kr=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>bn.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await rd({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),ac=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase()),Ns=(e,t,n=[])=>{const i=(a,u)=>a.length!==u.length?!1:a.every((l,f)=>l===u[f]),o=a=>t.some(u=>i(a,Array.isArray(u)?u:[u]));return typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(a=>{const u=[...n,a];if(typeof e[a]=="object"&&!Array.isArray(e[a])&&e[a]!==null)Ns(e[a],t,u),Object.keys(e[a]).length===0&&!o(u)&&delete e[a];else{const l=(typeof e[a]=="string"||Array.isArray(e[a]))&&e[a].length===0,f=e[a]===void 0;(l||f)&&!o(u)&&delete e[a]}}),e},Gi=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeNameBecauseOfSuddenBug"&&(e.nodeName=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&Gi(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>Gi(t))),e),ra=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeName"&&(e.nodeNameBecauseOfSuddenBug=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&ra(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>ra(t))),e);function js(e,t){const n=10**t;return Math.floor(e*n)/n}const R2=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),js(n,1);if(t.endsWith("m"))n/=1e3;else if(t.endsWith("k"))n/=1e6;else if(t.endsWith("M"))n/=1e3;else if(t.endsWith("G"))n/=1;else if(t.endsWith("T"))n*=1e3;else if(t.endsWith("Ki"))n/=1024,n/=1e6;else if(t.endsWith("Mi"))n/=1e3,n/=1e3;else if(/^\d+(\.\d+)?$/.test(t))n/=1e9;else throw new Error("Invalid value");return js(n,1)},uc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),js(t,1)}return 0},cc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));if(e.endsWith("k"))t/=1e6;else if(e.endsWith("m"))t/=1e3;else if(e.endsWith("M"))t/=1e3;else if(e.endsWith("G"))t/=1;else if(e.endsWith("T"))t*=1e3;else if(e.endsWith("P"))t*=1e6;else if(e.endsWith("E"))t*=1e9;else if(e.endsWith("Ki"))t*=1024/1e9;else if(e.endsWith("Mi"))t/=1048.576;else if(e.endsWith("Gi"))t*=1.073741824;else if(e.endsWith("Ti"))t*=1.099511628;else if(e.endsWith("Pi"))t*=1.125899907;else if(e.endsWith("Ei"))t*=1.152921505;else throw new Error("Invalid value");return js(t,1)}return 0},$s=(e,t,n,i=[])=>{let o=[];if(typeof e!="object"||e===null)return o;e[t]===n&&o.push([...i]);for(const a in e)if(e.hasOwnProperty(a)){const u=e[a];if(typeof u=="object"&&u!==null){const l=[...i,a],f=$s(u,t,n,l);o=o.concat(f)}}return o},ia=(e,t)=>{const n=yt.cloneDeep(e),i=$s(t,"type","rangeInputCpu");return $s(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,`${l}G`)}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,`${parseFloat(l)}`)}),n},lc=(e,t)=>{const n=yt.cloneDeep(e),i=$s(t,"type","rangeInputCpu");return $s(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,cc(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,uc(l))}),n},fc=(e,t=[])=>(Array.isArray(e)?e.map((i,o)=>[o,i]):Object.entries(e)).flatMap(([i,o])=>{const a=[...t,i];return typeof o=="object"&&o!==null?[a,...fc(o,a)]:[a]}),id=e=>e.map((t,n)=>e.slice(0,n+1));function L2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sd(Object(n),!0).forEach(function(i){L2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function N2(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function j2(e,t){if(e==null)return{};var n=N2(e,t),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function $2(e,t){return M2(e)||U2(e,t)||V2(e,t)||q2()}function M2(e){if(Array.isArray(e))return e}function U2(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],i=!0,o=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(i=(l=u.next()).done)&&(n.push(l.value),!(t&&n.length===t));i=!0);}catch(f){o=!0,a=f}finally{try{!i&&u.return!=null&&u.return()}finally{if(o)throw a}}return n}}function V2(e,t){if(e){if(typeof e=="string")return ad(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ad(e,t)}}function ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function q2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
240
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function cd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ud(Object(n),!0).forEach(function(i){W2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ud(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function K2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.reduceRight(function(o,a){return a(o)},i)}}function Ms(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function sa(e){return{}.toString.call(e).includes("Object")}function H2(e){return!Object.keys(e).length}function Us(e){return typeof e=="function"}function z2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function G2(e,t){return sa(t)||Hr("changeType"),Object.keys(t).some(function(n){return!z2(e,n)})&&Hr("changeField"),t}function J2(e){Us(e)||Hr("selectorType")}function Y2(e){Us(e)||sa(e)||Hr("handlerType"),sa(e)&&Object.values(e).some(function(t){return!Us(t)})&&Hr("handlersType")}function X2(e){e||Hr("initialIsRequired"),sa(e)||Hr("initialType"),H2(e)&&Hr("initialContent")}function Q2(e,t){throw new Error(e[t]||e.default)}var Z2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Hr=Ms(Q2)(Z2),oa={changes:G2,selector:J2,handler:Y2,initial:X2};function ew(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};oa.initial(e),oa.handler(t);var n={current:e},i=Ms(rw)(n,t),o=Ms(nw)(n),a=Ms(oa.changes)(e),u=Ms(tw)(n);function l(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return oa.selector(h),h(n.current)}function f(h){K2(i,o,a,u)(h)}return[l,f]}function tw(e,t){return Us(t)?t(e.current):t}function nw(e,t){return e.current=cd(cd({},e.current),t),t}function rw(e,t,n){return Us(t)?t(e.current):Object.keys(n).forEach(function(i){var o;return(o=t[i])===null||o===void 0?void 0:o.call(t,e.current[i])}),n}var iw={create:ew},sw={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function ow(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function aw(e){return{}.toString.call(e).includes("Object")}function uw(e){return e||fd("configIsRequired"),aw(e)||fd("configType"),e.urls?(cw(),{paths:{vs:e.urls.monacoBase}}):e}function cw(){console.warn(ld.deprecation)}function lw(e,t){throw new Error(e[t]||e.default)}var ld={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
239
+ `)+" "+ue[1]:ue[0]+Q+" "+Y.join(", ")+" "+ue[1]}function k(Y){return Array.isArray(Y)}o.isArray=k;function F(Y){return typeof Y=="boolean"}o.isBoolean=F;function R(Y){return Y===null}o.isNull=R;function O(Y){return Y==null}o.isNullOrUndefined=O;function W(Y){return typeof Y=="number"}o.isNumber=W;function J(Y){return typeof Y=="string"}o.isString=J;function le(Y){return typeof Y=="symbol"}o.isSymbol=le;function ce(Y){return Y===void 0}o.isUndefined=ce;function ge(Y){return ye(Y)&&xe(Y)==="[object RegExp]"}o.isRegExp=ge;function ye(Y){return typeof Y=="object"&&Y!==null}o.isObject=ye;function he(Y){return ye(Y)&&xe(Y)==="[object Date]"}o.isDate=he;function me(Y){return ye(Y)&&(xe(Y)==="[object Error]"||Y instanceof Error)}o.isError=me;function Le(Y){return typeof Y=="function"}o.isFunction=Le;function ke(Y){return Y===null||typeof Y=="boolean"||typeof Y=="number"||typeof Y=="string"||typeof Y=="symbol"||typeof Y>"u"}o.isPrimitive=ke,o.isBuffer=n("./support/isBuffer");function xe(Y){return Object.prototype.toString.call(Y)}function tt(Y){return Y<10?"0"+Y.toString(10):Y.toString(10)}var Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Se(){var Y=new Date,Q=[tt(Y.getHours()),tt(Y.getMinutes()),tt(Y.getSeconds())].join(":");return[Y.getDate(),Ae[Y.getMonth()],Q].join(" ")}o.log=function(){console.log("%s - %s",Se(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(Y,Q){if(!Q||!ye(Q))return Y;for(var ue=Object.keys(Q),De=ue.length;De--;)Y[ue[De]]=Q[ue[De]];return Y};function We(Y,Q){return Object.prototype.hasOwnProperty.call(Y,Q)}}).call(this,n("_process"),typeof Xn<"u"?Xn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,o){},{}],13:[function(n,i,o){(function(a){function u(g,p){for(var v=0,C=g.length-1;C>=0;C--){var A=g[C];A==="."?g.splice(C,1):A===".."?(g.splice(C,1),v++):v&&(g.splice(C,1),v--)}if(p)for(;v--;v)g.unshift("..");return g}o.resolve=function(){for(var g="",p=!1,v=arguments.length-1;v>=-1&&!p;v--){var C=v>=0?arguments[v]:a.cwd();if(typeof C!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!C)continue;g=C+"/"+g,p=C.charAt(0)==="/"}return g=u(f(g.split("/"),function(A){return!!A}),!p).join("/"),(p?"/":"")+g||"."},o.normalize=function(g){var p=o.isAbsolute(g),v=d(g,-1)==="/";return g=u(f(g.split("/"),function(C){return!!C}),!p).join("/"),!g&&!p&&(g="."),g&&v&&(g+="/"),(p?"/":"")+g},o.isAbsolute=function(g){return g.charAt(0)==="/"},o.join=function(){var g=Array.prototype.slice.call(arguments,0);return o.normalize(f(g,function(p,v){if(typeof p!="string")throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},o.relative=function(g,p){g=o.resolve(g).substr(1),p=o.resolve(p).substr(1);function v(_){for(var k=0;k<_.length&&_[k]==="";k++);for(var F=_.length-1;F>=0&&_[F]==="";F--);return k>F?[]:_.slice(k,F-k+1)}for(var C=v(g.split("/")),A=v(p.split("/")),E=Math.min(C.length,A.length),b=E,B=0;B<E;B++)if(C[B]!==A[B]){b=B;break}for(var N=[],B=b;B<C.length;B++)N.push("..");return N=N.concat(A.slice(b)),N.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var p=g.charCodeAt(0),v=p===47,C=-1,A=!0,E=g.length-1;E>=1;--E)if(p=g.charCodeAt(E),p===47){if(!A){C=E;break}}else A=!1;return C===-1?v?"/":".":v&&C===1?"/":g.slice(0,C)};function l(g){typeof g!="string"&&(g=g+"");var p=0,v=-1,C=!0,A;for(A=g.length-1;A>=0;--A)if(g.charCodeAt(A)===47){if(!C){p=A+1;break}}else v===-1&&(C=!1,v=A+1);return v===-1?"":g.slice(p,v)}o.basename=function(g,p){var v=l(g);return p&&v.substr(-1*p.length)===p&&(v=v.substr(0,v.length-p.length)),v},o.extname=function(g){typeof g!="string"&&(g=g+"");for(var p=-1,v=0,C=-1,A=!0,E=0,b=g.length-1;b>=0;--b){var B=g.charCodeAt(b);if(B===47){if(!A){v=b+1;break}continue}C===-1&&(A=!1,C=b+1),B===46?p===-1?p=b:E!==1&&(E=1):p!==-1&&(E=-1)}return p===-1||C===-1||E===0||E===1&&p===C-1&&p===v+1?"":g.slice(p,C)};function f(g,p){if(g.filter)return g.filter(p);for(var v=[],C=0;C<g.length;C++)p(g[C],C,g)&&v.push(g[C]);return v}var d="ab".substr(-1)==="b"?function(g,p,v){return g.substr(p,v)}:function(g,p,v){return p<0&&(p=g.length+p),g.substr(p,v)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,o){var a=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=d}catch{l=d}})();function g(k){if(u===setTimeout)return setTimeout(k,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(k,0);try{return u(k,0)}catch{try{return u.call(null,k,0)}catch{return u.call(this,k,0)}}}function p(k){if(l===clearTimeout)return clearTimeout(k);if((l===d||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(k);try{return l(k)}catch{try{return l.call(null,k)}catch{return l.call(this,k)}}}var v=[],C=!1,A,E=-1;function b(){!C||!A||(C=!1,A.length?v=A.concat(v):E=-1,v.length&&B())}function B(){if(!C){var k=g(b);C=!0;for(var F=v.length;F;){for(A=v,v=[];++E<F;)A&&A[E].run();E=-1,F=v.length}A=null,C=!1,p(k)}}a.nextTick=function(k){var F=new Array(arguments.length-1);if(arguments.length>1)for(var R=1;R<arguments.length;R++)F[R-1]=arguments[R];v.push(new N(k,F)),v.length===1&&!C&&g(B)};function N(k,F){this.fun=k,this.array=F}N.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function _(){}a.on=_,a.addListener=_,a.once=_,a.off=_,a.removeListener=_,a.removeAllListeners=_,a.emit=_,a.prependListener=_,a.prependOnceListener=_,a.listeners=function(k){return[]},a.binding=function(k){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(k){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(n,i,o){var a=n("escodegen").generate;i.exports=function(u,l){l||(l={});var f={},d=function g(p,v){if(p.type==="Literal")return p.value;if(p.type==="UnaryExpression"){var C=g(p.argument);return p.operator==="+"?+C:p.operator==="-"?-C:p.operator==="~"?~C:p.operator==="!"?!C:f}else if(p.type==="ArrayExpression"){for(var A=[],E=0,b=p.elements.length;E<b;E++){var B=g(p.elements[E]);if(B===f)return f;A.push(B)}return A}else if(p.type==="ObjectExpression"){for(var N={},E=0;E<p.properties.length;E++){var _=p.properties[E],k=_.value===null?_.value:g(_.value);if(k===f)return f;N[_.key.value||_.key.name]=k}return N}else if(p.type==="BinaryExpression"||p.type==="LogicalExpression"){var b=g(p.left);if(b===f)return f;var F=g(p.right);if(F===f)return f;var R=p.operator;return R==="=="?b==F:R==="==="?b===F:R==="!="?b!=F:R==="!=="?b!==F:R==="+"?b+F:R==="-"?b-F:R==="*"?b*F:R==="/"?b/F:R==="%"?b%F:R==="<"?b<F:R==="<="?b<=F:R===">"?b>F:R===">="?b>=F:R==="|"?b|F:R==="&"?b&F:R==="^"?b^F:R==="&&"?b&&F:R==="||"?b||F:f}else{if(p.type==="Identifier")return{}.hasOwnProperty.call(l,p.name)?l[p.name]:f;if(p.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(p.type==="CallExpression"){var O=g(p.callee);if(O===f||typeof O!="function")return f;var W=p.callee.object?g(p.callee.object):f;W===f&&(W=null);for(var J=[],E=0,b=p.arguments.length;E<b;E++){var B=g(p.arguments[E]);if(B===f)return f;J.push(B)}return O.apply(W,J)}else if(p.type==="MemberExpression"){var N=g(p.object);if(N===f||typeof N=="function")return f;if(p.property.type==="Identifier")return N[p.property.name];var _=g(p.property);return _===f?f:N[_]}else if(p.type==="ConditionalExpression"){var C=g(p.test);return C===f?f:g(C?p.consequent:p.alternate)}else if(p.type==="ExpressionStatement"){var C=g(p.expression);return C===f?f:C}else{if(p.type==="ReturnStatement")return g(p.argument);if(p.type==="FunctionExpression"){var le=p.body.body,ce={};Object.keys(l).forEach(function(Ae){ce[Ae]=l[Ae]});for(var E=0;E<p.params.length;E++){var ge=p.params[E];if(ge.type=="Identifier")l[ge.name]=null;else return f}for(var E in le)if(g(le[E])===f)return f;l=ce;var ye=Object.keys(l),he=ye.map(function(Ae){return l[Ae]});return Function(ye.join(", "),"return "+a(p)).apply(null,he)}else if(p.type==="TemplateLiteral"){for(var me="",E=0;E<p.expressions.length;E++)me+=g(p.quasis[E]),me+=g(p.expressions[E]);return me+=g(p.quasis[E]),me}else if(p.type==="TaggedTemplateExpression"){var Le=g(p.tag),ke=p.quasi,xe=ke.quasis.map(g),tt=ke.expressions.map(g);return Le.apply(null,[xe].concat(tt))}else return p.type==="TemplateElement"?p.value.cooked:f}}}(u);return d===f?void 0:d}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(Jh);var s2=Jh.exports;const Yh=Su(s2),Xh=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let d="";f.includes("[")&&(d=JSON.stringify(f),o.push({dataIndex:d,jsonPath:f}));const g=f.split(".").slice(1);return{title:l,dataIndex:d||g,key:l}}):t&&(a=[...Object.keys(t).map(l=>({title:l,dataIndex:l,key:l}))]);let u;return i?(u=e.map(l=>{if(typeof l=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,syntheticProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l,internalDataForControls:f}}return{key:JSON.stringify(l),...l}}return{}}),o.length>0&&(u=u.map(l=>{const f={};return o.forEach(({dataIndex:d,jsonPath:g})=>{const p=Yh.query(l,`$${g}`);f[d]=Array.isArray(p)&&p.length===1?p[0]:p}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&!Array.isArray(l)&&l.spec&&typeof l.spec=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,synthetichProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l.spec,internalDataForControls:f}}return{key:JSON.stringify(l.spec),...l.spec}}return{}}),{dataSource:u,columns:a}},o2=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:v})=>{if(!i&&!a)return null;const{dataSource:C,columns:A}=Xh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return S.jsx(Gh,{theme:e,baseprefix:t,dataSource:C,columns:A,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:v})};var a2="Expected a function",Qh=NaN,u2="[object Symbol]",c2=/^\s+|\s+$/g,l2=/^[-+]0x[0-9a-f]+$/i,f2=/^0b[01]+$/i,h2=/^0o[0-7]+$/i,d2=parseInt,p2=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,g2=typeof self=="object"&&self&&self.Object===Object&&self,y2=p2||g2||Function("return this")(),m2=Object.prototype,w2=m2.toString,b2=Math.max,v2=Math.min,rc=function(){return y2.Date.now()};function S2(e,t,n){var i,o,a,u,l,f,d=0,g=!1,p=!1,v=!0;if(typeof e!="function")throw new TypeError(a2);t=Zh(t)||0,ic(n)&&(g=!!n.leading,p="maxWait"in n,a=p?b2(Zh(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function C(R){var O=i,W=o;return i=o=void 0,d=R,u=e.apply(W,O),u}function A(R){return d=R,l=setTimeout(B,t),g?C(R):u}function E(R){var O=R-f,W=R-d,J=t-O;return p?v2(J,a-W):J}function b(R){var O=R-f,W=R-d;return f===void 0||O>=t||O<0||p&&W>=a}function B(){var R=rc();if(b(R))return N(R);l=setTimeout(B,E(R))}function N(R){return l=void 0,v&&i?C(R):(i=o=void 0,u)}function _(){l!==void 0&&clearTimeout(l),d=0,i=f=o=l=void 0}function k(){return l===void 0?u:N(rc())}function F(){var R=rc(),O=b(R);if(i=arguments,o=this,f=R,O){if(l===void 0)return A(f);if(p)return l=setTimeout(B,t),C(f)}return l===void 0&&(l=setTimeout(B,t)),u}return F.cancel=_,F.flush=k,F}function ic(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function A2(e){return!!e&&typeof e=="object"}function E2(e){return typeof e=="symbol"||A2(e)&&w2.call(e)==u2}function Zh(e){if(typeof e=="number")return e;if(E2(e))return Qh;if(ic(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ic(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(c2,"");var n=f2.test(e);return n||h2.test(e)?d2(e.slice(2),n?2:8):l2.test(e)?Qh:+e}var x2=S2;const ed=Su(x2);function C2(e){const t=Z.useRef(e);t.current=e,Z.useEffect(()=>()=>{t.current()},[])}function _2(e,t=500,n){const i=Z.useRef();C2(()=>{i.current&&i.current.cancel()});const o=Z.useMemo(()=>{const a=ed(e,t,n),u=(...l)=>a(...l);return u.cancel=()=>{a.cancel()},u.isPending=()=>!!i.current,u.flush=()=>a.flush(),u},[e,t,n]);return Z.useEffect(()=>{i.current=ed(e,t,n)},[e,t,n]),o}const td=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return Ue.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},Hr=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>bn.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await td({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),sc=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase()),na=(e,t,n=[])=>{const i=(a,u)=>a.length!==u.length?!1:a.every((l,f)=>l===u[f]),o=a=>t.some(u=>i(a,Array.isArray(u)?u:[u]));return typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(a=>{const u=[...n,a];if(typeof e[a]=="object"&&!Array.isArray(e[a])&&e[a]!==null)na(e[a],t,u),Object.keys(e[a]).length===0&&!o(u)&&delete e[a];else{const l=(typeof e[a]=="string"||Array.isArray(e[a]))&&e[a].length===0,f=e[a]===void 0;(l||f)&&!o(u)&&delete e[a]}}),e},Ps=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeNameBecauseOfSuddenBug"&&(e.nodeName=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&Ps(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>Ps(t))),e),oc=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeName"&&(e.nodeNameBecauseOfSuddenBug=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&oc(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>oc(t))),e);function Ns(e,t){const n=10**t;return Math.floor(e*n)/n}const k2=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Ns(n,1);if(t.endsWith("m"))n/=1e3;else if(t.endsWith("k"))n/=1e6;else if(t.endsWith("M"))n/=1e3;else if(t.endsWith("G"))n/=1;else if(t.endsWith("T"))n*=1e3;else if(t.endsWith("Ki"))n/=1024,n/=1e6;else if(t.endsWith("Mi"))n/=1e3,n/=1e3;else if(/^\d+(\.\d+)?$/.test(t))n/=1e9;else throw new Error("Invalid value");return Ns(n,1)},ac=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Ns(t,1)}return 0},uc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));if(e.endsWith("k"))t/=1e6;else if(e.endsWith("m"))t/=1e3;else if(e.endsWith("M"))t/=1e3;else if(e.endsWith("G"))t/=1;else if(e.endsWith("T"))t*=1e3;else if(e.endsWith("P"))t*=1e6;else if(e.endsWith("E"))t*=1e9;else if(e.endsWith("Ki"))t*=1024/1e9;else if(e.endsWith("Mi"))t/=1048.576;else if(e.endsWith("Gi"))t*=1.073741824;else if(e.endsWith("Ti"))t*=1.099511628;else if(e.endsWith("Pi"))t*=1.125899907;else if(e.endsWith("Ei"))t*=1.152921505;else throw new Error("Invalid value");return Ns(t,1)}return 0},js=(e,t,n,i=[])=>{let o=[];if(typeof e!="object"||e===null)return o;e[t]===n&&o.push([...i]);for(const a in e)if(e.hasOwnProperty(a)){const u=e[a];if(typeof u=="object"&&u!==null){const l=[...i,a],f=js(u,t,n,l);o=o.concat(f)}}return o},cc=(e,t)=>{const n=Ut.cloneDeep(e),i=js(t,"type","rangeInputCpu");return js(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=Ut.get(n,u);(l||l===0)&&Ut.set(n,u,`${l}G`)}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=Ut.get(n,u);(l||l===0)&&Ut.set(n,u,`${parseFloat(l)}`)}),n},nd=(e,t)=>{const n=Ut.cloneDeep(e),i=js(t,"type","rangeInputCpu");return js(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=Ut.get(n,u);(l||l===0)&&Ut.set(n,u,uc(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=Ut.get(n,u);(l||l===0)&&Ut.set(n,u,ac(l))}),n},lc=(e,t=[])=>(Array.isArray(e)?e.map((i,o)=>[o,i]):Object.entries(e)).flatMap(([i,o])=>{const a=[...t,i];return typeof o=="object"&&o!==null?[a,...lc(o,a)]:[a]}),rd=e=>e.map((t,n)=>e.slice(0,n+1));function T2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?id(Object(n),!0).forEach(function(i){T2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function I2(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function O2(e,t){if(e==null)return{};var n=I2(e,t),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function F2(e,t){return B2(e)||D2(e,t)||R2(e,t)||L2()}function B2(e){if(Array.isArray(e))return e}function D2(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],i=!0,o=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(i=(l=u.next()).done)&&(n.push(l.value),!(t&&n.length===t));i=!0);}catch(f){o=!0,a=f}finally{try{!i&&u.return!=null&&u.return()}finally{if(o)throw a}}return n}}function R2(e,t){if(e){if(typeof e=="string")return od(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return od(e,t)}}function od(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function L2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
240
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ad(Object(n),!0).forEach(function(i){P2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function N2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.reduceRight(function(o,a){return a(o)},i)}}function $s(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function ra(e){return{}.toString.call(e).includes("Object")}function j2(e){return!Object.keys(e).length}function Ms(e){return typeof e=="function"}function $2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function M2(e,t){return ra(t)||Kr("changeType"),Object.keys(t).some(function(n){return!$2(e,n)})&&Kr("changeField"),t}function U2(e){Ms(e)||Kr("selectorType")}function V2(e){Ms(e)||ra(e)||Kr("handlerType"),ra(e)&&Object.values(e).some(function(t){return!Ms(t)})&&Kr("handlersType")}function q2(e){e||Kr("initialIsRequired"),ra(e)||Kr("initialType"),j2(e)&&Kr("initialContent")}function W2(e,t){throw new Error(e[t]||e.default)}var H2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Kr=$s(W2)(H2),ia={changes:M2,selector:U2,handler:V2,initial:q2};function K2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ia.initial(e),ia.handler(t);var n={current:e},i=$s(J2)(n,t),o=$s(G2)(n),a=$s(ia.changes)(e),u=$s(z2)(n);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return ia.selector(d),d(n.current)}function f(d){N2(i,o,a,u)(d)}return[l,f]}function z2(e,t){return Ms(t)?t(e.current):t}function G2(e,t){return e.current=ud(ud({},e.current),t),t}function J2(e,t,n){return Ms(t)?t(e.current):Object.keys(n).forEach(function(i){var o;return(o=t[i])===null||o===void 0?void 0:o.call(t,e.current[i])}),n}var Y2={create:K2},X2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Q2(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function Z2(e){return{}.toString.call(e).includes("Object")}function ew(e){return e||ld("configIsRequired"),Z2(e)||ld("configType"),e.urls?(tw(),{paths:{vs:e.urls.monacoBase}}):e}function tw(){console.warn(cd.deprecation)}function nw(e,t){throw new Error(e[t]||e.default)}var cd={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
241
241
  You are using deprecated way of configuration.
242
242
 
243
243
  Instead of using
@@ -246,77 +246,77 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
246
246
  monaco.config({ paths: { vs: '...' } })
247
247
 
248
248
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
249
- `},fd=ow(lw)(ld),fw={config:uw},hw=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(o){return n.reduceRight(function(a,u){return u(a)},o)}};function hd(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],hd(e[n],t[n]))}),od(od({},e),t)}var dw={type:"cancelation",msg:"operation is manually canceled"};function hc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(dw):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var pw=iw.create({config:sw,isInitialized:!1,resolve:null,reject:null,monaco:null}),dd=$2(pw,2),Vs=dd[0],aa=dd[1];function gw(e){var t=fw.config(e),n=t.monaco,i=j2(t,["monaco"]);aa(function(o){return{config:hd(o.config,i),monaco:n}})}function yw(){var e=Vs(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(aa({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),hc(dc);if(window.monaco&&window.monaco.editor)return pd(window.monaco),e.resolve(window.monaco),hc(dc);hw(mw,bw)(vw)}return hc(dc)}function mw(e){return document.body.appendChild(e)}function ww(e){var t=document.createElement("script");return e&&(t.src=e),t}function bw(e){var t=Vs(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=ww("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function vw(){var e=Vs(function(n){var i=n.config,o=n.resolve,a=n.reject;return{config:i,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){pd(n),e.resolve(n)},function(n){e.reject(n)})}function pd(e){Vs().monaco||aa({monaco:e})}function Aw(){return Vs(function(e){var t=e.monaco;return t})}var dc=new Promise(function(e,t){return aa({resolve:e,reject:t})}),qs={config:gw,init:yw,__getMonacoInstance:Aw},Sw={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},pc=Sw,Ew={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},xw=Ew;function Cw({children:e}){return Z.createElement("div",{style:xw.container},e)}var _w=Cw,kw=_w;function Tw({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Z.createElement("section",{style:{...pc.wrapper,width:e,height:t},...u},!n&&Z.createElement(kw,null,i),Z.createElement("div",{ref:o,style:{...pc.fullWidth,...!n&&pc.hide},className:a}))}var Ow=Tw,gd=Z.memo(Ow);function Iw(e){Z.useEffect(e,[])}var gc=Iw;function Fw(e,t,n=!0){let i=Z.useRef(!0);Z.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=Fw;function Ws(){}function Ji(e,t,n,i){return Bw(e,i)||Dw(e,t,n,i)}function Bw(e,t){return e.editor.getModel(yd(e,t))}function Dw(e,t,n,i){return e.editor.createModel(t,n,i?yd(e,i):void 0)}function yd(e,t){return e.Uri.parse(t)}function Pw({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:h="light",loading:g="Loading...",options:p={},height:v="100%",width:C="100%",className:S,wrapperProps:E={},beforeMount:b=Ws,onMount:B=Ws}){let[N,_]=Z.useState(!1),[k,F]=Z.useState(!0),P=Z.useRef(null),I=Z.useRef(null),W=Z.useRef(null),J=Z.useRef(B),ce=Z.useRef(b),le=Z.useRef(!1);gc(()=>{let pe=qs.init();return pe.then(Re=>(I.current=Re)&&F(!1)).catch(Re=>Re?.type!=="cancelation"&&console.error("Monaco initialization: error:",Re)),()=>P.current?Ce():pe.cancel()}),_n(()=>{if(P.current&&I.current){let pe=P.current.getOriginalEditor(),Re=Ji(I.current,e||"",i||n||"text",a||"");Re!==pe.getModel()&&pe.setModel(Re)}},[a],N),_n(()=>{if(P.current&&I.current){let pe=P.current.getModifiedEditor(),Re=Ji(I.current,t||"",o||n||"text",u||"");Re!==pe.getModel()&&pe.setModel(Re)}},[u],N),_n(()=>{let pe=P.current.getModifiedEditor();pe.getOption(I.current.editor.EditorOption.readOnly)?pe.setValue(t||""):t!==pe.getValue()&&(pe.executeEdits("",[{range:pe.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),pe.pushUndoStop())},[t],N),_n(()=>{P.current?.getModel()?.original.setValue(e||"")},[e],N),_n(()=>{let{original:pe,modified:Re}=P.current.getModel();I.current.editor.setModelLanguage(pe,i||n||"text"),I.current.editor.setModelLanguage(Re,o||n||"text")},[n,i,o],N),_n(()=>{I.current?.editor.setTheme(h)},[h],N),_n(()=>{P.current?.updateOptions(p)},[p],N);let ge=Z.useCallback(()=>{if(!I.current)return;ce.current(I.current);let pe=Ji(I.current,e||"",i||n||"text",a||""),Re=Ji(I.current,t||"",o||n||"text",u||"");P.current?.setModel({original:pe,modified:Re})},[n,t,o,e,i,a,u]),ye=Z.useCallback(()=>{!le.current&&W.current&&(P.current=I.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...p}),ge(),I.current?.editor.setTheme(h),_(!0),le.current=!0)},[p,h,ge]);Z.useEffect(()=>{N&&J.current(P.current,I.current)},[N]),Z.useEffect(()=>{!k&&!N&&ye()},[k,N,ye]);function Ce(){let pe=P.current?.getModel();l||pe?.original?.dispose(),f||pe?.modified?.dispose(),P.current?.dispose()}return Z.createElement(gd,{width:C,height:v,isEditorReady:N,loading:g,_ref:W,className:S,wrapperProps:E})}var Rw=Pw,Lw=Z.memo(Rw);function Nw(){let[e,t]=Z.useState(qs.__getMonacoInstance());return gc(()=>{let n;return e||(n=qs.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var jw=Nw;function $w(e){let t=Z.useRef();return Z.useEffect(()=>{t.current=e},[e]),t.current}var Mw=$w,ua=new Map;function Uw({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:h={},overrideServices:g={},saveViewState:p=!0,keepCurrentModel:v=!1,width:C="100%",height:S="100%",className:E,wrapperProps:b={},beforeMount:B=Ws,onMount:N=Ws,onChange:_,onValidate:k=Ws}){let[F,P]=Z.useState(!1),[I,W]=Z.useState(!0),J=Z.useRef(null),ce=Z.useRef(null),le=Z.useRef(null),ge=Z.useRef(N),ye=Z.useRef(B),Ce=Z.useRef(),pe=Z.useRef(i),Re=Mw(a),Se=Z.useRef(!1),Ee=Z.useRef(!1);gc(()=>{let me=qs.init();return me.then(Me=>(J.current=Me)&&W(!1)).catch(Me=>Me?.type!=="cancelation"&&console.error("Monaco initialization: error:",Me)),()=>ce.current?Ae():me.cancel()}),_n(()=>{let me=Ji(J.current,e||i||"",t||o||"",a||n||"");me!==ce.current?.getModel()&&(p&&ua.set(Re,ce.current?.saveViewState()),ce.current?.setModel(me),p&&ce.current?.restoreViewState(ua.get(a)))},[a],F),_n(()=>{ce.current?.updateOptions(h)},[h],F),_n(()=>{!ce.current||i===void 0||(ce.current.getOption(J.current.editor.EditorOption.readOnly)?ce.current.setValue(i):i!==ce.current.getValue()&&(Ee.current=!0,ce.current.executeEdits("",[{range:ce.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),ce.current.pushUndoStop(),Ee.current=!1))},[i],F),_n(()=>{let me=ce.current?.getModel();me&&o&&J.current?.editor.setModelLanguage(me,o)},[o],F),_n(()=>{l!==void 0&&ce.current?.revealLine(l)},[l],F),_n(()=>{J.current?.editor.setTheme(u)},[u],F);let He=Z.useCallback(()=>{if(!(!le.current||!J.current)&&!Se.current){ye.current(J.current);let me=a||n,Me=Ji(J.current,i||e||"",t||o||"",me||"");ce.current=J.current?.editor.create(le.current,{model:Me,automaticLayout:!0,...h},g),p&&ce.current.restoreViewState(ua.get(me)),J.current.editor.setTheme(u),l!==void 0&&ce.current.revealLine(l),P(!0),Se.current=!0}},[e,t,n,i,o,a,h,g,p,u,l]);Z.useEffect(()=>{F&&ge.current(ce.current,J.current)},[F]),Z.useEffect(()=>{!I&&!F&&He()},[I,F,He]),pe.current=i,Z.useEffect(()=>{F&&_&&(Ce.current?.dispose(),Ce.current=ce.current?.onDidChangeModelContent(me=>{Ee.current||_(ce.current.getValue(),me)}))},[F,_]),Z.useEffect(()=>{if(F){let me=J.current.editor.onDidChangeMarkers(Me=>{let Y=ce.current.getModel()?.uri;if(Y&&Me.find(Q=>Q.path===Y.path)){let Q=J.current.editor.getModelMarkers({resource:Y});k?.(Q)}});return()=>{me?.dispose()}}return()=>{}},[F,k]);function Ae(){Ce.current?.dispose(),v?p&&ua.set(a,ce.current.saveViewState()):ce.current.getModel()?.dispose(),ce.current.dispose()}return Z.createElement(gd,{width:C,height:S,isEditorReady:F,loading:f,_ref:le,className:E,wrapperProps:b})}var Vw=Uw,md=Z.memo(Vw),yc=md;const qw=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Lw,Editor:md,default:yc,loader:qs,useMonaco:jw},Symbol.toStringTag,{value:"Module"})),mc=Symbol.for("yaml.alias"),wc=Symbol.for("yaml.document"),zr=Symbol.for("yaml.map"),wd=Symbol.for("yaml.pair"),yr=Symbol.for("yaml.scalar"),Yi=Symbol.for("yaml.seq"),Mn=Symbol.for("yaml.node.type"),Xi=e=>!!e&&typeof e=="object"&&e[Mn]===mc,Ks=e=>!!e&&typeof e=="object"&&e[Mn]===wc,Hs=e=>!!e&&typeof e=="object"&&e[Mn]===zr,Vt=e=>!!e&&typeof e=="object"&&e[Mn]===wd,kt=e=>!!e&&typeof e=="object"&&e[Mn]===yr,zs=e=>!!e&&typeof e=="object"&&e[Mn]===Yi;function qt(e){if(e&&typeof e=="object")switch(e[Mn]){case zr:case Yi:return!0}return!1}function Wt(e){if(e&&typeof e=="object")switch(e[Mn]){case mc:case zr:case yr:case Yi:return!0}return!1}const Ww=e=>(kt(e)||qt(e))&&!!e.anchor,gi=Symbol("break visit"),Kw=Symbol("skip children"),Gs=Symbol("remove node");function yi(e,t){const n=Hw(t);Ks(e)?Qi(null,e.contents,n,Object.freeze([e]))===Gs&&(e.contents=null):Qi(null,e,n,Object.freeze([]))}yi.BREAK=gi,yi.SKIP=Kw,yi.REMOVE=Gs;function Qi(e,t,n,i){const o=zw(e,t,n,i);if(Wt(o)||Vt(o))return Gw(e,i,o),Qi(e,o,n,i);if(typeof o!="symbol"){if(qt(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Qi(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===gi)return gi;u===Gs&&(t.items.splice(a,1),a-=1)}}}else if(Vt(t)){i=Object.freeze(i.concat(t));const a=Qi("key",t.key,n,i);if(a===gi)return gi;a===Gs&&(t.key=null);const u=Qi("value",t.value,n,i);if(u===gi)return gi;u===Gs&&(t.value=null)}}return o}function Hw(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function zw(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Hs(t))return n.Map?.(e,t,i);if(zs(t))return n.Seq?.(e,t,i);if(Vt(t))return n.Pair?.(e,t,i);if(kt(t))return n.Scalar?.(e,t,i);if(Xi(t))return n.Alias?.(e,t,i)}function Gw(e,t,n){const i=t[t.length-1];if(qt(i))i.items[e]=n;else if(Vt(i))e==="key"?i.key=n:i.value=n;else if(Ks(i))i.contents=n;else{const o=Xi(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Jw={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Yw=e=>e.replace(/[!,[\]{}]/g,t=>Jw[t]);class hn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},hn.defaultYaml,t),this.tags=Object.assign({},hn.defaultTags,n)}clone(){const t=new hn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new hn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:hn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},hn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:hn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},hn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),o=i.shift();switch(o){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[a,u]=i;return this.tags[a]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[a]=i;if(a==="1.1"||a==="1.2")return this.yaml.version=a,!0;{const u=/^\d+\.\d+$/.test(a);return n(6,`Unsupported YAML version ${a}`,u),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const u=t.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,i,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const a=this.tags[i];if(a)try{return a+decodeURIComponent(o)}catch(u){return n(String(u)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+Yw(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let o;if(t&&i.length>0&&Wt(t.contents)){const a={};yi(t.contents,(u,l)=>{Wt(l)&&l.tag&&(a[l.tag]=!0)}),o=Object.keys(a)}else o=[];for(const[a,u]of i)a==="!!"&&u==="tag:yaml.org,2002:"||(!t||o.some(l=>l.startsWith(u)))&&n.push(`%TAG ${a} ${u}`);return n.join(`
250
- `)}}hn.defaultYaml={explicit:!1,version:"1.2"},hn.defaultTags={"!!":"tag:yaml.org,2002:"};function bd(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function vd(e){const t=new Set;return yi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function Ad(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Xw(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=vd(e));const u=Ad(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(kt(u.node)||qt(u.node)))u.node.anchor=u.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=a,l}}},sourceObjects:i}}function Zi(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0,a=i.length;o<a;++o){const u=i[o],l=Zi(e,i,String(o),u);l===void 0?delete i[o]:l!==u&&(i[o]=l)}else if(i instanceof Map)for(const o of Array.from(i.keys())){const a=i.get(o),u=Zi(e,i,o,a);u===void 0?i.delete(o):u!==a&&i.set(o,u)}else if(i instanceof Set)for(const o of Array.from(i)){const a=Zi(e,i,o,o);a===void 0?i.delete(o):a!==o&&(i.delete(o),i.add(a))}else for(const[o,a]of Object.entries(i)){const u=Zi(e,i,o,a);u===void 0?delete i[o]:u!==a&&(i[o]=u)}return e.call(t,n,i)}function Un(e,t,n){if(Array.isArray(e))return e.map((i,o)=>Un(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Ww(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=a=>{i.res=a,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class bc{constructor(t){Object.defineProperty(this,Mn,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:a}={}){if(!Ks(t))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Un(this,"",u);if(typeof o=="function")for(const{count:f,res:h}of u.anchors.values())o(h,f);return typeof a=="function"?Zi(a,{"":l},"",l):l}}class vc extends bc{constructor(t){super(mc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return yi(t,{Node:(i,o)=>{if(o===this)return yi.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:a}=n,u=this.resolve(o);if(!u){const f=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(f)}let l=i.get(u);if(l||(Un(u,null,n),l=i.get(u)),!l||l.res===void 0){const f="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(f)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=ca(o,u,i)),l.count*l.aliasCount>a)){const f="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(f)}return l.res}toString(t,n,i){const o=`*${this.source}`;if(t){if(bd(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${o} `}return o}}function ca(e,t,n){if(Xi(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(qt(t)){let i=0;for(const o of t.items){const a=ca(e,o,n);a>i&&(i=a)}return i}else if(Vt(t)){const i=ca(e,t.key,n),o=ca(e,t.value,n);return Math.max(i,o)}return 1}const Sd=e=>!e||typeof e!="function"&&typeof e!="object";class qe extends bc{constructor(t){super(yr),this.value=t}toJSON(t,n){return n?.keep?this.value:Un(this.value,t,n)}toString(){return String(this.value)}}qe.BLOCK_FOLDED="BLOCK_FOLDED",qe.BLOCK_LITERAL="BLOCK_LITERAL",qe.PLAIN="PLAIN",qe.QUOTE_DOUBLE="QUOTE_DOUBLE",qe.QUOTE_SINGLE="QUOTE_SINGLE";const Qw="tag:yaml.org,2002:";function Zw(e,t,n){if(t){const i=n.filter(a=>a.tag===t),o=i.find(a=>!a.format)??i[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(i=>i.identify?.(e)&&!i.format)}function Js(e,t,n){if(Ks(e)&&(e=e.contents),Wt(e))return e;if(Vt(e)){const p=n.schema[zr].createNode?.(n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:a,schema:u,sourceObjects:l}=n;let f;if(i&&e&&typeof e=="object"){if(f=l.get(e),f)return f.anchor||(f.anchor=o(e)),new vc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Qw+t.slice(2));let h=Zw(e,t,u.tags);if(!h){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new qe(e);return f&&(f.node=p),p}h=e instanceof Map?u[zr]:Symbol.iterator in Object(e)?u[Yi]:u[zr]}a&&(a(h),delete n.onTagObj);const g=h?.createNode?h.createNode(n.schema,e,n):typeof h?.nodeClass?.from=="function"?h.nodeClass.from(n.schema,e,n):new qe(e);return t?g.tag=t:h.default||(g.tag=h.tag),f&&(f.node=g),g}function la(e,t,n){let i=n;for(let o=t.length-1;o>=0;--o){const a=t[o];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const u=[];u[a]=i,i=u}else i=new Map([[a,i]])}return Js(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Ys=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Ed extends bc{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>Wt(i)||Vt(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Ys(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(qt(a))a.addIn(o,n);else if(a===void 0&&this.schema)this.set(i,la(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}deleteIn(t){const[n,...i]=t;if(i.length===0)return this.delete(n);const o=this.get(n,!0);if(qt(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,a=this.get(i,!0);return o.length===0?!n&&kt(a)?a.value:a:qt(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Vt(n))return!1;const i=n.value;return i==null||t&&kt(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return qt(o)?o.hasIn(i):!1}setIn(t,n){const[i,...o]=t;if(o.length===0)this.set(i,n);else{const a=this.get(i,!0);if(qt(a))a.setIn(o,n);else if(a===void 0&&this.schema)this.set(i,la(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const eb=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function _r(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const mi=(e,t,n)=>e.endsWith(`
249
+ `},ld=Q2(nw)(cd),rw={config:ew},iw=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(o){return n.reduceRight(function(a,u){return u(a)},o)}};function fd(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],fd(e[n],t[n]))}),sd(sd({},e),t)}var sw={type:"cancelation",msg:"operation is manually canceled"};function fc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(sw):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var ow=Y2.create({config:X2,isInitialized:!1,resolve:null,reject:null,monaco:null}),hd=F2(ow,2),Us=hd[0],sa=hd[1];function aw(e){var t=rw.config(e),n=t.monaco,i=O2(t,["monaco"]);sa(function(o){return{config:fd(o.config,i),monaco:n}})}function uw(){var e=Us(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(sa({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),fc(hc);if(window.monaco&&window.monaco.editor)return dd(window.monaco),e.resolve(window.monaco),fc(hc);iw(cw,fw)(hw)}return fc(hc)}function cw(e){return document.body.appendChild(e)}function lw(e){var t=document.createElement("script");return e&&(t.src=e),t}function fw(e){var t=Us(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=lw("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function hw(){var e=Us(function(n){var i=n.config,o=n.resolve,a=n.reject;return{config:i,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){dd(n),e.resolve(n)},function(n){e.reject(n)})}function dd(e){Us().monaco||sa({monaco:e})}function dw(){return Us(function(e){var t=e.monaco;return t})}var hc=new Promise(function(e,t){return sa({resolve:e,reject:t})}),Vs={config:aw,init:uw,__getMonacoInstance:dw},pw={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},dc=pw,gw={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},yw=gw;function mw({children:e}){return Z.createElement("div",{style:yw.container},e)}var ww=mw,bw=ww;function vw({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Z.createElement("section",{style:{...dc.wrapper,width:e,height:t},...u},!n&&Z.createElement(bw,null,i),Z.createElement("div",{ref:o,style:{...dc.fullWidth,...!n&&dc.hide},className:a}))}var Sw=vw,pd=Z.memo(Sw);function Aw(e){Z.useEffect(e,[])}var pc=Aw;function Ew(e,t,n=!0){let i=Z.useRef(!0);Z.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=Ew;function qs(){}function Gi(e,t,n,i){return xw(e,i)||Cw(e,t,n,i)}function xw(e,t){return e.editor.getModel(gd(e,t))}function Cw(e,t,n,i){return e.editor.createModel(t,n,i?gd(e,i):void 0)}function gd(e,t){return e.Uri.parse(t)}function _w({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:d="light",loading:g="Loading...",options:p={},height:v="100%",width:C="100%",className:A,wrapperProps:E={},beforeMount:b=qs,onMount:B=qs}){let[N,_]=Z.useState(!1),[k,F]=Z.useState(!0),R=Z.useRef(null),O=Z.useRef(null),W=Z.useRef(null),J=Z.useRef(B),le=Z.useRef(b),ce=Z.useRef(!1);pc(()=>{let me=Vs.init();return me.then(Le=>(O.current=Le)&&F(!1)).catch(Le=>Le?.type!=="cancelation"&&console.error("Monaco initialization: error:",Le)),()=>R.current?he():me.cancel()}),_n(()=>{if(R.current&&O.current){let me=R.current.getOriginalEditor(),Le=Gi(O.current,e||"",i||n||"text",a||"");Le!==me.getModel()&&me.setModel(Le)}},[a],N),_n(()=>{if(R.current&&O.current){let me=R.current.getModifiedEditor(),Le=Gi(O.current,t||"",o||n||"text",u||"");Le!==me.getModel()&&me.setModel(Le)}},[u],N),_n(()=>{let me=R.current.getModifiedEditor();me.getOption(O.current.editor.EditorOption.readOnly)?me.setValue(t||""):t!==me.getValue()&&(me.executeEdits("",[{range:me.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),me.pushUndoStop())},[t],N),_n(()=>{R.current?.getModel()?.original.setValue(e||"")},[e],N),_n(()=>{let{original:me,modified:Le}=R.current.getModel();O.current.editor.setModelLanguage(me,i||n||"text"),O.current.editor.setModelLanguage(Le,o||n||"text")},[n,i,o],N),_n(()=>{O.current?.editor.setTheme(d)},[d],N),_n(()=>{R.current?.updateOptions(p)},[p],N);let ge=Z.useCallback(()=>{if(!O.current)return;le.current(O.current);let me=Gi(O.current,e||"",i||n||"text",a||""),Le=Gi(O.current,t||"",o||n||"text",u||"");R.current?.setModel({original:me,modified:Le})},[n,t,o,e,i,a,u]),ye=Z.useCallback(()=>{!ce.current&&W.current&&(R.current=O.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...p}),ge(),O.current?.editor.setTheme(d),_(!0),ce.current=!0)},[p,d,ge]);Z.useEffect(()=>{N&&J.current(R.current,O.current)},[N]),Z.useEffect(()=>{!k&&!N&&ye()},[k,N,ye]);function he(){let me=R.current?.getModel();l||me?.original?.dispose(),f||me?.modified?.dispose(),R.current?.dispose()}return Z.createElement(pd,{width:C,height:v,isEditorReady:N,loading:g,_ref:W,className:A,wrapperProps:E})}var kw=_w,Tw=Z.memo(kw);function Iw(){let[e,t]=Z.useState(Vs.__getMonacoInstance());return pc(()=>{let n;return e||(n=Vs.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var Ow=Iw;function Fw(e){let t=Z.useRef();return Z.useEffect(()=>{t.current=e},[e]),t.current}var Bw=Fw,oa=new Map;function Dw({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:d={},overrideServices:g={},saveViewState:p=!0,keepCurrentModel:v=!1,width:C="100%",height:A="100%",className:E,wrapperProps:b={},beforeMount:B=qs,onMount:N=qs,onChange:_,onValidate:k=qs}){let[F,R]=Z.useState(!1),[O,W]=Z.useState(!0),J=Z.useRef(null),le=Z.useRef(null),ce=Z.useRef(null),ge=Z.useRef(N),ye=Z.useRef(B),he=Z.useRef(),me=Z.useRef(i),Le=Bw(a),ke=Z.useRef(!1),xe=Z.useRef(!1);pc(()=>{let Se=Vs.init();return Se.then(We=>(J.current=We)&&W(!1)).catch(We=>We?.type!=="cancelation"&&console.error("Monaco initialization: error:",We)),()=>le.current?Ae():Se.cancel()}),_n(()=>{let Se=Gi(J.current,e||i||"",t||o||"",a||n||"");Se!==le.current?.getModel()&&(p&&oa.set(Le,le.current?.saveViewState()),le.current?.setModel(Se),p&&le.current?.restoreViewState(oa.get(a)))},[a],F),_n(()=>{le.current?.updateOptions(d)},[d],F),_n(()=>{!le.current||i===void 0||(le.current.getOption(J.current.editor.EditorOption.readOnly)?le.current.setValue(i):i!==le.current.getValue()&&(xe.current=!0,le.current.executeEdits("",[{range:le.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),le.current.pushUndoStop(),xe.current=!1))},[i],F),_n(()=>{let Se=le.current?.getModel();Se&&o&&J.current?.editor.setModelLanguage(Se,o)},[o],F),_n(()=>{l!==void 0&&le.current?.revealLine(l)},[l],F),_n(()=>{J.current?.editor.setTheme(u)},[u],F);let tt=Z.useCallback(()=>{if(!(!ce.current||!J.current)&&!ke.current){ye.current(J.current);let Se=a||n,We=Gi(J.current,i||e||"",t||o||"",Se||"");le.current=J.current?.editor.create(ce.current,{model:We,automaticLayout:!0,...d},g),p&&le.current.restoreViewState(oa.get(Se)),J.current.editor.setTheme(u),l!==void 0&&le.current.revealLine(l),R(!0),ke.current=!0}},[e,t,n,i,o,a,d,g,p,u,l]);Z.useEffect(()=>{F&&ge.current(le.current,J.current)},[F]),Z.useEffect(()=>{!O&&!F&&tt()},[O,F,tt]),me.current=i,Z.useEffect(()=>{F&&_&&(he.current?.dispose(),he.current=le.current?.onDidChangeModelContent(Se=>{xe.current||_(le.current.getValue(),Se)}))},[F,_]),Z.useEffect(()=>{if(F){let Se=J.current.editor.onDidChangeMarkers(We=>{let Y=le.current.getModel()?.uri;if(Y&&We.find(Q=>Q.path===Y.path)){let Q=J.current.editor.getModelMarkers({resource:Y});k?.(Q)}});return()=>{Se?.dispose()}}return()=>{}},[F,k]);function Ae(){he.current?.dispose(),v?p&&oa.set(a,le.current.saveViewState()):le.current.getModel()?.dispose(),le.current.dispose()}return Z.createElement(pd,{width:C,height:A,isEditorReady:F,loading:f,_ref:ce,className:E,wrapperProps:b})}var Rw=Dw,yd=Z.memo(Rw),gc=yd;const Lw=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Tw,Editor:yd,default:gc,loader:Vs,useMonaco:Ow},Symbol.toStringTag,{value:"Module"})),yc=Symbol.for("yaml.alias"),mc=Symbol.for("yaml.document"),zr=Symbol.for("yaml.map"),md=Symbol.for("yaml.pair"),yr=Symbol.for("yaml.scalar"),Ji=Symbol.for("yaml.seq"),Mn=Symbol.for("yaml.node.type"),Yi=e=>!!e&&typeof e=="object"&&e[Mn]===yc,Ws=e=>!!e&&typeof e=="object"&&e[Mn]===mc,Hs=e=>!!e&&typeof e=="object"&&e[Mn]===zr,Vt=e=>!!e&&typeof e=="object"&&e[Mn]===md,_t=e=>!!e&&typeof e=="object"&&e[Mn]===yr,Ks=e=>!!e&&typeof e=="object"&&e[Mn]===Ji;function qt(e){if(e&&typeof e=="object")switch(e[Mn]){case zr:case Ji:return!0}return!1}function Wt(e){if(e&&typeof e=="object")switch(e[Mn]){case yc:case zr:case yr:case Ji:return!0}return!1}const Pw=e=>(_t(e)||qt(e))&&!!e.anchor,gi=Symbol("break visit"),Nw=Symbol("skip children"),zs=Symbol("remove node");function yi(e,t){const n=jw(t);Ws(e)?Xi(null,e.contents,n,Object.freeze([e]))===zs&&(e.contents=null):Xi(null,e,n,Object.freeze([]))}yi.BREAK=gi,yi.SKIP=Nw,yi.REMOVE=zs;function Xi(e,t,n,i){const o=$w(e,t,n,i);if(Wt(o)||Vt(o))return Mw(e,i,o),Xi(e,o,n,i);if(typeof o!="symbol"){if(qt(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Xi(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===gi)return gi;u===zs&&(t.items.splice(a,1),a-=1)}}}else if(Vt(t)){i=Object.freeze(i.concat(t));const a=Xi("key",t.key,n,i);if(a===gi)return gi;a===zs&&(t.key=null);const u=Xi("value",t.value,n,i);if(u===gi)return gi;u===zs&&(t.value=null)}}return o}function jw(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function $w(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Hs(t))return n.Map?.(e,t,i);if(Ks(t))return n.Seq?.(e,t,i);if(Vt(t))return n.Pair?.(e,t,i);if(_t(t))return n.Scalar?.(e,t,i);if(Yi(t))return n.Alias?.(e,t,i)}function Mw(e,t,n){const i=t[t.length-1];if(qt(i))i.items[e]=n;else if(Vt(i))e==="key"?i.key=n:i.value=n;else if(Ws(i))i.contents=n;else{const o=Yi(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Uw={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Vw=e=>e.replace(/[!,[\]{}]/g,t=>Uw[t]);class hn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},hn.defaultYaml,t),this.tags=Object.assign({},hn.defaultTags,n)}clone(){const t=new hn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new hn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:hn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},hn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:hn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},hn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),o=i.shift();switch(o){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[a,u]=i;return this.tags[a]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[a]=i;if(a==="1.1"||a==="1.2")return this.yaml.version=a,!0;{const u=/^\d+\.\d+$/.test(a);return n(6,`Unsupported YAML version ${a}`,u),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const u=t.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,i,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const a=this.tags[i];if(a)try{return a+decodeURIComponent(o)}catch(u){return n(String(u)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+Vw(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let o;if(t&&i.length>0&&Wt(t.contents)){const a={};yi(t.contents,(u,l)=>{Wt(l)&&l.tag&&(a[l.tag]=!0)}),o=Object.keys(a)}else o=[];for(const[a,u]of i)a==="!!"&&u==="tag:yaml.org,2002:"||(!t||o.some(l=>l.startsWith(u)))&&n.push(`%TAG ${a} ${u}`);return n.join(`
250
+ `)}}hn.defaultYaml={explicit:!1,version:"1.2"},hn.defaultTags={"!!":"tag:yaml.org,2002:"};function wd(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function bd(e){const t=new Set;return yi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function vd(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function qw(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=bd(e));const u=vd(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(_t(u.node)||qt(u.node)))u.node.anchor=u.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=a,l}}},sourceObjects:i}}function Qi(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0,a=i.length;o<a;++o){const u=i[o],l=Qi(e,i,String(o),u);l===void 0?delete i[o]:l!==u&&(i[o]=l)}else if(i instanceof Map)for(const o of Array.from(i.keys())){const a=i.get(o),u=Qi(e,i,o,a);u===void 0?i.delete(o):u!==a&&i.set(o,u)}else if(i instanceof Set)for(const o of Array.from(i)){const a=Qi(e,i,o,o);a===void 0?i.delete(o):a!==o&&(i.delete(o),i.add(a))}else for(const[o,a]of Object.entries(i)){const u=Qi(e,i,o,a);u===void 0?delete i[o]:u!==a&&(i[o]=u)}return e.call(t,n,i)}function Un(e,t,n){if(Array.isArray(e))return e.map((i,o)=>Un(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Pw(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=a=>{i.res=a,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class wc{constructor(t){Object.defineProperty(this,Mn,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:a}={}){if(!Ws(t))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Un(this,"",u);if(typeof o=="function")for(const{count:f,res:d}of u.anchors.values())o(d,f);return typeof a=="function"?Qi(a,{"":l},"",l):l}}class bc extends wc{constructor(t){super(yc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return yi(t,{Node:(i,o)=>{if(o===this)return yi.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:a}=n,u=this.resolve(o);if(!u){const f=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(f)}let l=i.get(u);if(l||(Un(u,null,n),l=i.get(u)),!l||l.res===void 0){const f="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(f)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=aa(o,u,i)),l.count*l.aliasCount>a)){const f="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(f)}return l.res}toString(t,n,i){const o=`*${this.source}`;if(t){if(wd(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${o} `}return o}}function aa(e,t,n){if(Yi(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(qt(t)){let i=0;for(const o of t.items){const a=aa(e,o,n);a>i&&(i=a)}return i}else if(Vt(t)){const i=aa(e,t.key,n),o=aa(e,t.value,n);return Math.max(i,o)}return 1}const Sd=e=>!e||typeof e!="function"&&typeof e!="object";class qe extends wc{constructor(t){super(yr),this.value=t}toJSON(t,n){return n?.keep?this.value:Un(this.value,t,n)}toString(){return String(this.value)}}qe.BLOCK_FOLDED="BLOCK_FOLDED",qe.BLOCK_LITERAL="BLOCK_LITERAL",qe.PLAIN="PLAIN",qe.QUOTE_DOUBLE="QUOTE_DOUBLE",qe.QUOTE_SINGLE="QUOTE_SINGLE";const Ww="tag:yaml.org,2002:";function Hw(e,t,n){if(t){const i=n.filter(a=>a.tag===t),o=i.find(a=>!a.format)??i[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(i=>i.identify?.(e)&&!i.format)}function Gs(e,t,n){if(Ws(e)&&(e=e.contents),Wt(e))return e;if(Vt(e)){const p=n.schema[zr].createNode?.(n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:a,schema:u,sourceObjects:l}=n;let f;if(i&&e&&typeof e=="object"){if(f=l.get(e),f)return f.anchor||(f.anchor=o(e)),new bc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Ww+t.slice(2));let d=Hw(e,t,u.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new qe(e);return f&&(f.node=p),p}d=e instanceof Map?u[zr]:Symbol.iterator in Object(e)?u[Ji]:u[zr]}a&&(a(d),delete n.onTagObj);const g=d?.createNode?d.createNode(n.schema,e,n):typeof d?.nodeClass?.from=="function"?d.nodeClass.from(n.schema,e,n):new qe(e);return t?g.tag=t:d.default||(g.tag=d.tag),f&&(f.node=g),g}function ua(e,t,n){let i=n;for(let o=t.length-1;o>=0;--o){const a=t[o];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const u=[];u[a]=i,i=u}else i=new Map([[a,i]])}return Gs(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Js=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Ad extends wc{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>Wt(i)||Vt(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Js(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(qt(a))a.addIn(o,n);else if(a===void 0&&this.schema)this.set(i,ua(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}deleteIn(t){const[n,...i]=t;if(i.length===0)return this.delete(n);const o=this.get(n,!0);if(qt(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,a=this.get(i,!0);return o.length===0?!n&&_t(a)?a.value:a:qt(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Vt(n))return!1;const i=n.value;return i==null||t&&_t(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return qt(o)?o.hasIn(i):!1}setIn(t,n){const[i,...o]=t;if(o.length===0)this.set(i,n);else{const a=this.get(i,!0);if(qt(a))a.setIn(o,n);else if(a===void 0&&this.schema)this.set(i,ua(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const Kw=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function _r(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const mi=(e,t,n)=>e.endsWith(`
251
251
  `)?_r(n,t):n.includes(`
252
252
  `)?`
253
- `+_r(n,t):(e.endsWith(" ")?"":" ")+n,xd="flow",Ac="block",fa="quoted";function ha(e,t,n="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:a=20,onFold:u,onOverflow:l}={}){if(!o||o<0)return e;o<a&&(a=0);const f=Math.max(1+a,1+o-t.length);if(e.length<=f)return e;const h=[],g={};let p=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?h.push(0):p=o-i);let v,C,S=!1,E=-1,b=-1,B=-1;n===Ac&&(E=Cd(e,E,t.length),E!==-1&&(p=E+f));for(let _;_=e[E+=1];){if(n===fa&&_==="\\"){switch(b=E,e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}B=E}if(_===`
254
- `)n===Ac&&(E=Cd(e,E,t.length)),p=E+t.length+f,v=void 0;else{if(_===" "&&C&&C!==" "&&C!==`
253
+ `+_r(n,t):(e.endsWith(" ")?"":" ")+n,Ed="flow",vc="block",ca="quoted";function la(e,t,n="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:a=20,onFold:u,onOverflow:l}={}){if(!o||o<0)return e;o<a&&(a=0);const f=Math.max(1+a,1+o-t.length);if(e.length<=f)return e;const d=[],g={};let p=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?d.push(0):p=o-i);let v,C,A=!1,E=-1,b=-1,B=-1;n===vc&&(E=xd(e,E,t.length),E!==-1&&(p=E+f));for(let _;_=e[E+=1];){if(n===ca&&_==="\\"){switch(b=E,e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}B=E}if(_===`
254
+ `)n===vc&&(E=xd(e,E,t.length)),p=E+t.length+f,v=void 0;else{if(_===" "&&C&&C!==" "&&C!==`
255
255
  `&&C!==" "){const k=e[E+1];k&&k!==" "&&k!==`
256
- `&&k!==" "&&(v=E)}if(E>=p)if(v)h.push(v),p=v+f,v=void 0;else if(n===fa){for(;C===" "||C===" ";)C=_,_=e[E+=1],S=!0;const k=E>B+1?E-2:b-1;if(g[k])return e;h.push(k),g[k]=!0,p=k+f,v=void 0}else S=!0}C=_}if(S&&l&&l(),h.length===0)return e;u&&u();let N=e.slice(0,h[0]);for(let _=0;_<h.length;++_){const k=h[_],F=h[_+1]||e.length;k===0?N=`
257
- ${t}${e.slice(0,F)}`:(n===fa&&g[k]&&(N+=`${e[k]}\\`),N+=`
258
- ${t}${e.slice(k+1,F)}`)}return N}function Cd(e,t,n){let i=t,o=t+1,a=e[o];for(;a===" "||a===" ";)if(t<o+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
259
- `);i=t,o=t+1,a=e[o]}return i}const da=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),pa=e=>/^(%|---|\.\.\.)/m.test(e);function tb(e,t,n){if(!t||t<0)return!1;const i=t-n,o=e.length;if(o<=i)return!1;for(let a=0,u=0;a<o;++a)if(e[a]===`
260
- `){if(a-u>i)return!0;if(u=a+1,o-u<=i)return!1}return!0}function Xs(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:i}=t,o=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(pa(e)?" ":"");let u="",l=0;for(let f=0,h=n[f];h;h=n[++f])if(h===" "&&n[f+1]==="\\"&&n[f+2]==="n"&&(u+=n.slice(l,f)+"\\ ",f+=1,l=f,h="\\"),h==="\\")switch(n[f+1]){case"u":{u+=n.slice(l,f);const g=n.substr(f+2,4);switch(g){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:g.substr(0,2)==="00"?u+="\\x"+g.substr(2):u+=n.substr(f,6)}f+=5,l=f+1}break;case"n":if(i||n[f+2]==='"'||n.length<o)f+=1;else{for(u+=n.slice(l,f)+`
256
+ `&&k!==" "&&(v=E)}if(E>=p)if(v)d.push(v),p=v+f,v=void 0;else if(n===ca){for(;C===" "||C===" ";)C=_,_=e[E+=1],A=!0;const k=E>B+1?E-2:b-1;if(g[k])return e;d.push(k),g[k]=!0,p=k+f,v=void 0}else A=!0}C=_}if(A&&l&&l(),d.length===0)return e;u&&u();let N=e.slice(0,d[0]);for(let _=0;_<d.length;++_){const k=d[_],F=d[_+1]||e.length;k===0?N=`
257
+ ${t}${e.slice(0,F)}`:(n===ca&&g[k]&&(N+=`${e[k]}\\`),N+=`
258
+ ${t}${e.slice(k+1,F)}`)}return N}function xd(e,t,n){let i=t,o=t+1,a=e[o];for(;a===" "||a===" ";)if(t<o+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
259
+ `);i=t,o=t+1,a=e[o]}return i}const fa=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),ha=e=>/^(%|---|\.\.\.)/m.test(e);function zw(e,t,n){if(!t||t<0)return!1;const i=t-n,o=e.length;if(o<=i)return!1;for(let a=0,u=0;a<o;++a)if(e[a]===`
260
+ `){if(a-u>i)return!0;if(u=a+1,o-u<=i)return!1}return!0}function Ys(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:i}=t,o=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(ha(e)?" ":"");let u="",l=0;for(let f=0,d=n[f];d;d=n[++f])if(d===" "&&n[f+1]==="\\"&&n[f+2]==="n"&&(u+=n.slice(l,f)+"\\ ",f+=1,l=f,d="\\"),d==="\\")switch(n[f+1]){case"u":{u+=n.slice(l,f);const g=n.substr(f+2,4);switch(g){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:g.substr(0,2)==="00"?u+="\\x"+g.substr(2):u+=n.substr(f,6)}f+=5,l=f+1}break;case"n":if(i||n[f+2]==='"'||n.length<o)f+=1;else{for(u+=n.slice(l,f)+`
261
261
 
262
262
  `;n[f+2]==="\\"&&n[f+3]==="n"&&n[f+4]!=='"';)u+=`
263
- `,f+=2;u+=a,n[f+2]===" "&&(u+="\\"),f+=1,l=f+1}break;default:f+=1}return u=l?u+n.slice(l):n,i?u:ha(u,a,fa,da(t,!1))}function Sc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
264
- `)||/[ \t]\n|\n[ \t]/.test(e))return Xs(e,t);const n=t.indent||(pa(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
265
- ${n}`)+"'";return t.implicitKey?i:ha(i,n,xd,da(t,!1))}function es(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=Xs;else{const o=e.includes('"'),a=e.includes("'");o&&!a?i=Sc:a&&!o?i=Xs:i=n?Sc:Xs}return i(e,t)}let Ec;try{Ec=new RegExp(`(^|(?<!
263
+ `,f+=2;u+=a,n[f+2]===" "&&(u+="\\"),f+=1,l=f+1}break;default:f+=1}return u=l?u+n.slice(l):n,i?u:la(u,a,ca,fa(t,!1))}function Sc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
264
+ `)||/[ \t]\n|\n[ \t]/.test(e))return Ys(e,t);const n=t.indent||(ha(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
265
+ ${n}`)+"'";return t.implicitKey?i:la(i,n,Ed,fa(t,!1))}function Zi(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=Ys;else{const o=e.includes('"'),a=e.includes("'");o&&!a?i=Sc:a&&!o?i=Ys:i=n?Sc:Ys}return i(e,t)}let Ac;try{Ac=new RegExp(`(^|(?<!
266
266
  ))
267
267
  +(?!
268
- |$)`,"g")}catch{Ec=/\n+(?!\n|$)/g}function ga({comment:e,type:t,value:n},i,o,a){const{blockQuote:u,commentString:l,lineWidth:f}=i.options;if(!u||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return es(n,i);const h=i.indent||(i.forceBlockIndent||pa(n)?" ":""),g=u==="literal"?!0:u==="folded"||t===qe.BLOCK_FOLDED?!1:t===qe.BLOCK_LITERAL?!0:!tb(n,f,h.length);if(!n)return g?`|
268
+ |$)`,"g")}catch{Ac=/\n+(?!\n|$)/g}function da({comment:e,type:t,value:n},i,o,a){const{blockQuote:u,commentString:l,lineWidth:f}=i.options;if(!u||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Zi(n,i);const d=i.indent||(i.forceBlockIndent||ha(n)?" ":""),g=u==="literal"?!0:u==="folded"||t===qe.BLOCK_FOLDED?!1:t===qe.BLOCK_LITERAL?!0:!zw(n,f,d.length);if(!n)return g?`|
269
269
  `:`>
270
270
  `;let p,v;for(v=n.length;v>0;--v){const F=n[v-1];if(F!==`
271
- `&&F!==" "&&F!==" ")break}let C=n.substring(v);const S=C.indexOf(`
272
- `);S===-1?p="-":n===C||S!==C.length-1?(p="+",a&&a()):p="",C&&(n=n.slice(0,-C.length),C[C.length-1]===`
273
- `&&(C=C.slice(0,-1)),C=C.replace(Ec,`$&${h}`));let E=!1,b,B=-1;for(b=0;b<n.length;++b){const F=n[b];if(F===" ")E=!0;else if(F===`
274
- `)B=b;else break}let N=n.substring(0,B<b?B+1:b);N&&(n=n.substring(N.length),N=N.replace(/\n+/g,`$&${h}`));let k=(E?h?"2":"1":"")+p;if(e&&(k+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!g){const F=n.replace(/\n+/g,`
275
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`);let P=!1;const I=da(i,!0);u!=="folded"&&t!==qe.BLOCK_FOLDED&&(I.onOverflow=()=>{P=!0});const W=ha(`${N}${F}${C}`,h,Ac,I);if(!P)return`>${k}
276
- ${h}${W}`}return n=n.replace(/\n+/g,`$&${h}`),`|${k}
277
- ${h}${N}${n}${C}`}function nb(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:h,inFlow:g}=t;if(l&&a.includes(`
278
- `)||g&&/[[\]{},]/.test(a))return es(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||g||!a.includes(`
279
- `)?es(a,t):ga(e,t,n,i);if(!l&&!g&&o!==qe.PLAIN&&a.includes(`
280
- `))return ga(e,t,n,i);if(pa(a)){if(f==="")return t.forceBlockIndent=!0,ga(e,t,n,i);if(l&&f===h)return es(a,t)}const p=a.replace(/\n+/g,`$&
281
- ${f}`);if(u){const v=E=>E.default&&E.tag!=="tag:yaml.org,2002:str"&&E.test?.test(p),{compat:C,tags:S}=t.doc.schema;if(S.some(v)||C?.some(v))return es(a,t)}return l?p:ha(p,f,xd,da(t,!1))}function xc(e,t,n,i){const{implicitKey:o,inFlow:a}=t,u=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==qe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=qe.QUOTE_DOUBLE);const f=g=>{switch(g){case qe.BLOCK_FOLDED:case qe.BLOCK_LITERAL:return o||a?es(u.value,t):ga(u,t,n,i);case qe.QUOTE_DOUBLE:return Xs(u.value,t);case qe.QUOTE_SINGLE:return Sc(u.value,t);case qe.PLAIN:return nb(u,t,n,i);default:return null}};let h=f(l);if(h===null){const{defaultKeyType:g,defaultStringType:p}=t.options,v=o&&g||p;if(h=f(v),h===null)throw new Error(`Unsupported default string type ${v}`)}return h}function _d(e,t){const n=Object.assign({blockQuote:!0,commentString:eb,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function rb(e,t){if(t.tag){const o=e.filter(a=>a.tag===t.tag);if(o.length>0)return o.find(a=>a.format===t.format)??o[0]}let n,i;if(kt(t)){i=t.value;let o=e.filter(a=>a.identify?.(i));if(o.length>1){const a=o.filter(u=>u.test);a.length>0&&(o=a)}n=o.find(a=>a.format===t.format)??o.find(a=>!a.format)}else i=t,n=e.find(o=>o.nodeClass&&i instanceof o.nodeClass);if(!n){const o=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${o} value`)}return n}function ib(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(kt(e)||qt(e))&&e.anchor;a&&bd(a)&&(n.add(a),o.push(`&${a}`));const u=e.tag?e.tag:t.default?null:t.tag;return u&&o.push(i.directives.tagString(u)),o.join(" ")}function ts(e,t,n,i){if(Vt(e))return e.toString(t,n,i);if(Xi(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const a=Wt(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=rb(t.doc.schema.tags,a));const u=ib(a,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l=typeof o.stringify=="function"?o.stringify(a,t,n,i):kt(a)?xc(a,t,n,i):a.toString(t,n,i);return u?kt(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
282
- ${t.indent}${l}`:l}function sb({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:h,indentSeq:g,simpleKeys:p}}=n;let v=Wt(e)&&e.comment||null;if(p){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(qt(e)||!Wt(e)&&typeof e=="object"){const I="With simple keys, collection cannot be used as a key value";throw new Error(I)}}let C=!p&&(!e||v&&t==null&&!n.inFlow||qt(e)||(kt(e)?e.type===qe.BLOCK_FOLDED||e.type===qe.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!C&&(p||!a),indent:l+f});let S=!1,E=!1,b=ts(e,n,()=>S=!0,()=>E=!0);if(!C&&!n.inFlow&&b.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");C=!0}if(n.inFlow){if(a||t==null)return S&&i&&i(),b===""?"?":C?`? ${b}`:b}else if(a&&!p||t==null&&C)return b=`? ${b}`,v&&!S?b+=mi(b,n.indent,h(v)):E&&o&&o(),b;S&&(v=null),C?(v&&(b+=mi(b,n.indent,h(v))),b=`? ${b}
283
- ${l}:`):(b=`${b}:`,v&&(b+=mi(b,n.indent,h(v))));let B,N,_;Wt(t)?(B=!!t.spaceBefore,N=t.commentBefore,_=t.comment):(B=!1,N=null,_=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!C&&!v&&kt(t)&&(n.indentAtStart=b.length+1),E=!1,!g&&f.length>=2&&!n.inFlow&&!C&&zs(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let k=!1;const F=ts(t,n,()=>k=!0,()=>E=!0);let P=" ";if(v||B||N){if(P=B?`
284
- `:"",N){const I=h(N);P+=`
285
- ${_r(I,n.indent)}`}F===""&&!n.inFlow?P===`
286
- `&&(P=`
287
-
288
- `):P+=`
289
- ${n.indent}`}else if(!C&&qt(t)){const I=F[0],W=F.indexOf(`
290
- `),J=W!==-1,ce=n.inFlow??t.flow??t.items.length===0;if(J||!ce){let le=!1;if(J&&(I==="&"||I==="!")){let ge=F.indexOf(" ");I==="&"&&ge!==-1&&ge<W&&F[ge+1]==="!"&&(ge=F.indexOf(" ",ge+1)),(ge===-1||W<ge)&&(le=!0)}le||(P=`
271
+ `&&F!==" "&&F!==" ")break}let C=n.substring(v);const A=C.indexOf(`
272
+ `);A===-1?p="-":n===C||A!==C.length-1?(p="+",a&&a()):p="",C&&(n=n.slice(0,-C.length),C[C.length-1]===`
273
+ `&&(C=C.slice(0,-1)),C=C.replace(Ac,`$&${d}`));let E=!1,b,B=-1;for(b=0;b<n.length;++b){const F=n[b];if(F===" ")E=!0;else if(F===`
274
+ `)B=b;else break}let N=n.substring(0,B<b?B+1:b);N&&(n=n.substring(N.length),N=N.replace(/\n+/g,`$&${d}`));let k=(E?d?"2":"1":"")+p;if(e&&(k+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!g){const F=n.replace(/\n+/g,`
275
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let R=!1;const O=fa(i,!0);u!=="folded"&&t!==qe.BLOCK_FOLDED&&(O.onOverflow=()=>{R=!0});const W=la(`${N}${F}${C}`,d,vc,O);if(!R)return`>${k}
276
+ ${d}${W}`}return n=n.replace(/\n+/g,`$&${d}`),`|${k}
277
+ ${d}${N}${n}${C}`}function Gw(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:d,inFlow:g}=t;if(l&&a.includes(`
278
+ `)||g&&/[[\]{},]/.test(a))return Zi(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||g||!a.includes(`
279
+ `)?Zi(a,t):da(e,t,n,i);if(!l&&!g&&o!==qe.PLAIN&&a.includes(`
280
+ `))return da(e,t,n,i);if(ha(a)){if(f==="")return t.forceBlockIndent=!0,da(e,t,n,i);if(l&&f===d)return Zi(a,t)}const p=a.replace(/\n+/g,`$&
281
+ ${f}`);if(u){const v=E=>E.default&&E.tag!=="tag:yaml.org,2002:str"&&E.test?.test(p),{compat:C,tags:A}=t.doc.schema;if(A.some(v)||C?.some(v))return Zi(a,t)}return l?p:la(p,f,Ed,fa(t,!1))}function Ec(e,t,n,i){const{implicitKey:o,inFlow:a}=t,u=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==qe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=qe.QUOTE_DOUBLE);const f=g=>{switch(g){case qe.BLOCK_FOLDED:case qe.BLOCK_LITERAL:return o||a?Zi(u.value,t):da(u,t,n,i);case qe.QUOTE_DOUBLE:return Ys(u.value,t);case qe.QUOTE_SINGLE:return Sc(u.value,t);case qe.PLAIN:return Gw(u,t,n,i);default:return null}};let d=f(l);if(d===null){const{defaultKeyType:g,defaultStringType:p}=t.options,v=o&&g||p;if(d=f(v),d===null)throw new Error(`Unsupported default string type ${v}`)}return d}function Cd(e,t){const n=Object.assign({blockQuote:!0,commentString:Kw,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function Jw(e,t){if(t.tag){const o=e.filter(a=>a.tag===t.tag);if(o.length>0)return o.find(a=>a.format===t.format)??o[0]}let n,i;if(_t(t)){i=t.value;let o=e.filter(a=>a.identify?.(i));if(o.length>1){const a=o.filter(u=>u.test);a.length>0&&(o=a)}n=o.find(a=>a.format===t.format)??o.find(a=>!a.format)}else i=t,n=e.find(o=>o.nodeClass&&i instanceof o.nodeClass);if(!n){const o=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${o} value`)}return n}function Yw(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(_t(e)||qt(e))&&e.anchor;a&&wd(a)&&(n.add(a),o.push(`&${a}`));const u=e.tag?e.tag:t.default?null:t.tag;return u&&o.push(i.directives.tagString(u)),o.join(" ")}function es(e,t,n,i){if(Vt(e))return e.toString(t,n,i);if(Yi(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const a=Wt(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=Jw(t.doc.schema.tags,a));const u=Yw(a,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l=typeof o.stringify=="function"?o.stringify(a,t,n,i):_t(a)?Ec(a,t,n,i):a.toString(t,n,i);return u?_t(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
282
+ ${t.indent}${l}`:l}function Xw({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:d,indentSeq:g,simpleKeys:p}}=n;let v=Wt(e)&&e.comment||null;if(p){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(qt(e)||!Wt(e)&&typeof e=="object"){const O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let C=!p&&(!e||v&&t==null&&!n.inFlow||qt(e)||(_t(e)?e.type===qe.BLOCK_FOLDED||e.type===qe.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!C&&(p||!a),indent:l+f});let A=!1,E=!1,b=es(e,n,()=>A=!0,()=>E=!0);if(!C&&!n.inFlow&&b.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");C=!0}if(n.inFlow){if(a||t==null)return A&&i&&i(),b===""?"?":C?`? ${b}`:b}else if(a&&!p||t==null&&C)return b=`? ${b}`,v&&!A?b+=mi(b,n.indent,d(v)):E&&o&&o(),b;A&&(v=null),C?(v&&(b+=mi(b,n.indent,d(v))),b=`? ${b}
283
+ ${l}:`):(b=`${b}:`,v&&(b+=mi(b,n.indent,d(v))));let B,N,_;Wt(t)?(B=!!t.spaceBefore,N=t.commentBefore,_=t.comment):(B=!1,N=null,_=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!C&&!v&&_t(t)&&(n.indentAtStart=b.length+1),E=!1,!g&&f.length>=2&&!n.inFlow&&!C&&Ks(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let k=!1;const F=es(t,n,()=>k=!0,()=>E=!0);let R=" ";if(v||B||N){if(R=B?`
284
+ `:"",N){const O=d(N);R+=`
285
+ ${_r(O,n.indent)}`}F===""&&!n.inFlow?R===`
286
+ `&&(R=`
287
+
288
+ `):R+=`
289
+ ${n.indent}`}else if(!C&&qt(t)){const O=F[0],W=F.indexOf(`
290
+ `),J=W!==-1,le=n.inFlow??t.flow??t.items.length===0;if(J||!le){let ce=!1;if(J&&(O==="&"||O==="!")){let ge=F.indexOf(" ");O==="&"&&ge!==-1&&ge<W&&F[ge+1]==="!"&&(ge=F.indexOf(" ",ge+1)),(ge===-1||W<ge)&&(ce=!0)}ce||(R=`
291
291
  ${n.indent}`)}}else(F===""||F[0]===`
292
- `)&&(P="");return b+=P+F,n.inFlow?k&&i&&i():_&&!k?b+=mi(b,n.indent,h(_)):E&&o&&o(),b}function kd(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const ya="<<",kr={identify:e=>e===ya||typeof e=="symbol"&&e.description===ya,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new qe(Symbol(ya)),{addToJSMap:Td}),stringify:()=>ya},ob=(e,t)=>(kr.identify(t)||kt(t)&&(!t.type||t.type===qe.PLAIN)&&kr.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===kr.tag&&n.default);function Td(e,t,n){if(n=e&&Xi(n)?n.resolve(e.doc):n,zs(n))for(const i of n.items)Cc(e,t,i);else if(Array.isArray(n))for(const i of n)Cc(e,t,i);else Cc(e,t,n)}function Cc(e,t,n){const i=e&&Xi(n)?n.resolve(e.doc):n;if(!Hs(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[a,u]of o)t instanceof Map?t.has(a)||t.set(a,u):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0});return t}function Od(e,t,{key:n,value:i}){if(Wt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(ob(e,n))Td(e,t,i);else{const o=Un(n,"",e);if(t instanceof Map)t.set(o,Un(i,o,e));else if(t instanceof Set)t.add(o);else{const a=ab(n,o,e),u=Un(i,a,e);a in t?Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[a]=u}}return t}function ab(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Wt(e)&&n?.doc){const i=_d(n.doc,{});i.anchors=new Set;for(const a of n.anchors.keys())i.anchors.add(a.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!n.mapKeyWarned){let a=JSON.stringify(o);a.length>40&&(a=a.substring(0,36)+'..."'),kd(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function _c(e,t,n){const i=Js(e,void 0,n),o=Js(t,void 0,n);return new dn(i,o)}class dn{constructor(t,n=null){Object.defineProperty(this,Mn,{value:wd}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return Wt(n)&&(n=n.clone(t)),Wt(i)&&(i=i.clone(t)),new dn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return Od(n,i,this)}toString(t,n,i){return t?.doc?sb(this,t,n,i):JSON.stringify(this)}}function Id(e,t,n){return(t.inFlow??e.flow?cb:ub)(e,t,n)}function ub({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:h}}=n,g=Object.assign({},n,{indent:a,type:null});let p=!1;const v=[];for(let S=0;S<t.length;++S){const E=t[S];let b=null;if(Wt(E))!p&&E.spaceBefore&&v.push(""),ma(n,v,E.commentBefore,p),E.comment&&(b=E.comment);else if(Vt(E)){const N=Wt(E.key)?E.key:null;N&&(!p&&N.spaceBefore&&v.push(""),ma(n,v,N.commentBefore,p))}p=!1;let B=ts(E,g,()=>b=null,()=>p=!0);b&&(B+=mi(B,a,h(b))),p&&b&&(p=!1),v.push(i+B)}let C;if(v.length===0)C=o.start+o.end;else{C=v[0];for(let S=1;S<v.length;++S){const E=v[S];C+=E?`
292
+ `)&&(R="");return b+=R+F,n.inFlow?k&&i&&i():_&&!k?b+=mi(b,n.indent,d(_)):E&&o&&o(),b}function _d(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const pa="<<",kr={identify:e=>e===pa||typeof e=="symbol"&&e.description===pa,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new qe(Symbol(pa)),{addToJSMap:kd}),stringify:()=>pa},Qw=(e,t)=>(kr.identify(t)||_t(t)&&(!t.type||t.type===qe.PLAIN)&&kr.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===kr.tag&&n.default);function kd(e,t,n){if(n=e&&Yi(n)?n.resolve(e.doc):n,Ks(n))for(const i of n.items)xc(e,t,i);else if(Array.isArray(n))for(const i of n)xc(e,t,i);else xc(e,t,n)}function xc(e,t,n){const i=e&&Yi(n)?n.resolve(e.doc):n;if(!Hs(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[a,u]of o)t instanceof Map?t.has(a)||t.set(a,u):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0});return t}function Td(e,t,{key:n,value:i}){if(Wt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Qw(e,n))kd(e,t,i);else{const o=Un(n,"",e);if(t instanceof Map)t.set(o,Un(i,o,e));else if(t instanceof Set)t.add(o);else{const a=Zw(n,o,e),u=Un(i,a,e);a in t?Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[a]=u}}return t}function Zw(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Wt(e)&&n?.doc){const i=Cd(n.doc,{});i.anchors=new Set;for(const a of n.anchors.keys())i.anchors.add(a.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!n.mapKeyWarned){let a=JSON.stringify(o);a.length>40&&(a=a.substring(0,36)+'..."'),_d(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Cc(e,t,n){const i=Gs(e,void 0,n),o=Gs(t,void 0,n);return new dn(i,o)}class dn{constructor(t,n=null){Object.defineProperty(this,Mn,{value:md}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return Wt(n)&&(n=n.clone(t)),Wt(i)&&(i=i.clone(t)),new dn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return Td(n,i,this)}toString(t,n,i){return t?.doc?Xw(this,t,n,i):JSON.stringify(this)}}function Id(e,t,n){return(t.inFlow??e.flow?tb:eb)(e,t,n)}function eb({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:d}}=n,g=Object.assign({},n,{indent:a,type:null});let p=!1;const v=[];for(let A=0;A<t.length;++A){const E=t[A];let b=null;if(Wt(E))!p&&E.spaceBefore&&v.push(""),ga(n,v,E.commentBefore,p),E.comment&&(b=E.comment);else if(Vt(E)){const N=Wt(E.key)?E.key:null;N&&(!p&&N.spaceBefore&&v.push(""),ga(n,v,N.commentBefore,p))}p=!1;let B=es(E,g,()=>b=null,()=>p=!0);b&&(B+=mi(B,a,d(b))),p&&b&&(p=!1),v.push(i+B)}let C;if(v.length===0)C=o.start+o.end;else{C=v[0];for(let A=1;A<v.length;++A){const E=v[A];C+=E?`
293
293
  ${f}${E}`:`
294
294
  `}}return e?(C+=`
295
- `+_r(h(e),f),l&&l()):p&&u&&u(),C}function cb({items:e},t,{flowChars:n,itemIndent:i}){const{indent:o,indentStep:a,flowCollectionPadding:u,options:{commentString:l}}=t;i+=a;const f=Object.assign({},t,{indent:i,inFlow:!0,type:null});let h=!1,g=0;const p=[];for(let S=0;S<e.length;++S){const E=e[S];let b=null;if(Wt(E))E.spaceBefore&&p.push(""),ma(t,p,E.commentBefore,!1),E.comment&&(b=E.comment);else if(Vt(E)){const N=Wt(E.key)?E.key:null;N&&(N.spaceBefore&&p.push(""),ma(t,p,N.commentBefore,!1),N.comment&&(h=!0));const _=Wt(E.value)?E.value:null;_?(_.comment&&(b=_.comment),_.commentBefore&&(h=!0)):E.value==null&&N?.comment&&(b=N.comment)}b&&(h=!0);let B=ts(E,f,()=>b=null);S<e.length-1&&(B+=","),b&&(B+=mi(B,i,l(b))),!h&&(p.length>g||B.includes(`
296
- `))&&(h=!0),p.push(B),g=p.length}const{start:v,end:C}=n;if(p.length===0)return v+C;if(!h){const S=p.reduce((E,b)=>E+b.length+2,2);h=t.options.lineWidth>0&&S>t.options.lineWidth}if(h){let S=v;for(const E of p)S+=E?`
295
+ `+_r(d(e),f),l&&l()):p&&u&&u(),C}function tb({items:e},t,{flowChars:n,itemIndent:i}){const{indent:o,indentStep:a,flowCollectionPadding:u,options:{commentString:l}}=t;i+=a;const f=Object.assign({},t,{indent:i,inFlow:!0,type:null});let d=!1,g=0;const p=[];for(let A=0;A<e.length;++A){const E=e[A];let b=null;if(Wt(E))E.spaceBefore&&p.push(""),ga(t,p,E.commentBefore,!1),E.comment&&(b=E.comment);else if(Vt(E)){const N=Wt(E.key)?E.key:null;N&&(N.spaceBefore&&p.push(""),ga(t,p,N.commentBefore,!1),N.comment&&(d=!0));const _=Wt(E.value)?E.value:null;_?(_.comment&&(b=_.comment),_.commentBefore&&(d=!0)):E.value==null&&N?.comment&&(b=N.comment)}b&&(d=!0);let B=es(E,f,()=>b=null);A<e.length-1&&(B+=","),b&&(B+=mi(B,i,l(b))),!d&&(p.length>g||B.includes(`
296
+ `))&&(d=!0),p.push(B),g=p.length}const{start:v,end:C}=n;if(p.length===0)return v+C;if(!d){const A=p.reduce((E,b)=>E+b.length+2,2);d=t.options.lineWidth>0&&A>t.options.lineWidth}if(d){let A=v;for(const E of p)A+=E?`
297
297
  ${a}${o}${E}`:`
298
- `;return`${S}
299
- ${o}${C}`}else return`${v}${u}${p.join(" ")}${u}${C}`}function ma({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=_r(t(i),e);n.push(a.trimStart())}}function wi(e,t){const n=kt(t)?t.value:t;for(const i of e)if(Vt(i)&&(i.key===t||i.key===n||kt(i.key)&&i.key.value===n))return i}class Vn extends Ed{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(zr,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:a}=i,u=new this(t),l=(f,h)=>{if(typeof a=="function")h=a.call(n,f,h);else if(Array.isArray(a)&&!a.includes(f))return;(h!==void 0||o)&&u.items.push(_c(f,h,i))};if(n instanceof Map)for(const[f,h]of n)l(f,h);else if(n&&typeof n=="object")for(const f of Object.keys(n))l(f,n[f]);return typeof t.sortMapEntries=="function"&&u.items.sort(t.sortMapEntries),u}add(t,n){let i;Vt(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new dn(t,t?.value):i=new dn(t.key,t.value);const o=wi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);kt(o.value)&&Sd(i.value)?o.value.value=i.value:o.value=i.value}else if(a){const u=this.items.findIndex(l=>a(i,l)<0);u===-1?this.items.push(i):this.items.splice(u,0,i)}else this.items.push(i)}delete(t){const n=wi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=wi(this.items,t)?.value;return(!n&&kt(o)?o.value:o)??void 0}has(t){return!!wi(this.items,t)}set(t,n){this.add(new dn(t,n),!0)}toJSON(t,n,i){const o=i?new i:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const a of this.items)Od(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Vt(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Id(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const ns={collection:"map",default:!0,nodeClass:Vn,tag:"tag:yaml.org,2002:map",resolve(e,t){return Hs(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Vn.from(e,t,n)};class bi extends Ed{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Yi,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=wa(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=wa(t);if(typeof i!="number")return;const o=this.items[i];return!n&&kt(o)?o.value:o}has(t){const n=wa(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=wa(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];kt(o)&&Sd(n)?o.value=n:this.items[i]=n}toJSON(t,n){const i=[];n?.onCreate&&n.onCreate(i);let o=0;for(const a of this.items)i.push(Un(a,String(o++),n));return i}toString(t,n,i){return t?Id(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n)){let u=0;for(let l of n){if(typeof o=="function"){const f=n instanceof Set?l:String(u++);l=o.call(n,f,l)}a.items.push(Js(l,void 0,i))}}return a}}function wa(e){let t=kt(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const rs={collection:"seq",default:!0,nodeClass:bi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return zs(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>bi.from(e,t,n)},ba={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),xc(e,t,n,i)}},va={identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new qe(null),stringify:({source:e},t)=>typeof e=="string"&&va.test.test(e)?e:t.options.nullStr},kc={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new qe(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&kc.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};function er({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);const o=typeof i=="number"?i:Number(i);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let a=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(a)){let u=a.indexOf(".");u<0&&(u=a.length,a+=".");let l=t-(a.length-u-1);for(;l-- >0;)a+="0"}return a}const Fd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:er},Bd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():er(e)}},Dd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new qe(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:er},Aa=e=>typeof e=="bigint"||Number.isInteger(e),Tc=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Pd(e,t,n){const{value:i}=e;return Aa(i)&&i>=0?n+i.toString(t):er(e)}const Rd={identify:e=>Aa(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Tc(e,2,8,n),stringify:e=>Pd(e,8,"0o")},Ld={identify:Aa,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Tc(e,0,10,n),stringify:er},Nd={identify:e=>Aa(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Tc(e,2,16,n),stringify:e=>Pd(e,16,"0x")},lb=[ns,rs,ba,va,kc,Rd,Ld,Nd,Fd,Bd,Dd];function jd(e){return typeof e=="bigint"||Number.isInteger(e)}const Sa=({value:e})=>JSON.stringify(e),fb=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Sa},{identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Sa},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Sa},{identify:jd,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>jd(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Sa}],hb={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},db=[ns,rs].concat(fb,hb),Oc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,o,a){const u=n;let l;if(typeof btoa=="function"){let f="";for(let h=0;h<u.length;++h)f+=String.fromCharCode(u[h]);l=btoa(f)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=qe.BLOCK_LITERAL),t!==qe.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),h=Math.ceil(l.length/f),g=new Array(h);for(let p=0,v=0;p<h;++p,v+=f)g[p]=l.substr(v,f);l=g.join(t===qe.BLOCK_LITERAL?`
300
- `:" ")}return xc({comment:e,type:t,value:l},i,o,a)}};function $d(e,t){if(zs(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Vt(i)){if(Hs(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new dn(new qe(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
298
+ `;return`${A}
299
+ ${o}${C}`}else return`${v}${u}${p.join(" ")}${u}${C}`}function ga({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=_r(t(i),e);n.push(a.trimStart())}}function wi(e,t){const n=_t(t)?t.value:t;for(const i of e)if(Vt(i)&&(i.key===t||i.key===n||_t(i.key)&&i.key.value===n))return i}class Vn extends Ad{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(zr,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:a}=i,u=new this(t),l=(f,d)=>{if(typeof a=="function")d=a.call(n,f,d);else if(Array.isArray(a)&&!a.includes(f))return;(d!==void 0||o)&&u.items.push(Cc(f,d,i))};if(n instanceof Map)for(const[f,d]of n)l(f,d);else if(n&&typeof n=="object")for(const f of Object.keys(n))l(f,n[f]);return typeof t.sortMapEntries=="function"&&u.items.sort(t.sortMapEntries),u}add(t,n){let i;Vt(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new dn(t,t?.value):i=new dn(t.key,t.value);const o=wi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);_t(o.value)&&Sd(i.value)?o.value.value=i.value:o.value=i.value}else if(a){const u=this.items.findIndex(l=>a(i,l)<0);u===-1?this.items.push(i):this.items.splice(u,0,i)}else this.items.push(i)}delete(t){const n=wi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=wi(this.items,t)?.value;return(!n&&_t(o)?o.value:o)??void 0}has(t){return!!wi(this.items,t)}set(t,n){this.add(new dn(t,n),!0)}toJSON(t,n,i){const o=i?new i:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const a of this.items)Td(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Vt(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Id(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const ts={collection:"map",default:!0,nodeClass:Vn,tag:"tag:yaml.org,2002:map",resolve(e,t){return Hs(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Vn.from(e,t,n)};class bi extends Ad{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Ji,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=ya(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=ya(t);if(typeof i!="number")return;const o=this.items[i];return!n&&_t(o)?o.value:o}has(t){const n=ya(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=ya(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];_t(o)&&Sd(n)?o.value=n:this.items[i]=n}toJSON(t,n){const i=[];n?.onCreate&&n.onCreate(i);let o=0;for(const a of this.items)i.push(Un(a,String(o++),n));return i}toString(t,n,i){return t?Id(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n)){let u=0;for(let l of n){if(typeof o=="function"){const f=n instanceof Set?l:String(u++);l=o.call(n,f,l)}a.items.push(Gs(l,void 0,i))}}return a}}function ya(e){let t=_t(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ns={collection:"seq",default:!0,nodeClass:bi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Ks(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>bi.from(e,t,n)},ma={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),Ec(e,t,n,i)}},wa={identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new qe(null),stringify:({source:e},t)=>typeof e=="string"&&wa.test.test(e)?e:t.options.nullStr},_c={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new qe(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&_c.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};function er({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);const o=typeof i=="number"?i:Number(i);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let a=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(a)){let u=a.indexOf(".");u<0&&(u=a.length,a+=".");let l=t-(a.length-u-1);for(;l-- >0;)a+="0"}return a}const Od={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:er},Fd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():er(e)}},Bd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new qe(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:er},ba=e=>typeof e=="bigint"||Number.isInteger(e),kc=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Dd(e,t,n){const{value:i}=e;return ba(i)&&i>=0?n+i.toString(t):er(e)}const Rd={identify:e=>ba(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>kc(e,2,8,n),stringify:e=>Dd(e,8,"0o")},Ld={identify:ba,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>kc(e,0,10,n),stringify:er},Pd={identify:e=>ba(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>kc(e,2,16,n),stringify:e=>Dd(e,16,"0x")},nb=[ts,ns,ma,wa,_c,Rd,Ld,Pd,Od,Fd,Bd];function Nd(e){return typeof e=="bigint"||Number.isInteger(e)}const va=({value:e})=>JSON.stringify(e),rb=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:va},{identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:va},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:va},{identify:Nd,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Nd(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:va}],ib={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},sb=[ts,ns].concat(rb,ib),Tc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,o,a){const u=n;let l;if(typeof btoa=="function"){let f="";for(let d=0;d<u.length;++d)f+=String.fromCharCode(u[d]);l=btoa(f)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=qe.BLOCK_LITERAL),t!==qe.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),d=Math.ceil(l.length/f),g=new Array(d);for(let p=0,v=0;p<d;++p,v+=f)g[p]=l.substr(v,f);l=g.join(t===qe.BLOCK_LITERAL?`
300
+ `:" ")}return Ec({comment:e,type:t,value:l},i,o,a)}};function jd(e,t){if(Ks(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Vt(i)){if(Hs(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new dn(new qe(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
301
301
  ${o.key.commentBefore}`:i.commentBefore),i.comment){const a=o.value??o.key;a.comment=a.comment?`${i.comment}
302
- ${a.comment}`:i.comment}i=o}e.items[n]=Vt(i)?i:new dn(i)}}else t("Expected a sequence for this tag");return e}function Md(e,t,n){const{replacer:i}=n,o=new bi(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let u of t){typeof i=="function"&&(u=i.call(t,String(a++),u));let l,f;if(Array.isArray(u))if(u.length===2)l=u[0],f=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const h=Object.keys(u);if(h.length===1)l=h[0],f=u[l];else throw new TypeError(`Expected tuple with one key, not ${h.length} keys`)}else l=u;o.items.push(_c(l,f,n))}return o}const Ic={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:$d,createNode:Md};class is extends bi{constructor(){super(),this.add=Vn.prototype.add.bind(this),this.delete=Vn.prototype.delete.bind(this),this.get=Vn.prototype.get.bind(this),this.has=Vn.prototype.has.bind(this),this.set=Vn.prototype.set.bind(this),this.tag=is.tag}toJSON(t,n){if(!n)return super.toJSON(t);const i=new Map;n?.onCreate&&n.onCreate(i);for(const o of this.items){let a,u;if(Vt(o)?(a=Un(o.key,"",n),u=Un(o.value,a,n)):a=Un(o,"",n),i.has(a))throw new Error("Ordered maps must not include duplicate keys");i.set(a,u)}return i}static from(t,n,i){const o=Md(t,n,i),a=new this;return a.items=o.items,a}}is.tag="tag:yaml.org,2002:omap";const Fc={collection:"seq",identify:e=>e instanceof Map,nodeClass:is,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=$d(e,t),i=[];for(const{key:o}of n.items)kt(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new is,n)},createNode:(e,t,n)=>is.from(e,t,n)};function Ud({value:e,source:t},n){return t&&(e?Vd:qd).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Vd={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new qe(!0),stringify:Ud},qd={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new qe(!1),stringify:Ud},pb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:er},gb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():er(e)}},yb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new qe(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:er},Qs=e=>typeof e=="bigint"||Number.isInteger(e);function Ea(e,t,n,{intAsBigInt:i}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const u=BigInt(e);return o==="-"?BigInt(-1)*u:u}const a=parseInt(e,n);return o==="-"?-1*a:a}function Bc(e,t,n){const{value:i}=e;if(Qs(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return er(e)}const mb={identify:Qs,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Ea(e,2,2,n),stringify:e=>Bc(e,2,"0b")},wb={identify:Qs,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Ea(e,1,8,n),stringify:e=>Bc(e,8,"0")},bb={identify:Qs,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Ea(e,0,10,n),stringify:er},vb={identify:Qs,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Ea(e,2,16,n),stringify:e=>Bc(e,16,"0x")};class ss extends Vn{constructor(t){super(t),this.tag=ss.tag}add(t){let n;Vt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new dn(t.key,null):n=new dn(t,null),wi(this.items,n.key)||this.items.push(n)}get(t,n){const i=wi(this.items,t);return!n&&Vt(i)?kt(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=wi(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new dn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let u of n)typeof o=="function"&&(u=o.call(n,u,u)),a.items.push(_c(u,null,i));return a}}ss.tag="tag:yaml.org,2002:set";const Dc={collection:"map",identify:e=>e instanceof Set,nodeClass:ss,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>ss.from(e,t,n),resolve(e,t){if(Hs(e)){if(e.hasAllNullValues(!0))return Object.assign(new ss,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Pc(e,t){const n=e[0],i=n==="-"||n==="+"?e.substring(1):e,o=u=>t?BigInt(u):Number(u),a=i.replace(/_/g,"").split(":").reduce((u,l)=>u*o(60)+o(l),o(0));return n==="-"?o(-1)*a:a}function Wd(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return er(e);let i="";t<0&&(i="-",t*=n(-1));const o=n(60),a=[t%o];return t<60?a.unshift(0):(t=(t-a[0])/o,a.unshift(t%o),t>=60&&(t=(t-a[0])/o,a.unshift(t))),i+a.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Kd={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Pc(e,n),stringify:Wd},Hd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Pc(e,!1),stringify:Wd},xa={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(xa.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,a,u,l]=t.map(Number),f=t[7]?Number((t[7]+"00").substr(1,3)):0;let h=Date.UTC(n,i-1,o,a||0,u||0,l||0,f);const g=t[8];if(g&&g!=="Z"){let p=Pc(g,!1);Math.abs(p)<30&&(p*=60),h-=6e4*p}return new Date(h)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},zd=[ns,rs,ba,va,Vd,qd,mb,wb,bb,vb,pb,gb,yb,Oc,kr,Fc,Ic,Dc,Kd,Hd,xa],Gd=new Map([["core",lb],["failsafe",[ns,rs,ba]],["json",db],["yaml11",zd],["yaml-1.1",zd]]),Jd={binary:Oc,bool:kc,float:Dd,floatExp:Bd,floatNaN:Fd,floatTime:Hd,int:Ld,intHex:Nd,intOct:Rd,intTime:Kd,map:ns,merge:kr,null:va,omap:Fc,pairs:Ic,seq:rs,set:Dc,timestamp:xa},Ab={"tag:yaml.org,2002:binary":Oc,"tag:yaml.org,2002:merge":kr,"tag:yaml.org,2002:omap":Fc,"tag:yaml.org,2002:pairs":Ic,"tag:yaml.org,2002:set":Dc,"tag:yaml.org,2002:timestamp":xa};function Rc(e,t,n){const i=Gd.get(t);if(i&&!e)return n&&!i.includes(kr)?i.concat(kr):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(Gd.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${a} or define customTags array`)}if(Array.isArray(e))for(const a of e)o=o.concat(a);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(kr)),o.reduce((a,u)=>{const l=typeof u=="string"?Jd[u]:u;if(!l){const f=JSON.stringify(u),h=Object.keys(Jd).map(g=>JSON.stringify(g)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${h}`)}return a.includes(l)||a.push(l),a},[])}const Sb=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Lc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?Rc(t,"compat"):t?Rc(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?Ab:{},this.tags=Rc(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,zr,{value:ns}),Object.defineProperty(this,yr,{value:ba}),Object.defineProperty(this,Yi,{value:rs}),this.sortMapEntries=typeof u=="function"?u:u===!0?Sb:null}clone(){const t=Object.create(Lc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Eb(e,t){const n=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const o=_d(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(_r(f,""))}let u=!1,l=null;if(e.contents){if(Wt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const g=a(e.contents.commentBefore);n.push(_r(g,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let h=ts(e.contents,o,()=>l=null,f);l&&(h+=mi(h,"",a(l))),(h[0]==="|"||h[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${h}`:n.push(h)}else n.push(ts(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
302
+ ${a.comment}`:i.comment}i=o}e.items[n]=Vt(i)?i:new dn(i)}}else t("Expected a sequence for this tag");return e}function $d(e,t,n){const{replacer:i}=n,o=new bi(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let u of t){typeof i=="function"&&(u=i.call(t,String(a++),u));let l,f;if(Array.isArray(u))if(u.length===2)l=u[0],f=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const d=Object.keys(u);if(d.length===1)l=d[0],f=u[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=u;o.items.push(Cc(l,f,n))}return o}const Ic={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:jd,createNode:$d};class rs extends bi{constructor(){super(),this.add=Vn.prototype.add.bind(this),this.delete=Vn.prototype.delete.bind(this),this.get=Vn.prototype.get.bind(this),this.has=Vn.prototype.has.bind(this),this.set=Vn.prototype.set.bind(this),this.tag=rs.tag}toJSON(t,n){if(!n)return super.toJSON(t);const i=new Map;n?.onCreate&&n.onCreate(i);for(const o of this.items){let a,u;if(Vt(o)?(a=Un(o.key,"",n),u=Un(o.value,a,n)):a=Un(o,"",n),i.has(a))throw new Error("Ordered maps must not include duplicate keys");i.set(a,u)}return i}static from(t,n,i){const o=$d(t,n,i),a=new this;return a.items=o.items,a}}rs.tag="tag:yaml.org,2002:omap";const Oc={collection:"seq",identify:e=>e instanceof Map,nodeClass:rs,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=jd(e,t),i=[];for(const{key:o}of n.items)_t(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new rs,n)},createNode:(e,t,n)=>rs.from(e,t,n)};function Md({value:e,source:t},n){return t&&(e?Ud:Vd).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Ud={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new qe(!0),stringify:Md},Vd={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new qe(!1),stringify:Md},ob={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:er},ab={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():er(e)}},ub={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new qe(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:er},Xs=e=>typeof e=="bigint"||Number.isInteger(e);function Sa(e,t,n,{intAsBigInt:i}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const u=BigInt(e);return o==="-"?BigInt(-1)*u:u}const a=parseInt(e,n);return o==="-"?-1*a:a}function Fc(e,t,n){const{value:i}=e;if(Xs(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return er(e)}const cb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Sa(e,2,2,n),stringify:e=>Fc(e,2,"0b")},lb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Sa(e,1,8,n),stringify:e=>Fc(e,8,"0")},fb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Sa(e,0,10,n),stringify:er},hb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Sa(e,2,16,n),stringify:e=>Fc(e,16,"0x")};class is extends Vn{constructor(t){super(t),this.tag=is.tag}add(t){let n;Vt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new dn(t.key,null):n=new dn(t,null),wi(this.items,n.key)||this.items.push(n)}get(t,n){const i=wi(this.items,t);return!n&&Vt(i)?_t(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=wi(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new dn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let u of n)typeof o=="function"&&(u=o.call(n,u,u)),a.items.push(Cc(u,null,i));return a}}is.tag="tag:yaml.org,2002:set";const Bc={collection:"map",identify:e=>e instanceof Set,nodeClass:is,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>is.from(e,t,n),resolve(e,t){if(Hs(e)){if(e.hasAllNullValues(!0))return Object.assign(new is,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Dc(e,t){const n=e[0],i=n==="-"||n==="+"?e.substring(1):e,o=u=>t?BigInt(u):Number(u),a=i.replace(/_/g,"").split(":").reduce((u,l)=>u*o(60)+o(l),o(0));return n==="-"?o(-1)*a:a}function qd(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return er(e);let i="";t<0&&(i="-",t*=n(-1));const o=n(60),a=[t%o];return t<60?a.unshift(0):(t=(t-a[0])/o,a.unshift(t%o),t>=60&&(t=(t-a[0])/o,a.unshift(t))),i+a.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Wd={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Dc(e,n),stringify:qd},Hd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Dc(e,!1),stringify:qd},Aa={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Aa.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,a,u,l]=t.map(Number),f=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,i-1,o,a||0,u||0,l||0,f);const g=t[8];if(g&&g!=="Z"){let p=Dc(g,!1);Math.abs(p)<30&&(p*=60),d-=6e4*p}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},Kd=[ts,ns,ma,wa,Ud,Vd,cb,lb,fb,hb,ob,ab,ub,Tc,kr,Oc,Ic,Bc,Wd,Hd,Aa],zd=new Map([["core",nb],["failsafe",[ts,ns,ma]],["json",sb],["yaml11",Kd],["yaml-1.1",Kd]]),Gd={binary:Tc,bool:_c,float:Bd,floatExp:Fd,floatNaN:Od,floatTime:Hd,int:Ld,intHex:Pd,intOct:Rd,intTime:Wd,map:ts,merge:kr,null:wa,omap:Oc,pairs:Ic,seq:ns,set:Bc,timestamp:Aa},db={"tag:yaml.org,2002:binary":Tc,"tag:yaml.org,2002:merge":kr,"tag:yaml.org,2002:omap":Oc,"tag:yaml.org,2002:pairs":Ic,"tag:yaml.org,2002:set":Bc,"tag:yaml.org,2002:timestamp":Aa};function Rc(e,t,n){const i=zd.get(t);if(i&&!e)return n&&!i.includes(kr)?i.concat(kr):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(zd.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${a} or define customTags array`)}if(Array.isArray(e))for(const a of e)o=o.concat(a);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(kr)),o.reduce((a,u)=>{const l=typeof u=="string"?Gd[u]:u;if(!l){const f=JSON.stringify(u),d=Object.keys(Gd).map(g=>JSON.stringify(g)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${d}`)}return a.includes(l)||a.push(l),a},[])}const pb=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Lc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?Rc(t,"compat"):t?Rc(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?db:{},this.tags=Rc(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,zr,{value:ts}),Object.defineProperty(this,yr,{value:ma}),Object.defineProperty(this,Ji,{value:ns}),this.sortMapEntries=typeof u=="function"?u:u===!0?pb:null}clone(){const t=Object.create(Lc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function gb(e,t){const n=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const o=Cd(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(_r(f,""))}let u=!1,l=null;if(e.contents){if(Wt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const g=a(e.contents.commentBefore);n.push(_r(g,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let d=es(e.contents,o,()=>l=null,f);l&&(d+=mi(d,"",a(l))),(d[0]==="|"||d[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${d}`:n.push(d)}else n.push(es(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
303
303
  `)?(n.push("..."),n.push(_r(f,""))):n.push(`... ${f}`)}else n.push("...");else{let f=e.comment;f&&u&&(f=f.replace(/^\n+/,"")),f&&((!u||l)&&n[n.length-1]!==""&&n.push(""),n.push(_r(a(f),"")))}return n.join(`
304
304
  `)+`
305
- `}class Zs{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mn,{value:wc});let o=null;typeof n=="function"||Array.isArray(n)?o=n:i===void 0&&n&&(i=n,n=void 0);const a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=a;let{version:u}=a;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new hn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(Zs.prototype,{[Mn]:{value:wc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Wt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){os(this.contents)&&this.contents.add(t)}addIn(t,n){os(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=vd(this);t.anchor=!n||i.has(n)?Ad(n||"a",i):n}return new vc(t.anchor)}createNode(t,n,i){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const b=N=>typeof N=="number"||N instanceof String||N instanceof Number,B=n.filter(b).map(String);B.length>0&&(n=n.concat(B)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:h,tag:g}=i??{},{onAnchor:p,setAnchors:v,sourceObjects:C}=Xw(this,u||"a"),S={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:p,onTagObj:h,replacer:o,schema:this.schema,sourceObjects:C},E=Js(t,g,S);return l&&qt(E)&&(E.flow=!0),v(),E}createPair(t,n,i={}){const o=this.createNode(t,null,i),a=this.createNode(n,null,i);return new dn(o,a)}delete(t){return os(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Ys(t)?this.contents==null?!1:(this.contents=null,!0):os(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return qt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Ys(t)?!n&&kt(this.contents)?this.contents.value:this.contents:qt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return qt(this.contents)?this.contents.has(t):!1}hasIn(t){return Ys(t)?this.contents!==void 0:qt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=la(this.schema,[t],n):os(this.contents)&&this.contents.set(t,n)}setIn(t,n){Ys(t)?this.contents=n:this.contents==null?this.contents=la(this.schema,Array.from(t),n):os(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new hn({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new hn({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new Lc(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:o,onAnchor:a,reviver:u}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},f=Un(this.contents,n??"",l);if(typeof a=="function")for(const{count:h,res:g}of l.anchors.values())a(g,h);return typeof u=="function"?Zi(u,{"":f},"",f):f}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return Eb(this,t)}}function os(e){if(qt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Yd extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class eo extends Yd{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class xb extends Yd{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const Xd=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:i,col:o}=n.linePos[0];n.message+=` at line ${i}, column ${o}`;let a=o-1,u=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(a>=60&&u.length>80){const l=Math.min(a-39,u.length-79);u="…"+u.substring(l),a-=l-1}if(u.length>80&&(u=u.substring(0,79)+"…"),i>1&&/^ *$/.test(u.substring(0,a))){let l=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);l.length>80&&(l=l.substring(0,79)+`…
306
- `),u=l+u}if(/[^ ]/.test(u)){let l=1;const f=n.linePos[1];f&&f.line===i&&f.col>o&&(l=Math.max(1,Math.min(f.col-o,80-a)));const h=" ".repeat(a)+"^".repeat(l);n.message+=`:
305
+ `}class Qs{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mn,{value:mc});let o=null;typeof n=="function"||Array.isArray(n)?o=n:i===void 0&&n&&(i=n,n=void 0);const a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=a;let{version:u}=a;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new hn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(Qs.prototype,{[Mn]:{value:mc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Wt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){ss(this.contents)&&this.contents.add(t)}addIn(t,n){ss(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=bd(this);t.anchor=!n||i.has(n)?vd(n||"a",i):n}return new bc(t.anchor)}createNode(t,n,i){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const b=N=>typeof N=="number"||N instanceof String||N instanceof Number,B=n.filter(b).map(String);B.length>0&&(n=n.concat(B)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:d,tag:g}=i??{},{onAnchor:p,setAnchors:v,sourceObjects:C}=qw(this,u||"a"),A={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:p,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:C},E=Gs(t,g,A);return l&&qt(E)&&(E.flow=!0),v(),E}createPair(t,n,i={}){const o=this.createNode(t,null,i),a=this.createNode(n,null,i);return new dn(o,a)}delete(t){return ss(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Js(t)?this.contents==null?!1:(this.contents=null,!0):ss(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return qt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Js(t)?!n&&_t(this.contents)?this.contents.value:this.contents:qt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return qt(this.contents)?this.contents.has(t):!1}hasIn(t){return Js(t)?this.contents!==void 0:qt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ua(this.schema,[t],n):ss(this.contents)&&this.contents.set(t,n)}setIn(t,n){Js(t)?this.contents=n:this.contents==null?this.contents=ua(this.schema,Array.from(t),n):ss(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new hn({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new hn({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new Lc(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:o,onAnchor:a,reviver:u}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},f=Un(this.contents,n??"",l);if(typeof a=="function")for(const{count:d,res:g}of l.anchors.values())a(g,d);return typeof u=="function"?Qi(u,{"":f},"",f):f}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return gb(this,t)}}function ss(e){if(qt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Jd extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class Zs extends Jd{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class yb extends Jd{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const Yd=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:i,col:o}=n.linePos[0];n.message+=` at line ${i}, column ${o}`;let a=o-1,u=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(a>=60&&u.length>80){const l=Math.min(a-39,u.length-79);u="…"+u.substring(l),a-=l-1}if(u.length>80&&(u=u.substring(0,79)+"…"),i>1&&/^ *$/.test(u.substring(0,a))){let l=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);l.length>80&&(l=l.substring(0,79)+`…
306
+ `),u=l+u}if(/[^ ]/.test(u)){let l=1;const f=n.linePos[1];f&&f.line===i&&f.col>o&&(l=Math.max(1,Math.min(f.col-o,80-a)));const d=" ".repeat(a)+"^".repeat(l);n.message+=`:
307
307
 
308
308
  ${u}
309
- ${h}
310
- `}};function as(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,h=l,g=l,p="",v="",C=!1,S=!1,E=null,b=null,B=null,N=null,_=null,k=null,F=null;for(const W of e)switch(S&&(W.type!=="space"&&W.type!=="newline"&&W.type!=="comma"&&a(W.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S=!1),E&&(h&&W.type!=="comment"&&W.type!=="newline"&&a(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),E=null),W.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&W.source.includes(" ")&&(E=W),g=!0;break;case"comment":{g||a(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const J=W.source.substring(1)||" ";p?p+=v+J:p=J,v="",h=!1;break}case"newline":h?p?p+=W.source:(!k||n!=="seq-item-ind")&&(f=!0):v+=W.source,h=!0,C=!0,(b||B)&&(N=W),g=!0;break;case"anchor":b&&a(W,"MULTIPLE_ANCHORS","A node can have at most one anchor"),W.source.endsWith(":")&&a(W.offset+W.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=W,F===null&&(F=W.offset),h=!1,g=!1,S=!0;break;case"tag":{B&&a(W,"MULTIPLE_TAGS","A node can have at most one tag"),B=W,F===null&&(F=W.offset),h=!1,g=!1,S=!0;break}case n:(b||B)&&a(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),k&&a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),k=W,h=n==="seq-item-ind"||n==="explicit-key-ind",g=!1;break;case"comma":if(t){_&&a(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),_=W,h=!1,g=!1;break}default:a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),h=!1,g=!1}const P=e[e.length-1],I=P?P.offset+P.source.length:o;return S&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&a(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),E&&(h&&E.indent<=u||i?.type==="block-map"||i?.type==="block-seq")&&a(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:_,found:k,spaceBefore:f,comment:p,hasNewline:C,anchor:b,tag:B,newlineAfterProp:N,end:I,start:F??I}}function to(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
311
- `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(to(t.key)||to(t.value))return!0}return!1;default:return!0}}function Nc(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&to(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Qd(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||kt(a)&&kt(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const Zd="All mapping items must start at the same column";function Cb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??Vn,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,h=null;for(const g of i.items){const{start:p,key:v,sep:C,value:S}=g,E=as(p,{indicator:"explicit-key-ind",next:v??C?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),b=!E.found;if(b){if(v&&(v.type==="block-seq"?o(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in v&&v.indent!==i.indent&&o(f,"BAD_INDENT",Zd)),!E.anchor&&!E.tag&&!C){h=E.end,E.comment&&(l.comment?l.comment+=`
312
- `+E.comment:l.comment=E.comment);continue}(E.newlineAfterProp||to(v))&&o(v??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else E.found?.indent!==i.indent&&o(f,"BAD_INDENT",Zd);n.atKey=!0;const B=E.end,N=v?e(n,v,E,o):t(n,B,p,null,E,o);n.schema.compat&&Nc(i.indent,v,o),n.atKey=!1,Qd(n,l.items,N)&&o(B,"DUPLICATE_KEY","Map keys must be unique");const _=as(C??[],{indicator:"map-value-ind",next:S,offset:N.range[2],onError:o,parentIndent:i.indent,startOnNewline:!v||v.type==="block-scalar"});if(f=_.end,_.found){b&&(S?.type==="block-map"&&!_.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&E.start<_.found.offset-1024&&o(N.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const k=S?e(n,S,_,o):t(n,f,C,null,_,o);n.schema.compat&&Nc(i.indent,S,o),f=k.range[2];const F=new dn(N,k);n.options.keepSourceTokens&&(F.srcToken=g),l.items.push(F)}else{b&&o(N.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),_.comment&&(N.comment?N.comment+=`
313
- `+_.comment:N.comment=_.comment);const k=new dn(N);n.options.keepSourceTokens&&(k.srcToken=g),l.items.push(k)}}return h&&h<f&&o(h,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,h??f],l}function _b({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??bi,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,h=null;for(const{start:g,value:p}of i.items){const v=as(g,{indicator:"seq-item-ind",next:p,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||p)p&&p.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{h=v.end,v.comment&&(l.comment=v.comment);continue}const C=p?e(n,p,v,o):t(n,v.end,g,null,v,o);n.schema.compat&&Nc(i.indent,p,o),f=C.range[2],l.items.push(C)}return l.range=[i.offset,f,h??f],l}function no(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:h}=l;switch(h){case"space":a=!0;break;case"comment":{n&&!a&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const g=f.substring(1)||" ";o?o+=u+g:o=g,u="";break}case"newline":o&&(u+=f),a=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${h} at node end`)}t+=f.length}}return{comment:o,offset:t}}const jc="Block collections are not allowed within flow collections",$c=e=>e&&(e.type==="block-map"||e.type==="block-seq");function kb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?Vn:bi),h=new f(n.schema);h.flow=!0;const g=n.atRoot;g&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let p=i.offset+i.start.source.length;for(let b=0;b<i.items.length;++b){const B=i.items[b],{start:N,key:_,sep:k,value:F}=B,P=as(N,{flow:l,indicator:"explicit-key-ind",next:_??k?.[0],offset:p,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!P.found){if(!P.anchor&&!P.tag&&!k&&!F){b===0&&P.comma?o(P.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):b<i.items.length-1&&o(P.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),P.comment&&(h.comment?h.comment+=`
314
- `+P.comment:h.comment=P.comment),p=P.end;continue}!u&&n.options.strict&&to(_)&&o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)P.comma&&o(P.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(P.comma||o(P.start,"MISSING_CHAR",`Missing , between ${l} items`),P.comment){let I="";e:for(const W of N)switch(W.type){case"comma":case"space":break;case"comment":I=W.source.substring(1);break e;default:break e}if(I){let W=h.items[h.items.length-1];Vt(W)&&(W=W.value??W.key),W.comment?W.comment+=`
315
- `+I:W.comment=I,P.comment=P.comment.substring(I.length+1)}}if(!u&&!k&&!P.found){const I=F?e(n,F,P,o):t(n,P.end,k,null,P,o);h.items.push(I),p=I.range[2],$c(F)&&o(I.range,"BLOCK_IN_FLOW",jc)}else{n.atKey=!0;const I=P.end,W=_?e(n,_,P,o):t(n,I,N,null,P,o);$c(_)&&o(W.range,"BLOCK_IN_FLOW",jc),n.atKey=!1;const J=as(k??[],{flow:l,indicator:"map-value-ind",next:F,offset:W.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(J.found){if(!u&&!P.found&&n.options.strict){if(k)for(const ge of k){if(ge===J.found)break;if(ge.type==="newline"){o(ge,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}P.start<J.found.offset-1024&&o(J.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else F&&("source"in F&&F.source&&F.source[0]===":"?o(F,"MISSING_CHAR",`Missing space after : in ${l}`):o(J.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const ce=F?e(n,F,J,o):J.found?t(n,J.end,k,null,J,o):null;ce?$c(F)&&o(ce.range,"BLOCK_IN_FLOW",jc):J.comment&&(W.comment?W.comment+=`
316
- `+J.comment:W.comment=J.comment);const le=new dn(W,ce);if(n.options.keepSourceTokens&&(le.srcToken=B),u){const ge=h;Qd(n,ge.items,W)&&o(I,"DUPLICATE_KEY","Map keys must be unique"),ge.items.push(le)}else{const ge=new Vn(n.schema);ge.flow=!0,ge.items.push(le);const ye=(ce??W).range;ge.range=[W.range[0],ye[1],ye[2]],h.items.push(ge)}p=ce?ce.range[2]:J.end}}const v=u?"}":"]",[C,...S]=i.end;let E=p;if(C&&C.source===v)E=C.offset+C.source.length;else{const b=l[0].toUpperCase()+l.substring(1),B=g?`${b} must end with a ${v}`:`${b} in block collection must be sufficiently indented and end with a ${v}`;o(p,g?"MISSING_CHAR":"BAD_INDENT",B),C&&C.source.length!==1&&S.unshift(C)}if(S.length>0){const b=no(S,E,n.options.strict,o);b.comment&&(h.comment?h.comment+=`
317
- `+b.comment:h.comment=b.comment),h.range=[i.offset,E,b.offset]}else h.range=[i.offset,E,E];return h}function Mc(e,t,n,i,o,a){const u=n.type==="block-map"?Cb(e,t,n,i,a):n.type==="block-seq"?_b(e,t,n,i,a):kb(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function Tb(e,t,n,i,o){const a=i.tag,u=a?t.directives.tagName(a.source,v=>o(a,"TAG_RESOLVE_FAILED",v)):null;if(n.type==="block-seq"){const{anchor:v,newlineAfterProp:C}=i,S=v&&a?v.offset>a.offset?v:a:v??a;S&&(!C||C.offset<S.offset)&&o(S,"MISSING_CHAR","Missing newline after block sequence props")}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===Vn.tagName&&l==="map"||u===bi.tagName&&l==="seq")return Mc(e,t,n,o,u);let f=t.schema.tags.find(v=>v.tag===u&&v.collection===l);if(!f){const v=t.schema.knownTags[u];if(v&&v.collection===l)t.schema.tags.push(Object.assign({},v,{default:!1})),f=v;else return v?.collection?o(a,"BAD_COLLECTION_TYPE",`${v.tag} used for ${l} collection, but expects ${v.collection}`,!0):o(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),Mc(e,t,n,o,u)}const h=Mc(e,t,n,o,u,f),g=f.resolve?.(h,v=>o(a,"TAG_RESOLVE_FAILED",v),t.options)??h,p=Wt(g)?g:new qe(g);return p.range=h.range,p.tag=u,f?.format&&(p.format=f.format),p}function Ob(e,t,n){const i=t.offset,o=Ib(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const a=o.mode===">"?qe.BLOCK_FOLDED:qe.BLOCK_LITERAL,u=t.source?Fb(t.source):[];let l=u.length;for(let E=u.length-1;E>=0;--E){const b=u[E][1];if(b===""||b==="\r")l=E;else break}if(l===0){const E=o.chomp==="+"&&u.length>0?`
318
- `.repeat(Math.max(1,u.length-1)):"";let b=i+o.length;return t.source&&(b+=t.source.length),{value:E,type:a,comment:o.comment,range:[i,b,b]}}let f=t.indent+o.indent,h=t.offset+o.length,g=0;for(let E=0;E<l;++E){const[b,B]=u[E];if(B===""||B==="\r")o.indent===0&&b.length>f&&(f=b.length);else{b.length<f&&n(h+b.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(f=b.length),g=E,f===0&&!e.atRoot&&n(h,"BAD_INDENT","Block scalar values in collections must be indented");break}h+=b.length+B.length+1}for(let E=u.length-1;E>=l;--E)u[E][0].length>f&&(l=E+1);let p="",v="",C=!1;for(let E=0;E<g;++E)p+=u[E][0].slice(f)+`
319
- `;for(let E=g;E<l;++E){let[b,B]=u[E];h+=b.length+B.length+1;const N=B[B.length-1]==="\r";if(N&&(B=B.slice(0,-1)),B&&b.length<f){const k=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(h-B.length-(N?2:1),"BAD_INDENT",k),b=""}a===qe.BLOCK_LITERAL?(p+=v+b.slice(f)+B,v=`
309
+ ${d}
310
+ `}};function os(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,d=l,g=l,p="",v="",C=!1,A=!1,E=null,b=null,B=null,N=null,_=null,k=null,F=null;for(const W of e)switch(A&&(W.type!=="space"&&W.type!=="newline"&&W.type!=="comma"&&a(W.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),A=!1),E&&(d&&W.type!=="comment"&&W.type!=="newline"&&a(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),E=null),W.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&W.source.includes(" ")&&(E=W),g=!0;break;case"comment":{g||a(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const J=W.source.substring(1)||" ";p?p+=v+J:p=J,v="",d=!1;break}case"newline":d?p?p+=W.source:(!k||n!=="seq-item-ind")&&(f=!0):v+=W.source,d=!0,C=!0,(b||B)&&(N=W),g=!0;break;case"anchor":b&&a(W,"MULTIPLE_ANCHORS","A node can have at most one anchor"),W.source.endsWith(":")&&a(W.offset+W.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=W,F===null&&(F=W.offset),d=!1,g=!1,A=!0;break;case"tag":{B&&a(W,"MULTIPLE_TAGS","A node can have at most one tag"),B=W,F===null&&(F=W.offset),d=!1,g=!1,A=!0;break}case n:(b||B)&&a(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),k&&a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),k=W,d=n==="seq-item-ind"||n==="explicit-key-ind",g=!1;break;case"comma":if(t){_&&a(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),_=W,d=!1,g=!1;break}default:a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),d=!1,g=!1}const R=e[e.length-1],O=R?R.offset+R.source.length:o;return A&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&a(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),E&&(d&&E.indent<=u||i?.type==="block-map"||i?.type==="block-seq")&&a(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:_,found:k,spaceBefore:f,comment:p,hasNewline:C,anchor:b,tag:B,newlineAfterProp:N,end:O,start:F??O}}function eo(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
311
+ `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(eo(t.key)||eo(t.value))return!0}return!1;default:return!0}}function Pc(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&eo(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Xd(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||_t(a)&&_t(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const Qd="All mapping items must start at the same column";function mb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??Vn,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,d=null;for(const g of i.items){const{start:p,key:v,sep:C,value:A}=g,E=os(p,{indicator:"explicit-key-ind",next:v??C?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),b=!E.found;if(b){if(v&&(v.type==="block-seq"?o(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in v&&v.indent!==i.indent&&o(f,"BAD_INDENT",Qd)),!E.anchor&&!E.tag&&!C){d=E.end,E.comment&&(l.comment?l.comment+=`
312
+ `+E.comment:l.comment=E.comment);continue}(E.newlineAfterProp||eo(v))&&o(v??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else E.found?.indent!==i.indent&&o(f,"BAD_INDENT",Qd);n.atKey=!0;const B=E.end,N=v?e(n,v,E,o):t(n,B,p,null,E,o);n.schema.compat&&Pc(i.indent,v,o),n.atKey=!1,Xd(n,l.items,N)&&o(B,"DUPLICATE_KEY","Map keys must be unique");const _=os(C??[],{indicator:"map-value-ind",next:A,offset:N.range[2],onError:o,parentIndent:i.indent,startOnNewline:!v||v.type==="block-scalar"});if(f=_.end,_.found){b&&(A?.type==="block-map"&&!_.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&E.start<_.found.offset-1024&&o(N.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const k=A?e(n,A,_,o):t(n,f,C,null,_,o);n.schema.compat&&Pc(i.indent,A,o),f=k.range[2];const F=new dn(N,k);n.options.keepSourceTokens&&(F.srcToken=g),l.items.push(F)}else{b&&o(N.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),_.comment&&(N.comment?N.comment+=`
313
+ `+_.comment:N.comment=_.comment);const k=new dn(N);n.options.keepSourceTokens&&(k.srcToken=g),l.items.push(k)}}return d&&d<f&&o(d,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,d??f],l}function wb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??bi,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,d=null;for(const{start:g,value:p}of i.items){const v=os(g,{indicator:"seq-item-ind",next:p,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||p)p&&p.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{d=v.end,v.comment&&(l.comment=v.comment);continue}const C=p?e(n,p,v,o):t(n,v.end,g,null,v,o);n.schema.compat&&Pc(i.indent,p,o),f=C.range[2],l.items.push(C)}return l.range=[i.offset,f,d??f],l}function to(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:d}=l;switch(d){case"space":a=!0;break;case"comment":{n&&!a&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const g=f.substring(1)||" ";o?o+=u+g:o=g,u="";break}case"newline":o&&(u+=f),a=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=f.length}}return{comment:o,offset:t}}const Nc="Block collections are not allowed within flow collections",jc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function bb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?Vn:bi),d=new f(n.schema);d.flow=!0;const g=n.atRoot;g&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let p=i.offset+i.start.source.length;for(let b=0;b<i.items.length;++b){const B=i.items[b],{start:N,key:_,sep:k,value:F}=B,R=os(N,{flow:l,indicator:"explicit-key-ind",next:_??k?.[0],offset:p,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!R.found){if(!R.anchor&&!R.tag&&!k&&!F){b===0&&R.comma?o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):b<i.items.length-1&&o(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),R.comment&&(d.comment?d.comment+=`
314
+ `+R.comment:d.comment=R.comment),p=R.end;continue}!u&&n.options.strict&&eo(_)&&o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)R.comma&&o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(R.comma||o(R.start,"MISSING_CHAR",`Missing , between ${l} items`),R.comment){let O="";e:for(const W of N)switch(W.type){case"comma":case"space":break;case"comment":O=W.source.substring(1);break e;default:break e}if(O){let W=d.items[d.items.length-1];Vt(W)&&(W=W.value??W.key),W.comment?W.comment+=`
315
+ `+O:W.comment=O,R.comment=R.comment.substring(O.length+1)}}if(!u&&!k&&!R.found){const O=F?e(n,F,R,o):t(n,R.end,k,null,R,o);d.items.push(O),p=O.range[2],jc(F)&&o(O.range,"BLOCK_IN_FLOW",Nc)}else{n.atKey=!0;const O=R.end,W=_?e(n,_,R,o):t(n,O,N,null,R,o);jc(_)&&o(W.range,"BLOCK_IN_FLOW",Nc),n.atKey=!1;const J=os(k??[],{flow:l,indicator:"map-value-ind",next:F,offset:W.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(J.found){if(!u&&!R.found&&n.options.strict){if(k)for(const ge of k){if(ge===J.found)break;if(ge.type==="newline"){o(ge,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}R.start<J.found.offset-1024&&o(J.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else F&&("source"in F&&F.source&&F.source[0]===":"?o(F,"MISSING_CHAR",`Missing space after : in ${l}`):o(J.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const le=F?e(n,F,J,o):J.found?t(n,J.end,k,null,J,o):null;le?jc(F)&&o(le.range,"BLOCK_IN_FLOW",Nc):J.comment&&(W.comment?W.comment+=`
316
+ `+J.comment:W.comment=J.comment);const ce=new dn(W,le);if(n.options.keepSourceTokens&&(ce.srcToken=B),u){const ge=d;Xd(n,ge.items,W)&&o(O,"DUPLICATE_KEY","Map keys must be unique"),ge.items.push(ce)}else{const ge=new Vn(n.schema);ge.flow=!0,ge.items.push(ce);const ye=(le??W).range;ge.range=[W.range[0],ye[1],ye[2]],d.items.push(ge)}p=le?le.range[2]:J.end}}const v=u?"}":"]",[C,...A]=i.end;let E=p;if(C&&C.source===v)E=C.offset+C.source.length;else{const b=l[0].toUpperCase()+l.substring(1),B=g?`${b} must end with a ${v}`:`${b} in block collection must be sufficiently indented and end with a ${v}`;o(p,g?"MISSING_CHAR":"BAD_INDENT",B),C&&C.source.length!==1&&A.unshift(C)}if(A.length>0){const b=to(A,E,n.options.strict,o);b.comment&&(d.comment?d.comment+=`
317
+ `+b.comment:d.comment=b.comment),d.range=[i.offset,E,b.offset]}else d.range=[i.offset,E,E];return d}function $c(e,t,n,i,o,a){const u=n.type==="block-map"?mb(e,t,n,i,a):n.type==="block-seq"?wb(e,t,n,i,a):bb(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function vb(e,t,n,i,o){const a=i.tag,u=a?t.directives.tagName(a.source,v=>o(a,"TAG_RESOLVE_FAILED",v)):null;if(n.type==="block-seq"){const{anchor:v,newlineAfterProp:C}=i,A=v&&a?v.offset>a.offset?v:a:v??a;A&&(!C||C.offset<A.offset)&&o(A,"MISSING_CHAR","Missing newline after block sequence props")}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===Vn.tagName&&l==="map"||u===bi.tagName&&l==="seq")return $c(e,t,n,o,u);let f=t.schema.tags.find(v=>v.tag===u&&v.collection===l);if(!f){const v=t.schema.knownTags[u];if(v&&v.collection===l)t.schema.tags.push(Object.assign({},v,{default:!1})),f=v;else return v?.collection?o(a,"BAD_COLLECTION_TYPE",`${v.tag} used for ${l} collection, but expects ${v.collection}`,!0):o(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),$c(e,t,n,o,u)}const d=$c(e,t,n,o,u,f),g=f.resolve?.(d,v=>o(a,"TAG_RESOLVE_FAILED",v),t.options)??d,p=Wt(g)?g:new qe(g);return p.range=d.range,p.tag=u,f?.format&&(p.format=f.format),p}function Sb(e,t,n){const i=t.offset,o=Ab(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const a=o.mode===">"?qe.BLOCK_FOLDED:qe.BLOCK_LITERAL,u=t.source?Eb(t.source):[];let l=u.length;for(let E=u.length-1;E>=0;--E){const b=u[E][1];if(b===""||b==="\r")l=E;else break}if(l===0){const E=o.chomp==="+"&&u.length>0?`
318
+ `.repeat(Math.max(1,u.length-1)):"";let b=i+o.length;return t.source&&(b+=t.source.length),{value:E,type:a,comment:o.comment,range:[i,b,b]}}let f=t.indent+o.indent,d=t.offset+o.length,g=0;for(let E=0;E<l;++E){const[b,B]=u[E];if(B===""||B==="\r")o.indent===0&&b.length>f&&(f=b.length);else{b.length<f&&n(d+b.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(f=b.length),g=E,f===0&&!e.atRoot&&n(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=b.length+B.length+1}for(let E=u.length-1;E>=l;--E)u[E][0].length>f&&(l=E+1);let p="",v="",C=!1;for(let E=0;E<g;++E)p+=u[E][0].slice(f)+`
319
+ `;for(let E=g;E<l;++E){let[b,B]=u[E];d+=b.length+B.length+1;const N=B[B.length-1]==="\r";if(N&&(B=B.slice(0,-1)),B&&b.length<f){const k=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-B.length-(N?2:1),"BAD_INDENT",k),b=""}a===qe.BLOCK_LITERAL?(p+=v+b.slice(f)+B,v=`
320
320
  `):b.length>f||B[0]===" "?(v===" "?v=`
321
321
  `:!C&&v===`
322
322
  `&&(v=`
@@ -329,75 +329,75 @@ ${h}
329
329
  `+u[E][0].slice(f);p[p.length-1]!==`
330
330
  `&&(p+=`
331
331
  `);break;default:p+=`
332
- `}const S=i+o.length+t.source.length;return{value:p,type:a,comment:o.comment,range:[i,S,S]}}function Ib({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],a=o[0];let u=0,l="",f=-1;for(let v=1;v<o.length;++v){const C=o[v];if(!l&&(C==="-"||C==="+"))l=C;else{const S=Number(C);!u&&S?u=S:f===-1&&(f=e+v)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let h=!1,g="",p=o.length;for(let v=1;v<t.length;++v){const C=t[v];switch(C.type){case"space":h=!0;case"newline":p+=C.source.length;break;case"comment":n&&!h&&i(C,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=C.source.length,g=C.source.substring(1);break;case"error":i(C,"UNEXPECTED_TOKEN",C.message),p+=C.source.length;break;default:{const S=`Unexpected token in block scalar header: ${C.type}`;i(C,"UNEXPECTED_TOKEN",S);const E=C.source;E&&typeof E=="string"&&(p+=E.length)}}}return{mode:a,indent:u,chomp:l,comment:g,length:p}}function Fb(e){const t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),a=[i?.[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let u=1;u<t.length;u+=2)a.push([t[u],t[u+1]]);return a}function Bb(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const h=(v,C,S)=>n(i+v,C,S);switch(o){case"scalar":l=qe.PLAIN,f=Db(a,h);break;case"single-quoted-scalar":l=qe.QUOTE_SINGLE,f=Pb(a,h);break;case"double-quoted-scalar":l=qe.QUOTE_DOUBLE,f=Rb(a,h);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}const g=i+a.length,p=no(u,g,t,n);return{value:f,type:l,comment:p.comment,range:[i,g,p.offset]}}function Db(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),ep(e)}function Pb(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),ep(e.slice(1,-1)).replace(/''/g,"'")}function ep(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
332
+ `}const A=i+o.length+t.source.length;return{value:p,type:a,comment:o.comment,range:[i,A,A]}}function Ab({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],a=o[0];let u=0,l="",f=-1;for(let v=1;v<o.length;++v){const C=o[v];if(!l&&(C==="-"||C==="+"))l=C;else{const A=Number(C);!u&&A?u=A:f===-1&&(f=e+v)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,g="",p=o.length;for(let v=1;v<t.length;++v){const C=t[v];switch(C.type){case"space":d=!0;case"newline":p+=C.source.length;break;case"comment":n&&!d&&i(C,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=C.source.length,g=C.source.substring(1);break;case"error":i(C,"UNEXPECTED_TOKEN",C.message),p+=C.source.length;break;default:{const A=`Unexpected token in block scalar header: ${C.type}`;i(C,"UNEXPECTED_TOKEN",A);const E=C.source;E&&typeof E=="string"&&(p+=E.length)}}}return{mode:a,indent:u,chomp:l,comment:g,length:p}}function Eb(e){const t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),a=[i?.[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let u=1;u<t.length;u+=2)a.push([t[u],t[u+1]]);return a}function xb(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const d=(v,C,A)=>n(i+v,C,A);switch(o){case"scalar":l=qe.PLAIN,f=Cb(a,d);break;case"single-quoted-scalar":l=qe.QUOTE_SINGLE,f=_b(a,d);break;case"double-quoted-scalar":l=qe.QUOTE_DOUBLE,f=kb(a,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}const g=i+a.length,p=to(u,g,t,n);return{value:f,type:l,comment:p.comment,range:[i,g,p.offset]}}function Cb(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Zd(e)}function _b(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Zd(e.slice(1,-1)).replace(/''/g,"'")}function Zd(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
333
333
  `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
334
334
  `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let o=i[1],a=" ",u=t.lastIndex;for(n.lastIndex=u;i=n.exec(e);)i[1]===""?a===`
335
335
  `?o+=a:a=`
336
- `:(o+=a+i[1],a=" "),u=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=u,i=l.exec(e),o+a+(i?.[1]??"")}function Rb(e,t){let n="";for(let i=1;i<e.length-1;++i){const o=e[i];if(!(o==="\r"&&e[i+1]===`
336
+ `:(o+=a+i[1],a=" "),u=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=u,i=l.exec(e),o+a+(i?.[1]??"")}function kb(e,t){let n="";for(let i=1;i<e.length-1;++i){const o=e[i];if(!(o==="\r"&&e[i+1]===`
337
337
  `))if(o===`
338
- `){const{fold:a,offset:u}=Lb(e,i);n+=a,i=u}else if(o==="\\"){let a=e[++i];const u=Nb[a];if(u)n+=u;else if(a===`
338
+ `){const{fold:a,offset:u}=Tb(e,i);n+=a,i=u}else if(o==="\\"){let a=e[++i];const u=Ib[a];if(u)n+=u;else if(a===`
339
339
  `)for(a=e[i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="\r"&&e[i+1]===`
340
- `)for(a=e[++i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="x"||a==="u"||a==="U"){const l={x:2,u:4,U:8}[a];n+=jb(e,i+1,l,t),i+=l}else{const l=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(o===" "||o===" "){const a=i;let u=e[i+1];for(;u===" "||u===" ";)u=e[++i+1];u!==`
340
+ `)for(a=e[++i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="x"||a==="u"||a==="U"){const l={x:2,u:4,U:8}[a];n+=Ob(e,i+1,l,t),i+=l}else{const l=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(o===" "||o===" "){const a=i;let u=e[i+1];for(;u===" "||u===" ";)u=e[++i+1];u!==`
341
341
  `&&!(u==="\r"&&e[i+2]===`
342
- `)&&(n+=i>a?e.slice(a,i+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Lb(e,t){let n="",i=e[t+1];for(;(i===" "||i===" "||i===`
342
+ `)&&(n+=i>a?e.slice(a,i+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Tb(e,t){let n="",i=e[t+1];for(;(i===" "||i===" "||i===`
343
343
  `||i==="\r")&&!(i==="\r"&&e[t+2]!==`
344
344
  `);)i===`
345
345
  `&&(n+=`
346
- `),t+=1,i=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Nb={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
347
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function jb(e,t,n,i){const o=e.substr(t,n),u=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const l=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(u)}function tp(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?Ob(e,t,i):Bb(t,e.options.strict,i),f=n?e.directives.tagName(n.source,p=>i(n,"TAG_RESOLVE_FAILED",p)):null;let h;e.options.stringKeys&&e.atKey?h=e.schema[yr]:f?h=$b(e.schema,o,f,n,i):t.type==="scalar"?h=Mb(e,o,t,i):h=e.schema[yr];let g;try{const p=h.resolve(o,v=>i(n??t,"TAG_RESOLVE_FAILED",v),e.options);g=kt(p)?p:new qe(p)}catch(p){const v=p instanceof Error?p.message:String(p);i(n??t,"TAG_RESOLVE_FAILED",v),g=new qe(o)}return g.range=l,g.source=o,a&&(g.type=a),f&&(g.tag=f),h.format&&(g.format=h.format),u&&(g.comment=u),g}function $b(e,t,n,i,o){if(n==="!")return e[yr];const a=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)a.push(l);else return l;for(const l of a)if(l.test?.test(t))return l;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[yr])}function Mb({atKey:e,directives:t,schema:n},i,o,a){const u=n.tags.find(l=>(l.default===!0||e&&l.default==="key")&&l.test?.test(i))||n[yr];if(n.compat){const l=n.compat.find(f=>f.default&&f.test?.test(i))??n[yr];if(u.tag!==l.tag){const f=t.tagString(u.tag),h=t.tagString(l.tag),g=`Value may be parsed as either ${f} or ${h}`;a(o,"TAG_RESOLVE_FAILED",g,!0)}}return u}function Ub(e,t,n){if(t){n===null&&(n=t.length);for(let i=n-1;i>=0;--i){let o=t[i];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++i];o?.type==="space";)e+=o.source.length,o=t[++i];break}}return e}const Vb={composeNode:np,composeEmptyNode:Uc};function np(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let h,g=!0;switch(t.type){case"alias":h=qb(e,t,i),(l||f)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":h=tp(e,t,f,i),l&&(h.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":h=Tb(Vb,e,t,n,i),l&&(h.anchor=l.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",p),h=Uc(e,t.offset,void 0,null,n,i),g=!1}}return l&&h.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!kt(h)||typeof h.value!="string"||h.tag&&h.tag!=="tag:yaml.org,2002:str")&&i(f??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(h.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?h.comment=u:h.commentBefore=u),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}function Uc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},h){const g={type:"scalar",offset:Ub(t,n,i),indent:-1,source:""},p=tp(e,g,l,h);return u&&(p.anchor=u.source.substring(1),p.anchor===""&&h(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),a&&(p.comment=a,p.range[2]=f),p}function qb({options:e},{offset:t,source:n,end:i},o){const a=new vc(n.substring(1));a.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=t+n.length,l=no(i,u,e.strict,o);return a.range=[t,u,l.offset],l.comment&&(a.comment=l.comment),a}function Wb(e,t,{offset:n,start:i,value:o,end:a},u){const l=Object.assign({_directives:t},e),f=new Zs(void 0,l),h={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},g=as(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});g.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!g.hasNewline&&u(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?np(h,o,g,u):Uc(h,g.end,i,null,g,u);const p=f.contents.range[2],v=no(a,p,!1,u);return v.comment&&(f.comment=v.comment),f.range=[n,p,v.offset],f}function ro(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function rp(e){let t="",n=!1,i=!1;for(let o=0;o<e.length;++o){const a=e[o];switch(a[0]){case"#":t+=(t===""?"":i?`
346
+ `),t+=1,i=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Ib={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
347
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Ob(e,t,n,i){const o=e.substr(t,n),u=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const l=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(u)}function ep(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?Sb(e,t,i):xb(t,e.options.strict,i),f=n?e.directives.tagName(n.source,p=>i(n,"TAG_RESOLVE_FAILED",p)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[yr]:f?d=Fb(e.schema,o,f,n,i):t.type==="scalar"?d=Bb(e,o,t,i):d=e.schema[yr];let g;try{const p=d.resolve(o,v=>i(n??t,"TAG_RESOLVE_FAILED",v),e.options);g=_t(p)?p:new qe(p)}catch(p){const v=p instanceof Error?p.message:String(p);i(n??t,"TAG_RESOLVE_FAILED",v),g=new qe(o)}return g.range=l,g.source=o,a&&(g.type=a),f&&(g.tag=f),d.format&&(g.format=d.format),u&&(g.comment=u),g}function Fb(e,t,n,i,o){if(n==="!")return e[yr];const a=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)a.push(l);else return l;for(const l of a)if(l.test?.test(t))return l;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[yr])}function Bb({atKey:e,directives:t,schema:n},i,o,a){const u=n.tags.find(l=>(l.default===!0||e&&l.default==="key")&&l.test?.test(i))||n[yr];if(n.compat){const l=n.compat.find(f=>f.default&&f.test?.test(i))??n[yr];if(u.tag!==l.tag){const f=t.tagString(u.tag),d=t.tagString(l.tag),g=`Value may be parsed as either ${f} or ${d}`;a(o,"TAG_RESOLVE_FAILED",g,!0)}}return u}function Db(e,t,n){if(t){n===null&&(n=t.length);for(let i=n-1;i>=0;--i){let o=t[i];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++i];o?.type==="space";)e+=o.source.length,o=t[++i];break}}return e}const Rb={composeNode:tp,composeEmptyNode:Mc};function tp(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let d,g=!0;switch(t.type){case"alias":d=Lb(e,t,i),(l||f)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":d=ep(e,t,f,i),l&&(d.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=vb(Rb,e,t,n,i),l&&(d.anchor=l.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",p),d=Mc(e,t.offset,void 0,null,n,i),g=!1}}return l&&d.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!_t(d)||typeof d.value!="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")&&i(f??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(d.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?d.comment=u:d.commentBefore=u),e.options.keepSourceTokens&&g&&(d.srcToken=t),d}function Mc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},d){const g={type:"scalar",offset:Db(t,n,i),indent:-1,source:""},p=ep(e,g,l,d);return u&&(p.anchor=u.source.substring(1),p.anchor===""&&d(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),a&&(p.comment=a,p.range[2]=f),p}function Lb({options:e},{offset:t,source:n,end:i},o){const a=new bc(n.substring(1));a.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=t+n.length,l=to(i,u,e.strict,o);return a.range=[t,u,l.offset],l.comment&&(a.comment=l.comment),a}function Pb(e,t,{offset:n,start:i,value:o,end:a},u){const l=Object.assign({_directives:t},e),f=new Qs(void 0,l),d={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},g=os(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});g.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!g.hasNewline&&u(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?tp(d,o,g,u):Mc(d,g.end,i,null,g,u);const p=f.contents.range[2],v=to(a,p,!1,u);return v.comment&&(f.comment=v.comment),f.range=[n,p,v.offset],f}function no(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function np(e){let t="",n=!1,i=!1;for(let o=0;o<e.length;++o){const a=e[o];switch(a[0]){case"#":t+=(t===""?"":i?`
348
348
 
349
349
  `:`
350
- `)+(a.substring(1)||" "),n=!0,i=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}class Kb{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=ro(n);a?this.warnings.push(new xb(u,i,o)):this.errors.push(new eo(u,i,o))},this.directives=new hn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=rp(this.prelude);if(i){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
350
+ `)+(a.substring(1)||" "),n=!0,i=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}class Nb{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=no(n);a?this.warnings.push(new yb(u,i,o)):this.errors.push(new Zs(u,i,o))},this.directives=new hn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=np(this.prelude);if(i){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
351
351
  ${i}`:i;else if(o||t.directives.docStart||!a)t.commentBefore=i;else if(qt(a)&&!a.flow&&a.items.length>0){let u=a.items[0];Vt(u)&&(u=u.key);const l=u.commentBefore;u.commentBefore=l?`${i}
352
352
  ${l}`:i}else{const u=a.commentBefore;a.commentBefore=u?`${i}
353
- ${u}`:i}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:rp(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(const o of t)yield*this.next(o);yield*this.end(n,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,i,o)=>{const a=ro(t);a[0]+=n,this.onError(a,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Wb(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new eo(ro(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new eo(ro(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=no(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
354
- ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new eo(ro(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const i=Object.assign({_directives:this.directives},this.options),o=new Zs(void 0,i);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const ip="\uFEFF",sp="",op="",Vc="";function Hb(e){switch(e){case ip:return"byte-order-mark";case sp:return"doc-mode";case op:return"flow-error-end";case Vc:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
353
+ ${u}`:i}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:np(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(const o of t)yield*this.next(o);yield*this.end(n,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,i,o)=>{const a=no(t);a[0]+=n,this.onError(a,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Pb(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new Zs(no(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new Zs(no(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=to(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
354
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Zs(no(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const i=Object.assign({_directives:this.directives},this.options),o=new Qs(void 0,i);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const rp="\uFEFF",ip="",sp="",Uc="";function jb(e){switch(e){case rp:return"byte-order-mark";case ip:return"doc-mode";case sp:return"flow-error-end";case Uc:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
355
355
  `:case`\r
356
356
  `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function tr(e){switch(e){case void 0:case" ":case`
357
- `:case"\r":case" ":return!0;default:return!1}}const ap=new Set("0123456789ABCDEFabcdef"),zb=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Ca=new Set(",[]{}"),Gb=new Set(` ,[]{}
358
- \r `),qc=e=>!e||Gb.has(e);class Jb{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let i=this.next??"stream";for(;i&&(n||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
357
+ `:case"\r":case" ":return!0;default:return!1}}const op=new Set("0123456789ABCDEFabcdef"),$b=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Ea=new Set(",[]{}"),Mb=new Set(` ,[]{}
358
+ \r `),Vc=e=>!e||Mb.has(e);class Ub{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let i=this.next??"stream";for(;i&&(n||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
359
359
  `?!0:n==="\r"?this.buffer[t+1]===`
360
360
  `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let i=0;for(;n===" ";)n=this.buffer[++i+t];if(n==="\r"){const o=this.buffer[i+t+1];if(o===`
361
361
  `||!o&&!this.atEnd)return t+i+1}return n===`
362
362
  `||i>=this.indentNext||!n&&!this.atEnd?t+i:-1}if(n==="-"||n==="."){const i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&tr(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
363
- `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===ip&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,i=t.indexOf("#");for(;i!==-1;){const a=t[i-1];if(a===" "||a===" "){n=i-1;break}else i=t.indexOf("#",i+1)}for(;;){const a=t[n-1];if(a===" "||a===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield sp,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&tr(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!tr(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&tr(n)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(qc),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,i=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=i=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&o[0]!=="#"||i===0&&(o.startsWith("---")||o.startsWith("..."))&&tr(o[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield op,yield*this.parseLineStart();let a=0;for(;o[a]===",";)a+=yield*this.pushCount(1),a+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(a+=yield*this.pushIndicators(),o[a]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-a),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(qc),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const u=this.charAt(1);if(this.flowKey||tr(u)||u===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let a=0;for(;this.buffer[n-1-a]==="\\";)a+=1;if(a%2===0)break;n=this.buffer.indexOf('"',n+1)}const i=this.buffer.substring(0,n);let o=i.indexOf(`
363
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===rp&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,i=t.indexOf("#");for(;i!==-1;){const a=t[i-1];if(a===" "||a===" "){n=i-1;break}else i=t.indexOf("#",i+1)}for(;;){const a=t[n-1];if(a===" "||a===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield ip,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&tr(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!tr(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&tr(n)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Vc),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,i=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=i=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&o[0]!=="#"||i===0&&(o.startsWith("---")||o.startsWith("..."))&&tr(o[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield sp,yield*this.parseLineStart();let a=0;for(;o[a]===",";)a+=yield*this.pushCount(1),a+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(a+=yield*this.pushIndicators(),o[a]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-a),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Vc),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const u=this.charAt(1);if(this.flowKey||tr(u)||u===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let a=0;for(;this.buffer[n-1-a]==="\\";)a+=1;if(a%2===0)break;n=this.buffer.indexOf('"',n+1)}const i=this.buffer.substring(0,n);let o=i.indexOf(`
364
364
  `,this.pos);if(o!==-1){for(;o!==-1;){const a=this.continueScalar(o+1);if(a===-1)break;o=i.indexOf(`
365
365
  `,a)}o!==-1&&(n=o-(i[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>tr(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,i;e:for(let a=this.pos;i=this.buffer[a];++a)switch(i){case" ":n+=1;break;case`
366
366
  `:t=a,n=0;break;case"\r":{const u=this.buffer[a+1];if(!u&&!this.atEnd)return this.setNext("block-scalar");if(u===`
367
367
  `)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const a=this.continueScalar(t+1);if(a===-1)break;t=this.buffer.indexOf(`
368
368
  `,a)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(i=this.buffer[o];i===" ";)i=this.buffer[++o];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
369
369
  `;)i=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let a=t-1,u=this.buffer[a];u==="\r"&&(u=this.buffer[--a]);const l=a;for(;u===" ";)u=this.buffer[--a];if(u===`
370
- `&&a>=this.pos&&a+1+n>l)t=a;else break}while(!0);return yield Vc,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,i=this.pos-1,o;for(;o=this.buffer[++i];)if(o===":"){const a=this.buffer[i+1];if(tr(a)||t&&Ca.has(a))break;n=i}else if(tr(o)){let a=this.buffer[i+1];if(o==="\r"&&(a===`
370
+ `&&a>=this.pos&&a+1+n>l)t=a;else break}while(!0);return yield Uc,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,i=this.pos-1,o;for(;o=this.buffer[++i];)if(o===":"){const a=this.buffer[i+1];if(tr(a)||t&&Ea.has(a))break;n=i}else if(tr(o)){let a=this.buffer[i+1];if(o==="\r"&&(a===`
371
371
  `?(i+=1,o=`
372
- `,a=this.buffer[i+1]):n=i),a==="#"||t&&Ca.has(a))break;if(o===`
373
- `){const u=this.continueScalar(i+1);if(u===-1)break;i=Math.max(i,u-2)}}else{if(t&&Ca.has(o))break;n=i}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Vc,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(qc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(tr(n)||t&&Ca.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!tr(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(zb.has(n))n=this.buffer[++t];else if(n==="%"&&ap.has(this.buffer[t+1])&&ap.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
372
+ `,a=this.buffer[i+1]):n=i),a==="#"||t&&Ea.has(a))break;if(o===`
373
+ `){const u=this.continueScalar(i+1);if(u===-1)break;i=Math.max(i,u-2)}}else{if(t&&Ea.has(o))break;n=i}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Uc,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Vc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(tr(n)||t&&Ea.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!tr(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if($b.has(n))n=this.buffer[++t];else if(n==="%"&&op.has(this.buffer[t+1])&&op.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
374
374
  `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
375
- `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,i;do i=this.buffer[++n];while(i===" "||t&&i===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,i=this.buffer[n];for(;!t(i);)i=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Yb{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,i=this.lineStarts.length;for(;n<i;){const a=n+i>>1;this.lineStarts[a]<t?n=a+1:i=a}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function vi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function up(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function cp(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function _a(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function us(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function lp(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!vi(t.start,"explicit-key-ind")&&!vi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,cp(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Xb{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Jb,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const i of this.lexer.lex(t,n))yield*this.next(i);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=Hb(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const i=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in i?i.indent:0:n.type==="flow-collection"&&i.type==="document"&&(n.indent=0),n.type==="flow-collection"&&lp(n),i.type){case"document":i.value=n;break;case"block-scalar":i.props.push(n);break;case"block-map":{const o=i.items[i.items.length-1];if(o.value){i.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=i.items[i.items.length-1];o.value?i.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=i.items[i.items.length-1];!o||o.value?i.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&up(o.start)===-1&&(n.indent===0||o.start.every(a=>a.type!=="comment"||a.indent<n.indent))&&(i.type==="document"?i.end=o.start:i.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{up(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=_a(this.peek(2)),i=us(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
375
+ `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,i;do i=this.buffer[++n];while(i===" "||t&&i===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,i=this.buffer[n];for(;!t(i);)i=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Vb{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,i=this.lineStarts.length;for(;n<i;){const a=n+i>>1;this.lineStarts[a]<t?n=a+1:i=a}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function vi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function ap(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function up(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function xa(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function as(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function cp(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!vi(t.start,"explicit-key-ind")&&!vi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,up(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class qb{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Ub,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const i of this.lexer.lex(t,n))yield*this.next(i);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=jb(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const i=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in i?i.indent:0:n.type==="flow-collection"&&i.type==="document"&&(n.indent=0),n.type==="flow-collection"&&cp(n),i.type){case"document":i.value=n;break;case"block-scalar":i.props.push(n);break;case"block-map":{const o=i.items[i.items.length-1];if(o.value){i.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=i.items[i.items.length-1];o.value?i.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=i.items[i.items.length-1];!o||o.value?i.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&ap(o.start)===-1&&(n.indent===0||o.start.every(a=>a.type!=="comment"||a.indent<n.indent))&&(i.type==="document"?i.end=o.start:i.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{ap(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=xa(this.peek(2)),i=as(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
376
376
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
377
- `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,o=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let a=[];if(o&&n.sep&&!n.value){const u=[];for(let l=0;l<n.sep.length;++l){const f=n.sep[l];switch(f.type){case"newline":u.push(l);break;case"space":break;case"comment":f.indent>t.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(a=n.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(a.push(this.sourceToken),t.items.push({start:a}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(a.push(this.sourceToken),t.items.push({start:a,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(vi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(cp(n.key)&&!vi(n.sep,"newline")){const u=us(n.start),l=n.key,f=n.sep;f.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:l,sep:f}]})}else a.length>0?n.sep=n.sep.concat(a,this.sourceToken):n.sep.push(this.sourceToken);else if(vi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=us(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:a,key:null,sep:[this.sourceToken]}):vi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);o||n.value?(t.items.push({start:a,key:u,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(u):(Object.assign(n,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(t);if(u){i&&u.type!=="block-seq"&&t.items.push({start:a}),this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||vi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const o=_a(i),a=us(o);lp(t);const u=t.end.splice(1,t.end.length);u.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:a,key:t,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
377
+ `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,o=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let a=[];if(o&&n.sep&&!n.value){const u=[];for(let l=0;l<n.sep.length;++l){const f=n.sep[l];switch(f.type){case"newline":u.push(l);break;case"space":break;case"comment":f.indent>t.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(a=n.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(a.push(this.sourceToken),t.items.push({start:a}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(a.push(this.sourceToken),t.items.push({start:a,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(vi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(up(n.key)&&!vi(n.sep,"newline")){const u=as(n.start),l=n.key,f=n.sep;f.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:l,sep:f}]})}else a.length>0?n.sep=n.sep.concat(a,this.sourceToken):n.sep.push(this.sourceToken);else if(vi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=as(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:a,key:null,sep:[this.sourceToken]}):vi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);o||n.value?(t.items.push({start:a,key:u,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(u):(Object.assign(n,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(t);if(u){i&&u.type!=="block-seq"&&t.items.push({start:a}),this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||vi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const o=xa(i),a=as(o);cp(t);const u=t.end.splice(1,t.end.length);u.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:a,key:t,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
378
378
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
379
- `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=_a(t),i=us(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=_a(t),i=us(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Qb(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Yb||null,prettyErrors:t}}function Zb(e,t={}){const{lineCounter:n,prettyErrors:i}=Qb(t),o=new Xb(n?.addNewLine),a=new Kb(t);let u=null;for(const l of a.compose(o.parse(e),!0,e.length))if(!u)u=l;else if(u.options.logLevel!=="silent"){u.errors.push(new eo(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(Xd(e,n)),u.warnings.forEach(Xd(e,n))),u}function fp(e,t,n){let i;const o=Zb(e,n);if(!o)return null;if(o.warnings.forEach(a=>kd(o.options.logLevel,a)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:i},n))}function hp(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return Ks(e)&&!i?e.toString(n):new Zs(e,i,n).toString(n)}const ev={BorderRadiusContainer:Ye.div`
379
+ `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=xa(t),i=as(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=xa(t),i=as(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Wb(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Vb||null,prettyErrors:t}}function Hb(e,t={}){const{lineCounter:n,prettyErrors:i}=Wb(t),o=new qb(n?.addNewLine),a=new Nb(t);let u=null;for(const l of a.compose(o.parse(e),!0,e.length))if(!u)u=l;else if(u.options.logLevel!=="silent"){u.errors.push(new Zs(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(Yd(e,n)),u.warnings.forEach(Yd(e,n))),u}function lp(e,t,n){let i;const o=Hb(e,n);if(!o)return null;if(o.warnings.forEach(a=>_d(o.options.logLevel,a)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:i},n))}function fp(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return Ws(e)&&!i?e.toString(n):new Qs(e,i,n).toString(n)}const Kb={BorderRadiusContainer:Je.div`
380
380
  height: 100%;
381
381
 
382
382
  .monaco-editor,
383
383
  .overflow-guard {
384
384
  border-radius: 8px;
385
385
  }
386
- `},tv=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Z.useState("");return Z.useEffect(()=>{o(hp(t))},[t]),A.jsx(ev.BorderRadiusContainer,{children:A.jsx(yc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(fp(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},nv=Ye.div`
386
+ `},zb=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Z.useState("");return Z.useEffect(()=>{o(fp(t))},[t]),S.jsx(Kb.BorderRadiusContainer,{children:S.jsx(gc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(lp(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},Gb=Je.div`
387
387
  height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
388
388
 
389
389
  .monaco-editor,
390
390
  .overflow-guard {
391
391
  border-radius: 8px;
392
392
  }
393
- `,rv=Ye.div`
393
+ `,Jb=Je.div`
394
394
  margin-top: 10px;
395
395
  display: flex;
396
396
  align-items: center;
397
397
  background-color: ${({$bgColor:e,$designNewLayout:t})=>t?e:"initial"};
398
398
  border-radius: 8px;
399
399
  padding: 4px;
400
- `,dp={BorderRadiusContainer:nv,ControlsRowContainer:rv},iv=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f,designNewLayout:h,designNewLayoutHeight:g})=>{const{token:p}=q.theme.useToken(),v=lr.useNavigate(),[C,S]=Z.useState(""),[E,b]=Z.useState(!1),[B,N]=Z.useState();Z.useEffect(()=>{S(hp(n))},[n]);const _=()=>{b(!0),N(void 0);const k=fp(C),{namespace:F}=k.metadata,{name:P}=k.metadata,I=k,W=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${F}`:""}/${l}/${o?"":P}`;o?Zo({endpoint:W,body:I}).then(J=>{console.log(J),f&&v(f)}).catch(J=>{console.log("Form submit error",J),b(!1),N(J)}):ea({endpoint:W,body:I}).then(J=>{console.log(J),f&&v(f)}).catch(J=>{console.log("Form submit error",J),b(!1),N(J)})};return A.jsxs(A.Fragment,{children:[B&&A.jsx(q.Alert,{message:`An error has occurred: ${B?.response?.data?.message} `,type:"error"}),A.jsx(dp.BorderRadiusContainer,{$designNewLayoutHeight:g,children:A.jsx(yc,{defaultLanguage:"yaml",width:"100%",height:g||"75vh",value:C,onChange:k=>{S(k||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),A.jsx(dp.ControlsRowContainer,{$bgColor:p.colorPrimaryBg,$designNewLayout:h,children:A.jsxs(q.Flex,{gap:h?10:16,align:"center",children:[A.jsx(q.Button,{type:"primary",onClick:_,loading:E,children:"Submit"}),f&&A.jsx(q.Button,{onClick:()=>v(f),children:"Cancel"})]})})]})},Ft=e=>{if(typeof e=="string")return e;if(Array.isArray(e)){const t=e.slice(-1)[0];return typeof t=="string"?t:String(t)}return String(e)},pp=Z.createContext(void 0),sv=({value:e,children:t})=>A.jsx(pp.Provider,{value:e,children:t}),nr=()=>Z.useContext(pp),ov=Ye.div`
400
+ `,hp={BorderRadiusContainer:Gb,ControlsRowContainer:Jb},Yb=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f,designNewLayout:d,designNewLayoutHeight:g})=>{const{token:p}=q.theme.useToken(),v=lr.useNavigate(),[C,A]=Z.useState(""),[E,b]=Z.useState(!1),[B,N]=Z.useState();Z.useEffect(()=>{A(fp(n))},[n]);const _=()=>{b(!0),N(void 0);const k=lp(C),{namespace:F}=k.metadata,{name:R}=k.metadata,O=k,W=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${F}`:""}/${l}/${o?"":R}`;o?Qo({endpoint:W,body:O}).then(J=>{console.log(J),f&&v(f)}).catch(J=>{console.log("Form submit error",J),b(!1),N(J)}):Zo({endpoint:W,body:O}).then(J=>{console.log(J),f&&v(f)}).catch(J=>{console.log("Form submit error",J),b(!1),N(J)})};return S.jsxs(S.Fragment,{children:[B&&S.jsx(q.Alert,{message:`An error has occurred: ${B?.response?.data?.message} `,type:"error"}),S.jsx(hp.BorderRadiusContainer,{$designNewLayoutHeight:g,children:S.jsx(gc,{defaultLanguage:"yaml",width:"100%",height:g||"75vh",value:C,onChange:k=>{A(k||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),S.jsx(hp.ControlsRowContainer,{$bgColor:p.colorPrimaryBg,$designNewLayout:d,children:S.jsxs(q.Flex,{gap:d?10:16,align:"center",children:[S.jsx(q.Button,{type:"primary",onClick:_,loading:E,children:"Submit"}),f&&S.jsx(q.Button,{onClick:()=>v(f),children:"Cancel"})]})})]})},Ot=e=>{if(typeof e=="string")return e;if(Array.isArray(e)){const t=e.slice(-1)[0];return typeof t=="string"?t:String(t)}return String(e)},dp=Z.createContext(void 0),Xb=({value:e,children:t})=>S.jsx(dp.Provider,{value:e,children:t}),nr=()=>Z.useContext(dp),Qb=Je.div`
401
401
  display: flex;
402
402
  flex-direction: column;
403
403
  gap: ${({$designNewLayout:e})=>e?"4px":"8px"};
@@ -411,50 +411,50 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
411
411
  0 6px 16px 0 #00000014,
412
412
  0 3px 6px -4px #0000001f,
413
413
  0 9px 28px 8px #0000000d`:"initial"};
414
- `,av=Ye.div`
414
+ `,Zb=Je.div`
415
415
  display: flex;
416
416
  align-items: center;
417
417
  justify-content: flex-start;
418
418
  gap: 4px;
419
419
  cursor: pointer;
420
- `,uv=Ye.div`
420
+ `,ev=Je.div`
421
421
  display: ${({$isOpen:e})=>e?"block":"none"};
422
422
  padding: ${({$designNewLayout:e})=>e?"0 0 0 6px":"4px"};
423
- `,Wc={Container:ov,TitleBar:av,Content:uv},cv=({title:e,formName:t,expandedControls:n,persistedCheckbox:i,isAdditionalProperties:o,removeField:a,onRemoveByMinus:u,children:l})=>{const{token:f}=q.theme.useToken(),h=n.expandedKeys.some(v=>JSON.stringify(v)===JSON.stringify(t)),g=nr(),p=()=>{h?n.onExpandClose(t):n.onExpandOpen(t)};return A.jsxs(Wc.Container,{$designNewLayout:g,$borderColor:f.colorBorder,$bgColor:f.colorBgContainer,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsxs(Wc.TitleBar,{onClick:()=>p(),children:[!g&&A.jsx("div",{children:h?A.jsx(wn.CaretDownOutlined,{size:14}):A.jsx(wn.CaretRightOutlined,{size:14})}),A.jsx("div",{children:e}),g&&A.jsx("div",{children:h?A.jsx(Fh,{}):A.jsx(Ih,{})})]}),A.jsxs(q.Flex,{gap:4,children:[o&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>a(),children:A.jsx(sn,{})}),u&&A.jsx(q.Button,{size:"small",type:"text",onClick:u,children:A.jsx(sn,{})}),i]})]}),A.jsx(Wc.Content,{$isOpen:h,$designNewLayout:g,children:l})]})},rr=Ye.div`
423
+ `,qc={Container:Qb,TitleBar:Zb,Content:ev},tv=({title:e,formName:t,expandedControls:n,persistedCheckbox:i,isAdditionalProperties:o,removeField:a,onRemoveByMinus:u,children:l})=>{const{token:f}=q.theme.useToken(),d=n.expandedKeys.some(v=>JSON.stringify(v)===JSON.stringify(t)),g=nr(),p=()=>{d?n.onExpandClose(t):n.onExpandOpen(t)};return S.jsxs(qc.Container,{$designNewLayout:g,$borderColor:f.colorBorder,$bgColor:f.colorBgContainer,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsxs(qc.TitleBar,{onClick:()=>p(),children:[!g&&S.jsx("div",{children:d?S.jsx(wn.CaretDownOutlined,{size:14}):S.jsx(wn.CaretRightOutlined,{size:14})}),S.jsx("div",{children:e}),g&&S.jsx("div",{children:d?S.jsx(Ih,{}):S.jsx(Th,{})})]}),S.jsxs(q.Flex,{gap:4,children:[o&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>a(),children:S.jsx(sn,{})}),u&&S.jsx(q.Button,{size:"small",type:"text",onClick:u,children:S.jsx(sn,{})}),i]})]}),S.jsx(qc.Content,{$isOpen:d,$designNewLayout:g,children:l})]})},rr=Je.div`
424
424
  display: ${({$isHidden:e})=>e?"none":"block"};
425
- `,Ai=({formName:e,persistedControls:t,type:n})=>{const i=t.persistedKeys.some(a=>JSON.stringify(a)===JSON.stringify(e)),o=()=>{i?t.onPersistUnmark(e):t.onPersistMark(e,n)};return A.jsx(rr,{$isHidden:t.isPersistedKeysShown===!1,children:A.jsx(q.Button,{size:"small",type:"text",onClick:o,children:i?A.jsx(Ph,{}):A.jsx(Rh,{})})})},Tr=Ye(q.Form.Item)`
425
+ `,Si=({formName:e,persistedControls:t,type:n})=>{const i=t.persistedKeys.some(a=>JSON.stringify(a)===JSON.stringify(e)),o=()=>{i?t.onPersistUnmark(e):t.onPersistMark(e,n)};return S.jsx(rr,{$isHidden:t.isPersistedKeysShown===!1,children:S.jsx(q.Button,{size:"small",type:"text",onClick:o,children:i?S.jsx(Bh,{}):S.jsx(Dh,{})})})},Tr=Je(q.Form.Item)`
426
426
  margin-bottom: 8px;
427
- `,Or=Ye.div`
427
+ `,Ir=Je.div`
428
428
  font-size: ${({$designNewLayout:e})=>e?"16px":"14px"};
429
429
  line-height: ${({$designNewLayout:e})=>e?"24px":"22px"};
430
- `,lv={Content:Ye.div`
430
+ `,nv={Content:Je.div`
431
431
  padding: ${({$designNewLayout:e})=>e?"0 0 0 6px":"4px"};
432
- `},fv=({children:e})=>{const t=nr();return A.jsx(lv.Content,{$designNewLayout:t,children:e})},hv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:C})=>{const S=nr(),{clusterName:E,namespace:b,syntheticProject:B,entryName:N}=v,_=q.Form.useFormInstance(),k=q.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,_),F=Ct({template:p.valueUri,replaceValues:{clusterName:E,namespace:b,syntheticProject:B,entryName:N}}),{data:P,isError:I,isLoading:W}=tn({uri:F,refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F});if(W)return A.jsx("div",{children:"Loading"});if(I)return A.jsx("div",{children:"Error"});const J=yt.get(P,["items"]),ce=p.criteria?J.filter(Se=>{const Ee=yt.get(Se,p.criteria?.keysToValue||[]);return p.criteria?.type==="equals"?Ee===p.criteria?.value:Ee!==p.criteria?.value}):J,le=p.criteria?.keepPrefilled!==!1?J.find(Se=>yt.get(Se,p.keysToValue)===k):void 0,ge=le?[le,...ce]:ce,Ce=(Array.isArray(ge)?ge.map(Se=>({value:yt.get(Se,p.keysToValue),label:p.keysToLabel?yt.get(Se,p.keysToLabel):yt.get(Se,p.keysToValue)})).map(({value:Se,label:Ee})=>({label:typeof Ee=="string"?Ee:JSON.stringify(Ee),value:typeof Se=="string"?Se:JSON.stringify(Se)})):[]).reduce((Se,Ee)=>(Se.some(Ae=>Ae.value===Ee.value)||Se.push(Ee),Se),[]),pe=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,Re=A.jsxs(A.Fragment,{children:[Ft(e),o?.includes(Ft(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(rr,{$isHidden:u,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Or,{$designNewLayout:S,children:l?A.jsx(q.Tooltip,{title:l,children:Re}):Re}),A.jsxs(q.Flex,{gap:4,children:[f&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>h({path:e}),children:A.jsx(sn,{})}),C&&A.jsx(q.Button,{size:"small",type:"text",onClick:C,children:A.jsx(sn,{})}),A.jsx(Ai,{formName:i||e,persistedControls:g,type:"arr"})]})]}),A.jsx(Tr,{name:n||pe,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:S?{icons:qr}:!0,children:A.jsx(q.Select,{mode:p.mode,placeholder:"Select",options:Ce,filterOption:ac,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},mr=({valueObj:e,keysToValue:t,logic:n})=>{const i=yt.get(e,t);return n==="cpuLike"?uc(i):cc(i)},gp=({value:e})=>Number(e.toFixed(1)),yp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},mp=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},dv=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:h,maxAddSecondValueObj:g,logic:p})=>{let v=0,C=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const S=mr({valueObj:t,keysToValue:e.min.keysToValue,logic:p});v=gp({value:S})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const S=mr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:p}),E=mr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:p});v=yp({valueFirst:S,valueSecond:E})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const S=mr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:p}),E=mr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:p});v=mp({valueFirst:S,valueSecond:E})}if(e.min.type==="number"&&(v=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const S=mr({valueObj:u,keysToValue:e.max.keysToValue,logic:p});C=gp({value:S})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const S=mr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:p}),E=mr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:p});C=yp({valueFirst:S,valueSecond:E})}if(e.max.type==="addResourceValues"&&typeof h=="object"&&h!==null&&typeof g=="object"&&g!==null){const S=mr({valueObj:h,keysToValue:e.max.firstValuesKeysToValue,logic:p}),E=mr({valueObj:g,keysToValue:e.max.secondValuesKeysToValue,logic:p});C=mp({valueFirst:S,valueSecond:E})}return e.max.type==="number"&&(C=e.max.value),{minValue:v,maxValue:C}},pv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,persistedControls:l,description:f,onRemoveByMinus:h,initialValue:g,max:p,min:v,step:C=1,...S})=>{const E=nr(),[b,B]=Z.useState(g||v);Z.useEffect(()=>{(Number.isNaN(b)||b<v)&&B(v),b>p&&B(p),B(b)},[b,v,p]);const N=A.jsxs(A.Fragment,{children:[Ft(e),o?.includes(Ft(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(rr,{$isHidden:u,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Or,{$designNewLayout:E,children:f?A.jsx(q.Tooltip,{title:f,children:N}):N}),A.jsxs(q.Flex,{gap:4,children:[h&&A.jsx(q.Button,{size:"small",type:"text",onClick:h,children:A.jsx(sn,{})}),A.jsx(Ai,{formName:i||e,persistedControls:l,type:"number"})]})]}),A.jsxs(q.Row,{children:[A.jsxs(q.Col,{span:12,children:[A.jsx(Tr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:E?{icons:qr}:!0,children:A.jsx(q.Slider,{min:v,max:p,step:C,...S})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),A.jsx(q.Typography.Text,{children:A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx("span",{children:v}),A.jsx("span",{children:p})]})})]}),A.jsx(q.Col,{span:4,children:A.jsx(Tr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:E?{icons:qr}:!0,children:A.jsx(q.InputNumber,{min:v,max:p,step:C,value:b,disabled:S.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},gv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:h,customProps:g,urlParams:p,onRemoveByMinus:v})=>{const{clusterName:C,namespace:S,syntheticProject:E,entryName:b}=p,B=f?g.edit:g.add,N=B.min.type==="resourceValue"?Ct({template:B.min.valueUri,replaceValues:{clusterName:C,namespace:S,syntheticProject:E,entryName:b}}):void 0,_=B.min.type==="substractResourceValues"?Ct({template:B.min.firstValueUri,replaceValues:{clusterName:C,namespace:S,syntheticProject:E,entryName:b}}):void 0,k=B.min.type==="substractResourceValues"?Ct({template:B.min.secondValueUri,replaceValues:{clusterName:C,namespace:S,syntheticProject:E,entryName:b}}):void 0,F=B.min.type==="addResourceValues"?Ct({template:B.min.firstValueUri,replaceValues:{clusterName:C,namespace:S,syntheticProject:E,entryName:b}}):void 0,P=B.min.type==="addResourceValues"?Ct({template:B.min.secondValueUri,replaceValues:{clusterName:C,namespace:S,syntheticProject:E,entryName:b}}):void 0,I=B.max.type==="resourceValue"?Ct({template:B.max.valueUri,replaceValues:{clusterName:C,namespace:S,syntheticProject:E,entryName:b}}):void 0,W=B.max.type==="substractResourceValues"?Ct({template:B.max.firstValueUri,replaceValues:{clusterName:C,namespace:S,syntheticProject:E,entryName:b}}):void 0,J=B.max.type==="substractResourceValues"?Ct({template:B.max.secondValueUri,replaceValues:{clusterName:C,namespace:S,syntheticProject:E,entryName:b}}):void 0,ce=B.max.type==="addResourceValues"?Ct({template:B.max.firstValueUri,replaceValues:{clusterName:C,namespace:S,syntheticProject:E,entryName:b}}):void 0,le=B.max.type==="addResourceValues"?Ct({template:B.max.secondValueUri,replaceValues:{clusterName:C,namespace:S,syntheticProject:E,entryName:b}}):void 0,{data:ge,isError:ye,isLoading:Ce}=tn({uri:N||"",refetchInterval:!1,queryKey:[N||"",JSON.stringify(e)],isEnabled:!!N}),{data:pe,isError:Re,isLoading:Se}=tn({uri:_||"",refetchInterval:!1,queryKey:[_||"",JSON.stringify(e)],isEnabled:!!_}),{data:Ee,isError:He,isLoading:Ae}=tn({uri:k||"",refetchInterval:!1,queryKey:[k||"",JSON.stringify(e)],isEnabled:!!k}),{data:me,isError:Me,isLoading:Y}=tn({uri:F||"",refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F}),{data:Q,isError:ae,isLoading:Be}=tn({uri:P||"",refetchInterval:!1,queryKey:[P||"",JSON.stringify(e)],isEnabled:!!P}),{data:We,isError:_e,isLoading:De}=tn({uri:I||"",refetchInterval:!1,queryKey:[I||"",JSON.stringify(e)],isEnabled:!!I}),{data:Oe,isError:Le,isLoading:Tt}=tn({uri:W||"",refetchInterval:!1,queryKey:[W||"",JSON.stringify(e)],isEnabled:!!W}),{data:nn,isError:Lt,isLoading:Nt}=tn({uri:J||"",refetchInterval:!1,queryKey:[J||"",JSON.stringify(e)],isEnabled:!!J}),{data:jt,isError:bt,isLoading:kn}=tn({uri:ce||"",refetchInterval:!1,queryKey:[ce||"",JSON.stringify(e)],isEnabled:!!ce}),{data:An,isError:ke,isLoading:Pe}=tn({uri:le||"",refetchInterval:!1,queryKey:[le||"",JSON.stringify(e)],isEnabled:!!le}),{minValue:he,maxValue:At}=dv({minMaxAndStep:B,minValueObj:ge,minSubstractFirstValueObj:pe,minSubstractSecondValueObj:Ee,minAddFirstValueObj:me,minAddSecondValueObj:Q,maxValueObj:We,maxSubstractFirstValueObj:Oe,maxSubstractSecondValueObj:nn,maxAddFirstValueObj:jt,maxAddSecondValueObj:An,logic:g.logic}),St=f?g.edit.step:g.add.step;return B.min.type==="resourceValue"&&Ce||B.min.type==="substractResourceValues"&&(Se||Ae)||B.min.type==="addResourceValues"&&(Y||Be)||B.max.type==="resourceValue"&&De||B.max.type==="substractResourceValues"&&(Tt||Nt)||B.max.type==="addResourceValues"&&(kn||Pe)?A.jsx("div",{children:"Loading"}):B.min.type==="resourceValue"&&ye||B.min.type==="substractResourceValues"&&(Re||He)||B.min.type==="addResourceValues"&&(Me||ae)||B.max.type==="resourceValue"&&_e||B.max.type==="substractResourceValues"&&(Le||Lt)||B.max.type==="addResourceValues"&&(bt||ke)?A.jsx("div",{children:"Error"}):A.jsx(pv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,min:he,max:At,step:St,persistedControls:h,onRemoveByMinus:v})},yv=({name:e,isHidden:t,namespaceData:n,isAdditionalProperties:i,removeField:o})=>{const a=nr();return n?A.jsxs(rr,{$isHidden:t,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsxs(Or,{$designNewLayout:a,children:["namespace",A.jsx(q.Typography.Text,{type:"danger",children:"*"})]}),A.jsx(q.Flex,{gap:4,children:i&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>o({path:e}),children:A.jsx(sn,{})})})]}),A.jsx(Tr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:a?{icons:qr}:!0,children:A.jsx(q.Select,{placeholder:"Select namespace",options:n.selectValues,filterOption:n.filterSelectOptions,allowClear:!0,disabled:n.disabled,showSearch:!0})})]}):null},mv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:g,onRemoveByMinus:p})=>{const v=nr(),C=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,S=A.jsxs(A.Fragment,{children:[Ft(e),o?.includes(Ft(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(rr,{$isHidden:u,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Or,{$designNewLayout:v,children:l?A.jsx(q.Tooltip,{title:l,children:S}):S}),A.jsxs(q.Flex,{gap:4,children:[f&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>h({path:e}),children:A.jsx(sn,{})}),p&&A.jsx(q.Button,{size:"small",type:"text",onClick:p,children:A.jsx(sn,{})}),A.jsx(Ai,{formName:i||e,persistedControls:g,type:"str"})]})]}),A.jsx(Tr,{name:n||C,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:v?{icons:qr}:!0,children:A.jsx(q.Input,{placeholder:Ft(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},wv=Ye.div`
432
+ `},rv=({children:e})=>{const t=nr();return S.jsx(nv.Content,{$designNewLayout:t,children:e})},iv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:C})=>{const A=nr(),{clusterName:E,namespace:b,syntheticProject:B,entryName:N}=v,_=q.Form.useFormInstance(),k=q.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,_),F=Et({template:p.valueUri,replaceValues:{clusterName:E,namespace:b,syntheticProject:B,entryName:N}}),{data:R,isError:O,isLoading:W}=tn({uri:F,refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F});if(W)return S.jsx("div",{children:"Loading"});if(O)return S.jsx("div",{children:"Error"});const J=Ut.get(R,["items"]),le=p.criteria?J.filter(ke=>{const xe=Ut.get(ke,p.criteria?.keysToValue||[]);return p.criteria?.type==="equals"?xe===p.criteria?.value:xe!==p.criteria?.value}):J,ce=p.criteria?.keepPrefilled!==!1?J.find(ke=>Ut.get(ke,p.keysToValue)===k):void 0,ge=ce?[ce,...le]:le,he=(Array.isArray(ge)?ge.map(ke=>({value:Ut.get(ke,p.keysToValue),label:p.keysToLabel?Ut.get(ke,p.keysToLabel):Ut.get(ke,p.keysToValue)})).map(({value:ke,label:xe})=>({label:typeof xe=="string"?xe:JSON.stringify(xe),value:typeof ke=="string"?ke:JSON.stringify(ke)})):[]).reduce((ke,xe)=>(ke.some(Ae=>Ae.value===xe.value)||ke.push(xe),ke),[]),me=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,Le=S.jsxs(S.Fragment,{children:[Ot(e),o?.includes(Ot(e))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(rr,{$isHidden:u,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:A,children:l?S.jsx(q.Tooltip,{title:l,children:Le}):Le}),S.jsxs(q.Flex,{gap:4,children:[f&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>d({path:e}),children:S.jsx(sn,{})}),C&&S.jsx(q.Button,{size:"small",type:"text",onClick:C,children:S.jsx(sn,{})}),S.jsx(Si,{formName:i||e,persistedControls:g,type:"arr"})]})]}),S.jsx(Tr,{name:n||me,rules:[{required:a===!1&&o?.includes(Ot(e))}],validateTrigger:"onBlur",hasFeedback:A?{icons:qr}:!0,children:S.jsx(q.Select,{mode:p.mode,placeholder:"Select",options:he,filterOption:sc,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},mr=({valueObj:e,keysToValue:t,logic:n})=>{const i=Ut.get(e,t);return n==="cpuLike"?ac(i):uc(i)},pp=({value:e})=>Number(e.toFixed(1)),gp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},yp=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},sv=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:d,maxAddSecondValueObj:g,logic:p})=>{let v=0,C=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const A=mr({valueObj:t,keysToValue:e.min.keysToValue,logic:p});v=pp({value:A})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const A=mr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:p}),E=mr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:p});v=gp({valueFirst:A,valueSecond:E})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const A=mr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:p}),E=mr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:p});v=yp({valueFirst:A,valueSecond:E})}if(e.min.type==="number"&&(v=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const A=mr({valueObj:u,keysToValue:e.max.keysToValue,logic:p});C=pp({value:A})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const A=mr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:p}),E=mr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:p});C=gp({valueFirst:A,valueSecond:E})}if(e.max.type==="addResourceValues"&&typeof d=="object"&&d!==null&&typeof g=="object"&&g!==null){const A=mr({valueObj:d,keysToValue:e.max.firstValuesKeysToValue,logic:p}),E=mr({valueObj:g,keysToValue:e.max.secondValuesKeysToValue,logic:p});C=yp({valueFirst:A,valueSecond:E})}return e.max.type==="number"&&(C=e.max.value),{minValue:v,maxValue:C}},ov=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,persistedControls:l,description:f,onRemoveByMinus:d,initialValue:g,max:p,min:v,step:C=1,...A})=>{const E=nr(),[b,B]=Z.useState(g||v);Z.useEffect(()=>{(Number.isNaN(b)||b<v)&&B(v),b>p&&B(p),B(b)},[b,v,p]);const N=S.jsxs(S.Fragment,{children:[Ot(e),o?.includes(Ot(e))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(rr,{$isHidden:u,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:E,children:f?S.jsx(q.Tooltip,{title:f,children:N}):N}),S.jsxs(q.Flex,{gap:4,children:[d&&S.jsx(q.Button,{size:"small",type:"text",onClick:d,children:S.jsx(sn,{})}),S.jsx(Si,{formName:i||e,persistedControls:l,type:"number"})]})]}),S.jsxs(q.Row,{children:[S.jsxs(q.Col,{span:12,children:[S.jsx(Tr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ot(e))}],validateTrigger:"onBlur",hasFeedback:E?{icons:qr}:!0,children:S.jsx(q.Slider,{min:v,max:p,step:C,...A})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),S.jsx(q.Typography.Text,{children:S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx("span",{children:v}),S.jsx("span",{children:p})]})})]}),S.jsx(q.Col,{span:4,children:S.jsx(Tr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ot(e))}],validateTrigger:"onBlur",hasFeedback:E?{icons:qr}:!0,children:S.jsx(q.InputNumber,{min:v,max:p,step:C,value:b,disabled:A.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},av=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p,onRemoveByMinus:v})=>{const{clusterName:C,namespace:A,syntheticProject:E,entryName:b}=p,B=f?g.edit:g.add,N=B.min.type==="resourceValue"?Et({template:B.min.valueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,_=B.min.type==="substractResourceValues"?Et({template:B.min.firstValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,k=B.min.type==="substractResourceValues"?Et({template:B.min.secondValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,F=B.min.type==="addResourceValues"?Et({template:B.min.firstValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,R=B.min.type==="addResourceValues"?Et({template:B.min.secondValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,O=B.max.type==="resourceValue"?Et({template:B.max.valueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,W=B.max.type==="substractResourceValues"?Et({template:B.max.firstValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,J=B.max.type==="substractResourceValues"?Et({template:B.max.secondValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,le=B.max.type==="addResourceValues"?Et({template:B.max.firstValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,ce=B.max.type==="addResourceValues"?Et({template:B.max.secondValueUri,replaceValues:{clusterName:C,namespace:A,syntheticProject:E,entryName:b}}):void 0,{data:ge,isError:ye,isLoading:he}=tn({uri:N||"",refetchInterval:!1,queryKey:[N||"",JSON.stringify(e)],isEnabled:!!N}),{data:me,isError:Le,isLoading:ke}=tn({uri:_||"",refetchInterval:!1,queryKey:[_||"",JSON.stringify(e)],isEnabled:!!_}),{data:xe,isError:tt,isLoading:Ae}=tn({uri:k||"",refetchInterval:!1,queryKey:[k||"",JSON.stringify(e)],isEnabled:!!k}),{data:Se,isError:We,isLoading:Y}=tn({uri:F||"",refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F}),{data:Q,isError:ue,isLoading:De}=tn({uri:R||"",refetchInterval:!1,queryKey:[R||"",JSON.stringify(e)],isEnabled:!!R}),{data:Ye,isError:Te,isLoading:Re}=tn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:Oe,isError:Ne,isLoading:kt}=tn({uri:W||"",refetchInterval:!1,queryKey:[W||"",JSON.stringify(e)],isEnabled:!!W}),{data:nn,isError:Lt,isLoading:Pt}=tn({uri:J||"",refetchInterval:!1,queryKey:[J||"",JSON.stringify(e)],isEnabled:!!J}),{data:Nt,isError:wt,isLoading:kn}=tn({uri:le||"",refetchInterval:!1,queryKey:[le||"",JSON.stringify(e)],isEnabled:!!le}),{data:Sn,isError:Ce,isLoading:Be}=tn({uri:ce||"",refetchInterval:!1,queryKey:[ce||"",JSON.stringify(e)],isEnabled:!!ce}),{minValue:pe,maxValue:At}=sv({minMaxAndStep:B,minValueObj:ge,minSubstractFirstValueObj:me,minSubstractSecondValueObj:xe,minAddFirstValueObj:Se,minAddSecondValueObj:Q,maxValueObj:Ye,maxSubstractFirstValueObj:Oe,maxSubstractSecondValueObj:nn,maxAddFirstValueObj:Nt,maxAddSecondValueObj:Sn,logic:g.logic}),xt=f?g.edit.step:g.add.step;return B.min.type==="resourceValue"&&he||B.min.type==="substractResourceValues"&&(ke||Ae)||B.min.type==="addResourceValues"&&(Y||De)||B.max.type==="resourceValue"&&Re||B.max.type==="substractResourceValues"&&(kt||Pt)||B.max.type==="addResourceValues"&&(kn||Be)?S.jsx("div",{children:"Loading"}):B.min.type==="resourceValue"&&ye||B.min.type==="substractResourceValues"&&(Le||tt)||B.min.type==="addResourceValues"&&(We||ue)||B.max.type==="resourceValue"&&Te||B.max.type==="substractResourceValues"&&(Ne||Lt)||B.max.type==="addResourceValues"&&(wt||Ce)?S.jsx("div",{children:"Error"}):S.jsx(ov,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,min:pe,max:At,step:xt,persistedControls:d,onRemoveByMinus:v})},uv=({name:e,isHidden:t,namespaceData:n,isAdditionalProperties:i,removeField:o})=>{const a=nr();return n?S.jsxs(rr,{$isHidden:t,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsxs(Ir,{$designNewLayout:a,children:["namespace",S.jsx(q.Typography.Text,{type:"danger",children:"*"})]}),S.jsx(q.Flex,{gap:4,children:i&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>o({path:e}),children:S.jsx(sn,{})})})]}),S.jsx(Tr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:a?{icons:qr}:!0,children:S.jsx(q.Select,{placeholder:"Select namespace",options:n.selectValues,filterOption:n.filterSelectOptions,allowClear:!0,disabled:n.disabled,showSearch:!0})})]}):null},cv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,onRemoveByMinus:p})=>{const v=nr(),C=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,A=S.jsxs(S.Fragment,{children:[Ot(e),o?.includes(Ot(e))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(rr,{$isHidden:u,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:v,children:l?S.jsx(q.Tooltip,{title:l,children:A}):A}),S.jsxs(q.Flex,{gap:4,children:[f&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>d({path:e}),children:S.jsx(sn,{})}),p&&S.jsx(q.Button,{size:"small",type:"text",onClick:p,children:S.jsx(sn,{})}),S.jsx(Si,{formName:i||e,persistedControls:g,type:"str"})]})]}),S.jsx(Tr,{name:n||C,rules:[{required:a===!1&&o?.includes(Ot(e))}],validateTrigger:"onBlur",hasFeedback:v?{icons:qr}:!0,children:S.jsx(q.Input,{placeholder:Ot(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},lv=Je.div`
433
433
  display: flex;
434
- `,bv=Ye.div`
434
+ `,fv=Je.div`
435
435
  margin-left: 4px;
436
436
  cursor: pointer;
437
437
  padding-top: 11px;
438
- `,wp={SwitchAndCrossContainer:wv,CrossContainer:bv},vv=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f})=>{const h=nr(),g=A.jsx(A.Fragment,{children:Ft(e)});return A.jsxs(rr,{$isHidden:i,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Or,{$designNewLayout:h,children:o?A.jsx(q.Tooltip,{title:o,children:g}):g}),A.jsxs(q.Flex,{gap:4,children:[u&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>l({path:e}),children:A.jsx(sn,{})}),f&&A.jsx(q.Button,{size:"small",type:"text",onClick:f,children:A.jsx(sn,{})})]})]}),A.jsxs(wp.SwitchAndCrossContainer,{children:[A.jsx(Tr,{name:n||e,children:A.jsx(q.Switch,{size:"small"})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),A.jsx(wp.CrossContainer,{onClick:()=>{a&&a(e)},children:A.jsx(Bh,{})})]})]})},Av=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:h,options:g,persistedControls:p,onRemoveByMinus:v})=>{const C=nr(),S=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,E=A.jsxs(A.Fragment,{children:[Ft(e),o?.includes(Ft(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(rr,{$isHidden:u,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Or,{$designNewLayout:C,children:l?A.jsx(q.Tooltip,{title:l,children:E}):E}),A.jsxs(q.Flex,{gap:4,children:[f&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>h({path:e}),children:A.jsx(sn,{})}),v&&A.jsx(q.Button,{size:"small",type:"text",onClick:v,children:A.jsx(sn,{})}),A.jsx(Ai,{formName:i||e,persistedControls:p,type:"str"})]})]}),A.jsx(Tr,{name:n||S,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:C?{icons:qr}:!0,children:A.jsx(q.Select,{options:g.map(b=>({value:b,label:b})),placeholder:Ft(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},Sv=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:h,removeField:g,persistedControls:p,onRemoveByMinus:v})=>{const C=nr(),S=A.jsxs(A.Fragment,{children:[Ft(t),a?.includes(Ft(t))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(rr,{$isHidden:l,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Or,{$designNewLayout:C,children:f?A.jsx(q.Tooltip,{title:f,children:S}):S}),A.jsxs(q.Flex,{gap:4,children:[h&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>g({path:t}),children:A.jsx(sn,{})}),v&&A.jsx(q.Button,{size:"small",type:"text",onClick:v,children:A.jsx(sn,{})}),A.jsx(Ai,{formName:o||t,persistedControls:p,type:"number"})]})]}),A.jsx(Tr,{name:i||t,rules:[{required:u===!1&&a?.includes(Ft(t))}],validateTrigger:"onBlur",hasFeedback:C?{icons:qr}:!0,children:A.jsx(q.InputNumber,{placeholder:Ft(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]})},bp=({name:e,persistName:t,selfRequired:n,isHidden:i,description:o,isAdditionalProperties:a,removeField:u,expandedControls:l,persistedControls:f,collapseTitle:h,collapseFormName:g,data:p,inputProps:v,onRemoveByMinus:C})=>{const S=nr(),[E,b]=Z.useState(),B=()=>{if(E&&E.length>0){const _=v?.additionalProperties;v?.addField({path:Array.isArray(e)?[...e,String(h)]:[e,String(h)],name:E,type:_.type,items:_.items,nestedProperties:_.properties||{},required:_.required}),b(void 0)}},N=A.jsxs(A.Fragment,{children:[Ft(h),n&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsx(rr,{$isHidden:i,children:A.jsxs(cv,{title:A.jsx(Or,{$designNewLayout:S,children:o?A.jsx(q.Tooltip,{title:o,children:N}):N}),formName:g,expandedControls:l,isAdditionalProperties:a,removeField:()=>u({path:e}),onRemoveByMinus:C,persistedCheckbox:v?void 0:A.jsx(Ai,{formName:t||e,persistedControls:f,type:"obj"}),children:[p,v&&A.jsx(q.Input,{placeholder:"Enter field name",allowClear:!0,value:E,onChange:_=>b(_.target.value),suffix:A.jsx(q.Button,{size:"small",type:"text",onClick:B,children:A.jsx(rc,{})})})]},Array.isArray(e)?e.join("-"):e)})},Ev=({name:e,persistName:t,required:n,description:i,isAdditionalProperties:o,removeField:a,persistedControls:u,onRemoveByMinus:l})=>{const f=nr(),h=A.jsxs(A.Fragment,{children:[Ft(e),n?.includes(Ft(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Or,{$designNewLayout:f,children:i?A.jsx(q.Tooltip,{title:i,children:h}):h}),A.jsxs(q.Flex,{gap:4,children:[o&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>a({path:e}),children:A.jsx(sn,{})}),l&&A.jsx(q.Button,{size:"small",type:"text",onClick:l,children:A.jsx(sn,{})}),A.jsx(Ai,{formName:t||e,persistedControls:u,type:"arr"})]})]})},xv=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(typeof t[n]=="number"&&e[n]!==String(t[n])||e[n]!==t[n])return!1;return!0},wr=(e,t)=>{if(!e)return!1;for(const n of e)if(xv(n,t))return!0;return!1},Cv=Ye.div`
438
+ `,mp={SwitchAndCrossContainer:lv,CrossContainer:fv},hv=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f})=>{const d=nr(),g=S.jsx(S.Fragment,{children:Ot(e)});return S.jsxs(rr,{$isHidden:i,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:d,children:o?S.jsx(q.Tooltip,{title:o,children:g}):g}),S.jsxs(q.Flex,{gap:4,children:[u&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>l({path:e}),children:S.jsx(sn,{})}),f&&S.jsx(q.Button,{size:"small",type:"text",onClick:f,children:S.jsx(sn,{})})]})]}),S.jsxs(mp.SwitchAndCrossContainer,{children:[S.jsx(Tr,{name:n||e,children:S.jsx(q.Switch,{size:"small"})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),S.jsx(mp.CrossContainer,{onClick:()=>{a&&a(e)},children:S.jsx(Oh,{})})]})]})},dv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p,onRemoveByMinus:v})=>{const C=nr(),A=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,E=S.jsxs(S.Fragment,{children:[Ot(e),o?.includes(Ot(e))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(rr,{$isHidden:u,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:C,children:l?S.jsx(q.Tooltip,{title:l,children:E}):E}),S.jsxs(q.Flex,{gap:4,children:[f&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>d({path:e}),children:S.jsx(sn,{})}),v&&S.jsx(q.Button,{size:"small",type:"text",onClick:v,children:S.jsx(sn,{})}),S.jsx(Si,{formName:i||e,persistedControls:p,type:"str"})]})]}),S.jsx(Tr,{name:n||A,rules:[{required:a===!1&&o?.includes(Ot(e))}],validateTrigger:"onBlur",hasFeedback:C?{icons:qr}:!0,children:S.jsx(q.Select,{options:g.map(b=>({value:b,label:b})),placeholder:Ot(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},pv=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v})=>{const C=nr(),A=S.jsxs(S.Fragment,{children:[Ot(t),a?.includes(Ot(t))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(rr,{$isHidden:l,children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:C,children:f?S.jsx(q.Tooltip,{title:f,children:A}):A}),S.jsxs(q.Flex,{gap:4,children:[d&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>g({path:t}),children:S.jsx(sn,{})}),v&&S.jsx(q.Button,{size:"small",type:"text",onClick:v,children:S.jsx(sn,{})}),S.jsx(Si,{formName:o||t,persistedControls:p,type:"number"})]})]}),S.jsx(Tr,{name:i||t,rules:[{required:u===!1&&a?.includes(Ot(t))}],validateTrigger:"onBlur",hasFeedback:C?{icons:qr}:!0,children:S.jsx(q.InputNumber,{placeholder:Ot(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]})},wp=({name:e,persistName:t,selfRequired:n,isHidden:i,description:o,isAdditionalProperties:a,removeField:u,expandedControls:l,persistedControls:f,collapseTitle:d,collapseFormName:g,data:p,inputProps:v,onRemoveByMinus:C})=>{const A=nr(),[E,b]=Z.useState(),B=()=>{if(E&&E.length>0){const _=v?.additionalProperties;v?.addField({path:Array.isArray(e)?[...e,String(d)]:[e,String(d)],name:E,type:_.type,items:_.items,nestedProperties:_.properties||{},required:_.required}),b(void 0)}},N=S.jsxs(S.Fragment,{children:[Ot(d),n&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsx(rr,{$isHidden:i,children:S.jsxs(tv,{title:S.jsx(Ir,{$designNewLayout:A,children:o?S.jsx(q.Tooltip,{title:o,children:N}):N}),formName:g,expandedControls:l,isAdditionalProperties:a,removeField:()=>u({path:e}),onRemoveByMinus:C,persistedCheckbox:v?void 0:S.jsx(Si,{formName:t||e,persistedControls:f,type:"obj"}),children:[p,v&&S.jsx(q.Input,{placeholder:"Enter field name",allowClear:!0,value:E,onChange:_=>b(_.target.value),suffix:S.jsx(q.Button,{size:"small",type:"text",onClick:B,children:S.jsx(tc,{})})})]},Array.isArray(e)?e.join("-"):e)})},gv=({name:e,persistName:t,required:n,description:i,isAdditionalProperties:o,removeField:a,persistedControls:u,onRemoveByMinus:l})=>{const f=nr(),d=S.jsxs(S.Fragment,{children:[Ot(e),n?.includes(Ot(e))&&S.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Ir,{$designNewLayout:f,children:i?S.jsx(q.Tooltip,{title:i,children:d}):d}),S.jsxs(q.Flex,{gap:4,children:[o&&S.jsx(q.Button,{size:"small",type:"text",onClick:()=>a({path:e}),children:S.jsx(sn,{})}),l&&S.jsx(q.Button,{size:"small",type:"text",onClick:l,children:S.jsx(sn,{})}),S.jsx(Si,{formName:t||e,persistedControls:u,type:"arr"})]})]})},yv=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(typeof t[n]=="number"&&e[n]!==String(t[n])||e[n]!==t[n])return!1;return!0},wr=(e,t)=>{if(!e)return!1;for(const n of e)if(yv(n,t))return!0;return!1},mv=Je.div`
439
439
  display: grid;
440
440
  grid-template-columns: repeat(2, 1fr);
441
441
  gap: ${({$designNewLayout:e})=>e?"36px":"8px"};
442
442
  height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
443
- `,_v=Ye.div`
443
+ `,wv=Je.div`
444
444
  overflow-x: auto;
445
445
  scrollbar-width: thin;
446
- `,kv=Ye(q.Form.List)`
446
+ `,bv=Je(q.Form.List)`
447
447
  margin-bottom: 8px;
448
- `,Tv=Ye.div`
448
+ `,vv=Je.div`
449
449
  margin-top: 10px;
450
450
  display: flex;
451
451
  align-items: center;
452
452
  background-color: ${({$bgColor:e,$designNewLayout:t})=>t?e:"initial"};
453
453
  border-radius: 8px;
454
454
  padding: 4px;
455
- `,Ov=Ye.div`
455
+ `,Sv=Je.div`
456
456
  height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
457
- `,io={ResetedFormList:kv,Container:Cv,OverflowContainer:_v,ControlsRowContainer:Tv,DebugContainer:Ov},vp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,namespaceData:f,isAdditionalProperties:h,removeField:g,persistedControls:p,onRemoveByMinus:v})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&f?A.jsx(yv,{name:e,isHidden:u,namespaceData:f,isAdditionalProperties:h,removeField:g}):A.jsx(mv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:h,removeField:g,persistedControls:p,onRemoveByMinus:v}),Iv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:h,options:g,persistedControls:p,onRemoveByMinus:v})=>A.jsx(Av,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:h,options:g,persistedControls:p,onRemoveByMinus:v}),Ap=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:h,removeField:g,persistedControls:p,onRemoveByMinus:v})=>A.jsx(Sv,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:h,removeField:g,persistedControls:p,onRemoveByMinus:v}),Sp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:h,customProps:g,urlParams:p,onRemoveByMinus:v})=>A.jsx(gv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,customProps:g,persistedControls:h,urlParams:p,onRemoveByMinus:v}),Ep=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:C})=>A.jsx(hv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:C}),xp=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f})=>A.jsx(vv,{name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f}),Cp=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,description:h,makeValueUndefined:g,addField:p,isAdditionalProperties:v,removeField:C,isEdit:S,expandedControls:E,persistedControls:b,urlParams:B,onRemoveByMinus:N})=>e.type==="array"?A.jsxs(rr,{$isHidden:f,children:[A.jsx(Ev,{name:t,persistName:a,required:u,description:h,isAdditionalProperties:v,removeField:C,persistedControls:b,onRemoveByMinus:N}),A.jsx(io.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Ft(t))?[{validator:async(_,k)=>{if(!k||k.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(_,{add:k,remove:F},{errors:P})=>A.jsxs(A.Fragment,{children:[_.map(I=>{const W=e.items?.type,J=e.items?.description,ce=e.items;return A.jsxs(fv,{children:[W!=="object"&&A.jsxs(A.Fragment,{children:[W==="string"&&vp({name:Array.isArray(t)?[...t,I.name]:[t,I.name],arrKey:I.key,arrName:[I.name],persistName:a?Array.isArray(a)?[...a,I.name]:[a,I.name]:Array.isArray(t)?[...t,I.name]:[t,I.name],description:J,removeField:C,persistedControls:b,onRemoveByMinus:()=>F(I.name)}),(W==="number"||W==="integer")&&Ap({isNumber:W==="number",name:Array.isArray(t)?[...t,I.name]:[t,I.name],arrKey:I.key,arrName:[I.name],persistName:a?Array.isArray(a)?[...a,I.name]:[a,I.name]:Array.isArray(t)?[...t,I.name]:[t,I.name],description:J,removeField:C,persistedControls:b,onRemoveByMinus:()=>F(I.name)}),(W==="rangeInputCpu"||W==="rangeInputMemory")&&Sp({name:Array.isArray(t)?[...t,I.name]:[t,I.name],arrKey:I.key,arrName:[I.name],persistName:a?Array.isArray(a)?[...a,I.name]:[a,I.name]:Array.isArray(t)?[...t,I.name]:[t,I.name],description:J,isEdit:S,persistedControls:b,customProps:e.items.customProps,urlParams:B,onRemoveByMinus:()=>F(I.name)}),W==="listInput"&&Ep({name:Array.isArray(t)?[...t,I.name]:[t,I.name],arrKey:I.key,arrName:[I.name],persistName:a?Array.isArray(a)?[...a,I.name]:[a,I.name]:Array.isArray(t)?[...t,I.name]:[t,I.name],description:J,removeField:C,persistedControls:b,customProps:e.items.customProps,urlParams:B,onRemoveByMinus:()=>F(I.name)}),W==="boolean"&&xp({name:Array.isArray(t)?[...t,I.name]:[t,I.name],arrKey:I.key,arrName:[I.name],description:J,makeValueUndefined:g,removeField:C,onRemoveByMinus:()=>F(I.name)}),W==="array"&&Cp({schema:e.items,name:Array.isArray(t)?[...t,I.name]:[t,I.name],arrKey:I.key,arrName:[I.name],expandName:o?Array.isArray(o)?[...o,I.name]:[o,I.name]:Array.isArray(t)?[...t,I.name]:[t,I.name],persistName:a?Array.isArray(a)?[...a,I.name]:[a,I.name]:Array.isArray(t)?[...t,I.name]:[t,I.name],description:J,makeValueUndefined:g,addField:p,removeField:C,isEdit:S,expandedControls:E,persistedControls:b,urlParams:B,onRemoveByMinus:()=>F(I.name)})]}),W==="object"&&ce?.properties&&_p({properties:ce.properties,name:Array.isArray(t)?[...t,I.name]:[t,I.name],arrKey:I.key,arrName:[I.name],expandName:o?Array.isArray(o)?[...o,I.name]:[o,I.name]:Array.isArray(t)?[...t,I.name]:[t,I.name],persistName:a?Array.isArray(a)?[...a,I.name]:[a,I.name]:Array.isArray(t)?[...t,I.name]:[t,I.name],required:ce.required,forceNonRequired:l,description:J,makeValueUndefined:g,addField:p,isAdditionalProperties:v,removeField:C,isEdit:S,expandedControls:E,persistedControls:b,urlParams:B,onRemoveByMinus:()=>F(I.name)})]},I.key)}),A.jsxs(Tr,{children:[A.jsx(q.Button,{type:"text",size:"small",onClick:()=>k(),children:A.jsx(rc,{})}),A.jsx(q.Form.ErrorList,{errors:P})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,ka=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,hiddenPaths:h,description:g,namespaceData:p,makeValueUndefined:v,addField:C,removeField:S,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N})=>A.jsx(rr,{$isHidden:f,children:Object.keys(e).map(_=>{if(e[_].type==="string"&&e[_].enum)return Iv({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(h,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,isAdditionalProperties:e[_].isAdditionalProperties,removeField:S,persistedControls:B,options:e[_].enum||[]});if(e[_].type==="string"&&!e[_].enum||Object.keys(e[_]).includes("x-kubernetes-int-or-string"))return vp({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(h,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,namespaceData:p,isAdditionalProperties:e[_].isAdditionalProperties,removeField:S,persistedControls:B});if(e[_].type==="number"||e[_].type==="integer")return Ap({isNumber:e[_].type==="number",name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(h,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,isAdditionalProperties:e[_].isAdditionalProperties,removeField:S,persistedControls:B});if(e[_].type==="rangeInputCpu"||e[_].type==="rangeInputMemory")return Sp({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(h,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,isEdit:E,customProps:e[_].customProps,persistedControls:B,urlParams:N});if(e[_].type==="listInput")return Ep({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(h,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,customProps:e[_].customProps,removeField:S,persistedControls:B,urlParams:N});if(e[_].type==="boolean")return xp({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,isHidden:wr(h,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,makeValueUndefined:v,isAdditionalProperties:e[_].isAdditionalProperties,removeField:S});if(e[_].type==="array")return Cp({schema:e[_],name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,expandName:o?Array.isArray(o)?[...o,String(_)]:[o,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(h,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,makeValueUndefined:v,addField:C,isAdditionalProperties:e[_].isAdditionalProperties,removeField:S,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N});if(e[_].additionalProperties){const k=e[_].properties?ka({properties:e[_].properties,name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,expandName:o?Array.isArray(o)?[...o,String(_)]:[o,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:e[_].required,forceNonRequired:l,isHidden:wr(h,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),hiddenPaths:h,description:e[_].description,namespaceData:p,makeValueUndefined:v,addField:C,removeField:S,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N}):void 0;return A.jsx(bp,{name:t,persistName:a,isHidden:wr(h,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:g,removeField:S,expandedControls:b,persistedControls:B,collapseTitle:_,collapseFormName:Array.isArray(t)?[...t,String(_)]:[t,String(_)],data:k,inputProps:{addField:C,additionalProperties:e[_]?.additionalProperties}},Array.isArray(t)?[...t,String(_)].join("-"):[t,String(_)].join("-"))}return e[_].type==="object"&&e[_].properties?_p({properties:e[_].properties,name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,expandName:o?Array.isArray(o)?[...o,String(_)]:[o,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,selfRequired:u?.includes(_),required:e[_].required,forceNonRequired:l||!u?.includes(_),isHidden:wr(h,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),hiddenPaths:h,description:e[_].description,namespaceData:p,makeValueUndefined:v,addField:C,isAdditionalProperties:e[_].isAdditionalProperties,removeField:S,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N}):e[_].type==="object"&&e[_]["x-kubernetes-preserve-unknown-fields"]?A.jsx(q.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(_)):null})}),_p=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,isHidden:h,hiddenPaths:g,description:p,namespaceData:v,makeValueUndefined:C,addField:S,isAdditionalProperties:E,removeField:b,isEdit:B,expandedControls:N,persistedControls:_,urlParams:k,onRemoveByMinus:F})=>{const P=ka({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,isHidden:h,hiddenPaths:g,description:p,namespaceData:v,makeValueUndefined:C,addField:S,removeField:b,isEdit:B,expandedControls:N,persistedControls:_,urlParams:k});return A.jsx(bp,{name:t,persistName:a,selfRequired:u,isHidden:h,description:p,isAdditionalProperties:E,removeField:b,expandedControls:N,persistedControls:_,collapseTitle:t,collapseFormName:o||t,data:P,onRemoveByMinus:F})},kp=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,values:i}=t;return!(typeof n!="string"||!Array.isArray(i))},Fv=Z.lazy(()=>Promise.resolve().then(()=>qw)),Tp=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:h,prefillValuesSchema:g,prefillValueNamespaceOnly:p,isNameSpaced:v,isCreate:C,type:S,apiGroupApiVersion:E,kindName:b,typeName:B,backlink:N,designNewLayout:_,designNewLayoutHeight:k})=>{const{token:F}=q.theme.useToken(),P=lr.useNavigate(),[I]=q.Form.useForm(),W=q.Form.useWatch(["metadata","namespace"],I),[J,ce]=Z.useState(a),[le,ge]=Z.useState(),ye=P2(ge,500),[Ce,pe]=Z.useState(!1),[Re,Se]=Z.useState(),[Ee,He]=Z.useState(!1),[Ae,me]=Z.useState(f||[]),[Me,Y]=Z.useState(h||[]),[Q,ae]=Z.useState(!0),Be=Z.useRef(null),We=Kr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:C===!0}),_e=Kr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:C!==!0}),De=()=>{if(Be.current){const{scrollHeight:ke,clientHeight:Pe}=Be.current;Be.current.scrollTo({top:ke-Pe,behavior:"smooth"})}I.validateFields().then(()=>{pe(!0),Se(void 0);const ke=I.getFieldsValue(),Pe=Ns(ke,Me),he=Gi(Pe),St=ia(he,J),{namespace:Et}=Pe.metadata,rt=`/api/clusters/${e}/k8s/${S==="builtin"?"":"apis/"}${E}${v?`/namespaces/${Et}`:""}/${B}/${C?"":Pe.metadata.name}`;C?Zo({endpoint:rt,body:St}).then(we=>{console.log(we),N&&P(N)}).catch(we=>{if(console.log("Form submit error",we),pe(!1),Qo(we)&&we.response?.data.message.includes("Required value")){const ut=(we.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),O=Array.from({length:ut.length},(V,G)=>ut.slice(0,G+1)),y=[...Ae,...O],w=new Set,L=y.filter(V=>{const G=Array.isArray(V)?JSON.stringify(V):V;return w.has(G)?!1:(w.add(G),!0)});me([...L])}Se(we)}):ea({endpoint:rt,body:St}).then(we=>{console.log(we),N&&P(N)}).catch(we=>{if(console.log("Form submit error",we),pe(!1),Qo(we)&&we.response?.data.message.includes("Required value")){const ut=(we.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),O=Array.from({length:ut.length},(V,G)=>ut.slice(0,G+1)),y=[...Ae,...O],w=new Set,L=y.filter(V=>{const G=Array.isArray(V)?JSON.stringify(V):V;return w.has(G)?!1:(w.add(G),!0)});me([...L])}Se(we)})}).catch(ke=>{console.log("Validating error",ke);const Pe=ke.errorFields.reduce((Te,ut)=>[...Te,ut.name],[]),At=Pe.filter(Te=>Array.isArray(Te)).flatMap(Te=>Array.from({length:Te.length},(ut,O)=>Te.slice(0,O+1))),St=Pe.filter(Te=>!Array.isArray(Te)),Et=[...Ae,...St,...At],rt=new Set,we=Et.filter(Te=>{const ut=Array.isArray(Te)?JSON.stringify(Te):Te;return rt.has(ut)?!1:(rt.add(ut),!0)});me([...we])})},Oe=Z.useCallback(()=>{const ke=I.getFieldsValue(),Pe=Ns(ke,Me),he=Gi(Pe),St=ia(he,J);ye(St)},[I,ye,J,Me]),Le=ke=>{const Pe=ra(ke),he=lc(Pe,J);Pe&&I.setFieldsValue(he)};if(Z.useEffect(()=>{const ke=S==="apis"?`${E}/${B}`:`v1/${B}`,Pe=o?.items.find(he=>typeof he=="object"&&!Array.isArray(he)&&he!==null&&he.spec&&typeof he.spec=="object"&&!Array.isArray(he.spec)&&he.spec!==null&&typeof he.spec.overrideType=="string"&&he.spec.overrideType===ke);if(kp(Pe)&&Pe.spec.values.forEach(({path:he,value:At})=>{I.setFieldValue(he,At)}),g){const he=lc(g,J);I.setFieldsValue(he)}Oe()},[g,I,o,S,E,B,Oe,J]),Z.useEffect(()=>{let ke=[];const Pe=S==="apis"?`${E}/${B}`:`v1/${B}`,he=o?.items.find(rt=>typeof rt=="object"&&!Array.isArray(rt)&&rt!==null&&rt.spec&&typeof rt.spec=="object"&&!Array.isArray(rt.spec)&&rt.spec!==null&&typeof rt.spec.overrideType=="string"&&rt.spec.overrideType===Pe);kp(he)&&(ke=he.spec.values.flatMap(({path:rt})=>id(rt))),g&&typeof g=="object"&&g!==null&&(ke=[...ke,...fc(g)]);const At=[...Ae,...ke],St=new Set,Et=At.filter(rt=>{const we=Array.isArray(rt)?JSON.stringify(rt):rt;return St.has(we)?!1:(St.add(we),!0)});me([...Et])},[E,o,g,S,B]),Z.useEffect(()=>{p&&I.setFieldValue(["metadata","namespace"],p),Oe()},[p,Oe,I]),Z.useEffect(()=>{C&&I.setFieldsValue({apiVersion:E==="api/v1"?"v1":E,kind:b}),Oe()},[C,b,E,Oe,I]),Z.useEffect(()=>{const ke=I.getFieldsValue(),Pe=Ns(ke,Me),he=Gi(Pe),St=ia(he,J);ye(St)},[ye,J,I,Me]),Z.useEffect(()=>{Oe()},[J,Oe]),!J)return null;const Tt=v?{filterSelectOptions:ac,selectValues:v.map(ke=>({label:ke,value:ke})),disabled:!!p}:void 0,nn=ke=>{I.setFieldValue(ke,void 0),Oe()},Lt=({path:ke,name:Pe,type:he,items:At,nestedProperties:St,required:Et})=>{const we=(Array.isArray(ke)?ke:[ke]).reduceRight((O,y)=>({[y]:{properties:O}}),{[Pe]:{type:he,items:At,properties:St,required:Et,isAdditionalProperties:!0}}),Te=yt.cloneDeep(J),ut=yt.merge(Te,we);console.log("newObject",we),console.log("newProperties",ut),ce(ut)},Nt=({path:ke})=>{const he=(Array.isArray(ke)?ke:[ke]).flatMap(St=>[St,"properties"]).slice(0,-1),At=yt.cloneDeep(J);yt.unset(At,he),ce(At)},jt=ke=>{me([...Ae,ke])},bt=ke=>{me([...Ae.filter(Pe=>JSON.stringify(Pe)!==JSON.stringify(ke))])},kn=(ke,Pe)=>{Pe&&I.getFieldValue(ke)===void 0&&(Pe==="str"&&I.setFieldValue(ke,""),Pe==="number"&&I.setFieldValue(ke,0),Pe==="arr"&&I.setFieldValue(ke,[]),Pe==="obj"&&I.setFieldValue(ke,{})),Y([...Me,ke])},An=ke=>{console.log(ke),Y([...Me.filter(Pe=>JSON.stringify(Pe)!==JSON.stringify(ke))])};return A.jsxs(A.Fragment,{children:[A.jsxs(io.Container,{$designNewLayout:_,$designNewLayoutHeight:k,children:[A.jsx(io.OverflowContainer,{ref:Be,children:A.jsxs(q.Form,{form:I,onValuesChange:Oe,children:[A.jsx(sv,{value:_,children:ka({properties:J,name:[],required:u,hiddenPaths:l,namespaceData:Tt,makeValueUndefined:nn,addField:Lt,removeField:Nt,isEdit:!C,expandedControls:{onExpandOpen:jt,onExpandClose:bt,expandedKeys:Ae},persistedControls:{onPersistMark:kn,onPersistUnmark:An,persistedKeys:Me,isPersistedKeysShown:Q},urlParams:n})}),!_&&A.jsxs(A.Fragment,{children:[A.jsx(Cr,{$space:10,$samespace:!0}),A.jsx(q.Alert,{type:"warning",message:"Only the data from the form will be sent. Empty fields will be removed recursively."})]}),C&&We.data?.status.allowed===!1&&A.jsxs(A.Fragment,{children:[A.jsx(Cr,{$space:10,$samespace:!0}),A.jsx(q.Alert,{type:"warning",message:"Insufficient rights to create"})]}),!C&&_e.data?.status.allowed===!1&&A.jsxs(A.Fragment,{children:[A.jsx(Cr,{$space:10,$samespace:!0}),A.jsx(q.Alert,{type:"warning",message:"Insufficient rights to edit"})]}),Re&&A.jsxs(A.Fragment,{children:[A.jsx(Cr,{$space:10,$samespace:!0}),A.jsx(q.Alert,{message:`An error has occurred: ${Re?.response?.data?.message} `,type:"error"})]})]})}),A.jsx("div",{children:A.jsx(tv,{theme:t,currentValues:le||{},onChange:Le})})]}),A.jsx(io.ControlsRowContainer,{$bgColor:F.colorPrimaryBg,$designNewLayout:_,children:A.jsxs(q.Flex,{gap:_?10:16,align:"center",children:[A.jsx(q.Button,{type:"primary",onClick:De,loading:Ce,children:"Submit"}),N&&A.jsx(q.Button,{onClick:()=>P(N),children:"Cancel"}),A.jsx(q.Button,{onClick:()=>He(!0),icon:A.jsx(wn.BugOutlined,{})}),_&&A.jsx("div",{children:A.jsx(q.Typography.Text,{children:"Only the data from the form will be sent. Empty fields will be removed recursively."})})]})}),Ee&&A.jsx(q.Modal,{open:Ee,onOk:()=>He(!1),onCancel:()=>He(!1),onClose:()=>He(!1),title:"Debug for properties",width:"90vw",children:A.jsx(io.DebugContainer,{$designNewLayoutHeight:k,children:A.jsx(Z.Suspense,{fallback:A.jsx("div",{children:"Loading..."}),children:A.jsx(Fv,{defaultLanguage:"json",width:"100%",height:k||"75vh",theme:"vs-dark",value:JSON.stringify(J,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},Op=({properties:e,currentPath:t=[],result:n=[]})=>(e&&Object.keys(e).forEach(i=>{const o=[...t,i];i==="additionalProperties"?n.push(t):typeof e[i]=="object"&&e[i]!==null&&Op({properties:e[i],currentPath:o,result:n})}),n),Ip=({path:e,defaultValue:t})=>{if(e.length===0)return{};const[n,...i]=e;return i.length===0?{[n]:t}:{[n]:Ip({path:i,defaultValue:t})}},Bv=({pathsWithAdditionalProperties:e,prefillValuesSchema:t,bodyParametersSchema:n})=>e.reduce((i,o)=>{const a=o.filter((l,f)=>f%2===0);let u=null;try{u=yt.get(t,a.join("."))}catch{}if(u){const l=yt.get(n.properties,`${o.join(".")}.additionalProperties.type`),f={};Object.keys(u).forEach(p=>{const v={[p]:{type:l,isAdditionalProperties:!0}},C=yt.cloneDeep(f);f.properties=yt.merge(C.properties,v)});const h=Ip({path:o,defaultValue:f});return yt.merge(i,h)}return i},{}),Fp=(e,t)=>{const n={...e};for(const i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(n[i]=t[i]);return n},Bp=({typeName:e,apiGroup:t,apiVersion:n,swagger:i})=>{const o=`/apis/${t}/${n}/${e}`,a=`/apis/${t}/${n}/namespaces/{namespace}/${e}`,u=Object.keys(i.paths||{}).includes(o),l=Object.keys(i.paths||{}).includes(a);return{isClusterWide:u,isNamespaceScoped:l}},Kc=({typeName:e,swagger:t})=>{const n=`/api/v1/${e}`,i=`/api/v1/namespaces/{namespace}/${e}`,o=Object.keys(t.paths||{}).includes(n),a=Object.keys(t.paths||{}).includes(i);return{isClusterWide:o,isNamespaceScoped:a}},Dp=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,strategy:i,schema:o,hidden:a,expanded:u,persisted:l}=t;return!(typeof n!="string"||typeof n!="string"||typeof i!="string"||!(typeof o=="object"&&o!==null)||!Array.isArray(a)&&typeof a<"u"||!Array.isArray(u)&&typeof u<"u"||!Array.isArray(l)&&typeof l<"u")},Pp=({swagger:e,data:t})=>{let n="",i=!1;if(t.type==="builtin"){const{isNamespaceScoped:o}=Kc({typeName:t.typeName,swagger:e});o&&(i=!0),n=`/api/v1${o?"/namespaces/{namespace}":""}/${t.typeName}`}else{const{isNamespaceScoped:o}=Bp({apiGroup:t.apiGroup,apiVersion:t.apiVersion,typeName:t.typeName,swagger:e});o&&(i=!0),n=`/apis/${t.apiGroup}/${t.apiVersion}${o?"/namespaces/{namespace}":""}/${t.typeName}`}return{swaggerPath:n,isNamespaced:i}},Rp=({swagger:e,swaggerPath:t})=>{const n=e?.paths?.[t]?.post;if(!n)return{bodyParametersSchema:void 0,kindName:void 0,error:`No post data for ${t}`};const i=n?.["x-kubernetes-group-version-kind"];if(!i)return{bodyParametersSchema:void 0,kindName:void 0,error:`postData with no x-kubernetes-group-version-kind: ${JSON.stringify(n,null,2)}`};const o=i?.kind;if(!o)return{bodyParametersSchema:void 0,kindName:void 0,error:`x-kubernetes-group-version-kind with no kind: ${JSON.stringify(i,null,2)}`};const a=n?.parameters;if(!a){const f=`postData with no parameters: ${JSON.stringify(n,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}const u=a?.filter(f=>f.in==="body")[0];if(!u){const f=`paremeters with no {in: body}: ${JSON.stringify(a,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}const l=u.schema;if(!l){const f=`bodyParameters with no schema:${JSON.stringify(u,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}return Object.keys(l).includes("$ref")?{bodyParametersSchema:l,kindName:o,error:"Underefed schema"}:{bodyParametersSchema:l,kindName:o,error:void 0}},Lp=({specificCustomOverrides:e,newProperties:t,bodyParametersSchema:n})=>{let i,o,a,u=t,l;if(Dp(e))if(e.spec.hidden&&(i=e.spec.hidden),e.spec.expanded&&(o=e.spec.expanded),e.spec.persisted&&(a=e.spec.persisted),e.spec.strategy==="fullReplace")e.spec.schema.properties?u=e.spec.schema.properties:u=t,e.spec.schema.required?l=e.spec.schema.required:l=n.required;else if(e.spec.strategy==="merge"){if(e.spec.schema.properties){const f=yt.cloneDeep(t);u=yt.merge(f,e.spec.schema.properties)}else u=t;e.spec.schema.required?l=[...n.required||[],...e.spec.schema.required]:l=n.required}else if(e.spec.strategy==="replace"){if(e.spec.schema.properties){const f=yt.cloneDeep(t);u=Fp(f,e.spec.schema.properties)}else u=t;e.spec.schema.required?l=[...e.spec.schema.required]:l=n.required}else u=t,l=n.required;else u=t,l=n.required;return{hiddenPaths:i,expandedPaths:o,persistedPaths:a,propertiesToApply:u,requiredToApply:l}},Dv=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,swagger:a,namespacesData:u,formsOverridesData:l,data:f,isCreate:h,backlink:g,modeData:p,designNewLayout:v,designNewLayoutHeight:C})=>{const[S,E]=Z.useState(void 0),[b,B]=Z.useState([]),[N,_]=Z.useState([]),[k,F]=Z.useState([]),[P,I]=Z.useState([]),[W,J]=Z.useState(""),[ce,le]=Z.useState(!1),[ge,ye]=Z.useState(!1),Ce=Z.useCallback(()=>{p&&(p.onChange("Manual"),p.onDisabled())},[p]);return Z.useEffect(()=>{if(!a)return;const{swaggerPath:pe,isNamespaced:Re}=Pp({swagger:a,data:f});Re&&le(!0);const{bodyParametersSchema:Se,kindName:Ee,error:He}=Rp({swagger:a,swaggerPath:pe});if(He){ye(He),console.log(He),Ce();return}Ee&&J(Ee);const Ae=Op({properties:Se.properties}),me=Bv({pathsWithAdditionalProperties:Ae,prefillValuesSchema:f.prefillValuesSchema,bodyParametersSchema:Se}),Me=yt.cloneDeep(Se.properties),Y=yt.merge(Me,me),Q=f.type==="apis"?`${f.apiGroup}/${f.apiVersion}/${f.typeName}`:`v1/${f.typeName}`,ae=l?.items.find(Le=>Le.spec.overrideType===Q),{hiddenPaths:Be,expandedPaths:We,persistedPaths:_e,propertiesToApply:De,requiredToApply:Oe}=Lp({specificCustomOverrides:ae,newProperties:Y,bodyParametersSchema:Se});Be&&_(Be),We&&F(We),_e&&I(_e),De&&E(De),Oe&&B(Oe)},[a,f,Ce,l]),p?.current==="Manual"?A.jsx(iv,{theme:e,cluster:t,prefillValuesSchema:f.prefillValuesSchema,isCreate:h,type:f.type,isNameSpaced:ce?u?.items.map(pe=>pe.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,typeName:f.typeName,backlink:g,designNewLayout:v,designNewLayoutHeight:C}):!S&&!ge?null:ge?A.jsx(q.Alert,{message:ge,type:"error"}):A.jsx(Tp,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:S,required:b,hiddenPaths:N,expandedPaths:k,persistedPaths:P,prefillValuesSchema:f.prefillValuesSchema,prefillValueNamespaceOnly:f.prefillValueNamespaceOnly,isCreate:h,type:f.type,isNameSpaced:ce?u?.items.map(pe=>pe.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,kindName:W,typeName:f.typeName,backlink:g,designNewLayout:v,designNewLayoutHeight:C},JSON.stringify(S)+JSON.stringify(b)+JSON.stringify(N)+JSON.stringify(f))},Pv={CustomCard:Ye(q.Card)`
457
+ `,ro={ResetedFormList:bv,Container:mv,OverflowContainer:wv,ControlsRowContainer:vv,DebugContainer:Sv},bp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,namespaceData:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&f?S.jsx(uv,{name:e,isHidden:u,namespaceData:f,isAdditionalProperties:d,removeField:g}):S.jsx(cv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v}),Av=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p,onRemoveByMinus:v})=>S.jsx(dv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p,onRemoveByMinus:v}),vp=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v})=>S.jsx(pv,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v}),Sp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p,onRemoveByMinus:v})=>S.jsx(av,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,customProps:g,persistedControls:d,urlParams:p,onRemoveByMinus:v}),Ap=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:C})=>S.jsx(iv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:C}),Ep=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f})=>S.jsx(hv,{name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f}),xp=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,description:d,makeValueUndefined:g,addField:p,isAdditionalProperties:v,removeField:C,isEdit:A,expandedControls:E,persistedControls:b,urlParams:B,onRemoveByMinus:N})=>e.type==="array"?S.jsxs(rr,{$isHidden:f,children:[S.jsx(gv,{name:t,persistName:a,required:u,description:d,isAdditionalProperties:v,removeField:C,persistedControls:b,onRemoveByMinus:N}),S.jsx(ro.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Ot(t))?[{validator:async(_,k)=>{if(!k||k.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(_,{add:k,remove:F},{errors:R})=>S.jsxs(S.Fragment,{children:[_.map(O=>{const W=e.items?.type,J=e.items?.description,le=e.items;return S.jsxs(rv,{children:[W!=="object"&&S.jsxs(S.Fragment,{children:[W==="string"&&bp({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:J,removeField:C,persistedControls:b,onRemoveByMinus:()=>F(O.name)}),(W==="number"||W==="integer")&&vp({isNumber:W==="number",name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:J,removeField:C,persistedControls:b,onRemoveByMinus:()=>F(O.name)}),(W==="rangeInputCpu"||W==="rangeInputMemory")&&Sp({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:J,isEdit:A,persistedControls:b,customProps:e.items.customProps,urlParams:B,onRemoveByMinus:()=>F(O.name)}),W==="listInput"&&Ap({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:J,removeField:C,persistedControls:b,customProps:e.items.customProps,urlParams:B,onRemoveByMinus:()=>F(O.name)}),W==="boolean"&&Ep({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],description:J,makeValueUndefined:g,removeField:C,onRemoveByMinus:()=>F(O.name)}),W==="array"&&xp({schema:e.items,name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],expandName:o?Array.isArray(o)?[...o,O.name]:[o,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:J,makeValueUndefined:g,addField:p,removeField:C,isEdit:A,expandedControls:E,persistedControls:b,urlParams:B,onRemoveByMinus:()=>F(O.name)})]}),W==="object"&&le?.properties&&Cp({properties:le.properties,name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],expandName:o?Array.isArray(o)?[...o,O.name]:[o,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],required:le.required,forceNonRequired:l,description:J,makeValueUndefined:g,addField:p,isAdditionalProperties:v,removeField:C,isEdit:A,expandedControls:E,persistedControls:b,urlParams:B,onRemoveByMinus:()=>F(O.name)})]},O.key)}),S.jsxs(Tr,{children:[S.jsx(q.Button,{type:"text",size:"small",onClick:()=>k(),children:S.jsx(tc,{})}),S.jsx(q.Form.ErrorList,{errors:R})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,Ca=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,hiddenPaths:d,description:g,namespaceData:p,makeValueUndefined:v,addField:C,removeField:A,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N})=>S.jsx(rr,{$isHidden:f,children:Object.keys(e).map(_=>{if(e[_].type==="string"&&e[_].enum)return Av({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A,persistedControls:B,options:e[_].enum||[]});if(e[_].type==="string"&&!e[_].enum||Object.keys(e[_]).includes("x-kubernetes-int-or-string"))return bp({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,namespaceData:p,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A,persistedControls:B});if(e[_].type==="number"||e[_].type==="integer")return vp({isNumber:e[_].type==="number",name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A,persistedControls:B});if(e[_].type==="rangeInputCpu"||e[_].type==="rangeInputMemory")return Sp({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,isEdit:E,customProps:e[_].customProps,persistedControls:B,urlParams:N});if(e[_].type==="listInput")return Ap({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,customProps:e[_].customProps,removeField:A,persistedControls:B,urlParams:N});if(e[_].type==="boolean")return Ep({name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,makeValueUndefined:v,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A});if(e[_].type==="array")return xp({schema:e[_],name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,expandName:o?Array.isArray(o)?[...o,String(_)]:[o,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:u?.includes(_)?[String(_)]:void 0,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:e[_].description,makeValueUndefined:v,addField:C,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N});if(e[_].additionalProperties){const k=e[_].properties?Ca({properties:e[_].properties,name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,expandName:o?Array.isArray(o)?[...o,String(_)]:[o,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,required:e[_].required,forceNonRequired:l,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),hiddenPaths:d,description:e[_].description,namespaceData:p,makeValueUndefined:v,addField:C,removeField:A,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N}):void 0;return S.jsx(wp,{name:t,persistName:a,isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),description:g,removeField:A,expandedControls:b,persistedControls:B,collapseTitle:_,collapseFormName:Array.isArray(t)?[...t,String(_)]:[t,String(_)],data:k,inputProps:{addField:C,additionalProperties:e[_]?.additionalProperties}},Array.isArray(t)?[...t,String(_)].join("-"):[t,String(_)].join("-"))}return e[_].type==="object"&&e[_].properties?Cp({properties:e[_].properties,name:Array.isArray(t)?[...t,String(_)]:[t,String(_)],arrKey:n,arrName:Array.isArray(i)?[...i,String(_)]:void 0,expandName:o?Array.isArray(o)?[...o,String(_)]:[o,String(_)]:void 0,persistName:a?Array.isArray(a)?[...a,String(_)]:[a,String(_)]:void 0,selfRequired:u?.includes(_),required:e[_].required,forceNonRequired:l||!u?.includes(_),isHidden:wr(d,Array.isArray(t)?[...t,String(_)]:[t,String(_)]),hiddenPaths:d,description:e[_].description,namespaceData:p,makeValueUndefined:v,addField:C,isAdditionalProperties:e[_].isAdditionalProperties,removeField:A,isEdit:E,expandedControls:b,persistedControls:B,urlParams:N}):e[_].type==="object"&&e[_]["x-kubernetes-preserve-unknown-fields"]?S.jsx(q.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(_)):null})}),Cp=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:v,makeValueUndefined:C,addField:A,isAdditionalProperties:E,removeField:b,isEdit:B,expandedControls:N,persistedControls:_,urlParams:k,onRemoveByMinus:F})=>{const R=Ca({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:v,makeValueUndefined:C,addField:A,removeField:b,isEdit:B,expandedControls:N,persistedControls:_,urlParams:k});return S.jsx(wp,{name:t,persistName:a,selfRequired:u,isHidden:d,description:p,isAdditionalProperties:E,removeField:b,expandedControls:N,persistedControls:_,collapseTitle:t,collapseFormName:o||t,data:R,onRemoveByMinus:F})},_p=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,values:i}=t;return!(typeof n!="string"||!Array.isArray(i))},Ev=Z.lazy(()=>Promise.resolve().then(()=>Lw)),kp=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:d,prefillValuesSchema:g,prefillValueNamespaceOnly:p,isNameSpaced:v,isCreate:C,type:A,apiGroupApiVersion:E,kindName:b,typeName:B,backlink:N,designNewLayout:_,designNewLayoutHeight:k})=>{const{token:F}=q.theme.useToken(),R=lr.useNavigate(),[O]=q.Form.useForm(),W=q.Form.useWatch(["metadata","namespace"],O),[J,le]=Z.useState(a),[ce,ge]=Z.useState(),ye=_2(ge,500),[he,me]=Z.useState(!1),[Le,ke]=Z.useState(),[xe,tt]=Z.useState(!1),[Ae,Se]=Z.useState(f||[]),[We,Y]=Z.useState(d||[]),[Q,ue]=Z.useState(!0),De=Z.useRef(null),Ye=Hr({apiGroup:A==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:C===!0}),Te=Hr({apiGroup:A==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:C!==!0}),Re=()=>{if(De.current){const{scrollHeight:Ce,clientHeight:Be}=De.current;De.current.scrollTo({top:Ce-Be,behavior:"smooth"})}O.validateFields().then(()=>{me(!0),ke(void 0);const Ce=O.getFieldsValue(),Be=na(Ce,We),pe=Ps(Be),xt=cc(pe,J),{namespace:vt}=Be.metadata,rt=`/api/clusters/${e}/k8s/${A==="builtin"?"":"apis/"}${E}${v?`/namespaces/${vt}`:""}/${B}/${C?"":Be.metadata.name}`;C?Qo({endpoint:rt,body:xt}).then(we=>{console.log(we),N&&R(N)}).catch(we=>{if(console.log("Form submit error",we),me(!1),Xo(we)&&we.response?.data.message.includes("Required value")){const ut=(we.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),I=Array.from({length:ut.length},(V,G)=>ut.slice(0,G+1)),y=[...Ae,...I],w=new Set,P=y.filter(V=>{const G=Array.isArray(V)?JSON.stringify(V):V;return w.has(G)?!1:(w.add(G),!0)});Se([...P])}ke(we)}):Zo({endpoint:rt,body:xt}).then(we=>{console.log(we),N&&R(N)}).catch(we=>{if(console.log("Form submit error",we),me(!1),Xo(we)&&we.response?.data.message.includes("Required value")){const ut=(we.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),I=Array.from({length:ut.length},(V,G)=>ut.slice(0,G+1)),y=[...Ae,...I],w=new Set,P=y.filter(V=>{const G=Array.isArray(V)?JSON.stringify(V):V;return w.has(G)?!1:(w.add(G),!0)});Se([...P])}ke(we)})}).catch(Ce=>{console.log("Validating error",Ce);const Be=Ce.errorFields.reduce((_e,ut)=>[..._e,ut.name],[]),At=Be.filter(_e=>Array.isArray(_e)).flatMap(_e=>Array.from({length:_e.length},(ut,I)=>_e.slice(0,I+1))),xt=Be.filter(_e=>!Array.isArray(_e)),vt=[...Ae,...xt,...At],rt=new Set,we=vt.filter(_e=>{const ut=Array.isArray(_e)?JSON.stringify(_e):_e;return rt.has(ut)?!1:(rt.add(ut),!0)});Se([...we])})},Oe=Z.useCallback(()=>{const Ce=O.getFieldsValue();Ue.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues",{values:Ce,persistedKeys:We,properties:J}).then(({data:Be})=>ye(Be))},[O,ye,J,We]),Ne=Ce=>{Ue.post("/openapi-bff/forms/formSync/getFormValuesByYaml",{values:Ce,properties:J}).then(({data:Be})=>{Be&&O.setFieldsValue(Be)})};if(Z.useEffect(()=>{const Ce=A==="apis"?`${E}/${B}`:`v1/${B}`,Be=o?.items.find(pe=>typeof pe=="object"&&!Array.isArray(pe)&&pe!==null&&pe.spec&&typeof pe.spec=="object"&&!Array.isArray(pe.spec)&&pe.spec!==null&&typeof pe.spec.overrideType=="string"&&pe.spec.overrideType===Ce);if(_p(Be)&&Be.spec.values.forEach(({path:pe,value:At})=>{O.setFieldValue(pe,At)}),g){const pe=nd(g,J);O.setFieldsValue(pe)}Oe()},[g,O,o,A,E,B,Oe,J]),Z.useEffect(()=>{let Ce=[];const Be=A==="apis"?`${E}/${B}`:`v1/${B}`,pe=o?.items.find(rt=>typeof rt=="object"&&!Array.isArray(rt)&&rt!==null&&rt.spec&&typeof rt.spec=="object"&&!Array.isArray(rt.spec)&&rt.spec!==null&&typeof rt.spec.overrideType=="string"&&rt.spec.overrideType===Be);_p(pe)&&(Ce=pe.spec.values.flatMap(({path:rt})=>rd(rt))),g&&typeof g=="object"&&g!==null&&(Ce=[...Ce,...lc(g)]);const At=[...Ae,...Ce],xt=new Set,vt=At.filter(rt=>{const we=Array.isArray(rt)?JSON.stringify(rt):rt;return xt.has(we)?!1:(xt.add(we),!0)});Se([...vt])},[E,o,g,A,B]),Z.useEffect(()=>{p&&O.setFieldValue(["metadata","namespace"],p),Oe()},[p,Oe,O]),Z.useEffect(()=>{C&&O.setFieldsValue({apiVersion:E==="api/v1"?"v1":E,kind:b}),Oe()},[C,b,E,Oe,O]),Z.useEffect(()=>{const Ce=O.getFieldsValue(),Be=na(Ce,We),pe=Ps(Be),xt=cc(pe,J);ye(xt)},[ye,J,O,We]),Z.useEffect(()=>{Oe()},[J,Oe]),!J)return null;const kt=v?{filterSelectOptions:sc,selectValues:v.map(Ce=>({label:Ce,value:Ce})),disabled:!!p}:void 0,nn=Ce=>{O.setFieldValue(Ce,void 0),Oe()},Lt=({path:Ce,name:Be,type:pe,items:At,nestedProperties:xt,required:vt})=>{const we=(Array.isArray(Ce)?Ce:[Ce]).reduceRight((I,y)=>({[y]:{properties:I}}),{[Be]:{type:pe,items:At,properties:xt,required:vt,isAdditionalProperties:!0}}),_e=Ut.cloneDeep(J),ut=Ut.merge(_e,we);console.log("newObject",we),console.log("newProperties",ut),le(ut)},Pt=({path:Ce})=>{const pe=(Array.isArray(Ce)?Ce:[Ce]).flatMap(xt=>[xt,"properties"]).slice(0,-1),At=Ut.cloneDeep(J);Ut.unset(At,pe),le(At)},Nt=Ce=>{Se([...Ae,Ce])},wt=Ce=>{Se([...Ae.filter(Be=>JSON.stringify(Be)!==JSON.stringify(Ce))])},kn=(Ce,Be)=>{Be&&O.getFieldValue(Ce)===void 0&&(Be==="str"&&O.setFieldValue(Ce,""),Be==="number"&&O.setFieldValue(Ce,0),Be==="arr"&&O.setFieldValue(Ce,[]),Be==="obj"&&O.setFieldValue(Ce,{})),Y([...We,Ce])},Sn=Ce=>{console.log(Ce),Y([...We.filter(Be=>JSON.stringify(Be)!==JSON.stringify(Ce))])};return S.jsxs(S.Fragment,{children:[S.jsxs(ro.Container,{$designNewLayout:_,$designNewLayoutHeight:k,children:[S.jsx(ro.OverflowContainer,{ref:De,children:S.jsxs(q.Form,{form:O,onValuesChange:Oe,children:[S.jsx(Xb,{value:_,children:Ca({properties:J,name:[],required:u,hiddenPaths:l,namespaceData:kt,makeValueUndefined:nn,addField:Lt,removeField:Pt,isEdit:!C,expandedControls:{onExpandOpen:Nt,onExpandClose:wt,expandedKeys:Ae},persistedControls:{onPersistMark:kn,onPersistUnmark:Sn,persistedKeys:We,isPersistedKeysShown:Q},urlParams:n})}),!_&&S.jsxs(S.Fragment,{children:[S.jsx(Cr,{$space:10,$samespace:!0}),S.jsx(q.Alert,{type:"warning",message:"Only the data from the form will be sent. Empty fields will be removed recursively."})]}),C&&Ye.data?.status.allowed===!1&&S.jsxs(S.Fragment,{children:[S.jsx(Cr,{$space:10,$samespace:!0}),S.jsx(q.Alert,{type:"warning",message:"Insufficient rights to create"})]}),!C&&Te.data?.status.allowed===!1&&S.jsxs(S.Fragment,{children:[S.jsx(Cr,{$space:10,$samespace:!0}),S.jsx(q.Alert,{type:"warning",message:"Insufficient rights to edit"})]}),Le&&S.jsxs(S.Fragment,{children:[S.jsx(Cr,{$space:10,$samespace:!0}),S.jsx(q.Alert,{message:`An error has occurred: ${Le?.response?.data?.message} `,type:"error"})]})]})}),S.jsx("div",{children:S.jsx(zb,{theme:t,currentValues:ce||{},onChange:Ne})})]}),S.jsx(ro.ControlsRowContainer,{$bgColor:F.colorPrimaryBg,$designNewLayout:_,children:S.jsxs(q.Flex,{gap:_?10:16,align:"center",children:[S.jsx(q.Button,{type:"primary",onClick:Re,loading:he,children:"Submit"}),N&&S.jsx(q.Button,{onClick:()=>R(N),children:"Cancel"}),S.jsx(q.Button,{onClick:()=>tt(!0),icon:S.jsx(wn.BugOutlined,{})}),_&&S.jsx("div",{children:S.jsx(q.Typography.Text,{children:"Only the data from the form will be sent. Empty fields will be removed recursively."})})]})}),xe&&S.jsx(q.Modal,{open:xe,onOk:()=>tt(!1),onCancel:()=>tt(!1),onClose:()=>tt(!1),title:"Debug for properties",width:"90vw",children:S.jsx(ro.DebugContainer,{$designNewLayoutHeight:k,children:S.jsx(Z.Suspense,{fallback:S.jsx("div",{children:"Loading..."}),children:S.jsx(Ev,{defaultLanguage:"json",width:"100%",height:k||"75vh",theme:"vs-dark",value:JSON.stringify(J,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},xv=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,namespacesData:a,formsOverridesData:u,data:l,isCreate:f,backlink:d,modeData:g,designNewLayout:p,designNewLayoutHeight:v})=>{const[C,A]=Z.useState(void 0),[E,b]=Z.useState([]),[B,N]=Z.useState([]),[_,k]=Z.useState([]),[F,R]=Z.useState([]),[O,W]=Z.useState(""),[J,le]=Z.useState(!1),[ce,ge]=Z.useState(!1),ye=Z.useCallback(()=>{g&&(g.onChange("Manual"),g.onDisabled())},[g]);return Z.useEffect(()=>{Ue.post("/openapi-bff/forms/formPrepare/prepareFormProps",{data:l,clusterName:t,formsOverridesData:u}).then(({data:he})=>{he.isNamespaced&&le(!0),he.result==="error"?(ge(he.error),console.log(he.error),ye()):(he.kindName&&W(he.kindName),he.hiddenPaths&&N(he.hiddenPaths),he.expandedPaths&&k(he.expandedPaths),he.persistedPaths&&R(he.persistedPaths),he.properties&&A(he.properties),he.required&&b(he.required))}).catch(he=>{ge(he.message)})},[t,l,ye,u]),g?.current==="Manual"?S.jsx(Yb,{theme:e,cluster:t,prefillValuesSchema:l.prefillValuesSchema,isCreate:f,type:l.type,isNameSpaced:J?a?.items.map(he=>he.metadata.name):!1,apiGroupApiVersion:l.type==="builtin"?"api/v1":`${l.apiGroup}/${l.apiVersion}`,typeName:l.typeName,backlink:d,designNewLayout:p,designNewLayoutHeight:v}):!C&&!ce?null:ce?S.jsx(q.Alert,{message:ce,type:"error"}):S.jsx(kp,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:C,required:E,hiddenPaths:B,expandedPaths:_,persistedPaths:F,prefillValuesSchema:l.prefillValuesSchema,prefillValueNamespaceOnly:l.prefillValueNamespaceOnly,isCreate:f,type:l.type,isNameSpaced:J?a?.items.map(he=>he.metadata.name):!1,apiGroupApiVersion:l.type==="builtin"?"api/v1":`${l.apiGroup}/${l.apiVersion}`,kindName:O,typeName:l.typeName,backlink:d,designNewLayout:p,designNewLayoutHeight:v},JSON.stringify(C)+JSON.stringify(E)+JSON.stringify(B)+JSON.stringify(l))},Cv={CustomCard:Je(q.Card)`
458
458
  display: flex;
459
459
  justify-content: center;
460
460
  align-items: center;
@@ -473,7 +473,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
473
473
  overflow-x: auto;
474
474
  padding: 8px;
475
475
  }
476
- `},Rv=({onAddClick:e})=>A.jsx(Pv.CustomCard,{onClick:e,children:A.jsx(wn.PlusOutlined,{})}),on=[];for(let e=0;e<256;++e)on.push((e+256).toString(16).slice(1));function Lv(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}let Hc;const Nv=new Uint8Array(16);function jv(){if(!Hc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Hc=crypto.getRandomValues.bind(crypto)}return Hc(Nv)}const Np={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function $v(e,t,n){if(Np.randomUUID&&!e)return Np.randomUUID();e=e||{};const i=e.random||(e.rng||jv)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Lv(i)}const Mv=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:h})=>{const[g]=q.Form.useForm(),p=q.Form.useWatch("type",g),v=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,C=E=>{if(typeof a=="boolean"){Zo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:$v()},spec:{...E}}}).then(()=>{u(!1),f()}).catch(b=>{(Qo(b)||b instanceof Error)&&l(b)}).finally(()=>u(!1));return}ea({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}/${a.metadata.name}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:a.metadata.name,resourceVersion:a.metadata.resourceVersion},spec:{...E}}}).then(()=>{u(!1),h()}).catch(b=>{(Qo(b)||b instanceof Error)&&l(b)}).finally(()=>u(!1))},S=()=>{g.validateFields().then(()=>{C(g.getFieldsValue())}).catch(()=>console.log("Validating error"))};return A.jsx(q.Modal,{title:typeof a=="boolean"?"Add card":"Edit плитку",open:a!==!1,onCancel:()=>u(!1),onOk:()=>S(),children:A.jsxs(q.Form,{form:g,name:"control-hooks",initialValues:{...v},children:[A.jsx(q.Form.Item,{label:"Name",name:"name",children:A.jsx(q.Input,{required:!0})}),A.jsx(q.Form.Item,{label:"Description",name:"description",children:A.jsx(q.Input,{required:!0})}),A.jsx(q.Form.Item,{label:"Icon",name:"icon",children:A.jsx(q.Input.TextArea,{placeholder:"SVG-иконка, <svg /> -> base64",maxLength:void 0,required:!0})}),A.jsx(q.Form.Item,{label:"Resources type",name:"type",children:A.jsx(q.Select,{placeholder:"Choose resource type",options:[{value:"direct",label:"Direct link"},{value:"crd",label:"CRD"},{value:"nonCrd",label:"API"},{value:"built-in",label:"Built-in"}]})}),A.jsx(q.Form.Item,{label:"Enter API group",name:"apiGroup",children:A.jsx(q.Input,{disabled:p==="direct"||p==="built-in"})}),A.jsx(q.Form.Item,{label:"Enter API version",name:"apiVersion",children:A.jsx(q.Input,{disabled:p==="direct"})}),A.jsx(q.Form.Item,{label:"Enter resource type",name:"typeName",children:A.jsx(q.Input,{disabled:p==="direct"})}),A.jsx(q.Form.Item,{label:"Enter path",name:"pathToNav",children:A.jsx(q.Input,{disabled:p!=="direct"})}),A.jsx(q.Form.Item,{label:"Tags",name:"tags",children:A.jsx(q.Select,{mode:"tags",placeholder:"Enter tags. Separators: comma and space",tokenSeparators:[","," "],dropdownStyle:{display:"none"}})}),A.jsx(q.Form.Item,{label:"Disabled",name:"disabled",children:A.jsx(q.Switch,{})}),A.jsx(q.Form.Item,{label:"Hidden",name:"hidden",children:A.jsx(q.Switch,{})})]})})},Uv=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>{const f="v1";return n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/crd-table/${a}/${u}/${f}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/api-table/${a}/${u}/${o}`:`/${l}/${e}/${t}/builtin-table/${o}`},Vv=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/forms/crds/${a}/${u}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/forms/apis/${a}/${u}/${o}`:`/${l}/${e}/${t}/forms/builtin/${u}/${o}`,qv=({clusterName:e,namespace:t,type:n,typeName:i,apiGroup:o,apiVersion:a})=>n==="crd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:n==="nonCrd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${i}`,Wv=Ye(q.Card)`
476
+ `},_v=({onAddClick:e})=>S.jsx(Cv.CustomCard,{onClick:e,children:S.jsx(wn.PlusOutlined,{})}),on=[];for(let e=0;e<256;++e)on.push((e+256).toString(16).slice(1));function kv(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}let Wc;const Tv=new Uint8Array(16);function Iv(){if(!Wc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Wc=crypto.getRandomValues.bind(crypto)}return Wc(Tv)}const Tp={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ov(e,t,n){if(Tp.randomUUID&&!e)return Tp.randomUUID();e=e||{};const i=e.random||(e.rng||Iv)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,kv(i)}const Fv=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:d})=>{const[g]=q.Form.useForm(),p=q.Form.useWatch("type",g),v=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,C=E=>{if(typeof a=="boolean"){Qo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:Ov()},spec:{...E}}}).then(()=>{u(!1),f()}).catch(b=>{(Xo(b)||b instanceof Error)&&l(b)}).finally(()=>u(!1));return}Zo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}/${a.metadata.name}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:a.metadata.name,resourceVersion:a.metadata.resourceVersion},spec:{...E}}}).then(()=>{u(!1),d()}).catch(b=>{(Xo(b)||b instanceof Error)&&l(b)}).finally(()=>u(!1))},A=()=>{g.validateFields().then(()=>{C(g.getFieldsValue())}).catch(()=>console.log("Validating error"))};return S.jsx(q.Modal,{title:typeof a=="boolean"?"Add card":"Edit плитку",open:a!==!1,onCancel:()=>u(!1),onOk:()=>A(),children:S.jsxs(q.Form,{form:g,name:"control-hooks",initialValues:{...v},children:[S.jsx(q.Form.Item,{label:"Name",name:"name",children:S.jsx(q.Input,{required:!0})}),S.jsx(q.Form.Item,{label:"Description",name:"description",children:S.jsx(q.Input,{required:!0})}),S.jsx(q.Form.Item,{label:"Icon",name:"icon",children:S.jsx(q.Input.TextArea,{placeholder:"SVG-иконка, <svg /> -> base64",maxLength:void 0,required:!0})}),S.jsx(q.Form.Item,{label:"Resources type",name:"type",children:S.jsx(q.Select,{placeholder:"Choose resource type",options:[{value:"direct",label:"Direct link"},{value:"crd",label:"CRD"},{value:"nonCrd",label:"API"},{value:"built-in",label:"Built-in"}]})}),S.jsx(q.Form.Item,{label:"Enter API group",name:"apiGroup",children:S.jsx(q.Input,{disabled:p==="direct"||p==="built-in"})}),S.jsx(q.Form.Item,{label:"Enter API version",name:"apiVersion",children:S.jsx(q.Input,{disabled:p==="direct"})}),S.jsx(q.Form.Item,{label:"Enter resource type",name:"typeName",children:S.jsx(q.Input,{disabled:p==="direct"})}),S.jsx(q.Form.Item,{label:"Enter path",name:"pathToNav",children:S.jsx(q.Input,{disabled:p!=="direct"})}),S.jsx(q.Form.Item,{label:"Tags",name:"tags",children:S.jsx(q.Select,{mode:"tags",placeholder:"Enter tags. Separators: comma and space",tokenSeparators:[","," "],dropdownStyle:{display:"none"}})}),S.jsx(q.Form.Item,{label:"Disabled",name:"disabled",children:S.jsx(q.Switch,{})}),S.jsx(q.Form.Item,{label:"Hidden",name:"hidden",children:S.jsx(q.Switch,{})})]})})},Bv=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>{const f="v1";return n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/crd-table/${a}/${u}/${f}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/api-table/${a}/${u}/${o}`:`/${l}/${e}/${t}/builtin-table/${o}`},Dv=({clusterName:e,namespace:t,type:n,pathToNav:i,typeName:o,apiGroup:a,apiVersion:u,baseprefix:l})=>n==="direct"&&i?i:n==="crd"?`/${l}/${e}/${t}/forms/crds/${a}/${u}/${o}`:n==="nonCrd"?`/${l}/${e}/${t}/forms/apis/${a}/${u}/${o}`:`/${l}/${e}/${t}/forms/builtin/${u}/${o}`,Rv=({clusterName:e,namespace:t,type:n,typeName:i,apiGroup:o,apiVersion:a})=>n==="crd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:n==="nonCrd"?`/api/clusters/${e}/k8s/apis/${o}/${a}${t?`/namespaces/${t}`:""}/${i}`:`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${i}`,Lv=Je(q.Card)`
477
477
  position: relative;
478
478
  width: 238px;
479
479
  overflow-x: auto;
@@ -492,7 +492,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
492
492
  overflow-x: auto;
493
493
  padding: 8px;
494
494
  }
495
- `,Kv=Ye.div`
495
+ `,Pv=Je.div`
496
496
  min-width: 45px;
497
497
  min-height: 45px;
498
498
  padding: 6px;
@@ -501,11 +501,11 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
501
501
  width: 45px;
502
502
  height: 45px;
503
503
  }
504
- `,Hv=Ye.div`
504
+ `,Nv=Je.div`
505
505
  overflow-x: auto;
506
506
  scrollbar-width: thin;
507
507
  margin-bottom: 20px;
508
- `,zv=Ye.div`
508
+ `,jv=Je.div`
509
509
  padding-left: 6px;
510
510
  padding-right: 6px;
511
511
  font-size: 16px;
@@ -514,7 +514,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
514
514
  span {
515
515
  font-weight: 700;
516
516
  }
517
- `,Gv=Ye.div`
517
+ `,$v=Je.div`
518
518
  margin-top: 6px;
519
519
  margin-bottom: 6px;
520
520
  padding-left: 6px;
@@ -522,21 +522,21 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
522
522
  display: flex;
523
523
  flex-flow: row wrap;
524
524
  align-items: flex-start;
525
- `,Jv=Ye(q.Tag)`
525
+ `,Mv=Je(q.Tag)`
526
526
  margin-right: 4px;
527
527
  margin-bottom: 4px;
528
528
 
529
529
  &:last-child {
530
530
  margin-right: 0;
531
531
  }
532
- `,Yv=Ye.div`
532
+ `,Uv=Je.div`
533
533
  padding-left: 6px;
534
534
  padding-right: 6px;
535
- `,Xv=Ye.div`
535
+ `,Vv=Je.div`
536
536
  position: absolute;
537
537
  bottom: 6px;
538
538
  right: 6px;
539
- `,Gr={CustomCard:Wv,ImageContainer:Kv,OverflowContainer:Hv,TitleContainer:zv,TagsContainer:Gv,CustomTag:Jv,DescriptionContainer:Yv,EditButtonContainer:Xv},zc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:g,tags:p,disabled:v,isEditMode:C,onDeleteClick:S,onEditClick:E,addedMode:b})=>{const{useToken:B}=q.theme,{token:N}=B(),_=lr.useNavigate();let k="";try{k=window.atob(i)}catch{k="Can't decode"}const F=b?Uv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:g,baseprefix:e}):Vv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:g,baseprefix:e}),P=b&&u!=="direct"?qv({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:h,apiVersion:g}):void 0,{data:I,error:W}=tn({uri:P||"",queryKey:[P||""],refetchInterval:!1,isEnabled:b&&P!==void 0});return b&&(W||u==="direct")?null:A.jsx(Gr.CustomCard,{$isDisabled:v,$hoverColor:N.colorPrimary,onClick:()=>v?null:_(F),children:A.jsxs(q.Flex,{vertical:!0,style:{width:"100%",height:"100%"},justify:"spaceBetween",children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Gr.ImageContainer,{dangerouslySetInnerHTML:{__html:k}}),C&&A.jsx("div",{onClick:J=>{J.preventDefault(),J.stopPropagation(),S&&S()},children:A.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M10.5 0C4.70156 0 0 4.70156 0 10.5C0 16.2984 4.70156 21 10.5 21C16.2984 21 21 16.2984 21 10.5C21 4.70156 16.2984 0 10.5 0ZM15 11.0625C15 11.1656 14.9156 11.25 14.8125 11.25H6.1875C6.08437 11.25 6 11.1656 6 11.0625V9.9375C6 9.83438 6.08437 9.75 6.1875 9.75H14.8125C14.9156 9.75 15 9.83438 15 9.9375V11.0625Z",fill:"currentColor"})})})]}),A.jsxs(Gr.OverflowContainer,{children:[A.jsxs(Gr.TitleContainer,{children:[n," ",b&&A.jsxs("span",{children:["x",I?.items?.length]})]}),A.jsx(Gr.TagsContainer,{children:p.map(J=>A.jsx(Gr.CustomTag,{children:J},J))}),A.jsx(Gr.DescriptionContainer,{children:A.jsx(q.Typography.Text,{type:"secondary",children:t})})]}),A.jsx(Gr.EditButtonContainer,{children:C&&A.jsx("div",{onClick:J=>{J.preventDefault(),J.stopPropagation(),E&&E()},children:A.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:"currentColor"})})})})]})})},Qv=({uniqueTags:e,selectedTags:t,onSelectedTags:n})=>{const i=e.map(o=>({key:o,value:o}));return A.jsx(q.Select,{mode:"tags",placeholder:"Search",tokenSeparators:[","," "," "],allowClear:!0,options:i,onClear:()=>{n([])},value:t,onChange:o=>n(o),style:{width:"240px"}})},Zv={BigValue:Ye.div`
539
+ `,Gr={CustomCard:Lv,ImageContainer:Pv,OverflowContainer:Nv,TitleContainer:jv,TagsContainer:$v,CustomTag:Mv,DescriptionContainer:Uv,EditButtonContainer:Vv},Hc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,tags:p,disabled:v,isEditMode:C,onDeleteClick:A,onEditClick:E,addedMode:b})=>{const{useToken:B}=q.theme,{token:N}=B(),_=lr.useNavigate();let k="";try{k=window.atob(i)}catch{k="Can't decode"}const F=b?Bv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,baseprefix:e}):Dv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,baseprefix:e}),R=b&&u!=="direct"?Rv({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:d,apiVersion:g}):void 0,{data:O,error:W}=tn({uri:R||"",queryKey:[R||""],refetchInterval:!1,isEnabled:b&&R!==void 0});return b&&(W||u==="direct")?null:S.jsx(Gr.CustomCard,{$isDisabled:v,$hoverColor:N.colorPrimary,onClick:()=>v?null:_(F),children:S.jsxs(q.Flex,{vertical:!0,style:{width:"100%",height:"100%"},justify:"spaceBetween",children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx(Gr.ImageContainer,{dangerouslySetInnerHTML:{__html:k}}),C&&S.jsx("div",{onClick:J=>{J.preventDefault(),J.stopPropagation(),A&&A()},children:S.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M10.5 0C4.70156 0 0 4.70156 0 10.5C0 16.2984 4.70156 21 10.5 21C16.2984 21 21 16.2984 21 10.5C21 4.70156 16.2984 0 10.5 0ZM15 11.0625C15 11.1656 14.9156 11.25 14.8125 11.25H6.1875C6.08437 11.25 6 11.1656 6 11.0625V9.9375C6 9.83438 6.08437 9.75 6.1875 9.75H14.8125C14.9156 9.75 15 9.83438 15 9.9375V11.0625Z",fill:"currentColor"})})})]}),S.jsxs(Gr.OverflowContainer,{children:[S.jsxs(Gr.TitleContainer,{children:[n," ",b&&S.jsxs("span",{children:["x",O?.items?.length]})]}),S.jsx(Gr.TagsContainer,{children:p.map(J=>S.jsx(Gr.CustomTag,{children:J},J))}),S.jsx(Gr.DescriptionContainer,{children:S.jsx(q.Typography.Text,{type:"secondary",children:t})})]}),S.jsx(Gr.EditButtonContainer,{children:C&&S.jsx("div",{onClick:J=>{J.preventDefault(),J.stopPropagation(),E&&E()},children:S.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:"currentColor"})})})})]})})},qv=({uniqueTags:e,selectedTags:t,onSelectedTags:n})=>{const i=e.map(o=>({key:o,value:o}));return S.jsx(q.Select,{mode:"tags",placeholder:"Search",tokenSeparators:[","," "," "],allowClear:!0,options:i,onClear:()=>{n([])},value:t,onChange:o=>n(o),style:{width:"240px"}})},Wv={BigValue:Je.div`
540
540
  font-size: 36px;
541
541
  line-height: 36px;
542
542
  font-weight: 700;
@@ -549,10 +549,10 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
549
549
  -webkit-box-orient: vertical;
550
550
  line-clamp: 1;
551
551
  word-break: break-all;
552
- `},jp=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=q.notification.useNotification(),[h,g]=Z.useState(!1),[p,v]=Z.useState(!1),[C,S]=Z.useState(!1),[E,b]=Z.useState(),[B,N]=Z.useState(),[_,k]=Z.useState([]),[F,P]=Z.useState([]),[I,W]=Z.useState([]),[J,ce]=Z.useState([]),{data:le,isLoading:ge,error:ye}=tn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),Ce=Kr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),pe=Kr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),Re=Kr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),Se=()=>l.success({message:"Card created",key:"create-marketplace-success"}),Ee=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Z.useEffect(()=>{le&&(h?(k(le.items.map(({spec:Ae})=>Ae).sort()),W(le.items.flatMap(({spec:Ae})=>Ae.tags).filter((Ae,me,Me)=>Me.indexOf(Ae)===me))):(k(le.items.map(({spec:Ae})=>Ae).filter(({hidden:Ae})=>Ae!==!0).sort()),W(le.items.filter(({spec:Ae})=>Ae.hidden!==!0).flatMap(({spec:Ae})=>Ae.tags).filter((Ae,me,Me)=>Me.indexOf(Ae)===me))))},[le,h]),Z.useEffect(()=>{let Ae=[];J&&J.length>0?Ae=_.filter(({name:me,description:Me,tags:Y})=>J.some(Q=>me.toLowerCase().includes(Q.toLowerCase()))||J.some(Q=>Me.toLowerCase().includes(Q.toLowerCase()))||J.some(Q=>Y.some(ae=>ae.toLowerCase().includes(Q.toLowerCase())))).sort():Ae=_.sort(),P(Ae)},[J,_]),ye)return A.jsx("div",{children:JSON.stringify(ye)});if(ge)return A.jsx(q.Spin,{});if(!le)return A.jsx("div",{children:"No panels"});const He=()=>{g(!h)};return A.jsxs(A.Fragment,{children:[f,A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx("div",{children:A.jsxs(q.Flex,{gap:12,vertical:!0,children:[A.jsx("div",{children:A.jsx(q.Typography.Text,{type:"secondary",children:"Available Products"})}),A.jsx("div",{children:A.jsx(Zv.BigValue,{children:"Marketplace"})})]})}),A.jsx("div",{children:A.jsxs(q.Flex,{gap:12,vertical:!0,children:[A.jsx(Qv,{uniqueTags:I,selectedTags:J,onSelectedTags:ce}),(Ce.data?.status.allowed||pe.data?.status.allowed||Re.data?.status.allowed)&&A.jsxs(q.Flex,{align:"center",gap:8,children:[A.jsx(q.Switch,{defaultChecked:!0,checked:h,onClick:He})," Edit Mode"]})]})})]}),A.jsx(Cr,{$space:20,$samespace:!0}),E&&A.jsx(q.Alert,{description:JSON.stringify(E),message:"Card was not created",onClose:()=>b(void 0),type:"error"}),B&&A.jsx(q.Alert,{description:JSON.stringify(B),message:"Card was not deleted",onClose:()=>N(void 0),type:"error"}),A.jsxs(q.Flex,{gap:22,wrap:!0,children:[e&&t&&F.map(({name:Ae,description:me,icon:Me,type:Y,pathToNav:Q,typeName:ae,apiGroup:Be,apiVersion:We,tags:_e,disabled:De})=>A.jsx(zc,{baseprefix:u,description:me,disabled:De,icon:Me,isEditMode:h,name:Ae,clusterName:e,namespace:t,type:Y,pathToNav:Q,typeName:ae,apiGroup:Be,apiVersion:We,tags:_e,onDeleteClick:()=>{const Oe=le.items.find(({spec:Le})=>Le.name===Ae);S(Oe?{name:Oe.metadata.name}:!1)},onEditClick:()=>{v(le.items.find(({spec:Oe})=>Oe.name===Ae)||!1)}},Ae)),h&&A.jsx(Rv,{onAddClick:()=>{v(!0)}})]}),p&&A.jsx(Mv,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:p,setError:b,setIsOpen:v,onCreateSuccess:Se,onUpdateSuccess:Ee}),typeof C!="boolean"&&A.jsx(nc,{name:C.name,onClose:()=>S(!1),endpoint:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/${C.name}`})]})},eA=({onDelete:e,onUpdate:t})=>{const n=()=>{const i=[];return t&&i.push({key:"update",label:A.jsx("div",{onClick:o=>{o.stopPropagation(),t()},children:A.jsxs(q.Flex,{align:"center",gap:8,children:[A.jsx(Oh,{}),"Edit"]})})}),e&&i.push({key:"delete",label:A.jsx("div",{onClick:o=>{o.stopPropagation(),e()},children:A.jsxs(q.Flex,{align:"center",gap:8,children:[A.jsx(Th,{}),"Delete"]})})}),i};return A.jsx(q.Dropdown,{placement:"bottomRight",menu:{items:n()},trigger:["click"],children:A.jsx(q.Button,{type:"text",onClick:i=>{i.preventDefault(),i.stopPropagation()},children:A.jsx(wn.EllipsisOutlined,{})})})},tA=({accessGroups:e})=>{const t=()=>e.map((n,i)=>({key:`${n}-${i}`,label:A.jsx("div",{onClick:o=>{o.stopPropagation()},children:n})}));return A.jsx(q.Dropdown,{placement:"bottomRight",menu:{items:t()},trigger:["click"],children:A.jsxs(q.Button,{type:"link",onClick:n=>{n.preventDefault(),n.stopPropagation()},children:["Access Groups",A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M12.8127 3H11.6408C11.5611 3 11.4861 3.03906 11.4393 3.10313L7.0002 9.22188L2.56114 3.10313C2.51426 3.03906 2.43926 3 2.35957 3H1.1877C1.08614 3 1.02676 3.11563 1.08614 3.19844L6.59551 10.7937C6.79551 11.0687 7.20489 11.0687 7.40332 10.7937L12.9127 3.19844C12.9736 3.11563 12.9143 3 12.8127 3Z",fill:"currentColor"})})]})})},nA=Ye.div`
552
+ `},Ip=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=q.notification.useNotification(),[d,g]=Z.useState(!1),[p,v]=Z.useState(!1),[C,A]=Z.useState(!1),[E,b]=Z.useState(),[B,N]=Z.useState(),[_,k]=Z.useState([]),[F,R]=Z.useState([]),[O,W]=Z.useState([]),[J,le]=Z.useState([]),{data:ce,isLoading:ge,error:ye}=tn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),he=Hr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),me=Hr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),Le=Hr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),ke=()=>l.success({message:"Card created",key:"create-marketplace-success"}),xe=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Z.useEffect(()=>{ce&&(d?(k(ce.items.map(({spec:Ae})=>Ae).sort()),W(ce.items.flatMap(({spec:Ae})=>Ae.tags).filter((Ae,Se,We)=>We.indexOf(Ae)===Se))):(k(ce.items.map(({spec:Ae})=>Ae).filter(({hidden:Ae})=>Ae!==!0).sort()),W(ce.items.filter(({spec:Ae})=>Ae.hidden!==!0).flatMap(({spec:Ae})=>Ae.tags).filter((Ae,Se,We)=>We.indexOf(Ae)===Se))))},[ce,d]),Z.useEffect(()=>{let Ae=[];J&&J.length>0?Ae=_.filter(({name:Se,description:We,tags:Y})=>J.some(Q=>Se.toLowerCase().includes(Q.toLowerCase()))||J.some(Q=>We.toLowerCase().includes(Q.toLowerCase()))||J.some(Q=>Y.some(ue=>ue.toLowerCase().includes(Q.toLowerCase())))).sort():Ae=_.sort(),R(Ae)},[J,_]),ye)return S.jsx("div",{children:JSON.stringify(ye)});if(ge)return S.jsx(q.Spin,{});if(!ce)return S.jsx("div",{children:"No panels"});const tt=()=>{g(!d)};return S.jsxs(S.Fragment,{children:[f,S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx("div",{children:S.jsxs(q.Flex,{gap:12,vertical:!0,children:[S.jsx("div",{children:S.jsx(q.Typography.Text,{type:"secondary",children:"Available Products"})}),S.jsx("div",{children:S.jsx(Wv.BigValue,{children:"Marketplace"})})]})}),S.jsx("div",{children:S.jsxs(q.Flex,{gap:12,vertical:!0,children:[S.jsx(qv,{uniqueTags:O,selectedTags:J,onSelectedTags:le}),(he.data?.status.allowed||me.data?.status.allowed||Le.data?.status.allowed)&&S.jsxs(q.Flex,{align:"center",gap:8,children:[S.jsx(q.Switch,{defaultChecked:!0,checked:d,onClick:tt})," Edit Mode"]})]})})]}),S.jsx(Cr,{$space:20,$samespace:!0}),E&&S.jsx(q.Alert,{description:JSON.stringify(E),message:"Card was not created",onClose:()=>b(void 0),type:"error"}),B&&S.jsx(q.Alert,{description:JSON.stringify(B),message:"Card was not deleted",onClose:()=>N(void 0),type:"error"}),S.jsxs(q.Flex,{gap:22,wrap:!0,children:[e&&t&&F.map(({name:Ae,description:Se,icon:We,type:Y,pathToNav:Q,typeName:ue,apiGroup:De,apiVersion:Ye,tags:Te,disabled:Re})=>S.jsx(Hc,{baseprefix:u,description:Se,disabled:Re,icon:We,isEditMode:d,name:Ae,clusterName:e,namespace:t,type:Y,pathToNav:Q,typeName:ue,apiGroup:De,apiVersion:Ye,tags:Te,onDeleteClick:()=>{const Oe=ce.items.find(({spec:Ne})=>Ne.name===Ae);A(Oe?{name:Oe.metadata.name}:!1)},onEditClick:()=>{v(ce.items.find(({spec:Oe})=>Oe.name===Ae)||!1)}},Ae)),d&&S.jsx(_v,{onAddClick:()=>{v(!0)}})]}),p&&S.jsx(Fv,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:p,setError:b,setIsOpen:v,onCreateSuccess:ke,onUpdateSuccess:xe}),typeof C!="boolean"&&S.jsx(ec,{name:C.name,onClose:()=>A(!1),endpoint:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/${C.name}`})]})},Hv=({onDelete:e,onUpdate:t})=>{const n=()=>{const i=[];return t&&i.push({key:"update",label:S.jsx("div",{onClick:o=>{o.stopPropagation(),t()},children:S.jsxs(q.Flex,{align:"center",gap:8,children:[S.jsx(kh,{}),"Edit"]})})}),e&&i.push({key:"delete",label:S.jsx("div",{onClick:o=>{o.stopPropagation(),e()},children:S.jsxs(q.Flex,{align:"center",gap:8,children:[S.jsx(_h,{}),"Delete"]})})}),i};return S.jsx(q.Dropdown,{placement:"bottomRight",menu:{items:n()},trigger:["click"],children:S.jsx(q.Button,{type:"text",onClick:i=>{i.preventDefault(),i.stopPropagation()},children:S.jsx(wn.EllipsisOutlined,{})})})},Kv=({accessGroups:e})=>{const t=()=>e.map((n,i)=>({key:`${n}-${i}`,label:S.jsx("div",{onClick:o=>{o.stopPropagation()},children:n})}));return S.jsx(q.Dropdown,{placement:"bottomRight",menu:{items:t()},trigger:["click"],children:S.jsxs(q.Button,{type:"link",onClick:n=>{n.preventDefault(),n.stopPropagation()},children:["Access Groups",S.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M12.8127 3H11.6408C11.5611 3 11.4861 3.03906 11.4393 3.10313L7.0002 9.22188L2.56114 3.10313C2.51426 3.03906 2.43926 3 2.35957 3H1.1877C1.08614 3 1.02676 3.11563 1.08614 3.19844L6.59551 10.7937C6.79551 11.0687 7.20489 11.0687 7.40332 10.7937L12.9127 3.19844C12.9736 3.11563 12.9143 3 12.8127 3Z",fill:"currentColor"})})]})})},zv=Je.div`
553
553
  width: 45.33px;
554
554
  height: 1px;
555
- `;Ye.div`
555
+ `;Je.div`
556
556
  font-size: 36px;
557
557
  line-height: 36px;
558
558
  font-weight: 700;
@@ -565,5 +565,5 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
565
565
  -webkit-box-orient: vertical;
566
566
  line-clamp: 1;
567
567
  word-break: break-all;
568
- `;const rA={ActionMenuPlaceholder:nA},$p=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectApiGroup:o,baseProjectVersion:a,mpResourceName:u,projectResourceName:l,baseprefix:f,accessGroups:h,children:g})=>{const p=lr.useNavigate(),{data:v,isLoading:C}=tn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${u}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),{data:S,isLoading:E,error:b}=tn({uri:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[B,N]=Z.useState(!1),_=Kr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),k=Kr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),F=Z.useCallback(()=>{p(`/${f}/${e}/forms/apis/${o}/${a}/${l}/${t}?backlink=${f}/clusters/${e}`)},[f,e,t,o,a,l,p]);if(E)return A.jsx(q.Spin,{});if(!S||b)return null;const P=S.status.conditions.find(({type:I})=>I==="Ready");return A.jsxs(A.Fragment,{children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx("div",{children:g}),A.jsx("div",{children:A.jsxs(q.Flex,{gap:24,vertical:!0,children:[A.jsx(q.Flex,{justify:"flex-end",children:P?.status==="True"&&(_.data?.status.allowed||k.data?.status.allowed)?A.jsx(eA,{onDelete:k.data?.status.allowed?()=>{N(!0)}:void 0,onUpdate:_.data?.status.allowed?F:void 0}):A.jsx(rA.ActionMenuPlaceholder,{})}),A.jsx(tA,{accessGroups:h})]})})]}),A.jsx(Cr,{$space:24,$samespace:!0}),A.jsx(q.Typography.Text,{type:"secondary",children:"Added Products"}),A.jsx(Cr,{$space:12,$samespace:!0}),A.jsxs(q.Flex,{gap:22,wrap:!0,children:[C&&A.jsx(q.Spin,{}),e&&t&&v?.items.map(({spec:I})=>I).sort().map(({name:I,description:W,icon:J,type:ce,pathToNav:le,typeName:ge,apiGroup:ye,apiVersion:Ce,tags:pe,disabled:Re})=>A.jsx(zc,{baseprefix:f,description:W,disabled:Re,icon:J,isEditMode:!1,name:I,clusterName:e,namespace:t,type:ce,pathToNav:le,typeName:ge,apiGroup:ye,apiVersion:Ce,tags:pe,addedMode:!0},I))]}),B&&A.jsx(nc,{name:S.metadata.name,onClose:()=>{N(!1),p(`${f}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${S.metadata.name}`})]})},Gc=({items:e,components:t})=>A.jsx(A.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return A.jsxs("div",{children:["❌ No component registered for type: ",String(n.type)]},i);let a=n.data;if(typeof n.data=="object"&&n.data!==null&&"items"in n.data&&Array.isArray(n.data.items)){const{items:l,...f}=n.data;a={...f,items:l.map(h=>({...h,children:Array.isArray(h.children)?A.jsx(Gc,{items:h.children,components:t}):h.children}))}}const u=n.children?A.jsx(Gc,{items:n.children,components:t}):null;return A.jsx(Z.Fragment,{children:A.jsx(o,{data:a,children:u})},i)})}),Mp=e=>A.jsx(Gc,{...e}),iA=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return A.jsxs(q.Typography.Text,{...o,children:[i,t]})},sA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Card,{...i,children:t})},oA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Flex,{...i,children:t})},aA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Row,{...i,children:t})},uA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Col,{...i,children:t})},cA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Tabs,{...i,children:t})},lA=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return A.jsxs(q.Button,{...o,children:[e.text,t]})},Up=()=>{const e=Z.createContext(null);return{Provider:({children:i,value:o})=>{const a=Z.useMemo(()=>o,Object.values(o));return A.jsx(e.Provider,{value:a,children:i})},useTypedContext:()=>{const i=Z.useContext(e);if(!i)throw new Error("useTypedContext must be used within a Provider");return i}}},Vp=Up(),fA=Vp.Provider,so=Vp.useTypedContext,hA=({data:e})=>{const n=so().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=Ct({template:e.text,replaceValues:n});return A.jsx("span",{children:i})},qp=Z.createContext(void 0),dA=({urls:e,children:t})=>{const n=bn.useQueries({queries:e.map((f,h)=>({queryKey:["multi",h,f],queryFn:async()=>(await nt.get(f)).data}))}),i={},o=[];n.forEach((f,h)=>{i[`req${h}`]=f.data,o[h]=f.error??null});const a=n.some(f=>f.isLoading),u=n.some(f=>f.isError),l=Z.useMemo(()=>({data:i,isLoading:a,isError:u,errors:o}),[JSON.stringify(i),a,u,JSON.stringify(o)]);return A.jsx(qp.Provider,{value:l,children:t})},Ta=()=>{const e=Z.useContext(qp);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},pA={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx("div",{...i,children:t})},antdText:iA,antdCard:sA,antdFlex:oA,antdRow:aA,antdCol:uA,antdTabs:cA,antdButton:lA,partsOfUrl:hA,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Ta(),a=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const h=parseInt(l,10),g=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(v=>v[1]),p=Wr.get(t[`req${h}`],g);return p!=null?String(p):""}catch{return u}}):"",[e?.text,t]);return n?A.jsx("div",{children:"Loading..."}):i?A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:o.map((u,l)=>u&&A.jsx("li",{children:u.message},l))})]}):A.jsx("span",{children:a})},parsedText:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Ta(),a=so(),u=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(h,g,p)=>{try{const v=parseInt(g,10),C=Array.from(p.matchAll(/['"]([^'"]+)['"]/g)).map(E=>E[1]),S=Wr.get(t[`req${v}`],C);return S!=null?String(S):""}catch{return h}}):"",[e?.text,t]);if(n)return A.jsx("div",{children:"Loading..."});if(i)return A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:o.map((h,g)=>h&&A.jsx("li",{children:h.message},g))})]});const l=a.partsOfUrl.reduce((h,g,p)=>(h[p.toString()]=g,h),{}),f=Ct({template:u,replaceValues:l});return A.jsx("span",{children:f})},ProjectInfoCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,accessGroups:a,...u}=e,{data:l,isError:f,errors:h}=Ta(),p=so().partsOfUrl.reduce((E,b,B)=>(E[B.toString()]=b,E),{}),v=Ct({template:i,replaceValues:p}),C=Ct({template:o,replaceValues:p}),S=a.map(E=>{const b=E.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(N,_,k)=>{try{const F=parseInt(_,10),P=Array.from(k.matchAll(/['"]([^'"]+)['"]/g)).map(W=>W[1]),I=Wr.get(l[`req${F}`],P);return I!=null?String(I):""}catch{return N}});return Ct({template:b,replaceValues:p})});return f?A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:h.map((E,b)=>E&&A.jsx("li",{children:E.message},b))})]}):A.jsx($p,{clusterName:v,namespace:C,accessGroups:S,...u,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=so().partsOfUrl.reduce((g,p,v)=>(g[v.toString()]=p,g),{}),f=Ct({template:i,replaceValues:l}),h=Ct({template:o,replaceValues:l});return A.jsx(jp,{clusterName:f,namespace:h,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(Lh,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(Cr,{...i})},StatusText:({data:e,children:t})=>{const{id:n,requestIndex:i,jsonPath:o,criteria:a,valueToCompare:u,successText:l,errorText:f,...h}=e,{data:g,isLoading:p,isError:v,errors:C}=Ta();let S;try{[S]=Qh.query(g[`req${i}`],`$${o}`)}catch(b){return A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:JSON.stringify(b)})]})}const E=a==="equals"?u===S:u!==S;return p?A.jsx("div",{children:"Loading..."}):v?A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:C.map((b,B)=>b&&A.jsx("li",{children:b.message},B))})]}):A.jsxs(q.Typography.Text,{type:E?"success":"danger",...h,children:[E?l:f,t]})},SidebarProvider:({data:e,children:t})=>{const{id:n,...i}=e,a=so().partsOfUrl.reduce((u,l,f)=>(u[f.toString()]=l,u),{});return A.jsx(qh,{replaceValues:a,...i})}},Wp=({urls:e,locationPathname:t})=>{const n=t.split("/").reduce((i,o,a)=>(i[a.toString()]=o,i),{});return e.map(i=>Ct({template:i,replaceValues:n}))},gA=e=>{const t=lr.useLocation(),{urlsToFetch:n}=e,i=Wp({urls:n,locationPathname:t.pathname});return A.jsx(fA,{value:{partsOfUrl:t.pathname.split("/")},children:A.jsx(dA,{urls:i,children:A.jsx(Mp,{...e})})})},yA=e=>typeof e=="object"&&"value"in e&&"highlight"in e,mA=e=>{const t={};e.forEach(({apis:i,highlightString:o})=>{i.forEach(a=>{const[u,l]=a.split("/"),f=u.split(".");if(f.length<2)return;const h=f.slice(-2).join("."),g=f.slice(0,-2).reverse();let p=t[h]=t[h]||{};for(const v of g)p[v]=p[v]||{},p=p[v];p[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(yA(u))return{title:u.highlight?`${u.value} (pref)`:u.value,key:u.value,isLeaf:!0};const f=n(u,l);return{title:a,key:l,children:f,isLeaf:f.length===0}});return Object.entries(t).map(([i,o])=>({title:i,key:i,children:n(o,i),isLeaf:!1}))},wA=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),bA=({swagger:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:h})=>h==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:h})=>!o.includes(h)&&!h.includes(".k8s.io")).sort((h,g)=>h.name.localeCompare(g.name)),l=t?.groups.filter(({name:h})=>o.includes(h)||h.includes(".k8s.io")).sort((h,g)=>h.name.localeCompare(g.name)),f=i&&e?n?.resources?.filter(({name:h})=>Kc({typeName:h,swagger:e}).isNamespaceScoped):n?.resources;return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},vA=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:g,apiExtensionVersion:p,crdName:v,pathname:C})=>e.map(({pathToMatch:E,pathToNavigate:b,keysToParse:B})=>({pathToMatch:E?Ct({template:E,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:g,apiExtensionVersion:p,crdName:v}}):void 0,pathToNavigate:b?Ct({template:b,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:g,apiExtensionVersion:p,crdName:v}}):void 0,keysToParse:B})).find(({pathToMatch:E})=>E?lr.matchPath(E,C):!1),Kp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumns)&&e.spec.additionalPrinterColumns.every(t=>Object.keys(t).includes("name")&&Object.keys(t).includes("jsonPath"))),Hp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsUndefinedValues)&&e.spec.additionalPrinterColumnsUndefinedValues.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),zp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsTrimLengths)&&e.spec.additionalPrinterColumnsTrimLengths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Gp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsColWidths)&&e.spec.additionalPrinterColumnsColWidths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),AA=({columnsOverridesData:e,overrideType:t})=>{const n=e?.items.find(l=>typeof l=="object"&&!Array.isArray(l)&&l!==null&&l.spec&&typeof l.spec=="object"&&!Array.isArray(l.spec)&&l.spec!==null&&typeof l.spec.overrideType=="string"&&l.spec.overrideType===t),i=Kp(n)?n.spec.additionalPrinterColumns:void 0,o=Hp(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=zp(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Gp(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},SA=async({clusterName:e})=>nt.get(`/openapi-bff/swagger/swagger/${e}`),Jp=async()=>nt.get("/clusterlist"),Yp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return nt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},Xp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>nt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Qp=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return nt.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Zp=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>nt.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),e0=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>nt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),t0=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>nt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),n0=async({clusterName:e})=>nt.get(`/api/clusters/${e}/k8s/apis/`),r0=async({clusterName:e,apiGroup:t,apiVersion:n})=>nt.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),i0=async({clusterName:e})=>nt.get(`/api/clusters/${e}/k8s/api/v1`),s0=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>nt.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),EA=({refetchInterval:e})=>bn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Jp()).data,refetchInterval:e!==void 0?e:5e3}),xA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>bn.useQuery({queryKey:["useApiResources",e,t,n,i,o,a],queryFn:async()=>{const l=await Yp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a}),f=JSON.parse(JSON.stringify(l.data));return f.metadata?.resourceVersion&&delete f.metadata.resourceVersion,f},refetchInterval:u!==void 0?u:5e3}),CA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>bn.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Xp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),_A=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>bn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await Qp({clusterName:e,namespace:t,typeName:n,limit:i}),u=JSON.parse(JSON.stringify(a.data));return u.metadata?.resourceVersion&&delete u.metadata.resourceVersion,u},refetchInterval:o!==void 0?o:5e3}),kA=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>bn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Zp({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),TA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>bn.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>{const u=await e0({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o}),l=JSON.parse(JSON.stringify(u.data));return l.metadata?.resourceVersion&&delete l.metadata.resourceVersion,l},refetchInterval:a!==void 0?a:5e3}),OA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>bn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await t0({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),IA=({clusterName:e})=>bn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>{const t=await n0({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),FA=({clusterName:e,apiGroup:t,apiVersion:n})=>bn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await r0({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),BA=({clusterName:e})=>bn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await i0({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),DA=({clusterName:e,apiExtensionVersion:t,crdName:n})=>bn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await s0({clusterName:e,apiExtensionVersion:t,crdName:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3});oe.BackToDefaultIcon=Bh,oe.BlackholeForm=Tp,oe.BlackholeFormDataProvider=Dv,oe.ContentCard=Lh,oe.DeleteIcon=Th,oe.DeleteModal=nc,oe.DeleteModalMany=t2,oe.DownIcon=Fh,oe.DynamicComponents=pA,oe.DynamicRenderer=Mp,oe.DynamicRendererWithProviders=gA,oe.EditIcon=Oh,oe.EnrichedTable=Yh,oe.EnrichedTableProvider=p2,oe.LockedIcon=Ph,oe.ManageableBreadcrumbs=$h,oe.ManageableBreadcrumbsWithDataProvider=s2,oe.ManageableSidebar=Vh,oe.ManageableSidebarWithDataProvider=qh,oe.MarketPlace=jp,oe.MarketplaceCard=zc,oe.MinusIcon=sn,oe.PlusIcon=rc,oe.ProjectInfoCard=$p,oe.Spacer=Cr,oe.SuccessIcon=Dh,oe.TreeWithSearch=Dy,oe.UnlockedIcon=Rh,oe.UpIcon=Ih,oe.checkIfApiInstanceNamespaceScoped=Bp,oe.checkIfBuiltInInstanceNamespaceScoped=Kc,oe.checkPermission=rd,oe.createContextFactory=Up,oe.createNewEntry=Zo,oe.deleteEntry=tc,oe.feedbackIcons=qr,oe.filterSelectOptions=ac,oe.floorToDecimal=js,oe.getAllPathsFromObj=fc,oe.getApiResourceSingle=Xp,oe.getApiResourceTypes=n0,oe.getApiResourceTypesByApiGroup=r0,oe.getApiResources=Yp,oe.getBodyParametersSchema=Rp,oe.getBuiltinResourceSingle=Zp,oe.getBuiltinResourceTypes=i0,oe.getBuiltinResources=Qp,oe.getBuiltinTreeData=wA,oe.getClusterList=Jp,oe.getCrdData=s0,oe.getCrdResourceSingle=t0,oe.getCrdResources=e0,oe.getDirectUnknownResource=Nh,oe.getEnrichedColumns=Gh,oe.getEnrichedColumnsWithControls=Jh,oe.getGroupsByCategory=bA,oe.getObjectFormItemsDraft=ka,oe.getPrefixSubarrays=id,oe.getStringByName=Ft,oe.getSwagger=SA,oe.getSwaggerPathAndIsNamespaceScoped=Pp,oe.groupsToTreeData=mA,oe.isFlatObject=zh,oe.isFormOverride=Dp,oe.isWithAdditionalPrinterColumns=Kp,oe.isWithAdditionalPrinterColumnsColWidths=Gp,oe.isWithAdditionalPrinterColumnsTrimLengths=zp,oe.isWithAdditionalPrinterColumnsUndefinedValues=Hp,oe.normalizeValuesForQuotas=ia,oe.normalizeValuesForQuotasToNumber=lc,oe.overwriteMatchingKeys=Fp,oe.parseCustomOverrides=AA,oe.parseQuotaValue=R2,oe.parseQuotaValueCpu=uc,oe.parseQuotaValueMemoryAndStorage=cc,oe.prepareDataForEnrichedColumns=Zh,oe.prepareDataForManageableBreadcrumbs=jh,oe.prepareDataForManageableSidebar=Uh,oe.prepareTableMappings=vA,oe.prepareTemplate=Ct,oe.prepareUrlsToFetchForDynamicRenderer=Wp,oe.processOverride=Lp,oe.removeEmptyFormValues=Ns,oe.renameBrokenFieldBack=Gi,oe.renameBrokenFieldBackToFormAgain=ra,oe.updateEntry=ea,oe.useApiResourceSingle=CA,oe.useApiResourceTypesByGroup=FA,oe.useApiResources=xA,oe.useApisResourceTypes=IA,oe.useBuiltinResourceSingle=kA,oe.useBuiltinResourceTypes=BA,oe.useBuiltinResources=_A,oe.useClusterList=EA,oe.useCrdData=DA,oe.useCrdResourceSingle=OA,oe.useCrdResources=TA,oe.useDirectUnknownResource=tn,oe.usePermissions=Kr,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});
568
+ `;const Gv={ActionMenuPlaceholder:zv},Op=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectApiGroup:o,baseProjectVersion:a,mpResourceName:u,projectResourceName:l,baseprefix:f,accessGroups:d,children:g})=>{const p=lr.useNavigate(),{data:v,isLoading:C}=tn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${u}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),{data:A,isLoading:E,error:b}=tn({uri:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[B,N]=Z.useState(!1),_=Hr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),k=Hr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),F=Z.useCallback(()=>{p(`/${f}/${e}/forms/apis/${o}/${a}/${l}/${t}?backlink=${f}/clusters/${e}`)},[f,e,t,o,a,l,p]);if(E)return S.jsx(q.Spin,{});if(!A||b)return null;const R=A.status.conditions.find(({type:O})=>O==="Ready");return S.jsxs(S.Fragment,{children:[S.jsxs(q.Flex,{justify:"space-between",children:[S.jsx("div",{children:g}),S.jsx("div",{children:S.jsxs(q.Flex,{gap:24,vertical:!0,children:[S.jsx(q.Flex,{justify:"flex-end",children:R?.status==="True"&&(_.data?.status.allowed||k.data?.status.allowed)?S.jsx(Hv,{onDelete:k.data?.status.allowed?()=>{N(!0)}:void 0,onUpdate:_.data?.status.allowed?F:void 0}):S.jsx(Gv.ActionMenuPlaceholder,{})}),S.jsx(Kv,{accessGroups:d})]})})]}),S.jsx(Cr,{$space:24,$samespace:!0}),S.jsx(q.Typography.Text,{type:"secondary",children:"Added Products"}),S.jsx(Cr,{$space:12,$samespace:!0}),S.jsxs(q.Flex,{gap:22,wrap:!0,children:[C&&S.jsx(q.Spin,{}),e&&t&&v?.items.map(({spec:O})=>O).sort().map(({name:O,description:W,icon:J,type:le,pathToNav:ce,typeName:ge,apiGroup:ye,apiVersion:he,tags:me,disabled:Le})=>S.jsx(Hc,{baseprefix:f,description:W,disabled:Le,icon:J,isEditMode:!1,name:O,clusterName:e,namespace:t,type:le,pathToNav:ce,typeName:ge,apiGroup:ye,apiVersion:he,tags:me,addedMode:!0},O))]}),B&&S.jsx(ec,{name:A.metadata.name,onClose:()=>{N(!1),p(`${f}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${A.metadata.name}`})]})},Kc=({items:e,components:t})=>S.jsx(S.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return S.jsxs("div",{children:["❌ No component registered for type: ",String(n.type)]},i);let a=n.data;if(typeof n.data=="object"&&n.data!==null&&"items"in n.data&&Array.isArray(n.data.items)){const{items:l,...f}=n.data;a={...f,items:l.map(d=>({...d,children:Array.isArray(d.children)?S.jsx(Kc,{items:d.children,components:t}):d.children}))}}const u=n.children?S.jsx(Kc,{items:n.children,components:t}):null;return S.jsx(Z.Fragment,{children:S.jsx(o,{data:a,children:u})},i)})}),Fp=e=>S.jsx(Kc,{...e}),Jv=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return S.jsxs(q.Typography.Text,{...o,children:[i,t]})},Yv=({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(q.Card,{...i,children:t})},Xv=({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(q.Flex,{...i,children:t})},Qv=({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(q.Row,{...i,children:t})},Zv=({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(q.Col,{...i,children:t})},eS=({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(q.Tabs,{...i,children:t})},tS=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return S.jsxs(q.Button,{...o,children:[e.text,t]})},Bp=()=>{const e=Z.createContext(null);return{Provider:({children:i,value:o})=>{const a=Z.useMemo(()=>o,Object.values(o));return S.jsx(e.Provider,{value:a,children:i})},useTypedContext:()=>{const i=Z.useContext(e);if(!i)throw new Error("useTypedContext must be used within a Provider");return i}}},Dp=Bp(),nS=Dp.Provider,io=Dp.useTypedContext,rS=({data:e})=>{const n=io().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=Et({template:e.text,replaceValues:n});return S.jsx("span",{children:i})},Rp=Z.createContext(void 0),iS=({urls:e,children:t})=>{const n=bn.useQueries({queries:e.map((f,d)=>({queryKey:["multi",d,f],queryFn:async()=>(await Ue.get(f)).data}))}),i={},o=[];n.forEach((f,d)=>{i[`req${d}`]=f.data,o[d]=f.error??null});const a=n.some(f=>f.isLoading),u=n.some(f=>f.isError),l=Z.useMemo(()=>({data:i,isLoading:a,isError:u,errors:o}),[JSON.stringify(i),a,u,JSON.stringify(o)]);return S.jsx(Rp.Provider,{value:l,children:t})},_a=()=>{const e=Z.useContext(Rp);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},sS={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx("div",{...i,children:t})},antdText:Jv,antdCard:Yv,antdFlex:Xv,antdRow:Qv,antdCol:Zv,antdTabs:eS,antdButton:tS,partsOfUrl:rS,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=_a(),a=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const d=parseInt(l,10),g=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(v=>v[1]),p=Wr.get(t[`req${d}`],g);return p!=null?String(p):""}catch{return u}}):"",[e?.text,t]);return n?S.jsx("div",{children:"Loading..."}):i?S.jsxs("div",{children:[S.jsx("h4",{children:"Errors:"}),S.jsx("ul",{children:o.map((u,l)=>u&&S.jsx("li",{children:u.message},l))})]}):S.jsx("span",{children:a})},parsedText:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=_a(),a=io(),u=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(d,g,p)=>{try{const v=parseInt(g,10),C=Array.from(p.matchAll(/['"]([^'"]+)['"]/g)).map(E=>E[1]),A=Wr.get(t[`req${v}`],C);return A!=null?String(A):""}catch{return d}}):"",[e?.text,t]);if(n)return S.jsx("div",{children:"Loading..."});if(i)return S.jsxs("div",{children:[S.jsx("h4",{children:"Errors:"}),S.jsx("ul",{children:o.map((d,g)=>d&&S.jsx("li",{children:d.message},g))})]});const l=a.partsOfUrl.reduce((d,g,p)=>(d[p.toString()]=g,d),{}),f=Et({template:u,replaceValues:l});return S.jsx("span",{children:f})},ProjectInfoCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,accessGroups:a,...u}=e,{data:l,isError:f,errors:d}=_a(),p=io().partsOfUrl.reduce((E,b,B)=>(E[B.toString()]=b,E),{}),v=Et({template:i,replaceValues:p}),C=Et({template:o,replaceValues:p}),A=a.map(E=>{const b=E.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(N,_,k)=>{try{const F=parseInt(_,10),R=Array.from(k.matchAll(/['"]([^'"]+)['"]/g)).map(W=>W[1]),O=Wr.get(l[`req${F}`],R);return O!=null?String(O):""}catch{return N}});return Et({template:b,replaceValues:p})});return f?S.jsxs("div",{children:[S.jsx("h4",{children:"Errors:"}),S.jsx("ul",{children:d.map((E,b)=>E&&S.jsx("li",{children:E.message},b))})]}):S.jsx(Op,{clusterName:v,namespace:C,accessGroups:A,...u,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=io().partsOfUrl.reduce((g,p,v)=>(g[v.toString()]=p,g),{}),f=Et({template:i,replaceValues:l}),d=Et({template:o,replaceValues:l});return S.jsx(Ip,{clusterName:f,namespace:d,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(Rh,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return S.jsx(Cr,{...i})},StatusText:({data:e,children:t})=>{const{id:n,requestIndex:i,jsonPath:o,criteria:a,valueToCompare:u,successText:l,errorText:f,...d}=e,{data:g,isLoading:p,isError:v,errors:C}=_a();let A;try{[A]=Yh.query(g[`req${i}`],`$${o}`)}catch(b){return S.jsxs("div",{children:[S.jsx("h4",{children:"Errors:"}),S.jsx("ul",{children:JSON.stringify(b)})]})}const E=a==="equals"?u===A:u!==A;return p?S.jsx("div",{children:"Loading..."}):v?S.jsxs("div",{children:[S.jsx("h4",{children:"Errors:"}),S.jsx("ul",{children:C.map((b,B)=>b&&S.jsx("li",{children:b.message},B))})]}):S.jsxs(q.Typography.Text,{type:E?"success":"danger",...d,children:[E?l:f,t]})},SidebarProvider:({data:e,children:t})=>{const{id:n,...i}=e,a=io().partsOfUrl.reduce((u,l,f)=>(u[f.toString()]=l,u),{});return S.jsx(Uh,{replaceValues:a,...i})}},Lp=({urls:e,locationPathname:t})=>{const n=t.split("/").reduce((i,o,a)=>(i[a.toString()]=o,i),{});return e.map(i=>Et({template:i,replaceValues:n}))},oS=e=>{const t=lr.useLocation(),{urlsToFetch:n}=e,i=Lp({urls:n,locationPathname:t.pathname});return S.jsx(nS,{value:{partsOfUrl:t.pathname.split("/")},children:S.jsx(iS,{urls:i,children:S.jsx(Fp,{...e})})})},aS=async({typeName:e,apiGroup:t,apiVersion:n,clusterName:i})=>{const{data:o}=await Ue.post("/openapi-bff/scopes/checkScopes/checkIfApiNamespaceScoped",{typeName:e,apiGroup:t,apiVersion:n,clusterName:i}),{isClusterWide:a,isNamespaceScoped:u}=o;return{isClusterWide:a,isNamespaceScoped:u}},uS=async({typeName:e,clusterName:t})=>{const{data:n}=await Ue.post("/openapi-bff/scopes/checkScopes/checkIfBuiltInNamespaceScoped",{typeName:e,clusterName:t}),{isClusterWide:i,isNamespaceScoped:o}=n;return{isClusterWide:i,isNamespaceScoped:o}},cS=async({namespace:e,data:t,apiGroup:n,apiVersion:i,clusterName:o})=>(await Ue.post("/openapi-bff/scopes/filterScopes/filterIfApiNamespaceScoped",{namespace:e,data:t,apiGroup:n,apiVersion:i,clusterName:o})).data,Pp=async({namespace:e,data:t,clusterName:n})=>(await Ue.post("/openapi-bff/scopes/filterScopes/filterIfBuiltInNamespaceScoped",{namespace:e,data:t,clusterName:n})).data,lS=(e,t)=>{const n={...e};for(const i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(n[i]=t[i]);return n},fS=e=>typeof e=="object"&&"value"in e&&"highlight"in e,hS=e=>{const t={};e.forEach(({apis:i,highlightString:o})=>{i.forEach(a=>{const[u,l]=a.split("/"),f=u.split(".");if(f.length<2)return;const d=f.slice(-2).join("."),g=f.slice(0,-2).reverse();let p=t[d]=t[d]||{};for(const v of g)p[v]=p[v]||{},p=p[v];p[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(fS(u))return{title:u.highlight?`${u.value} (pref)`:u.value,key:u.value,isLeaf:!0};const f=n(u,l);return{title:a,key:l,children:f,isLeaf:f.length===0}});return Object.entries(t).map(([i,o])=>({title:i,key:i,children:n(o,i),isLeaf:!1}))},dS=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),pS=async({clusterName:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:d})=>d==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:d})=>!o.includes(d)&&!d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),l=t?.groups.filter(({name:d})=>o.includes(d)||d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),f=await Pp({namespace:i,data:n,clusterName:e});return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},gS=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:v,pathname:C})=>e.map(({pathToMatch:E,pathToNavigate:b,keysToParse:B})=>({pathToMatch:E?Et({template:E,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:v}}):void 0,pathToNavigate:b?Et({template:b,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:v}}):void 0,keysToParse:B})).find(({pathToMatch:E})=>E?lr.matchPath(E,C):!1),Np=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumns)&&e.spec.additionalPrinterColumns.every(t=>Object.keys(t).includes("name")&&Object.keys(t).includes("jsonPath"))),jp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsUndefinedValues)&&e.spec.additionalPrinterColumnsUndefinedValues.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),$p=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsTrimLengths)&&e.spec.additionalPrinterColumnsTrimLengths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Mp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsColWidths)&&e.spec.additionalPrinterColumnsColWidths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),yS=({columnsOverridesData:e,overrideType:t})=>{const n=e?.items.find(l=>typeof l=="object"&&!Array.isArray(l)&&l!==null&&l.spec&&typeof l.spec=="object"&&!Array.isArray(l.spec)&&l.spec!==null&&typeof l.spec.overrideType=="string"&&l.spec.overrideType===t),i=Np(n)?n.spec.additionalPrinterColumns:void 0,o=jp(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=$p(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Mp(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},mS=async({clusterName:e})=>Ue.get(`/openapi-bff/swagger/swagger/${e}`),Up=async()=>Ue.get("/clusterlist"),Vp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return Ue.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},qp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>Ue.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Wp=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return Ue.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Hp=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>Ue.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),Kp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>Ue.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),zp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>Ue.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Gp=async({clusterName:e})=>Ue.get(`/api/clusters/${e}/k8s/apis/`),Jp=async({clusterName:e,apiGroup:t,apiVersion:n})=>Ue.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),Yp=async({clusterName:e})=>Ue.get(`/api/clusters/${e}/k8s/api/v1`),Xp=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>Ue.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),wS=({refetchInterval:e})=>bn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Up()).data,refetchInterval:e!==void 0?e:5e3}),bS=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>bn.useQuery({queryKey:["useApiResources",e,t,n,i,o,a],queryFn:async()=>{const l=await Vp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a}),f=JSON.parse(JSON.stringify(l.data));return f.metadata?.resourceVersion&&delete f.metadata.resourceVersion,f},refetchInterval:u!==void 0?u:5e3}),vS=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>bn.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await qp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),SS=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>bn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await Wp({clusterName:e,namespace:t,typeName:n,limit:i}),u=JSON.parse(JSON.stringify(a.data));return u.metadata?.resourceVersion&&delete u.metadata.resourceVersion,u},refetchInterval:o!==void 0?o:5e3}),AS=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>bn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Hp({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),ES=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>bn.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>{const u=await Kp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o}),l=JSON.parse(JSON.stringify(u.data));return l.metadata?.resourceVersion&&delete l.metadata.resourceVersion,l},refetchInterval:a!==void 0?a:5e3}),xS=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>bn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await zp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),CS=({clusterName:e})=>bn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>{const t=await Gp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),_S=({clusterName:e,apiGroup:t,apiVersion:n})=>bn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await Jp({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),kS=({clusterName:e})=>bn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await Yp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),TS=({clusterName:e,apiExtensionVersion:t,crdName:n})=>bn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await Xp({clusterName:e,apiExtensionVersion:t,crdName:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3});oe.BackToDefaultIcon=Oh,oe.BlackholeForm=kp,oe.BlackholeFormDataProvider=xv,oe.ContentCard=Rh,oe.DeleteIcon=_h,oe.DeleteModal=ec,oe.DeleteModalMany=zm,oe.DownIcon=Ih,oe.DynamicComponents=sS,oe.DynamicRenderer=Fp,oe.DynamicRendererWithProviders=oS,oe.EditIcon=kh,oe.EnrichedTable=Gh,oe.EnrichedTableProvider=o2,oe.LockedIcon=Bh,oe.ManageableBreadcrumbs=Nh,oe.ManageableBreadcrumbsWithDataProvider=Xm,oe.ManageableSidebar=Mh,oe.ManageableSidebarWithDataProvider=Uh,oe.MarketPlace=Ip,oe.MarketplaceCard=Hc,oe.MinusIcon=sn,oe.PlusIcon=tc,oe.ProjectInfoCard=Op,oe.Spacer=Cr,oe.SuccessIcon=Fh,oe.TreeWithSearch=Cy,oe.UnlockedIcon=Dh,oe.UpIcon=Th,oe.checkIfApiInstanceNamespaceScoped=aS,oe.checkIfBuiltInInstanceNamespaceScoped=uS,oe.checkPermission=td,oe.createContextFactory=Bp,oe.createNewEntry=Qo,oe.deleteEntry=Zu,oe.feedbackIcons=qr,oe.filterIfApiInstanceNamespaceScoped=cS,oe.filterIfBuiltInInstanceNamespaceScoped=Pp,oe.filterSelectOptions=sc,oe.floorToDecimal=Ns,oe.getAllPathsFromObj=lc,oe.getApiResourceSingle=qp,oe.getApiResourceTypes=Gp,oe.getApiResourceTypesByApiGroup=Jp,oe.getApiResources=Vp,oe.getBuiltinResourceSingle=Hp,oe.getBuiltinResourceTypes=Yp,oe.getBuiltinResources=Wp,oe.getBuiltinTreeData=dS,oe.getClusterList=Up,oe.getCrdData=Xp,oe.getCrdResourceSingle=zp,oe.getCrdResources=Kp,oe.getDirectUnknownResource=Lh,oe.getEnrichedColumns=Kh,oe.getEnrichedColumnsWithControls=zh,oe.getGroupsByCategory=pS,oe.getObjectFormItemsDraft=Ca,oe.getPrefixSubarrays=rd,oe.getStringByName=Ot,oe.getSwagger=mS,oe.groupsToTreeData=hS,oe.isFlatObject=Hh,oe.isWithAdditionalPrinterColumns=Np,oe.isWithAdditionalPrinterColumnsColWidths=Mp,oe.isWithAdditionalPrinterColumnsTrimLengths=$p,oe.isWithAdditionalPrinterColumnsUndefinedValues=jp,oe.normalizeValuesForQuotas=cc,oe.normalizeValuesForQuotasToNumber=nd,oe.overwriteMatchingKeys=lS,oe.parseCustomOverrides=yS,oe.parseQuotaValue=k2,oe.parseQuotaValueCpu=ac,oe.parseQuotaValueMemoryAndStorage=uc,oe.prepareDataForEnrichedColumns=Xh,oe.prepareDataForManageableBreadcrumbs=Ph,oe.prepareDataForManageableSidebar=$h,oe.prepareTableMappings=gS,oe.prepareTemplate=Et,oe.prepareUrlsToFetchForDynamicRenderer=Lp,oe.removeEmptyFormValues=na,oe.renameBrokenFieldBack=Ps,oe.renameBrokenFieldBackToFormAgain=oc,oe.updateEntry=Zo,oe.useApiResourceSingle=vS,oe.useApiResourceTypesByGroup=_S,oe.useApiResources=bS,oe.useApisResourceTypes=CS,oe.useBuiltinResourceSingle=AS,oe.useBuiltinResourceTypes=kS,oe.useBuiltinResources=SS,oe.useClusterList=wS,oe.useCrdData=TS,oe.useCrdResourceSingle=xS,oe.useCrdResources=ES,oe.useDirectUnknownResource=tn,oe.usePermissions=Hr,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});
569
569
  //# sourceMappingURL=openapi-k8s-toolkit.umd.js.map