@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.46 → 0.0.1-alpha.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/openapi-k8s-toolkit.es.js +6163 -6166
  2. package/dist/openapi-k8s-toolkit.es.js.map +1 -1
  3. package/dist/openapi-k8s-toolkit.umd.js +159 -159
  4. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  5. package/dist/types/{utils → api/bff}/scopes/checkScopes.d.ts +3 -8
  6. package/dist/types/{utils → api/bff}/scopes/filterScopes.d.ts +2 -2
  7. package/dist/types/api/bff/swagger/getSwagger.d.ts +5 -0
  8. package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +1 -1
  9. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +2 -2
  10. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utilsErrorHandler.d.ts +16 -0
  11. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/BlackholeFormDataProvider.d.ts +1 -9
  12. package/dist/types/components/molecules/ManageableBreadcrumbs/ManageableBreadcrumbs.d.ts +5 -4
  13. package/dist/types/components/molecules/ManageableBreadcrumbs/types.d.ts +1 -1
  14. package/dist/types/components/molecules/ManageableBreadcrumbs/utils.d.ts +3 -3
  15. package/dist/types/index.d.ts +11 -7
  16. package/dist/types/localTypes/bff/form.d.ts +52 -0
  17. package/dist/types/localTypes/bff/scopes.d.ts +33 -0
  18. package/dist/types/localTypes/bff/swagger.d.ts +2 -0
  19. package/dist/types/localTypes/form.d.ts +0 -20
  20. package/dist/types/localTypes/formExtensions.d.ts +2 -6
  21. package/dist/types/utils/index.d.ts +0 -3
  22. package/dist/types/utils/normalizeValuesForQuotas/normalizeValuesForQuotas.d.ts +0 -1
  23. package/package.json +1 -1
  24. package/dist/types/api/getSwagger.d.ts +0 -5
  25. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/guards.d.ts +0 -2
  26. package/dist/types/localTypes/scopes.d.ts +0 -11
  27. package/dist/types/utils/overwriteMatchingKeys/index.d.ts +0 -1
  28. package/dist/types/utils/overwriteMatchingKeys/overwriteMatchingKeys.d.ts +0 -3
  29. package/dist/types/utils/removeEmptyFormValues/index.d.ts +0 -1
  30. package/dist/types/utils/removeEmptyFormValues/removeEmptyFormValues.d.ts +0 -4
  31. package/dist/types/utils/scopes/index.d.ts +0 -2
@@ -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,cr){"use strict";function f1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nf={exports:{}},Mt=nf.exports={},lr,fr;function mu(){throw new Error("setTimeout has not been defined")}function wu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?lr=setTimeout:lr=mu}catch{lr=mu}try{typeof clearTimeout=="function"?fr=clearTimeout:fr=wu}catch{fr=wu}})();function rf(e){if(lr===setTimeout)return setTimeout(e,0);if((lr===mu||!lr)&&setTimeout)return lr=setTimeout,setTimeout(e,0);try{return lr(e,0)}catch{try{return lr.call(null,e,0)}catch{return lr.call(this,e,0)}}}function h1(e){if(fr===clearTimeout)return clearTimeout(e);if((fr===wu||!fr)&&clearTimeout)return fr=clearTimeout,clearTimeout(e);try{return fr(e)}catch{try{return fr.call(null,e)}catch{return fr.call(this,e)}}}var Ar=[],Di=!1,ai,_o=-1;function d1(){!Di||!ai||(Di=!1,ai.length?Ar=ai.concat(Ar):_o=-1,Ar.length&&sf())}function sf(){if(!Di){var e=rf(d1);Di=!0;for(var t=Ar.length;t;){for(ai=Ar,Ar=[];++_o<t;)ai&&ai[_o].run();_o=-1,t=Ar.length}ai=null,Di=!1,h1(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 of(e,t)),Ar.length===1&&!Di&&rf(sf)};function of(e,t){this.fun=e,this.array=t}of.prototype.run=function(){this.fun.apply(null,this.array)},Mt.title="browser",Mt.browser=!0,Mt.env={},Mt.argv=[],Mt.version="",Mt.versions={};function Sr(){}Mt.on=Sr,Mt.addListener=Sr,Mt.once=Sr,Mt.off=Sr,Mt.removeListener=Sr,Mt.removeAllListeners=Sr,Mt.emit=Sr,Mt.prependListener=Sr,Mt.prependOnceListener=Sr,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 p1=nf.exports;const tt=f1(p1);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 Pi(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 g1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var y1=/^((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)-.*))$/,m1=g1(function(e){return y1.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 bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tt="-ms-",_s="-moz-",gt="-webkit-",af="comm",ko="rule",vu="decl",w1="@import",b1="@namespace",uf="@keyframes",v1="@layer",cf=Math.abs,Au=String.fromCharCode,Su=Object.assign;function A1(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 lf(e){return e.trim()}function Er(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,n){return e.replace(t,n)}function To(e,t,n){return e.indexOf(t,n)}function Yt(e,t){return e.charCodeAt(t)|0}function ui(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function ff(e){return e.length}function ks(e,t){return t.push(e),e}function S1(e,t){return e.map(t).join("")}function hf(e,t){return e.filter(function(n){return!Er(n,t)})}var Io=1,Ri=1,df=0,Ln=0,Jt=0,Li="";function Oo(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:Io,column:Ri,length:u,return:"",siblings:l}}function $r(e,t){return Su(Oo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ni(e){for(;e.root;)e=$r(e.root,{children:[e]});ks(e,e.siblings)}function E1(){return Jt}function x1(){return Jt=Ln>0?Yt(Li,--Ln):0,Ri--,Jt===10&&(Ri=1,Io--),Jt}function Zn(){return Jt=Ln<df?Yt(Li,Ln++):0,Ri++,Jt===10&&(Ri=1,Io++),Jt}function Mr(){return Yt(Li,Ln)}function Fo(){return Ln}function Bo(e,t){return ui(Li,e,t)}function Ts(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 C1(e){return Io=Ri=1,df=Qn(Li=e),Ln=0,[]}function _1(e){return Li="",e}function Eu(e){return lf(Bo(Ln-1,xu(e===91?e+2:e===40?e+1:e)))}function k1(e){for(;(Jt=Mr())&&Jt<33;)Zn();return Ts(e)>2||Ts(Jt)>3?"":" "}function T1(e,t){for(;--t&&Zn()&&!(Jt<48||Jt>102||Jt>57&&Jt<65||Jt>70&&Jt<97););return Bo(e,Fo()+(t<6&&Mr()==32&&Zn()==32))}function xu(e){for(;Zn();)switch(Jt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&xu(Jt);break;case 40:e===41&&xu(e);break;case 92:Zn();break}return Ln}function I1(e,t){for(;Zn()&&e+Jt!==57;)if(e+Jt===84&&Mr()===47)break;return"/*"+Bo(t,Ln-1)+"*"+Au(e===47?e:Zn())}function O1(e){for(;!Ts(Mr());)Zn();return Bo(e,Ln)}function F1(e){return _1(Do("",null,null,null,[""],e=C1(e),0,[0],e))}function Do(e,t,n,i,o,a,u,l,f){for(var d=0,p=0,g=u,v=0,C=0,E=0,S=1,b=1,T=1,N=0,L="",_=o,O=a,F=i,B=L;b;)switch(E=N,N=Zn()){case 40:if(E!=108&&Yt(B,g-1)==58){To(B+=Ge(Eu(N),"&","&\f"),"&\f",cf(d?l[d-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:B+=Eu(N);break;case 9:case 10:case 13:case 32:B+=k1(E);break;case 92:B+=T1(Fo()-1,7);continue;case 47:switch(Mr()){case 42:case 47:ks(B1(I1(Zn(),Fo()),t,n,f),f),(Ts(E||1)==5||Ts(Mr()||1)==5)&&Qn(B)&&ui(B,-1,void 0)!==" "&&(B+=" ");break;default:B+="/"}break;case 123*S:l[d++]=Qn(B)*T;case 125*S:case 59:case 0:switch(N){case 0:case 125:b=0;case 59+p:T==-1&&(B=Ge(B,/\f/g,"")),C>0&&(Qn(B)-g||S===0&&E===47)&&ks(C>32?gf(B+";",i,n,g-1,f):gf(Ge(B," ","")+";",i,n,g-2,f),f);break;case 59:B+=";";default:if(ks(F=pf(B,t,n,d,p,o,l,L,_=[],O=[],g,a),a),N===123)if(p===0)Do(B,t,F,F,_,a,g,l,O);else{switch(v){case 99:if(Yt(B,3)===110)break;case 108:if(Yt(B,2)===97)break;default:p=0;case 100:case 109:case 115:}p?Do(e,F,F,i&&ks(pf(e,F,F,0,0,o,l,L,o,_=[],g,O),O),o,O,g,l,i?_:O):Do(B,F,F,F,[""],O,0,l,O)}}d=p=C=0,S=T=1,L=B="",g=u;break;case 58:g=1+Qn(B),C=E;default:if(S<1){if(N==123)--S;else if(N==125&&S++==0&&x1()==125)continue}switch(B+=Au(N),N*S){case 38:T=p>0?1:(B+="\f",-1);break;case 44:l[d++]=(Qn(B)-1)*T,T=1;break;case 64:Mr()===45&&(B+=Eu(Zn())),v=Mr(),p=g=Qn(L=B+=O1(Fo())),N++;break;case 45:E===45&&Qn(B)==2&&(S=0)}}return a}function pf(e,t,n,i,o,a,u,l,f,d,p,g){for(var v=o-1,C=o===0?a:[""],E=ff(C),S=0,b=0,T=0;S<i;++S)for(var N=0,L=ui(e,v+1,v=cf(b=u[S])),_=e;N<E;++N)(_=lf(b>0?C[N]+" "+L:Ge(L,/&\f/g,C[N])))&&(f[T++]=_);return Oo(e,t,n,o===0?ko:l,f,d,p,g)}function B1(e,t,n,i){return Oo(e,t,n,af,Au(E1()),ui(e,2,-2),0,i)}function gf(e,t,n,i,o){return Oo(e,t,n,vu,ui(e,0,i),ui(e,i+1,-1),i,o)}function yf(e,t,n){switch(A1(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 _s+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+_s+e+Tt+e+e;case 5936:switch(Yt(e,t+11)){case 114:return gt+e+Tt+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+Tt+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+Tt+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gt+e+Tt+e+e;case 6165:return gt+e+Tt+"flex-"+e+e;case 5187:return gt+e+Ge(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+Tt+"flex-$1$2")+e;case 5443:return gt+e+Tt+"flex-item-"+Ge(e,/flex-|-self/g,"")+(Er(e,/flex-|baseline/)?"":Tt+"grid-row-"+Ge(e,/flex-|-self/g,""))+e;case 4675:return gt+e+Tt+"flex-line-pack"+Ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return gt+e+Tt+Ge(e,"shrink","negative")+e;case 5292:return gt+e+Tt+Ge(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+Ge(e,"-grow","")+gt+e+Tt+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"+Tt+"flex-pack:$3"),/space-between/,"justify")+gt+e+e;case 4200:if(!Er(e,/flex-|baseline/))return Tt+"grid-column-align"+ui(e,t)+e;break;case 2592:case 3360:return Tt+Ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Er(i.props,/grid-\w+-end/)})?~To(e+(n=n[t].value),"span",0)?e:Tt+Ge(e,"-start","")+e+Tt+"grid-row-span:"+(~To(n,"span",0)?Er(n,/\d+/):+Er(n,/\d+/)-+Er(e,/\d+/))+";":Tt+Ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Er(i.props,/grid-\w+-start/)})?e:Tt+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"+_s+(Yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~To(e,"stretch",0)?yf(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 Tt+o+":"+a+d+(u?Tt+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"+Tt+"$2box$3")+e;case 100:return Ge(e,":",":"+Tt)+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 D1(e,t,n,i){switch(e.type){case v1:if(e.children.length)break;case w1:case b1:case vu:return e.return=e.return||e.value;case af:return"";case uf:return e.return=e.value+"{"+Po(e.children,i)+"}";case ko:if(!Qn(e.value=e.props.join(",")))return""}return Qn(n=Po(e.children,i))?e.return=e.value+"{"+n+"}":""}function P1(e){var t=ff(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 vu:e.return=yf(e.value,e.length,n);return;case uf:return Po([$r(e,{value:Ge(e.value,"@","@"+gt)})],i);case ko:if(e.length)return S1(n=e.props,function(o){switch(Er(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ni($r(e,{props:[Ge(o,/:(read-\w+)/,":"+_s+"$1")]})),Ni($r(e,{props:[o]})),Su(e,{props:hf(n,i)});break;case"::placeholder":Ni($r(e,{props:[Ge(o,/:(plac\w+)/,":"+gt+"input-$1")]})),Ni($r(e,{props:[Ge(o,/:(plac\w+)/,":"+_s+"$1")]})),Ni($r(e,{props:[Ge(o,/:(plac\w+)/,Tt+"input-$1")]})),Ni($r(e,{props:[o]})),Su(e,{props:hf(n,i)});break}return""})}}var N1={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},ci=typeof tt<"u"&&tt.env!==void 0&&(tt.env.REACT_APP_SC_ATTR||tt.env.SC_ATTR)||"data-styled",Cu=typeof window<"u"&&"HTMLElement"in window,j1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof tt<"u"&&tt.env!==void 0&&tt.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&tt.env.REACT_APP_SC_DISABLE_SPEEDY!==""?tt.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&tt.env.REACT_APP_SC_DISABLE_SPEEDY:typeof tt<"u"&&tt.env!==void 0&&tt.env.SC_DISABLE_SPEEDY!==void 0&&tt.env.SC_DISABLE_SPEEDY!==""?tt.env.SC_DISABLE_SPEEDY!=="false"&&tt.env.SC_DISABLE_SPEEDY:tt.env.NODE_ENV!=="production"),mf=/invalid hook call/i,Ro=new Set,$1=function(e,t){if(tt.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(ue,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):(ue=typeof globalThis<"u"?globalThis:ue||self,Z(ue["@prorobotech/openapi-k8s-toolkit"]={},ue.React,ue.antd,ue.antdIcons,ue.reactQuery,ue.ReactRouterDOM))})(this,function(ue,Z,V,vn,En,vr){"use strict";function a1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zl={exports:{}},Mt=Zl.exports={},cr,lr;function gu(){throw new Error("setTimeout has not been defined")}function yu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cr=setTimeout:cr=gu}catch{cr=gu}try{typeof clearTimeout=="function"?lr=clearTimeout:lr=yu}catch{lr=yu}})();function ef(e){if(cr===setTimeout)return setTimeout(e,0);if((cr===gu||!cr)&&setTimeout)return cr=setTimeout,setTimeout(e,0);try{return cr(e,0)}catch{try{return cr.call(null,e,0)}catch{return cr.call(this,e,0)}}}function u1(e){if(lr===clearTimeout)return clearTimeout(e);if((lr===yu||!lr)&&clearTimeout)return lr=clearTimeout,clearTimeout(e);try{return lr(e)}catch{try{return lr.call(null,e)}catch{return lr.call(this,e)}}}var Er=[],Di=!1,ai,Co=-1;function c1(){!Di||!ai||(Di=!1,ai.length?Er=ai.concat(Er):Co=-1,Er.length&&tf())}function tf(){if(!Di){var e=ef(c1);Di=!0;for(var t=Er.length;t;){for(ai=Er,Er=[];++Co<t;)ai&&ai[Co].run();Co=-1,t=Er.length}ai=null,Di=!1,u1(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];Er.push(new nf(e,t)),Er.length===1&&!Di&&ef(tf)};function nf(e,t){this.fun=e,this.array=t}nf.prototype.run=function(){this.fun.apply(null,this.array)},Mt.title="browser",Mt.browser=!0,Mt.env={},Mt.argv=[],Mt.version="",Mt.versions={};function xr(){}Mt.on=xr,Mt.addListener=xr,Mt.once=xr,Mt.off=xr,Mt.removeListener=xr,Mt.removeAllListeners=xr,Mt.emit=xr,Mt.prependListener=xr,Mt.prependOnceListener=xr,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 l1=Zl.exports;const nt=a1(l1);var xn=function(){return xn=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},xn.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 f1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var h1=/^((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)-.*))$/,d1=f1(function(e){return h1.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 mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kt="-ms-",_s="-moz-",pt="-webkit-",rf="comm",_o="rule",bu="decl",p1="@import",g1="@namespace",sf="@keyframes",y1="@layer",of=Math.abs,wu=String.fromCharCode,vu=Object.assign;function m1(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 af(e){return e.trim()}function Sr(e,t){return(e=t.exec(e))?e[0]:e}function ze(e,t,n){return e.replace(t,n)}function ko(e,t,n){return e.indexOf(t,n)}function Yt(e,t){return e.charCodeAt(t)|0}function ui(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function uf(e){return e.length}function ks(e,t){return t.push(e),e}function b1(e,t){return e.map(t).join("")}function cf(e,t){return e.filter(function(n){return!Sr(n,t)})}var To=1,Li=1,lf=0,Pn=0,Jt=0,Pi="";function Io(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:To,column:Li,length:u,return:"",siblings:l}}function $r(e,t){return vu(Io("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ji(e){for(;e.root;)e=$r(e.root,{children:[e]});ks(e,e.siblings)}function w1(){return Jt}function v1(){return Jt=Pn>0?Yt(Pi,--Pn):0,Li--,Jt===10&&(Li=1,To--),Jt}function Zn(){return Jt=Pn<lf?Yt(Pi,Pn++):0,Li++,Jt===10&&(Li=1,To++),Jt}function Mr(){return Yt(Pi,Pn)}function Oo(){return Pn}function Fo(e,t){return ui(Pi,e,t)}function Ts(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 E1(e){return To=Li=1,lf=Qn(Pi=e),Pn=0,[]}function x1(e){return Pi="",e}function Eu(e){return af(Fo(Pn-1,xu(e===91?e+2:e===40?e+1:e)))}function S1(e){for(;(Jt=Mr())&&Jt<33;)Zn();return Ts(e)>2||Ts(Jt)>3?"":" "}function A1(e,t){for(;--t&&Zn()&&!(Jt<48||Jt>102||Jt>57&&Jt<65||Jt>70&&Jt<97););return Fo(e,Oo()+(t<6&&Mr()==32&&Zn()==32))}function xu(e){for(;Zn();)switch(Jt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&xu(Jt);break;case 40:e===41&&xu(e);break;case 92:Zn();break}return Pn}function C1(e,t){for(;Zn()&&e+Jt!==57;)if(e+Jt===84&&Mr()===47)break;return"/*"+Fo(t,Pn-1)+"*"+wu(e===47?e:Zn())}function _1(e){for(;!Ts(Mr());)Zn();return Fo(e,Pn)}function k1(e){return x1(Bo("",null,null,null,[""],e=E1(e),0,[0],e))}function Bo(e,t,n,i,o,a,u,l,f){for(var h=0,p=0,g=u,v=0,C=0,S=0,x=1,w=1,T=1,j=0,L="",_=o,O=a,F=i,B=L;w;)switch(S=j,j=Zn()){case 40:if(S!=108&&Yt(B,g-1)==58){ko(B+=ze(Eu(j),"&","&\f"),"&\f",of(h?l[h-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:B+=Eu(j);break;case 9:case 10:case 13:case 32:B+=S1(S);break;case 92:B+=A1(Oo()-1,7);continue;case 47:switch(Mr()){case 42:case 47:ks(T1(C1(Zn(),Oo()),t,n,f),f),(Ts(S||1)==5||Ts(Mr()||1)==5)&&Qn(B)&&ui(B,-1,void 0)!==" "&&(B+=" ");break;default:B+="/"}break;case 123*x:l[h++]=Qn(B)*T;case 125*x:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+p:T==-1&&(B=ze(B,/\f/g,"")),C>0&&(Qn(B)-g||x===0&&S===47)&&ks(C>32?hf(B+";",i,n,g-1,f):hf(ze(B," ","")+";",i,n,g-2,f),f);break;case 59:B+=";";default:if(ks(F=ff(B,t,n,h,p,o,l,L,_=[],O=[],g,a),a),j===123)if(p===0)Bo(B,t,F,F,_,a,g,l,O);else{switch(v){case 99:if(Yt(B,3)===110)break;case 108:if(Yt(B,2)===97)break;default:p=0;case 100:case 109:case 115:}p?Bo(e,F,F,i&&ks(ff(e,F,F,0,0,o,l,L,o,_=[],g,O),O),o,O,g,l,i?_:O):Bo(B,F,F,F,[""],O,0,l,O)}}h=p=C=0,x=T=1,L=B="",g=u;break;case 58:g=1+Qn(B),C=S;default:if(x<1){if(j==123)--x;else if(j==125&&x++==0&&v1()==125)continue}switch(B+=wu(j),j*x){case 38:T=p>0?1:(B+="\f",-1);break;case 44:l[h++]=(Qn(B)-1)*T,T=1;break;case 64:Mr()===45&&(B+=Eu(Zn())),v=Mr(),p=g=Qn(L=B+=_1(Oo())),j++;break;case 45:S===45&&Qn(B)==2&&(x=0)}}return a}function ff(e,t,n,i,o,a,u,l,f,h,p,g){for(var v=o-1,C=o===0?a:[""],S=uf(C),x=0,w=0,T=0;x<i;++x)for(var j=0,L=ui(e,v+1,v=of(w=u[x])),_=e;j<S;++j)(_=af(w>0?C[j]+" "+L:ze(L,/&\f/g,C[j])))&&(f[T++]=_);return Io(e,t,n,o===0?_o:l,f,h,p,g)}function T1(e,t,n,i){return Io(e,t,n,rf,wu(w1()),ui(e,2,-2),0,i)}function hf(e,t,n,i,o){return Io(e,t,n,bu,ui(e,0,i),ui(e,i+1,-1),i,o)}function df(e,t,n){switch(m1(e,t)){case 5103:return pt+"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 pt+e+e;case 4855:return pt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return _s+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pt+e+_s+e+kt+e+e;case 5936:switch(Yt(e,t+11)){case 114:return pt+e+kt+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+kt+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+kt+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return pt+e+kt+e+e;case 6165:return pt+e+kt+"flex-"+e+e;case 5187:return pt+e+ze(e,/(\w+).+(:[^]+)/,pt+"box-$1$2"+kt+"flex-$1$2")+e;case 5443:return pt+e+kt+"flex-item-"+ze(e,/flex-|-self/g,"")+(Sr(e,/flex-|baseline/)?"":kt+"grid-row-"+ze(e,/flex-|-self/g,""))+e;case 4675:return pt+e+kt+"flex-line-pack"+ze(e,/align-content|flex-|-self/g,"")+e;case 5548:return pt+e+kt+ze(e,"shrink","negative")+e;case 5292:return pt+e+kt+ze(e,"basis","preferred-size")+e;case 6060:return pt+"box-"+ze(e,"-grow","")+pt+e+kt+ze(e,"grow","positive")+e;case 4554:return pt+ze(e,/([^-])(transform)/g,"$1"+pt+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,pt+"$1"),/(image-set)/,pt+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,pt+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,pt+"box-pack:$3"+kt+"flex-pack:$3"),/space-between/,"justify")+pt+e+e;case 4200:if(!Sr(e,/flex-|baseline/))return kt+"grid-column-align"+ui(e,t)+e;break;case 2592:case 3360:return kt+ze(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Sr(i.props,/grid-\w+-end/)})?~ko(e+(n=n[t].value),"span",0)?e:kt+ze(e,"-start","")+e+kt+"grid-row-span:"+(~ko(n,"span",0)?Sr(n,/\d+/):+Sr(n,/\d+/)-+Sr(e,/\d+/))+";":kt+ze(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Sr(i.props,/grid-\w+-start/)})?e:kt+ze(ze(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,pt+"$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 ze(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+_s+(Yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ko(e,"stretch",0)?df(ze(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ze(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,h){return kt+o+":"+a+h+(u?kt+o+"-span:"+(l?f:+f-+a)+h:"")+e});case 4949:if(Yt(e,t+6)===121)return ze(e,":",":"+pt)+e;break;case 6444:switch(Yt(e,Yt(e,14)===45?18:11)){case 120:return ze(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+pt+(Yt(e,14)===45?"inline-":"")+"box$3$1"+pt+"$2$3$1"+kt+"$2box$3")+e;case 100:return ze(e,":",":"+kt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ze(e,"scroll-","scroll-snap-")+e}return e}function Do(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function I1(e,t,n,i){switch(e.type){case y1:if(e.children.length)break;case p1:case g1:case bu:return e.return=e.return||e.value;case rf:return"";case sf:return e.return=e.value+"{"+Do(e.children,i)+"}";case _o:if(!Qn(e.value=e.props.join(",")))return""}return Qn(n=Do(e.children,i))?e.return=e.value+"{"+n+"}":""}function O1(e){var t=uf(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 F1(e){return function(t){t.root||(t=t.return)&&e(t)}}function B1(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case bu:e.return=df(e.value,e.length,n);return;case sf:return Do([$r(e,{value:ze(e.value,"@","@"+pt)})],i);case _o:if(e.length)return b1(n=e.props,function(o){switch(Sr(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ji($r(e,{props:[ze(o,/:(read-\w+)/,":"+_s+"$1")]})),ji($r(e,{props:[o]})),vu(e,{props:cf(n,i)});break;case"::placeholder":ji($r(e,{props:[ze(o,/:(plac\w+)/,":"+pt+"input-$1")]})),ji($r(e,{props:[ze(o,/:(plac\w+)/,":"+_s+"$1")]})),ji($r(e,{props:[ze(o,/:(plac\w+)/,kt+"input-$1")]})),ji($r(e,{props:[o]})),vu(e,{props:cf(n,i)});break}return""})}}var D1={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},ci=typeof nt<"u"&&nt.env!==void 0&&(nt.env.REACT_APP_SC_ATTR||nt.env.SC_ATTR)||"data-styled",Su=typeof window<"u"&&"HTMLElement"in window,R1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof nt<"u"&&nt.env!==void 0&&nt.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&nt.env.REACT_APP_SC_DISABLE_SPEEDY!==""?nt.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&nt.env.REACT_APP_SC_DISABLE_SPEEDY:typeof nt<"u"&&nt.env!==void 0&&nt.env.SC_DISABLE_SPEEDY!==void 0&&nt.env.SC_DISABLE_SPEEDY!==""?nt.env.SC_DISABLE_SPEEDY!=="false"&&nt.env.SC_DISABLE_SPEEDY:nt.env.NODE_ENV!=="production"),pf=/invalid hook call/i,Ro=new Set,L1=function(e,t){if(nt.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];mf.test(u)?(a=!1,Ro.delete(i)):o.apply(void 0,Pi([u],l,!1))},Z.useRef(),a&&!Ro.has(i)&&(console.warn(i),Ro.add(i))}catch(u){mf.test(u.message)&&Ro.delete(i)}finally{console.error=o}}},Lo=Object.freeze([]),ji=Object.freeze({});function M1(e,t,n){return n===void 0&&(n=ji),e.theme!==n.theme&&e.theme||t||n.theme}var _u=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"]),U1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,V1=/(^-|-$)/g;function wf(e){return e.replace(U1,"-").replace(V1,"")}var q1=/(a)(d)/gi,bf=function(e){return String.fromCharCode(e+(e>25?39:97))};function ku(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=bf(t%52)+n;return(bf(t%52)+n).replace(q1,"$1-$2")}var Tu,li=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},vf=function(e){return li(5381,e)};function W1(e){return ku(vf(e)>>>0)}function Af(e){return tt.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Iu(e){return typeof e=="string"&&(tt.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Sf=typeof Symbol=="function"&&Symbol.for,Ef=Sf?Symbol.for("react.memo"):60115,K1=Sf?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},z1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},G1=((Tu={})[K1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tu[Ef]=xf,Tu);function Cf(e){return("type"in(t=e)&&t.type.$$typeof)===Ef?xf:"$$typeof"in e?G1[e.$$typeof]:H1;var t}var J1=Object.defineProperty,Y1=Object.getOwnPropertyNames,_f=Object.getOwnPropertySymbols,X1=Object.getOwnPropertyDescriptor,Q1=Object.getPrototypeOf,kf=Object.prototype;function Tf(e,t,n){if(typeof t!="string"){if(kf){var i=Q1(t);i&&i!==kf&&Tf(e,i,n)}var o=Y1(t);_f&&(o=o.concat(_f(t)));for(var a=Cf(e),u=Cf(t),l=0;l<o.length;++l){var f=o[l];if(!(f in z1||n&&n[f]||u&&f in u||a&&f in a)){var d=X1(t,f);try{J1(e,f,d)}catch{}}}}return e}function $i(e){return typeof e=="function"}function Ou(e){return typeof e=="object"&&"styledComponentId"in e}function fi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function If(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function Mi(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Fu(e,t,n){if(n===void 0&&(n=!1),!n&&!Mi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Fu(e[i],t[i]);else if(Mi(t))for(var i in t)e[i]=Fu(e[i],t[i]);return e}function Bu(e,t){Object.defineProperty(e,"toString",{value:t})}var Z1=tt.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];pf.test(u)?(a=!1,Ro.delete(i)):o.apply(void 0,Ri([u],l,!1))},Z.useRef(),a&&!Ro.has(i)&&(console.warn(i),Ro.add(i))}catch(u){pf.test(u.message)&&Ro.delete(i)}finally{console.error=o}}},Lo=Object.freeze([]),Ni=Object.freeze({});function P1(e,t,n){return n===void 0&&(n=Ni),e.theme!==n.theme&&e.theme||t||n.theme}var Au=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"]),j1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,N1=/(^-|-$)/g;function gf(e){return e.replace(j1,"-").replace(N1,"")}var $1=/(a)(d)/gi,yf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Cu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=yf(t%52)+n;return(yf(t%52)+n).replace($1,"$1-$2")}var _u,li=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},mf=function(e){return li(5381,e)};function M1(e){return Cu(mf(e)>>>0)}function bf(e){return nt.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function ku(e){return typeof e=="string"&&(nt.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var wf=typeof Symbol=="function"&&Symbol.for,vf=wf?Symbol.for("react.memo"):60115,U1=wf?Symbol.for("react.forward_ref"):60112,V1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},q1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ef={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},W1=((_u={})[U1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_u[vf]=Ef,_u);function xf(e){return("type"in(t=e)&&t.type.$$typeof)===vf?Ef:"$$typeof"in e?W1[e.$$typeof]:V1;var t}var K1=Object.defineProperty,H1=Object.getOwnPropertyNames,Sf=Object.getOwnPropertySymbols,z1=Object.getOwnPropertyDescriptor,G1=Object.getPrototypeOf,Af=Object.prototype;function Cf(e,t,n){if(typeof t!="string"){if(Af){var i=G1(t);i&&i!==Af&&Cf(e,i,n)}var o=H1(t);Sf&&(o=o.concat(Sf(t)));for(var a=xf(e),u=xf(t),l=0;l<o.length;++l){var f=o[l];if(!(f in q1||n&&n[f]||u&&f in u||a&&f in a)){var h=z1(t,f);try{K1(e,f,h)}catch{}}}}return e}function $i(e){return typeof e=="function"}function Tu(e){return typeof e=="object"&&"styledComponentId"in e}function fi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function _f(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function Mi(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Iu(e,t,n){if(n===void 0&&(n=!1),!n&&!Mi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Iu(e[i],t[i]);else if(Mi(t))for(var i in t)e[i]=Iu(e[i],t[i]);return e}function Ou(e,t){Object.defineProperty(e,"toString",{value:t})}var J1=nt.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 ey(){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 Ui(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return tt.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(ey.apply(void 0,Pi([Z1[e]],t,!1)).trim())}var ty=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 Ui(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}(),No=new Map,jo=new Map,Du=1,$o=function(e){if(No.has(e))return No.get(e);for(;jo.has(Du);)Du++;var t=Du++;if(tt.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw Ui(16,"".concat(t));return No.set(e,t),jo.set(t,e),t},ny=function(e,t){No.set(e,t),jo.set(t,e)},ry="style[".concat(ci,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),iy=new RegExp("^".concat(ci,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),sy=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)},oy=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(iy);if(f){var d=0|parseInt(f[1],10),p=f[2];d!==0&&(ny(p,d),sy(e,p,f[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(l)}}};function ay(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Of=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(ci,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(ci,"active"),i.setAttribute("data-styled-version","6.0.7");var u=ay();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},uy=function(){function e(t){this.element=Of(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 Ui(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}(),cy=function(){function e(t){this.element=Of(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}(),ly=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}(),Ff=Cu,fy={isServer:!Cu,useCSSOMInjection:!j1},Bf=function(){function e(t,n,i){t===void 0&&(t=ji),n===void 0&&(n={});var o=this;this.options=vn(vn({},fy),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Cu&&Ff&&(Ff=!1,function(a){for(var u=document.querySelectorAll(ry),l=0,f=u.length;l<f;l++){var d=u[l];d&&d.getAttribute(ci)!=="active"&&(oy(a,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),Bu(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",d=function(g){var v=function(T){return jo.get(T)}(g);if(v===void 0)return"continue";var C=a.names.get(v),E=u.getGroup(g);if(C===void 0||E.length===0)return"continue";var S="".concat(ci,".g").concat(g,'[id="').concat(v,'"]'),b="";C!==void 0&&C.forEach(function(T){T.length>0&&(b+="".concat(T,","))}),f+="".concat(E).concat(S,'{content:"').concat(b,'"}').concat(`/*!sc*/
47
- `)},p=0;p<l;p++)d(p);return f}(o)})}return e.registerId=function(t){return $o(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 ly(o):i?new uy(o):new cy(o)}(this.options),new ty(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($o(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($o(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup($o(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),hy=/&/g,dy=/^\s*\/\/.*$/gm;function Df(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=Df(n.children,t)),n})}function py(e){var t,n,i,o=ji,a=o.options,u=a===void 0?ji:a,l=o.plugins,f=l===void 0?Lo:l,d=function(v,C,E){return E===n||E.startsWith(n)&&E.endsWith(n)&&E.replaceAll(n,"").length>0?".".concat(t):v},p=f.slice();p.push(function(v){v.type===ko&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(hy,n).replace(i,d))}),u.prefix&&p.push(L1),p.push(D1);var g=function(v,C,E,S){C===void 0&&(C=""),E===void 0&&(E=""),S===void 0&&(S="&"),t=S,n=C,i=new RegExp("\\".concat(n,"\\b"),"g");var b=v.replace(dy,""),T=F1(E||C?"".concat(E," ").concat(C," { ").concat(b," }"):b);u.namespace&&(T=Df(T,u.namespace));var N=[];return Po(T,P1(p.concat(R1(function(L){return N.push(L)})))),N};return g.hash=f.length?f.reduce(function(v,C){return C.name||Ui(15),li(v,C.name)},5381).toString():"",g}var gy=new Bf,Pu=py(),Pf=Z.createContext({shouldForwardProp:void 0,styleSheet:gy,stylis:Pu});Pf.Consumer,Z.createContext(void 0);function Rf(){return Z.useContext(Pf)}var Lf=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,Bu(this,function(){throw Ui(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Pu),this.name+t.hash},e}(),yy=function(e){return e>="A"&&e<="Z"};function Nf(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;yy(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var jf=function(e){return e==null||e===!1||e===""},$f=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!jf(a)&&(Array.isArray(a)&&a.isCss||$i(a)?i.push("".concat(Nf(o),":"),a,";"):Mi(a)?i.push.apply(i,Pi(Pi(["".concat(o," {")],$f(a),!1),["}"],!1)):i.push("".concat(Nf(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in N1||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function hi(e,t,n,i){if(jf(e))return[];if(Ou(e))return[".".concat(e.styledComponentId)];if($i(e)){if(!$i(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return tt.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Lf||Mi(o)||o===null||console.error("".concat(Af(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.")),hi(o,t,n,i)}var a;return e instanceof Lf?n?(e.inject(n,i),[e.getName(i)]):[e]:Mi(e)?$f(e):Array.isArray(e)?Array.prototype.concat.apply(Lo,e.map(function(u){return hi(u,t,n,i)})):[e.toString()]}function my(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($i(n)&&!Ou(n))return!1}return!0}var wy=vf("6.0.7"),by=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=tt.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&my(t),this.componentId=n,this.baseHash=li(wy,n),this.baseStyle=i,Bf.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=fi(o,this.staticRulesId);else{var a=If(hi(this.rules,t,n,i)),u=ku(li(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=fi(o,u),this.staticRulesId=u}else{for(var f=li(this.baseHash,i.hash),d="",p=0;p<this.rules.length;p++){var g=this.rules[p];if(typeof g=="string")d+=g,tt.env.NODE_ENV!=="production"&&(f=li(f,g));else if(g){var v=If(hi(g,t,n,i));f=li(f,v),d+=v}}if(d){var C=ku(f>>>0);n.hasNameForId(this.componentId,C)||n.insertRules(this.componentId,C,i(d,".".concat(C),void 0,this.componentId)),o=fi(o,C)}}return o},e}(),Mf=Z.createContext(void 0);Mf.Consumer;var Ru={},Uf=new Set;function vy(e,t,n){var i=Ou(e),o=e,a=!Iu(e),u=t.attrs,l=u===void 0?Lo:u,f=t.componentId,d=f===void 0?function(_,O){var F=typeof _!="string"?"sc":wf(_);Ru[F]=(Ru[F]||0)+1;var B="".concat(F,"-").concat(W1("6.0.7"+F+Ru[F]));return O?"".concat(O,"-").concat(B):B}(t.displayName,t.parentComponentId):f,p=t.displayName,g=p===void 0?function(_){return Iu(_)?"styled.".concat(_):"Styled(".concat(Af(_),")")}(e):p,v=t.displayName&&t.componentId?"".concat(wf(t.displayName),"-").concat(t.componentId):t.componentId||d,C=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,E=t.shouldForwardProp;if(i&&o.shouldForwardProp){var S=o.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;E=function(_,O){return S(_,O)&&b(_,O)}}else E=S}var T=new by(n,v,i?o.componentStyle:void 0);function N(_,O){return function(F,B,W){var Y=F.attrs,fe=F.componentStyle,le=F.defaultProps,be=F.foldedComponentIds,ve=F.styledComponentId,Ce=F.target,pe=Z.useContext(Mf),Ee=Rf(),Oe=F.shouldForwardProp||Ee.shouldForwardProp;tt.env.NODE_ENV!=="production"&&Z.useDebugValue(ve);var Be=function(Q,ue,De){for(var Ye,ke=vn(vn({},ue),{className:void 0,theme:De}),Pe=0;Pe<Q.length;Pe+=1){var Fe=$i(Ye=Q[Pe])?Ye(ke):Ye;for(var Ne in Fe)ke[Ne]=Ne==="className"?fi(ke[Ne],Fe[Ne]):Ne==="style"?vn(vn({},ke[Ne]),Fe[Ne]):Fe[Ne]}return ue.className&&(ke.className=fi(ke.className,ue.className)),ke}(Y,B,M1(B,pe,le)||ji),Ze=Be.as||Ce,Ae={};for(var we in Be)Be[we]===void 0||we[0]==="$"||we==="as"||we==="theme"||(we==="forwardedAs"?Ae.as=Be.forwardedAs:Oe&&!Oe(we,Ze)||(Ae[we]=Be[we],Oe||tt.env.NODE_ENV!=="development"||m1(we)||Uf.has(we)||!_u.has(Ze)||(Uf.add(we),console.warn('styled-components: it looks like an unknown prop "'.concat(we,'" 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 Ke=function(Q,ue){var De=Rf(),Ye=Q.generateAndInjectStyles(ue,De.styleSheet,De.stylis);return tt.env.NODE_ENV!=="production"&&Z.useDebugValue(Ye),Ye}(fe,Be);tt.env.NODE_ENV!=="production"&&F.warnTooManyClasses&&F.warnTooManyClasses(Ke);var J=fi(be,ve);return Ke&&(J+=" "+Ke),Be.className&&(J+=" "+Be.className),Ae[Iu(Ze)&&!_u.has(Ze)?"class":"className"]=J,Ae.ref=W,Z.createElement(Ze,Ae)}(L,_,O)}tt.env.NODE_ENV!=="production"&&(N.displayName=g);var L=Z.forwardRef(N);return L.attrs=C,L.componentStyle=T,L.shouldForwardProp=E,tt.env.NODE_ENV!=="production"&&(L.displayName=g),L.foldedComponentIds=i?fi(o.foldedComponentIds,o.styledComponentId):"",L.styledComponentId=v,L.target=i?o.target:e,Object.defineProperty(L,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(_){this._foldedDefaultProps=i?function(O){for(var F=[],B=1;B<arguments.length;B++)F[B-1]=arguments[B];for(var W=0,Y=F;W<Y.length;W++)Fu(O,Y[W],!0);return O}({},o.defaultProps,_):_}}),tt.env.NODE_ENV!=="production"&&($1(g,v),L.warnTooManyClasses=function(_,O){var F={},B=!1;return function(W){if(!B&&(F[W]=!0,Object.keys(F).length>=200)){var Y=O?' with the id of "'.concat(O,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(_).concat(Y,`.
44
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Y1(){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 Ui(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return nt.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(Y1.apply(void 0,Ri([J1[e]],t,!1)).trim())}var X1=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 Ui(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}(),Po=new Map,jo=new Map,Fu=1,No=function(e){if(Po.has(e))return Po.get(e);for(;jo.has(Fu);)Fu++;var t=Fu++;if(nt.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw Ui(16,"".concat(t));return Po.set(e,t),jo.set(t,e),t},Q1=function(e,t){Po.set(e,t),jo.set(t,e)},Z1="style[".concat(ci,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),ey=new RegExp("^".concat(ci,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ty=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)},ny=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(ey);if(f){var h=0|parseInt(f[1],10),p=f[2];h!==0&&(Q1(p,h),ty(e,p,f[3]),e.getTag().insertRules(h,o)),o.length=0}else o.push(l)}}};function ry(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var kf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(ci,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(ci,"active"),i.setAttribute("data-styled-version","6.0.7");var u=ry();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},iy=function(){function e(t){this.element=kf(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 Ui(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}(),sy=function(){function e(t){this.element=kf(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}(),oy=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}(),Tf=Su,ay={isServer:!Su,useCSSOMInjection:!R1},If=function(){function e(t,n,i){t===void 0&&(t=Ni),n===void 0&&(n={});var o=this;this.options=xn(xn({},ay),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Su&&Tf&&(Tf=!1,function(a){for(var u=document.querySelectorAll(Z1),l=0,f=u.length;l<f;l++){var h=u[l];h&&h.getAttribute(ci)!=="active"&&(ny(a,h),h.parentNode&&h.parentNode.removeChild(h))}}(this)),Ou(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",h=function(g){var v=function(T){return jo.get(T)}(g);if(v===void 0)return"continue";var C=a.names.get(v),S=u.getGroup(g);if(C===void 0||S.length===0)return"continue";var x="".concat(ci,".g").concat(g,'[id="').concat(v,'"]'),w="";C!==void 0&&C.forEach(function(T){T.length>0&&(w+="".concat(T,","))}),f+="".concat(S).concat(x,'{content:"').concat(w,'"}').concat(`/*!sc*/
47
+ `)},p=0;p<l;p++)h(p);return f}(o)})}return e.registerId=function(t){return No(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(xn(xn({},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 oy(o):i?new iy(o):new sy(o)}(this.options),new X1(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(No(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(No(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(No(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),uy=/&/g,cy=/^\s*\/\/.*$/gm;function Of(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=Of(n.children,t)),n})}function ly(e){var t,n,i,o=Ni,a=o.options,u=a===void 0?Ni:a,l=o.plugins,f=l===void 0?Lo:l,h=function(v,C,S){return S===n||S.startsWith(n)&&S.endsWith(n)&&S.replaceAll(n,"").length>0?".".concat(t):v},p=f.slice();p.push(function(v){v.type===_o&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(uy,n).replace(i,h))}),u.prefix&&p.push(B1),p.push(I1);var g=function(v,C,S,x){C===void 0&&(C=""),S===void 0&&(S=""),x===void 0&&(x="&"),t=x,n=C,i=new RegExp("\\".concat(n,"\\b"),"g");var w=v.replace(cy,""),T=k1(S||C?"".concat(S," ").concat(C," { ").concat(w," }"):w);u.namespace&&(T=Of(T,u.namespace));var j=[];return Do(T,O1(p.concat(F1(function(L){return j.push(L)})))),j};return g.hash=f.length?f.reduce(function(v,C){return C.name||Ui(15),li(v,C.name)},5381).toString():"",g}var fy=new If,Bu=ly(),Ff=Z.createContext({shouldForwardProp:void 0,styleSheet:fy,stylis:Bu});Ff.Consumer,Z.createContext(void 0);function Bf(){return Z.useContext(Ff)}var Df=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=Bu);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,Ou(this,function(){throw Ui(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Bu),this.name+t.hash},e}(),hy=function(e){return e>="A"&&e<="Z"};function Rf(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;hy(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Lf=function(e){return e==null||e===!1||e===""},Pf=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Lf(a)&&(Array.isArray(a)&&a.isCss||$i(a)?i.push("".concat(Rf(o),":"),a,";"):Mi(a)?i.push.apply(i,Ri(Ri(["".concat(o," {")],Pf(a),!1),["}"],!1)):i.push("".concat(Rf(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in D1||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function hi(e,t,n,i){if(Lf(e))return[];if(Tu(e))return[".".concat(e.styledComponentId)];if($i(e)){if(!$i(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return nt.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Df||Mi(o)||o===null||console.error("".concat(bf(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.")),hi(o,t,n,i)}var a;return e instanceof Df?n?(e.inject(n,i),[e.getName(i)]):[e]:Mi(e)?Pf(e):Array.isArray(e)?Array.prototype.concat.apply(Lo,e.map(function(u){return hi(u,t,n,i)})):[e.toString()]}function dy(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($i(n)&&!Tu(n))return!1}return!0}var py=mf("6.0.7"),gy=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=nt.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&dy(t),this.componentId=n,this.baseHash=li(py,n),this.baseStyle=i,If.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=fi(o,this.staticRulesId);else{var a=_f(hi(this.rules,t,n,i)),u=Cu(li(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=fi(o,u),this.staticRulesId=u}else{for(var f=li(this.baseHash,i.hash),h="",p=0;p<this.rules.length;p++){var g=this.rules[p];if(typeof g=="string")h+=g,nt.env.NODE_ENV!=="production"&&(f=li(f,g));else if(g){var v=_f(hi(g,t,n,i));f=li(f,v),h+=v}}if(h){var C=Cu(f>>>0);n.hasNameForId(this.componentId,C)||n.insertRules(this.componentId,C,i(h,".".concat(C),void 0,this.componentId)),o=fi(o,C)}}return o},e}(),jf=Z.createContext(void 0);jf.Consumer;var Du={},Nf=new Set;function yy(e,t,n){var i=Tu(e),o=e,a=!ku(e),u=t.attrs,l=u===void 0?Lo:u,f=t.componentId,h=f===void 0?function(_,O){var F=typeof _!="string"?"sc":gf(_);Du[F]=(Du[F]||0)+1;var B="".concat(F,"-").concat(M1("6.0.7"+F+Du[F]));return O?"".concat(O,"-").concat(B):B}(t.displayName,t.parentComponentId):f,p=t.displayName,g=p===void 0?function(_){return ku(_)?"styled.".concat(_):"Styled(".concat(bf(_),")")}(e):p,v=t.displayName&&t.componentId?"".concat(gf(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 x=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;S=function(_,O){return x(_,O)&&w(_,O)}}else S=x}var T=new gy(n,v,i?o.componentStyle:void 0);function j(_,O){return function(F,B,W){var X=F.attrs,fe=F.componentStyle,le=F.defaultProps,me=F.foldedComponentIds,be=F.styledComponentId,Ae=F.target,de=Z.useContext(jf),Se=Bf(),ke=F.shouldForwardProp||Se.shouldForwardProp;nt.env.NODE_ENV!=="production"&&Z.useDebugValue(be);var Oe=function(Y,oe,De){for(var Je,ve=xn(xn({},oe),{className:void 0,theme:De}),Fe=0;Fe<Y.length;Fe+=1){var je=$i(Je=Y[Fe])?Je(ve):Je;for(var Re in je)ve[Re]=Re==="className"?fi(ve[Re],je[Re]):Re==="style"?xn(xn({},ve[Re]),je[Re]):je[Re]}return oe.className&&(ve.className=fi(ve.className,oe.className)),ve}(X,B,P1(B,de,le)||Ni),Ze=Oe.as||Ae,Ee={};for(var ye in Oe)Oe[ye]===void 0||ye[0]==="$"||ye==="as"||ye==="theme"||(ye==="forwardedAs"?Ee.as=Oe.forwardedAs:ke&&!ke(ye,Ze)||(Ee[ye]=Oe[ye],ke||nt.env.NODE_ENV!=="development"||d1(ye)||Nf.has(ye)||!Au.has(Ze)||(Nf.add(ye),console.warn('styled-components: it looks like an unknown prop "'.concat(ye,'" 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(Y,oe){var De=Bf(),Je=Y.generateAndInjectStyles(oe,De.styleSheet,De.stylis);return nt.env.NODE_ENV!=="production"&&Z.useDebugValue(Je),Je}(fe,Oe);nt.env.NODE_ENV!=="production"&&F.warnTooManyClasses&&F.warnTooManyClasses(We);var J=fi(me,be);return We&&(J+=" "+We),Oe.className&&(J+=" "+Oe.className),Ee[ku(Ze)&&!Au.has(Ze)?"class":"className"]=J,Ee.ref=W,Z.createElement(Ze,Ee)}(L,_,O)}nt.env.NODE_ENV!=="production"&&(j.displayName=g);var L=Z.forwardRef(j);return L.attrs=C,L.componentStyle=T,L.shouldForwardProp=S,nt.env.NODE_ENV!=="production"&&(L.displayName=g),L.foldedComponentIds=i?fi(o.foldedComponentIds,o.styledComponentId):"",L.styledComponentId=v,L.target=i?o.target:e,Object.defineProperty(L,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(_){this._foldedDefaultProps=i?function(O){for(var F=[],B=1;B<arguments.length;B++)F[B-1]=arguments[B];for(var W=0,X=F;W<X.length;W++)Iu(O,X[W],!0);return O}({},o.defaultProps,_):_}}),nt.env.NODE_ENV!=="production"&&(L1(g,v),L.warnTooManyClasses=function(_,O){var F={},B=!1;return function(W){if(!B&&(F[W]=!0,Object.keys(F).length>=200)){var X=O?' with the id of "'.concat(O,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(_).concat(X,`.
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 />`),B=!0,F={}}}}(g,v)),Bu(L,function(){return".".concat(L.styledComponentId)}),a&&Tf(L,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),L}function Vf(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 qf=function(e){return Object.assign(e,{isCss:!0})};function Ay(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if($i(e)||Mi(e)){var i=e;return qf(hi(Vf(Lo,Pi([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?hi(o):qf(hi(Vf(o,t)))}function Lu(e,t,n){if(n===void 0&&(n=ji),!t)throw Ui(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,Ay.apply(void 0,Pi([o],a,!1)))};return i.attrs=function(o){return Lu(e,t,vn(vn({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Lu(e,t,vn(vn({},n),o))},i}var Wf=function(e){return Lu(vy,e)},Je=Wf;_u.forEach(function(e){Je[e]=Wf(e)}),tt.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 />`),B=!0,F={}}}}(g,v)),Ou(L,function(){return".".concat(L.styledComponentId)}),a&&Cf(L,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),L}function $f(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 Mf=function(e){return Object.assign(e,{isCss:!0})};function my(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if($i(e)||Mi(e)){var i=e;return Mf(hi($f(Lo,Ri([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?hi(o):Mf(hi($f(o,t)))}function Ru(e,t,n){if(n===void 0&&(n=Ni),!t)throw Ui(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,my.apply(void 0,Ri([o],a,!1)))};return i.attrs=function(o){return Ru(e,t,xn(xn({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Ru(e,t,xn(xn({},n),o))},i}var Uf=function(e){return Ru(yy,e)},Ge=Uf;Au.forEach(function(e){Ge[e]=Uf(e)}),nt.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 Mo="__sc-".concat(ci,"__");tt.env.NODE_ENV!=="production"&&tt.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Mo]||(window[Mo]=0),window[Mo]===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 $o="__sc-".concat(ci,"__");nt.env.NODE_ENV!=="production"&&nt.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[$o]||(window[$o]=0),window[$o]===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[Mo]+=1);const xr=Je.div`
60
+ See https://s-c.sh/2BAXzed for more info.`),window[$o]+=1);const Ar=Ge.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 Nu={exports:{}},Is={};/**
67
+ `;var Lu={exports:{}},Is={};/**
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[Mo]+=1);const xr=Je.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 Kf;function Sy(){if(Kf)return Is;Kf=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 p,g={},v=null,C=null;d!==void 0&&(v=""+d),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(C=f.ref);for(p in f)i.call(f,p)&&!a.hasOwnProperty(p)&&(g[p]=f[p]);if(l&&l.defaultProps)for(p in f=l.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:t,type:l,key:v,ref:C,props:g,_owner:o.current}}return Is.Fragment=n,Is.jsx=u,Is.jsxs=u,Is}var Os={},Hf;function Ey(){return Hf||(Hf=1,tt.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"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),E=Symbol.iterator,S="@@iterator";function b(M){if(M===null||typeof M!="object")return null;var ce=E&&M[E]||M[S];return typeof ce=="function"?ce:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(M){{for(var ce=arguments.length,ye=new Array(ce>1?ce-1:0),Ie=1;Ie<ce;Ie++)ye[Ie-1]=arguments[Ie];L("error",M,ye)}}function L(M,ce,ye){{var Ie=T.ReactDebugCurrentFrame,lt=Ie.getStackAddendum();lt!==""&&(ce+="%s",ye=ye.concat([lt]));var ft=ye.map(function(nt){return String(nt)});ft.unshift("Warning: "+ce),Function.prototype.apply.call(console[M],console,ft)}}var _=!1,O=!1,F=!1,B=!1,W=!1,Y;Y=Symbol.for("react.module.reference");function fe(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||W||M===o||M===d||M===p||B||M===C||_||O||F||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===g||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===Y||M.getModuleId!==void 0))}function le(M,ce,ye){var Ie=M.displayName;if(Ie)return Ie;var lt=ce.displayName||ce.name||"";return lt!==""?ye+"("+lt+")":ye}function be(M){return M.displayName||"Context"}function ve(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 p:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var ce=M;return be(ce)+".Consumer";case u:var ye=M;return be(ye._context)+".Provider";case f:return le(M,M.render,"ForwardRef");case g:var Ie=M.displayName||null;return Ie!==null?Ie:ve(M.type)||"Memo";case v:{var lt=M,ft=lt._payload,nt=lt._init;try{return ve(nt(ft))}catch{return null}}}return null}var Ce=Object.assign,pe=0,Ee,Oe,Be,Ze,Ae,we,Ke;function J(){}J.__reactDisabledLog=!0;function Q(){{if(pe===0){Ee=console.log,Oe=console.info,Be=console.warn,Ze=console.error,Ae=console.group,we=console.groupCollapsed,Ke=console.groupEnd;var M={configurable:!0,enumerable:!0,value:J,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}pe++}}function ue(){{if(pe--,pe===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ce({},M,{value:Ee}),info:Ce({},M,{value:Oe}),warn:Ce({},M,{value:Be}),error:Ce({},M,{value:Ze}),group:Ce({},M,{value:Ae}),groupCollapsed:Ce({},M,{value:we}),groupEnd:Ce({},M,{value:Ke})})}pe<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var De=T.ReactCurrentDispatcher,Ye;function ke(M,ce,ye){{if(Ye===void 0)try{throw Error()}catch(lt){var Ie=lt.stack.trim().match(/\n( *(at )?)/);Ye=Ie&&Ie[1]||""}return`
76
- `+Ye+M}}var Pe=!1,Fe;{var Ne=typeof WeakMap=="function"?WeakMap:Map;Fe=new Ne}function _t(M,ce){if(!M||Pe)return"";{var ye=Fe.get(M);if(ye!==void 0)return ye}var Ie;Pe=!0;var lt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ft;ft=De.current,De.current=null,Q();try{if(ce){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(Kt){Ie=Kt}Reflect.construct(M,[],nt)}else{try{nt.call()}catch(Kt){Ie=Kt}M.call(nt.prototype)}}else{try{throw Error()}catch(Kt){Ie=Kt}M()}}catch(Kt){if(Kt&&Ie&&typeof Kt.stack=="string"){for(var Xe=Kt.stack.split(`
75
+ */var Vf;function by(){if(Vf)return Is;Vf=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 p,g={},v=null,C=null;h!==void 0&&(v=""+h),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(C=f.ref);for(p in f)i.call(f,p)&&!a.hasOwnProperty(p)&&(g[p]=f[p]);if(l&&l.defaultProps)for(p in f=l.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:t,type:l,key:v,ref:C,props:g,_owner:o.current}}return Is.Fragment=n,Is.jsx=u,Is.jsxs=u,Is}var Os={},qf;function wy(){return qf||(qf=1,nt.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"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),S=Symbol.iterator,x="@@iterator";function w(M){if(M===null||typeof M!="object")return null;var ce=S&&M[S]||M[x];return typeof ce=="function"?ce:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(M){{for(var ce=arguments.length,pe=new Array(ce>1?ce-1:0),Ie=1;Ie<ce;Ie++)pe[Ie-1]=arguments[Ie];L("error",M,pe)}}function L(M,ce,pe){{var Ie=T.ReactDebugCurrentFrame,ct=Ie.getStackAddendum();ct!==""&&(ce+="%s",pe=pe.concat([ct]));var lt=pe.map(function(rt){return String(rt)});lt.unshift("Warning: "+ce),Function.prototype.apply.call(console[M],console,lt)}}var _=!1,O=!1,F=!1,B=!1,W=!1,X;X=Symbol.for("react.module.reference");function fe(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||W||M===o||M===h||M===p||B||M===C||_||O||F||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===g||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===X||M.getModuleId!==void 0))}function le(M,ce,pe){var Ie=M.displayName;if(Ie)return Ie;var ct=ce.displayName||ce.name||"";return ct!==""?pe+"("+ct+")":pe}function me(M){return M.displayName||"Context"}function be(M){if(M==null)return null;if(typeof M.tag=="number"&&j("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 p:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var ce=M;return me(ce)+".Consumer";case u:var pe=M;return me(pe._context)+".Provider";case f:return le(M,M.render,"ForwardRef");case g:var Ie=M.displayName||null;return Ie!==null?Ie:be(M.type)||"Memo";case v:{var ct=M,lt=ct._payload,rt=ct._init;try{return be(rt(lt))}catch{return null}}}return null}var Ae=Object.assign,de=0,Se,ke,Oe,Ze,Ee,ye,We;function J(){}J.__reactDisabledLog=!0;function Y(){{if(de===0){Se=console.log,ke=console.info,Oe=console.warn,Ze=console.error,Ee=console.group,ye=console.groupCollapsed,We=console.groupEnd;var M={configurable:!0,enumerable:!0,value:J,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}de++}}function oe(){{if(de--,de===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ae({},M,{value:Se}),info:Ae({},M,{value:ke}),warn:Ae({},M,{value:Oe}),error:Ae({},M,{value:Ze}),group:Ae({},M,{value:Ee}),groupCollapsed:Ae({},M,{value:ye}),groupEnd:Ae({},M,{value:We})})}de<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var De=T.ReactCurrentDispatcher,Je;function ve(M,ce,pe){{if(Je===void 0)try{throw Error()}catch(ct){var Ie=ct.stack.trim().match(/\n( *(at )?)/);Je=Ie&&Ie[1]||""}return`
76
+ `+Je+M}}var Fe=!1,je;{var Re=typeof WeakMap=="function"?WeakMap:Map;je=new Re}function Ct(M,ce){if(!M||Fe)return"";{var pe=je.get(M);if(pe!==void 0)return pe}var Ie;Fe=!0;var ct=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var lt;lt=De.current,De.current=null,Y();try{if(ce){var rt=function(){throw Error()};if(Object.defineProperty(rt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(rt,[])}catch(Kt){Ie=Kt}Reflect.construct(M,[],rt)}else{try{rt.call()}catch(Kt){Ie=Kt}M.call(rt.prototype)}}else{try{throw Error()}catch(Kt){Ie=Kt}M()}}catch(Kt){if(Kt&&Ie&&typeof Kt.stack=="string"){for(var Xe=Kt.stack.split(`
77
77
  `),Xt=Ie.stack.split(`
78
- `),Ot=Xe.length-1,Bt=Xt.length-1;Ot>=1&&Bt>=0&&Xe[Ot]!==Xt[Bt];)Bt--;for(;Ot>=1&&Bt>=0;Ot--,Bt--)if(Xe[Ot]!==Xt[Bt]){if(Ot!==1||Bt!==1)do if(Ot--,Bt--,Bt<0||Xe[Ot]!==Xt[Bt]){var cn=`
79
- `+Xe[Ot].replace(" at new "," at ");return M.displayName&&cn.includes("<anonymous>")&&(cn=cn.replace("<anonymous>",M.displayName)),typeof M=="function"&&Fe.set(M,cn),cn}while(Ot>=1&&Bt>=0);break}}}finally{Pe=!1,De.current=ft,ue(),Error.prepareStackTrace=lt}var Tn=M?M.displayName||M.name:"",ir=Tn?ke(Tn):"";return typeof M=="function"&&Fe.set(M,ir),ir}function nn(M,ce,ye){return _t(M,!1)}function Pt(M){var ce=M.prototype;return!!(ce&&ce.isReactComponent)}function Rt(M,ce,ye){if(M==null)return"";if(typeof M=="function")return _t(M,Pt(M));if(typeof M=="string")return ke(M);switch(M){case d:return ke("Suspense");case p:return ke("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return nn(M.render);case g:return Rt(M.type,ce,ye);case v:{var Ie=M,lt=Ie._payload,ft=Ie._init;try{return Rt(ft(lt),ce,ye)}catch{}}}return""}var Lt=Object.prototype.hasOwnProperty,wt={},kn=T.ReactDebugCurrentFrame;function An(M){if(M){var ce=M._owner,ye=Rt(M.type,M._source,ce?ce.type:null);kn.setExtraStackFrame(ye)}else kn.setExtraStackFrame(null)}function _e(M,ce,ye,Ie,lt){{var ft=Function.call.bind(Lt);for(var nt in M)if(ft(M,nt)){var Xe=void 0;try{if(typeof M[nt]!="function"){var Xt=Error((Ie||"React class")+": "+ye+" 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](ce,nt,Ie,ye,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){Xe=Ot}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).",Ie||"React class",ye,nt,typeof Xe),An(null)),Xe instanceof Error&&!(Xe.message in wt)&&(wt[Xe.message]=!0,An(lt),N("Failed %s type: %s",ye,Xe.message),An(null))}}}var Re=Array.isArray;function de(M){return Re(M)}function Et(M){{var ce=typeof Symbol=="function"&&Symbol.toStringTag,ye=ce&&M[Symbol.toStringTag]||M.constructor.name||"Object";return ye}}function Nt(M){try{return vt(M),!1}catch{return!0}}function vt(M){return""+M}function rt(M){if(Nt(M))return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Et(M)),vt(M)}var ge=T.ReactCurrentOwner,xe={key:!0,ref:!0,__self:!0,__source:!0},ut,I;function y(M){if(Lt.call(M,"ref")){var ce=Object.getOwnPropertyDescriptor(M,"ref").get;if(ce&&ce.isReactWarning)return!1}return M.ref!==void 0}function w(M){if(Lt.call(M,"key")){var ce=Object.getOwnPropertyDescriptor(M,"key").get;if(ce&&ce.isReactWarning)return!1}return M.key!==void 0}function R(M,ce){typeof M.ref=="string"&&ge.current}function V(M,ce){{var ye=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)",ce))};ye.isReactWarning=!0,Object.defineProperty(M,"key",{get:ye,configurable:!0})}}function G(M,ce){{var ye=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)",ce))};ye.isReactWarning=!0,Object.defineProperty(M,"ref",{get:ye,configurable:!0})}}var ee=function(M,ce,ye,Ie,lt,ft,nt){var Xe={$$typeof:t,type:M,key:ce,ref:ye,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:Ie}),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,ce,ye,Ie,lt){{var ft,nt={},Xe=null,Xt=null;ye!==void 0&&(rt(ye),Xe=""+ye),w(ce)&&(rt(ce.key),Xe=""+ce.key),y(ce)&&(Xt=ce.ref,R(ce,lt));for(ft in ce)Lt.call(ce,ft)&&!xe.hasOwnProperty(ft)&&(nt[ft]=ce[ft]);if(M&&M.defaultProps){var Ot=M.defaultProps;for(ft in Ot)nt[ft]===void 0&&(nt[ft]=Ot[ft])}if(Xe||Xt){var Bt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Xe&&V(nt,Bt),Xt&&G(nt,Bt)}return ee(M,Xe,Xt,lt,Ie,ge.current,nt)}}var pt=T.ReactCurrentOwner,ct=T.ReactDebugCurrentFrame;function dt(M){if(M){var ce=M._owner,ye=Rt(M.type,M._source,ce?ce.type:null);ct.setExtraStackFrame(ye)}else ct.setExtraStackFrame(null)}var st;st=!1;function Gr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Ai(){{if(pt.current){var M=ve(pt.current.type);if(M)return`
78
+ `),Ot=Xe.length-1,Dt=Xt.length-1;Ot>=1&&Dt>=0&&Xe[Ot]!==Xt[Dt];)Dt--;for(;Ot>=1&&Dt>=0;Ot--,Dt--)if(Xe[Ot]!==Xt[Dt]){if(Ot!==1||Dt!==1)do if(Ot--,Dt--,Dt<0||Xe[Ot]!==Xt[Dt]){var fn=`
79
+ `+Xe[Ot].replace(" at new "," at ");return M.displayName&&fn.includes("<anonymous>")&&(fn=fn.replace("<anonymous>",M.displayName)),typeof M=="function"&&je.set(M,fn),fn}while(Ot>=1&&Dt>=0);break}}}finally{Fe=!1,De.current=lt,oe(),Error.prepareStackTrace=ct}var Tn=M?M.displayName||M.name:"",ir=Tn?ve(Tn):"";return typeof M=="function"&&je.set(M,ir),ir}function nn(M,ce,pe){return Ct(M,!1)}function Lt(M){var ce=M.prototype;return!!(ce&&ce.isReactComponent)}function Pt(M,ce,pe){if(M==null)return"";if(typeof M=="function")return Ct(M,Lt(M));if(typeof M=="string")return ve(M);switch(M){case h:return ve("Suspense");case p:return ve("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return nn(M.render);case g:return Pt(M.type,ce,pe);case v:{var Ie=M,ct=Ie._payload,lt=Ie._init;try{return Pt(lt(ct),ce,pe)}catch{}}}return""}var jt=Object.prototype.hasOwnProperty,bt={},Te=T.ReactDebugCurrentFrame;function et(M){if(M){var ce=M._owner,pe=Pt(M.type,M._source,ce?ce.type:null);Te.setExtraStackFrame(pe)}else Te.setExtraStackFrame(null)}function gt(M,ce,pe,Ie,ct){{var lt=Function.call.bind(jt);for(var rt in M)if(lt(M,rt)){var Xe=void 0;try{if(typeof M[rt]!="function"){var Xt=Error((Ie||"React class")+": "+pe+" type `"+rt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[rt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Xt.name="Invariant Violation",Xt}Xe=M[rt](ce,rt,Ie,pe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){Xe=Ot}Xe&&!(Xe instanceof Error)&&(et(ct),j("%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).",Ie||"React class",pe,rt,typeof Xe),et(null)),Xe instanceof Error&&!(Xe.message in bt)&&(bt[Xe.message]=!0,et(ct),j("Failed %s type: %s",pe,Xe.message),et(null))}}}var vt=Array.isArray;function we(M){return vt(M)}function It(M){{var ce=typeof Symbol=="function"&&Symbol.toStringTag,pe=ce&&M[Symbol.toStringTag]||M.constructor.name||"Object";return pe}}function an(M){try{return Ye(M),!1}catch{return!0}}function Ye(M){return""+M}function Bt(M){if(an(M))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",It(M)),Ye(M)}var _e=T.ReactCurrentOwner,Ne={key:!0,ref:!0,__self:!0,__source:!0},Wt,I;function y(M){if(jt.call(M,"ref")){var ce=Object.getOwnPropertyDescriptor(M,"ref").get;if(ce&&ce.isReactWarning)return!1}return M.ref!==void 0}function b(M){if(jt.call(M,"key")){var ce=Object.getOwnPropertyDescriptor(M,"key").get;if(ce&&ce.isReactWarning)return!1}return M.key!==void 0}function P(M,ce){typeof M.ref=="string"&&_e.current}function q(M,ce){{var pe=function(){Wt||(Wt=!0,j("%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)",ce))};pe.isReactWarning=!0,Object.defineProperty(M,"key",{get:pe,configurable:!0})}}function G(M,ce){{var pe=function(){I||(I=!0,j("%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)",ce))};pe.isReactWarning=!0,Object.defineProperty(M,"ref",{get:pe,configurable:!0})}}var ee=function(M,ce,pe,Ie,ct,lt,rt){var Xe={$$typeof:t,type:M,key:ce,ref:pe,props:rt,_owner:lt};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:Ie}),Object.defineProperty(Xe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ct}),Object.freeze&&(Object.freeze(Xe.props),Object.freeze(Xe)),Xe};function Me(M,ce,pe,Ie,ct){{var lt,rt={},Xe=null,Xt=null;pe!==void 0&&(Bt(pe),Xe=""+pe),b(ce)&&(Bt(ce.key),Xe=""+ce.key),y(ce)&&(Xt=ce.ref,P(ce,ct));for(lt in ce)jt.call(ce,lt)&&!Ne.hasOwnProperty(lt)&&(rt[lt]=ce[lt]);if(M&&M.defaultProps){var Ot=M.defaultProps;for(lt in Ot)rt[lt]===void 0&&(rt[lt]=Ot[lt])}if(Xe||Xt){var Dt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Xe&&q(rt,Dt),Xt&&G(rt,Dt)}return ee(M,Xe,Xt,ct,Ie,_e.current,rt)}}var dt=T.ReactCurrentOwner,ut=T.ReactDebugCurrentFrame;function ht(M){if(M){var ce=M._owner,pe=Pt(M.type,M._source,ce?ce.type:null);ut.setExtraStackFrame(pe)}else ut.setExtraStackFrame(null)}var st;st=!1;function Gr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Ei(){{if(dt.current){var M=be(dt.current.type);if(M)return`
80
80
 
81
- Check the render method of \``+M+"`."}return""}}function as(M){return""}var us={};function cs(M){{var ce=Ai();if(!ce){var ye=typeof M=="string"?M:M.displayName||M.name;ye&&(ce=`
81
+ Check the render method of \``+M+"`."}return""}}function as(M){return""}var us={};function cs(M){{var ce=Ei();if(!ce){var pe=typeof M=="string"?M:M.displayName||M.name;pe&&(ce=`
82
82
 
83
- Check the top-level render call using <`+ye+">.")}return ce}}function Jr(M,ce){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var ye=cs(ce);if(us[ye])return;us[ye]=!0;var Ie="";M&&M._owner&&M._owner!==pt.current&&(Ie=" It was passed a child from "+ve(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.',ye,Ie),dt(null)}}function Si(M,ce){{if(typeof M!="object")return;if(de(M))for(var ye=0;ye<M.length;ye++){var Ie=M[ye];Gr(Ie)&&Jr(Ie,ce)}else if(Gr(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;)Gr(nt.value)&&Jr(nt.value,ce)}}}function ro(M){{var ce=M.type;if(ce==null||typeof ce=="string")return;var ye;if(typeof ce=="function")ye=ce.propTypes;else if(typeof ce=="object"&&(ce.$$typeof===f||ce.$$typeof===g))ye=ce.propTypes;else return;if(ye){var Ie=ve(ce);_e(ye,M.props,"prop",Ie,M)}else if(ce.PropTypes!==void 0&&!st){st=!0;var lt=ve(ce);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",lt||"Unknown")}typeof ce.getDefaultProps=="function"&&!ce.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function io(M){{for(var ce=Object.keys(M.props),ye=0;ye<ce.length;ye++){var Ie=ce[ye];if(Ie!=="children"&&Ie!=="key"){dt(M),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ie),dt(null);break}}M.ref!==null&&(dt(M),N("Invalid attribute `ref` supplied to `React.Fragment`."),dt(null))}}var Ir={};function rr(M,ce,ye,Ie,lt,ft){{var nt=fe(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=as();Xt?Xe+=Xt:Xe+=Ai();var Ot;M===null?Ot="null":de(M)?Ot="array":M!==void 0&&M.$$typeof===t?(Ot="<"+(ve(M.type)||"Unknown")+" />",Xe=" Did you accidentally export a JSX literal instead of a component?"):Ot=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",Ot,Xe)}var Bt=Me(M,ce,ye,lt,ft);if(Bt==null)return Bt;if(nt){var cn=ce.children;if(cn!==void 0)if(Ie)if(de(cn)){for(var Tn=0;Tn<cn.length;Tn++)Si(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 Si(cn,M)}if(Lt.call(ce,"key")){var ir=ve(M),Kt=Object.keys(ce).filter(function(uo){return uo!=="key"}),Ei=Kt.length>0?"{key: someKey, "+Kt.join(": ..., ")+": ...}":"{key: someKey}";if(!Ir[ir+Ei]){var ao=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 <`+pe+">.")}return ce}}function Jr(M,ce){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var pe=cs(ce);if(us[pe])return;us[pe]=!0;var Ie="";M&&M._owner&&M._owner!==dt.current&&(Ie=" It was passed a child from "+be(M._owner.type)+"."),ht(M),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',pe,Ie),ht(null)}}function xi(M,ce){{if(typeof M!="object")return;if(we(M))for(var pe=0;pe<M.length;pe++){var Ie=M[pe];Gr(Ie)&&Jr(Ie,ce)}else if(Gr(M))M._store&&(M._store.validated=!0);else if(M){var ct=w(M);if(typeof ct=="function"&&ct!==M.entries)for(var lt=ct.call(M),rt;!(rt=lt.next()).done;)Gr(rt.value)&&Jr(rt.value,ce)}}}function no(M){{var ce=M.type;if(ce==null||typeof ce=="string")return;var pe;if(typeof ce=="function")pe=ce.propTypes;else if(typeof ce=="object"&&(ce.$$typeof===f||ce.$$typeof===g))pe=ce.propTypes;else return;if(pe){var Ie=be(ce);gt(pe,M.props,"prop",Ie,M)}else if(ce.PropTypes!==void 0&&!st){st=!0;var ct=be(ce);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ct||"Unknown")}typeof ce.getDefaultProps=="function"&&!ce.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ro(M){{for(var ce=Object.keys(M.props),pe=0;pe<ce.length;pe++){var Ie=ce[pe];if(Ie!=="children"&&Ie!=="key"){ht(M),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ie),ht(null);break}}M.ref!==null&&(ht(M),j("Invalid attribute `ref` supplied to `React.Fragment`."),ht(null))}}var Ir={};function rr(M,ce,pe,Ie,ct,lt){{var rt=fe(M);if(!rt){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=as();Xt?Xe+=Xt:Xe+=Ei();var Ot;M===null?Ot="null":we(M)?Ot="array":M!==void 0&&M.$$typeof===t?(Ot="<"+(be(M.type)||"Unknown")+" />",Xe=" Did you accidentally export a JSX literal instead of a component?"):Ot=typeof M,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ot,Xe)}var Dt=Me(M,ce,pe,ct,lt);if(Dt==null)return Dt;if(rt){var fn=ce.children;if(fn!==void 0)if(Ie)if(we(fn)){for(var Tn=0;Tn<fn.length;Tn++)xi(fn[Tn],M);Object.freeze&&Object.freeze(fn)}else j("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 xi(fn,M)}if(jt.call(ce,"key")){var ir=be(M),Kt=Object.keys(ce).filter(function(ao){return ao!=="key"}),Si=Kt.length>0?"{key: someKey, "+Kt.join(": ..., ")+": ...}":"{key: someKey}";if(!Ir[ir+Si]){var oo=Kt.length>0?"{"+Kt.join(": ..., ")+": ...}":"{}";j(`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} />`,Ei,ir,ao,ir),Ir[ir+Ei]=!0}}return M===i?io(Bt):ro(Bt),Bt}}function Yr(M,ce,ye){return rr(M,ce,ye,!0)}function so(M,ce,ye){return rr(M,ce,ye,!1)}var oo=so,pn=Yr;Os.Fragment=i,Os.jsx=oo,Os.jsxs=pn}()),Os}tt.env.NODE_ENV==="production"?Nu.exports=Sy():Nu.exports=Ey();var A=Nu.exports;const xy={CustomTreeProvider:Je.div`
88
+ <%s key={someKey} {...props} />`,Si,ir,oo,ir),Ir[ir+Si]=!0}}return M===i?ro(Dt):no(Dt),Dt}}function Yr(M,ce,pe){return rr(M,ce,pe,!0)}function io(M,ce,pe){return rr(M,ce,pe,!1)}var so=io,yn=Yr;Os.Fragment=i,Os.jsx=so,Os.jsxs=yn}()),Os}nt.env.NODE_ENV==="production"?Lu.exports=by():Lu.exports=wy();var E=Lu.exports;const vy={CustomTreeProvider:Ge.div`
89
89
  .ant-tree-switcher {
90
90
  display: flex;
91
91
  align-items: center;
92
92
  justify-content: center;
93
93
  }
94
- `},{Search:Cy}=q.Input,_y=({treeData:e,onSelect:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(""),u=f=>{const{value:d}=f.target,p={},g=(b,T)=>{b.forEach(N=>{p[N.key]=T,N.children&&g(N.children,N.key)})};g(e,null);const v=b=>{const T=[];let N=p[b];for(;N;)T.push(N),N=p[N];return T},C=[],E=b=>{b.forEach(T=>{if(T.title.toLowerCase().includes(d.toLowerCase())){C.push(T.key);const L=v(T.key);C.push(...L)}T.children&&E(T.children)})};E(e);const S=Array.from(new Set(C)).filter(Boolean);i(S),a(d)},l=f=>f.map(d=>{const p=d.title,g=p.toLowerCase().indexOf(o.toLowerCase()),v=p.substring(0,g),C=p.substring(g+o.length),E=g>-1?A.jsxs("span",{children:[v,A.jsx("span",{style:{color:"#f50"},children:o}),C]}):A.jsx("span",{children:p});return d.children?{...d,title:E,children:l(d.children)}:{...d,title:E}});return A.jsxs(A.Fragment,{children:[A.jsx(Cy,{style:{marginBottom:8},placeholder:"Search",onChange:u}),A.jsx(xy.CustomTreeProvider,{children:A.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(p=>p!==d.node.key)]):i([...n,d.node.key])}})})]})},ky=globalThis||void 0||self;function zf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ty}=Object.prototype,{getPrototypeOf:ju}=Object,Uo=(e=>t=>{const n=Ty.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hr=e=>(e=e.toLowerCase(),t=>Uo(t)===e),Vo=e=>t=>typeof t===e,{isArray:Vi}=Array,Fs=Vo("undefined");function Iy(e){return e!==null&&!Fs(e)&&e.constructor!==null&&!Fs(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gf=hr("ArrayBuffer");function Oy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gf(e.buffer),t}const Fy=Vo("string"),Nn=Vo("function"),Jf=Vo("number"),qo=e=>e!==null&&typeof e=="object",By=e=>e===!0||e===!1,Wo=e=>{if(Uo(e)!=="object")return!1;const t=ju(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Dy=hr("Date"),Py=hr("File"),Ry=hr("Blob"),Ly=hr("FileList"),Ny=e=>qo(e)&&Nn(e.pipe),jy=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nn(e.append)&&((t=Uo(e))==="formdata"||t==="object"&&Nn(e.toString)&&e.toString()==="[object FormData]"))},$y=hr("URLSearchParams"),My=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),Vi(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 Yf(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 Xf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ky,Qf=e=>!Fs(e)&&e!==Xf;function $u(){const{caseless:e}=Qf(this)&&this||{},t={},n=(i,o)=>{const a=e&&Yf(t,o)||o;Wo(t[a])&&Wo(i)?t[a]=$u(t[a],i):Wo(i)?t[a]=$u({},i):Vi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Bs(arguments[i],n);return t}const Uy=(e,t,n,{allOwnKeys:i}={})=>(Bs(t,(o,a)=>{n&&Nn(o)?e[a]=zf(o,n):e[a]=o},{allOwnKeys:i}),e),Vy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qy=(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)},Wy=(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&&ju(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ky=(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(Vi(e))return e;let t=e.length;if(!Jf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ju(Uint8Array)),Gy=(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])}},Jy=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Yy=hr("HTMLFormElement"),Xy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),Zf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Qy=hr("RegExp"),eh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Bs(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},Zy=e=>{eh(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+"'")})}})},em=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return Vi(e)?i(e):i(String(e).split(t)),n},tm=()=>{},nm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Mu="abcdefghijklmnopqrstuvwxyz",th="0123456789",nh={DIGIT:th,ALPHA:Mu,ALPHA_DIGIT:Mu+Mu.toUpperCase()+th},rm=(e=16,t=nh.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function im(e){return!!(e&&Nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const sm=e=>{const t=new Array(10),n=(i,o)=>{if(qo(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=Vi(i)?[]:{};return Bs(i,(u,l)=>{const f=n(u,o+1);!Fs(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},om=hr("AsyncFunction"),re={isArray:Vi,isArrayBuffer:Gf,isBuffer:Iy,isFormData:jy,isArrayBufferView:Oy,isString:Fy,isNumber:Jf,isBoolean:By,isObject:qo,isPlainObject:Wo,isUndefined:Fs,isDate:Dy,isFile:Py,isBlob:Ry,isRegExp:Qy,isFunction:Nn,isStream:Ny,isURLSearchParams:$y,isTypedArray:zy,isFileList:Ly,forEach:Bs,merge:$u,extend:Uy,trim:My,stripBOM:Vy,inherits:qy,toFlatObject:Wy,kindOf:Uo,kindOfTest:hr,endsWith:Ky,toArray:Hy,forEachEntry:Gy,matchAll:Jy,isHTMLForm:Yy,hasOwnProperty:Zf,hasOwnProp:Zf,reduceDescriptors:eh,freezeMethods:Zy,toObjectSet:em,toCamelCase:Xy,noop:tm,toFiniteNumber:nm,findKey:Yf,global:Xf,isContextDefined:Qf,ALPHABET:nh,generateString:rm,isSpecCompliantForm:im,toJSONObject:sm,isAsyncFn:om,isThenable:e=>e&&(qo(e)||Nn(e))&&Nn(e.then)&&Nn(e.catch)};var rh={},Ko={};Ko.byteLength=cm,Ko.toByteArray=fm,Ko.fromByteArray=pm;for(var dr=[],jn=[],am=typeof Uint8Array<"u"?Uint8Array:Array,Uu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qi=0,um=Uu.length;qi<um;++qi)dr[qi]=Uu[qi],jn[Uu.charCodeAt(qi)]=qi;jn[45]=62,jn[95]=63;function ih(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 cm(e){var t=ih(e),n=t[0],i=t[1];return(n+i)*3/4-i}function lm(e,t,n){return(t+n)*3/4-n}function fm(e){var t,n=ih(e),i=n[0],o=n[1],a=new am(lm(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 hm(e){return dr[e>>18&63]+dr[e>>12&63]+dr[e>>6&63]+dr[e&63]}function dm(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(hm(i));return o.join("")}function pm(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(dm(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(dr[t>>2]+dr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(dr[t>>10]+dr[t>>4&63]+dr[t<<2&63]+"=")),o.join("")}var Vu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Vu.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,d=f>>1,p=-7,g=n?o-1:0,v=n?-1:1,C=e[t+g];for(g+=v,a=C&(1<<-p)-1,C>>=-p,p+=l;p>0;a=a*256+e[t+g],g+=v,p-=8);for(u=a&(1<<-p)-1,a>>=-p,p+=i;p>0;u=u*256+e[t+g],g+=v,p-=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)},Vu.write=function(e,t,n,i,o,a){var u,l,f,d=a*8-o-1,p=(1<<d)-1,g=p>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:a-1,E=i?1:-1,S=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=p):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+g>=1?t+=v/f:t+=v*Math.pow(2,1-g),t*f>=2&&(u++,f/=2),u+g>=p?(l=0,u=p):u+g>=1?(l=(t*f-1)*Math.pow(2,o),u=u+g):(l=t*Math.pow(2,g-1)*Math.pow(2,o),u=0));o>=8;e[n+C]=l&255,C+=E,l/=256,o-=8);for(u=u<<o|l,d+=o;d>0;e[n+C]=u&255,C+=E,u/=256,d-=8);e[n+C-E]|=S*128};/*!
94
+ `},{Search:Ey}=V.Input,xy=({treeData:e,onSelect:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(""),u=f=>{const{value:h}=f.target,p={},g=(w,T)=>{w.forEach(j=>{p[j.key]=T,j.children&&g(j.children,j.key)})};g(e,null);const v=w=>{const T=[];let j=p[w];for(;j;)T.push(j),j=p[j];return T},C=[],S=w=>{w.forEach(T=>{if(T.title.toLowerCase().includes(h.toLowerCase())){C.push(T.key);const L=v(T.key);C.push(...L)}T.children&&S(T.children)})};S(e);const x=Array.from(new Set(C)).filter(Boolean);i(x),a(h)},l=f=>f.map(h=>{const p=h.title,g=p.toLowerCase().indexOf(o.toLowerCase()),v=p.substring(0,g),C=p.substring(g+o.length),S=g>-1?E.jsxs("span",{children:[v,E.jsx("span",{style:{color:"#f50"},children:o}),C]}):E.jsx("span",{children:p});return h.children?{...h,title:S,children:l(h.children)}:{...h,title:S}});return E.jsxs(E.Fragment,{children:[E.jsx(Ey,{style:{marginBottom:8},placeholder:"Search",onChange:u}),E.jsx(vy.CustomTreeProvider,{children:E.jsx(V.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(p=>p!==h.node.key)]):i([...n,h.node.key])}})})]})},Sy=globalThis||void 0||self;function Wf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ay}=Object.prototype,{getPrototypeOf:Pu}=Object,Mo=(e=>t=>{const n=Ay.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fr=e=>(e=e.toLowerCase(),t=>Mo(t)===e),Uo=e=>t=>typeof t===e,{isArray:Vi}=Array,Fs=Uo("undefined");function Cy(e){return e!==null&&!Fs(e)&&e.constructor!==null&&!Fs(e.constructor)&&jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kf=fr("ArrayBuffer");function _y(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kf(e.buffer),t}const ky=Uo("string"),jn=Uo("function"),Hf=Uo("number"),Vo=e=>e!==null&&typeof e=="object",Ty=e=>e===!0||e===!1,qo=e=>{if(Mo(e)!=="object")return!1;const t=Pu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Iy=fr("Date"),Oy=fr("File"),Fy=fr("Blob"),By=fr("FileList"),Dy=e=>Vo(e)&&jn(e.pipe),Ry=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jn(e.append)&&((t=Mo(e))==="formdata"||t==="object"&&jn(e.toString)&&e.toString()==="[object FormData]"))},Ly=fr("URLSearchParams"),Py=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),Vi(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 zf(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 Gf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Sy,Jf=e=>!Fs(e)&&e!==Gf;function ju(){const{caseless:e}=Jf(this)&&this||{},t={},n=(i,o)=>{const a=e&&zf(t,o)||o;qo(t[a])&&qo(i)?t[a]=ju(t[a],i):qo(i)?t[a]=ju({},i):Vi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Bs(arguments[i],n);return t}const jy=(e,t,n,{allOwnKeys:i}={})=>(Bs(t,(o,a)=>{n&&jn(o)?e[a]=Wf(o,n):e[a]=o},{allOwnKeys:i}),e),Ny=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$y=(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)},My=(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&&Pu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Uy=(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},Vy=e=>{if(!e)return null;if(Vi(e))return e;let t=e.length;if(!Hf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pu(Uint8Array)),Wy=(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])}},Ky=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Hy=fr("HTMLFormElement"),zy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),Yf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gy=fr("RegExp"),Xf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Bs(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},Jy=e=>{Xf(e,(t,n)=>{if(jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(jn(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+"'")})}})},Yy=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return Vi(e)?i(e):i(String(e).split(t)),n},Xy=()=>{},Qy=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Nu="abcdefghijklmnopqrstuvwxyz",Qf="0123456789",Zf={DIGIT:Qf,ALPHA:Nu,ALPHA_DIGIT:Nu+Nu.toUpperCase()+Qf},Zy=(e=16,t=Zf.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function em(e){return!!(e&&jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tm=e=>{const t=new Array(10),n=(i,o)=>{if(Vo(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=Vi(i)?[]:{};return Bs(i,(u,l)=>{const f=n(u,o+1);!Fs(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},nm=fr("AsyncFunction"),re={isArray:Vi,isArrayBuffer:Kf,isBuffer:Cy,isFormData:Ry,isArrayBufferView:_y,isString:ky,isNumber:Hf,isBoolean:Ty,isObject:Vo,isPlainObject:qo,isUndefined:Fs,isDate:Iy,isFile:Oy,isBlob:Fy,isRegExp:Gy,isFunction:jn,isStream:Dy,isURLSearchParams:Ly,isTypedArray:qy,isFileList:By,forEach:Bs,merge:ju,extend:jy,trim:Py,stripBOM:Ny,inherits:$y,toFlatObject:My,kindOf:Mo,kindOfTest:fr,endsWith:Uy,toArray:Vy,forEachEntry:Wy,matchAll:Ky,isHTMLForm:Hy,hasOwnProperty:Yf,hasOwnProp:Yf,reduceDescriptors:Xf,freezeMethods:Jy,toObjectSet:Yy,toCamelCase:zy,noop:Xy,toFiniteNumber:Qy,findKey:zf,global:Gf,isContextDefined:Jf,ALPHABET:Zf,generateString:Zy,isSpecCompliantForm:em,toJSONObject:tm,isAsyncFn:nm,isThenable:e=>e&&(Vo(e)||jn(e))&&jn(e.then)&&jn(e.catch)};var eh={},Wo={};Wo.byteLength=sm,Wo.toByteArray=am,Wo.fromByteArray=lm;for(var hr=[],Nn=[],rm=typeof Uint8Array<"u"?Uint8Array:Array,$u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qi=0,im=$u.length;qi<im;++qi)hr[qi]=$u[qi],Nn[$u.charCodeAt(qi)]=qi;Nn[45]=62,Nn[95]=63;function th(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 sm(e){var t=th(e),n=t[0],i=t[1];return(n+i)*3/4-i}function om(e,t,n){return(t+n)*3/4-n}function am(e){var t,n=th(e),i=n[0],o=n[1],a=new rm(om(e,i,o)),u=0,l=o>0?i-4:i,f;for(f=0;f<l;f+=4)t=Nn[e.charCodeAt(f)]<<18|Nn[e.charCodeAt(f+1)]<<12|Nn[e.charCodeAt(f+2)]<<6|Nn[e.charCodeAt(f+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=t&255;return o===2&&(t=Nn[e.charCodeAt(f)]<<2|Nn[e.charCodeAt(f+1)]>>4,a[u++]=t&255),o===1&&(t=Nn[e.charCodeAt(f)]<<10|Nn[e.charCodeAt(f+1)]<<4|Nn[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=t&255),a}function um(e){return hr[e>>18&63]+hr[e>>12&63]+hr[e>>6&63]+hr[e&63]}function cm(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(um(i));return o.join("")}function lm(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(cm(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(hr[t>>2]+hr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(hr[t>>10]+hr[t>>4&63]+hr[t<<2&63]+"=")),o.join("")}var Mu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Mu.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,h=f>>1,p=-7,g=n?o-1:0,v=n?-1:1,C=e[t+g];for(g+=v,a=C&(1<<-p)-1,C>>=-p,p+=l;p>0;a=a*256+e[t+g],g+=v,p-=8);for(u=a&(1<<-p)-1,a>>=-p,p+=i;p>0;u=u*256+e[t+g],g+=v,p-=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)},Mu.write=function(e,t,n,i,o,a){var u,l,f,h=a*8-o-1,p=(1<<h)-1,g=p>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:a-1,S=i?1:-1,x=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=p):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+g>=1?t+=v/f:t+=v*Math.pow(2,1-g),t*f>=2&&(u++,f/=2),u+g>=p?(l=0,u=p):u+g>=1?(l=(t*f-1)*Math.pow(2,o),u=u+g):(l=t*Math.pow(2,g-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]|=x*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=Ko,n=Vu,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=p,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;p.TYPED_ARRAY_SUPPORT=f(),!p.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(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.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,p.prototype),y}function p(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 E(I)}return g(I,y,w)}p.poolSize=8192;function g(I,y,w){if(typeof I=="string")return S(I,y);if(u.isView(I))return T(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 R=I.valueOf&&I.valueOf();if(R!=null&&R!==I)return p.from(R,y,w);const V=L(I);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return p.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)}p.from=function(I,y,w){return g(I,y,w)},Object.setPrototypeOf(p.prototype,a.prototype),Object.setPrototypeOf(p,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)}p.alloc=function(I,y,w){return C(I,y,w)};function E(I){return v(I),d(I<0?0:_(I)|0)}p.allocUnsafe=function(I){return E(I)},p.allocUnsafeSlow=function(I){return E(I)};function S(I,y){if((typeof y!="string"||y==="")&&(y="utf8"),!p.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=F(I,y)|0;let R=d(w);const V=R.write(I,y);return V!==w&&(R=R.slice(0,V)),R}function b(I){const y=I.length<0?0:_(I.length)|0,w=d(y);for(let R=0;R<y;R+=1)w[R]=I[R]&255;return w}function T(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 R;return y===void 0&&w===void 0?R=new a(I):w===void 0?R=new a(I,y):R=new a(I,y,w),Object.setPrototypeOf(R,p.prototype),R}function L(I){if(p.isBuffer(I)){const y=_(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 _(I){if(I>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return I|0}function O(I){return+I!=I&&(I=0),p.alloc(+I)}p.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==p.prototype},p.compare=function(y,w){if(vt(y,a)&&(y=p.from(y,y.offset,y.byteLength)),vt(w,a)&&(w=p.from(w,w.offset,w.byteLength)),!p.isBuffer(y)||!p.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===w)return 0;let R=y.length,V=w.length;for(let G=0,ee=Math.min(R,V);G<ee;++G)if(y[G]!==w[G]){R=y[G],V=w[G];break}return R<V?-1:V<R?1:0},p.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}},p.concat=function(y,w){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return p.alloc(0);let R;if(w===void 0)for(w=0,R=0;R<y.length;++R)w+=y[R].length;const V=p.allocUnsafe(w);let G=0;for(R=0;R<y.length;++R){let ee=y[R];if(vt(ee,a))G+ee.length>V.length?(p.isBuffer(ee)||(ee=p.from(ee)),ee.copy(V,G)):a.prototype.set.call(V,ee,G);else if(p.isBuffer(ee))ee.copy(V,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return V};function F(I,y){if(p.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,R=arguments.length>2&&arguments[2]===!0;if(!R&&w===0)return 0;let V=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return _e(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return Et(I).length;default:if(V)return R?-1:_e(I).length;y=(""+y).toLowerCase(),V=!0}}p.byteLength=F;function B(I,y,w){let R=!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 Ke(this,y,w);case"utf8":case"utf-8":return Oe(this,y,w);case"ascii":return Ae(this,y,w);case"latin1":case"binary":return we(this,y,w);case"base64":return Ee(this,y,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,y,w);default:if(R)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),R=!0}}p.prototype._isBuffer=!0;function W(I,y,w){const R=I[y];I[y]=I[w],I[w]=R}p.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},p.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},p.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},p.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?Oe(this,0,y):B.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(y){if(!p.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:p.compare(this,y)===0},p.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&&(p.prototype[i]=p.prototype.inspect),p.prototype.compare=function(y,w,R,V,G){if(vt(y,a)&&(y=p.from(y,y.offset,y.byteLength)),!p.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),R===void 0&&(R=y?y.length:0),V===void 0&&(V=0),G===void 0&&(G=this.length),w<0||R>y.length||V<0||G>this.length)throw new RangeError("out of range index");if(V>=G&&w>=R)return 0;if(V>=G)return-1;if(w>=R)return 1;if(w>>>=0,R>>>=0,V>>>=0,G>>>=0,this===y)return 0;let ee=G-V,Me=R-w;const pt=Math.min(ee,Me),ct=this.slice(V,G),dt=y.slice(w,R);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 Y(I,y,w,R,V){if(I.length===0)return-1;if(typeof w=="string"?(R=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=p.from(y,R)),p.isBuffer(y))return y.length===0?-1:fe(I,y,w,R,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):fe(I,[y],w,R,V);throw new TypeError("val must be string, number or Buffer")}function fe(I,y,w,R,V){let G=1,ee=I.length,Me=y.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="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}p.prototype.includes=function(y,w,R){return this.indexOf(y,w,R)!==-1},p.prototype.indexOf=function(y,w,R){return Y(this,y,w,R,!0)},p.prototype.lastIndexOf=function(y,w,R){return Y(this,y,w,R,!1)};function le(I,y,w,R){w=Number(w)||0;const V=I.length-w;R?(R=Number(R),R>V&&(R=V)):R=V;const G=y.length;R>G/2&&(R=G/2);let ee;for(ee=0;ee<R;++ee){const Me=parseInt(y.substr(ee*2,2),16);if(rt(Me))return ee;I[w+ee]=Me}return ee}function be(I,y,w,R){return Nt(_e(y,I.length-w),I,w,R)}function ve(I,y,w,R){return Nt(Re(y),I,w,R)}function Ce(I,y,w,R){return Nt(Et(y),I,w,R)}function pe(I,y,w,R){return Nt(de(y,I.length-w),I,w,R)}p.prototype.write=function(y,w,R,V){if(w===void 0)V="utf8",R=this.length,w=0;else if(R===void 0&&typeof w=="string")V=w,R=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(R)?(R=R>>>0,V===void 0&&(V="utf8")):(V=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-w;if((R===void 0||R>G)&&(R=G),y.length>0&&(R<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,R);case"utf8":case"utf-8":return be(this,y,w,R);case"ascii":case"latin1":case"binary":return ve(this,y,w,R);case"base64":return Ce(this,y,w,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,y,w,R);default:if(ee)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ee=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ee(I,y,w){return y===0&&w===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(y,w))}function Oe(I,y,w){w=Math.min(I.length,w);const R=[];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,R.push(ee>>>10&1023|55296),ee=56320|ee&1023),R.push(ee),V+=Me}return Ze(R)}const Be=4096;function Ze(I){const y=I.length;if(y<=Be)return String.fromCharCode.apply(String,I);let w="",R=0;for(;R<y;)w+=String.fromCharCode.apply(String,I.slice(R,R+=Be));return w}function Ae(I,y,w){let R="";w=Math.min(I.length,w);for(let V=y;V<w;++V)R+=String.fromCharCode(I[V]&127);return R}function we(I,y,w){let R="";w=Math.min(I.length,w);for(let V=y;V<w;++V)R+=String.fromCharCode(I[V]);return R}function Ke(I,y,w){const R=I.length;(!y||y<0)&&(y=0),(!w||w<0||w>R)&&(w=R);let V="";for(let G=y;G<w;++G)V+=ge[I[G]];return V}function J(I,y,w){const R=I.slice(y,w);let V="";for(let G=0;G<R.length-1;G+=2)V+=String.fromCharCode(R[G]+R[G+1]*256);return V}p.prototype.slice=function(y,w){const R=this.length;y=~~y,w=w===void 0?R:~~w,y<0?(y+=R,y<0&&(y=0)):y>R&&(y=R),w<0?(w+=R,w<0&&(w=0)):w>R&&(w=R),w<y&&(w=y);const V=this.subarray(y,w);return Object.setPrototypeOf(V,p.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")}p.prototype.readUintLE=p.prototype.readUIntLE=function(y,w,R){y=y>>>0,w=w>>>0,R||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},p.prototype.readUintBE=p.prototype.readUIntBE=function(y,w,R){y=y>>>0,w=w>>>0,R||Q(y,w,this.length);let V=this[y+--w],G=1;for(;w>0&&(G*=256);)V+=this[y+--w]*G;return V},p.prototype.readUint8=p.prototype.readUInt8=function(y,w){return y=y>>>0,w||Q(y,1,this.length),this[y]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(y,w){return y=y>>>0,w||Q(y,2,this.length),this[y]|this[y+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(y,w){return y=y>>>0,w||Q(y,2,this.length),this[y]<<8|this[y+1]},p.prototype.readUint32LE=p.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},p.prototype.readUint32BE=p.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])},p.prototype.readBigUInt64LE=xe(function(y){y=y>>>0,Lt(y,"offset");const w=this[y],R=this[y+7];(w===void 0||R===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+R*2**24;return BigInt(V)+(BigInt(G)<<BigInt(32))}),p.prototype.readBigUInt64BE=xe(function(y){y=y>>>0,Lt(y,"offset");const w=this[y],R=this[y+7];(w===void 0||R===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+R;return(BigInt(V)<<BigInt(32))+BigInt(G)}),p.prototype.readIntLE=function(y,w,R){y=y>>>0,w=w>>>0,R||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},p.prototype.readIntBE=function(y,w,R){y=y>>>0,w=w>>>0,R||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},p.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]},p.prototype.readInt16LE=function(y,w){y=y>>>0,w||Q(y,2,this.length);const R=this[y]|this[y+1]<<8;return R&32768?R|4294901760:R},p.prototype.readInt16BE=function(y,w){y=y>>>0,w||Q(y,2,this.length);const R=this[y+1]|this[y]<<8;return R&32768?R|4294901760:R},p.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},p.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]},p.prototype.readBigInt64LE=xe(function(y){y=y>>>0,Lt(y,"offset");const w=this[y],R=this[y+7];(w===void 0||R===void 0)&&wt(y,this.length-8);const V=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(R<<24);return(BigInt(V)<<BigInt(32))+BigInt(w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),p.prototype.readBigInt64BE=xe(function(y){y=y>>>0,Lt(y,"offset");const w=this[y],R=this[y+7];(w===void 0||R===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+R)}),p.prototype.readFloatLE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),n.read(this,y,!0,23,4)},p.prototype.readFloatBE=function(y,w){return y=y>>>0,w||Q(y,4,this.length),n.read(this,y,!1,23,4)},p.prototype.readDoubleLE=function(y,w){return y=y>>>0,w||Q(y,8,this.length),n.read(this,y,!0,52,8)},p.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,R,V,G){if(!p.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+R>I.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(y,w,R,V){if(y=+y,w=w>>>0,R=R>>>0,!V){const Me=Math.pow(2,8*R)-1;ue(this,y,w,R,Me,0)}let G=1,ee=0;for(this[w]=y&255;++ee<R&&(G*=256);)this[w+ee]=y/G&255;return w+R},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(y,w,R,V){if(y=+y,w=w>>>0,R=R>>>0,!V){const Me=Math.pow(2,8*R)-1;ue(this,y,w,R,Me,0)}let G=R-1,ee=1;for(this[w+G]=y&255;--G>=0&&(ee*=256);)this[w+G]=y/ee&255;return w+R},p.prototype.writeUint8=p.prototype.writeUInt8=function(y,w,R){return y=+y,w=w>>>0,R||ue(this,y,w,1,255,0),this[w]=y&255,w+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(y,w,R){return y=+y,w=w>>>0,R||ue(this,y,w,2,65535,0),this[w]=y&255,this[w+1]=y>>>8,w+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(y,w,R){return y=+y,w=w>>>0,R||ue(this,y,w,2,65535,0),this[w]=y>>>8,this[w+1]=y&255,w+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(y,w,R){return y=+y,w=w>>>0,R||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},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(y,w,R){return y=+y,w=w>>>0,R||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,R,V){Rt(y,R,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,R,V){Rt(y,R,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}p.prototype.writeBigUInt64LE=xe(function(y,w=0){return De(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=xe(function(y,w=0){return Ye(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(y,w,R,V){if(y=+y,w=w>>>0,!V){const pt=Math.pow(2,8*R-1);ue(this,y,w,R,pt-1,-pt)}let G=0,ee=1,Me=0;for(this[w]=y&255;++G<R&&(ee*=256);)y<0&&Me===0&&this[w+G-1]!==0&&(Me=1),this[w+G]=(y/ee>>0)-Me&255;return w+R},p.prototype.writeIntBE=function(y,w,R,V){if(y=+y,w=w>>>0,!V){const pt=Math.pow(2,8*R-1);ue(this,y,w,R,pt-1,-pt)}let G=R-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+R},p.prototype.writeInt8=function(y,w,R){return y=+y,w=w>>>0,R||ue(this,y,w,1,127,-128),y<0&&(y=255+y+1),this[w]=y&255,w+1},p.prototype.writeInt16LE=function(y,w,R){return y=+y,w=w>>>0,R||ue(this,y,w,2,32767,-32768),this[w]=y&255,this[w+1]=y>>>8,w+2},p.prototype.writeInt16BE=function(y,w,R){return y=+y,w=w>>>0,R||ue(this,y,w,2,32767,-32768),this[w]=y>>>8,this[w+1]=y&255,w+2},p.prototype.writeInt32LE=function(y,w,R){return y=+y,w=w>>>0,R||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},p.prototype.writeInt32BE=function(y,w,R){return y=+y,w=w>>>0,R||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},p.prototype.writeBigInt64LE=xe(function(y,w=0){return De(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=xe(function(y,w=0){return Ye(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ke(I,y,w,R,V,G){if(w+R>I.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function Pe(I,y,w,R,V){return y=+y,w=w>>>0,V||ke(I,y,w,4),n.write(I,y,w,R,23,4),w+4}p.prototype.writeFloatLE=function(y,w,R){return Pe(this,y,w,!0,R)},p.prototype.writeFloatBE=function(y,w,R){return Pe(this,y,w,!1,R)};function Fe(I,y,w,R,V){return y=+y,w=w>>>0,V||ke(I,y,w,8),n.write(I,y,w,R,52,8),w+8}p.prototype.writeDoubleLE=function(y,w,R){return Fe(this,y,w,!0,R)},p.prototype.writeDoubleBE=function(y,w,R){return Fe(this,y,w,!1,R)},p.prototype.copy=function(y,w,R,V){if(!p.isBuffer(y))throw new TypeError("argument should be a Buffer");if(R||(R=0),!V&&V!==0&&(V=this.length),w>=y.length&&(w=y.length),w||(w=0),V>0&&V<R&&(V=R),V===R||y.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=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-R&&(V=y.length-w+R);const G=V-R;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(w,R,V):a.prototype.set.call(y,this.subarray(R,V),w),G},p.prototype.fill=function(y,w,R,V){if(typeof y=="string"){if(typeof w=="string"?(V=w,w=0,R=this.length):typeof R=="string"&&(V=R,R=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!p.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<R)throw new RangeError("Out of range index");if(R<=w)return this;w=w>>>0,R=R===void 0?this.length:R>>>0,y||(y=0);let G;if(typeof y=="number")for(G=w;G<R;++G)this[G]=y;else{const ee=p.isBuffer(y)?y:p.from(y,V),Me=ee.length;if(Me===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<R-w;++G)this[G+w]=ee[G%Me]}return this};const Ne={};function _t(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}`}}}_t("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_t("ERR_INVALID_ARG_TYPE",function(I,y){return`The "${I}" argument must be of type number. Received type ${typeof y}`},TypeError),_t("ERR_OUT_OF_RANGE",function(I,y,w){let R=`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"),R+=` It must be ${y}. Received ${V}`,R},RangeError);function nn(I){let y="",w=I.length;const R=I[0]==="-"?1:0;for(;w>=R+4;w-=3)y=`_${I.slice(w-3,w)}${y}`;return`${I.slice(0,w)}${y}`}function Pt(I,y,w){Lt(y,"offset"),(I[y]===void 0||I[y+w]===void 0)&&wt(y,I.length-(w+1))}function Rt(I,y,w,R,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)}Pt(R,V,G)}function Lt(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?(Lt(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 An(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 _e(I,y){y=y||1/0;let w;const R=I.length;let V=null;const G=[];for(let ee=0;ee<R;++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===R){(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 Re(I){const y=[];for(let w=0;w<I.length;++w)y.push(I.charCodeAt(w)&255);return y}function de(I,y){let w,R,V;const G=[];for(let ee=0;ee<I.length&&!((y-=2)<0);++ee)w=I.charCodeAt(ee),R=w>>8,V=w%256,G.push(V),G.push(R);return G}function Et(I){return t.toByteArray(An(I))}function Nt(I,y,w,R){let V;for(V=0;V<R&&!(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 ge=function(){const I="0123456789abcdef",y=new Array(256);for(let w=0;w<16;++w){const R=w*16;for(let V=0;V<16;++V)y[R+V]=I[w]+I[V]}return y}();function xe(I){return typeof BigInt>"u"?ut:I}function ut(){throw new Error("BigInt not supported")}})(rh);const gm=rh.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 sh=ht.prototype,oh={};["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=>{oh[e]={value:e}}),Object.defineProperties(ht,oh),Object.defineProperty(sh,"isAxiosError",{value:!0}),ht.from=(e,t,n,i,o,a)=>{const u=Object.create(sh);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 ym=null;function qu(e){return re.isPlainObject(e)||re.isArray(e)}function ah(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function uh(e,t,n){return e?e.concat(t).map(function(o,a){return o=ah(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function mm(e){return re.isArray(e)&&!e.some(qu)}const wm=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function Ho(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(S,b){return!re.isUndefined(b[S])});const i=n.metaTokens,o=n.visitor||p,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(E){if(E===null)return"";if(re.isDate(E))return E.toISOString();if(!f&&re.isBlob(E))throw new ht("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(E)||re.isTypedArray(E)?f&&typeof Blob=="function"?new Blob([E]):gm.from(E):E}function p(E,S,b){let T=E;if(E&&!b&&typeof E=="object"){if(re.endsWith(S,"{}"))S=i?S:S.slice(0,-2),E=JSON.stringify(E);else if(re.isArray(E)&&mm(E)||(re.isFileList(E)||re.endsWith(S,"[]"))&&(T=re.toArray(E)))return S=ah(S),T.forEach(function(L,_){!(re.isUndefined(L)||L===null)&&t.append(u===!0?uh([S],_,a):u===null?S:S+"[]",d(L))}),!1}return qu(E)?!0:(t.append(uh(b,S,a),d(E)),!1)}const g=[],v=Object.assign(wm,{defaultVisitor:p,convertValue:d,isVisitable:qu});function C(E,S){if(!re.isUndefined(E)){if(g.indexOf(E)!==-1)throw Error("Circular reference detected in "+S.join("."));g.push(E),re.forEach(E,function(T,N){(!(re.isUndefined(T)||T===null)&&o.call(t,T,re.isString(N)?N.trim():N,S,v))===!0&&C(T,S?S.concat(N):[N])}),g.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return C(e),t}function ch(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Wu(e,t){this._pairs=[],e&&Ho(e,this,t)}const lh=Wu.prototype;lh.append=function(t,n){this._pairs.push([t,n])},lh.toString=function(t){const n=t?function(i){return t.call(this,i,ch)}:ch;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function bm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fh(e,t,n){if(!t)return e;const i=n&&n.encode||bm,o=n&&n.serialize;let a;if(o?a=o(t,n):a=re.isURLSearchParams(t)?t.toString():new Wu(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class hh{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 dh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vm=typeof URLSearchParams<"u"?URLSearchParams:Wu,Am=typeof FormData<"u"?FormData:null,Sm=typeof Blob<"u"?Blob:null,Em=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),xm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pr={classes:{URLSearchParams:vm,FormData:Am,Blob:Sm},isStandardBrowserEnv:Em,isStandardBrowserWebWorkerEnv:xm,protocols:["http","https","file","blob","url","data"]};function Cm(e,t){return Ho(e,new pr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return pr.isNode&&re.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function _m(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function km(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 ph(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]=km(o[u])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(i,o)=>{t(_m(i),o,n,0)}),n}return null}const Tm={"Content-Type":void 0};function Im(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 Wi={transitional:dh,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(ph(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 Cm(t,this.formSerializer).toString();if((l=re.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ho(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Im(t)):t}],transformResponse:[function(t){const n=this.transitional||Wi.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:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};re.forEach(["delete","get","head"],function(t){Wi.headers[t]={}}),re.forEach(["post","put","patch"],function(t){Wi.headers[t]=re.merge(Tm)});const Om=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"]),Fm=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]&&Om[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},gh=Symbol("internals");function Ds(e){return e&&String(e).trim().toLowerCase()}function zo(e){return e===!1||e==null?e:re.isArray(e)?e.map(zo):String(e)}function Bm(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 Dm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ku(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 Pm(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 p=Ds(f);if(!p)throw new Error("header name must be a non-empty string");const g=re.findKey(o,p);(!g||o[g]===void 0||d===!0||d===void 0&&o[g]!==!1)&&(o[g||f]=zo(l))}const u=(l,f)=>re.forEach(l,(d,p)=>a(d,p,f));return re.isPlainObject(t)||t instanceof this.constructor?u(t,n):re.isString(t)&&(t=t.trim())&&!Dm(t)?u(Fm(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=Ds(t),t){const i=re.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return Bm(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=Ds(t),t){const i=re.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Ku(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(u){if(u=Ds(u),u){const l=re.findKey(i,u);l&&(!n||Ku(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||Ku(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]=zo(o),delete n[a];return}const l=t?Pm(a):String(a).trim();l!==a&&delete n[a],n[l]=zo(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[gh]=this[gh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Ds(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 Hu(e,t){const n=this||Wi,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 yh(e){return!!(e&&e.__CANCEL__)}function Ps(e,t,n){ht.call(this,e??"canceled",ht.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ps,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 Nm=pr.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 jm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $m(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function mh(e,t){return e&&!jm(t)?$m(e,t):t}const Mm=pr.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 Um(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vm(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(),p=i[a];u||(u=d),n[o]=f,i[o]=d;let g=a,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-u<t)return;const C=p&&d-p;return C?Math.round(v*1e3/C):void 0}}function wh(e,t){let n=0;const i=Vm(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 p={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};p[t?"download":"upload"]=!0,e(p)}}const Go={http:ym,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)&&(pr.isStandardBrowserEnv||pr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(C+":"+E))}const p=mh(e.baseURL,e.url);d.open(e.method.toUpperCase(),fh(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function g(){if(!d)return;const C=$n.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),S={data:!u||u==="text"||u==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:C,config:e,request:d};Lm(function(T){n(T),f()},function(T){i(T),f()},S),d=null}if("onloadend"in d?d.onloadend=g:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(g)},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 E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||dh;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),i(new ht(E,S.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,d)),d=null},pr.isStandardBrowserEnv){const C=(e.withCredentials||Mm(p))&&e.xsrfCookieName&&Nm.read(e.xsrfCookieName);C&&a.set(e.xsrfHeaderName,C)}o===void 0&&a.setContentType(null),"setRequestHeader"in d&&re.forEach(a.toJSON(),function(E,S){d.setRequestHeader(S,E)}),re.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),u&&u!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",wh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",wh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=C=>{d&&(i(!C||C.type?new Ps(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=Um(p);if(v&&pr.protocols.indexOf(v)===-1){i(new ht("Unsupported protocol "+v+":",ht.ERR_BAD_REQUEST,e));return}d.send(o||null)})}};re.forEach(Go,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qm={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)?Go[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(Go,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:Go};function zu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ps(null,e)}function bh(e){return zu(e),e.headers=$n.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qm.getAdapter(e.adapter||Wi.adapter)(e).then(function(i){return zu(e),i.data=Hu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return yh(i)||(zu(e),i&&i.response&&(i.response.data=Hu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const vh=e=>e instanceof $n?e.toJSON():e;function Ki(e,t){t=t||{};const n={};function i(d,p,g){return re.isPlainObject(d)&&re.isPlainObject(p)?re.merge.call({caseless:g},d,p):re.isPlainObject(p)?re.merge({},p):re.isArray(p)?p.slice():p}function o(d,p,g){if(re.isUndefined(p)){if(!re.isUndefined(d))return i(void 0,d,g)}else return i(d,p,g)}function a(d,p){if(!re.isUndefined(p))return i(void 0,p)}function u(d,p){if(re.isUndefined(p)){if(!re.isUndefined(d))return i(void 0,d)}else return i(void 0,p)}function l(d,p,g){if(g in t)return i(d,p);if(g 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,p)=>o(vh(d),vh(p),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(p){const g=f[p]||o,v=g(e[p],t[p],p);re.isUndefined(v)&&g!==l||(n[p]=v)}),n}const Ah="1.4.0",Gu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Sh={};Gu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+Ah+"] 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&&!Sh[u]&&(Sh[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 Wm(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 Ju={assertOptions:Wm,validators:Gu},Ur=Ju.validators;let di=class{constructor(t){this.defaults=t,this.interceptors={request:new hh,response:new hh}}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&&Ju.assertOptions(i,{silentJSONParsing:Ur.transitional(Ur.boolean),forcedJSONParsing:Ur.transitional(Ur.boolean),clarifyTimeoutError:Ur.transitional(Ur.boolean)},!1),o!=null&&(re.isFunction(o)?n.paramsSerializer={serialize:o}:Ju.assertOptions(o,{encode:Ur.function,serialize:Ur.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"],E=>{delete a[E]}),n.headers=$n.concat(u,a);const l=[];let f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(f=f&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,g=0,v;if(!f){const E=[bh.bind(this),void 0];for(E.unshift.apply(E,l),E.push.apply(E,d),v=E.length,p=Promise.resolve(n);g<v;)p=p.then(E[g++],E[g++]);return p}v=l.length;let C=n;for(g=0;g<v;){const E=l[g++],S=l[g++];try{C=E(C)}catch(b){S.call(this,b);break}}try{p=bh.call(this,C)}catch(E){return Promise.reject(E)}for(g=0,v=d.length;g<v;)p=p.then(d[g++],d[g++]);return p}getUri(t){t=Ki(this.defaults,t);const n=mh(t.baseURL,t.url);return fh(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){di.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}))}}di.prototype[t]=n(),di.prototype[t+"Form"]=n(!0)});let Km=class l1{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 Ps(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 l1(function(o){t=o}),cancel:t}}};function Hm(e){return function(n){return e.apply(null,n)}}function zm(e){return re.isObject(e)&&e.isAxiosError===!0}const Yu={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(Yu).forEach(([e,t])=>{Yu[t]=e});function Eh(e){const t=new di(e),n=zf(di.prototype.request,t);return re.extend(n,di.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Eh(Ki(e,o))},n}const Ue=Eh(Wi);Ue.Axios=di,Ue.CanceledError=Ps,Ue.CancelToken=Km,Ue.isCancel=yh,Ue.VERSION=Ah,Ue.toFormData=Ho,Ue.AxiosError=ht,Ue.Cancel=Ue.CanceledError,Ue.all=function(t){return Promise.all(t)},Ue.spread=Hm,Ue.isAxiosError=zm,Ue.mergeConfig=Ki,Ue.AxiosHeaders=$n,Ue.formToJSON=e=>ph(re.isHTMLForm(e)?new FormData(e):e),Ue.HttpStatusCode=Yu,Ue.default=Ue;const{Axios:D8,AxiosError:P8,CanceledError:R8,isCancel:L8,CancelToken:N8,VERSION:j8,all:$8,Cancel:M8,isAxiosError:Jo,spread:U8,toFormData:V8,AxiosHeaders:q8,HttpStatusCode:W8,formToJSON:K8,mergeConfig:H8}=Ue,Yo=async({endpoint:e,body:t})=>Ue.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Xo=async({endpoint:e,body:t})=>Ue.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),Xu=async({endpoint:e})=>Ue.delete(e),Qu=({name:e,onClose:t,endpoint:n})=>{const[i,o]=Z.useState(),[a,u]=Z.useState(!1),l=()=>{u(!0),o(void 0),Xu({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})})},Gm=({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})=>Xu({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})})},xh=()=>{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})})},Ch=()=>{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})})},_h=()=>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)"})})})]}),kh=()=>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)"})})})]}),Th=()=>{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"})})})]})},Ih=()=>{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"})})})]})},Jm={success:A.jsx(wn.CheckCircleFilled,{}),error:A.jsx(wn.CloseCircleFilled,{}),warning:A.jsx(wn.ExclamationCircleFilled,{}),validating:A.jsx(wn.LoadingOutlined,{})},Vr=()=>({...Jm,success:A.jsx(Ih,{})}),Zu=()=>{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})})},Oh=()=>{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})})},Fh=()=>{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})})},Ym={ContentContainer:Je.div`
99
+ */(function(e){const t=Wo,n=Mu,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=p,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;p.TYPED_ARRAY_SUPPORT=f(),!p.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(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function h(I){if(I>o)throw new RangeError('The value "'+I+'" is invalid for option "size"');const y=new a(I);return Object.setPrototypeOf(y,p.prototype),y}function p(I,y,b){if(typeof I=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(I)}return g(I,y,b)}p.poolSize=8192;function g(I,y,b){if(typeof I=="string")return x(I,y);if(u.isView(I))return T(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(Ye(I,u)||I&&Ye(I.buffer,u)||typeof l<"u"&&(Ye(I,l)||I&&Ye(I.buffer,l)))return j(I,y,b);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 p.from(P,y,b);const q=L(I);if(q)return q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return p.from(I[Symbol.toPrimitive]("string"),y,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}p.from=function(I,y,b){return g(I,y,b)},Object.setPrototypeOf(p.prototype,a.prototype),Object.setPrototypeOf(p,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,b){return v(I),I<=0?h(I):y!==void 0?typeof b=="string"?h(I).fill(y,b):h(I).fill(y):h(I)}p.alloc=function(I,y,b){return C(I,y,b)};function S(I){return v(I),h(I<0?0:_(I)|0)}p.allocUnsafe=function(I){return S(I)},p.allocUnsafeSlow=function(I){return S(I)};function x(I,y){if((typeof y!="string"||y==="")&&(y="utf8"),!p.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const b=F(I,y)|0;let P=h(b);const q=P.write(I,y);return q!==b&&(P=P.slice(0,q)),P}function w(I){const y=I.length<0?0:_(I.length)|0,b=h(y);for(let P=0;P<y;P+=1)b[P]=I[P]&255;return b}function T(I){if(Ye(I,a)){const y=new a(I);return j(y.buffer,y.byteOffset,y.byteLength)}return w(I)}function j(I,y,b){if(y<0||I.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<y+(b||0))throw new RangeError('"length" is outside of buffer bounds');let P;return y===void 0&&b===void 0?P=new a(I):b===void 0?P=new a(I,y):P=new a(I,y,b),Object.setPrototypeOf(P,p.prototype),P}function L(I){if(p.isBuffer(I)){const y=_(I.length)|0,b=h(y);return b.length===0||I.copy(b,0,0,y),b}if(I.length!==void 0)return typeof I.length!="number"||Bt(I.length)?h(0):w(I);if(I.type==="Buffer"&&Array.isArray(I.data))return w(I.data)}function _(I){if(I>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return I|0}function O(I){return+I!=I&&(I=0),p.alloc(+I)}p.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==p.prototype},p.compare=function(y,b){if(Ye(y,a)&&(y=p.from(y,y.offset,y.byteLength)),Ye(b,a)&&(b=p.from(b,b.offset,b.byteLength)),!p.isBuffer(y)||!p.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===b)return 0;let P=y.length,q=b.length;for(let G=0,ee=Math.min(P,q);G<ee;++G)if(y[G]!==b[G]){P=y[G],q=b[G];break}return P<q?-1:q<P?1:0},p.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}},p.concat=function(y,b){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return p.alloc(0);let P;if(b===void 0)for(b=0,P=0;P<y.length;++P)b+=y[P].length;const q=p.allocUnsafe(b);let G=0;for(P=0;P<y.length;++P){let ee=y[P];if(Ye(ee,a))G+ee.length>q.length?(p.isBuffer(ee)||(ee=p.from(ee)),ee.copy(q,G)):a.prototype.set.call(q,ee,G);else if(p.isBuffer(ee))ee.copy(q,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return q};function F(I,y){if(p.isBuffer(I))return I.length;if(u.isView(I)||Ye(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 b=I.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&b===0)return 0;let q=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return gt(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return It(I).length;default:if(q)return P?-1:gt(I).length;y=(""+y).toLowerCase(),q=!0}}p.byteLength=F;function B(I,y,b){let P=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,y>>>=0,b<=y))return"";for(I||(I="utf8");;)switch(I){case"hex":return We(this,y,b);case"utf8":case"utf-8":return ke(this,y,b);case"ascii":return Ee(this,y,b);case"latin1":case"binary":return ye(this,y,b);case"base64":return Se(this,y,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,y,b);default:if(P)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),P=!0}}p.prototype._isBuffer=!0;function W(I,y,b){const P=I[y];I[y]=I[b],I[b]=P}p.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 b=0;b<y;b+=2)W(this,b,b+1);return this},p.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 b=0;b<y;b+=4)W(this,b,b+3),W(this,b+1,b+2);return this},p.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 b=0;b<y;b+=8)W(this,b,b+7),W(this,b+1,b+6),W(this,b+2,b+5),W(this,b+3,b+4);return this},p.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?ke(this,0,y):B.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(y){if(!p.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:p.compare(this,y)===0},p.prototype.inspect=function(){let y="";const b=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(y+=" ... "),"<Buffer "+y+">"},i&&(p.prototype[i]=p.prototype.inspect),p.prototype.compare=function(y,b,P,q,G){if(Ye(y,a)&&(y=p.from(y,y.offset,y.byteLength)),!p.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(b===void 0&&(b=0),P===void 0&&(P=y?y.length:0),q===void 0&&(q=0),G===void 0&&(G=this.length),b<0||P>y.length||q<0||G>this.length)throw new RangeError("out of range index");if(q>=G&&b>=P)return 0;if(q>=G)return-1;if(b>=P)return 1;if(b>>>=0,P>>>=0,q>>>=0,G>>>=0,this===y)return 0;let ee=G-q,Me=P-b;const dt=Math.min(ee,Me),ut=this.slice(q,G),ht=y.slice(b,P);for(let st=0;st<dt;++st)if(ut[st]!==ht[st]){ee=ut[st],Me=ht[st];break}return ee<Me?-1:Me<ee?1:0};function X(I,y,b,P,q){if(I.length===0)return-1;if(typeof b=="string"?(P=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,Bt(b)&&(b=q?0:I.length-1),b<0&&(b=I.length+b),b>=I.length){if(q)return-1;b=I.length-1}else if(b<0)if(q)b=0;else return-1;if(typeof y=="string"&&(y=p.from(y,P)),p.isBuffer(y))return y.length===0?-1:fe(I,y,b,P,q);if(typeof y=="number")return y=y&255,typeof a.prototype.indexOf=="function"?q?a.prototype.indexOf.call(I,y,b):a.prototype.lastIndexOf.call(I,y,b):fe(I,[y],b,P,q);throw new TypeError("val must be string, number or Buffer")}function fe(I,y,b,P,q){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,b/=2}function dt(ht,st){return G===1?ht[st]:ht.readUInt16BE(st*G)}let ut;if(q){let ht=-1;for(ut=b;ut<ee;ut++)if(dt(I,ut)===dt(y,ht===-1?0:ut-ht)){if(ht===-1&&(ht=ut),ut-ht+1===Me)return ht*G}else ht!==-1&&(ut-=ut-ht),ht=-1}else for(b+Me>ee&&(b=ee-Me),ut=b;ut>=0;ut--){let ht=!0;for(let st=0;st<Me;st++)if(dt(I,ut+st)!==dt(y,st)){ht=!1;break}if(ht)return ut}return-1}p.prototype.includes=function(y,b,P){return this.indexOf(y,b,P)!==-1},p.prototype.indexOf=function(y,b,P){return X(this,y,b,P,!0)},p.prototype.lastIndexOf=function(y,b,P){return X(this,y,b,P,!1)};function le(I,y,b,P){b=Number(b)||0;const q=I.length-b;P?(P=Number(P),P>q&&(P=q)):P=q;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(Bt(Me))return ee;I[b+ee]=Me}return ee}function me(I,y,b,P){return an(gt(y,I.length-b),I,b,P)}function be(I,y,b,P){return an(vt(y),I,b,P)}function Ae(I,y,b,P){return an(It(y),I,b,P)}function de(I,y,b,P){return an(we(y,I.length-b),I,b,P)}p.prototype.write=function(y,b,P,q){if(b===void 0)q="utf8",P=this.length,b=0;else if(P===void 0&&typeof b=="string")q=b,P=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(P)?(P=P>>>0,q===void 0&&(q="utf8")):(q=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-b;if((P===void 0||P>G)&&(P=G),y.length>0&&(P<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");let ee=!1;for(;;)switch(q){case"hex":return le(this,y,b,P);case"utf8":case"utf-8":return me(this,y,b,P);case"ascii":case"latin1":case"binary":return be(this,y,b,P);case"base64":return Ae(this,y,b,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,y,b,P);default:if(ee)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),ee=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Se(I,y,b){return y===0&&b===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(y,b))}function ke(I,y,b){b=Math.min(I.length,b);const P=[];let q=y;for(;q<b;){const G=I[q];let ee=null,Me=G>239?4:G>223?3:G>191?2:1;if(q+Me<=b){let dt,ut,ht,st;switch(Me){case 1:G<128&&(ee=G);break;case 2:dt=I[q+1],(dt&192)===128&&(st=(G&31)<<6|dt&63,st>127&&(ee=st));break;case 3:dt=I[q+1],ut=I[q+2],(dt&192)===128&&(ut&192)===128&&(st=(G&15)<<12|(dt&63)<<6|ut&63,st>2047&&(st<55296||st>57343)&&(ee=st));break;case 4:dt=I[q+1],ut=I[q+2],ht=I[q+3],(dt&192)===128&&(ut&192)===128&&(ht&192)===128&&(st=(G&15)<<18|(dt&63)<<12|(ut&63)<<6|ht&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),q+=Me}return Ze(P)}const Oe=4096;function Ze(I){const y=I.length;if(y<=Oe)return String.fromCharCode.apply(String,I);let b="",P=0;for(;P<y;)b+=String.fromCharCode.apply(String,I.slice(P,P+=Oe));return b}function Ee(I,y,b){let P="";b=Math.min(I.length,b);for(let q=y;q<b;++q)P+=String.fromCharCode(I[q]&127);return P}function ye(I,y,b){let P="";b=Math.min(I.length,b);for(let q=y;q<b;++q)P+=String.fromCharCode(I[q]);return P}function We(I,y,b){const P=I.length;(!y||y<0)&&(y=0),(!b||b<0||b>P)&&(b=P);let q="";for(let G=y;G<b;++G)q+=_e[I[G]];return q}function J(I,y,b){const P=I.slice(y,b);let q="";for(let G=0;G<P.length-1;G+=2)q+=String.fromCharCode(P[G]+P[G+1]*256);return q}p.prototype.slice=function(y,b){const P=this.length;y=~~y,b=b===void 0?P:~~b,y<0?(y+=P,y<0&&(y=0)):y>P&&(y=P),b<0?(b+=P,b<0&&(b=0)):b>P&&(b=P),b<y&&(b=y);const q=this.subarray(y,b);return Object.setPrototypeOf(q,p.prototype),q};function Y(I,y,b){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+y>b)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(y,b,P){y=y>>>0,b=b>>>0,P||Y(y,b,this.length);let q=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)q+=this[y+ee]*G;return q},p.prototype.readUintBE=p.prototype.readUIntBE=function(y,b,P){y=y>>>0,b=b>>>0,P||Y(y,b,this.length);let q=this[y+--b],G=1;for(;b>0&&(G*=256);)q+=this[y+--b]*G;return q},p.prototype.readUint8=p.prototype.readUInt8=function(y,b){return y=y>>>0,b||Y(y,1,this.length),this[y]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(y,b){return y=y>>>0,b||Y(y,2,this.length),this[y]|this[y+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(y,b){return y=y>>>0,b||Y(y,2,this.length),this[y]<<8|this[y+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(y,b){return y=y>>>0,b||Y(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(y,b){return y=y>>>0,b||Y(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},p.prototype.readBigUInt64LE=Ne(function(y){y=y>>>0,jt(y,"offset");const b=this[y],P=this[y+7];(b===void 0||P===void 0)&&bt(y,this.length-8);const q=b+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(q)+(BigInt(G)<<BigInt(32))}),p.prototype.readBigUInt64BE=Ne(function(y){y=y>>>0,jt(y,"offset");const b=this[y],P=this[y+7];(b===void 0||P===void 0)&&bt(y,this.length-8);const q=b*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(q)<<BigInt(32))+BigInt(G)}),p.prototype.readIntLE=function(y,b,P){y=y>>>0,b=b>>>0,P||Y(y,b,this.length);let q=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)q+=this[y+ee]*G;return G*=128,q>=G&&(q-=Math.pow(2,8*b)),q},p.prototype.readIntBE=function(y,b,P){y=y>>>0,b=b>>>0,P||Y(y,b,this.length);let q=b,G=1,ee=this[y+--q];for(;q>0&&(G*=256);)ee+=this[y+--q]*G;return G*=128,ee>=G&&(ee-=Math.pow(2,8*b)),ee},p.prototype.readInt8=function(y,b){return y=y>>>0,b||Y(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},p.prototype.readInt16LE=function(y,b){y=y>>>0,b||Y(y,2,this.length);const P=this[y]|this[y+1]<<8;return P&32768?P|4294901760:P},p.prototype.readInt16BE=function(y,b){y=y>>>0,b||Y(y,2,this.length);const P=this[y+1]|this[y]<<8;return P&32768?P|4294901760:P},p.prototype.readInt32LE=function(y,b){return y=y>>>0,b||Y(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},p.prototype.readInt32BE=function(y,b){return y=y>>>0,b||Y(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},p.prototype.readBigInt64LE=Ne(function(y){y=y>>>0,jt(y,"offset");const b=this[y],P=this[y+7];(b===void 0||P===void 0)&&bt(y,this.length-8);const q=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(P<<24);return(BigInt(q)<<BigInt(32))+BigInt(b+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),p.prototype.readBigInt64BE=Ne(function(y){y=y>>>0,jt(y,"offset");const b=this[y],P=this[y+7];(b===void 0||P===void 0)&&bt(y,this.length-8);const q=(b<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(q)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+P)}),p.prototype.readFloatLE=function(y,b){return y=y>>>0,b||Y(y,4,this.length),n.read(this,y,!0,23,4)},p.prototype.readFloatBE=function(y,b){return y=y>>>0,b||Y(y,4,this.length),n.read(this,y,!1,23,4)},p.prototype.readDoubleLE=function(y,b){return y=y>>>0,b||Y(y,8,this.length),n.read(this,y,!0,52,8)},p.prototype.readDoubleBE=function(y,b){return y=y>>>0,b||Y(y,8,this.length),n.read(this,y,!1,52,8)};function oe(I,y,b,P,q,G){if(!p.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>q||y<G)throw new RangeError('"value" argument is out of bounds');if(b+P>I.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(y,b,P,q){if(y=+y,b=b>>>0,P=P>>>0,!q){const Me=Math.pow(2,8*P)-1;oe(this,y,b,P,Me,0)}let G=1,ee=0;for(this[b]=y&255;++ee<P&&(G*=256);)this[b+ee]=y/G&255;return b+P},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(y,b,P,q){if(y=+y,b=b>>>0,P=P>>>0,!q){const Me=Math.pow(2,8*P)-1;oe(this,y,b,P,Me,0)}let G=P-1,ee=1;for(this[b+G]=y&255;--G>=0&&(ee*=256);)this[b+G]=y/ee&255;return b+P},p.prototype.writeUint8=p.prototype.writeUInt8=function(y,b,P){return y=+y,b=b>>>0,P||oe(this,y,b,1,255,0),this[b]=y&255,b+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(y,b,P){return y=+y,b=b>>>0,P||oe(this,y,b,2,65535,0),this[b]=y&255,this[b+1]=y>>>8,b+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(y,b,P){return y=+y,b=b>>>0,P||oe(this,y,b,2,65535,0),this[b]=y>>>8,this[b+1]=y&255,b+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(y,b,P){return y=+y,b=b>>>0,P||oe(this,y,b,4,4294967295,0),this[b+3]=y>>>24,this[b+2]=y>>>16,this[b+1]=y>>>8,this[b]=y&255,b+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(y,b,P){return y=+y,b=b>>>0,P||oe(this,y,b,4,4294967295,0),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4};function De(I,y,b,P,q){Pt(y,P,q,I,b,7);let G=Number(y&BigInt(4294967295));I[b++]=G,G=G>>8,I[b++]=G,G=G>>8,I[b++]=G,G=G>>8,I[b++]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[b++]=ee,ee=ee>>8,I[b++]=ee,ee=ee>>8,I[b++]=ee,ee=ee>>8,I[b++]=ee,b}function Je(I,y,b,P,q){Pt(y,P,q,I,b,7);let G=Number(y&BigInt(4294967295));I[b+7]=G,G=G>>8,I[b+6]=G,G=G>>8,I[b+5]=G,G=G>>8,I[b+4]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[b+3]=ee,ee=ee>>8,I[b+2]=ee,ee=ee>>8,I[b+1]=ee,ee=ee>>8,I[b]=ee,b+8}p.prototype.writeBigUInt64LE=Ne(function(y,b=0){return De(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=Ne(function(y,b=0){return Je(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(y,b,P,q){if(y=+y,b=b>>>0,!q){const dt=Math.pow(2,8*P-1);oe(this,y,b,P,dt-1,-dt)}let G=0,ee=1,Me=0;for(this[b]=y&255;++G<P&&(ee*=256);)y<0&&Me===0&&this[b+G-1]!==0&&(Me=1),this[b+G]=(y/ee>>0)-Me&255;return b+P},p.prototype.writeIntBE=function(y,b,P,q){if(y=+y,b=b>>>0,!q){const dt=Math.pow(2,8*P-1);oe(this,y,b,P,dt-1,-dt)}let G=P-1,ee=1,Me=0;for(this[b+G]=y&255;--G>=0&&(ee*=256);)y<0&&Me===0&&this[b+G+1]!==0&&(Me=1),this[b+G]=(y/ee>>0)-Me&255;return b+P},p.prototype.writeInt8=function(y,b,P){return y=+y,b=b>>>0,P||oe(this,y,b,1,127,-128),y<0&&(y=255+y+1),this[b]=y&255,b+1},p.prototype.writeInt16LE=function(y,b,P){return y=+y,b=b>>>0,P||oe(this,y,b,2,32767,-32768),this[b]=y&255,this[b+1]=y>>>8,b+2},p.prototype.writeInt16BE=function(y,b,P){return y=+y,b=b>>>0,P||oe(this,y,b,2,32767,-32768),this[b]=y>>>8,this[b+1]=y&255,b+2},p.prototype.writeInt32LE=function(y,b,P){return y=+y,b=b>>>0,P||oe(this,y,b,4,2147483647,-2147483648),this[b]=y&255,this[b+1]=y>>>8,this[b+2]=y>>>16,this[b+3]=y>>>24,b+4},p.prototype.writeInt32BE=function(y,b,P){return y=+y,b=b>>>0,P||oe(this,y,b,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[b]=y>>>24,this[b+1]=y>>>16,this[b+2]=y>>>8,this[b+3]=y&255,b+4},p.prototype.writeBigInt64LE=Ne(function(y,b=0){return De(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=Ne(function(y,b=0){return Je(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ve(I,y,b,P,q,G){if(b+P>I.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Fe(I,y,b,P,q){return y=+y,b=b>>>0,q||ve(I,y,b,4),n.write(I,y,b,P,23,4),b+4}p.prototype.writeFloatLE=function(y,b,P){return Fe(this,y,b,!0,P)},p.prototype.writeFloatBE=function(y,b,P){return Fe(this,y,b,!1,P)};function je(I,y,b,P,q){return y=+y,b=b>>>0,q||ve(I,y,b,8),n.write(I,y,b,P,52,8),b+8}p.prototype.writeDoubleLE=function(y,b,P){return je(this,y,b,!0,P)},p.prototype.writeDoubleBE=function(y,b,P){return je(this,y,b,!1,P)},p.prototype.copy=function(y,b,P,q){if(!p.isBuffer(y))throw new TypeError("argument should be a Buffer");if(P||(P=0),!q&&q!==0&&(q=this.length),b>=y.length&&(b=y.length),b||(b=0),q>0&&q<P&&(q=P),q===P||y.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),y.length-b<q-P&&(q=y.length-b+P);const G=q-P;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(b,P,q):a.prototype.set.call(y,this.subarray(P,q),b),G},p.prototype.fill=function(y,b,P,q){if(typeof y=="string"){if(typeof b=="string"?(q=b,b=0,P=this.length):typeof P=="string"&&(q=P,P=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!p.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(y.length===1){const ee=y.charCodeAt(0);(q==="utf8"&&ee<128||q==="latin1")&&(y=ee)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(b<0||this.length<b||this.length<P)throw new RangeError("Out of range index");if(P<=b)return this;b=b>>>0,P=P===void 0?this.length:P>>>0,y||(y=0);let G;if(typeof y=="number")for(G=b;G<P;++G)this[G]=y;else{const ee=p.isBuffer(y)?y:p.from(y,q),Me=ee.length;if(Me===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<P-b;++G)this[G+b]=ee[G%Me]}return this};const Re={};function Ct(I,y,b){Re[I]=class extends b{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(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}Ct("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ct("ERR_INVALID_ARG_TYPE",function(I,y){return`The "${I}" argument must be of type number. Received type ${typeof y}`},TypeError),Ct("ERR_OUT_OF_RANGE",function(I,y,b){let P=`The value of "${I}" is out of range.`,q=b;return Number.isInteger(b)&&Math.abs(b)>2**32?q=nn(String(b)):typeof b=="bigint"&&(q=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(q=nn(q)),q+="n"),P+=` It must be ${y}. Received ${q}`,P},RangeError);function nn(I){let y="",b=I.length;const P=I[0]==="-"?1:0;for(;b>=P+4;b-=3)y=`_${I.slice(b-3,b)}${y}`;return`${I.slice(0,b)}${y}`}function Lt(I,y,b){jt(y,"offset"),(I[y]===void 0||I[y+b]===void 0)&&bt(y,I.length-(b+1))}function Pt(I,y,b,P,q,G){if(I>b||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 Re.ERR_OUT_OF_RANGE("value",Me,I)}Lt(P,q,G)}function jt(I,y){if(typeof I!="number")throw new Re.ERR_INVALID_ARG_TYPE(y,"number",I)}function bt(I,y,b){throw Math.floor(I)!==I?(jt(I,b),new Re.ERR_OUT_OF_RANGE("offset","an integer",I)):y<0?new Re.ERR_BUFFER_OUT_OF_BOUNDS:new Re.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,I)}const Te=/[^+/0-9A-Za-z-_]/g;function et(I){if(I=I.split("=")[0],I=I.trim().replace(Te,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function gt(I,y){y=y||1/0;let b;const P=I.length;let q=null;const G=[];for(let ee=0;ee<P;++ee){if(b=I.charCodeAt(ee),b>55295&&b<57344){if(!q){if(b>56319){(y-=3)>-1&&G.push(239,191,189);continue}else if(ee+1===P){(y-=3)>-1&&G.push(239,191,189);continue}q=b;continue}if(b<56320){(y-=3)>-1&&G.push(239,191,189),q=b;continue}b=(q-55296<<10|b-56320)+65536}else q&&(y-=3)>-1&&G.push(239,191,189);if(q=null,b<128){if((y-=1)<0)break;G.push(b)}else if(b<2048){if((y-=2)<0)break;G.push(b>>6|192,b&63|128)}else if(b<65536){if((y-=3)<0)break;G.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((y-=4)<0)break;G.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return G}function vt(I){const y=[];for(let b=0;b<I.length;++b)y.push(I.charCodeAt(b)&255);return y}function we(I,y){let b,P,q;const G=[];for(let ee=0;ee<I.length&&!((y-=2)<0);++ee)b=I.charCodeAt(ee),P=b>>8,q=b%256,G.push(q),G.push(P);return G}function It(I){return t.toByteArray(et(I))}function an(I,y,b,P){let q;for(q=0;q<P&&!(q+b>=y.length||q>=I.length);++q)y[q+b]=I[q];return q}function Ye(I,y){return I instanceof y||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===y.name}function Bt(I){return I!==I}const _e=function(){const I="0123456789abcdef",y=new Array(256);for(let b=0;b<16;++b){const P=b*16;for(let q=0;q<16;++q)y[P+q]=I[b]+I[q]}return y}();function Ne(I){return typeof BigInt>"u"?Wt:I}function Wt(){throw new Error("BigInt not supported")}})(eh);const fm=eh.Buffer;function ft(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(ft,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 nh=ft.prototype,rh={};["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=>{rh[e]={value:e}}),Object.defineProperties(ft,rh),Object.defineProperty(nh,"isAxiosError",{value:!0}),ft.from=(e,t,n,i,o,a)=>{const u=Object.create(nh);return re.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),ft.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const hm=null;function Uu(e){return re.isPlainObject(e)||re.isArray(e)}function ih(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function sh(e,t,n){return e?e.concat(t).map(function(o,a){return o=ih(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function dm(e){return re.isArray(e)&&!e.some(Uu)}const pm=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function Ko(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(x,w){return!re.isUndefined(w[x])});const i=n.metaTokens,o=n.visitor||p,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 ft("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(S)||re.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):fm.from(S):S}function p(S,x,w){let T=S;if(S&&!w&&typeof S=="object"){if(re.endsWith(x,"{}"))x=i?x:x.slice(0,-2),S=JSON.stringify(S);else if(re.isArray(S)&&dm(S)||(re.isFileList(S)||re.endsWith(x,"[]"))&&(T=re.toArray(S)))return x=ih(x),T.forEach(function(L,_){!(re.isUndefined(L)||L===null)&&t.append(u===!0?sh([x],_,a):u===null?x:x+"[]",h(L))}),!1}return Uu(S)?!0:(t.append(sh(w,x,a),h(S)),!1)}const g=[],v=Object.assign(pm,{defaultVisitor:p,convertValue:h,isVisitable:Uu});function C(S,x){if(!re.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+x.join("."));g.push(S),re.forEach(S,function(T,j){(!(re.isUndefined(T)||T===null)&&o.call(t,T,re.isString(j)?j.trim():j,x,v))===!0&&C(T,x?x.concat(j):[j])}),g.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return C(e),t}function oh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Vu(e,t){this._pairs=[],e&&Ko(e,this,t)}const ah=Vu.prototype;ah.append=function(t,n){this._pairs.push([t,n])},ah.toString=function(t){const n=t?function(i){return t.call(this,i,oh)}:oh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uh(e,t,n){if(!t)return e;const i=n&&n.encode||gm,o=n&&n.serialize;let a;if(o?a=o(t,n):a=re.isURLSearchParams(t)?t.toString():new Vu(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ch{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 lh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ym=typeof URLSearchParams<"u"?URLSearchParams:Vu,mm=typeof FormData<"u"?FormData:null,bm=typeof Blob<"u"?Blob:null,wm=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),vm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dr={classes:{URLSearchParams:ym,FormData:mm,Blob:bm},isStandardBrowserEnv:wm,isStandardBrowserWebWorkerEnv:vm,protocols:["http","https","file","blob","url","data"]};function Em(e,t){return Ko(e,new dr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return dr.isNode&&re.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function xm(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sm(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 fh(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]=Sm(o[u])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(i,o)=>{t(xm(i),o,n,0)}),n}return null}const Am={"Content-Type":void 0};function Cm(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 Wi={transitional:lh,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(fh(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 Em(t,this.formSerializer).toString();if((l=re.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ko(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Cm(t)):t}],transformResponse:[function(t){const n=this.transitional||Wi.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"?ft.from(l,ft.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:dr.classes.FormData,Blob:dr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};re.forEach(["delete","get","head"],function(t){Wi.headers[t]={}}),re.forEach(["post","put","patch"],function(t){Wi.headers[t]=re.merge(Am)});const _m=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"]),km=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]&&_m[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},hh=Symbol("internals");function Ds(e){return e&&String(e).trim().toLowerCase()}function Ho(e){return e===!1||e==null?e:re.isArray(e)?e.map(Ho):String(e)}function Tm(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 Im=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qu(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 Om(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Fm(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 p=Ds(f);if(!p)throw new Error("header name must be a non-empty string");const g=re.findKey(o,p);(!g||o[g]===void 0||h===!0||h===void 0&&o[g]!==!1)&&(o[g||f]=Ho(l))}const u=(l,f)=>re.forEach(l,(h,p)=>a(h,p,f));return re.isPlainObject(t)||t instanceof this.constructor?u(t,n):re.isString(t)&&(t=t.trim())&&!Im(t)?u(km(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=Ds(t),t){const i=re.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return Tm(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=Ds(t),t){const i=re.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||qu(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(u){if(u=Ds(u),u){const l=re.findKey(i,u);l&&(!n||qu(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||qu(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]=Ho(o),delete n[a];return}const l=t?Om(a):String(a).trim();l!==a&&delete n[a],n[l]=Ho(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[hh]=this[hh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Ds(u);i[l]||(Fm(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 Wu(e,t){const n=this||Wi,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 dh(e){return!!(e&&e.__CANCEL__)}function Rs(e,t,n){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Rs,ft,{__CANCEL__:!0});function Bm(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Dm=dr.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 Rm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Lm(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ph(e,t){return e&&!Rm(t)?Lm(e,t):t}const Pm=dr.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 jm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nm(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(),p=i[a];u||(u=h),n[o]=f,i[o]=h;let g=a,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-u<t)return;const C=p&&h-p;return C?Math.round(v*1e3/C):void 0}}function gh(e,t){let n=0;const i=Nm(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 p={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};p[t?"download":"upload"]=!0,e(p)}}const zo={http:hm,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)&&(dr.isStandardBrowserEnv||dr.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 p=ph(e.baseURL,e.url);h.open(e.method.toUpperCase(),uh(p,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function g(){if(!h)return;const C=$n.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),x={data:!u||u==="text"||u==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:C,config:e,request:h};Bm(function(T){n(T),f()},function(T){i(T),f()},x),h=null}if("onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(g)},h.onabort=function(){h&&(i(new ft("Request aborted",ft.ECONNABORTED,e,h)),h=null)},h.onerror=function(){i(new ft("Network Error",ft.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const x=e.transitional||lh;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(new ft(S,x.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,h)),h=null},dr.isStandardBrowserEnv){const C=(e.withCredentials||Pm(p))&&e.xsrfCookieName&&Dm.read(e.xsrfCookieName);C&&a.set(e.xsrfHeaderName,C)}o===void 0&&a.setContentType(null),"setRequestHeader"in h&&re.forEach(a.toJSON(),function(S,x){h.setRequestHeader(x,S)}),re.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),u&&u!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",gh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",gh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=C=>{h&&(i(!C||C.type?new Rs(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=jm(p);if(v&&dr.protocols.indexOf(v)===-1){i(new ft("Unsupported protocol "+v+":",ft.ERR_BAD_REQUEST,e));return}h.send(o||null)})}};re.forEach(zo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $m={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)?zo[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new ft(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(re.hasOwnProp(zo,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:zo};function Ku(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rs(null,e)}function yh(e){return Ku(e),e.headers=$n.from(e.headers),e.data=Wu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$m.getAdapter(e.adapter||Wi.adapter)(e).then(function(i){return Ku(e),i.data=Wu.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return dh(i)||(Ku(e),i&&i.response&&(i.response.data=Wu.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const mh=e=>e instanceof $n?e.toJSON():e;function Ki(e,t){t=t||{};const n={};function i(h,p,g){return re.isPlainObject(h)&&re.isPlainObject(p)?re.merge.call({caseless:g},h,p):re.isPlainObject(p)?re.merge({},p):re.isArray(p)?p.slice():p}function o(h,p,g){if(re.isUndefined(p)){if(!re.isUndefined(h))return i(void 0,h,g)}else return i(h,p,g)}function a(h,p){if(!re.isUndefined(p))return i(void 0,p)}function u(h,p){if(re.isUndefined(p)){if(!re.isUndefined(h))return i(void 0,h)}else return i(void 0,p)}function l(h,p,g){if(g in t)return i(h,p);if(g 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,p)=>o(mh(h),mh(p),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(p){const g=f[p]||o,v=g(e[p],t[p],p);re.isUndefined(v)&&g!==l||(n[p]=v)}),n}const bh="1.4.0",Hu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const wh={};Hu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+bh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new ft(o(u," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!wh[u]&&(wh[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 Mm(e,t,n){if(typeof e!="object")throw new ft("options must be an object",ft.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 ft("option "+a+" must be "+f,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+a,ft.ERR_BAD_OPTION)}}const zu={assertOptions:Mm,validators:Hu},Ur=zu.validators;let di=class{constructor(t){this.defaults=t,this.interceptors={request:new ch,response:new ch}}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&&zu.assertOptions(i,{silentJSONParsing:Ur.transitional(Ur.boolean),forcedJSONParsing:Ur.transitional(Ur.boolean),clarifyTimeoutError:Ur.transitional(Ur.boolean)},!1),o!=null&&(re.isFunction(o)?n.paramsSerializer={serialize:o}:zu.assertOptions(o,{encode:Ur.function,serialize:Ur.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(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(f=f&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const h=[];this.interceptors.response.forEach(function(x){h.push(x.fulfilled,x.rejected)});let p,g=0,v;if(!f){const S=[yh.bind(this),void 0];for(S.unshift.apply(S,l),S.push.apply(S,h),v=S.length,p=Promise.resolve(n);g<v;)p=p.then(S[g++],S[g++]);return p}v=l.length;let C=n;for(g=0;g<v;){const S=l[g++],x=l[g++];try{C=S(C)}catch(w){x.call(this,w);break}}try{p=yh.call(this,C)}catch(S){return Promise.reject(S)}for(g=0,v=h.length;g<v;)p=p.then(h[g++],h[g++]);return p}getUri(t){t=Ki(this.defaults,t);const n=ph(t.baseURL,t.url);return uh(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){di.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}))}}di.prototype[t]=n(),di.prototype[t+"Form"]=n(!0)});let Um=class o1{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 Rs(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 o1(function(o){t=o}),cancel:t}}};function Vm(e){return function(n){return e.apply(null,n)}}function qm(e){return re.isObject(e)&&e.isAxiosError===!0}const Gu={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(Gu).forEach(([e,t])=>{Gu[t]=e});function vh(e){const t=new di(e),n=Wf(di.prototype.request,t);return re.extend(n,di.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return vh(Ki(e,o))},n}const $e=vh(Wi);$e.Axios=di,$e.CanceledError=Rs,$e.CancelToken=Um,$e.isCancel=dh,$e.VERSION=bh,$e.toFormData=Ko,$e.AxiosError=ft,$e.Cancel=$e.CanceledError,$e.all=function(t){return Promise.all(t)},$e.spread=Vm,$e.isAxiosError=qm,$e.mergeConfig=Ki,$e.AxiosHeaders=$n,$e.formToJSON=e=>fh(re.isHTMLForm(e)?new FormData(e):e),$e.HttpStatusCode=Gu,$e.default=$e;const{Axios:I8,AxiosError:O8,CanceledError:F8,isCancel:B8,CancelToken:D8,VERSION:R8,all:L8,Cancel:P8,isAxiosError:Go,spread:j8,toFormData:N8,AxiosHeaders:$8,HttpStatusCode:M8,formToJSON:U8,mergeConfig:V8}=$e,Jo=async({endpoint:e,body:t})=>$e.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Yo=async({endpoint:e,body:t})=>$e.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),Ju=async({endpoint:e})=>$e.delete(e),Yu=({name:e,onClose:t,endpoint:n})=>{const[i,o]=Z.useState(),[a,u]=Z.useState(!1),l=()=>{u(!0),o(void 0),Ju({endpoint:n}).then(()=>{u(!1),o(void 0),t()}).catch(f=>{u(!1),o(f)})};return E.jsx(V.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&&E.jsx(V.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},Wm=({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})=>Ju({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return E.jsx(V.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&&E.jsx(V.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},Eh=()=>{const{token:e}=V.theme.useToken();return E.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.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})})},xh=()=>{const{token:e}=V.theme.useToken();return E.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.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})})},Sh=()=>E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("g",{clipPath:"url(#clip0_186_9937)",children:E.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"})}),E.jsx("defs",{children:E.jsx("clipPath",{id:"clip0_186_9937",children:E.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(12) rotate(90)"})})})]}),Ah=()=>E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("g",{clipPath:"url(#clip0_186_11488)",children:E.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"})}),E.jsx("defs",{children:E.jsx("clipPath",{id:"clip0_186_11488",children:E.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12) rotate(-90)"})})})]}),Ch=()=>{const{token:e}=V.theme.useToken();return E.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsxs("g",{clipPath:"url(#clip0_294_13557)",children:[E.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}),E.jsx("circle",{cx:"4.99935",cy:"5.00033",r:"2.08333",fill:e.colorPrimary})]}),E.jsx("defs",{children:E.jsx("clipPath",{id:"clip0_294_13557",children:E.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})},_h=()=>{const{token:e}=V.theme.useToken();return E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("g",{clipPath:"url(#clip0_661_14605)",children:E.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})}),E.jsx("defs",{children:E.jsx("clipPath",{id:"clip0_661_14605",children:E.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})},Km={success:E.jsx(vn.CheckCircleFilled,{}),error:E.jsx(vn.CloseCircleFilled,{}),warning:E.jsx(vn.ExclamationCircleFilled,{}),validating:E.jsx(vn.LoadingOutlined,{})},Vr=()=>({...Km,success:E.jsx(_h,{})}),Xu=()=>{const{token:e}=V.theme.useToken();return E.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.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}=V.theme.useToken();return E.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.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})})},kh=()=>{const{token:e}=V.theme.useToken();return E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.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})})},Th=()=>{const{token:e}=V.theme.useToken();return E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.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})})},Hm={ContentContainer:Ge.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
- `},Bh=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=q.theme.useToken();return A.jsx(Ym.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},Dh=async({uri:e})=>Ue.get(e),tn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>bn.useQuery({queryKey:t,queryFn:async()=>{const o=await Dh({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}),St=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),Xm=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?A.jsx(cr.Link,{to:St({template:o,replaceValues:t}),children:St({template:i,replaceValues:t})}):St({template:i,replaceValues:t})})),Ph=({data:e,replaceValues:t,pathname:n})=>e.map(({pathToMatch:o,breadcrumbItems:a})=>({pathToMatch:St({template:o,replaceValues:t}),breadcrumbItems:Xm({rawLinks:a,replaceValues:t})})).find(({pathToMatch:o})=>cr.matchPath(o,n)),ec={HeightDiv:Je.div`
111
+ `},Ih=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=V.theme.useToken();return E.jsx(Hm.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},Oh=async({uri:e})=>$e.get(e),tn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>En.useQuery({queryKey:t,queryFn:async()=>{const o=await Oh({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}),St=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),zm=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?E.jsx(vr.Link,{to:St({template:o,replaceValues:t}),children:St({template:i,replaceValues:t})}):St({template:i,replaceValues:t})})),Fh=({data:e,replaceValues:t,idToCompare:n})=>{const i=e.find(a=>a.id===n);return i?{breadcrumbItems:zm({rawLinks:i.breadcrumbItems,replaceValues:t})}:void 0},Qu={HeightDiv:Ge.div`
112
112
  min-height: 22px;
113
113
  width: 100%;
114
- `},Rh=({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?A.jsx(ec.HeightDiv,{children:A.jsx(q.Breadcrumb,{separator:">",items:o.breadcrumbItems})}):A.jsx(ec.HeightDiv,{})},Qm=({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(ec.HeightDiv,{children:A.jsx(q.Spin,{})}):a?A.jsx(Rh,{data:a,replaceValues:i,pathname:o}):null},Lh=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?St({template:o,replaceValues:t}):void 0;return{key:n,label:u?A.jsx(cr.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?Lh({rawLinks:a,replaceValues:t}):void 0}}),Zm=({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,p=f===d||f&&l&&f.includes(d)?l:[],g=n&&n.keysAndTags&&u.key?n.keysAndTags[typeof u.key=="string"?u.key:String(u.key)]:void 0,v=n&&n.currentTags&&g&&g.some(E=>n.currentTags?.includes(E))?l:[];let C=[];return"children"in u&&u.children&&(C=i(u.children,l)),[...p,...v,...C]});return i(e,[])},Nh=({data:e,replaceValues:t,pathname:n,idToCompare:i,currentTags:o})=>{const a=e.find(d=>d.id===i);if(!a)return;const u={menuItems:Lh({rawLinks:a.menuItems,replaceValues:t})},f=(u?.menuItems?Zm({items:u?.menuItems,pathname:n,tags:{keysAndTags:a.keysAndTags,currentTags:o}}):[]).map(d=>typeof d=="string"?d:String(d));return{...u,selectedKeys:f}},e2={CustomMenu:Je(q.Menu)`
114
+ `},Bh=({data:e})=>E.jsx(Qu.HeightDiv,{children:E.jsx(V.Breadcrumb,{separator:">",items:e.breadcrumbItems})}),Gm=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,idToCompare:a})=>{const{data:u,isError:l,isLoading:f}=tn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});if(l)return null;if(f)return E.jsx(Qu.HeightDiv,{children:E.jsx(V.Spin,{})});if(!u)return null;const h=u?.items.map(({spec:g})=>g);if(!h)return null;const p=Fh({data:h,replaceValues:i,idToCompare:a});return p?E.jsx(Bh,{data:p}):E.jsx(Qu.HeightDiv,{})},Dh=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?St({template:o,replaceValues:t}):void 0;return{key:n,label:u?E.jsx(vr.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?Dh({rawLinks:a,replaceValues:t}):void 0}}),Jm=({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,p=f===h||f&&l&&f.includes(h)?l:[],g=n&&n.keysAndTags&&u.key?n.keysAndTags[typeof u.key=="string"?u.key:String(u.key)]:void 0,v=n&&n.currentTags&&g&&g.some(S=>n.currentTags?.includes(S))?l:[];let C=[];return"children"in u&&u.children&&(C=i(u.children,l)),[...p,...v,...C]});return i(e,[])},Rh=({data:e,replaceValues:t,pathname:n,idToCompare:i,currentTags:o})=>{const a=e.find(h=>h.id===i);if(!a)return;const u={menuItems:Dh({rawLinks:a.menuItems,replaceValues:t})},f=(u?.menuItems?Jm({items:u?.menuItems,pathname:n,tags:{keysAndTags:a.keysAndTags,currentTags:o}}):[]).map(h=>typeof h=="string"?h:String(h));return{...u,selectedKeys:f}},Ym={CustomMenu:Ge(V.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
- `},jh=({data:e,noMarginTop:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(()=>{try{const l=localStorage.getItem("menuOpenKeys");return l?JSON.parse(l):[]}catch(l){return console.error("Failed to parse stored menu keys",l),[]}}),u=l=>{a(l);try{localStorage.setItem("menuOpenKeys",JSON.stringify(l))}catch(f){console.error("Failed to save menu keys to localStorage",f)}};return Z.useEffect(()=>{i(e.selectedKeys)},[e.selectedKeys]),A.jsx(e2.CustomMenu,{selectedKeys:n,onSelect:()=>{},onDeselect:()=>{},defaultOpenKeys:e.selectedKeys,openKeys:o,onOpenChange:u,mode:"inline",items:e.menuItems,$noMarginTop:t})},$h=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,idToCompare:a,currentTags:u,hidden:l,noMarginTop:f})=>{const{data:d,isError:p,isLoading:g}=tn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});if(p)return null;if(g)return A.jsx(q.Spin,{});if(!d||l)return null;const v=d?.items.map(({spec:E})=>E);if(!v)return null;const C=Nh({data:v,replaceValues:i,pathname:o,idToCompare:a,currentTags:u});return C?A.jsx(jh,{data:C,noMarginTop:f}):null};var Qo={exports:{}};/**
136
+ `},Lh=({data:e,noMarginTop:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(()=>{try{const l=localStorage.getItem("menuOpenKeys");return l?JSON.parse(l):[]}catch(l){return console.error("Failed to parse stored menu keys",l),[]}}),u=l=>{a(l);try{localStorage.setItem("menuOpenKeys",JSON.stringify(l))}catch(f){console.error("Failed to save menu keys to localStorage",f)}};return Z.useEffect(()=>{i(e.selectedKeys)},[e.selectedKeys]),E.jsx(Ym.CustomMenu,{selectedKeys:n,onSelect:()=>{},onDeselect:()=>{},defaultOpenKeys:e.selectedKeys,openKeys:o,onOpenChange:u,mode:"inline",items:e.menuItems,$noMarginTop:t})},Ph=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,idToCompare:a,currentTags:u,hidden:l,noMarginTop:f})=>{const{data:h,isError:p,isLoading:g}=tn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});if(p)return null;if(g)return E.jsx(V.Spin,{});if(!h||l)return null;const v=h?.items.map(({spec:S})=>S);if(!v)return null;const C=Rh({data:v,replaceValues:i,pathname:o,idToCompare:a,currentTags:u});return C?E.jsx(Lh,{data:C,noMarginTop:f}):null};var Xo={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
- */Qo.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,p="__lodash_placeholder__",g=1,v=2,C=4,E=1,S=2,b=1,T=2,N=4,L=8,_=16,O=32,F=64,B=128,W=256,Y=512,fe=30,le="...",be=800,ve=16,Ce=1,pe=2,Ee=3,Oe=1/0,Be=9007199254740991,Ze=17976931348623157e292,Ae=NaN,we=4294967295,Ke=we-1,J=we>>>1,Q=[["ary",B],["bind",b],["bindKey",T],["curry",L],["curryRight",_],["flip",Y],["partial",O],["partialRight",F],["rearg",W]],ue="[object Arguments]",De="[object Array]",Ye="[object AsyncFunction]",ke="[object Boolean]",Pe="[object Date]",Fe="[object DOMException]",Ne="[object Error]",_t="[object Function]",nn="[object GeneratorFunction]",Pt="[object Map]",Rt="[object Number]",Lt="[object Null]",wt="[object Object]",kn="[object Promise]",An="[object Proxy]",_e="[object RegExp]",Re="[object Set]",de="[object String]",Et="[object Symbol]",Nt="[object Undefined]",vt="[object WeakMap]",rt="[object WeakSet]",ge="[object ArrayBuffer]",xe="[object DataView]",ut="[object Float32Array]",I="[object Float64Array]",y="[object Int8Array]",w="[object Int16Array]",R="[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,Gr=/[&<>"']/g,Ai=RegExp(st.source),as=RegExp(Gr.source),us=/<%-([\s\S]+?)%>/g,cs=/<%([\s\S]+?)%>/g,Jr=/<%=([\s\S]+?)%>/g,Si=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/,io=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/[\\^$.*+?()[\]{}|]/g,rr=RegExp(Ir.source),Yr=/^\s+/,so=/\s/,oo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ye=/[()=,{}\[\]\/\s]/,Ie=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,nt=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Ot=/^0o[0-7]+$/i,Bt=/^(?:0|[1-9]\d*)$/,cn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,ir=/['\n\r\u2028\u2029\\]/g,Kt="\\ud800-\\udfff",Ei="\\u0300-\\u036f",ao="\\ufe20-\\ufe2f",uo="\\u20d0-\\u20ff",Ca=Ei+ao+uo,_a="\\u2700-\\u27bf",ka="a-z\\xdf-\\xf6\\xf8-\\xff",Kc="\\xac\\xb1\\xd7\\xf7",Hc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zc="\\u2000-\\u206f",Gc=" \\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",ls="\\ufe0e\\ufe0f",co=Kc+Hc+zc+Gc,fs="['’]",Jc="["+Kt+"]",Xr="["+co+"]",hs="["+Ca+"]",Ta="\\d+",Ia="["+_a+"]",Oa="["+ka+"]",Fa="[^"+Kt+co+Ta+_a+ka+In+"]",h="\\ud83c[\\udffb-\\udfff]",x="(?:"+hs+"|"+h+")",j="[^"+Kt+"]",K="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",he="["+In+"]",He="\\u200d",yt="(?:"+Oa+"|"+Fa+")",Qt="(?:"+he+"|"+Fa+")",Ht="(?:"+fs+"(?:d|ll|m|re|s|t|ve))?",Zp="(?:"+fs+"(?:D|LL|M|RE|S|T|VE))?",e0=x+"?",t0="["+ls+"]?",DA="(?:"+He+"(?:"+[j,K,ne].join("|")+")"+t0+e0+")*",PA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",RA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",n0=t0+e0+DA,LA="(?:"+[Ia,K,ne].join("|")+")"+n0,NA="(?:"+[j+hs+"?",hs,K,ne,Jc].join("|")+")",jA=RegExp(fs,"g"),$A=RegExp(hs,"g"),Yc=RegExp(h+"(?="+h+")|"+NA+n0,"g"),MA=RegExp([he+"?"+Oa+"+"+Ht+"(?="+[Xr,he,"$"].join("|")+")",Qt+"+"+Zp+"(?="+[Xr,he+yt,"$"].join("|")+")",he+"?"+yt+"+"+Ht,he+"+"+Zp,RA,PA,Ta,LA].join("|"),"g"),UA=RegExp("["+He+Kt+Ca+ls+"]"),VA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qA=["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"],WA=-1,Ft={};Ft[ut]=Ft[I]=Ft[y]=Ft[w]=Ft[R]=Ft[V]=Ft[G]=Ft[ee]=Ft[Me]=!0,Ft[ue]=Ft[De]=Ft[ge]=Ft[ke]=Ft[xe]=Ft[Pe]=Ft[Ne]=Ft[_t]=Ft[Pt]=Ft[Rt]=Ft[wt]=Ft[_e]=Ft[Re]=Ft[de]=Ft[vt]=!1;var kt={};kt[ue]=kt[De]=kt[ge]=kt[xe]=kt[ke]=kt[Pe]=kt[ut]=kt[I]=kt[y]=kt[w]=kt[R]=kt[Pt]=kt[Rt]=kt[wt]=kt[_e]=kt[Re]=kt[de]=kt[Et]=kt[V]=kt[G]=kt[ee]=kt[Me]=!0,kt[Ne]=kt[_t]=kt[vt]=!1;var KA={À:"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"},HA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zA={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},GA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},JA=parseFloat,YA=parseInt,r0=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,XA=typeof self=="object"&&self&&self.Object===Object&&self,an=r0||XA||Function("return this")(),Xc=t&&!t.nodeType&&t,xi=Xc&&!0&&e&&!e.nodeType&&e,i0=xi&&xi.exports===Xc,Qc=i0&&r0.process,qn=function(){try{var H=xi&&xi.require&&xi.require("util").types;return H||Qc&&Qc.binding&&Qc.binding("util")}catch{}}(),s0=qn&&qn.isArrayBuffer,o0=qn&&qn.isDate,a0=qn&&qn.isMap,u0=qn&&qn.isRegExp,c0=qn&&qn.isSet,l0=qn&&qn.isTypedArray;function On(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 QA(H,te,X,Se){for(var Ve=-1,mt=H==null?0:H.length;++Ve<mt;){var Zt=H[Ve];te(Se,Zt,X(Zt),H)}return Se}function Wn(H,te){for(var X=-1,Se=H==null?0:H.length;++X<Se&&te(H[X],X,H)!==!1;);return H}function ZA(H,te){for(var X=H==null?0:H.length;X--&&te(H[X],X,H)!==!1;);return H}function f0(H,te){for(var X=-1,Se=H==null?0:H.length;++X<Se;)if(!te(H[X],X,H))return!1;return!0}function Qr(H,te){for(var X=-1,Se=H==null?0:H.length,Ve=0,mt=[];++X<Se;){var Zt=H[X];te(Zt,X,H)&&(mt[Ve++]=Zt)}return mt}function Ba(H,te){var X=H==null?0:H.length;return!!X&&ds(H,te,0)>-1}function Zc(H,te,X){for(var Se=-1,Ve=H==null?0:H.length;++Se<Ve;)if(X(te,H[Se]))return!0;return!1}function Dt(H,te){for(var X=-1,Se=H==null?0:H.length,Ve=Array(Se);++X<Se;)Ve[X]=te(H[X],X,H);return Ve}function Zr(H,te){for(var X=-1,Se=te.length,Ve=H.length;++X<Se;)H[Ve+X]=te[X];return H}function el(H,te,X,Se){var Ve=-1,mt=H==null?0:H.length;for(Se&&mt&&(X=H[++Ve]);++Ve<mt;)X=te(X,H[Ve],Ve,H);return X}function eS(H,te,X,Se){var Ve=H==null?0:H.length;for(Se&&Ve&&(X=H[--Ve]);Ve--;)X=te(X,H[Ve],Ve,H);return X}function tl(H,te){for(var X=-1,Se=H==null?0:H.length;++X<Se;)if(te(H[X],X,H))return!0;return!1}var tS=nl("length");function nS(H){return H.split("")}function rS(H){return H.match(ce)||[]}function h0(H,te,X){var Se;return X(H,function(Ve,mt,Zt){if(te(Ve,mt,Zt))return Se=mt,!1}),Se}function Da(H,te,X,Se){for(var Ve=H.length,mt=X+(Se?1:-1);Se?mt--:++mt<Ve;)if(te(H[mt],mt,H))return mt;return-1}function ds(H,te,X){return te===te?gS(H,te,X):Da(H,d0,X)}function iS(H,te,X,Se){for(var Ve=X-1,mt=H.length;++Ve<mt;)if(Se(H[Ve],te))return Ve;return-1}function d0(H){return H!==H}function p0(H,te){var X=H==null?0:H.length;return X?il(H,te)/X:Ae}function nl(H){return function(te){return te==null?n:te[H]}}function rl(H){return function(te){return H==null?n:H[te]}}function g0(H,te,X,Se,Ve){return Ve(H,function(mt,Zt,xt){X=Se?(Se=!1,mt):te(X,mt,Zt,xt)}),X}function sS(H,te){var X=H.length;for(H.sort(te);X--;)H[X]=H[X].value;return H}function il(H,te){for(var X,Se=-1,Ve=H.length;++Se<Ve;){var mt=te(H[Se]);mt!==n&&(X=X===n?mt:X+mt)}return X}function sl(H,te){for(var X=-1,Se=Array(H);++X<H;)Se[X]=te(X);return Se}function oS(H,te){return Dt(te,function(X){return[X,H[X]]})}function y0(H){return H&&H.slice(0,v0(H)+1).replace(Yr,"")}function Fn(H){return function(te){return H(te)}}function ol(H,te){return Dt(te,function(X){return H[X]})}function lo(H,te){return H.has(te)}function m0(H,te){for(var X=-1,Se=H.length;++X<Se&&ds(te,H[X],0)>-1;);return X}function w0(H,te){for(var X=H.length;X--&&ds(te,H[X],0)>-1;);return X}function aS(H,te){for(var X=H.length,Se=0;X--;)H[X]===te&&++Se;return Se}var uS=rl(KA),cS=rl(HA);function lS(H){return"\\"+GA[H]}function fS(H,te){return H==null?n:H[te]}function ps(H){return UA.test(H)}function hS(H){return VA.test(H)}function dS(H){for(var te,X=[];!(te=H.next()).done;)X.push(te.value);return X}function al(H){var te=-1,X=Array(H.size);return H.forEach(function(Se,Ve){X[++te]=[Ve,Se]}),X}function b0(H,te){return function(X){return H(te(X))}}function ei(H,te){for(var X=-1,Se=H.length,Ve=0,mt=[];++X<Se;){var Zt=H[X];(Zt===te||Zt===p)&&(H[X]=p,mt[Ve++]=X)}return mt}function Pa(H){var te=-1,X=Array(H.size);return H.forEach(function(Se){X[++te]=Se}),X}function pS(H){var te=-1,X=Array(H.size);return H.forEach(function(Se){X[++te]=[Se,Se]}),X}function gS(H,te,X){for(var Se=X-1,Ve=H.length;++Se<Ve;)if(H[Se]===te)return Se;return-1}function yS(H,te,X){for(var Se=X+1;Se--;)if(H[Se]===te)return Se;return Se}function gs(H){return ps(H)?wS(H):tS(H)}function sr(H){return ps(H)?bS(H):nS(H)}function v0(H){for(var te=H.length;te--&&so.test(H.charAt(te)););return te}var mS=rl(zA);function wS(H){for(var te=Yc.lastIndex=0;Yc.test(H);)++te;return te}function bS(H){return H.match(Yc)||[]}function vS(H){return H.match(MA)||[]}var AS=function H(te){te=te==null?an:ys.defaults(an.Object(),te,ys.pick(an,qA));var X=te.Array,Se=te.Date,Ve=te.Error,mt=te.Function,Zt=te.Math,xt=te.Object,ul=te.RegExp,SS=te.String,Kn=te.TypeError,Ra=X.prototype,ES=mt.prototype,ms=xt.prototype,La=te["__core-js_shared__"],Na=ES.toString,At=ms.hasOwnProperty,xS=0,A0=function(){var r=/[^.]+$/.exec(La&&La.keys&&La.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ja=ms.toString,CS=Na.call(xt),_S=an._,kS=ul("^"+Na.call(At).replace(Ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$a=i0?te.Buffer:n,ti=te.Symbol,Ma=te.Uint8Array,S0=$a?$a.allocUnsafe:n,Ua=b0(xt.getPrototypeOf,xt),E0=xt.create,x0=ms.propertyIsEnumerable,Va=Ra.splice,C0=ti?ti.isConcatSpreadable:n,fo=ti?ti.iterator:n,Ci=ti?ti.toStringTag:n,qa=function(){try{var r=Oi(xt,"defineProperty");return r({},"",{}),r}catch{}}(),TS=te.clearTimeout!==an.clearTimeout&&te.clearTimeout,IS=Se&&Se.now!==an.Date.now&&Se.now,OS=te.setTimeout!==an.setTimeout&&te.setTimeout,Wa=Zt.ceil,Ka=Zt.floor,cl=xt.getOwnPropertySymbols,FS=$a?$a.isBuffer:n,_0=te.isFinite,BS=Ra.join,DS=b0(xt.keys,xt),en=Zt.max,ln=Zt.min,PS=Se.now,RS=te.parseInt,k0=Zt.random,LS=Ra.reverse,ll=Oi(te,"DataView"),ho=Oi(te,"Map"),fl=Oi(te,"Promise"),ws=Oi(te,"Set"),po=Oi(te,"WeakMap"),go=Oi(xt,"create"),Ha=po&&new po,bs={},NS=Fi(ll),jS=Fi(ho),$S=Fi(fl),MS=Fi(ws),US=Fi(po),za=ti?ti.prototype:n,yo=za?za.valueOf:n,T0=za?za.toString:n;function D(r){if($t(r)&&!We(r)&&!(r instanceof ot)){if(r instanceof Hn)return r;if(At.call(r,"__wrapped__"))return Ig(r)}return new Hn(r)}var vs=function(){function r(){}return function(s){if(!jt(s))return{};if(E0)return E0(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Ga(){}function Hn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}D.templateSettings={escape:us,evaluate:cs,interpolate:Jr,variable:"",imports:{_:D}},D.prototype=Ga.prototype,D.prototype.constructor=D,Hn.prototype=vs(Ga.prototype),Hn.prototype.constructor=Hn;function ot(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=we,this.__views__=[]}function VS(){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 qS(){if(this.__filtered__){var r=new ot(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function WS(){var r=this.__wrapped__.value(),s=this.__dir__,c=We(r),m=s<0,k=c?r.length:0,P=nx(0,k,this.__views__),$=P.start,U=P.end,z=U-$,ie=m?U:$-1,se=this.__iteratees__,ae=se.length,me=0,Te=ln(z,this.__takeCount__);if(!c||!m&&k==z&&Te==z)return Q0(r,this.__actions__);var je=[];e:for(;z--&&me<Te;){ie+=s;for(var Qe=-1,$e=r[ie];++Qe<ae;){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[me++]=$e}return je}ot.prototype=vs(Ga.prototype),ot.prototype.constructor=ot;function _i(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 KS(){this.__data__=go?go(null):{},this.size=0}function HS(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function zS(r){var s=this.__data__;if(go){var c=s[r];return c===f?n:c}return At.call(s,r)?s[r]:n}function GS(r){var s=this.__data__;return go?s[r]!==n:At.call(s,r)}function JS(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=go&&s===n?f:s,this}_i.prototype.clear=KS,_i.prototype.delete=HS,_i.prototype.get=zS,_i.prototype.has=GS,_i.prototype.set=JS;function Or(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 YS(){this.__data__=[],this.size=0}function XS(r){var s=this.__data__,c=Ja(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Va.call(s,c,1),--this.size,!0}function QS(r){var s=this.__data__,c=Ja(s,r);return c<0?n:s[c][1]}function ZS(r){return Ja(this.__data__,r)>-1}function eE(r,s){var c=this.__data__,m=Ja(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Or.prototype.clear=YS,Or.prototype.delete=XS,Or.prototype.get=QS,Or.prototype.has=ZS,Or.prototype.set=eE;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 tE(){this.size=0,this.__data__={hash:new _i,map:new(ho||Or),string:new _i}}function nE(r){var s=au(this,r).delete(r);return this.size-=s?1:0,s}function rE(r){return au(this,r).get(r)}function iE(r){return au(this,r).has(r)}function sE(r,s){var c=au(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Fr.prototype.clear=tE,Fr.prototype.delete=nE,Fr.prototype.get=rE,Fr.prototype.has=iE,Fr.prototype.set=sE;function ki(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Fr;++s<c;)this.add(r[s])}function oE(r){return this.__data__.set(r,f),this}function aE(r){return this.__data__.has(r)}ki.prototype.add=ki.prototype.push=oE,ki.prototype.has=aE;function or(r){var s=this.__data__=new Or(r);this.size=s.size}function uE(){this.__data__=new Or,this.size=0}function cE(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function lE(r){return this.__data__.get(r)}function fE(r){return this.__data__.has(r)}function hE(r,s){var c=this.__data__;if(c instanceof Or){var m=c.__data__;if(!ho||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new Fr(m)}return c.set(r,s),this.size=c.size,this}or.prototype.clear=uE,or.prototype.delete=cE,or.prototype.get=lE,or.prototype.has=fE,or.prototype.set=hE;function I0(r,s){var c=We(r),m=!c&&Bi(r),k=!c&&!m&&oi(r),P=!c&&!m&&!k&&xs(r),$=c||m||k||P,U=$?sl(r.length,SS):[],z=U.length;for(var ie in r)(s||At.call(r,ie))&&!($&&(ie=="length"||k&&(ie=="offset"||ie=="parent")||P&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Rr(ie,z)))&&U.push(ie);return U}function O0(r){var s=r.length;return s?r[Sl(0,s-1)]:n}function dE(r,s){return uu(Sn(r),Ti(s,0,r.length))}function pE(r){return uu(Sn(r))}function hl(r,s,c){(c!==n&&!ar(r[s],c)||c===n&&!(s in r))&&Br(r,s,c)}function mo(r,s,c){var m=r[s];(!(At.call(r,s)&&ar(m,c))||c===n&&!(s in r))&&Br(r,s,c)}function Ja(r,s){for(var c=r.length;c--;)if(ar(r[c][0],s))return c;return-1}function gE(r,s,c,m){return ni(r,function(k,P,$){s(m,k,c(k),$)}),m}function F0(r,s){return r&&br(s,rn(s),r)}function yE(r,s){return r&&br(s,xn(s),r)}function Br(r,s,c){s=="__proto__"&&qa?qa(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function dl(r,s){for(var c=-1,m=s.length,k=X(m),P=r==null;++c<m;)k[c]=P?n:zl(r,s[c]);return k}function Ti(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,k,P){var $,U=s&g,z=s&v,ie=s&C;if(c&&($=k?c(r,m,k,P):c(r)),$!==n)return $;if(!jt(r))return r;var se=We(r);if(se){if($=ix(r),!U)return Sn(r,$)}else{var ae=fn(r),me=ae==_t||ae==nn;if(oi(r))return tg(r,U);if(ae==wt||ae==ue||me&&!k){if($=z||me?{}:vg(r),!U)return z?zE(r,yE($,r)):HE(r,F0($,r))}else{if(!kt[ae])return k?r:{};$=sx(r,ae,U)}}P||(P=new or);var Te=P.get(r);if(Te)return Te;P.set(r,$),Jg(r)?r.forEach(function($e){$.add(zn($e,s,c,$e,r,P))}):zg(r)&&r.forEach(function($e,it){$.set(it,zn($e,s,c,it,r,P))});var je=ie?z?Dl:Bl:z?xn:rn,Qe=se?n:je(r);return Wn(Qe||r,function($e,it){Qe&&(it=$e,$e=r[it]),mo($,it,zn($e,s,c,it,r,P))}),$}function mE(r){var s=rn(r);return function(c){return B0(c,r,s)}}function B0(r,s,c){var m=c.length;if(r==null)return!m;for(r=xt(r);m--;){var k=c[m],P=s[k],$=r[k];if($===n&&!(k in r)||!P($))return!1}return!0}function D0(r,s,c){if(typeof r!="function")throw new Kn(u);return xo(function(){r.apply(n,c)},s)}function wo(r,s,c,m){var k=-1,P=Ba,$=!0,U=r.length,z=[],ie=s.length;if(!U)return z;c&&(s=Dt(s,Fn(c))),m?(P=Zc,$=!1):s.length>=o&&(P=lo,$=!1,s=new ki(s));e:for(;++k<U;){var se=r[k],ae=c==null?se:c(se);if(se=m||se!==0?se:0,$&&ae===ae){for(var me=ie;me--;)if(s[me]===ae)continue e;z.push(se)}else P(s,ae,m)||z.push(se)}return z}var ni=og(wr),P0=og(gl,!0);function wE(r,s){var c=!0;return ni(r,function(m,k,P){return c=!!s(m,k,P),c}),c}function Ya(r,s,c){for(var m=-1,k=r.length;++m<k;){var P=r[m],$=s(P);if($!=null&&(U===n?$===$&&!Dn($):c($,U)))var U=$,z=P}return z}function bE(r,s,c,m){var k=r.length;for(c=ze(c),c<0&&(c=-c>k?0:k+c),m=m===n||m>k?k:ze(m),m<0&&(m+=k),m=c>m?0:Xg(m);c<m;)r[c++]=s;return r}function R0(r,s){var c=[];return ni(r,function(m,k,P){s(m,k,P)&&c.push(m)}),c}function un(r,s,c,m,k){var P=-1,$=r.length;for(c||(c=ax),k||(k=[]);++P<$;){var U=r[P];s>0&&c(U)?s>1?un(U,s-1,c,m,k):Zr(k,U):m||(k[k.length]=U)}return k}var pl=ag(),L0=ag(!0);function wr(r,s){return r&&pl(r,s,rn)}function gl(r,s){return r&&L0(r,s,rn)}function Xa(r,s){return Qr(s,function(c){return Lr(r[c])})}function Ii(r,s){s=ii(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[vr(s[c++])];return c&&c==m?r:n}function N0(r,s,c){var m=s(r);return We(r)?m:Zr(m,c(r))}function gn(r){return r==null?r===n?Nt:Lt:Ci&&Ci in xt(r)?tx(r):px(r)}function yl(r,s){return r>s}function vE(r,s){return r!=null&&At.call(r,s)}function AE(r,s){return r!=null&&s in xt(r)}function SE(r,s,c){return r>=ln(s,c)&&r<en(s,c)}function ml(r,s,c){for(var m=c?Zc:Ba,k=r[0].length,P=r.length,$=P,U=X(P),z=1/0,ie=[];$--;){var se=r[$];$&&s&&(se=Dt(se,Fn(s))),z=ln(se.length,z),U[$]=!c&&(s||k>=120&&se.length>=120)?new ki($&&se):n}se=r[0];var ae=-1,me=U[0];e:for(;++ae<k&&ie.length<z;){var Te=se[ae],je=s?s(Te):Te;if(Te=c||Te!==0?Te:0,!(me?lo(me,je):m(ie,je,c))){for($=P;--$;){var Qe=U[$];if(!(Qe?lo(Qe,je):m(r[$],je,c)))continue e}me&&me.push(je),ie.push(Te)}}return ie}function EE(r,s,c,m){return wr(r,function(k,P,$){s(m,c(k),P,$)}),m}function bo(r,s,c){s=ii(s,r),r=xg(r,s);var m=r==null?r:r[vr(Jn(s))];return m==null?n:On(m,r,c)}function j0(r){return $t(r)&&gn(r)==ue}function xE(r){return $t(r)&&gn(r)==ge}function CE(r){return $t(r)&&gn(r)==Pe}function vo(r,s,c,m,k){return r===s?!0:r==null||s==null||!$t(r)&&!$t(s)?r!==r&&s!==s:_E(r,s,c,m,vo,k)}function _E(r,s,c,m,k,P){var $=We(r),U=We(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,me=z==ie;if(me&&oi(r)){if(!oi(s))return!1;$=!0,se=!1}if(me&&!se)return P||(P=new or),$||xs(r)?mg(r,s,c,m,k,P):ZE(r,s,z,c,m,k,P);if(!(c&E)){var Te=se&&At.call(r,"__wrapped__"),je=ae&&At.call(s,"__wrapped__");if(Te||je){var Qe=Te?r.value():r,$e=je?s.value():s;return P||(P=new or),k(Qe,$e,c,m,P)}}return me?(P||(P=new or),ex(r,s,c,m,k,P)):!1}function kE(r){return $t(r)&&fn(r)==Pt}function wl(r,s,c,m){var k=c.length,P=k,$=!m;if(r==null)return!P;for(r=xt(r);k--;){var U=c[k];if($&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++k<P;){U=c[k];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 or;if(m)var me=m(ie,se,z,r,s,ae);if(!(me===n?vo(se,ie,E|S,m,ae):me))return!1}}return!0}function $0(r){if(!jt(r)||cx(r))return!1;var s=Lr(r)?kS:Xt;return s.test(Fi(r))}function TE(r){return $t(r)&&gn(r)==_e}function IE(r){return $t(r)&&fn(r)==Re}function OE(r){return $t(r)&&pu(r.length)&&!!Ft[gn(r)]}function M0(r){return typeof r=="function"?r:r==null?Cn:typeof r=="object"?We(r)?q0(r[0],r[1]):V0(r):u1(r)}function bl(r){if(!Eo(r))return DS(r);var s=[];for(var c in xt(r))At.call(r,c)&&c!="constructor"&&s.push(c);return s}function FE(r){if(!jt(r))return dx(r);var s=Eo(r),c=[];for(var m in r)m=="constructor"&&(s||!At.call(r,m))||c.push(m);return c}function vl(r,s){return r<s}function U0(r,s){var c=-1,m=En(r)?X(r.length):[];return ni(r,function(k,P,$){m[++c]=s(k,P,$)}),m}function V0(r){var s=Rl(r);return s.length==1&&s[0][2]?Sg(s[0][0],s[0][1]):function(c){return c===r||wl(c,r,s)}}function q0(r,s){return Nl(r)&&Ag(s)?Sg(vr(r),s):function(c){var m=zl(c,r);return m===n&&m===s?Gl(c,r):vo(s,m,E|S)}}function Qa(r,s,c,m,k){r!==s&&pl(s,function(P,$){if(k||(k=new or),jt(P))BE(r,s,$,c,Qa,m,k);else{var U=m?m($l(r,$),P,$+"",r,s,k):n;U===n&&(U=P),hl(r,$,U)}},xn)}function BE(r,s,c,m,k,P,$){var U=$l(r,c),z=$l(s,c),ie=$.get(z);if(ie){hl(r,c,ie);return}var se=P?P(U,z,c+"",r,s,$):n,ae=se===n;if(ae){var me=We(z),Te=!me&&oi(z),je=!me&&!Te&&xs(z);se=z,me||Te||je?We(U)?se=U:zt(U)?se=Sn(U):Te?(ae=!1,se=tg(z,!0)):je?(ae=!1,se=ng(z,!0)):se=[]:Co(z)||Bi(z)?(se=U,Bi(U)?se=Qg(U):(!jt(U)||Lr(U))&&(se=vg(z))):ae=!1}ae&&($.set(z,se),k(se,z,m,P,$),$.delete(z)),hl(r,c,se)}function W0(r,s){var c=r.length;if(c)return s+=s<0?c:0,Rr(s,c)?r[s]:n}function K0(r,s,c){s.length?s=Dt(s,function(P){return We(P)?function($){return Ii($,P.length===1?P[0]:P)}:P}):s=[Cn];var m=-1;s=Dt(s,Fn(Le()));var k=U0(r,function(P,$,U){var z=Dt(s,function(ie){return ie(P)});return{criteria:z,index:++m,value:P}});return sS(k,function(P,$){return KE(P,$,c)})}function DE(r,s){return H0(r,s,function(c,m){return Gl(r,m)})}function H0(r,s,c){for(var m=-1,k=s.length,P={};++m<k;){var $=s[m],U=Ii(r,$);c(U,$)&&Ao(P,ii($,r),U)}return P}function PE(r){return function(s){return Ii(s,r)}}function Al(r,s,c,m){var k=m?iS:ds,P=-1,$=s.length,U=r;for(r===s&&(s=Sn(s)),c&&(U=Dt(r,Fn(c)));++P<$;)for(var z=0,ie=s[P],se=c?c(ie):ie;(z=k(U,se,z,m))>-1;)U!==r&&Va.call(U,z,1),Va.call(r,z,1);return r}function z0(r,s){for(var c=r?s.length:0,m=c-1;c--;){var k=s[c];if(c==m||k!==P){var P=k;Rr(k)?Va.call(r,k,1):Cl(r,k)}}return r}function Sl(r,s){return r+Ka(k0()*(s-r+1))}function RE(r,s,c,m){for(var k=-1,P=en(Wa((s-r)/(c||1)),0),$=X(P);P--;)$[m?P:++k]=r,r+=c;return $}function El(r,s){var c="";if(!r||s<1||s>Be)return c;do s%2&&(c+=r),s=Ka(s/2),s&&(r+=r);while(s);return c}function et(r,s){return Ml(Eg(r,s,Cn),r+"")}function LE(r){return O0(Cs(r))}function NE(r,s){var c=Cs(r);return uu(c,Ti(s,0,c.length))}function Ao(r,s,c,m){if(!jt(r))return r;s=ii(s,r);for(var k=-1,P=s.length,$=P-1,U=r;U!=null&&++k<P;){var z=vr(s[k]),ie=c;if(z==="__proto__"||z==="constructor"||z==="prototype")return r;if(k!=$){var se=U[z];ie=m?m(se,z,U):n,ie===n&&(ie=jt(se)?se:Rr(s[k+1])?[]:{})}mo(U,z,ie),U=U[z]}return r}var G0=Ha?function(r,s){return Ha.set(r,s),r}:Cn,jE=qa?function(r,s){return qa(r,"toString",{configurable:!0,enumerable:!1,value:Yl(s),writable:!0})}:Cn;function $E(r){return uu(Cs(r))}function Gn(r,s,c){var m=-1,k=r.length;s<0&&(s=-s>k?0:k+s),c=c>k?k:c,c<0&&(c+=k),k=s>c?0:c-s>>>0,s>>>=0;for(var P=X(k);++m<k;)P[m]=r[m+s];return P}function ME(r,s){var c;return ni(r,function(m,k,P){return c=s(m,k,P),!c}),!!c}function Za(r,s,c){var m=0,k=r==null?m:r.length;if(typeof s=="number"&&s===s&&k<=J){for(;m<k;){var P=m+k>>>1,$=r[P];$!==null&&!Dn($)&&(c?$<=s:$<s)?m=P+1:k=P}return k}return xl(r,s,Cn,c)}function xl(r,s,c,m){var k=0,P=r==null?0:r.length;if(P===0)return 0;s=c(s);for(var $=s!==s,U=s===null,z=Dn(s),ie=s===n;k<P;){var se=Ka((k+P)/2),ae=c(r[se]),me=ae!==n,Te=ae===null,je=ae===ae,Qe=Dn(ae);if($)var $e=m||je;else ie?$e=je&&(m||me):U?$e=je&&me&&(m||!Te):z?$e=je&&me&&!Te&&(m||!Qe):Te||Qe?$e=!1:$e=m?ae<=s:ae<s;$e?k=se+1:P=se}return ln(P,Ke)}function J0(r,s){for(var c=-1,m=r.length,k=0,P=[];++c<m;){var $=r[c],U=s?s($):$;if(!c||!ar(U,z)){var z=U;P[k++]=$===0?0:$}}return P}function Y0(r){return typeof r=="number"?r:Dn(r)?Ae:+r}function Bn(r){if(typeof r=="string")return r;if(We(r))return Dt(r,Bn)+"";if(Dn(r))return T0?T0.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ri(r,s,c){var m=-1,k=Ba,P=r.length,$=!0,U=[],z=U;if(c)$=!1,k=Zc;else if(P>=o){var ie=s?null:XE(r);if(ie)return Pa(ie);$=!1,k=lo,z=new ki}else z=s?[]:U;e:for(;++m<P;){var se=r[m],ae=s?s(se):se;if(se=c||se!==0?se:0,$&&ae===ae){for(var me=z.length;me--;)if(z[me]===ae)continue e;s&&z.push(ae),U.push(se)}else k(z,ae,c)||(z!==U&&z.push(ae),U.push(se))}return U}function Cl(r,s){return s=ii(s,r),r=xg(r,s),r==null||delete r[vr(Jn(s))]}function X0(r,s,c,m){return Ao(r,s,c(Ii(r,s)),m)}function eu(r,s,c,m){for(var k=r.length,P=m?k:-1;(m?P--:++P<k)&&s(r[P],P,r););return c?Gn(r,m?0:P,m?P+1:k):Gn(r,m?P+1:0,m?k:P)}function Q0(r,s){var c=r;return c instanceof ot&&(c=c.value()),el(s,function(m,k){return k.func.apply(k.thisArg,Zr([m],k.args))},c)}function _l(r,s,c){var m=r.length;if(m<2)return m?ri(r[0]):[];for(var k=-1,P=X(m);++k<m;)for(var $=r[k],U=-1;++U<m;)U!=k&&(P[k]=wo(P[k]||$,r[U],s,c));return ri(un(P,1),s,c)}function Z0(r,s,c){for(var m=-1,k=r.length,P=s.length,$={};++m<k;){var U=m<P?s[m]:n;c($,r[m],U)}return $}function kl(r){return zt(r)?r:[]}function Tl(r){return typeof r=="function"?r:Cn}function ii(r,s){return We(r)?r:Nl(r,s)?[r]:Tg(bt(r))}var UE=et;function si(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var eg=TS||function(r){return an.clearTimeout(r)};function tg(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 Il(r){var s=new r.constructor(r.byteLength);return new Ma(s).set(new Ma(r)),s}function VE(r,s){var c=s?Il(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function qE(r){var s=new r.constructor(r.source,ft.exec(r));return s.lastIndex=r.lastIndex,s}function WE(r){return yo?xt(yo.call(r)):{}}function ng(r,s){var c=s?Il(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function rg(r,s){if(r!==s){var c=r!==n,m=r===null,k=r===r,P=Dn(r),$=s!==n,U=s===null,z=s===s,ie=Dn(s);if(!U&&!ie&&!P&&r>s||P&&$&&z&&!U&&!ie||m&&$&&z||!c&&z||!k)return 1;if(!m&&!P&&!ie&&r<s||ie&&c&&k&&!m&&!P||U&&c&&k||!$&&k||!z)return-1}return 0}function KE(r,s,c){for(var m=-1,k=r.criteria,P=s.criteria,$=k.length,U=c.length;++m<$;){var z=rg(k[m],P[m]);if(z){if(m>=U)return z;var ie=c[m];return z*(ie=="desc"?-1:1)}}return r.index-s.index}function ig(r,s,c,m){for(var k=-1,P=r.length,$=c.length,U=-1,z=s.length,ie=en(P-$,0),se=X(z+ie),ae=!m;++U<z;)se[U]=s[U];for(;++k<$;)(ae||k<P)&&(se[c[k]]=r[k]);for(;ie--;)se[U++]=r[k++];return se}function sg(r,s,c,m){for(var k=-1,P=r.length,$=-1,U=c.length,z=-1,ie=s.length,se=en(P-U,0),ae=X(se+ie),me=!m;++k<se;)ae[k]=r[k];for(var Te=k;++z<ie;)ae[Te+z]=s[z];for(;++$<U;)(me||k<P)&&(ae[Te+c[$]]=r[k++]);return ae}function Sn(r,s){var c=-1,m=r.length;for(s||(s=X(m));++c<m;)s[c]=r[c];return s}function br(r,s,c,m){var k=!c;c||(c={});for(var P=-1,$=s.length;++P<$;){var U=s[P],z=m?m(c[U],r[U],U,c,r):n;z===n&&(z=r[U]),k?Br(c,U,z):mo(c,U,z)}return c}function HE(r,s){return br(r,Ll(r),s)}function zE(r,s){return br(r,wg(r),s)}function tu(r,s){return function(c,m){var k=We(c)?QA:gE,P=s?s():{};return k(c,r,Le(m,2),P)}}function As(r){return et(function(s,c){var m=-1,k=c.length,P=k>1?c[k-1]:n,$=k>2?c[2]:n;for(P=r.length>3&&typeof P=="function"?(k--,P):n,$&&yn(c[0],c[1],$)&&(P=k<3?n:P,k=1),s=xt(s);++m<k;){var U=c[m];U&&r(s,U,m,P)}return s})}function og(r,s){return function(c,m){if(c==null)return c;if(!En(c))return r(c,m);for(var k=c.length,P=s?k:-1,$=xt(c);(s?P--:++P<k)&&m($[P],P,$)!==!1;);return c}}function ag(r){return function(s,c,m){for(var k=-1,P=xt(s),$=m(s),U=$.length;U--;){var z=$[r?U:++k];if(c(P[z],z,P)===!1)break}return s}}function GE(r,s,c){var m=s&b,k=So(r);function P(){var $=this&&this!==an&&this instanceof P?k:r;return $.apply(m?c:this,arguments)}return P}function ug(r){return function(s){s=bt(s);var c=ps(s)?sr(s):n,m=c?c[0]:s.charAt(0),k=c?si(c,1).join(""):s.slice(1);return m[r]()+k}}function Ss(r){return function(s){return el(o1(s1(s).replace(jA,"")),r,"")}}function So(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=vs(r.prototype),m=r.apply(c,s);return jt(m)?m:c}}function JE(r,s,c){var m=So(r);function k(){for(var P=arguments.length,$=X(P),U=P,z=Es(k);U--;)$[U]=arguments[U];var ie=P<3&&$[0]!==z&&$[P-1]!==z?[]:ei($,z);if(P-=ie.length,P<c)return dg(r,s,nu,k.placeholder,n,$,ie,n,n,c-P);var se=this&&this!==an&&this instanceof k?m:r;return On(se,this,$)}return k}function cg(r){return function(s,c,m){var k=xt(s);if(!En(s)){var P=Le(c,3);s=rn(s),c=function(U){return P(k[U],U,k)}}var $=r(s,c,m);return $>-1?k[P?s[$]:$]:n}}function lg(r){return Pr(function(s){var c=s.length,m=c,k=Hn.prototype.thru;for(r&&s.reverse();m--;){var P=s[m];if(typeof P!="function")throw new Kn(u);if(k&&!$&&ou(P)=="wrapper")var $=new Hn([],!0)}for(m=$?m:c;++m<c;){P=s[m];var U=ou(P),z=U=="wrapper"?Pl(P):n;z&&jl(z[0])&&z[1]==(B|L|O|W)&&!z[4].length&&z[9]==1?$=$[ou(z[0])].apply($,z[3]):$=P.length==1&&jl(P)?$[U]():$.thru(P)}return function(){var ie=arguments,se=ie[0];if($&&ie.length==1&&We(se))return $.plant(se).value();for(var ae=0,me=c?s[ae].apply(this,ie):se;++ae<c;)me=s[ae].call(this,me);return me}})}function nu(r,s,c,m,k,P,$,U,z,ie){var se=s&B,ae=s&b,me=s&T,Te=s&(L|_),je=s&Y,Qe=me?n:So(r);function $e(){for(var it=arguments.length,at=X(it),Pn=it;Pn--;)at[Pn]=arguments[Pn];if(Te)var mn=Es($e),Rn=aS(at,mn);if(m&&(at=ig(at,m,k,Te)),P&&(at=sg(at,P,$,Te)),it-=Rn,Te&&it<ie){var Gt=ei(at,mn);return dg(r,s,nu,$e.placeholder,c,at,Gt,U,z,ie-it)}var ur=ae?c:this,jr=me?ur[r]:r;return it=at.length,U?at=gx(at,U):je&&it>1&&at.reverse(),se&&z<it&&(at.length=z),this&&this!==an&&this instanceof $e&&(jr=Qe||So(jr)),jr.apply(ur,at)}return $e}function fg(r,s){return function(c,m){return EE(c,r,s(m),{})}}function ru(r,s){return function(c,m){var k;if(c===n&&m===n)return s;if(c!==n&&(k=c),m!==n){if(k===n)return m;typeof c=="string"||typeof m=="string"?(c=Bn(c),m=Bn(m)):(c=Y0(c),m=Y0(m)),k=r(c,m)}return k}}function Ol(r){return Pr(function(s){return s=Dt(s,Fn(Le())),et(function(c){var m=this;return r(s,function(k){return On(k,m,c)})})})}function iu(r,s){s=s===n?" ":Bn(s);var c=s.length;if(c<2)return c?El(s,r):s;var m=El(s,Wa(r/gs(s)));return ps(s)?si(sr(m),0,r).join(""):m.slice(0,r)}function YE(r,s,c,m){var k=s&b,P=So(r);function $(){for(var U=-1,z=arguments.length,ie=-1,se=m.length,ae=X(se+z),me=this&&this!==an&&this instanceof $?P:r;++ie<se;)ae[ie]=m[ie];for(;z--;)ae[ie++]=arguments[++U];return On(me,k?c:this,ae)}return $}function hg(r){return function(s,c,m){return m&&typeof m!="number"&&yn(s,c,m)&&(c=m=n),s=Nr(s),c===n?(c=s,s=0):c=Nr(c),m=m===n?s<c?1:-1:Nr(m),RE(s,c,m,r)}}function su(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Yn(s),c=Yn(c)),r(s,c)}}function dg(r,s,c,m,k,P,$,U,z,ie){var se=s&L,ae=se?$:n,me=se?n:$,Te=se?P:n,je=se?n:P;s|=se?O:F,s&=~(se?F:O),s&N||(s&=-4);var Qe=[r,s,k,Te,ae,je,me,U,z,ie],$e=c.apply(n,Qe);return jl(r)&&Cg($e,Qe),$e.placeholder=m,_g($e,r,s)}function Fl(r){var s=Zt[r];return function(c,m){if(c=Yn(c),m=m==null?0:ln(ze(m),292),m&&_0(c)){var k=(bt(c)+"e").split("e"),P=s(k[0]+"e"+(+k[1]+m));return k=(bt(P)+"e").split("e"),+(k[0]+"e"+(+k[1]-m))}return s(c)}}var XE=ws&&1/Pa(new ws([,-0]))[1]==Oe?function(r){return new ws(r)}:Zl;function pg(r){return function(s){var c=fn(s);return c==Pt?al(s):c==Re?pS(s):oS(s,r(s))}}function Dr(r,s,c,m,k,P,$,U){var z=s&T;if(!z&&typeof r!="function")throw new Kn(u);var ie=m?m.length:0;if(ie||(s&=-97,m=k=n),$=$===n?$:en(ze($),0),U=U===n?U:ze(U),ie-=k?k.length:0,s&F){var se=m,ae=k;m=k=n}var me=z?n:Pl(r),Te=[r,s,c,m,k,se,ae,P,$,U];if(me&&hx(Te,me),r=Te[0],s=Te[1],c=Te[2],m=Te[3],k=Te[4],U=Te[9]=Te[9]===n?z?0:r.length:en(Te[9]-ie,0),!U&&s&(L|_)&&(s&=-25),!s||s==b)var je=GE(r,s,c);else s==L||s==_?je=JE(r,s,U):(s==O||s==(b|O))&&!k.length?je=YE(r,s,c,m):je=nu.apply(n,Te);var Qe=me?G0:Cg;return _g(Qe(je,Te),r,s)}function gg(r,s,c,m){return r===n||ar(r,ms[c])&&!At.call(m,c)?s:r}function yg(r,s,c,m,k,P){return jt(r)&&jt(s)&&(P.set(s,r),Qa(r,s,n,yg,P),P.delete(s)),r}function QE(r){return Co(r)?n:r}function mg(r,s,c,m,k,P){var $=c&E,U=r.length,z=s.length;if(U!=z&&!($&&z>U))return!1;var ie=P.get(r),se=P.get(s);if(ie&&se)return ie==s&&se==r;var ae=-1,me=!0,Te=c&S?new ki:n;for(P.set(r,s),P.set(s,r);++ae<U;){var je=r[ae],Qe=s[ae];if(m)var $e=$?m(Qe,je,ae,s,r,P):m(je,Qe,ae,r,s,P);if($e!==n){if($e)continue;me=!1;break}if(Te){if(!tl(s,function(it,at){if(!lo(Te,at)&&(je===it||k(je,it,c,m,P)))return Te.push(at)})){me=!1;break}}else if(!(je===Qe||k(je,Qe,c,m,P))){me=!1;break}}return P.delete(r),P.delete(s),me}function ZE(r,s,c,m,k,P,$){switch(c){case xe:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case ge:return!(r.byteLength!=s.byteLength||!P(new Ma(r),new Ma(s)));case ke:case Pe:case Rt:return ar(+r,+s);case Ne:return r.name==s.name&&r.message==s.message;case _e:case de:return r==s+"";case Pt:var U=al;case Re:var z=m&E;if(U||(U=Pa),r.size!=s.size&&!z)return!1;var ie=$.get(r);if(ie)return ie==s;m|=S,$.set(r,s);var se=mg(U(r),U(s),m,k,P,$);return $.delete(r),se;case Et:if(yo)return yo.call(r)==yo.call(s)}return!1}function ex(r,s,c,m,k,P){var $=c&E,U=Bl(r),z=U.length,ie=Bl(s),se=ie.length;if(z!=se&&!$)return!1;for(var ae=z;ae--;){var me=U[ae];if(!($?me in s:At.call(s,me)))return!1}var Te=P.get(r),je=P.get(s);if(Te&&je)return Te==s&&je==r;var Qe=!0;P.set(r,s),P.set(s,r);for(var $e=$;++ae<z;){me=U[ae];var it=r[me],at=s[me];if(m)var Pn=$?m(at,it,me,s,r,P):m(it,at,me,r,s,P);if(!(Pn===n?it===at||k(it,at,c,m,P):Pn)){Qe=!1;break}$e||($e=me=="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 P.delete(r),P.delete(s),Qe}function Pr(r){return Ml(Eg(r,n,Bg),r+"")}function Bl(r){return N0(r,rn,Ll)}function Dl(r){return N0(r,xn,wg)}var Pl=Ha?function(r){return Ha.get(r)}:Zl;function ou(r){for(var s=r.name+"",c=bs[s],m=At.call(bs,s)?c.length:0;m--;){var k=c[m],P=k.func;if(P==null||P==r)return k.name}return s}function Es(r){var s=At.call(D,"placeholder")?D:r;return s.placeholder}function Le(){var r=D.iteratee||Xl;return r=r===Xl?M0:r,arguments.length?r(arguments[0],arguments[1]):r}function au(r,s){var c=r.__data__;return ux(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Rl(r){for(var s=rn(r),c=s.length;c--;){var m=s[c],k=r[m];s[c]=[m,k,Ag(k)]}return s}function Oi(r,s){var c=fS(r,s);return $0(c)?c:n}function tx(r){var s=At.call(r,Ci),c=r[Ci];try{r[Ci]=n;var m=!0}catch{}var k=ja.call(r);return m&&(s?r[Ci]=c:delete r[Ci]),k}var Ll=cl?function(r){return r==null?[]:(r=xt(r),Qr(cl(r),function(s){return x0.call(r,s)}))}:ef,wg=cl?function(r){for(var s=[];r;)Zr(s,Ll(r)),r=Ua(r);return s}:ef,fn=gn;(ll&&fn(new ll(new ArrayBuffer(1)))!=xe||ho&&fn(new ho)!=Pt||fl&&fn(fl.resolve())!=kn||ws&&fn(new ws)!=Re||po&&fn(new po)!=vt)&&(fn=function(r){var s=gn(r),c=s==wt?r.constructor:n,m=c?Fi(c):"";if(m)switch(m){case NS:return xe;case jS:return Pt;case $S:return kn;case MS:return Re;case US:return vt}return s});function nx(r,s,c){for(var m=-1,k=c.length;++m<k;){var P=c[m],$=P.size;switch(P.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 rx(r){var s=r.match(pn);return s?s[1].split(M):[]}function bg(r,s,c){s=ii(s,r);for(var m=-1,k=s.length,P=!1;++m<k;){var $=vr(s[m]);if(!(P=r!=null&&c(r,$)))break;r=r[$]}return P||++m!=k?P:(k=r==null?0:r.length,!!k&&pu(k)&&Rr($,k)&&(We(r)||Bi(r)))}function ix(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&At.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function vg(r){return typeof r.constructor=="function"&&!Eo(r)?vs(Ua(r)):{}}function sx(r,s,c){var m=r.constructor;switch(s){case ge:return Il(r);case ke:case Pe:return new m(+r);case xe:return VE(r,c);case ut:case I:case y:case w:case R:case V:case G:case ee:case Me:return ng(r,c);case Pt:return new m;case Rt:case de:return new m(r);case _e:return qE(r);case Re:return new m;case Et:return WE(r)}}function ox(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(oo,`{
143
+ */Xo.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,p="__lodash_placeholder__",g=1,v=2,C=4,S=1,x=2,w=1,T=2,j=4,L=8,_=16,O=32,F=64,B=128,W=256,X=512,fe=30,le="...",me=800,be=16,Ae=1,de=2,Se=3,ke=1/0,Oe=9007199254740991,Ze=17976931348623157e292,Ee=NaN,ye=4294967295,We=ye-1,J=ye>>>1,Y=[["ary",B],["bind",w],["bindKey",T],["curry",L],["curryRight",_],["flip",X],["partial",O],["partialRight",F],["rearg",W]],oe="[object Arguments]",De="[object Array]",Je="[object AsyncFunction]",ve="[object Boolean]",Fe="[object Date]",je="[object DOMException]",Re="[object Error]",Ct="[object Function]",nn="[object GeneratorFunction]",Lt="[object Map]",Pt="[object Number]",jt="[object Null]",bt="[object Object]",Te="[object Promise]",et="[object Proxy]",gt="[object RegExp]",vt="[object Set]",we="[object String]",It="[object Symbol]",an="[object Undefined]",Ye="[object WeakMap]",Bt="[object WeakSet]",_e="[object ArrayBuffer]",Ne="[object DataView]",Wt="[object Float32Array]",I="[object Float64Array]",y="[object Int8Array]",b="[object Int16Array]",P="[object Int32Array]",q="[object Uint8Array]",G="[object Uint8ClampedArray]",ee="[object Uint16Array]",Me="[object Uint32Array]",dt=/\b__p \+= '';/g,ut=/\b(__p \+=) '' \+/g,ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39);/g,Gr=/[&<>"']/g,Ei=RegExp(st.source),as=RegExp(Gr.source),us=/<%-([\s\S]+?)%>/g,cs=/<%([\s\S]+?)%>/g,Jr=/<%=([\s\S]+?)%>/g,xi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,no=/^\w*$/,ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/[\\^$.*+?()[\]{}|]/g,rr=RegExp(Ir.source),Yr=/^\s+/,io=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,Ie=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Ot=/^0o[0-7]+$/i,Dt=/^(?:0|[1-9]\d*)$/,fn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,ir=/['\n\r\u2028\u2029\\]/g,Kt="\\ud800-\\udfff",Si="\\u0300-\\u036f",oo="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",Sa=Si+oo+ao,Aa="\\u2700-\\u27bf",Ca="a-z\\xdf-\\xf6\\xf8-\\xff",Vc="\\xac\\xb1\\xd7\\xf7",qc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wc="\\u2000-\\u206f",Kc=" \\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",ls="\\ufe0e\\ufe0f",uo=Vc+qc+Wc+Kc,fs="['’]",Hc="["+Kt+"]",Xr="["+uo+"]",hs="["+Sa+"]",_a="\\d+",ka="["+Aa+"]",Ta="["+Ca+"]",Ia="[^"+Kt+uo+_a+Aa+Ca+In+"]",d="\\ud83c[\\udffb-\\udfff]",A="(?:"+hs+"|"+d+")",N="[^"+Kt+"]",K="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",he="["+In+"]",Ke="\\u200d",yt="(?:"+Ta+"|"+Ia+")",Qt="(?:"+he+"|"+Ia+")",Ht="(?:"+fs+"(?:d|ll|m|re|s|t|ve))?",Jp="(?:"+fs+"(?:D|LL|M|RE|S|T|VE))?",Yp=A+"?",Xp="["+ls+"]?",IE="(?:"+Ke+"(?:"+[N,K,ne].join("|")+")"+Xp+Yp+")*",OE="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qp=Xp+Yp+IE,BE="(?:"+[ka,K,ne].join("|")+")"+Qp,DE="(?:"+[N+hs+"?",hs,K,ne,Hc].join("|")+")",RE=RegExp(fs,"g"),LE=RegExp(hs,"g"),zc=RegExp(d+"(?="+d+")|"+DE+Qp,"g"),PE=RegExp([he+"?"+Ta+"+"+Ht+"(?="+[Xr,he,"$"].join("|")+")",Qt+"+"+Jp+"(?="+[Xr,he+yt,"$"].join("|")+")",he+"?"+yt+"+"+Ht,he+"+"+Jp,FE,OE,_a,BE].join("|"),"g"),jE=RegExp("["+Ke+Kt+Sa+ls+"]"),NE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$E=["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"],ME=-1,Ft={};Ft[Wt]=Ft[I]=Ft[y]=Ft[b]=Ft[P]=Ft[q]=Ft[G]=Ft[ee]=Ft[Me]=!0,Ft[oe]=Ft[De]=Ft[_e]=Ft[ve]=Ft[Ne]=Ft[Fe]=Ft[Re]=Ft[Ct]=Ft[Lt]=Ft[Pt]=Ft[bt]=Ft[gt]=Ft[vt]=Ft[we]=Ft[Ye]=!1;var _t={};_t[oe]=_t[De]=_t[_e]=_t[Ne]=_t[ve]=_t[Fe]=_t[Wt]=_t[I]=_t[y]=_t[b]=_t[P]=_t[Lt]=_t[Pt]=_t[bt]=_t[gt]=_t[vt]=_t[we]=_t[It]=_t[q]=_t[G]=_t[ee]=_t[Me]=!0,_t[Re]=_t[Ct]=_t[Ye]=!1;var UE={À:"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"},VE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qE={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},WE={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},KE=parseFloat,HE=parseInt,Zp=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,zE=typeof self=="object"&&self&&self.Object===Object&&self,un=Zp||zE||Function("return this")(),Gc=t&&!t.nodeType&&t,Ai=Gc&&!0&&e&&!e.nodeType&&e,e0=Ai&&Ai.exports===Gc,Jc=e0&&Zp.process,qn=function(){try{var H=Ai&&Ai.require&&Ai.require("util").types;return H||Jc&&Jc.binding&&Jc.binding("util")}catch{}}(),t0=qn&&qn.isArrayBuffer,n0=qn&&qn.isDate,r0=qn&&qn.isMap,i0=qn&&qn.isRegExp,s0=qn&&qn.isSet,o0=qn&&qn.isTypedArray;function On(H,te,Q){switch(Q.length){case 0:return H.call(te);case 1:return H.call(te,Q[0]);case 2:return H.call(te,Q[0],Q[1]);case 3:return H.call(te,Q[0],Q[1],Q[2])}return H.apply(te,Q)}function GE(H,te,Q,xe){for(var Ue=-1,mt=H==null?0:H.length;++Ue<mt;){var Zt=H[Ue];te(xe,Zt,Q(Zt),H)}return xe}function Wn(H,te){for(var Q=-1,xe=H==null?0:H.length;++Q<xe&&te(H[Q],Q,H)!==!1;);return H}function JE(H,te){for(var Q=H==null?0:H.length;Q--&&te(H[Q],Q,H)!==!1;);return H}function a0(H,te){for(var Q=-1,xe=H==null?0:H.length;++Q<xe;)if(!te(H[Q],Q,H))return!1;return!0}function Qr(H,te){for(var Q=-1,xe=H==null?0:H.length,Ue=0,mt=[];++Q<xe;){var Zt=H[Q];te(Zt,Q,H)&&(mt[Ue++]=Zt)}return mt}function Oa(H,te){var Q=H==null?0:H.length;return!!Q&&ds(H,te,0)>-1}function Yc(H,te,Q){for(var xe=-1,Ue=H==null?0:H.length;++xe<Ue;)if(Q(te,H[xe]))return!0;return!1}function Rt(H,te){for(var Q=-1,xe=H==null?0:H.length,Ue=Array(xe);++Q<xe;)Ue[Q]=te(H[Q],Q,H);return Ue}function Zr(H,te){for(var Q=-1,xe=te.length,Ue=H.length;++Q<xe;)H[Ue+Q]=te[Q];return H}function Xc(H,te,Q,xe){var Ue=-1,mt=H==null?0:H.length;for(xe&&mt&&(Q=H[++Ue]);++Ue<mt;)Q=te(Q,H[Ue],Ue,H);return Q}function YE(H,te,Q,xe){var Ue=H==null?0:H.length;for(xe&&Ue&&(Q=H[--Ue]);Ue--;)Q=te(Q,H[Ue],Ue,H);return Q}function Qc(H,te){for(var Q=-1,xe=H==null?0:H.length;++Q<xe;)if(te(H[Q],Q,H))return!0;return!1}var XE=Zc("length");function QE(H){return H.split("")}function ZE(H){return H.match(ce)||[]}function u0(H,te,Q){var xe;return Q(H,function(Ue,mt,Zt){if(te(Ue,mt,Zt))return xe=mt,!1}),xe}function Fa(H,te,Q,xe){for(var Ue=H.length,mt=Q+(xe?1:-1);xe?mt--:++mt<Ue;)if(te(H[mt],mt,H))return mt;return-1}function ds(H,te,Q){return te===te?fx(H,te,Q):Fa(H,c0,Q)}function ex(H,te,Q,xe){for(var Ue=Q-1,mt=H.length;++Ue<mt;)if(xe(H[Ue],te))return Ue;return-1}function c0(H){return H!==H}function l0(H,te){var Q=H==null?0:H.length;return Q?tl(H,te)/Q:Ee}function Zc(H){return function(te){return te==null?n:te[H]}}function el(H){return function(te){return H==null?n:H[te]}}function f0(H,te,Q,xe,Ue){return Ue(H,function(mt,Zt,xt){Q=xe?(xe=!1,mt):te(Q,mt,Zt,xt)}),Q}function tx(H,te){var Q=H.length;for(H.sort(te);Q--;)H[Q]=H[Q].value;return H}function tl(H,te){for(var Q,xe=-1,Ue=H.length;++xe<Ue;){var mt=te(H[xe]);mt!==n&&(Q=Q===n?mt:Q+mt)}return Q}function nl(H,te){for(var Q=-1,xe=Array(H);++Q<H;)xe[Q]=te(Q);return xe}function nx(H,te){return Rt(te,function(Q){return[Q,H[Q]]})}function h0(H){return H&&H.slice(0,y0(H)+1).replace(Yr,"")}function Fn(H){return function(te){return H(te)}}function rl(H,te){return Rt(te,function(Q){return H[Q]})}function co(H,te){return H.has(te)}function d0(H,te){for(var Q=-1,xe=H.length;++Q<xe&&ds(te,H[Q],0)>-1;);return Q}function p0(H,te){for(var Q=H.length;Q--&&ds(te,H[Q],0)>-1;);return Q}function rx(H,te){for(var Q=H.length,xe=0;Q--;)H[Q]===te&&++xe;return xe}var ix=el(UE),sx=el(VE);function ox(H){return"\\"+WE[H]}function ax(H,te){return H==null?n:H[te]}function ps(H){return jE.test(H)}function ux(H){return NE.test(H)}function cx(H){for(var te,Q=[];!(te=H.next()).done;)Q.push(te.value);return Q}function il(H){var te=-1,Q=Array(H.size);return H.forEach(function(xe,Ue){Q[++te]=[Ue,xe]}),Q}function g0(H,te){return function(Q){return H(te(Q))}}function ei(H,te){for(var Q=-1,xe=H.length,Ue=0,mt=[];++Q<xe;){var Zt=H[Q];(Zt===te||Zt===p)&&(H[Q]=p,mt[Ue++]=Q)}return mt}function Ba(H){var te=-1,Q=Array(H.size);return H.forEach(function(xe){Q[++te]=xe}),Q}function lx(H){var te=-1,Q=Array(H.size);return H.forEach(function(xe){Q[++te]=[xe,xe]}),Q}function fx(H,te,Q){for(var xe=Q-1,Ue=H.length;++xe<Ue;)if(H[xe]===te)return xe;return-1}function hx(H,te,Q){for(var xe=Q+1;xe--;)if(H[xe]===te)return xe;return xe}function gs(H){return ps(H)?px(H):XE(H)}function sr(H){return ps(H)?gx(H):QE(H)}function y0(H){for(var te=H.length;te--&&io.test(H.charAt(te)););return te}var dx=el(qE);function px(H){for(var te=zc.lastIndex=0;zc.test(H);)++te;return te}function gx(H){return H.match(zc)||[]}function yx(H){return H.match(PE)||[]}var mx=function H(te){te=te==null?un:ys.defaults(un.Object(),te,ys.pick(un,$E));var Q=te.Array,xe=te.Date,Ue=te.Error,mt=te.Function,Zt=te.Math,xt=te.Object,sl=te.RegExp,bx=te.String,Kn=te.TypeError,Da=Q.prototype,wx=mt.prototype,ms=xt.prototype,Ra=te["__core-js_shared__"],La=wx.toString,Et=ms.hasOwnProperty,vx=0,m0=function(){var r=/[^.]+$/.exec(Ra&&Ra.keys&&Ra.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Pa=ms.toString,Ex=La.call(xt),xx=un._,Sx=sl("^"+La.call(Et).replace(Ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ja=e0?te.Buffer:n,ti=te.Symbol,Na=te.Uint8Array,b0=ja?ja.allocUnsafe:n,$a=g0(xt.getPrototypeOf,xt),w0=xt.create,v0=ms.propertyIsEnumerable,Ma=Da.splice,E0=ti?ti.isConcatSpreadable:n,lo=ti?ti.iterator:n,Ci=ti?ti.toStringTag:n,Ua=function(){try{var r=Oi(xt,"defineProperty");return r({},"",{}),r}catch{}}(),Ax=te.clearTimeout!==un.clearTimeout&&te.clearTimeout,Cx=xe&&xe.now!==un.Date.now&&xe.now,_x=te.setTimeout!==un.setTimeout&&te.setTimeout,Va=Zt.ceil,qa=Zt.floor,ol=xt.getOwnPropertySymbols,kx=ja?ja.isBuffer:n,x0=te.isFinite,Tx=Da.join,Ix=g0(xt.keys,xt),en=Zt.max,hn=Zt.min,Ox=xe.now,Fx=te.parseInt,S0=Zt.random,Bx=Da.reverse,al=Oi(te,"DataView"),fo=Oi(te,"Map"),ul=Oi(te,"Promise"),bs=Oi(te,"Set"),ho=Oi(te,"WeakMap"),po=Oi(xt,"create"),Wa=ho&&new ho,ws={},Dx=Fi(al),Rx=Fi(fo),Lx=Fi(ul),Px=Fi(bs),jx=Fi(ho),Ka=ti?ti.prototype:n,go=Ka?Ka.valueOf:n,A0=Ka?Ka.toString:n;function D(r){if($t(r)&&!qe(r)&&!(r instanceof ot)){if(r instanceof Hn)return r;if(Et.call(r,"__wrapped__"))return Cg(r)}return new Hn(r)}var vs=function(){function r(){}return function(s){if(!Nt(s))return{};if(w0)return w0(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Ha(){}function Hn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}D.templateSettings={escape:us,evaluate:cs,interpolate:Jr,variable:"",imports:{_:D}},D.prototype=Ha.prototype,D.prototype.constructor=D,Hn.prototype=vs(Ha.prototype),Hn.prototype.constructor=Hn;function ot(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ye,this.__views__=[]}function Nx(){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 $x(){if(this.__filtered__){var r=new ot(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Mx(){var r=this.__wrapped__.value(),s=this.__dir__,c=qe(r),m=s<0,k=c?r.length:0,R=QS(0,k,this.__views__),$=R.start,U=R.end,z=U-$,ie=m?U:$-1,se=this.__iteratees__,ae=se.length,ge=0,Ce=hn(z,this.__takeCount__);if(!c||!m&&k==z&&Ce==z)return G0(r,this.__actions__);var Le=[];e:for(;z--&&ge<Ce;){ie+=s;for(var Qe=-1,Pe=r[ie];++Qe<ae;){var it=se[Qe],at=it.iteratee,Rn=it.type,wn=at(Pe);if(Rn==de)Pe=wn;else if(!wn){if(Rn==Ae)continue e;break e}}Le[ge++]=Pe}return Le}ot.prototype=vs(Ha.prototype),ot.prototype.constructor=ot;function _i(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 Ux(){this.__data__=po?po(null):{},this.size=0}function Vx(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function qx(r){var s=this.__data__;if(po){var c=s[r];return c===f?n:c}return Et.call(s,r)?s[r]:n}function Wx(r){var s=this.__data__;return po?s[r]!==n:Et.call(s,r)}function Kx(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=po&&s===n?f:s,this}_i.prototype.clear=Ux,_i.prototype.delete=Vx,_i.prototype.get=qx,_i.prototype.has=Wx,_i.prototype.set=Kx;function Or(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 Hx(){this.__data__=[],this.size=0}function zx(r){var s=this.__data__,c=za(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Ma.call(s,c,1),--this.size,!0}function Gx(r){var s=this.__data__,c=za(s,r);return c<0?n:s[c][1]}function Jx(r){return za(this.__data__,r)>-1}function Yx(r,s){var c=this.__data__,m=za(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Or.prototype.clear=Hx,Or.prototype.delete=zx,Or.prototype.get=Gx,Or.prototype.has=Jx,Or.prototype.set=Yx;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 Xx(){this.size=0,this.__data__={hash:new _i,map:new(fo||Or),string:new _i}}function Qx(r){var s=su(this,r).delete(r);return this.size-=s?1:0,s}function Zx(r){return su(this,r).get(r)}function eS(r){return su(this,r).has(r)}function tS(r,s){var c=su(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Fr.prototype.clear=Xx,Fr.prototype.delete=Qx,Fr.prototype.get=Zx,Fr.prototype.has=eS,Fr.prototype.set=tS;function ki(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Fr;++s<c;)this.add(r[s])}function nS(r){return this.__data__.set(r,f),this}function rS(r){return this.__data__.has(r)}ki.prototype.add=ki.prototype.push=nS,ki.prototype.has=rS;function or(r){var s=this.__data__=new Or(r);this.size=s.size}function iS(){this.__data__=new Or,this.size=0}function sS(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function oS(r){return this.__data__.get(r)}function aS(r){return this.__data__.has(r)}function uS(r,s){var c=this.__data__;if(c instanceof Or){var m=c.__data__;if(!fo||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new Fr(m)}return c.set(r,s),this.size=c.size,this}or.prototype.clear=iS,or.prototype.delete=sS,or.prototype.get=oS,or.prototype.has=aS,or.prototype.set=uS;function C0(r,s){var c=qe(r),m=!c&&Bi(r),k=!c&&!m&&oi(r),R=!c&&!m&&!k&&As(r),$=c||m||k||R,U=$?nl(r.length,bx):[],z=U.length;for(var ie in r)(s||Et.call(r,ie))&&!($&&(ie=="length"||k&&(ie=="offset"||ie=="parent")||R&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Lr(ie,z)))&&U.push(ie);return U}function _0(r){var s=r.length;return s?r[wl(0,s-1)]:n}function cS(r,s){return ou(Sn(r),Ti(s,0,r.length))}function lS(r){return ou(Sn(r))}function cl(r,s,c){(c!==n&&!ar(r[s],c)||c===n&&!(s in r))&&Br(r,s,c)}function yo(r,s,c){var m=r[s];(!(Et.call(r,s)&&ar(m,c))||c===n&&!(s in r))&&Br(r,s,c)}function za(r,s){for(var c=r.length;c--;)if(ar(r[c][0],s))return c;return-1}function fS(r,s,c,m){return ni(r,function(k,R,$){s(m,k,c(k),$)}),m}function k0(r,s){return r&&br(s,rn(s),r)}function hS(r,s){return r&&br(s,Cn(s),r)}function Br(r,s,c){s=="__proto__"&&Ua?Ua(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function ll(r,s){for(var c=-1,m=s.length,k=Q(m),R=r==null;++c<m;)k[c]=R?n:Wl(r,s[c]);return k}function Ti(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,k,R){var $,U=s&g,z=s&v,ie=s&C;if(c&&($=k?c(r,m,k,R):c(r)),$!==n)return $;if(!Nt(r))return r;var se=qe(r);if(se){if($=eA(r),!U)return Sn(r,$)}else{var ae=dn(r),ge=ae==Ct||ae==nn;if(oi(r))return X0(r,U);if(ae==bt||ae==oe||ge&&!k){if($=z||ge?{}:yg(r),!U)return z?qS(r,hS($,r)):VS(r,k0($,r))}else{if(!_t[ae])return k?r:{};$=tA(r,ae,U)}}R||(R=new or);var Ce=R.get(r);if(Ce)return Ce;R.set(r,$),Kg(r)?r.forEach(function(Pe){$.add(zn(Pe,s,c,Pe,r,R))}):qg(r)&&r.forEach(function(Pe,it){$.set(it,zn(Pe,s,c,it,r,R))});var Le=ie?z?Ol:Il:z?Cn:rn,Qe=se?n:Le(r);return Wn(Qe||r,function(Pe,it){Qe&&(it=Pe,Pe=r[it]),yo($,it,zn(Pe,s,c,it,r,R))}),$}function dS(r){var s=rn(r);return function(c){return T0(c,r,s)}}function T0(r,s,c){var m=c.length;if(r==null)return!m;for(r=xt(r);m--;){var k=c[m],R=s[k],$=r[k];if($===n&&!(k in r)||!R($))return!1}return!0}function I0(r,s,c){if(typeof r!="function")throw new Kn(u);return So(function(){r.apply(n,c)},s)}function mo(r,s,c,m){var k=-1,R=Oa,$=!0,U=r.length,z=[],ie=s.length;if(!U)return z;c&&(s=Rt(s,Fn(c))),m?(R=Yc,$=!1):s.length>=o&&(R=co,$=!1,s=new ki(s));e:for(;++k<U;){var se=r[k],ae=c==null?se:c(se);if(se=m||se!==0?se:0,$&&ae===ae){for(var ge=ie;ge--;)if(s[ge]===ae)continue e;z.push(se)}else R(s,ae,m)||z.push(se)}return z}var ni=ng(mr),O0=ng(hl,!0);function pS(r,s){var c=!0;return ni(r,function(m,k,R){return c=!!s(m,k,R),c}),c}function Ga(r,s,c){for(var m=-1,k=r.length;++m<k;){var R=r[m],$=s(R);if($!=null&&(U===n?$===$&&!Dn($):c($,U)))var U=$,z=R}return z}function gS(r,s,c,m){var k=r.length;for(c=He(c),c<0&&(c=-c>k?0:k+c),m=m===n||m>k?k:He(m),m<0&&(m+=k),m=c>m?0:zg(m);c<m;)r[c++]=s;return r}function F0(r,s){var c=[];return ni(r,function(m,k,R){s(m,k,R)&&c.push(m)}),c}function cn(r,s,c,m,k){var R=-1,$=r.length;for(c||(c=rA),k||(k=[]);++R<$;){var U=r[R];s>0&&c(U)?s>1?cn(U,s-1,c,m,k):Zr(k,U):m||(k[k.length]=U)}return k}var fl=rg(),B0=rg(!0);function mr(r,s){return r&&fl(r,s,rn)}function hl(r,s){return r&&B0(r,s,rn)}function Ja(r,s){return Qr(s,function(c){return Pr(r[c])})}function Ii(r,s){s=ii(s,r);for(var c=0,m=s.length;r!=null&&c<m;)r=r[wr(s[c++])];return c&&c==m?r:n}function D0(r,s,c){var m=s(r);return qe(r)?m:Zr(m,c(r))}function mn(r){return r==null?r===n?an:jt:Ci&&Ci in xt(r)?XS(r):lA(r)}function dl(r,s){return r>s}function yS(r,s){return r!=null&&Et.call(r,s)}function mS(r,s){return r!=null&&s in xt(r)}function bS(r,s,c){return r>=hn(s,c)&&r<en(s,c)}function pl(r,s,c){for(var m=c?Yc:Oa,k=r[0].length,R=r.length,$=R,U=Q(R),z=1/0,ie=[];$--;){var se=r[$];$&&s&&(se=Rt(se,Fn(s))),z=hn(se.length,z),U[$]=!c&&(s||k>=120&&se.length>=120)?new ki($&&se):n}se=r[0];var ae=-1,ge=U[0];e:for(;++ae<k&&ie.length<z;){var Ce=se[ae],Le=s?s(Ce):Ce;if(Ce=c||Ce!==0?Ce:0,!(ge?co(ge,Le):m(ie,Le,c))){for($=R;--$;){var Qe=U[$];if(!(Qe?co(Qe,Le):m(r[$],Le,c)))continue e}ge&&ge.push(Le),ie.push(Ce)}}return ie}function wS(r,s,c,m){return mr(r,function(k,R,$){s(m,c(k),R,$)}),m}function bo(r,s,c){s=ii(s,r),r=vg(r,s);var m=r==null?r:r[wr(Jn(s))];return m==null?n:On(m,r,c)}function R0(r){return $t(r)&&mn(r)==oe}function vS(r){return $t(r)&&mn(r)==_e}function ES(r){return $t(r)&&mn(r)==Fe}function wo(r,s,c,m,k){return r===s?!0:r==null||s==null||!$t(r)&&!$t(s)?r!==r&&s!==s:xS(r,s,c,m,wo,k)}function xS(r,s,c,m,k,R){var $=qe(r),U=qe(s),z=$?De:dn(r),ie=U?De:dn(s);z=z==oe?bt:z,ie=ie==oe?bt:ie;var se=z==bt,ae=ie==bt,ge=z==ie;if(ge&&oi(r)){if(!oi(s))return!1;$=!0,se=!1}if(ge&&!se)return R||(R=new or),$||As(r)?dg(r,s,c,m,k,R):JS(r,s,z,c,m,k,R);if(!(c&S)){var Ce=se&&Et.call(r,"__wrapped__"),Le=ae&&Et.call(s,"__wrapped__");if(Ce||Le){var Qe=Ce?r.value():r,Pe=Le?s.value():s;return R||(R=new or),k(Qe,Pe,c,m,R)}}return ge?(R||(R=new or),YS(r,s,c,m,k,R)):!1}function SS(r){return $t(r)&&dn(r)==Lt}function gl(r,s,c,m){var k=c.length,R=k,$=!m;if(r==null)return!R;for(r=xt(r);k--;){var U=c[k];if($&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++k<R;){U=c[k];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 or;if(m)var ge=m(ie,se,z,r,s,ae);if(!(ge===n?wo(se,ie,S|x,m,ae):ge))return!1}}return!0}function L0(r){if(!Nt(r)||sA(r))return!1;var s=Pr(r)?Sx:Xt;return s.test(Fi(r))}function AS(r){return $t(r)&&mn(r)==gt}function CS(r){return $t(r)&&dn(r)==vt}function _S(r){return $t(r)&&hu(r.length)&&!!Ft[mn(r)]}function P0(r){return typeof r=="function"?r:r==null?_n:typeof r=="object"?qe(r)?$0(r[0],r[1]):N0(r):i1(r)}function yl(r){if(!xo(r))return Ix(r);var s=[];for(var c in xt(r))Et.call(r,c)&&c!="constructor"&&s.push(c);return s}function kS(r){if(!Nt(r))return cA(r);var s=xo(r),c=[];for(var m in r)m=="constructor"&&(s||!Et.call(r,m))||c.push(m);return c}function ml(r,s){return r<s}function j0(r,s){var c=-1,m=An(r)?Q(r.length):[];return ni(r,function(k,R,$){m[++c]=s(k,R,$)}),m}function N0(r){var s=Bl(r);return s.length==1&&s[0][2]?bg(s[0][0],s[0][1]):function(c){return c===r||gl(c,r,s)}}function $0(r,s){return Rl(r)&&mg(s)?bg(wr(r),s):function(c){var m=Wl(c,r);return m===n&&m===s?Kl(c,r):wo(s,m,S|x)}}function Ya(r,s,c,m,k){r!==s&&fl(s,function(R,$){if(k||(k=new or),Nt(R))TS(r,s,$,c,Ya,m,k);else{var U=m?m(Pl(r,$),R,$+"",r,s,k):n;U===n&&(U=R),cl(r,$,U)}},Cn)}function TS(r,s,c,m,k,R,$){var U=Pl(r,c),z=Pl(s,c),ie=$.get(z);if(ie){cl(r,c,ie);return}var se=R?R(U,z,c+"",r,s,$):n,ae=se===n;if(ae){var ge=qe(z),Ce=!ge&&oi(z),Le=!ge&&!Ce&&As(z);se=z,ge||Ce||Le?qe(U)?se=U:zt(U)?se=Sn(U):Ce?(ae=!1,se=X0(z,!0)):Le?(ae=!1,se=Q0(z,!0)):se=[]:Ao(z)||Bi(z)?(se=U,Bi(U)?se=Gg(U):(!Nt(U)||Pr(U))&&(se=yg(z))):ae=!1}ae&&($.set(z,se),k(se,z,m,R,$),$.delete(z)),cl(r,c,se)}function M0(r,s){var c=r.length;if(c)return s+=s<0?c:0,Lr(s,c)?r[s]:n}function U0(r,s,c){s.length?s=Rt(s,function(R){return qe(R)?function($){return Ii($,R.length===1?R[0]:R)}:R}):s=[_n];var m=-1;s=Rt(s,Fn(Be()));var k=j0(r,function(R,$,U){var z=Rt(s,function(ie){return ie(R)});return{criteria:z,index:++m,value:R}});return tx(k,function(R,$){return US(R,$,c)})}function IS(r,s){return V0(r,s,function(c,m){return Kl(r,m)})}function V0(r,s,c){for(var m=-1,k=s.length,R={};++m<k;){var $=s[m],U=Ii(r,$);c(U,$)&&vo(R,ii($,r),U)}return R}function OS(r){return function(s){return Ii(s,r)}}function bl(r,s,c,m){var k=m?ex:ds,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=k(U,se,z,m))>-1;)U!==r&&Ma.call(U,z,1),Ma.call(r,z,1);return r}function q0(r,s){for(var c=r?s.length:0,m=c-1;c--;){var k=s[c];if(c==m||k!==R){var R=k;Lr(k)?Ma.call(r,k,1):xl(r,k)}}return r}function wl(r,s){return r+qa(S0()*(s-r+1))}function FS(r,s,c,m){for(var k=-1,R=en(Va((s-r)/(c||1)),0),$=Q(R);R--;)$[m?R:++k]=r,r+=c;return $}function vl(r,s){var c="";if(!r||s<1||s>Oe)return c;do s%2&&(c+=r),s=qa(s/2),s&&(r+=r);while(s);return c}function tt(r,s){return jl(wg(r,s,_n),r+"")}function BS(r){return _0(Cs(r))}function DS(r,s){var c=Cs(r);return ou(c,Ti(s,0,c.length))}function vo(r,s,c,m){if(!Nt(r))return r;s=ii(s,r);for(var k=-1,R=s.length,$=R-1,U=r;U!=null&&++k<R;){var z=wr(s[k]),ie=c;if(z==="__proto__"||z==="constructor"||z==="prototype")return r;if(k!=$){var se=U[z];ie=m?m(se,z,U):n,ie===n&&(ie=Nt(se)?se:Lr(s[k+1])?[]:{})}yo(U,z,ie),U=U[z]}return r}var W0=Wa?function(r,s){return Wa.set(r,s),r}:_n,RS=Ua?function(r,s){return Ua(r,"toString",{configurable:!0,enumerable:!1,value:zl(s),writable:!0})}:_n;function LS(r){return ou(Cs(r))}function Gn(r,s,c){var m=-1,k=r.length;s<0&&(s=-s>k?0:k+s),c=c>k?k:c,c<0&&(c+=k),k=s>c?0:c-s>>>0,s>>>=0;for(var R=Q(k);++m<k;)R[m]=r[m+s];return R}function PS(r,s){var c;return ni(r,function(m,k,R){return c=s(m,k,R),!c}),!!c}function Xa(r,s,c){var m=0,k=r==null?m:r.length;if(typeof s=="number"&&s===s&&k<=J){for(;m<k;){var R=m+k>>>1,$=r[R];$!==null&&!Dn($)&&(c?$<=s:$<s)?m=R+1:k=R}return k}return El(r,s,_n,c)}function El(r,s,c,m){var k=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;k<R;){var se=qa((k+R)/2),ae=c(r[se]),ge=ae!==n,Ce=ae===null,Le=ae===ae,Qe=Dn(ae);if($)var Pe=m||Le;else ie?Pe=Le&&(m||ge):U?Pe=Le&&ge&&(m||!Ce):z?Pe=Le&&ge&&!Ce&&(m||!Qe):Ce||Qe?Pe=!1:Pe=m?ae<=s:ae<s;Pe?k=se+1:R=se}return hn(R,We)}function K0(r,s){for(var c=-1,m=r.length,k=0,R=[];++c<m;){var $=r[c],U=s?s($):$;if(!c||!ar(U,z)){var z=U;R[k++]=$===0?0:$}}return R}function H0(r){return typeof r=="number"?r:Dn(r)?Ee:+r}function Bn(r){if(typeof r=="string")return r;if(qe(r))return Rt(r,Bn)+"";if(Dn(r))return A0?A0.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ri(r,s,c){var m=-1,k=Oa,R=r.length,$=!0,U=[],z=U;if(c)$=!1,k=Yc;else if(R>=o){var ie=s?null:zS(r);if(ie)return Ba(ie);$=!1,k=co,z=new ki}else z=s?[]:U;e:for(;++m<R;){var se=r[m],ae=s?s(se):se;if(se=c||se!==0?se:0,$&&ae===ae){for(var ge=z.length;ge--;)if(z[ge]===ae)continue e;s&&z.push(ae),U.push(se)}else k(z,ae,c)||(z!==U&&z.push(ae),U.push(se))}return U}function xl(r,s){return s=ii(s,r),r=vg(r,s),r==null||delete r[wr(Jn(s))]}function z0(r,s,c,m){return vo(r,s,c(Ii(r,s)),m)}function Qa(r,s,c,m){for(var k=r.length,R=m?k:-1;(m?R--:++R<k)&&s(r[R],R,r););return c?Gn(r,m?0:R,m?R+1:k):Gn(r,m?R+1:0,m?k:R)}function G0(r,s){var c=r;return c instanceof ot&&(c=c.value()),Xc(s,function(m,k){return k.func.apply(k.thisArg,Zr([m],k.args))},c)}function Sl(r,s,c){var m=r.length;if(m<2)return m?ri(r[0]):[];for(var k=-1,R=Q(m);++k<m;)for(var $=r[k],U=-1;++U<m;)U!=k&&(R[k]=mo(R[k]||$,r[U],s,c));return ri(cn(R,1),s,c)}function J0(r,s,c){for(var m=-1,k=r.length,R=s.length,$={};++m<k;){var U=m<R?s[m]:n;c($,r[m],U)}return $}function Al(r){return zt(r)?r:[]}function Cl(r){return typeof r=="function"?r:_n}function ii(r,s){return qe(r)?r:Rl(r,s)?[r]:Ag(wt(r))}var jS=tt;function si(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var Y0=Ax||function(r){return un.clearTimeout(r)};function X0(r,s){if(s)return r.slice();var c=r.length,m=b0?b0(c):new r.constructor(c);return r.copy(m),m}function _l(r){var s=new r.constructor(r.byteLength);return new Na(s).set(new Na(r)),s}function NS(r,s){var c=s?_l(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function $S(r){var s=new r.constructor(r.source,lt.exec(r));return s.lastIndex=r.lastIndex,s}function MS(r){return go?xt(go.call(r)):{}}function Q0(r,s){var c=s?_l(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function Z0(r,s){if(r!==s){var c=r!==n,m=r===null,k=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||!k)return 1;if(!m&&!R&&!ie&&r<s||ie&&c&&k&&!m&&!R||U&&c&&k||!$&&k||!z)return-1}return 0}function US(r,s,c){for(var m=-1,k=r.criteria,R=s.criteria,$=k.length,U=c.length;++m<$;){var z=Z0(k[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 eg(r,s,c,m){for(var k=-1,R=r.length,$=c.length,U=-1,z=s.length,ie=en(R-$,0),se=Q(z+ie),ae=!m;++U<z;)se[U]=s[U];for(;++k<$;)(ae||k<R)&&(se[c[k]]=r[k]);for(;ie--;)se[U++]=r[k++];return se}function tg(r,s,c,m){for(var k=-1,R=r.length,$=-1,U=c.length,z=-1,ie=s.length,se=en(R-U,0),ae=Q(se+ie),ge=!m;++k<se;)ae[k]=r[k];for(var Ce=k;++z<ie;)ae[Ce+z]=s[z];for(;++$<U;)(ge||k<R)&&(ae[Ce+c[$]]=r[k++]);return ae}function Sn(r,s){var c=-1,m=r.length;for(s||(s=Q(m));++c<m;)s[c]=r[c];return s}function br(r,s,c,m){var k=!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]),k?Br(c,U,z):yo(c,U,z)}return c}function VS(r,s){return br(r,Dl(r),s)}function qS(r,s){return br(r,pg(r),s)}function Za(r,s){return function(c,m){var k=qe(c)?GE:fS,R=s?s():{};return k(c,r,Be(m,2),R)}}function Es(r){return tt(function(s,c){var m=-1,k=c.length,R=k>1?c[k-1]:n,$=k>2?c[2]:n;for(R=r.length>3&&typeof R=="function"?(k--,R):n,$&&bn(c[0],c[1],$)&&(R=k<3?n:R,k=1),s=xt(s);++m<k;){var U=c[m];U&&r(s,U,m,R)}return s})}function ng(r,s){return function(c,m){if(c==null)return c;if(!An(c))return r(c,m);for(var k=c.length,R=s?k:-1,$=xt(c);(s?R--:++R<k)&&m($[R],R,$)!==!1;);return c}}function rg(r){return function(s,c,m){for(var k=-1,R=xt(s),$=m(s),U=$.length;U--;){var z=$[r?U:++k];if(c(R[z],z,R)===!1)break}return s}}function WS(r,s,c){var m=s&w,k=Eo(r);function R(){var $=this&&this!==un&&this instanceof R?k:r;return $.apply(m?c:this,arguments)}return R}function ig(r){return function(s){s=wt(s);var c=ps(s)?sr(s):n,m=c?c[0]:s.charAt(0),k=c?si(c,1).join(""):s.slice(1);return m[r]()+k}}function xs(r){return function(s){return Xc(n1(t1(s).replace(RE,"")),r,"")}}function Eo(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=vs(r.prototype),m=r.apply(c,s);return Nt(m)?m:c}}function KS(r,s,c){var m=Eo(r);function k(){for(var R=arguments.length,$=Q(R),U=R,z=Ss(k);U--;)$[U]=arguments[U];var ie=R<3&&$[0]!==z&&$[R-1]!==z?[]:ei($,z);if(R-=ie.length,R<c)return cg(r,s,eu,k.placeholder,n,$,ie,n,n,c-R);var se=this&&this!==un&&this instanceof k?m:r;return On(se,this,$)}return k}function sg(r){return function(s,c,m){var k=xt(s);if(!An(s)){var R=Be(c,3);s=rn(s),c=function(U){return R(k[U],U,k)}}var $=r(s,c,m);return $>-1?k[R?s[$]:$]:n}}function og(r){return Rr(function(s){var c=s.length,m=c,k=Hn.prototype.thru;for(r&&s.reverse();m--;){var R=s[m];if(typeof R!="function")throw new Kn(u);if(k&&!$&&iu(R)=="wrapper")var $=new Hn([],!0)}for(m=$?m:c;++m<c;){R=s[m];var U=iu(R),z=U=="wrapper"?Fl(R):n;z&&Ll(z[0])&&z[1]==(B|L|O|W)&&!z[4].length&&z[9]==1?$=$[iu(z[0])].apply($,z[3]):$=R.length==1&&Ll(R)?$[U]():$.thru(R)}return function(){var ie=arguments,se=ie[0];if($&&ie.length==1&&qe(se))return $.plant(se).value();for(var ae=0,ge=c?s[ae].apply(this,ie):se;++ae<c;)ge=s[ae].call(this,ge);return ge}})}function eu(r,s,c,m,k,R,$,U,z,ie){var se=s&B,ae=s&w,ge=s&T,Ce=s&(L|_),Le=s&X,Qe=ge?n:Eo(r);function Pe(){for(var it=arguments.length,at=Q(it),Rn=it;Rn--;)at[Rn]=arguments[Rn];if(Ce)var wn=Ss(Pe),Ln=rx(at,wn);if(m&&(at=eg(at,m,k,Ce)),R&&(at=tg(at,R,$,Ce)),it-=Ln,Ce&&it<ie){var Gt=ei(at,wn);return cg(r,s,eu,Pe.placeholder,c,at,Gt,U,z,ie-it)}var ur=ae?c:this,Nr=ge?ur[r]:r;return it=at.length,U?at=fA(at,U):Le&&it>1&&at.reverse(),se&&z<it&&(at.length=z),this&&this!==un&&this instanceof Pe&&(Nr=Qe||Eo(Nr)),Nr.apply(ur,at)}return Pe}function ag(r,s){return function(c,m){return wS(c,r,s(m),{})}}function tu(r,s){return function(c,m){var k;if(c===n&&m===n)return s;if(c!==n&&(k=c),m!==n){if(k===n)return m;typeof c=="string"||typeof m=="string"?(c=Bn(c),m=Bn(m)):(c=H0(c),m=H0(m)),k=r(c,m)}return k}}function kl(r){return Rr(function(s){return s=Rt(s,Fn(Be())),tt(function(c){var m=this;return r(s,function(k){return On(k,m,c)})})})}function nu(r,s){s=s===n?" ":Bn(s);var c=s.length;if(c<2)return c?vl(s,r):s;var m=vl(s,Va(r/gs(s)));return ps(s)?si(sr(m),0,r).join(""):m.slice(0,r)}function HS(r,s,c,m){var k=s&w,R=Eo(r);function $(){for(var U=-1,z=arguments.length,ie=-1,se=m.length,ae=Q(se+z),ge=this&&this!==un&&this instanceof $?R:r;++ie<se;)ae[ie]=m[ie];for(;z--;)ae[ie++]=arguments[++U];return On(ge,k?c:this,ae)}return $}function ug(r){return function(s,c,m){return m&&typeof m!="number"&&bn(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),FS(s,c,m,r)}}function ru(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Yn(s),c=Yn(c)),r(s,c)}}function cg(r,s,c,m,k,R,$,U,z,ie){var se=s&L,ae=se?$:n,ge=se?n:$,Ce=se?R:n,Le=se?n:R;s|=se?O:F,s&=~(se?F:O),s&j||(s&=-4);var Qe=[r,s,k,Ce,ae,Le,ge,U,z,ie],Pe=c.apply(n,Qe);return Ll(r)&&Eg(Pe,Qe),Pe.placeholder=m,xg(Pe,r,s)}function Tl(r){var s=Zt[r];return function(c,m){if(c=Yn(c),m=m==null?0:hn(He(m),292),m&&x0(c)){var k=(wt(c)+"e").split("e"),R=s(k[0]+"e"+(+k[1]+m));return k=(wt(R)+"e").split("e"),+(k[0]+"e"+(+k[1]-m))}return s(c)}}var zS=bs&&1/Ba(new bs([,-0]))[1]==ke?function(r){return new bs(r)}:Yl;function lg(r){return function(s){var c=dn(s);return c==Lt?il(s):c==vt?lx(s):nx(s,r(s))}}function Dr(r,s,c,m,k,R,$,U){var z=s&T;if(!z&&typeof r!="function")throw new Kn(u);var ie=m?m.length:0;if(ie||(s&=-97,m=k=n),$=$===n?$:en(He($),0),U=U===n?U:He(U),ie-=k?k.length:0,s&F){var se=m,ae=k;m=k=n}var ge=z?n:Fl(r),Ce=[r,s,c,m,k,se,ae,R,$,U];if(ge&&uA(Ce,ge),r=Ce[0],s=Ce[1],c=Ce[2],m=Ce[3],k=Ce[4],U=Ce[9]=Ce[9]===n?z?0:r.length:en(Ce[9]-ie,0),!U&&s&(L|_)&&(s&=-25),!s||s==w)var Le=WS(r,s,c);else s==L||s==_?Le=KS(r,s,U):(s==O||s==(w|O))&&!k.length?Le=HS(r,s,c,m):Le=eu.apply(n,Ce);var Qe=ge?W0:Eg;return xg(Qe(Le,Ce),r,s)}function fg(r,s,c,m){return r===n||ar(r,ms[c])&&!Et.call(m,c)?s:r}function hg(r,s,c,m,k,R){return Nt(r)&&Nt(s)&&(R.set(s,r),Ya(r,s,n,hg,R),R.delete(s)),r}function GS(r){return Ao(r)?n:r}function dg(r,s,c,m,k,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 ae=-1,ge=!0,Ce=c&x?new ki:n;for(R.set(r,s),R.set(s,r);++ae<U;){var Le=r[ae],Qe=s[ae];if(m)var Pe=$?m(Qe,Le,ae,s,r,R):m(Le,Qe,ae,r,s,R);if(Pe!==n){if(Pe)continue;ge=!1;break}if(Ce){if(!Qc(s,function(it,at){if(!co(Ce,at)&&(Le===it||k(Le,it,c,m,R)))return Ce.push(at)})){ge=!1;break}}else if(!(Le===Qe||k(Le,Qe,c,m,R))){ge=!1;break}}return R.delete(r),R.delete(s),ge}function JS(r,s,c,m,k,R,$){switch(c){case Ne:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case _e:return!(r.byteLength!=s.byteLength||!R(new Na(r),new Na(s)));case ve:case Fe:case Pt:return ar(+r,+s);case Re:return r.name==s.name&&r.message==s.message;case gt:case we:return r==s+"";case Lt:var U=il;case vt:var z=m&S;if(U||(U=Ba),r.size!=s.size&&!z)return!1;var ie=$.get(r);if(ie)return ie==s;m|=x,$.set(r,s);var se=dg(U(r),U(s),m,k,R,$);return $.delete(r),se;case It:if(go)return go.call(r)==go.call(s)}return!1}function YS(r,s,c,m,k,R){var $=c&S,U=Il(r),z=U.length,ie=Il(s),se=ie.length;if(z!=se&&!$)return!1;for(var ae=z;ae--;){var ge=U[ae];if(!($?ge in s:Et.call(s,ge)))return!1}var Ce=R.get(r),Le=R.get(s);if(Ce&&Le)return Ce==s&&Le==r;var Qe=!0;R.set(r,s),R.set(s,r);for(var Pe=$;++ae<z;){ge=U[ae];var it=r[ge],at=s[ge];if(m)var Rn=$?m(at,it,ge,s,r,R):m(it,at,ge,r,s,R);if(!(Rn===n?it===at||k(it,at,c,m,R):Rn)){Qe=!1;break}Pe||(Pe=ge=="constructor")}if(Qe&&!Pe){var wn=r.constructor,Ln=s.constructor;wn!=Ln&&"constructor"in r&&"constructor"in s&&!(typeof wn=="function"&&wn instanceof wn&&typeof Ln=="function"&&Ln instanceof Ln)&&(Qe=!1)}return R.delete(r),R.delete(s),Qe}function Rr(r){return jl(wg(r,n,Tg),r+"")}function Il(r){return D0(r,rn,Dl)}function Ol(r){return D0(r,Cn,pg)}var Fl=Wa?function(r){return Wa.get(r)}:Yl;function iu(r){for(var s=r.name+"",c=ws[s],m=Et.call(ws,s)?c.length:0;m--;){var k=c[m],R=k.func;if(R==null||R==r)return k.name}return s}function Ss(r){var s=Et.call(D,"placeholder")?D:r;return s.placeholder}function Be(){var r=D.iteratee||Gl;return r=r===Gl?P0:r,arguments.length?r(arguments[0],arguments[1]):r}function su(r,s){var c=r.__data__;return iA(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Bl(r){for(var s=rn(r),c=s.length;c--;){var m=s[c],k=r[m];s[c]=[m,k,mg(k)]}return s}function Oi(r,s){var c=ax(r,s);return L0(c)?c:n}function XS(r){var s=Et.call(r,Ci),c=r[Ci];try{r[Ci]=n;var m=!0}catch{}var k=Pa.call(r);return m&&(s?r[Ci]=c:delete r[Ci]),k}var Dl=ol?function(r){return r==null?[]:(r=xt(r),Qr(ol(r),function(s){return v0.call(r,s)}))}:Xl,pg=ol?function(r){for(var s=[];r;)Zr(s,Dl(r)),r=$a(r);return s}:Xl,dn=mn;(al&&dn(new al(new ArrayBuffer(1)))!=Ne||fo&&dn(new fo)!=Lt||ul&&dn(ul.resolve())!=Te||bs&&dn(new bs)!=vt||ho&&dn(new ho)!=Ye)&&(dn=function(r){var s=mn(r),c=s==bt?r.constructor:n,m=c?Fi(c):"";if(m)switch(m){case Dx:return Ne;case Rx:return Lt;case Lx:return Te;case Px:return vt;case jx:return Ye}return s});function QS(r,s,c){for(var m=-1,k=c.length;++m<k;){var R=c[m],$=R.size;switch(R.type){case"drop":r+=$;break;case"dropRight":s-=$;break;case"take":s=hn(s,r+$);break;case"takeRight":r=en(r,s-$);break}}return{start:r,end:s}}function ZS(r){var s=r.match(yn);return s?s[1].split(M):[]}function gg(r,s,c){s=ii(s,r);for(var m=-1,k=s.length,R=!1;++m<k;){var $=wr(s[m]);if(!(R=r!=null&&c(r,$)))break;r=r[$]}return R||++m!=k?R:(k=r==null?0:r.length,!!k&&hu(k)&&Lr($,k)&&(qe(r)||Bi(r)))}function eA(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&Et.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function yg(r){return typeof r.constructor=="function"&&!xo(r)?vs($a(r)):{}}function tA(r,s,c){var m=r.constructor;switch(s){case _e:return _l(r);case ve:case Fe:return new m(+r);case Ne:return NS(r,c);case Wt:case I:case y:case b:case P:case q:case G:case ee:case Me:return Q0(r,c);case Lt:return new m;case Pt:case we:return new m(r);case gt:return $S(r);case vt:return new m;case It:return MS(r)}}function nA(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(so,`{
144
144
  /* [wrapped with `+s+`] */
145
- `)}function ax(r){return We(r)||Bi(r)||!!(C0&&r&&r[C0])}function Rr(r,s){var c=typeof r;return s=s??Be,!!s&&(c=="number"||c!="symbol"&&Bt.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)&&Rr(s,c.length):m=="string"&&s in c)?ar(c[s],r):!1}function Nl(r,s){if(We(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Dn(r)?!0:ro.test(r)||!Si.test(r)||s!=null&&r in xt(s)}function ux(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function jl(r){var s=ou(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 cx(r){return!!A0&&A0 in r}var lx=La?Lr:tf;function Eo(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ms;return r===c}function Ag(r){return r===r&&!jt(r)}function Sg(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in xt(c))}}function fx(r){var s=hu(r,function(m){return c.size===d&&c.clear(),m}),c=s.cache;return s}function hx(r,s){var c=r[1],m=s[1],k=c|m,P=k<(b|T|B),$=m==B&&c==L||m==B&&c==W&&r[7].length<=s[8]||m==(B|W)&&s[7].length<=s[8]&&c==L;if(!(P||$))return r;m&b&&(r[2]=s[2],k|=c&b?0:N);var U=s[3];if(U){var z=r[3];r[3]=z?ig(z,U,s[4]):U,r[4]=z?ei(r[3],p):s[4]}return U=s[5],U&&(z=r[5],r[5]=z?sg(z,U,s[6]):U,r[6]=z?ei(r[5],p):s[6]),U=s[7],U&&(r[7]=U),m&B&&(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]=k,r}function dx(r){var s=[];if(r!=null)for(var c in xt(r))s.push(c);return s}function px(r){return ja.call(r)}function Eg(r,s,c){return s=en(s===n?r.length-1:s,0),function(){for(var m=arguments,k=-1,P=en(m.length-s,0),$=X(P);++k<P;)$[k]=m[s+k];k=-1;for(var U=X(s+1);++k<s;)U[k]=m[k];return U[s]=c($),On(r,this,U)}}function xg(r,s){return s.length<2?r:Ii(r,Gn(s,0,-1))}function gx(r,s){for(var c=r.length,m=ln(s.length,c),k=Sn(r);m--;){var P=s[m];r[m]=Rr(P,c)?k[P]:n}return r}function $l(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var Cg=kg(G0),xo=OS||function(r,s){return an.setTimeout(r,s)},Ml=kg(jE);function _g(r,s,c){var m=s+"";return Ml(r,ox(m,yx(rx(m),c)))}function kg(r){var s=0,c=0;return function(){var m=PS(),k=ve-(m-c);if(c=m,k>0){if(++s>=be)return arguments[0]}else s=0;return r.apply(n,arguments)}}function uu(r,s){var c=-1,m=r.length,k=m-1;for(s=s===n?m:s;++c<s;){var P=Sl(c,k),$=r[P];r[P]=r[c],r[c]=$}return r.length=s,r}var Tg=fx(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(io,function(c,m,k,P){s.push(k?P.replace(Ie,"$1"):m||c)}),s});function vr(r){if(typeof r=="string"||Dn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Fi(r){if(r!=null){try{return Na.call(r)}catch{}try{return r+""}catch{}}return""}function yx(r,s){return Wn(Q,function(c){var m="_."+c[0];s&c[1]&&!Ba(r,m)&&r.push(m)}),r.sort()}function Ig(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 mx(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 k=0,P=0,$=X(Wa(m/s));k<m;)$[P++]=Gn(r,k,k+=s);return $}function wx(r){for(var s=-1,c=r==null?0:r.length,m=0,k=[];++s<c;){var P=r[s];P&&(k[m++]=P)}return k}function bx(){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 Zr(We(c)?Sn(c):[c],un(s,1))}var vx=et(function(r,s){return zt(r)?wo(r,un(s,1,zt,!0)):[]}),Ax=et(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?wo(r,un(s,1,zt,!0),Le(c,2)):[]}),Sx=et(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?wo(r,un(s,1,zt,!0),n,c):[]});function Ex(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 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,0,s<0?0:s)):[]}function Cx(r,s){return r&&r.length?eu(r,Le(s,3),!0,!0):[]}function _x(r,s){return r&&r.length?eu(r,Le(s,3),!0):[]}function kx(r,s,c,m){var k=r==null?0:r.length;return k?(c&&typeof c!="number"&&yn(r,s,c)&&(c=0,m=k),bE(r,s,c,m)):[]}function Og(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=c==null?0:ze(c);return k<0&&(k=en(m+k,0)),Da(r,Le(s,3),k)}function Fg(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=m-1;return c!==n&&(k=ze(c),k=c<0?en(m+k,0):ln(k,m-1)),Da(r,Le(s,3),k,!0)}function Bg(r){var s=r==null?0:r.length;return s?un(r,1):[]}function Tx(r){var s=r==null?0:r.length;return s?un(r,Oe):[]}function Ix(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:ze(s),un(r,s)):[]}function Ox(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var k=r[s];m[k[0]]=k[1]}return m}function Dg(r){return r&&r.length?r[0]:n}function Fx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=c==null?0:ze(c);return k<0&&(k=en(m+k,0)),ds(r,s,k)}function Bx(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var Dx=et(function(r){var s=Dt(r,kl);return s.length&&s[0]===r[0]?ml(s):[]}),Px=et(function(r){var s=Jn(r),c=Dt(r,kl);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?ml(c,Le(s,2)):[]}),Rx=et(function(r){var s=Jn(r),c=Dt(r,kl);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?ml(c,n,s):[]});function Lx(r,s){return r==null?"":BS.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function Nx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=m;return c!==n&&(k=ze(c),k=k<0?en(m+k,0):ln(k,m-1)),s===s?yS(r,s,k):Da(r,d0,k,!0)}function jx(r,s){return r&&r.length?W0(r,ze(s)):n}var $x=et(Pg);function Pg(r,s){return r&&r.length&&s&&s.length?Al(r,s):r}function Mx(r,s,c){return r&&r.length&&s&&s.length?Al(r,s,Le(c,2)):r}function Ux(r,s,c){return r&&r.length&&s&&s.length?Al(r,s,n,c):r}var Vx=Pr(function(r,s){var c=r==null?0:r.length,m=dl(r,s);return z0(r,Dt(s,function(k){return Rr(k,c)?+k:k}).sort(rg)),m});function qx(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,k=[],P=r.length;for(s=Le(s,3);++m<P;){var $=r[m];s($,m,r)&&(c.push($),k.push(m))}return z0(r,k),c}function Ul(r){return r==null?r:LS.call(r)}function Wx(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 Kx(r,s){return Za(r,s)}function Hx(r,s,c){return xl(r,s,Le(c,2))}function zx(r,s){var c=r==null?0:r.length;if(c){var m=Za(r,s);if(m<c&&ar(r[m],s))return m}return-1}function Gx(r,s){return Za(r,s,!0)}function Jx(r,s,c){return xl(r,s,Le(c,2),!0)}function Yx(r,s){var c=r==null?0:r.length;if(c){var m=Za(r,s,!0)-1;if(ar(r[m],s))return m}return-1}function Xx(r){return r&&r.length?J0(r):[]}function Qx(r,s){return r&&r.length?J0(r,Le(s,2)):[]}function Zx(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function eC(r,s,c){return r&&r.length?(s=c||s===n?1:ze(s),Gn(r,0,s<0?0:s)):[]}function tC(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 nC(r,s){return r&&r.length?eu(r,Le(s,3),!1,!0):[]}function rC(r,s){return r&&r.length?eu(r,Le(s,3)):[]}var iC=et(function(r){return ri(un(r,1,zt,!0))}),sC=et(function(r){var s=Jn(r);return zt(s)&&(s=n),ri(un(r,1,zt,!0),Le(s,2))}),oC=et(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,ri(un(r,1,zt,!0),n,s)});function aC(r){return r&&r.length?ri(r):[]}function uC(r,s){return r&&r.length?ri(r,Le(s,2)):[]}function cC(r,s){return s=typeof s=="function"?s:n,r&&r.length?ri(r,n,s):[]}function Vl(r){if(!(r&&r.length))return[];var s=0;return r=Qr(r,function(c){if(zt(c))return s=en(c.length,s),!0}),sl(s,function(c){return Dt(r,nl(c))})}function Rg(r,s){if(!(r&&r.length))return[];var c=Vl(r);return s==null?c:Dt(c,function(m){return On(s,n,m)})}var lC=et(function(r,s){return zt(r)?wo(r,s):[]}),fC=et(function(r){return _l(Qr(r,zt))}),hC=et(function(r){var s=Jn(r);return zt(s)&&(s=n),_l(Qr(r,zt),Le(s,2))}),dC=et(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,_l(Qr(r,zt),n,s)}),pC=et(Vl);function gC(r,s){return Z0(r||[],s||[],mo)}function yC(r,s){return Z0(r||[],s||[],Ao)}var mC=et(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 wC(r,s){return s(r),r}function cu(r,s){return s(r)}var bC=Pr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,k=function(P){return dl(P,r)};return s>1||this.__actions__.length||!(m instanceof ot)||!Rr(c)?this.thru(k):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:cu,args:[k],thisArg:n}),new Hn(m,this.__chain__).thru(function(P){return s&&!P.length&&P.push(n),P}))});function vC(){return Lg(this)}function AC(){return new Hn(this.value(),this.__chain__)}function SC(){this.__values__===n&&(this.__values__=Yg(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function EC(){return this}function xC(r){for(var s,c=this;c instanceof Ga;){var m=Ig(c);m.__index__=0,m.__values__=n,s?k.__wrapped__=m:s=m;var k=m;c=c.__wrapped__}return k.__wrapped__=r,s}function CC(){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:cu,args:[Ul],thisArg:n}),new Hn(s,this.__chain__)}return this.thru(Ul)}function _C(){return Q0(this.__wrapped__,this.__actions__)}var kC=tu(function(r,s,c){At.call(r,c)?++r[c]:Br(r,c,1)});function TC(r,s,c){var m=We(r)?f0:wE;return c&&yn(r,s,c)&&(s=n),m(r,Le(s,3))}function IC(r,s){var c=We(r)?Qr:R0;return c(r,Le(s,3))}var OC=cg(Og),FC=cg(Fg);function BC(r,s){return un(lu(r,s),1)}function DC(r,s){return un(lu(r,s),Oe)}function PC(r,s,c){return c=c===n?1:ze(c),un(lu(r,s),c)}function Ng(r,s){var c=We(r)?Wn:ni;return c(r,Le(s,3))}function jg(r,s){var c=We(r)?ZA:P0;return c(r,Le(s,3))}var RC=tu(function(r,s,c){At.call(r,c)?r[c].push(s):Br(r,c,[s])});function LC(r,s,c,m){r=En(r)?r:Cs(r),c=c&&!m?ze(c):0;var k=r.length;return c<0&&(c=en(k+c,0)),gu(r)?c<=k&&r.indexOf(s,c)>-1:!!k&&ds(r,s,c)>-1}var NC=et(function(r,s,c){var m=-1,k=typeof s=="function",P=En(r)?X(r.length):[];return ni(r,function($){P[++m]=k?On(s,$,c):bo($,s,c)}),P}),jC=tu(function(r,s,c){Br(r,c,s)});function lu(r,s){var c=We(r)?Dt:U0;return c(r,Le(s,3))}function $C(r,s,c,m){return r==null?[]:(We(s)||(s=s==null?[]:[s]),c=m?n:c,We(c)||(c=c==null?[]:[c]),K0(r,s,c))}var MC=tu(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function UC(r,s,c){var m=We(r)?el:g0,k=arguments.length<3;return m(r,Le(s,4),c,k,ni)}function VC(r,s,c){var m=We(r)?eS:g0,k=arguments.length<3;return m(r,Le(s,4),c,k,P0)}function qC(r,s){var c=We(r)?Qr:R0;return c(r,du(Le(s,3)))}function WC(r){var s=We(r)?O0:LE;return s(r)}function KC(r,s,c){(c?yn(r,s,c):s===n)?s=1:s=ze(s);var m=We(r)?dE:NE;return m(r,s)}function HC(r){var s=We(r)?pE:$E;return s(r)}function zC(r){if(r==null)return 0;if(En(r))return gu(r)?gs(r):r.length;var s=fn(r);return s==Pt||s==Re?r.size:bl(r).length}function GC(r,s,c){var m=We(r)?tl:ME;return c&&yn(r,s,c)&&(s=n),m(r,Le(s,3))}var JC=et(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]]),K0(r,un(s,1),[])}),fu=IS||function(){return an.Date.now()};function YC(r,s){if(typeof s!="function")throw new Kn(u);return r=ze(r),function(){if(--r<1)return s.apply(this,arguments)}}function $g(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Dr(r,B,n,n,n,n,s)}function Mg(r,s){var c;if(typeof s!="function")throw new Kn(u);return r=ze(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var ql=et(function(r,s,c){var m=b;if(c.length){var k=ei(c,Es(ql));m|=O}return Dr(r,m,s,c,k)}),Ug=et(function(r,s,c){var m=b|T;if(c.length){var k=ei(c,Es(Ug));m|=O}return Dr(s,m,r,c,k)});function Vg(r,s,c){s=c?n:s;var m=Dr(r,L,n,n,n,n,n,s);return m.placeholder=Vg.placeholder,m}function qg(r,s,c){s=c?n:s;var m=Dr(r,_,n,n,n,n,n,s);return m.placeholder=qg.placeholder,m}function Wg(r,s,c){var m,k,P,$,U,z,ie=0,se=!1,ae=!1,me=!0;if(typeof r!="function")throw new Kn(u);s=Yn(s)||0,jt(c)&&(se=!!c.leading,ae="maxWait"in c,P=ae?en(Yn(c.maxWait)||0,s):P,me="trailing"in c?!!c.trailing:me);function Te(Gt){var ur=m,jr=k;return m=k=n,ie=Gt,$=r.apply(jr,ur),$}function je(Gt){return ie=Gt,U=xo(it,s),se?Te(Gt):$}function Qe(Gt){var ur=Gt-z,jr=Gt-ie,c1=s-ur;return ae?ln(c1,P-jr):c1}function $e(Gt){var ur=Gt-z,jr=Gt-ie;return z===n||ur>=s||ur<0||ae&&jr>=P}function it(){var Gt=fu();if($e(Gt))return at(Gt);U=xo(it,Qe(Gt))}function at(Gt){return U=n,me&&m?Te(Gt):(m=k=n,$)}function Pn(){U!==n&&eg(U),ie=0,m=z=k=U=n}function mn(){return U===n?$:at(fu())}function Rn(){var Gt=fu(),ur=$e(Gt);if(m=arguments,k=this,z=Gt,ur){if(U===n)return je(z);if(ae)return eg(U),U=xo(it,s),Te(z)}return U===n&&(U=xo(it,s)),$}return Rn.cancel=Pn,Rn.flush=mn,Rn}var XC=et(function(r,s){return D0(r,1,s)}),QC=et(function(r,s,c){return D0(r,Yn(s)||0,c)});function ZC(r){return Dr(r,Y)}function hu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Kn(u);var c=function(){var m=arguments,k=s?s.apply(this,m):m[0],P=c.cache;if(P.has(k))return P.get(k);var $=r.apply(this,m);return c.cache=P.set(k,$)||P,$};return c.cache=new(hu.Cache||Fr),c}hu.Cache=Fr;function du(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 e3(r){return Mg(2,r)}var t3=UE(function(r,s){s=s.length==1&&We(s[0])?Dt(s[0],Fn(Le())):Dt(un(s,1),Fn(Le()));var c=s.length;return et(function(m){for(var k=-1,P=ln(m.length,c);++k<P;)m[k]=s[k].call(this,m[k]);return On(r,this,m)})}),Wl=et(function(r,s){var c=ei(s,Es(Wl));return Dr(r,O,n,s,c)}),Kg=et(function(r,s){var c=ei(s,Es(Kg));return Dr(r,F,n,s,c)}),n3=Pr(function(r,s){return Dr(r,W,n,n,n,s)});function r3(r,s){if(typeof r!="function")throw new Kn(u);return s=s===n?s:ze(s),et(r,s)}function i3(r,s){if(typeof r!="function")throw new Kn(u);return s=s==null?0:en(ze(s),0),et(function(c){var m=c[s],k=si(c,0,s);return m&&Zr(k,m),On(r,this,k)})}function s3(r,s,c){var m=!0,k=!0;if(typeof r!="function")throw new Kn(u);return jt(c)&&(m="leading"in c?!!c.leading:m,k="trailing"in c?!!c.trailing:k),Wg(r,s,{leading:m,maxWait:s,trailing:k})}function o3(r){return $g(r,1)}function a3(r,s){return Wl(Tl(s),r)}function u3(){if(!arguments.length)return[];var r=arguments[0];return We(r)?r:[r]}function c3(r){return zn(r,C)}function l3(r,s){return s=typeof s=="function"?s:n,zn(r,C,s)}function f3(r){return zn(r,g|C)}function h3(r,s){return s=typeof s=="function"?s:n,zn(r,g|C,s)}function d3(r,s){return s==null||B0(r,s,rn(s))}function ar(r,s){return r===s||r!==r&&s!==s}var p3=su(yl),g3=su(function(r,s){return r>=s}),Bi=j0(function(){return arguments}())?j0:function(r){return $t(r)&&At.call(r,"callee")&&!x0.call(r,"callee")},We=X.isArray,y3=s0?Fn(s0):xE;function En(r){return r!=null&&pu(r.length)&&!Lr(r)}function zt(r){return $t(r)&&En(r)}function m3(r){return r===!0||r===!1||$t(r)&&gn(r)==ke}var oi=FS||tf,w3=o0?Fn(o0):CE;function b3(r){return $t(r)&&r.nodeType===1&&!Co(r)}function v3(r){if(r==null)return!0;if(En(r)&&(We(r)||typeof r=="string"||typeof r.splice=="function"||oi(r)||xs(r)||Bi(r)))return!r.length;var s=fn(r);if(s==Pt||s==Re)return!r.size;if(Eo(r))return!bl(r).length;for(var c in r)if(At.call(r,c))return!1;return!0}function A3(r,s){return vo(r,s)}function S3(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?vo(r,s,n,c):!!m}function Kl(r){if(!$t(r))return!1;var s=gn(r);return s==Ne||s==Fe||typeof r.message=="string"&&typeof r.name=="string"&&!Co(r)}function E3(r){return typeof r=="number"&&_0(r)}function Lr(r){if(!jt(r))return!1;var s=gn(r);return s==_t||s==nn||s==Ye||s==An}function Hg(r){return typeof r=="number"&&r==ze(r)}function pu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Be}function jt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function $t(r){return r!=null&&typeof r=="object"}var zg=a0?Fn(a0):kE;function x3(r,s){return r===s||wl(r,s,Rl(s))}function C3(r,s,c){return c=typeof c=="function"?c:n,wl(r,s,Rl(s),c)}function _3(r){return Gg(r)&&r!=+r}function k3(r){if(lx(r))throw new Ve(a);return $0(r)}function T3(r){return r===null}function I3(r){return r==null}function Gg(r){return typeof r=="number"||$t(r)&&gn(r)==Rt}function Co(r){if(!$t(r)||gn(r)!=wt)return!1;var s=Ua(r);if(s===null)return!0;var c=At.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&Na.call(c)==CS}var Hl=u0?Fn(u0):TE;function O3(r){return Hg(r)&&r>=-9007199254740991&&r<=Be}var Jg=c0?Fn(c0):IE;function gu(r){return typeof r=="string"||!We(r)&&$t(r)&&gn(r)==de}function Dn(r){return typeof r=="symbol"||$t(r)&&gn(r)==Et}var xs=l0?Fn(l0):OE;function F3(r){return r===n}function B3(r){return $t(r)&&fn(r)==vt}function D3(r){return $t(r)&&gn(r)==rt}var P3=su(vl),R3=su(function(r,s){return r<=s});function Yg(r){if(!r)return[];if(En(r))return gu(r)?sr(r):Sn(r);if(fo&&r[fo])return dS(r[fo]());var s=fn(r),c=s==Pt?al:s==Re?Pa:Cs;return c(r)}function Nr(r){if(!r)return r===0?r:0;if(r=Yn(r),r===Oe||r===-1/0){var s=r<0?-1:1;return s*Ze}return r===r?r:0}function ze(r){var s=Nr(r),c=s%1;return s===s?c?s-c:s:0}function Xg(r){return r?Ti(ze(r),0,we):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=y0(r);var c=Xe.test(r);return c||Ot.test(r)?YA(r.slice(2),c?2:8):nt.test(r)?Ae:+r}function Qg(r){return br(r,xn(r))}function L3(r){return r?Ti(ze(r),-9007199254740991,Be):r===0?r:0}function bt(r){return r==null?"":Bn(r)}var N3=As(function(r,s){if(Eo(s)||En(s)){br(s,rn(s),r);return}for(var c in s)At.call(s,c)&&mo(r,c,s[c])}),Zg=As(function(r,s){br(s,xn(s),r)}),yu=As(function(r,s,c,m){br(s,xn(s),r,m)}),j3=As(function(r,s,c,m){br(s,rn(s),r,m)}),$3=Pr(dl);function M3(r,s){var c=vs(r);return s==null?c:F0(c,s)}var U3=et(function(r,s){r=xt(r);var c=-1,m=s.length,k=m>2?s[2]:n;for(k&&yn(s[0],s[1],k)&&(m=1);++c<m;)for(var P=s[c],$=xn(P),U=-1,z=$.length;++U<z;){var ie=$[U],se=r[ie];(se===n||ar(se,ms[ie])&&!At.call(r,ie))&&(r[ie]=P[ie])}return r}),V3=et(function(r){return r.push(n,yg),On(e1,n,r)});function q3(r,s){return h0(r,Le(s,3),wr)}function W3(r,s){return h0(r,Le(s,3),gl)}function K3(r,s){return r==null?r:pl(r,Le(s,3),xn)}function H3(r,s){return r==null?r:L0(r,Le(s,3),xn)}function z3(r,s){return r&&wr(r,Le(s,3))}function G3(r,s){return r&&gl(r,Le(s,3))}function J3(r){return r==null?[]:Xa(r,rn(r))}function Y3(r){return r==null?[]:Xa(r,xn(r))}function zl(r,s,c){var m=r==null?n:Ii(r,s);return m===n?c:m}function X3(r,s){return r!=null&&bg(r,s,vE)}function Gl(r,s){return r!=null&&bg(r,s,AE)}var Q3=fg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=ja.call(s)),r[s]=c},Yl(Cn)),Z3=fg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=ja.call(s)),At.call(r,s)?r[s].push(c):r[s]=[c]},Le),e_=et(bo);function rn(r){return En(r)?I0(r):bl(r)}function xn(r){return En(r)?I0(r,!0):FE(r)}function t_(r,s){var c={};return s=Le(s,3),wr(r,function(m,k,P){Br(c,s(m,k,P),m)}),c}function n_(r,s){var c={};return s=Le(s,3),wr(r,function(m,k,P){Br(c,k,s(m,k,P))}),c}var r_=As(function(r,s,c){Qa(r,s,c)}),e1=As(function(r,s,c,m){Qa(r,s,c,m)}),i_=Pr(function(r,s){var c={};if(r==null)return c;var m=!1;s=Dt(s,function(P){return P=ii(P,r),m||(m=P.length>1),P}),br(r,Dl(r),c),m&&(c=zn(c,g|v|C,QE));for(var k=s.length;k--;)Cl(c,s[k]);return c});function s_(r,s){return t1(r,du(Le(s)))}var o_=Pr(function(r,s){return r==null?{}:DE(r,s)});function t1(r,s){if(r==null)return{};var c=Dt(Dl(r),function(m){return[m]});return s=Le(s),H0(r,c,function(m,k){return s(m,k[0])})}function a_(r,s,c){s=ii(s,r);var m=-1,k=s.length;for(k||(k=1,r=n);++m<k;){var P=r==null?n:r[vr(s[m])];P===n&&(m=k,P=c),r=Lr(P)?P.call(r):P}return r}function u_(r,s,c){return r==null?r:Ao(r,s,c)}function c_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Ao(r,s,c,m)}var n1=pg(rn),r1=pg(xn);function l_(r,s,c){var m=We(r),k=m||oi(r)||xs(r);if(s=Le(s,4),c==null){var P=r&&r.constructor;k?c=m?new P:[]:jt(r)?c=Lr(P)?vs(Ua(r)):{}:c={}}return(k?Wn:wr)(r,function($,U,z){return s(c,$,U,z)}),c}function f_(r,s){return r==null?!0:Cl(r,s)}function h_(r,s,c){return r==null?r:X0(r,s,Tl(c))}function d_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:X0(r,s,Tl(c),m)}function Cs(r){return r==null?[]:ol(r,rn(r))}function p_(r){return r==null?[]:ol(r,xn(r))}function g_(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),Ti(Yn(r),s,c)}function y_(r,s,c){return s=Nr(s),c===n?(c=s,s=0):c=Nr(c),r=Yn(r),SE(r,s,c)}function m_(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=Nr(r),s===n?(s=r,r=0):s=Nr(s)),r>s){var m=r;r=s,s=m}if(c||r%1||s%1){var k=k0();return ln(r+k*(s-r+JA("1e-"+((k+"").length-1))),s)}return Sl(r,s)}var w_=Ss(function(r,s,c){return s=s.toLowerCase(),r+(c?i1(s):s)});function i1(r){return Jl(bt(r).toLowerCase())}function s1(r){return r=bt(r),r&&r.replace(cn,uS).replace($A,"")}function b_(r,s,c){r=bt(r),s=Bn(s);var m=r.length;c=c===n?m:Ti(ze(c),0,m);var k=c;return c-=s.length,c>=0&&r.slice(c,k)==s}function v_(r){return r=bt(r),r&&as.test(r)?r.replace(Gr,cS):r}function A_(r){return r=bt(r),r&&rr.test(r)?r.replace(Ir,"\\$&"):r}var S_=Ss(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),E_=Ss(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),x_=ug("toLowerCase");function C_(r,s,c){r=bt(r),s=ze(s);var m=s?gs(r):0;if(!s||m>=s)return r;var k=(s-m)/2;return iu(Ka(k),c)+r+iu(Wa(k),c)}function __(r,s,c){r=bt(r),s=ze(s);var m=s?gs(r):0;return s&&m<s?r+iu(s-m,c):r}function k_(r,s,c){r=bt(r),s=ze(s);var m=s?gs(r):0;return s&&m<s?iu(s-m,c)+r:r}function T_(r,s,c){return c||s==null?s=0:s&&(s=+s),RS(bt(r).replace(Yr,""),s||0)}function I_(r,s,c){return(c?yn(r,s,c):s===n)?s=1:s=ze(s),El(bt(r),s)}function O_(){var r=arguments,s=bt(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var F_=Ss(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function B_(r,s,c){return c&&typeof c!="number"&&yn(r,s,c)&&(s=c=n),c=c===n?we:c>>>0,c?(r=bt(r),r&&(typeof s=="string"||s!=null&&!Hl(s))&&(s=Bn(s),!s&&ps(r))?si(sr(r),0,c):r.split(s,c)):[]}var D_=Ss(function(r,s,c){return r+(c?" ":"")+Jl(s)});function P_(r,s,c){return r=bt(r),c=c==null?0:Ti(ze(c),0,r.length),s=Bn(s),r.slice(c,c+s.length)==s}function R_(r,s,c){var m=D.templateSettings;c&&yn(r,s,c)&&(s=n),r=bt(r),s=yu({},s,m,gg);var k=yu({},s.imports,m.imports,gg),P=rn(k),$=ol(k,P),U,z,ie=0,se=s.interpolate||Tn,ae="__p += '",me=ul((s.escape||Tn).source+"|"+se.source+"|"+(se===Jr?lt:Tn).source+"|"+(s.evaluate||Tn).source+"|$","g"),Te="//# sourceURL="+(At.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++WA+"]")+`
146
- `;r.replace(me,function($e,it,at,Pn,mn,Rn){return at||(at=Pn),ae+=r.slice(ie,Rn).replace(ir,lS),it&&(U=!0,ae+=`' +
145
+ `)}function rA(r){return qe(r)||Bi(r)||!!(E0&&r&&r[E0])}function Lr(r,s){var c=typeof r;return s=s??Oe,!!s&&(c=="number"||c!="symbol"&&Dt.test(r))&&r>-1&&r%1==0&&r<s}function bn(r,s,c){if(!Nt(c))return!1;var m=typeof s;return(m=="number"?An(c)&&Lr(s,c.length):m=="string"&&s in c)?ar(c[s],r):!1}function Rl(r,s){if(qe(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Dn(r)?!0:no.test(r)||!xi.test(r)||s!=null&&r in xt(s)}function iA(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Ll(r){var s=iu(r),c=D[s];if(typeof c!="function"||!(s in ot.prototype))return!1;if(r===c)return!0;var m=Fl(c);return!!m&&r===m[0]}function sA(r){return!!m0&&m0 in r}var oA=Ra?Pr:Ql;function xo(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ms;return r===c}function mg(r){return r===r&&!Nt(r)}function bg(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in xt(c))}}function aA(r){var s=lu(r,function(m){return c.size===h&&c.clear(),m}),c=s.cache;return s}function uA(r,s){var c=r[1],m=s[1],k=c|m,R=k<(w|T|B),$=m==B&&c==L||m==B&&c==W&&r[7].length<=s[8]||m==(B|W)&&s[7].length<=s[8]&&c==L;if(!(R||$))return r;m&w&&(r[2]=s[2],k|=c&w?0:j);var U=s[3];if(U){var z=r[3];r[3]=z?eg(z,U,s[4]):U,r[4]=z?ei(r[3],p):s[4]}return U=s[5],U&&(z=r[5],r[5]=z?tg(z,U,s[6]):U,r[6]=z?ei(r[5],p):s[6]),U=s[7],U&&(r[7]=U),m&B&&(r[8]=r[8]==null?s[8]:hn(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=k,r}function cA(r){var s=[];if(r!=null)for(var c in xt(r))s.push(c);return s}function lA(r){return Pa.call(r)}function wg(r,s,c){return s=en(s===n?r.length-1:s,0),function(){for(var m=arguments,k=-1,R=en(m.length-s,0),$=Q(R);++k<R;)$[k]=m[s+k];k=-1;for(var U=Q(s+1);++k<s;)U[k]=m[k];return U[s]=c($),On(r,this,U)}}function vg(r,s){return s.length<2?r:Ii(r,Gn(s,0,-1))}function fA(r,s){for(var c=r.length,m=hn(s.length,c),k=Sn(r);m--;){var R=s[m];r[m]=Lr(R,c)?k[R]:n}return r}function Pl(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var Eg=Sg(W0),So=_x||function(r,s){return un.setTimeout(r,s)},jl=Sg(RS);function xg(r,s,c){var m=s+"";return jl(r,nA(m,hA(ZS(m),c)))}function Sg(r){var s=0,c=0;return function(){var m=Ox(),k=be-(m-c);if(c=m,k>0){if(++s>=me)return arguments[0]}else s=0;return r.apply(n,arguments)}}function ou(r,s){var c=-1,m=r.length,k=m-1;for(s=s===n?m:s;++c<s;){var R=wl(c,k),$=r[R];r[R]=r[c],r[c]=$}return r.length=s,r}var Ag=aA(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(ro,function(c,m,k,R){s.push(k?R.replace(Ie,"$1"):m||c)}),s});function wr(r){if(typeof r=="string"||Dn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Fi(r){if(r!=null){try{return La.call(r)}catch{}try{return r+""}catch{}}return""}function hA(r,s){return Wn(Y,function(c){var m="_."+c[0];s&c[1]&&!Oa(r,m)&&r.push(m)}),r.sort()}function Cg(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 dA(r,s,c){(c?bn(r,s,c):s===n)?s=1:s=en(He(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var k=0,R=0,$=Q(Va(m/s));k<m;)$[R++]=Gn(r,k,k+=s);return $}function pA(r){for(var s=-1,c=r==null?0:r.length,m=0,k=[];++s<c;){var R=r[s];R&&(k[m++]=R)}return k}function gA(){var r=arguments.length;if(!r)return[];for(var s=Q(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return Zr(qe(c)?Sn(c):[c],cn(s,1))}var yA=tt(function(r,s){return zt(r)?mo(r,cn(s,1,zt,!0)):[]}),mA=tt(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?mo(r,cn(s,1,zt,!0),Be(c,2)):[]}),bA=tt(function(r,s){var c=Jn(s);return zt(c)&&(c=n),zt(r)?mo(r,cn(s,1,zt,!0),n,c):[]});function wA(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:He(s),Gn(r,s<0?0:s,m)):[]}function vA(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:He(s),s=m-s,Gn(r,0,s<0?0:s)):[]}function EA(r,s){return r&&r.length?Qa(r,Be(s,3),!0,!0):[]}function xA(r,s){return r&&r.length?Qa(r,Be(s,3),!0):[]}function SA(r,s,c,m){var k=r==null?0:r.length;return k?(c&&typeof c!="number"&&bn(r,s,c)&&(c=0,m=k),gS(r,s,c,m)):[]}function _g(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=c==null?0:He(c);return k<0&&(k=en(m+k,0)),Fa(r,Be(s,3),k)}function kg(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=m-1;return c!==n&&(k=He(c),k=c<0?en(m+k,0):hn(k,m-1)),Fa(r,Be(s,3),k,!0)}function Tg(r){var s=r==null?0:r.length;return s?cn(r,1):[]}function AA(r){var s=r==null?0:r.length;return s?cn(r,ke):[]}function CA(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:He(s),cn(r,s)):[]}function _A(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var k=r[s];m[k[0]]=k[1]}return m}function Ig(r){return r&&r.length?r[0]:n}function kA(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=c==null?0:He(c);return k<0&&(k=en(m+k,0)),ds(r,s,k)}function TA(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var IA=tt(function(r){var s=Rt(r,Al);return s.length&&s[0]===r[0]?pl(s):[]}),OA=tt(function(r){var s=Jn(r),c=Rt(r,Al);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?pl(c,Be(s,2)):[]}),FA=tt(function(r){var s=Jn(r),c=Rt(r,Al);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?pl(c,n,s):[]});function BA(r,s){return r==null?"":Tx.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function DA(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=m;return c!==n&&(k=He(c),k=k<0?en(m+k,0):hn(k,m-1)),s===s?hx(r,s,k):Fa(r,c0,k,!0)}function RA(r,s){return r&&r.length?M0(r,He(s)):n}var LA=tt(Og);function Og(r,s){return r&&r.length&&s&&s.length?bl(r,s):r}function PA(r,s,c){return r&&r.length&&s&&s.length?bl(r,s,Be(c,2)):r}function jA(r,s,c){return r&&r.length&&s&&s.length?bl(r,s,n,c):r}var NA=Rr(function(r,s){var c=r==null?0:r.length,m=ll(r,s);return q0(r,Rt(s,function(k){return Lr(k,c)?+k:k}).sort(Z0)),m});function $A(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,k=[],R=r.length;for(s=Be(s,3);++m<R;){var $=r[m];s($,m,r)&&(c.push($),k.push(m))}return q0(r,k),c}function Nl(r){return r==null?r:Bx.call(r)}function MA(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&bn(r,s,c)?(s=0,c=m):(s=s==null?0:He(s),c=c===n?m:He(c)),Gn(r,s,c)):[]}function UA(r,s){return Xa(r,s)}function VA(r,s,c){return El(r,s,Be(c,2))}function qA(r,s){var c=r==null?0:r.length;if(c){var m=Xa(r,s);if(m<c&&ar(r[m],s))return m}return-1}function WA(r,s){return Xa(r,s,!0)}function KA(r,s,c){return El(r,s,Be(c,2),!0)}function HA(r,s){var c=r==null?0:r.length;if(c){var m=Xa(r,s,!0)-1;if(ar(r[m],s))return m}return-1}function zA(r){return r&&r.length?K0(r):[]}function GA(r,s){return r&&r.length?K0(r,Be(s,2)):[]}function JA(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function YA(r,s,c){return r&&r.length?(s=c||s===n?1:He(s),Gn(r,0,s<0?0:s)):[]}function XA(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:He(s),s=m-s,Gn(r,s<0?0:s,m)):[]}function QA(r,s){return r&&r.length?Qa(r,Be(s,3),!1,!0):[]}function ZA(r,s){return r&&r.length?Qa(r,Be(s,3)):[]}var eC=tt(function(r){return ri(cn(r,1,zt,!0))}),tC=tt(function(r){var s=Jn(r);return zt(s)&&(s=n),ri(cn(r,1,zt,!0),Be(s,2))}),nC=tt(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,ri(cn(r,1,zt,!0),n,s)});function rC(r){return r&&r.length?ri(r):[]}function iC(r,s){return r&&r.length?ri(r,Be(s,2)):[]}function sC(r,s){return s=typeof s=="function"?s:n,r&&r.length?ri(r,n,s):[]}function $l(r){if(!(r&&r.length))return[];var s=0;return r=Qr(r,function(c){if(zt(c))return s=en(c.length,s),!0}),nl(s,function(c){return Rt(r,Zc(c))})}function Fg(r,s){if(!(r&&r.length))return[];var c=$l(r);return s==null?c:Rt(c,function(m){return On(s,n,m)})}var oC=tt(function(r,s){return zt(r)?mo(r,s):[]}),aC=tt(function(r){return Sl(Qr(r,zt))}),uC=tt(function(r){var s=Jn(r);return zt(s)&&(s=n),Sl(Qr(r,zt),Be(s,2))}),cC=tt(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,Sl(Qr(r,zt),n,s)}),lC=tt($l);function fC(r,s){return J0(r||[],s||[],yo)}function hC(r,s){return J0(r||[],s||[],vo)}var dC=tt(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,Fg(r,c)});function Bg(r){var s=D(r);return s.__chain__=!0,s}function pC(r,s){return s(r),r}function au(r,s){return s(r)}var gC=Rr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,k=function(R){return ll(R,r)};return s>1||this.__actions__.length||!(m instanceof ot)||!Lr(c)?this.thru(k):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:au,args:[k],thisArg:n}),new Hn(m,this.__chain__).thru(function(R){return s&&!R.length&&R.push(n),R}))});function yC(){return Bg(this)}function mC(){return new Hn(this.value(),this.__chain__)}function bC(){this.__values__===n&&(this.__values__=Hg(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function wC(){return this}function vC(r){for(var s,c=this;c instanceof Ha;){var m=Cg(c);m.__index__=0,m.__values__=n,s?k.__wrapped__=m:s=m;var k=m;c=c.__wrapped__}return k.__wrapped__=r,s}function EC(){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:au,args:[Nl],thisArg:n}),new Hn(s,this.__chain__)}return this.thru(Nl)}function xC(){return G0(this.__wrapped__,this.__actions__)}var SC=Za(function(r,s,c){Et.call(r,c)?++r[c]:Br(r,c,1)});function AC(r,s,c){var m=qe(r)?a0:pS;return c&&bn(r,s,c)&&(s=n),m(r,Be(s,3))}function CC(r,s){var c=qe(r)?Qr:F0;return c(r,Be(s,3))}var _C=sg(_g),kC=sg(kg);function TC(r,s){return cn(uu(r,s),1)}function IC(r,s){return cn(uu(r,s),ke)}function OC(r,s,c){return c=c===n?1:He(c),cn(uu(r,s),c)}function Dg(r,s){var c=qe(r)?Wn:ni;return c(r,Be(s,3))}function Rg(r,s){var c=qe(r)?JE:O0;return c(r,Be(s,3))}var FC=Za(function(r,s,c){Et.call(r,c)?r[c].push(s):Br(r,c,[s])});function BC(r,s,c,m){r=An(r)?r:Cs(r),c=c&&!m?He(c):0;var k=r.length;return c<0&&(c=en(k+c,0)),du(r)?c<=k&&r.indexOf(s,c)>-1:!!k&&ds(r,s,c)>-1}var DC=tt(function(r,s,c){var m=-1,k=typeof s=="function",R=An(r)?Q(r.length):[];return ni(r,function($){R[++m]=k?On(s,$,c):bo($,s,c)}),R}),RC=Za(function(r,s,c){Br(r,c,s)});function uu(r,s){var c=qe(r)?Rt:j0;return c(r,Be(s,3))}function LC(r,s,c,m){return r==null?[]:(qe(s)||(s=s==null?[]:[s]),c=m?n:c,qe(c)||(c=c==null?[]:[c]),U0(r,s,c))}var PC=Za(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function jC(r,s,c){var m=qe(r)?Xc:f0,k=arguments.length<3;return m(r,Be(s,4),c,k,ni)}function NC(r,s,c){var m=qe(r)?YE:f0,k=arguments.length<3;return m(r,Be(s,4),c,k,O0)}function $C(r,s){var c=qe(r)?Qr:F0;return c(r,fu(Be(s,3)))}function MC(r){var s=qe(r)?_0:BS;return s(r)}function UC(r,s,c){(c?bn(r,s,c):s===n)?s=1:s=He(s);var m=qe(r)?cS:DS;return m(r,s)}function VC(r){var s=qe(r)?lS:LS;return s(r)}function qC(r){if(r==null)return 0;if(An(r))return du(r)?gs(r):r.length;var s=dn(r);return s==Lt||s==vt?r.size:yl(r).length}function WC(r,s,c){var m=qe(r)?Qc:PS;return c&&bn(r,s,c)&&(s=n),m(r,Be(s,3))}var KC=tt(function(r,s){if(r==null)return[];var c=s.length;return c>1&&bn(r,s[0],s[1])?s=[]:c>2&&bn(s[0],s[1],s[2])&&(s=[s[0]]),U0(r,cn(s,1),[])}),cu=Cx||function(){return un.Date.now()};function HC(r,s){if(typeof s!="function")throw new Kn(u);return r=He(r),function(){if(--r<1)return s.apply(this,arguments)}}function Lg(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Dr(r,B,n,n,n,n,s)}function Pg(r,s){var c;if(typeof s!="function")throw new Kn(u);return r=He(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var Ml=tt(function(r,s,c){var m=w;if(c.length){var k=ei(c,Ss(Ml));m|=O}return Dr(r,m,s,c,k)}),jg=tt(function(r,s,c){var m=w|T;if(c.length){var k=ei(c,Ss(jg));m|=O}return Dr(s,m,r,c,k)});function Ng(r,s,c){s=c?n:s;var m=Dr(r,L,n,n,n,n,n,s);return m.placeholder=Ng.placeholder,m}function $g(r,s,c){s=c?n:s;var m=Dr(r,_,n,n,n,n,n,s);return m.placeholder=$g.placeholder,m}function Mg(r,s,c){var m,k,R,$,U,z,ie=0,se=!1,ae=!1,ge=!0;if(typeof r!="function")throw new Kn(u);s=Yn(s)||0,Nt(c)&&(se=!!c.leading,ae="maxWait"in c,R=ae?en(Yn(c.maxWait)||0,s):R,ge="trailing"in c?!!c.trailing:ge);function Ce(Gt){var ur=m,Nr=k;return m=k=n,ie=Gt,$=r.apply(Nr,ur),$}function Le(Gt){return ie=Gt,U=So(it,s),se?Ce(Gt):$}function Qe(Gt){var ur=Gt-z,Nr=Gt-ie,s1=s-ur;return ae?hn(s1,R-Nr):s1}function Pe(Gt){var ur=Gt-z,Nr=Gt-ie;return z===n||ur>=s||ur<0||ae&&Nr>=R}function it(){var Gt=cu();if(Pe(Gt))return at(Gt);U=So(it,Qe(Gt))}function at(Gt){return U=n,ge&&m?Ce(Gt):(m=k=n,$)}function Rn(){U!==n&&Y0(U),ie=0,m=z=k=U=n}function wn(){return U===n?$:at(cu())}function Ln(){var Gt=cu(),ur=Pe(Gt);if(m=arguments,k=this,z=Gt,ur){if(U===n)return Le(z);if(ae)return Y0(U),U=So(it,s),Ce(z)}return U===n&&(U=So(it,s)),$}return Ln.cancel=Rn,Ln.flush=wn,Ln}var zC=tt(function(r,s){return I0(r,1,s)}),GC=tt(function(r,s,c){return I0(r,Yn(s)||0,c)});function JC(r){return Dr(r,X)}function lu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Kn(u);var c=function(){var m=arguments,k=s?s.apply(this,m):m[0],R=c.cache;if(R.has(k))return R.get(k);var $=r.apply(this,m);return c.cache=R.set(k,$)||R,$};return c.cache=new(lu.Cache||Fr),c}lu.Cache=Fr;function fu(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 YC(r){return Pg(2,r)}var XC=jS(function(r,s){s=s.length==1&&qe(s[0])?Rt(s[0],Fn(Be())):Rt(cn(s,1),Fn(Be()));var c=s.length;return tt(function(m){for(var k=-1,R=hn(m.length,c);++k<R;)m[k]=s[k].call(this,m[k]);return On(r,this,m)})}),Ul=tt(function(r,s){var c=ei(s,Ss(Ul));return Dr(r,O,n,s,c)}),Ug=tt(function(r,s){var c=ei(s,Ss(Ug));return Dr(r,F,n,s,c)}),QC=Rr(function(r,s){return Dr(r,W,n,n,n,s)});function ZC(r,s){if(typeof r!="function")throw new Kn(u);return s=s===n?s:He(s),tt(r,s)}function e3(r,s){if(typeof r!="function")throw new Kn(u);return s=s==null?0:en(He(s),0),tt(function(c){var m=c[s],k=si(c,0,s);return m&&Zr(k,m),On(r,this,k)})}function t3(r,s,c){var m=!0,k=!0;if(typeof r!="function")throw new Kn(u);return Nt(c)&&(m="leading"in c?!!c.leading:m,k="trailing"in c?!!c.trailing:k),Mg(r,s,{leading:m,maxWait:s,trailing:k})}function n3(r){return Lg(r,1)}function r3(r,s){return Ul(Cl(s),r)}function i3(){if(!arguments.length)return[];var r=arguments[0];return qe(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,g|C)}function u3(r,s){return s=typeof s=="function"?s:n,zn(r,g|C,s)}function c3(r,s){return s==null||T0(r,s,rn(s))}function ar(r,s){return r===s||r!==r&&s!==s}var l3=ru(dl),f3=ru(function(r,s){return r>=s}),Bi=R0(function(){return arguments}())?R0:function(r){return $t(r)&&Et.call(r,"callee")&&!v0.call(r,"callee")},qe=Q.isArray,h3=t0?Fn(t0):vS;function An(r){return r!=null&&hu(r.length)&&!Pr(r)}function zt(r){return $t(r)&&An(r)}function d3(r){return r===!0||r===!1||$t(r)&&mn(r)==ve}var oi=kx||Ql,p3=n0?Fn(n0):ES;function g3(r){return $t(r)&&r.nodeType===1&&!Ao(r)}function y3(r){if(r==null)return!0;if(An(r)&&(qe(r)||typeof r=="string"||typeof r.splice=="function"||oi(r)||As(r)||Bi(r)))return!r.length;var s=dn(r);if(s==Lt||s==vt)return!r.size;if(xo(r))return!yl(r).length;for(var c in r)if(Et.call(r,c))return!1;return!0}function m3(r,s){return wo(r,s)}function b3(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?wo(r,s,n,c):!!m}function Vl(r){if(!$t(r))return!1;var s=mn(r);return s==Re||s==je||typeof r.message=="string"&&typeof r.name=="string"&&!Ao(r)}function w3(r){return typeof r=="number"&&x0(r)}function Pr(r){if(!Nt(r))return!1;var s=mn(r);return s==Ct||s==nn||s==Je||s==et}function Vg(r){return typeof r=="number"&&r==He(r)}function hu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Oe}function Nt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function $t(r){return r!=null&&typeof r=="object"}var qg=r0?Fn(r0):SS;function v3(r,s){return r===s||gl(r,s,Bl(s))}function E3(r,s,c){return c=typeof c=="function"?c:n,gl(r,s,Bl(s),c)}function x3(r){return Wg(r)&&r!=+r}function S3(r){if(oA(r))throw new Ue(a);return L0(r)}function A3(r){return r===null}function C3(r){return r==null}function Wg(r){return typeof r=="number"||$t(r)&&mn(r)==Pt}function Ao(r){if(!$t(r)||mn(r)!=bt)return!1;var s=$a(r);if(s===null)return!0;var c=Et.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&La.call(c)==Ex}var ql=i0?Fn(i0):AS;function _3(r){return Vg(r)&&r>=-9007199254740991&&r<=Oe}var Kg=s0?Fn(s0):CS;function du(r){return typeof r=="string"||!qe(r)&&$t(r)&&mn(r)==we}function Dn(r){return typeof r=="symbol"||$t(r)&&mn(r)==It}var As=o0?Fn(o0):_S;function k3(r){return r===n}function T3(r){return $t(r)&&dn(r)==Ye}function I3(r){return $t(r)&&mn(r)==Bt}var O3=ru(ml),F3=ru(function(r,s){return r<=s});function Hg(r){if(!r)return[];if(An(r))return du(r)?sr(r):Sn(r);if(lo&&r[lo])return cx(r[lo]());var s=dn(r),c=s==Lt?il:s==vt?Ba:Cs;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*Ze}return r===r?r:0}function He(r){var s=jr(r),c=s%1;return s===s?c?s-c:s:0}function zg(r){return r?Ti(He(r),0,ye):0}function Yn(r){if(typeof r=="number")return r;if(Dn(r))return Ee;if(Nt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=Nt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=h0(r);var c=Xe.test(r);return c||Ot.test(r)?HE(r.slice(2),c?2:8):rt.test(r)?Ee:+r}function Gg(r){return br(r,Cn(r))}function B3(r){return r?Ti(He(r),-9007199254740991,Oe):r===0?r:0}function wt(r){return r==null?"":Bn(r)}var D3=Es(function(r,s){if(xo(s)||An(s)){br(s,rn(s),r);return}for(var c in s)Et.call(s,c)&&yo(r,c,s[c])}),Jg=Es(function(r,s){br(s,Cn(s),r)}),pu=Es(function(r,s,c,m){br(s,Cn(s),r,m)}),R3=Es(function(r,s,c,m){br(s,rn(s),r,m)}),L3=Rr(ll);function P3(r,s){var c=vs(r);return s==null?c:k0(c,s)}var j3=tt(function(r,s){r=xt(r);var c=-1,m=s.length,k=m>2?s[2]:n;for(k&&bn(s[0],s[1],k)&&(m=1);++c<m;)for(var R=s[c],$=Cn(R),U=-1,z=$.length;++U<z;){var ie=$[U],se=r[ie];(se===n||ar(se,ms[ie])&&!Et.call(r,ie))&&(r[ie]=R[ie])}return r}),N3=tt(function(r){return r.push(n,hg),On(Yg,n,r)});function $3(r,s){return u0(r,Be(s,3),mr)}function M3(r,s){return u0(r,Be(s,3),hl)}function U3(r,s){return r==null?r:fl(r,Be(s,3),Cn)}function V3(r,s){return r==null?r:B0(r,Be(s,3),Cn)}function q3(r,s){return r&&mr(r,Be(s,3))}function W3(r,s){return r&&hl(r,Be(s,3))}function K3(r){return r==null?[]:Ja(r,rn(r))}function H3(r){return r==null?[]:Ja(r,Cn(r))}function Wl(r,s,c){var m=r==null?n:Ii(r,s);return m===n?c:m}function z3(r,s){return r!=null&&gg(r,s,yS)}function Kl(r,s){return r!=null&&gg(r,s,mS)}var G3=ag(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Pa.call(s)),r[s]=c},zl(_n)),J3=ag(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Pa.call(s)),Et.call(r,s)?r[s].push(c):r[s]=[c]},Be),Y3=tt(bo);function rn(r){return An(r)?C0(r):yl(r)}function Cn(r){return An(r)?C0(r,!0):kS(r)}function X3(r,s){var c={};return s=Be(s,3),mr(r,function(m,k,R){Br(c,s(m,k,R),m)}),c}function Q3(r,s){var c={};return s=Be(s,3),mr(r,function(m,k,R){Br(c,k,s(m,k,R))}),c}var Z3=Es(function(r,s,c){Ya(r,s,c)}),Yg=Es(function(r,s,c,m){Ya(r,s,c,m)}),e_=Rr(function(r,s){var c={};if(r==null)return c;var m=!1;s=Rt(s,function(R){return R=ii(R,r),m||(m=R.length>1),R}),br(r,Ol(r),c),m&&(c=zn(c,g|v|C,GS));for(var k=s.length;k--;)xl(c,s[k]);return c});function t_(r,s){return Xg(r,fu(Be(s)))}var n_=Rr(function(r,s){return r==null?{}:IS(r,s)});function Xg(r,s){if(r==null)return{};var c=Rt(Ol(r),function(m){return[m]});return s=Be(s),V0(r,c,function(m,k){return s(m,k[0])})}function r_(r,s,c){s=ii(s,r);var m=-1,k=s.length;for(k||(k=1,r=n);++m<k;){var R=r==null?n:r[wr(s[m])];R===n&&(m=k,R=c),r=Pr(R)?R.call(r):R}return r}function i_(r,s,c){return r==null?r:vo(r,s,c)}function s_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:vo(r,s,c,m)}var Qg=lg(rn),Zg=lg(Cn);function o_(r,s,c){var m=qe(r),k=m||oi(r)||As(r);if(s=Be(s,4),c==null){var R=r&&r.constructor;k?c=m?new R:[]:Nt(r)?c=Pr(R)?vs($a(r)):{}:c={}}return(k?Wn:mr)(r,function($,U,z){return s(c,$,U,z)}),c}function a_(r,s){return r==null?!0:xl(r,s)}function u_(r,s,c){return r==null?r:z0(r,s,Cl(c))}function c_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:z0(r,s,Cl(c),m)}function Cs(r){return r==null?[]:rl(r,rn(r))}function l_(r){return r==null?[]:rl(r,Cn(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),Ti(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),bS(r,s,c)}function d_(r,s,c){if(c&&typeof c!="boolean"&&bn(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 k=S0();return hn(r+k*(s-r+KE("1e-"+((k+"").length-1))),s)}return wl(r,s)}var p_=xs(function(r,s,c){return s=s.toLowerCase(),r+(c?e1(s):s)});function e1(r){return Hl(wt(r).toLowerCase())}function t1(r){return r=wt(r),r&&r.replace(fn,ix).replace(LE,"")}function g_(r,s,c){r=wt(r),s=Bn(s);var m=r.length;c=c===n?m:Ti(He(c),0,m);var k=c;return c-=s.length,c>=0&&r.slice(c,k)==s}function y_(r){return r=wt(r),r&&as.test(r)?r.replace(Gr,sx):r}function m_(r){return r=wt(r),r&&rr.test(r)?r.replace(Ir,"\\$&"):r}var b_=xs(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),w_=xs(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),v_=ig("toLowerCase");function E_(r,s,c){r=wt(r),s=He(s);var m=s?gs(r):0;if(!s||m>=s)return r;var k=(s-m)/2;return nu(qa(k),c)+r+nu(Va(k),c)}function x_(r,s,c){r=wt(r),s=He(s);var m=s?gs(r):0;return s&&m<s?r+nu(s-m,c):r}function S_(r,s,c){r=wt(r),s=He(s);var m=s?gs(r):0;return s&&m<s?nu(s-m,c)+r:r}function A_(r,s,c){return c||s==null?s=0:s&&(s=+s),Fx(wt(r).replace(Yr,""),s||0)}function C_(r,s,c){return(c?bn(r,s,c):s===n)?s=1:s=He(s),vl(wt(r),s)}function __(){var r=arguments,s=wt(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var k_=xs(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function T_(r,s,c){return c&&typeof c!="number"&&bn(r,s,c)&&(s=c=n),c=c===n?ye:c>>>0,c?(r=wt(r),r&&(typeof s=="string"||s!=null&&!ql(s))&&(s=Bn(s),!s&&ps(r))?si(sr(r),0,c):r.split(s,c)):[]}var I_=xs(function(r,s,c){return r+(c?" ":"")+Hl(s)});function O_(r,s,c){return r=wt(r),c=c==null?0:Ti(He(c),0,r.length),s=Bn(s),r.slice(c,c+s.length)==s}function F_(r,s,c){var m=D.templateSettings;c&&bn(r,s,c)&&(s=n),r=wt(r),s=pu({},s,m,fg);var k=pu({},s.imports,m.imports,fg),R=rn(k),$=rl(k,R),U,z,ie=0,se=s.interpolate||Tn,ae="__p += '",ge=sl((s.escape||Tn).source+"|"+se.source+"|"+(se===Jr?ct:Tn).source+"|"+(s.evaluate||Tn).source+"|$","g"),Ce="//# sourceURL="+(Et.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ME+"]")+`
146
+ `;r.replace(ge,function(Pe,it,at,Rn,wn,Ln){return at||(at=Rn),ae+=r.slice(ie,Ln).replace(ir,ox),it&&(U=!0,ae+=`' +
147
147
  __e(`+it+`) +
148
- '`),mn&&(z=!0,ae+=`';
149
- `+mn+`;
148
+ '`),wn&&(z=!0,ae+=`';
149
+ `+wn+`;
150
150
  __p += '`),at&&(ae+=`' +
151
151
  ((__t = (`+at+`)) == null ? '' : __t) +
152
- '`),ie=Rn+$e.length,$e}),ae+=`';
153
- `;var je=At.call(s,"variable")&&s.variable;if(!je)ae=`with (obj) {
152
+ '`),ie=Ln+Pe.length,Pe}),ae+=`';
153
+ `;var Le=Et.call(s,"variable")&&s.variable;if(!Le)ae=`with (obj) {
154
154
  `+ae+`
155
155
  }
156
- `;else if(ye.test(je))throw new Ve(l);ae=(z?ae.replace(pt,""):ae).replace(ct,"$1").replace(dt,"$1;"),ae="function("+(je||"obj")+`) {
157
- `+(je?"":`obj || (obj = {});
156
+ `;else if(pe.test(Le))throw new Ue(l);ae=(z?ae.replace(dt,""):ae).replace(ut,"$1").replace(ht,"$1;"),ae="function("+(Le||"obj")+`) {
157
+ `+(Le?"":`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
161
  `)+ae+`return __p
162
- }`;var Qe=a1(function(){return mt(P,Te+"return "+ae).apply(n,$)});if(Qe.source=ae,Kl(Qe))throw Qe;return Qe}function L_(r){return bt(r).toLowerCase()}function N_(r){return bt(r).toUpperCase()}function j_(r,s,c){if(r=bt(r),r&&(c||s===n))return y0(r);if(!r||!(s=Bn(s)))return r;var m=sr(r),k=sr(s),P=m0(m,k),$=w0(m,k)+1;return si(m,P,$).join("")}function $_(r,s,c){if(r=bt(r),r&&(c||s===n))return r.slice(0,v0(r)+1);if(!r||!(s=Bn(s)))return r;var m=sr(r),k=w0(m,sr(s))+1;return si(m,0,k).join("")}function M_(r,s,c){if(r=bt(r),r&&(c||s===n))return r.replace(Yr,"");if(!r||!(s=Bn(s)))return r;var m=sr(r),k=m0(m,sr(s));return si(m,k).join("")}function U_(r,s){var c=fe,m=le;if(jt(s)){var k="separator"in s?s.separator:k;c="length"in s?ze(s.length):c,m="omission"in s?Bn(s.omission):m}r=bt(r);var P=r.length;if(ps(r)){var $=sr(r);P=$.length}if(c>=P)return r;var U=c-gs(m);if(U<1)return m;var z=$?si($,0,U).join(""):r.slice(0,U);if(k===n)return z+m;if($&&(U+=z.length-U),Hl(k)){if(r.slice(U).search(k)){var ie,se=z;for(k.global||(k=ul(k.source,bt(ft.exec(k))+"g")),k.lastIndex=0;ie=k.exec(se);)var ae=ie.index;z=z.slice(0,ae===n?U:ae)}}else if(r.indexOf(Bn(k),U)!=U){var me=z.lastIndexOf(k);me>-1&&(z=z.slice(0,me))}return z+m}function V_(r){return r=bt(r),r&&Ai.test(r)?r.replace(st,mS):r}var q_=Ss(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Jl=ug("toUpperCase");function o1(r,s,c){return r=bt(r),s=c?n:s,s===n?hS(r)?vS(r):rS(r):r.match(s)||[]}var a1=et(function(r,s){try{return On(r,n,s)}catch(c){return Kl(c)?c:new Ve(c)}}),W_=Pr(function(r,s){return Wn(s,function(c){c=vr(c),Br(r,c,ql(r[c],r))}),r});function K_(r){var s=r==null?0:r.length,c=Le();return r=s?Dt(r,function(m){if(typeof m[1]!="function")throw new Kn(u);return[c(m[0]),m[1]]}):[],et(function(m){for(var k=-1;++k<s;){var P=r[k];if(On(P[0],this,m))return On(P[1],this,m)}})}function H_(r){return mE(zn(r,g))}function Yl(r){return function(){return r}}function z_(r,s){return r==null||r!==r?s:r}var G_=lg(),J_=lg(!0);function Cn(r){return r}function Xl(r){return M0(typeof r=="function"?r:zn(r,g))}function Y_(r){return V0(zn(r,g))}function X_(r,s){return q0(r,zn(s,g))}var Q_=et(function(r,s){return function(c){return bo(c,r,s)}}),Z_=et(function(r,s){return function(c){return bo(r,c,s)}});function Ql(r,s,c){var m=rn(s),k=Xa(s,m);c==null&&!(jt(s)&&(k.length||!m.length))&&(c=s,s=r,r=this,k=Xa(s,rn(s)));var P=!(jt(c)&&"chain"in c)||!!c.chain,$=Lr(r);return Wn(k,function(U){var z=s[U];r[U]=z,$&&(r.prototype[U]=function(){var ie=this.__chain__;if(P||ie){var se=r(this.__wrapped__),ae=se.__actions__=Sn(this.__actions__);return ae.push({func:z,args:arguments,thisArg:r}),se.__chain__=ie,se}return z.apply(r,Zr([this.value()],arguments))})}),r}function e8(){return an._===this&&(an._=_S),this}function Zl(){}function t8(r){return r=ze(r),et(function(s){return W0(s,r)})}var n8=Ol(Dt),r8=Ol(f0),i8=Ol(tl);function u1(r){return Nl(r)?nl(vr(r)):PE(r)}function s8(r){return function(s){return r==null?n:Ii(r,s)}}var o8=hg(),a8=hg(!0);function ef(){return[]}function tf(){return!1}function u8(){return{}}function c8(){return""}function l8(){return!0}function f8(r,s){if(r=ze(r),r<1||r>Be)return[];var c=we,m=ln(r,we);s=Le(s),r-=we;for(var k=sl(m,s);++c<r;)s(c);return k}function h8(r){return We(r)?Dt(r,vr):Dn(r)?[r]:Sn(Tg(bt(r)))}function d8(r){var s=++xS;return bt(r)+s}var p8=ru(function(r,s){return r+s},0),g8=Fl("ceil"),y8=ru(function(r,s){return r/s},1),m8=Fl("floor");function w8(r){return r&&r.length?Ya(r,Cn,yl):n}function b8(r,s){return r&&r.length?Ya(r,Le(s,2),yl):n}function v8(r){return p0(r,Cn)}function A8(r,s){return p0(r,Le(s,2))}function S8(r){return r&&r.length?Ya(r,Cn,vl):n}function E8(r,s){return r&&r.length?Ya(r,Le(s,2),vl):n}var x8=ru(function(r,s){return r*s},1),C8=Fl("round"),_8=ru(function(r,s){return r-s},0);function k8(r){return r&&r.length?il(r,Cn):0}function T8(r,s){return r&&r.length?il(r,Le(s,2)):0}return D.after=YC,D.ary=$g,D.assign=N3,D.assignIn=Zg,D.assignInWith=yu,D.assignWith=j3,D.at=$3,D.before=Mg,D.bind=ql,D.bindAll=W_,D.bindKey=Ug,D.castArray=u3,D.chain=Lg,D.chunk=mx,D.compact=wx,D.concat=bx,D.cond=K_,D.conforms=H_,D.constant=Yl,D.countBy=kC,D.create=M3,D.curry=Vg,D.curryRight=qg,D.debounce=Wg,D.defaults=U3,D.defaultsDeep=V3,D.defer=XC,D.delay=QC,D.difference=vx,D.differenceBy=Ax,D.differenceWith=Sx,D.drop=Ex,D.dropRight=xx,D.dropRightWhile=Cx,D.dropWhile=_x,D.fill=kx,D.filter=IC,D.flatMap=BC,D.flatMapDeep=DC,D.flatMapDepth=PC,D.flatten=Bg,D.flattenDeep=Tx,D.flattenDepth=Ix,D.flip=ZC,D.flow=G_,D.flowRight=J_,D.fromPairs=Ox,D.functions=J3,D.functionsIn=Y3,D.groupBy=RC,D.initial=Bx,D.intersection=Dx,D.intersectionBy=Px,D.intersectionWith=Rx,D.invert=Q3,D.invertBy=Z3,D.invokeMap=NC,D.iteratee=Xl,D.keyBy=jC,D.keys=rn,D.keysIn=xn,D.map=lu,D.mapKeys=t_,D.mapValues=n_,D.matches=Y_,D.matchesProperty=X_,D.memoize=hu,D.merge=r_,D.mergeWith=e1,D.method=Q_,D.methodOf=Z_,D.mixin=Ql,D.negate=du,D.nthArg=t8,D.omit=i_,D.omitBy=s_,D.once=e3,D.orderBy=$C,D.over=n8,D.overArgs=t3,D.overEvery=r8,D.overSome=i8,D.partial=Wl,D.partialRight=Kg,D.partition=MC,D.pick=o_,D.pickBy=t1,D.property=u1,D.propertyOf=s8,D.pull=$x,D.pullAll=Pg,D.pullAllBy=Mx,D.pullAllWith=Ux,D.pullAt=Vx,D.range=o8,D.rangeRight=a8,D.rearg=n3,D.reject=qC,D.remove=qx,D.rest=r3,D.reverse=Ul,D.sampleSize=KC,D.set=u_,D.setWith=c_,D.shuffle=HC,D.slice=Wx,D.sortBy=JC,D.sortedUniq=Xx,D.sortedUniqBy=Qx,D.split=B_,D.spread=i3,D.tail=Zx,D.take=eC,D.takeRight=tC,D.takeRightWhile=nC,D.takeWhile=rC,D.tap=wC,D.throttle=s3,D.thru=cu,D.toArray=Yg,D.toPairs=n1,D.toPairsIn=r1,D.toPath=h8,D.toPlainObject=Qg,D.transform=l_,D.unary=o3,D.union=iC,D.unionBy=sC,D.unionWith=oC,D.uniq=aC,D.uniqBy=uC,D.uniqWith=cC,D.unset=f_,D.unzip=Vl,D.unzipWith=Rg,D.update=h_,D.updateWith=d_,D.values=Cs,D.valuesIn=p_,D.without=lC,D.words=o1,D.wrap=a3,D.xor=fC,D.xorBy=hC,D.xorWith=dC,D.zip=pC,D.zipObject=gC,D.zipObjectDeep=yC,D.zipWith=mC,D.entries=n1,D.entriesIn=r1,D.extend=Zg,D.extendWith=yu,Ql(D,D),D.add=p8,D.attempt=a1,D.camelCase=w_,D.capitalize=i1,D.ceil=g8,D.clamp=g_,D.clone=c3,D.cloneDeep=f3,D.cloneDeepWith=h3,D.cloneWith=l3,D.conformsTo=d3,D.deburr=s1,D.defaultTo=z_,D.divide=y8,D.endsWith=b_,D.eq=ar,D.escape=v_,D.escapeRegExp=A_,D.every=TC,D.find=OC,D.findIndex=Og,D.findKey=q3,D.findLast=FC,D.findLastIndex=Fg,D.findLastKey=W3,D.floor=m8,D.forEach=Ng,D.forEachRight=jg,D.forIn=K3,D.forInRight=H3,D.forOwn=z3,D.forOwnRight=G3,D.get=zl,D.gt=p3,D.gte=g3,D.has=X3,D.hasIn=Gl,D.head=Dg,D.identity=Cn,D.includes=LC,D.indexOf=Fx,D.inRange=y_,D.invoke=e_,D.isArguments=Bi,D.isArray=We,D.isArrayBuffer=y3,D.isArrayLike=En,D.isArrayLikeObject=zt,D.isBoolean=m3,D.isBuffer=oi,D.isDate=w3,D.isElement=b3,D.isEmpty=v3,D.isEqual=A3,D.isEqualWith=S3,D.isError=Kl,D.isFinite=E3,D.isFunction=Lr,D.isInteger=Hg,D.isLength=pu,D.isMap=zg,D.isMatch=x3,D.isMatchWith=C3,D.isNaN=_3,D.isNative=k3,D.isNil=I3,D.isNull=T3,D.isNumber=Gg,D.isObject=jt,D.isObjectLike=$t,D.isPlainObject=Co,D.isRegExp=Hl,D.isSafeInteger=O3,D.isSet=Jg,D.isString=gu,D.isSymbol=Dn,D.isTypedArray=xs,D.isUndefined=F3,D.isWeakMap=B3,D.isWeakSet=D3,D.join=Lx,D.kebabCase=S_,D.last=Jn,D.lastIndexOf=Nx,D.lowerCase=E_,D.lowerFirst=x_,D.lt=P3,D.lte=R3,D.max=w8,D.maxBy=b8,D.mean=v8,D.meanBy=A8,D.min=S8,D.minBy=E8,D.stubArray=ef,D.stubFalse=tf,D.stubObject=u8,D.stubString=c8,D.stubTrue=l8,D.multiply=x8,D.nth=jx,D.noConflict=e8,D.noop=Zl,D.now=fu,D.pad=C_,D.padEnd=__,D.padStart=k_,D.parseInt=T_,D.random=m_,D.reduce=UC,D.reduceRight=VC,D.repeat=I_,D.replace=O_,D.result=a_,D.round=C8,D.runInContext=H,D.sample=WC,D.size=zC,D.snakeCase=F_,D.some=GC,D.sortedIndex=Kx,D.sortedIndexBy=Hx,D.sortedIndexOf=zx,D.sortedLastIndex=Gx,D.sortedLastIndexBy=Jx,D.sortedLastIndexOf=Yx,D.startCase=D_,D.startsWith=P_,D.subtract=_8,D.sum=k8,D.sumBy=T8,D.template=R_,D.times=f8,D.toFinite=Nr,D.toInteger=ze,D.toLength=Xg,D.toLower=L_,D.toNumber=Yn,D.toSafeInteger=L3,D.toString=bt,D.toUpper=N_,D.trim=j_,D.trimEnd=$_,D.trimStart=M_,D.truncate=U_,D.unescape=V_,D.uniqueId=d8,D.upperCase=q_,D.upperFirst=Jl,D.each=Ng,D.eachRight=jg,D.first=Dg,Ql(D,function(){var r={};return wr(D,function(s,c){At.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,we),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==Ee;ot.prototype[r]=function(k){var P=this.clone();return P.__iteratees__.push({iteratee:Le(k,3),type:c}),P.__filtered__=P.__filtered__||m,P}}),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=et(function(r,s){return typeof r=="function"?new ot(this):this.map(function(c){return bo(c,r,s)})}),ot.prototype.reject=function(r){return this.filter(du(Le(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(we)},wr(ot.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),k=D[m?"take"+(s=="last"?"Right":""):s],P=m||/^find/.test(s);k&&(D.prototype[s]=function(){var $=this.__wrapped__,U=m?[1]:arguments,z=$ instanceof ot,ie=U[0],se=z||We($),ae=function(it){var at=k.apply(D,Zr([it],U));return m&&me?at[0]:at};se&&c&&typeof ie=="function"&&ie.length!=1&&(z=se=!1);var me=this.__chain__,Te=!!this.__actions__.length,je=P&&!me,Qe=z&&!Te;if(!P&&se){$=Qe?$:new ot(this);var $e=r.apply($,U);return $e.__actions__.push({func:cu,args:[ae],thisArg:n}),new Hn($e,me)}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=Ra[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);D.prototype[r]=function(){var k=arguments;if(m&&!this.__chain__){var P=this.value();return s.apply(We(P)?P:[],k)}return this[c](function($){return s.apply(We($)?$:[],k)})}}),wr(ot.prototype,function(r,s){var c=D[s];if(c){var m=c.name+"";At.call(bs,m)||(bs[m]=[]),bs[m].push({name:s,func:c})}}),bs[nu(n,T).name]=[{name:"wrapper",func:n}],ot.prototype.clone=VS,ot.prototype.reverse=qS,ot.prototype.value=WS,D.prototype.at=bC,D.prototype.chain=vC,D.prototype.commit=AC,D.prototype.next=SC,D.prototype.plant=xC,D.prototype.reverse=CC,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=_C,D.prototype.first=D.prototype.head,fo&&(D.prototype[fo]=EC),D},ys=AS();xi?((xi.exports=ys)._=ys,Xc._=ys):an._=ys}).call(Xn)}(Qo,Qo.exports);var qr=Qo.exports;const Ut=bu(qr),t2={ShortenedText:Je.div`
162
+ }`;var Qe=r1(function(){return mt(R,Ce+"return "+ae).apply(n,$)});if(Qe.source=ae,Vl(Qe))throw Qe;return Qe}function B_(r){return wt(r).toLowerCase()}function D_(r){return wt(r).toUpperCase()}function R_(r,s,c){if(r=wt(r),r&&(c||s===n))return h0(r);if(!r||!(s=Bn(s)))return r;var m=sr(r),k=sr(s),R=d0(m,k),$=p0(m,k)+1;return si(m,R,$).join("")}function L_(r,s,c){if(r=wt(r),r&&(c||s===n))return r.slice(0,y0(r)+1);if(!r||!(s=Bn(s)))return r;var m=sr(r),k=p0(m,sr(s))+1;return si(m,0,k).join("")}function P_(r,s,c){if(r=wt(r),r&&(c||s===n))return r.replace(Yr,"");if(!r||!(s=Bn(s)))return r;var m=sr(r),k=d0(m,sr(s));return si(m,k).join("")}function j_(r,s){var c=fe,m=le;if(Nt(s)){var k="separator"in s?s.separator:k;c="length"in s?He(s.length):c,m="omission"in s?Bn(s.omission):m}r=wt(r);var R=r.length;if(ps(r)){var $=sr(r);R=$.length}if(c>=R)return r;var U=c-gs(m);if(U<1)return m;var z=$?si($,0,U).join(""):r.slice(0,U);if(k===n)return z+m;if($&&(U+=z.length-U),ql(k)){if(r.slice(U).search(k)){var ie,se=z;for(k.global||(k=sl(k.source,wt(lt.exec(k))+"g")),k.lastIndex=0;ie=k.exec(se);)var ae=ie.index;z=z.slice(0,ae===n?U:ae)}}else if(r.indexOf(Bn(k),U)!=U){var ge=z.lastIndexOf(k);ge>-1&&(z=z.slice(0,ge))}return z+m}function N_(r){return r=wt(r),r&&Ei.test(r)?r.replace(st,dx):r}var $_=xs(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Hl=ig("toUpperCase");function n1(r,s,c){return r=wt(r),s=c?n:s,s===n?ux(r)?yx(r):ZE(r):r.match(s)||[]}var r1=tt(function(r,s){try{return On(r,n,s)}catch(c){return Vl(c)?c:new Ue(c)}}),M_=Rr(function(r,s){return Wn(s,function(c){c=wr(c),Br(r,c,Ml(r[c],r))}),r});function U_(r){var s=r==null?0:r.length,c=Be();return r=s?Rt(r,function(m){if(typeof m[1]!="function")throw new Kn(u);return[c(m[0]),m[1]]}):[],tt(function(m){for(var k=-1;++k<s;){var R=r[k];if(On(R[0],this,m))return On(R[1],this,m)}})}function V_(r){return dS(zn(r,g))}function zl(r){return function(){return r}}function q_(r,s){return r==null||r!==r?s:r}var W_=og(),K_=og(!0);function _n(r){return r}function Gl(r){return P0(typeof r=="function"?r:zn(r,g))}function H_(r){return N0(zn(r,g))}function z_(r,s){return $0(r,zn(s,g))}var G_=tt(function(r,s){return function(c){return bo(c,r,s)}}),J_=tt(function(r,s){return function(c){return bo(r,c,s)}});function Jl(r,s,c){var m=rn(s),k=Ja(s,m);c==null&&!(Nt(s)&&(k.length||!m.length))&&(c=s,s=r,r=this,k=Ja(s,rn(s)));var R=!(Nt(c)&&"chain"in c)||!!c.chain,$=Pr(r);return Wn(k,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__),ae=se.__actions__=Sn(this.__actions__);return ae.push({func:z,args:arguments,thisArg:r}),se.__chain__=ie,se}return z.apply(r,Zr([this.value()],arguments))})}),r}function Y_(){return un._===this&&(un._=xx),this}function Yl(){}function X_(r){return r=He(r),tt(function(s){return M0(s,r)})}var Q_=kl(Rt),Z_=kl(a0),e8=kl(Qc);function i1(r){return Rl(r)?Zc(wr(r)):OS(r)}function t8(r){return function(s){return r==null?n:Ii(r,s)}}var n8=ug(),r8=ug(!0);function Xl(){return[]}function Ql(){return!1}function i8(){return{}}function s8(){return""}function o8(){return!0}function a8(r,s){if(r=He(r),r<1||r>Oe)return[];var c=ye,m=hn(r,ye);s=Be(s),r-=ye;for(var k=nl(m,s);++c<r;)s(c);return k}function u8(r){return qe(r)?Rt(r,wr):Dn(r)?[r]:Sn(Ag(wt(r)))}function c8(r){var s=++vx;return wt(r)+s}var l8=tu(function(r,s){return r+s},0),f8=Tl("ceil"),h8=tu(function(r,s){return r/s},1),d8=Tl("floor");function p8(r){return r&&r.length?Ga(r,_n,dl):n}function g8(r,s){return r&&r.length?Ga(r,Be(s,2),dl):n}function y8(r){return l0(r,_n)}function m8(r,s){return l0(r,Be(s,2))}function b8(r){return r&&r.length?Ga(r,_n,ml):n}function w8(r,s){return r&&r.length?Ga(r,Be(s,2),ml):n}var v8=tu(function(r,s){return r*s},1),E8=Tl("round"),x8=tu(function(r,s){return r-s},0);function S8(r){return r&&r.length?tl(r,_n):0}function A8(r,s){return r&&r.length?tl(r,Be(s,2)):0}return D.after=HC,D.ary=Lg,D.assign=D3,D.assignIn=Jg,D.assignInWith=pu,D.assignWith=R3,D.at=L3,D.before=Pg,D.bind=Ml,D.bindAll=M_,D.bindKey=jg,D.castArray=i3,D.chain=Bg,D.chunk=dA,D.compact=pA,D.concat=gA,D.cond=U_,D.conforms=V_,D.constant=zl,D.countBy=SC,D.create=P3,D.curry=Ng,D.curryRight=$g,D.debounce=Mg,D.defaults=j3,D.defaultsDeep=N3,D.defer=zC,D.delay=GC,D.difference=yA,D.differenceBy=mA,D.differenceWith=bA,D.drop=wA,D.dropRight=vA,D.dropRightWhile=EA,D.dropWhile=xA,D.fill=SA,D.filter=CC,D.flatMap=TC,D.flatMapDeep=IC,D.flatMapDepth=OC,D.flatten=Tg,D.flattenDeep=AA,D.flattenDepth=CA,D.flip=JC,D.flow=W_,D.flowRight=K_,D.fromPairs=_A,D.functions=K3,D.functionsIn=H3,D.groupBy=FC,D.initial=TA,D.intersection=IA,D.intersectionBy=OA,D.intersectionWith=FA,D.invert=G3,D.invertBy=J3,D.invokeMap=DC,D.iteratee=Gl,D.keyBy=RC,D.keys=rn,D.keysIn=Cn,D.map=uu,D.mapKeys=X3,D.mapValues=Q3,D.matches=H_,D.matchesProperty=z_,D.memoize=lu,D.merge=Z3,D.mergeWith=Yg,D.method=G_,D.methodOf=J_,D.mixin=Jl,D.negate=fu,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=Ul,D.partialRight=Ug,D.partition=PC,D.pick=n_,D.pickBy=Xg,D.property=i1,D.propertyOf=t8,D.pull=LA,D.pullAll=Og,D.pullAllBy=PA,D.pullAllWith=jA,D.pullAt=NA,D.range=n8,D.rangeRight=r8,D.rearg=QC,D.reject=$C,D.remove=$A,D.rest=ZC,D.reverse=Nl,D.sampleSize=UC,D.set=i_,D.setWith=s_,D.shuffle=VC,D.slice=MA,D.sortBy=KC,D.sortedUniq=zA,D.sortedUniqBy=GA,D.split=T_,D.spread=e3,D.tail=JA,D.take=YA,D.takeRight=XA,D.takeRightWhile=QA,D.takeWhile=ZA,D.tap=pC,D.throttle=t3,D.thru=au,D.toArray=Hg,D.toPairs=Qg,D.toPairsIn=Zg,D.toPath=u8,D.toPlainObject=Gg,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=$l,D.unzipWith=Fg,D.update=u_,D.updateWith=c_,D.values=Cs,D.valuesIn=l_,D.without=oC,D.words=n1,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=Qg,D.entriesIn=Zg,D.extend=Jg,D.extendWith=pu,Jl(D,D),D.add=l8,D.attempt=r1,D.camelCase=p_,D.capitalize=e1,D.ceil=f8,D.clamp=f_,D.clone=s3,D.cloneDeep=a3,D.cloneDeepWith=u3,D.cloneWith=o3,D.conformsTo=c3,D.deburr=t1,D.defaultTo=q_,D.divide=h8,D.endsWith=g_,D.eq=ar,D.escape=y_,D.escapeRegExp=m_,D.every=AC,D.find=_C,D.findIndex=_g,D.findKey=$3,D.findLast=kC,D.findLastIndex=kg,D.findLastKey=M3,D.floor=d8,D.forEach=Dg,D.forEachRight=Rg,D.forIn=U3,D.forInRight=V3,D.forOwn=q3,D.forOwnRight=W3,D.get=Wl,D.gt=l3,D.gte=f3,D.has=z3,D.hasIn=Kl,D.head=Ig,D.identity=_n,D.includes=BC,D.indexOf=kA,D.inRange=h_,D.invoke=Y3,D.isArguments=Bi,D.isArray=qe,D.isArrayBuffer=h3,D.isArrayLike=An,D.isArrayLikeObject=zt,D.isBoolean=d3,D.isBuffer=oi,D.isDate=p3,D.isElement=g3,D.isEmpty=y3,D.isEqual=m3,D.isEqualWith=b3,D.isError=Vl,D.isFinite=w3,D.isFunction=Pr,D.isInteger=Vg,D.isLength=hu,D.isMap=qg,D.isMatch=v3,D.isMatchWith=E3,D.isNaN=x3,D.isNative=S3,D.isNil=C3,D.isNull=A3,D.isNumber=Wg,D.isObject=Nt,D.isObjectLike=$t,D.isPlainObject=Ao,D.isRegExp=ql,D.isSafeInteger=_3,D.isSet=Kg,D.isString=du,D.isSymbol=Dn,D.isTypedArray=As,D.isUndefined=k3,D.isWeakMap=T3,D.isWeakSet=I3,D.join=BA,D.kebabCase=b_,D.last=Jn,D.lastIndexOf=DA,D.lowerCase=w_,D.lowerFirst=v_,D.lt=O3,D.lte=F3,D.max=p8,D.maxBy=g8,D.mean=y8,D.meanBy=m8,D.min=b8,D.minBy=w8,D.stubArray=Xl,D.stubFalse=Ql,D.stubObject=i8,D.stubString=s8,D.stubTrue=o8,D.multiply=v8,D.nth=RA,D.noConflict=Y_,D.noop=Yl,D.now=cu,D.pad=E_,D.padEnd=x_,D.padStart=S_,D.parseInt=A_,D.random=d_,D.reduce=jC,D.reduceRight=NC,D.repeat=C_,D.replace=__,D.result=r_,D.round=E8,D.runInContext=H,D.sample=MC,D.size=qC,D.snakeCase=k_,D.some=WC,D.sortedIndex=UA,D.sortedIndexBy=VA,D.sortedIndexOf=qA,D.sortedLastIndex=WA,D.sortedLastIndexBy=KA,D.sortedLastIndexOf=HA,D.startCase=I_,D.startsWith=O_,D.subtract=x8,D.sum=S8,D.sumBy=A8,D.template=F_,D.times=a8,D.toFinite=jr,D.toInteger=He,D.toLength=zg,D.toLower=B_,D.toNumber=Yn,D.toSafeInteger=B3,D.toString=wt,D.toUpper=D_,D.trim=R_,D.trimEnd=L_,D.trimStart=P_,D.truncate=j_,D.unescape=N_,D.uniqueId=c8,D.upperCase=$_,D.upperFirst=Hl,D.each=Dg,D.eachRight=Rg,D.first=Ig,Jl(D,function(){var r={};return mr(D,function(s,c){Et.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(He(c),0);var m=this.__filtered__&&!s?new ot(this):this.clone();return m.__filtered__?m.__takeCount__=hn(c,m.__takeCount__):m.__views__.push({size:hn(c,ye),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==Ae||c==Se;ot.prototype[r]=function(k){var R=this.clone();return R.__iteratees__.push({iteratee:Be(k,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(_n)},ot.prototype.find=function(r){return this.filter(r).head()},ot.prototype.findLast=function(r){return this.reverse().find(r)},ot.prototype.invokeMap=tt(function(r,s){return typeof r=="function"?new ot(this):this.map(function(c){return bo(c,r,s)})}),ot.prototype.reject=function(r){return this.filter(fu(Be(r)))},ot.prototype.slice=function(r,s){r=He(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=He(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(ye)},mr(ot.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),k=D[m?"take"+(s=="last"?"Right":""):s],R=m||/^find/.test(s);k&&(D.prototype[s]=function(){var $=this.__wrapped__,U=m?[1]:arguments,z=$ instanceof ot,ie=U[0],se=z||qe($),ae=function(it){var at=k.apply(D,Zr([it],U));return m&&ge?at[0]:at};se&&c&&typeof ie=="function"&&ie.length!=1&&(z=se=!1);var ge=this.__chain__,Ce=!!this.__actions__.length,Le=R&&!ge,Qe=z&&!Ce;if(!R&&se){$=Qe?$:new ot(this);var Pe=r.apply($,U);return Pe.__actions__.push({func:au,args:[ae],thisArg:n}),new Hn(Pe,ge)}return Le&&Qe?r.apply(this,U):(Pe=this.thru(ae),Le?m?Pe.value()[0]:Pe.value():Pe)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(r){var s=Da[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);D.prototype[r]=function(){var k=arguments;if(m&&!this.__chain__){var R=this.value();return s.apply(qe(R)?R:[],k)}return this[c](function($){return s.apply(qe($)?$:[],k)})}}),mr(ot.prototype,function(r,s){var c=D[s];if(c){var m=c.name+"";Et.call(ws,m)||(ws[m]=[]),ws[m].push({name:s,func:c})}}),ws[eu(n,T).name]=[{name:"wrapper",func:n}],ot.prototype.clone=Nx,ot.prototype.reverse=$x,ot.prototype.value=Mx,D.prototype.at=gC,D.prototype.chain=yC,D.prototype.commit=mC,D.prototype.next=bC,D.prototype.plant=vC,D.prototype.reverse=EC,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=xC,D.prototype.first=D.prototype.head,lo&&(D.prototype[lo]=wC),D},ys=mx();Ai?((Ai.exports=ys)._=ys,Gc._=ys):un._=ys}).call(Xn)}(Xo,Xo.exports);var qr=Xo.exports;const ln=mu(qr),Xm={ShortenedText:Ge.div`
163
163
  max-width: ${({$maxWidth:e})=>e}px;
164
164
  overflow: hidden;
165
165
  white-space: nowrap;
166
166
  text-overflow: ellipsis;
167
- `},Hi=({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(t2.ShortenedText,{$maxWidth:n,children:e})})},n2=({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"})]})]})},r2=Je.div`
167
+ `},Hi=({text:e,trimLength:t,maxWidth:n=200})=>{if(t){const i=e.substring(0,t);return E.jsx(V.Tooltip,{title:e,placement:"top",children:i})}return E.jsx(V.Tooltip,{title:e,children:E.jsx(Xm.ShortenedText,{$maxWidth:n,children:e})})},Qm=({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i,close:o})=>{const a=(l,f)=>{f({closeDropdown:!1})},u=l=>{l()};return E.jsxs("div",{style:{padding:8},onKeyDown:l=>l.stopPropagation(),children:[E.jsx(V.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"}}),E.jsxs(V.Space,{children:[E.jsx(V.Button,{onClick:()=>{i&&(i(),u(i)),a([],n)},size:"small",style:{width:90},children:"Reset"}),E.jsx(V.Button,{type:"link",size:"small",onClick:()=>{o()},children:"close"})]})]})},Zm=Ge.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
- `,i2=Je.div`
207
+ `,e2=Ge.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
- `,Mh={TableContainer:r2,HideableControls:i2},Uh=Je(q.Button)`
217
+ `,jh={TableContainer:Zm,HideableControls:e2},Nh=Ge(V.Button)`
218
218
  height: 24px !important;
219
- `,s2=Je.div`
219
+ `,t2=Ge.div`
220
220
  text-align: ${({$align:e})=>e};
221
- `,Vh=({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)})},qh=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),Wh=({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=>f===null?A.jsx("div",{children:"null"}):typeof f=="object"&&!Array.isArray(f)?qh(f)?A.jsx(Vh,{tags:Object.entries(f).map(([d,p])=>`${d}: ${String(p)}`),trimLength:u}):A.jsx(Hi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(d=>d&&!Array.isArray(d))?A.jsx(Vh,{tags:f.map(d=>d?d.toLocaleString():"null"),trimLength:u}):A.jsx(Hi,{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(Hi,{trimLength:u,text:String(f)}):typeof f=="string"?A.jsx(Hi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?A.jsx(Hi,{trimLength:u,text:a}):A.jsx(Hi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:d,confirm:p,clearFilters:g,close:v})=>A.jsx(n2,{setSelectedKeys:f,selectedKeys:d,confirm:p,clearFilters:g,close:v}),filterIcon:f=>A.jsx(wn.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,d)=>{const{dataIndex:p}=o,g=Array.isArray(p)?qr.get(d,p):d[p];if(typeof g=="object"&&!Array.isArray(g))return JSON.stringify(g).toLowerCase().includes(f.toLowerCase());if(Array.isArray(g))return g.some(v=>v.toLowerCase().includes(f.toLowerCase()));if(typeof g=="boolean"){const v=f.toLowerCase()==="true";return g===v}return typeof g=="number"?String(g).includes(f.toLowerCase()):typeof g=="string"?g.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,d)=>{const{dataIndex:p}=o,g=Array.isArray(p)?qr.get(f,p):f[p],v=Array.isArray(p)?qr.get(d,p):d[p];return typeof g=="object"&&!Array.isArray(g)&&g!==null?typeof v=="object"&&!Array.isArray(v)&&v!==null?Object.keys(g).length-Object.keys(v).length:Object.keys(g).length?-1:1:Array.isArray(g)?Array.isArray(v)?g.length-v.length:g.length?-1:1:typeof g=="boolean"?g===v?0:g?-1:1:typeof g=="number"?typeof v=="number"?g-v:g?-1:1:typeof g=="string"?typeof v=="string"?g.localeCompare(v):g?-1:1:0}}})},Kh=({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(s2,{$align:"right",className:"hideable",children:[A.jsx(Uh,{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(Uh,{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})]})}]},Hh=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:d,withoutControls:p=!1,tableProps:g})=>{const v=cr.useNavigate();if(!i)return null;const C=Wh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!C)return null;const E=p?C:Kh({enrichedColumns:C,navigate:v,baseprefix:t,editIcon:g?.editIcon,deleteIcon:g?.deleteIcon});if(!E)return null;const S=b=>`Total: ${b}`;return A.jsx(Mh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:g?.borderless,$isTotalLeft:g?.isTotalLeft,children:A.jsx(Mh.HideableControls,{children:A.jsx(q.Table,{dataSource:n,columns:E,pagination:{position:g?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:S},scroll:{x:"max-content"},rowSelection:d?{type:"checkbox",selectedRowKeys:d.selectedRowKeys,onChange:(b,T)=>{d.onChange(b,T.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 T=qr.get(b,a),N=typeof T=="string"?T:JSON.stringify(T),L=o.replaceAll("~recordValue~",N);v(L)}}})})})})};function Zo(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 zh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(d,p){if(!o[d]){if(!i[d]){var g=typeof Zo=="function"&&Zo;if(!p&&g)return g(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(E){var S=i[d][1][E];return u(S||E)},C,C.exports,n,i,o,a)}return o[d].exports}for(var l=typeof Zo=="function"&&Zo,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,p,g,v,C,E,S,b,T,N,L,_,O,F,B;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"},p={Data:1,Get:2,Set:4},g={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 Y(h){return h>=48&&h<=57}function fe(h){return"0123456789abcdefABCDEF".indexOf(h)>=0}function le(h){return"01234567".indexOf(h)>=0}function be(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 ve(h){return h===10||h===13||h===8232||h===8233}function Ce(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 pe(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 Ee(h){switch(h){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function Oe(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 Be(h){return h==="eval"||h==="arguments"}function Ze(h){if(S&&Oe(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,K,ne){var he;W(typeof j=="number","Comment must have valid position"),!(F.lastCommentStart>=j)&&(F.lastCommentStart=j,he={type:h,value:x},B.range&&(he.range=[j,K]),B.loc&&(he.loc=ne),B.comments.push(he),B.attachComment&&(B.leadingComments.push(he),B.trailingComments.push(he)))}function we(h){var x,j,K,ne;for(x=b-h,j={start:{line:T,column:b-N-h}};b<L;)if(K=E.charCodeAt(b),++b,ve(K)){B.comments&&(ne=E.slice(x+h,b-1),j.end={line:T,column:b-N-1},Ae("Line",ne,x,b-1,j)),K===13&&E.charCodeAt(b)===10&&++b,++T,N=b;return}B.comments&&(ne=E.slice(x+h,b),j.end={line:T,column:b-N},Ae("Line",ne,x,b,j))}function Ke(){var h,x,j,K;for(B.comments&&(h=b-2,x={start:{line:T,column:b-N-2}});b<L;)if(j=E.charCodeAt(b),ve(j))j===13&&E.charCodeAt(b+1)===10&&++b,++T,++b,N=b,b>=L&&ge({},g.UnexpectedToken,"ILLEGAL");else if(j===42){if(E.charCodeAt(b+1)===47){++b,++b,B.comments&&(K=E.slice(h+2,b-2),x.end={line:T,column:b-N},Ae("Block",K,h,b,x));return}++b}else++b;ge({},g.UnexpectedToken,"ILLEGAL")}function J(){var h,x;for(x=b===0;b<L;)if(h=E.charCodeAt(b),be(h))++b;else if(ve(h))++b,h===13&&E.charCodeAt(b)===10&&++b,++T,N=b,x=!0;else if(h===47)if(h=E.charCodeAt(b+1),h===47)++b,++b,we(2),x=!0;else if(h===42)++b,++b,Ke();else break;else if(x&&h===45)if(E.charCodeAt(b+1)===45&&E.charCodeAt(b+2)===62)b+=3,we(3);else break;else if(h===60)if(E.slice(b+1,b+4)==="!--")++b,++b,++b,++b,we(4);else break;else break}function Q(h){var x,j,K,ne=0;for(j=h==="u"?4:2,x=0;x<j;++x)if(b<L&&fe(E[b]))K=E[b++],ne=ne*16+"0123456789abcdef".indexOf(K.toLowerCase());else return"";return String.fromCharCode(ne)}function ue(){var h,x;for(h=E.charCodeAt(b++),x=String.fromCharCode(h),h===92&&(E.charCodeAt(b)!==117&&ge({},g.UnexpectedToken,"ILLEGAL"),++b,h=Q("u"),(!h||h==="\\"||!Ce(h.charCodeAt(0)))&&ge({},g.UnexpectedToken,"ILLEGAL"),x=h);b<L&&(h=E.charCodeAt(b),!!pe(h));)++b,x+=String.fromCharCode(h),h===92&&(x=x.substr(0,x.length-1),E.charCodeAt(b)!==117&&ge({},g.UnexpectedToken,"ILLEGAL"),++b,h=Q("u"),(!h||h==="\\"||!pe(h.charCodeAt(0)))&&ge({},g.UnexpectedToken,"ILLEGAL"),x+=h);return x}function De(){var h,x;for(h=b++;b<L;){if(x=E.charCodeAt(b),x===92)return b=h,ue();if(pe(x))++b;else break}return E.slice(h,b)}function Ye(){var h,x,j;return h=b,x=E.charCodeAt(b)===92?ue():De(),x.length===1?j=u.Identifier:Ze(x)?j=u.Keyword:x==="null"?j=u.NullLiteral:x==="true"||x==="false"?j=u.BooleanLiteral:j=u.Identifier,{type:j,value:x,lineNumber:T,lineStart:N,start:h,end:b}}function ke(){var h=b,x=E.charCodeAt(b),j,K=E[b],ne,he,He;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,B.tokenize&&(x===40?B.openParenToken=B.tokens.length:x===123&&(B.openCurlyToken=B.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(x),lineNumber:T,lineStart:N,start:h,end:b};default:if(j=E.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:T,lineStart:N,start:h,end:b};case 33:case 61:return b+=2,E.charCodeAt(b)===61&&++b,{type:u.Punctuator,value:E.slice(h,b),lineNumber:T,lineStart:N,start:h,end:b}}}if(He=E.substr(b,4),He===">>>=")return b+=4,{type:u.Punctuator,value:He,lineNumber:T,lineStart:N,start:h,end:b};if(he=He.substr(0,3),he===">>>"||he==="<<="||he===">>=")return b+=3,{type:u.Punctuator,value:he,lineNumber:T,lineStart:N,start:h,end:b};if(ne=he.substr(0,2),K===ne[1]&&"+-<>&|".indexOf(K)>=0||ne==="=>")return b+=2,{type:u.Punctuator,value:ne,lineNumber:T,lineStart:N,start:h,end:b};if("<>=!+-*%&|^/".indexOf(K)>=0)return++b,{type:u.Punctuator,value:K,lineNumber:T,lineStart:N,start:h,end:b};ge({},g.UnexpectedToken,"ILLEGAL")}function Pe(h){for(var x="";b<L&&fe(E[b]);)x+=E[b++];return x.length===0&&ge({},g.UnexpectedToken,"ILLEGAL"),Ce(E.charCodeAt(b))&&ge({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+x,16),lineNumber:T,lineStart:N,start:h,end:b}}function Fe(h){for(var x="0"+E[b++];b<L&&le(E[b]);)x+=E[b++];return(Ce(E.charCodeAt(b))||Y(E.charCodeAt(b)))&&ge({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(x,8),octal:!0,lineNumber:T,lineStart:N,start:h,end:b}}function Ne(){var h,x,j;if(j=E[b],W(Y(j.charCodeAt(0))||j===".","Numeric literal must start with a decimal digit or a decimal point"),x=b,h="",j!=="."){if(h=E[b++],j=E[b],h==="0"){if(j==="x"||j==="X")return++b,Pe(x);if(le(j))return Fe(x);j&&Y(j.charCodeAt(0))&&ge({},g.UnexpectedToken,"ILLEGAL")}for(;Y(E.charCodeAt(b));)h+=E[b++];j=E[b]}if(j==="."){for(h+=E[b++];Y(E.charCodeAt(b));)h+=E[b++];j=E[b]}if(j==="e"||j==="E")if(h+=E[b++],j=E[b],(j==="+"||j==="-")&&(h+=E[b++]),Y(E.charCodeAt(b)))for(;Y(E.charCodeAt(b));)h+=E[b++];else ge({},g.UnexpectedToken,"ILLEGAL");return Ce(E.charCodeAt(b))&&ge({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(h),lineNumber:T,lineStart:N,start:x,end:b}}function _t(){var h="",x,j,K,ne,he,He,yt=!1,Qt,Ht;for(Qt=T,Ht=N,x=E[b],W(x==="'"||x==='"',"String literal must starts with a quote"),j=b,++b;b<L;)if(K=E[b++],K===x){x="";break}else if(K==="\\")if(K=E[b++],!K||!ve(K.charCodeAt(0)))switch(K){case"u":case"x":He=b,he=Q(K),he?h+=he:(b=He,h+=K);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:le(K)?(ne="01234567".indexOf(K),ne!==0&&(yt=!0),b<L&&le(E[b])&&(yt=!0,ne=ne*8+"01234567".indexOf(E[b++]),"0123".indexOf(K)>=0&&b<L&&le(E[b])&&(ne=ne*8+"01234567".indexOf(E[b++]))),h+=String.fromCharCode(ne)):h+=K;break}else++T,K==="\r"&&E[b]===`
223
- `&&++b,N=b;else{if(ve(K.charCodeAt(0)))break;h+=K}return x!==""&&ge({},g.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:h,octal:yt,startLineNumber:Qt,startLineStart:Ht,lineNumber:T,lineStart:N,start:j,end:b}}function nn(h,x){var j;try{j=new RegExp(h,x)}catch{ge({},g.InvalidRegExp)}return j}function Pt(){var h,x,j,K,ne;for(h=E[b],W(h==="/","Regular expression literal must start with a slash"),x=E[b++],j=!1,K=!1;b<L;)if(h=E[b++],x+=h,h==="\\")h=E[b++],ve(h.charCodeAt(0))&&ge({},g.UnterminatedRegExp),x+=h;else if(ve(h.charCodeAt(0)))ge({},g.UnterminatedRegExp);else if(j)h==="]"&&(j=!1);else if(h==="/"){K=!0;break}else h==="["&&(j=!0);return K||ge({},g.UnterminatedRegExp),ne=x.substr(1,x.length-2),{value:ne,literal:x}}function Rt(){var h,x,j,K;for(x="",j="";b<L&&(h=E[b],!!pe(h.charCodeAt(0)));)if(++b,h==="\\"&&b<L)if(h=E[b],h==="u"){if(++b,K=b,h=Q("u"),h)for(j+=h,x+="\\u";K<b;++K)x+=E[K];else b=K,j+="u",x+="\\u";xe({},g.UnexpectedToken,"ILLEGAL")}else x+="\\",xe({},g.UnexpectedToken,"ILLEGAL");else j+=h,x+=h;return{value:j,literal:x}}function Lt(){var h,x,j,K;return O=null,J(),h=b,x=Pt(),j=Rt(),K=nn(x.value,j.value),B.tokenize?{type:u.RegularExpression,value:K,lineNumber:T,lineStart:N,start:h,end:b}:{literal:x.literal+j.literal,value:K,start:h,end:b}}function wt(){var h,x,j,K;return J(),h=b,x={start:{line:T,column:b-N}},j=Lt(),x.end={line:T,column:b-N},B.tokenize||(B.tokens.length>0&&(K=B.tokens[B.tokens.length-1],K.range[0]===h&&K.type==="Punctuator"&&(K.value==="/"||K.value==="/=")&&B.tokens.pop()),B.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 An(){var h,x;if(h=B.tokens[B.tokens.length-1],!h)return wt();if(h.type==="Punctuator"){if(h.value==="]")return ke();if(h.value===")")return x=B.tokens[B.openParenToken-1],x&&x.type==="Keyword"&&(x.value==="if"||x.value==="while"||x.value==="for"||x.value==="with")?wt():ke();if(h.value==="}"){if(B.tokens[B.openCurlyToken-3]&&B.tokens[B.openCurlyToken-3].type==="Keyword"){if(x=B.tokens[B.openCurlyToken-4],!x)return ke()}else if(B.tokens[B.openCurlyToken-4]&&B.tokens[B.openCurlyToken-4].type==="Keyword"){if(x=B.tokens[B.openCurlyToken-5],!x)return wt()}else return ke();return f.indexOf(x.value)>=0?ke():wt()}return wt()}return h.type==="Keyword"?wt():ke()}function _e(){var h;return J(),b>=L?{type:u.EOF,lineNumber:T,lineStart:N,start:b,end:b}:(h=E.charCodeAt(b),Ce(h)?Ye():h===40||h===41||h===59?ke():h===39||h===34?_t():h===46?Y(E.charCodeAt(b+1))?Ne():ke():Y(h)?Ne():B.tokenize&&h===47?An():ke())}function Re(){var h,x,j;return J(),h={start:{line:T,column:b-N}},x=_e(),h.end={line:T,column:b-N},x.type!==u.EOF&&(j=E.slice(x.start,x.end),B.tokens.push({type:l[x.type],value:j,range:[x.start,x.end],loc:h})),x}function de(){var h;return h=O,b=h.end,T=h.lineNumber,N=h.lineStart,O=typeof B.tokens<"u"?Re():_e(),b=h.end,T=h.lineNumber,N=h.lineStart,h}function Et(){var h,x,j;h=b,x=T,j=N,O=typeof B.tokens<"u"?Re():_e(),b=h,T=x,N=j}function Nt(h,x){this.line=h,this.column=x}function vt(h,x,j,K){this.start=new Nt(h,x),this.end=new Nt(j,K)}C={name:"SyntaxTree",processComment:function(h){var x,j;if(!(h.type===d.Program&&h.body.length>0)){for(B.trailingComments.length>0?B.trailingComments[0].range[0]>=h.range[1]?(j=B.trailingComments,B.trailingComments=[]):B.trailingComments.length=0:B.bottomRightStack.length>0&&B.bottomRightStack[B.bottomRightStack.length-1].trailingComments&&B.bottomRightStack[B.bottomRightStack.length-1].trailingComments[0].range[0]>=h.range[1]&&(j=B.bottomRightStack[B.bottomRightStack.length-1].trailingComments,delete B.bottomRightStack[B.bottomRightStack.length-1].trailingComments);B.bottomRightStack.length>0&&B.bottomRightStack[B.bottomRightStack.length-1].range[0]>=h.range[0];)x=B.bottomRightStack.pop();x?x.leadingComments&&x.leadingComments[x.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=x.leadingComments,delete x.leadingComments):B.leadingComments.length>0&&B.leadingComments[B.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=B.leadingComments,B.leadingComments=[]),j&&(h.trailingComments=j),B.bottomRightStack.push(h)}},markEnd:function(h,x){return B.range&&(h.range=[x.start,b]),B.loc&&(h.loc=new vt(x.startLineNumber===void 0?x.lineNumber:x.startLineNumber,x.start-(x.startLineStart===void 0?x.lineStart:x.startLineStart),T,b-N),this.postProcess(h)),B.attachComment&&this.processComment(h),h},postProcess:function(h){return B.source&&(h.loc.source=B.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 K=h==="||"||h==="&&"?d.LogicalExpression:d.BinaryExpression;return{type:K,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,K){return{type:d.ForStatement,init:h,test:x,update:j,body:K}},createForInStatement:function(h,x,j){return{type:d.ForInStatement,left:h,right:x,body:j,each:!1}},createFunctionDeclaration:function(h,x,j,K){return{type:d.FunctionDeclaration,id:h,params:x,defaults:j,body:K,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(h,x,j,K){return{type:d.FunctionExpression,id:h,params:x,defaults:j,body:K,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:E.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,K){return{type:d.TryStatement,block:h,guardedHandlers:x,handlers:j,finalizer:K}},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,K;return h=b,x=T,j=N,J(),K=T!==x,b=h,T=x,N=j,K}function ge(h,x){var j,K=Array.prototype.slice.call(arguments,2),ne=x.replace(/%(\d)/g,function(he,He){return W(He<K.length,"Message reference must be in range"),K[He]});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 "+T+": "+ne),j.index=b,j.lineNumber=T,j.column=b-N+1),j.description=ne,j}function xe(){try{ge.apply(null,arguments)}catch(h){if(B.errors)B.errors.push(h);else throw h}}function ut(h){if(h.type===u.EOF&&ge(h,g.UnexpectedEOS),h.type===u.NumericLiteral&&ge(h,g.UnexpectedNumber),h.type===u.StringLiteral&&ge(h,g.UnexpectedString),h.type===u.Identifier&&ge(h,g.UnexpectedIdentifier),h.type===u.Keyword){if(Ee(h.value))ge(h,g.UnexpectedReserved);else if(S&&Oe(h.value)){xe(h,g.StrictReservedWord);return}ge(h,g.UnexpectedToken,h.value)}ge(h,g.UnexpectedToken,h.value)}function I(h){var x=de();(x.type!==u.Punctuator||x.value!==h)&&ut(x)}function y(h){var x=de();(x.type!==u.Keyword||x.value!==h)&&ut(x)}function w(h){return O.type===u.Punctuator&&O.value===h}function R(h){return O.type===u.Keyword&&O.value===h}function V(){var h;return O.type!==u.Punctuator?!1:(h=O.value,h==="="||h==="*="||h==="/="||h==="%="||h==="+="||h==="-="||h==="<<="||h===">>="||h===">>>="||h==="&="||h==="^="||h==="|=")}function G(){var h;if(E.charCodeAt(b)===59||w(";")){de();return}h=T,J(),T===h&&O.type!==u.EOF&&!w("}")&&ut(O)}function ee(h){return h.type===d.Identifier||h.type===d.MemberExpression}function Me(){var h=[],x;for(x=O,I("[");!w("]");)w(",")?(de(),h.push(null)):(h.push(pn()),w("]")||I(","));return de(),_.markEnd(_.createArrayExpression(h),x)}function pt(h,x){var j,K,ne;return j=S,ne=O,K=ls(),x&&S&&Be(h[0].name)&&xe(x,g.StrictParamName),S=j,_.markEnd(_.createFunctionExpression(null,h,[],K),ne)}function ct(){var h,x;return x=O,h=de(),h.type===u.StringLiteral||h.type===u.NumericLiteral?(S&&h.octal&&xe(h,g.StrictOctalLiteral),_.markEnd(_.createLiteral(h),x)):_.markEnd(_.createIdentifier(h.value),x)}function dt(){var h,x,j,K,ne,he;if(h=O,he=O,h.type===u.Identifier)return j=ct(),h.value==="get"&&!w(":")?(x=ct(),I("("),I(")"),K=pt([]),_.markEnd(_.createProperty("get",x,K),he)):h.value==="set"&&!w(":")?(x=ct(),I("("),h=O,h.type!==u.Identifier?(I(")"),xe(h,g.UnexpectedToken,h.value),K=pt([])):(ne=[Ie()],I(")"),K=pt(ne,h)),_.markEnd(_.createProperty("set",x,K),he)):(I(":"),K=pn(),_.markEnd(_.createProperty("init",j,K),he));if(h.type===u.EOF||h.type===u.Punctuator)ut(h);else return x=ct(),I(":"),K=pn(),_.markEnd(_.createProperty("init",x,K),he)}function st(){var h=[],x,j,K,ne,he={},He=String,yt;for(yt=O,I("{");!w("}");)x=dt(),x.key.type===d.Identifier?j=x.key.name:j=He(x.key.value),ne=x.kind==="init"?p.Data:x.kind==="get"?p.Get:p.Set,K="$"+j,Object.prototype.hasOwnProperty.call(he,K)?(he[K]===p.Data?S&&ne===p.Data?xe({},g.StrictDuplicateProperty):ne!==p.Data&&xe({},g.AccessorDataProperty):ne===p.Data?xe({},g.AccessorDataProperty):he[K]&ne&&xe({},g.AccessorGetSet),he[K]|=ne):he[K]=ne,h.push(x),w("}")||I(",");return I("}"),_.markEnd(_.createObjectExpression(h),yt)}function Gr(){var h;return I("("),h=M(),I(")"),h}function Ai(){var h,x,j,K;if(w("("))return Gr();if(w("["))return Me();if(w("{"))return st();if(h=O.type,K=O,h===u.Identifier)j=_.createIdentifier(de().value);else if(h===u.StringLiteral||h===u.NumericLiteral)S&&O.octal&&xe(O,g.StrictOctalLiteral),j=_.createLiteral(de());else if(h===u.Keyword){if(R("function"))return Jc();R("this")?(de(),j=_.createThisExpression()):ut(de())}else h===u.BooleanLiteral?(x=de(),x.value=x.value==="true",j=_.createLiteral(x)):h===u.NullLiteral?(x=de(),x.value=null,j=_.createLiteral(x)):w("/")||w("/=")?(typeof B.tokens<"u"?j=_.createLiteral(wt()):j=_.createLiteral(Lt()),Et()):ut(de());return _.markEnd(j,K)}function as(){var h=[];if(I("("),!w(")"))for(;b<L&&(h.push(pn()),!w(")"));)I(",");return I(")"),h}function us(){var h,x;return x=O,h=de(),kn(h)||ut(h),_.markEnd(_.createIdentifier(h.value),x)}function cs(){return I("."),us()}function Jr(){var h;return I("["),h=M(),I("]"),h}function Si(){var h,x,j;return j=O,y("new"),h=io(),x=w("(")?as():[],_.markEnd(_.createNewExpression(h,x),j)}function ro(){var h,x,j,K,ne;for(ne=O,h=F.allowIn,F.allowIn=!0,x=R("new")?Si():Ai(),F.allowIn=h;;){if(w("."))K=cs(),x=_.createMemberExpression(".",x,K);else if(w("("))j=as(),x=_.createCallExpression(x,j);else if(w("["))K=Jr(),x=_.createMemberExpression("[",x,K);else break;_.markEnd(x,ne)}return x}function io(){var h,x,j,K;for(K=O,h=F.allowIn,x=R("new")?Si():Ai(),F.allowIn=h;w(".")||w("[");)w("[")?(j=Jr(),x=_.createMemberExpression("[",x,j)):(j=cs(),x=_.createMemberExpression(".",x,j)),_.markEnd(x,K);return x}function Ir(){var h,x,j=O;return h=ro(),O.type===u.Punctuator&&(w("++")||w("--"))&&!rt()&&(S&&h.type===d.Identifier&&Be(h.name)&&xe({},g.StrictLHSPostfix),ee(h)||xe({},g.InvalidLHSInAssignment),x=de(),h=_.markEnd(_.createPostfixExpression(x.value,h),j)),h}function rr(){var h,x,j;return O.type!==u.Punctuator&&O.type!==u.Keyword?x=Ir():w("++")||w("--")?(j=O,h=de(),x=rr(),S&&x.type===d.Identifier&&Be(x.name)&&xe({},g.StrictLHSPrefix),ee(x)||xe({},g.InvalidLHSInAssignment),x=_.createUnaryExpression(h.value,x),x=_.markEnd(x,j)):w("+")||w("-")||w("~")||w("!")?(j=O,h=de(),x=rr(),x=_.createUnaryExpression(h.value,x),x=_.markEnd(x,j)):R("delete")||R("void")||R("typeof")?(j=O,h=de(),x=rr(),x=_.createUnaryExpression(h.value,x),x=_.markEnd(x,j),S&&x.operator==="delete"&&x.argument.type===d.Identifier&&xe({},g.StrictDelete)):x=Ir(),x}function Yr(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 so(){var h,x,j,K,ne,he,He,yt,Qt,Ht;if(h=O,Qt=rr(),K=O,ne=Yr(K,F.allowIn),ne===0)return Qt;for(K.prec=ne,de(),x=[h,O],He=rr(),he=[Qt,K,He];(ne=Yr(O,F.allowIn))>0;){for(;he.length>2&&ne<=he[he.length-2].prec;)He=he.pop(),yt=he.pop().value,Qt=he.pop(),j=_.createBinaryExpression(yt,Qt,He),x.pop(),h=x[x.length-1],_.markEnd(j,h),he.push(j);K=de(),K.prec=ne,he.push(K),x.push(O),j=rr(),he.push(j)}for(Ht=he.length-1,j=he[Ht],x.pop();Ht>1;)j=_.createBinaryExpression(he[Ht-1].value,he[Ht-2],j),Ht-=2,h=x.pop(),_.markEnd(j,h);return j}function oo(){var h,x,j,K,ne;return ne=O,h=so(),w("?")&&(de(),x=F.allowIn,F.allowIn=!0,j=pn(),F.allowIn=x,I(":"),K=pn(),h=_.createConditionalExpression(h,j,K),_.markEnd(h,ne)),h}function pn(){var h,x,j,K,ne;return h=O,ne=O,K=x=oo(),V()&&(ee(x)||xe({},g.InvalidLHSInAssignment),S&&x.type===d.Identifier&&Be(x.name)&&xe(h,g.StrictLHSAssignment),h=de(),j=pn(),K=_.markEnd(_.createAssignmentExpression(h.value,x,j),ne)),K}function M(){var h,x=O;if(h=pn(),w(",")){for(h=_.createSequenceExpression([h]);b<L&&w(",");)de(),h.expressions.push(pn());_.markEnd(h,x)}return h}function ce(){for(var h=[],x;b<L&&!(w("}")||(x=Xr(),typeof x>"u"));)h.push(x);return h}function ye(){var h,x;return x=O,I("{"),h=ce(),I("}"),_.markEnd(_.createBlockStatement(h),x)}function Ie(){var h,x;return x=O,h=de(),h.type!==u.Identifier&&ut(h),_.markEnd(_.createIdentifier(h.value),x)}function lt(h){var x=null,j,K;return K=O,j=Ie(),S&&Be(j.name)&&xe({},g.StrictVarName),h==="const"?(I("="),x=pn()):w("=")&&(de(),x=pn()),_.markEnd(_.createVariableDeclarator(j,x),K)}function ft(h){var x=[];do{if(x.push(lt(h)),!w(","))break;de()}while(b<L);return x}function nt(){var h;return y("var"),h=ft(),G(),_.createVariableDeclaration(h,"var")}function Xe(h){var x,j;return j=O,y(h),x=ft(h),G(),_.markEnd(_.createVariableDeclaration(x,h),j)}function Xt(){return I(";"),_.createEmptyStatement()}function Ot(){var h=M();return G(),_.createExpressionStatement(h)}function Bt(){var h,x,j;return y("if"),I("("),h=M(),I(")"),x=In(),R("else")?(de(),j=In()):j=null,_.createIfStatement(h,x,j)}function cn(){var h,x,j;return y("do"),j=F.inIteration,F.inIteration=!0,h=In(),F.inIteration=j,y("while"),I("("),x=M(),I(")"),w(";")&&de(),_.createDoWhileStatement(h,x)}function Tn(){var h,x,j;return y("while"),I("("),h=M(),I(")"),j=F.inIteration,F.inIteration=!0,x=In(),F.inIteration=j,_.createWhileStatement(h,x)}function ir(){var h,x,j;return j=O,h=de(),x=ft(),_.markEnd(_.createVariableDeclaration(x,h.value),j)}function Kt(){var h,x,j,K,ne,he,He;return h=x=j=null,y("for"),I("("),w(";")?de():(R("var")||R("let")?(F.allowIn=!1,h=ir(),F.allowIn=!0,h.declarations.length===1&&R("in")&&(de(),K=h,ne=M(),h=null)):(F.allowIn=!1,h=M(),F.allowIn=!0,R("in")&&(ee(h)||xe({},g.InvalidLHSInForIn),de(),K=h,ne=M(),h=null)),typeof K>"u"&&I(";")),typeof K>"u"&&(w(";")||(x=M()),I(";"),w(")")||(j=M())),I(")"),He=F.inIteration,F.inIteration=!0,he=In(),F.inIteration=He,typeof K>"u"?_.createForStatement(h,x,j,he):_.createForInStatement(K,ne,he)}function Ei(){var h=null,x;return y("continue"),E.charCodeAt(b)===59?(de(),F.inIteration||ge({},g.IllegalContinue),_.createContinueStatement(null)):rt()?(F.inIteration||ge({},g.IllegalContinue),_.createContinueStatement(null)):(O.type===u.Identifier&&(h=Ie(),x="$"+h.name,Object.prototype.hasOwnProperty.call(F.labelSet,x)||ge({},g.UnknownLabel,h.name)),G(),h===null&&!F.inIteration&&ge({},g.IllegalContinue),_.createContinueStatement(h))}function ao(){var h=null,x;return y("break"),E.charCodeAt(b)===59?(de(),F.inIteration||F.inSwitch||ge({},g.IllegalBreak),_.createBreakStatement(null)):rt()?(F.inIteration||F.inSwitch||ge({},g.IllegalBreak),_.createBreakStatement(null)):(O.type===u.Identifier&&(h=Ie(),x="$"+h.name,Object.prototype.hasOwnProperty.call(F.labelSet,x)||ge({},g.UnknownLabel,h.name)),G(),h===null&&!(F.inIteration||F.inSwitch)&&ge({},g.IllegalBreak),_.createBreakStatement(h))}function uo(){var h=null;return y("return"),F.inFunctionBody||xe({},g.IllegalReturn),E.charCodeAt(b)===32&&Ce(E.charCodeAt(b+1))?(h=M(),G(),_.createReturnStatement(h)):rt()?_.createReturnStatement(null):(w(";")||!w("}")&&O.type!==u.EOF&&(h=M()),G(),_.createReturnStatement(h))}function Ca(){var h,x;return S&&(J(),xe({},g.StrictModeWith)),y("with"),I("("),h=M(),I(")"),x=In(),_.createWithStatement(h,x)}function _a(){var h,x=[],j,K;for(K=O,R("default")?(de(),h=null):(y("case"),h=M()),I(":");b<L&&!(w("}")||R("default")||R("case"));)j=In(),x.push(j);return _.markEnd(_.createSwitchCase(h,x),K)}function ka(){var h,x,j,K,ne;if(y("switch"),I("("),h=M(),I(")"),I("{"),x=[],w("}"))return de(),_.createSwitchStatement(h,x);for(K=F.inSwitch,F.inSwitch=!0,ne=!1;b<L&&!w("}");)j=_a(),j.test===null&&(ne&&ge({},g.MultipleDefaultsInSwitch),ne=!0),x.push(j);return F.inSwitch=K,I("}"),_.createSwitchStatement(h,x)}function Kc(){var h;return y("throw"),rt()&&ge({},g.NewlineAfterThrow),h=M(),G(),_.createThrowStatement(h)}function Hc(){var h,x,j;return j=O,y("catch"),I("("),w(")")&&ut(O),h=Ie(),S&&Be(h.name)&&xe({},g.StrictCatchVariable),I(")"),x=ye(),_.markEnd(_.createCatchClause(h,x),j)}function zc(){var h,x=[],j=null;return y("try"),h=ye(),R("catch")&&x.push(Hc()),R("finally")&&(de(),j=ye()),x.length===0&&!j&&ge({},g.NoCatchOrFinally),_.createTryStatement(h,[],x,j)}function Gc(){return y("debugger"),G(),_.createDebuggerStatement()}function In(){var h=O.type,x,j,K,ne;if(h===u.EOF&&ut(O),h===u.Punctuator&&O.value==="{")return ye();if(ne=O,h===u.Punctuator)switch(O.value){case";":return _.markEnd(Xt(),ne);case"(":return _.markEnd(Ot(),ne)}if(h===u.Keyword)switch(O.value){case"break":return _.markEnd(ao(),ne);case"continue":return _.markEnd(Ei(),ne);case"debugger":return _.markEnd(Gc(),ne);case"do":return _.markEnd(cn(),ne);case"for":return _.markEnd(Kt(),ne);case"function":return _.markEnd(fs(),ne);case"if":return _.markEnd(Bt(),ne);case"return":return _.markEnd(uo(),ne);case"switch":return _.markEnd(ka(),ne);case"throw":return _.markEnd(Kc(),ne);case"try":return _.markEnd(zc(),ne);case"var":return _.markEnd(nt(),ne);case"while":return _.markEnd(Tn(),ne);case"with":return _.markEnd(Ca(),ne)}return x=M(),x.type===d.Identifier&&w(":")?(de(),K="$"+x.name,Object.prototype.hasOwnProperty.call(F.labelSet,K)&&ge({},g.Redeclaration,"Label",x.name),F.labelSet[K]=!0,j=In(),delete F.labelSet[K],_.markEnd(_.createLabeledStatement(x,j),ne)):(G(),_.markEnd(_.createExpressionStatement(x),ne))}function ls(){var h,x=[],j,K,ne,he,He,yt,Qt,Ht;for(Ht=O,I("{");b<L&&!(O.type!==u.StringLiteral||(j=O,h=Xr(),x.push(h),h.expression.type!==d.Literal));)K=E.slice(j.start+1,j.end-1),K==="use strict"?(S=!0,ne&&xe(ne,g.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(he=F.labelSet,He=F.inIteration,yt=F.inSwitch,Qt=F.inFunctionBody,F.labelSet={},F.inIteration=!1,F.inSwitch=!1,F.inFunctionBody=!0;b<L&&!(w("}")||(h=Xr(),typeof h>"u"));)x.push(h);return I("}"),F.labelSet=he,F.inIteration=He,F.inSwitch=yt,F.inFunctionBody=Qt,_.markEnd(_.createBlockStatement(x),Ht)}function co(h){var x,j=[],K,ne,he,He,yt;if(I("("),!w(")"))for(he={};b<L&&(K=O,x=Ie(),He="$"+K.value,S?(Be(K.value)&&(ne=K,yt=g.StrictParamName),Object.prototype.hasOwnProperty.call(he,He)&&(ne=K,yt=g.StrictParamDupe)):h||(Be(K.value)?(h=K,yt=g.StrictParamName):Oe(K.value)?(h=K,yt=g.StrictReservedWord):Object.prototype.hasOwnProperty.call(he,He)&&(h=K,yt=g.StrictParamDupe)),j.push(x),he[He]=!0,!w(")"));)I(",");return I(")"),{params:j,stricted:ne,firstRestricted:h,message:yt}}function fs(){var h,x=[],j,K,ne,he,He,yt,Qt,Ht;return Ht=O,y("function"),K=O,h=Ie(),S?Be(K.value)&&xe(K,g.StrictFunctionName):Be(K.value)?(He=K,yt=g.StrictFunctionName):Oe(K.value)&&(He=K,yt=g.StrictReservedWord),he=co(He),x=he.params,ne=he.stricted,He=he.firstRestricted,he.message&&(yt=he.message),Qt=S,j=ls(),S&&He&&ge(He,yt),S&&ne&&xe(ne,yt),S=Qt,_.markEnd(_.createFunctionDeclaration(h,x,[],j),Ht)}function Jc(){var h,x=null,j,K,ne,he,He=[],yt,Qt,Ht;return Ht=O,y("function"),w("(")||(h=O,x=Ie(),S?Be(h.value)&&xe(h,g.StrictFunctionName):Be(h.value)?(K=h,ne=g.StrictFunctionName):Oe(h.value)&&(K=h,ne=g.StrictReservedWord)),he=co(K),He=he.params,j=he.stricted,K=he.firstRestricted,he.message&&(ne=he.message),Qt=S,yt=ls(),S&&K&&ge(K,ne),S&&j&&xe(j,ne),S=Qt,_.markEnd(_.createFunctionExpression(x,He,[],yt),Ht)}function Xr(){if(O.type===u.Keyword)switch(O.value){case"const":case"let":return Xe(O.value);case"function":return fs();default:return In()}if(O.type!==u.EOF)return In()}function hs(){for(var h,x=[],j,K,ne;b<L&&(j=O,!(j.type!==u.StringLiteral||(h=Xr(),x.push(h),h.expression.type!==d.Literal)));)K=E.slice(j.start+1,j.end-1),K==="use strict"?(S=!0,ne&&xe(ne,g.StrictOctalLiteral)):!ne&&j.octal&&(ne=j);for(;b<L&&(h=Xr(),!(typeof h>"u"));)x.push(h);return x}function Ta(){var h,x;return J(),Et(),x=O,S=!1,h=hs(),_.markEnd(_.createProgram(h),x)}function Ia(){var h,x,j,K=[];for(h=0;h<B.tokens.length;++h)x=B.tokens[h],j={type:x.type,value:x.value},B.range&&(j.range=x.range),B.loc&&(j.loc=x.loc),K.push(j);B.tokens=K}function Oa(h,x){var j,K,ne;j=String,typeof h!="string"&&!(h instanceof String)&&(h=j(h)),_=C,E=h,b=0,T=E.length>0?1:0,N=0,L=E.length,O=null,F={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},B={},x=x||{},x.tokens=!0,B.tokens=[],B.tokenize=!0,B.openParenToken=-1,B.openCurlyToken=-1,B.range=typeof x.range=="boolean"&&x.range,B.loc=typeof x.loc=="boolean"&&x.loc,typeof x.comment=="boolean"&&x.comment&&(B.comments=[]),typeof x.tolerant=="boolean"&&x.tolerant&&(B.errors=[]);try{if(Et(),O.type===u.EOF)return B.tokens;for(K=de();O.type!==u.EOF;)try{K=de()}catch(he){if(K=O,B.errors){B.errors.push(he);break}else throw he}Ia(),ne=B.tokens,typeof B.comments<"u"&&(ne.comments=B.comments),typeof B.errors<"u"&&(ne.errors=B.errors)}catch(he){throw he}finally{B={}}return ne}function Fa(h,x){var j,K;K=String,typeof h!="string"&&!(h instanceof String)&&(h=K(h)),_=C,E=h,b=0,T=E.length>0?1:0,N=0,L=E.length,O=null,F={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},B={},typeof x<"u"&&(B.range=typeof x.range=="boolean"&&x.range,B.loc=typeof x.loc=="boolean"&&x.loc,B.attachComment=typeof x.attachComment=="boolean"&&x.attachComment,B.loc&&x.source!==null&&x.source!==void 0&&(B.source=K(x.source)),typeof x.tokens=="boolean"&&x.tokens&&(B.tokens=[]),typeof x.comment=="boolean"&&x.comment&&(B.comments=[]),typeof x.tolerant=="boolean"&&x.tolerant&&(B.errors=[]),B.attachComment&&(B.range=!0,B.comments=[],B.bottomRightStack=[],B.trailingComments=[],B.leadingComments=[]));try{j=Ta(),typeof B.comments<"u"&&(j.comments=B.comments),typeof B.tokens<"u"&&(Ia(),j.tokens=B.tokens),typeof B.errors<"u"&&(j.errors=B.errors)}catch(ne){throw ne}finally{B={}}return j}a.version="1.2.2",a.tokenize=Oa,a.parse=Fa,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,E,S,b,T,N){S.ast||(S.ast=f,f.initialize());var L=T.length-1;switch(b){case 1:return S.ast.set({expression:{type:"root",value:T[L]}}),S.ast.unshift(),S.ast.yield();case 2:return S.ast.set({expression:{type:"root",value:T[L-1]}}),S.ast.unshift(),S.ast.yield();case 3:return S.ast.unshift(),S.ast.yield();case 4:return S.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:T[L-1]}}),S.ast.unshift(),S.ast.yield();case 5:break;case 6:break;case 7:S.ast.set({operation:"member"}),S.ast.push();break;case 8:S.ast.set({operation:"subscript"}),S.ast.push();break;case 9:S.ast.set({scope:"child"});break;case 10:S.ast.set({scope:"descendant"});break;case 11:break;case 12:S.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:S.ast.set({expression:{type:"wildcard",value:T[L]}});break;case 15:S.ast.set({expression:{type:"identifier",value:T[L]}});break;case 16:S.ast.set({expression:{type:"script_expression",value:T[L]}});break;case 17:S.ast.set({expression:{type:"numeric_literal",value:parseInt(T[L])}});break;case 18:break;case 19:S.ast.set({scope:"child"});break;case 20:S.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:T[L].length>1?S.ast.set({expression:{type:"union",value:T[L]}}):this.$=T[L];break;case 25:this.$=[T[L]];break;case 26:this.$=T[L-2].concat(T[L]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(T[L])}},S.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:T[L]}},S.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:T[L]}},S.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:T[L]}},S.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:T[L]}},S.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:T[L]}},S.ast.set(this.$);break;case 33:this.$=T[L];break;case 34:this.$=T[L];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,E=[0],S=[null],b=[],T=this.table,N="",L=0,_=0,O=2,F=1,B=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 Y=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(){var we;return we=C.lexer.lex()||F,typeof we!="number"&&(we=C.symbols_[we]||we),we}for(var le,be,ve,Ce,pe={},Ee,Oe,Be,Ze;;){if(be=E[E.length-1],this.defaultActions[be]?ve=this.defaultActions[be]:((le===null||typeof le>"u")&&(le=fe()),ve=T[be]&&T[be][le]),typeof ve>"u"||!ve.length||!ve[0]){var Ae="";Ze=[];for(Ee in T[be])this.terminals_[Ee]&&Ee>O&&Ze.push("'"+this.terminals_[Ee]+"'");this.lexer.showPosition?Ae="Parse error on line "+(L+1)+`:
221
+ `,$h=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>E.jsx(V.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?E.jsxs(V.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),E.jsx(V.Tooltip,{title:E.jsx(E.Fragment,{children:n(e.slice(t))}),children:E.jsxs(V.Tag,{children:["+",e.length-t]},"more")})]}):E.jsx(V.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},Mh=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),Uh=({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=>f===null?E.jsx("div",{children:"null"}):typeof f=="object"&&!Array.isArray(f)?Mh(f)?E.jsx($h,{tags:Object.entries(f).map(([h,p])=>`${h}: ${String(p)}`),trimLength:u}):E.jsx(Hi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(h=>h&&!Array.isArray(h))?E.jsx($h,{tags:f.map(h=>h?h.toLocaleString():"null"),trimLength:u}):E.jsx(Hi,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?E.jsx(vn.CheckOutlined,{style:{color:"green"}}):E.jsx(vn.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?E.jsx(Hi,{trimLength:u,text:String(f)}):typeof f=="string"?E.jsx(Hi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?E.jsx(Hi,{trimLength:u,text:a}):E.jsx(Hi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:h,confirm:p,clearFilters:g,close:v})=>E.jsx(Qm,{setSelectedKeys:f,selectedKeys:h,confirm:p,clearFilters:g,close:v}),filterIcon:f=>E.jsx(vn.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,h)=>{const{dataIndex:p}=o,g=Array.isArray(p)?qr.get(h,p):h[p];if(typeof g=="object"&&!Array.isArray(g))return JSON.stringify(g).toLowerCase().includes(f.toLowerCase());if(Array.isArray(g))return g.some(v=>v.toLowerCase().includes(f.toLowerCase()));if(typeof g=="boolean"){const v=f.toLowerCase()==="true";return g===v}return typeof g=="number"?String(g).includes(f.toLowerCase()):typeof g=="string"?g.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,h)=>{const{dataIndex:p}=o,g=Array.isArray(p)?qr.get(f,p):f[p],v=Array.isArray(p)?qr.get(h,p):h[p];return typeof g=="object"&&!Array.isArray(g)&&g!==null?typeof v=="object"&&!Array.isArray(v)&&v!==null?Object.keys(g).length-Object.keys(v).length:Object.keys(g).length?-1:1:Array.isArray(g)?Array.isArray(v)?g.length-v.length:g.length?-1:1:typeof g=="boolean"?g===v?0:g?-1:1:typeof g=="number"?typeof v=="number"?g-v:g?-1:1:typeof g=="string"?typeof v=="string"?g.localeCompare(v):g?-1:1:0}}})},Vh=({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=>E.jsxs(t2,{$align:"right",className:"hideable",children:[E.jsx(Nh,{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||E.jsx(vn.EditOutlined,{size:14}),disabled:!a.permissions.canUpdate}),E.jsx(Nh,{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||E.jsx(vn.DeleteOutlined,{size:14}),disabled:!a.permissions.canDelete})]})}]},qh=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:h,withoutControls:p=!1,tableProps:g})=>{const v=vr.useNavigate();if(!i)return null;const C=Uh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!C)return null;const S=p?C:Vh({enrichedColumns:C,navigate:v,baseprefix:t,editIcon:g?.editIcon,deleteIcon:g?.deleteIcon});if(!S)return null;const x=w=>`Total: ${w}`;return E.jsx(jh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:g?.borderless,$isTotalLeft:g?.isTotalLeft,children:E.jsx(jh.HideableControls,{children:E.jsx(V.Table,{dataSource:n,columns:S,pagination:{position:g?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:x},scroll:{x:"max-content"},rowSelection:h?{type:"checkbox",selectedRowKeys:h.selectedRowKeys,onChange:(w,T)=>{h.onChange(w,T.map(({internalDataForControls:j})=>({name:j.entryName,endpoint:`${j.deletePathPrefix}/${j.apiGroupAndVersion}${j.namespace?`/namespaces/${j.namespace}`:""}/${j.typeName}/${j.entryName}`})))}}:void 0,onRow:w=>({onClick:()=>{if(o&&a){const T=qr.get(w,a),j=typeof T=="string"?T:JSON.stringify(T),L=o.replaceAll("~recordValue~",j);v(L)}}})})})})};function Qo(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 Wh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(h,p){if(!o[h]){if(!i[h]){var g=typeof Qo=="function"&&Qo;if(!p&&g)return g(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 x=i[h][1][S];return u(x||S)},C,C.exports,n,i,o,a)}return o[h].exports}for(var l=typeof Qo=="function"&&Qo,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,p,g,v,C,S,x,w,T,j,L,_,O,F,B;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"},p={Data:1,Get:2,Set:4},g={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,A){if(!d)throw new Error("ASSERT: "+A)}function X(d){return d>=48&&d<=57}function fe(d){return"0123456789abcdefABCDEF".indexOf(d)>=0}function le(d){return"01234567".indexOf(d)>=0}function me(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 be(d){return d===10||d===13||d===8232||d===8233}function Ae(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 de(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 Se(d){switch(d){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function ke(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 Oe(d){return d==="eval"||d==="arguments"}function Ze(d){if(x&&ke(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 Ee(d,A,N,K,ne){var he;W(typeof N=="number","Comment must have valid position"),!(F.lastCommentStart>=N)&&(F.lastCommentStart=N,he={type:d,value:A},B.range&&(he.range=[N,K]),B.loc&&(he.loc=ne),B.comments.push(he),B.attachComment&&(B.leadingComments.push(he),B.trailingComments.push(he)))}function ye(d){var A,N,K,ne;for(A=w-d,N={start:{line:T,column:w-j-d}};w<L;)if(K=S.charCodeAt(w),++w,be(K)){B.comments&&(ne=S.slice(A+d,w-1),N.end={line:T,column:w-j-1},Ee("Line",ne,A,w-1,N)),K===13&&S.charCodeAt(w)===10&&++w,++T,j=w;return}B.comments&&(ne=S.slice(A+d,w),N.end={line:T,column:w-j},Ee("Line",ne,A,w,N))}function We(){var d,A,N,K;for(B.comments&&(d=w-2,A={start:{line:T,column:w-j-2}});w<L;)if(N=S.charCodeAt(w),be(N))N===13&&S.charCodeAt(w+1)===10&&++w,++T,++w,j=w,w>=L&&_e({},g.UnexpectedToken,"ILLEGAL");else if(N===42){if(S.charCodeAt(w+1)===47){++w,++w,B.comments&&(K=S.slice(d+2,w-2),A.end={line:T,column:w-j},Ee("Block",K,d,w,A));return}++w}else++w;_e({},g.UnexpectedToken,"ILLEGAL")}function J(){var d,A;for(A=w===0;w<L;)if(d=S.charCodeAt(w),me(d))++w;else if(be(d))++w,d===13&&S.charCodeAt(w)===10&&++w,++T,j=w,A=!0;else if(d===47)if(d=S.charCodeAt(w+1),d===47)++w,++w,ye(2),A=!0;else if(d===42)++w,++w,We();else break;else if(A&&d===45)if(S.charCodeAt(w+1)===45&&S.charCodeAt(w+2)===62)w+=3,ye(3);else break;else if(d===60)if(S.slice(w+1,w+4)==="!--")++w,++w,++w,++w,ye(4);else break;else break}function Y(d){var A,N,K,ne=0;for(N=d==="u"?4:2,A=0;A<N;++A)if(w<L&&fe(S[w]))K=S[w++],ne=ne*16+"0123456789abcdef".indexOf(K.toLowerCase());else return"";return String.fromCharCode(ne)}function oe(){var d,A;for(d=S.charCodeAt(w++),A=String.fromCharCode(d),d===92&&(S.charCodeAt(w)!==117&&_e({},g.UnexpectedToken,"ILLEGAL"),++w,d=Y("u"),(!d||d==="\\"||!Ae(d.charCodeAt(0)))&&_e({},g.UnexpectedToken,"ILLEGAL"),A=d);w<L&&(d=S.charCodeAt(w),!!de(d));)++w,A+=String.fromCharCode(d),d===92&&(A=A.substr(0,A.length-1),S.charCodeAt(w)!==117&&_e({},g.UnexpectedToken,"ILLEGAL"),++w,d=Y("u"),(!d||d==="\\"||!de(d.charCodeAt(0)))&&_e({},g.UnexpectedToken,"ILLEGAL"),A+=d);return A}function De(){var d,A;for(d=w++;w<L;){if(A=S.charCodeAt(w),A===92)return w=d,oe();if(de(A))++w;else break}return S.slice(d,w)}function Je(){var d,A,N;return d=w,A=S.charCodeAt(w)===92?oe():De(),A.length===1?N=u.Identifier:Ze(A)?N=u.Keyword:A==="null"?N=u.NullLiteral:A==="true"||A==="false"?N=u.BooleanLiteral:N=u.Identifier,{type:N,value:A,lineNumber:T,lineStart:j,start:d,end:w}}function ve(){var d=w,A=S.charCodeAt(w),N,K=S[w],ne,he,Ke;switch(A){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++w,B.tokenize&&(A===40?B.openParenToken=B.tokens.length:A===123&&(B.openCurlyToken=B.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(A),lineNumber:T,lineStart:j,start:d,end:w};default:if(N=S.charCodeAt(w+1),N===61)switch(A){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return w+=2,{type:u.Punctuator,value:String.fromCharCode(A)+String.fromCharCode(N),lineNumber:T,lineStart:j,start:d,end:w};case 33:case 61:return w+=2,S.charCodeAt(w)===61&&++w,{type:u.Punctuator,value:S.slice(d,w),lineNumber:T,lineStart:j,start:d,end:w}}}if(Ke=S.substr(w,4),Ke===">>>=")return w+=4,{type:u.Punctuator,value:Ke,lineNumber:T,lineStart:j,start:d,end:w};if(he=Ke.substr(0,3),he===">>>"||he==="<<="||he===">>=")return w+=3,{type:u.Punctuator,value:he,lineNumber:T,lineStart:j,start:d,end:w};if(ne=he.substr(0,2),K===ne[1]&&"+-<>&|".indexOf(K)>=0||ne==="=>")return w+=2,{type:u.Punctuator,value:ne,lineNumber:T,lineStart:j,start:d,end:w};if("<>=!+-*%&|^/".indexOf(K)>=0)return++w,{type:u.Punctuator,value:K,lineNumber:T,lineStart:j,start:d,end:w};_e({},g.UnexpectedToken,"ILLEGAL")}function Fe(d){for(var A="";w<L&&fe(S[w]);)A+=S[w++];return A.length===0&&_e({},g.UnexpectedToken,"ILLEGAL"),Ae(S.charCodeAt(w))&&_e({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+A,16),lineNumber:T,lineStart:j,start:d,end:w}}function je(d){for(var A="0"+S[w++];w<L&&le(S[w]);)A+=S[w++];return(Ae(S.charCodeAt(w))||X(S.charCodeAt(w)))&&_e({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(A,8),octal:!0,lineNumber:T,lineStart:j,start:d,end:w}}function Re(){var d,A,N;if(N=S[w],W(X(N.charCodeAt(0))||N===".","Numeric literal must start with a decimal digit or a decimal point"),A=w,d="",N!=="."){if(d=S[w++],N=S[w],d==="0"){if(N==="x"||N==="X")return++w,Fe(A);if(le(N))return je(A);N&&X(N.charCodeAt(0))&&_e({},g.UnexpectedToken,"ILLEGAL")}for(;X(S.charCodeAt(w));)d+=S[w++];N=S[w]}if(N==="."){for(d+=S[w++];X(S.charCodeAt(w));)d+=S[w++];N=S[w]}if(N==="e"||N==="E")if(d+=S[w++],N=S[w],(N==="+"||N==="-")&&(d+=S[w++]),X(S.charCodeAt(w)))for(;X(S.charCodeAt(w));)d+=S[w++];else _e({},g.UnexpectedToken,"ILLEGAL");return Ae(S.charCodeAt(w))&&_e({},g.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(d),lineNumber:T,lineStart:j,start:A,end:w}}function Ct(){var d="",A,N,K,ne,he,Ke,yt=!1,Qt,Ht;for(Qt=T,Ht=j,A=S[w],W(A==="'"||A==='"',"String literal must starts with a quote"),N=w,++w;w<L;)if(K=S[w++],K===A){A="";break}else if(K==="\\")if(K=S[w++],!K||!be(K.charCodeAt(0)))switch(K){case"u":case"x":Ke=w,he=Y(K),he?d+=he:(w=Ke,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&&(yt=!0),w<L&&le(S[w])&&(yt=!0,ne=ne*8+"01234567".indexOf(S[w++]),"0123".indexOf(K)>=0&&w<L&&le(S[w])&&(ne=ne*8+"01234567".indexOf(S[w++]))),d+=String.fromCharCode(ne)):d+=K;break}else++T,K==="\r"&&S[w]===`
223
+ `&&++w,j=w;else{if(be(K.charCodeAt(0)))break;d+=K}return A!==""&&_e({},g.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:d,octal:yt,startLineNumber:Qt,startLineStart:Ht,lineNumber:T,lineStart:j,start:N,end:w}}function nn(d,A){var N;try{N=new RegExp(d,A)}catch{_e({},g.InvalidRegExp)}return N}function Lt(){var d,A,N,K,ne;for(d=S[w],W(d==="/","Regular expression literal must start with a slash"),A=S[w++],N=!1,K=!1;w<L;)if(d=S[w++],A+=d,d==="\\")d=S[w++],be(d.charCodeAt(0))&&_e({},g.UnterminatedRegExp),A+=d;else if(be(d.charCodeAt(0)))_e({},g.UnterminatedRegExp);else if(N)d==="]"&&(N=!1);else if(d==="/"){K=!0;break}else d==="["&&(N=!0);return K||_e({},g.UnterminatedRegExp),ne=A.substr(1,A.length-2),{value:ne,literal:A}}function Pt(){var d,A,N,K;for(A="",N="";w<L&&(d=S[w],!!de(d.charCodeAt(0)));)if(++w,d==="\\"&&w<L)if(d=S[w],d==="u"){if(++w,K=w,d=Y("u"),d)for(N+=d,A+="\\u";K<w;++K)A+=S[K];else w=K,N+="u",A+="\\u";Ne({},g.UnexpectedToken,"ILLEGAL")}else A+="\\",Ne({},g.UnexpectedToken,"ILLEGAL");else N+=d,A+=d;return{value:N,literal:A}}function jt(){var d,A,N,K;return O=null,J(),d=w,A=Lt(),N=Pt(),K=nn(A.value,N.value),B.tokenize?{type:u.RegularExpression,value:K,lineNumber:T,lineStart:j,start:d,end:w}:{literal:A.literal+N.literal,value:K,start:d,end:w}}function bt(){var d,A,N,K;return J(),d=w,A={start:{line:T,column:w-j}},N=jt(),A.end={line:T,column:w-j},B.tokenize||(B.tokens.length>0&&(K=B.tokens[B.tokens.length-1],K.range[0]===d&&K.type==="Punctuator"&&(K.value==="/"||K.value==="/=")&&B.tokens.pop()),B.tokens.push({type:"RegularExpression",value:N.literal,range:[d,w],loc:A})),N}function Te(d){return d.type===u.Identifier||d.type===u.Keyword||d.type===u.BooleanLiteral||d.type===u.NullLiteral}function et(){var d,A;if(d=B.tokens[B.tokens.length-1],!d)return bt();if(d.type==="Punctuator"){if(d.value==="]")return ve();if(d.value===")")return A=B.tokens[B.openParenToken-1],A&&A.type==="Keyword"&&(A.value==="if"||A.value==="while"||A.value==="for"||A.value==="with")?bt():ve();if(d.value==="}"){if(B.tokens[B.openCurlyToken-3]&&B.tokens[B.openCurlyToken-3].type==="Keyword"){if(A=B.tokens[B.openCurlyToken-4],!A)return ve()}else if(B.tokens[B.openCurlyToken-4]&&B.tokens[B.openCurlyToken-4].type==="Keyword"){if(A=B.tokens[B.openCurlyToken-5],!A)return bt()}else return ve();return f.indexOf(A.value)>=0?ve():bt()}return bt()}return d.type==="Keyword"?bt():ve()}function gt(){var d;return J(),w>=L?{type:u.EOF,lineNumber:T,lineStart:j,start:w,end:w}:(d=S.charCodeAt(w),Ae(d)?Je():d===40||d===41||d===59?ve():d===39||d===34?Ct():d===46?X(S.charCodeAt(w+1))?Re():ve():X(d)?Re():B.tokenize&&d===47?et():ve())}function vt(){var d,A,N;return J(),d={start:{line:T,column:w-j}},A=gt(),d.end={line:T,column:w-j},A.type!==u.EOF&&(N=S.slice(A.start,A.end),B.tokens.push({type:l[A.type],value:N,range:[A.start,A.end],loc:d})),A}function we(){var d;return d=O,w=d.end,T=d.lineNumber,j=d.lineStart,O=typeof B.tokens<"u"?vt():gt(),w=d.end,T=d.lineNumber,j=d.lineStart,d}function It(){var d,A,N;d=w,A=T,N=j,O=typeof B.tokens<"u"?vt():gt(),w=d,T=A,j=N}function an(d,A){this.line=d,this.column=A}function Ye(d,A,N,K){this.start=new an(d,A),this.end=new an(N,K)}C={name:"SyntaxTree",processComment:function(d){var A,N;if(!(d.type===h.Program&&d.body.length>0)){for(B.trailingComments.length>0?B.trailingComments[0].range[0]>=d.range[1]?(N=B.trailingComments,B.trailingComments=[]):B.trailingComments.length=0:B.bottomRightStack.length>0&&B.bottomRightStack[B.bottomRightStack.length-1].trailingComments&&B.bottomRightStack[B.bottomRightStack.length-1].trailingComments[0].range[0]>=d.range[1]&&(N=B.bottomRightStack[B.bottomRightStack.length-1].trailingComments,delete B.bottomRightStack[B.bottomRightStack.length-1].trailingComments);B.bottomRightStack.length>0&&B.bottomRightStack[B.bottomRightStack.length-1].range[0]>=d.range[0];)A=B.bottomRightStack.pop();A?A.leadingComments&&A.leadingComments[A.leadingComments.length-1].range[1]<=d.range[0]&&(d.leadingComments=A.leadingComments,delete A.leadingComments):B.leadingComments.length>0&&B.leadingComments[B.leadingComments.length-1].range[1]<=d.range[0]&&(d.leadingComments=B.leadingComments,B.leadingComments=[]),N&&(d.trailingComments=N),B.bottomRightStack.push(d)}},markEnd:function(d,A){return B.range&&(d.range=[A.start,w]),B.loc&&(d.loc=new Ye(A.startLineNumber===void 0?A.lineNumber:A.startLineNumber,A.start-(A.startLineStart===void 0?A.lineStart:A.startLineStart),T,w-j),this.postProcess(d)),B.attachComment&&this.processComment(d),d},postProcess:function(d){return B.source&&(d.loc.source=B.source),d},createArrayExpression:function(d){return{type:h.ArrayExpression,elements:d}},createAssignmentExpression:function(d,A,N){return{type:h.AssignmentExpression,operator:d,left:A,right:N}},createBinaryExpression:function(d,A,N){var K=d==="||"||d==="&&"?h.LogicalExpression:h.BinaryExpression;return{type:K,operator:d,left:A,right:N}},createBlockStatement:function(d){return{type:h.BlockStatement,body:d}},createBreakStatement:function(d){return{type:h.BreakStatement,label:d}},createCallExpression:function(d,A){return{type:h.CallExpression,callee:d,arguments:A}},createCatchClause:function(d,A){return{type:h.CatchClause,param:d,body:A}},createConditionalExpression:function(d,A,N){return{type:h.ConditionalExpression,test:d,consequent:A,alternate:N}},createContinueStatement:function(d){return{type:h.ContinueStatement,label:d}},createDebuggerStatement:function(){return{type:h.DebuggerStatement}},createDoWhileStatement:function(d,A){return{type:h.DoWhileStatement,body:d,test:A}},createEmptyStatement:function(){return{type:h.EmptyStatement}},createExpressionStatement:function(d){return{type:h.ExpressionStatement,expression:d}},createForStatement:function(d,A,N,K){return{type:h.ForStatement,init:d,test:A,update:N,body:K}},createForInStatement:function(d,A,N){return{type:h.ForInStatement,left:d,right:A,body:N,each:!1}},createFunctionDeclaration:function(d,A,N,K){return{type:h.FunctionDeclaration,id:d,params:A,defaults:N,body:K,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(d,A,N,K){return{type:h.FunctionExpression,id:d,params:A,defaults:N,body:K,rest:null,generator:!1,expression:!1}},createIdentifier:function(d){return{type:h.Identifier,name:d}},createIfStatement:function(d,A,N){return{type:h.IfStatement,test:d,consequent:A,alternate:N}},createLabeledStatement:function(d,A){return{type:h.LabeledStatement,label:d,body:A}},createLiteral:function(d){return{type:h.Literal,value:d.value,raw:S.slice(d.start,d.end)}},createMemberExpression:function(d,A,N){return{type:h.MemberExpression,computed:d==="[",object:A,property:N}},createNewExpression:function(d,A){return{type:h.NewExpression,callee:d,arguments:A}},createObjectExpression:function(d){return{type:h.ObjectExpression,properties:d}},createPostfixExpression:function(d,A){return{type:h.UpdateExpression,operator:d,argument:A,prefix:!1}},createProgram:function(d){return{type:h.Program,body:d}},createProperty:function(d,A,N){return{type:h.Property,key:A,value:N,kind:d}},createReturnStatement:function(d){return{type:h.ReturnStatement,argument:d}},createSequenceExpression:function(d){return{type:h.SequenceExpression,expressions:d}},createSwitchCase:function(d,A){return{type:h.SwitchCase,test:d,consequent:A}},createSwitchStatement:function(d,A){return{type:h.SwitchStatement,discriminant:d,cases:A}},createThisExpression:function(){return{type:h.ThisExpression}},createThrowStatement:function(d){return{type:h.ThrowStatement,argument:d}},createTryStatement:function(d,A,N,K){return{type:h.TryStatement,block:d,guardedHandlers:A,handlers:N,finalizer:K}},createUnaryExpression:function(d,A){return d==="++"||d==="--"?{type:h.UpdateExpression,operator:d,argument:A,prefix:!0}:{type:h.UnaryExpression,operator:d,argument:A,prefix:!0}},createVariableDeclaration:function(d,A){return{type:h.VariableDeclaration,declarations:d,kind:A}},createVariableDeclarator:function(d,A){return{type:h.VariableDeclarator,id:d,init:A}},createWhileStatement:function(d,A){return{type:h.WhileStatement,test:d,body:A}},createWithStatement:function(d,A){return{type:h.WithStatement,object:d,body:A}}};function Bt(){var d,A,N,K;return d=w,A=T,N=j,J(),K=T!==A,w=d,T=A,j=N,K}function _e(d,A){var N,K=Array.prototype.slice.call(arguments,2),ne=A.replace(/%(\d)/g,function(he,Ke){return W(Ke<K.length,"Message reference must be in range"),K[Ke]});throw typeof d.lineNumber=="number"?(N=new Error("Line "+d.lineNumber+": "+ne),N.index=d.start,N.lineNumber=d.lineNumber,N.column=d.start-j+1):(N=new Error("Line "+T+": "+ne),N.index=w,N.lineNumber=T,N.column=w-j+1),N.description=ne,N}function Ne(){try{_e.apply(null,arguments)}catch(d){if(B.errors)B.errors.push(d);else throw d}}function Wt(d){if(d.type===u.EOF&&_e(d,g.UnexpectedEOS),d.type===u.NumericLiteral&&_e(d,g.UnexpectedNumber),d.type===u.StringLiteral&&_e(d,g.UnexpectedString),d.type===u.Identifier&&_e(d,g.UnexpectedIdentifier),d.type===u.Keyword){if(Se(d.value))_e(d,g.UnexpectedReserved);else if(x&&ke(d.value)){Ne(d,g.StrictReservedWord);return}_e(d,g.UnexpectedToken,d.value)}_e(d,g.UnexpectedToken,d.value)}function I(d){var A=we();(A.type!==u.Punctuator||A.value!==d)&&Wt(A)}function y(d){var A=we();(A.type!==u.Keyword||A.value!==d)&&Wt(A)}function b(d){return O.type===u.Punctuator&&O.value===d}function P(d){return O.type===u.Keyword&&O.value===d}function q(){var d;return O.type!==u.Punctuator?!1:(d=O.value,d==="="||d==="*="||d==="/="||d==="%="||d==="+="||d==="-="||d==="<<="||d===">>="||d===">>>="||d==="&="||d==="^="||d==="|=")}function G(){var d;if(S.charCodeAt(w)===59||b(";")){we();return}d=T,J(),T===d&&O.type!==u.EOF&&!b("}")&&Wt(O)}function ee(d){return d.type===h.Identifier||d.type===h.MemberExpression}function Me(){var d=[],A;for(A=O,I("[");!b("]");)b(",")?(we(),d.push(null)):(d.push(yn()),b("]")||I(","));return we(),_.markEnd(_.createArrayExpression(d),A)}function dt(d,A){var N,K,ne;return N=x,ne=O,K=ls(),A&&x&&Oe(d[0].name)&&Ne(A,g.StrictParamName),x=N,_.markEnd(_.createFunctionExpression(null,d,[],K),ne)}function ut(){var d,A;return A=O,d=we(),d.type===u.StringLiteral||d.type===u.NumericLiteral?(x&&d.octal&&Ne(d,g.StrictOctalLiteral),_.markEnd(_.createLiteral(d),A)):_.markEnd(_.createIdentifier(d.value),A)}function ht(){var d,A,N,K,ne,he;if(d=O,he=O,d.type===u.Identifier)return N=ut(),d.value==="get"&&!b(":")?(A=ut(),I("("),I(")"),K=dt([]),_.markEnd(_.createProperty("get",A,K),he)):d.value==="set"&&!b(":")?(A=ut(),I("("),d=O,d.type!==u.Identifier?(I(")"),Ne(d,g.UnexpectedToken,d.value),K=dt([])):(ne=[Ie()],I(")"),K=dt(ne,d)),_.markEnd(_.createProperty("set",A,K),he)):(I(":"),K=yn(),_.markEnd(_.createProperty("init",N,K),he));if(d.type===u.EOF||d.type===u.Punctuator)Wt(d);else return A=ut(),I(":"),K=yn(),_.markEnd(_.createProperty("init",A,K),he)}function st(){var d=[],A,N,K,ne,he={},Ke=String,yt;for(yt=O,I("{");!b("}");)A=ht(),A.key.type===h.Identifier?N=A.key.name:N=Ke(A.key.value),ne=A.kind==="init"?p.Data:A.kind==="get"?p.Get:p.Set,K="$"+N,Object.prototype.hasOwnProperty.call(he,K)?(he[K]===p.Data?x&&ne===p.Data?Ne({},g.StrictDuplicateProperty):ne!==p.Data&&Ne({},g.AccessorDataProperty):ne===p.Data?Ne({},g.AccessorDataProperty):he[K]&ne&&Ne({},g.AccessorGetSet),he[K]|=ne):he[K]=ne,d.push(A),b("}")||I(",");return I("}"),_.markEnd(_.createObjectExpression(d),yt)}function Gr(){var d;return I("("),d=M(),I(")"),d}function Ei(){var d,A,N,K;if(b("("))return Gr();if(b("["))return Me();if(b("{"))return st();if(d=O.type,K=O,d===u.Identifier)N=_.createIdentifier(we().value);else if(d===u.StringLiteral||d===u.NumericLiteral)x&&O.octal&&Ne(O,g.StrictOctalLiteral),N=_.createLiteral(we());else if(d===u.Keyword){if(P("function"))return Hc();P("this")?(we(),N=_.createThisExpression()):Wt(we())}else d===u.BooleanLiteral?(A=we(),A.value=A.value==="true",N=_.createLiteral(A)):d===u.NullLiteral?(A=we(),A.value=null,N=_.createLiteral(A)):b("/")||b("/=")?(typeof B.tokens<"u"?N=_.createLiteral(bt()):N=_.createLiteral(jt()),It()):Wt(we());return _.markEnd(N,K)}function as(){var d=[];if(I("("),!b(")"))for(;w<L&&(d.push(yn()),!b(")"));)I(",");return I(")"),d}function us(){var d,A;return A=O,d=we(),Te(d)||Wt(d),_.markEnd(_.createIdentifier(d.value),A)}function cs(){return I("."),us()}function Jr(){var d;return I("["),d=M(),I("]"),d}function xi(){var d,A,N;return N=O,y("new"),d=ro(),A=b("(")?as():[],_.markEnd(_.createNewExpression(d,A),N)}function no(){var d,A,N,K,ne;for(ne=O,d=F.allowIn,F.allowIn=!0,A=P("new")?xi():Ei(),F.allowIn=d;;){if(b("."))K=cs(),A=_.createMemberExpression(".",A,K);else if(b("("))N=as(),A=_.createCallExpression(A,N);else if(b("["))K=Jr(),A=_.createMemberExpression("[",A,K);else break;_.markEnd(A,ne)}return A}function ro(){var d,A,N,K;for(K=O,d=F.allowIn,A=P("new")?xi():Ei(),F.allowIn=d;b(".")||b("[");)b("[")?(N=Jr(),A=_.createMemberExpression("[",A,N)):(N=cs(),A=_.createMemberExpression(".",A,N)),_.markEnd(A,K);return A}function Ir(){var d,A,N=O;return d=no(),O.type===u.Punctuator&&(b("++")||b("--"))&&!Bt()&&(x&&d.type===h.Identifier&&Oe(d.name)&&Ne({},g.StrictLHSPostfix),ee(d)||Ne({},g.InvalidLHSInAssignment),A=we(),d=_.markEnd(_.createPostfixExpression(A.value,d),N)),d}function rr(){var d,A,N;return O.type!==u.Punctuator&&O.type!==u.Keyword?A=Ir():b("++")||b("--")?(N=O,d=we(),A=rr(),x&&A.type===h.Identifier&&Oe(A.name)&&Ne({},g.StrictLHSPrefix),ee(A)||Ne({},g.InvalidLHSInAssignment),A=_.createUnaryExpression(d.value,A),A=_.markEnd(A,N)):b("+")||b("-")||b("~")||b("!")?(N=O,d=we(),A=rr(),A=_.createUnaryExpression(d.value,A),A=_.markEnd(A,N)):P("delete")||P("void")||P("typeof")?(N=O,d=we(),A=rr(),A=_.createUnaryExpression(d.value,A),A=_.markEnd(A,N),x&&A.operator==="delete"&&A.argument.type===h.Identifier&&Ne({},g.StrictDelete)):A=Ir(),A}function Yr(d,A){var N=0;if(d.type!==u.Punctuator&&d.type!==u.Keyword)return 0;switch(d.value){case"||":N=1;break;case"&&":N=2;break;case"|":N=3;break;case"^":N=4;break;case"&":N=5;break;case"==":case"!=":case"===":case"!==":N=6;break;case"<":case">":case"<=":case">=":case"instanceof":N=7;break;case"in":N=A?7:0;break;case"<<":case">>":case">>>":N=8;break;case"+":case"-":N=9;break;case"*":case"/":case"%":N=11;break}return N}function io(){var d,A,N,K,ne,he,Ke,yt,Qt,Ht;if(d=O,Qt=rr(),K=O,ne=Yr(K,F.allowIn),ne===0)return Qt;for(K.prec=ne,we(),A=[d,O],Ke=rr(),he=[Qt,K,Ke];(ne=Yr(O,F.allowIn))>0;){for(;he.length>2&&ne<=he[he.length-2].prec;)Ke=he.pop(),yt=he.pop().value,Qt=he.pop(),N=_.createBinaryExpression(yt,Qt,Ke),A.pop(),d=A[A.length-1],_.markEnd(N,d),he.push(N);K=we(),K.prec=ne,he.push(K),A.push(O),N=rr(),he.push(N)}for(Ht=he.length-1,N=he[Ht],A.pop();Ht>1;)N=_.createBinaryExpression(he[Ht-1].value,he[Ht-2],N),Ht-=2,d=A.pop(),_.markEnd(N,d);return N}function so(){var d,A,N,K,ne;return ne=O,d=io(),b("?")&&(we(),A=F.allowIn,F.allowIn=!0,N=yn(),F.allowIn=A,I(":"),K=yn(),d=_.createConditionalExpression(d,N,K),_.markEnd(d,ne)),d}function yn(){var d,A,N,K,ne;return d=O,ne=O,K=A=so(),q()&&(ee(A)||Ne({},g.InvalidLHSInAssignment),x&&A.type===h.Identifier&&Oe(A.name)&&Ne(d,g.StrictLHSAssignment),d=we(),N=yn(),K=_.markEnd(_.createAssignmentExpression(d.value,A,N),ne)),K}function M(){var d,A=O;if(d=yn(),b(",")){for(d=_.createSequenceExpression([d]);w<L&&b(",");)we(),d.expressions.push(yn());_.markEnd(d,A)}return d}function ce(){for(var d=[],A;w<L&&!(b("}")||(A=Xr(),typeof A>"u"));)d.push(A);return d}function pe(){var d,A;return A=O,I("{"),d=ce(),I("}"),_.markEnd(_.createBlockStatement(d),A)}function Ie(){var d,A;return A=O,d=we(),d.type!==u.Identifier&&Wt(d),_.markEnd(_.createIdentifier(d.value),A)}function ct(d){var A=null,N,K;return K=O,N=Ie(),x&&Oe(N.name)&&Ne({},g.StrictVarName),d==="const"?(I("="),A=yn()):b("=")&&(we(),A=yn()),_.markEnd(_.createVariableDeclarator(N,A),K)}function lt(d){var A=[];do{if(A.push(ct(d)),!b(","))break;we()}while(w<L);return A}function rt(){var d;return y("var"),d=lt(),G(),_.createVariableDeclaration(d,"var")}function Xe(d){var A,N;return N=O,y(d),A=lt(d),G(),_.markEnd(_.createVariableDeclaration(A,d),N)}function Xt(){return I(";"),_.createEmptyStatement()}function Ot(){var d=M();return G(),_.createExpressionStatement(d)}function Dt(){var d,A,N;return y("if"),I("("),d=M(),I(")"),A=In(),P("else")?(we(),N=In()):N=null,_.createIfStatement(d,A,N)}function fn(){var d,A,N;return y("do"),N=F.inIteration,F.inIteration=!0,d=In(),F.inIteration=N,y("while"),I("("),A=M(),I(")"),b(";")&&we(),_.createDoWhileStatement(d,A)}function Tn(){var d,A,N;return y("while"),I("("),d=M(),I(")"),N=F.inIteration,F.inIteration=!0,A=In(),F.inIteration=N,_.createWhileStatement(d,A)}function ir(){var d,A,N;return N=O,d=we(),A=lt(),_.markEnd(_.createVariableDeclaration(A,d.value),N)}function Kt(){var d,A,N,K,ne,he,Ke;return d=A=N=null,y("for"),I("("),b(";")?we():(P("var")||P("let")?(F.allowIn=!1,d=ir(),F.allowIn=!0,d.declarations.length===1&&P("in")&&(we(),K=d,ne=M(),d=null)):(F.allowIn=!1,d=M(),F.allowIn=!0,P("in")&&(ee(d)||Ne({},g.InvalidLHSInForIn),we(),K=d,ne=M(),d=null)),typeof K>"u"&&I(";")),typeof K>"u"&&(b(";")||(A=M()),I(";"),b(")")||(N=M())),I(")"),Ke=F.inIteration,F.inIteration=!0,he=In(),F.inIteration=Ke,typeof K>"u"?_.createForStatement(d,A,N,he):_.createForInStatement(K,ne,he)}function Si(){var d=null,A;return y("continue"),S.charCodeAt(w)===59?(we(),F.inIteration||_e({},g.IllegalContinue),_.createContinueStatement(null)):Bt()?(F.inIteration||_e({},g.IllegalContinue),_.createContinueStatement(null)):(O.type===u.Identifier&&(d=Ie(),A="$"+d.name,Object.prototype.hasOwnProperty.call(F.labelSet,A)||_e({},g.UnknownLabel,d.name)),G(),d===null&&!F.inIteration&&_e({},g.IllegalContinue),_.createContinueStatement(d))}function oo(){var d=null,A;return y("break"),S.charCodeAt(w)===59?(we(),F.inIteration||F.inSwitch||_e({},g.IllegalBreak),_.createBreakStatement(null)):Bt()?(F.inIteration||F.inSwitch||_e({},g.IllegalBreak),_.createBreakStatement(null)):(O.type===u.Identifier&&(d=Ie(),A="$"+d.name,Object.prototype.hasOwnProperty.call(F.labelSet,A)||_e({},g.UnknownLabel,d.name)),G(),d===null&&!(F.inIteration||F.inSwitch)&&_e({},g.IllegalBreak),_.createBreakStatement(d))}function ao(){var d=null;return y("return"),F.inFunctionBody||Ne({},g.IllegalReturn),S.charCodeAt(w)===32&&Ae(S.charCodeAt(w+1))?(d=M(),G(),_.createReturnStatement(d)):Bt()?_.createReturnStatement(null):(b(";")||!b("}")&&O.type!==u.EOF&&(d=M()),G(),_.createReturnStatement(d))}function Sa(){var d,A;return x&&(J(),Ne({},g.StrictModeWith)),y("with"),I("("),d=M(),I(")"),A=In(),_.createWithStatement(d,A)}function Aa(){var d,A=[],N,K;for(K=O,P("default")?(we(),d=null):(y("case"),d=M()),I(":");w<L&&!(b("}")||P("default")||P("case"));)N=In(),A.push(N);return _.markEnd(_.createSwitchCase(d,A),K)}function Ca(){var d,A,N,K,ne;if(y("switch"),I("("),d=M(),I(")"),I("{"),A=[],b("}"))return we(),_.createSwitchStatement(d,A);for(K=F.inSwitch,F.inSwitch=!0,ne=!1;w<L&&!b("}");)N=Aa(),N.test===null&&(ne&&_e({},g.MultipleDefaultsInSwitch),ne=!0),A.push(N);return F.inSwitch=K,I("}"),_.createSwitchStatement(d,A)}function Vc(){var d;return y("throw"),Bt()&&_e({},g.NewlineAfterThrow),d=M(),G(),_.createThrowStatement(d)}function qc(){var d,A,N;return N=O,y("catch"),I("("),b(")")&&Wt(O),d=Ie(),x&&Oe(d.name)&&Ne({},g.StrictCatchVariable),I(")"),A=pe(),_.markEnd(_.createCatchClause(d,A),N)}function Wc(){var d,A=[],N=null;return y("try"),d=pe(),P("catch")&&A.push(qc()),P("finally")&&(we(),N=pe()),A.length===0&&!N&&_e({},g.NoCatchOrFinally),_.createTryStatement(d,[],A,N)}function Kc(){return y("debugger"),G(),_.createDebuggerStatement()}function In(){var d=O.type,A,N,K,ne;if(d===u.EOF&&Wt(O),d===u.Punctuator&&O.value==="{")return pe();if(ne=O,d===u.Punctuator)switch(O.value){case";":return _.markEnd(Xt(),ne);case"(":return _.markEnd(Ot(),ne)}if(d===u.Keyword)switch(O.value){case"break":return _.markEnd(oo(),ne);case"continue":return _.markEnd(Si(),ne);case"debugger":return _.markEnd(Kc(),ne);case"do":return _.markEnd(fn(),ne);case"for":return _.markEnd(Kt(),ne);case"function":return _.markEnd(fs(),ne);case"if":return _.markEnd(Dt(),ne);case"return":return _.markEnd(ao(),ne);case"switch":return _.markEnd(Ca(),ne);case"throw":return _.markEnd(Vc(),ne);case"try":return _.markEnd(Wc(),ne);case"var":return _.markEnd(rt(),ne);case"while":return _.markEnd(Tn(),ne);case"with":return _.markEnd(Sa(),ne)}return A=M(),A.type===h.Identifier&&b(":")?(we(),K="$"+A.name,Object.prototype.hasOwnProperty.call(F.labelSet,K)&&_e({},g.Redeclaration,"Label",A.name),F.labelSet[K]=!0,N=In(),delete F.labelSet[K],_.markEnd(_.createLabeledStatement(A,N),ne)):(G(),_.markEnd(_.createExpressionStatement(A),ne))}function ls(){var d,A=[],N,K,ne,he,Ke,yt,Qt,Ht;for(Ht=O,I("{");w<L&&!(O.type!==u.StringLiteral||(N=O,d=Xr(),A.push(d),d.expression.type!==h.Literal));)K=S.slice(N.start+1,N.end-1),K==="use strict"?(x=!0,ne&&Ne(ne,g.StrictOctalLiteral)):!ne&&N.octal&&(ne=N);for(he=F.labelSet,Ke=F.inIteration,yt=F.inSwitch,Qt=F.inFunctionBody,F.labelSet={},F.inIteration=!1,F.inSwitch=!1,F.inFunctionBody=!0;w<L&&!(b("}")||(d=Xr(),typeof d>"u"));)A.push(d);return I("}"),F.labelSet=he,F.inIteration=Ke,F.inSwitch=yt,F.inFunctionBody=Qt,_.markEnd(_.createBlockStatement(A),Ht)}function uo(d){var A,N=[],K,ne,he,Ke,yt;if(I("("),!b(")"))for(he={};w<L&&(K=O,A=Ie(),Ke="$"+K.value,x?(Oe(K.value)&&(ne=K,yt=g.StrictParamName),Object.prototype.hasOwnProperty.call(he,Ke)&&(ne=K,yt=g.StrictParamDupe)):d||(Oe(K.value)?(d=K,yt=g.StrictParamName):ke(K.value)?(d=K,yt=g.StrictReservedWord):Object.prototype.hasOwnProperty.call(he,Ke)&&(d=K,yt=g.StrictParamDupe)),N.push(A),he[Ke]=!0,!b(")"));)I(",");return I(")"),{params:N,stricted:ne,firstRestricted:d,message:yt}}function fs(){var d,A=[],N,K,ne,he,Ke,yt,Qt,Ht;return Ht=O,y("function"),K=O,d=Ie(),x?Oe(K.value)&&Ne(K,g.StrictFunctionName):Oe(K.value)?(Ke=K,yt=g.StrictFunctionName):ke(K.value)&&(Ke=K,yt=g.StrictReservedWord),he=uo(Ke),A=he.params,ne=he.stricted,Ke=he.firstRestricted,he.message&&(yt=he.message),Qt=x,N=ls(),x&&Ke&&_e(Ke,yt),x&&ne&&Ne(ne,yt),x=Qt,_.markEnd(_.createFunctionDeclaration(d,A,[],N),Ht)}function Hc(){var d,A=null,N,K,ne,he,Ke=[],yt,Qt,Ht;return Ht=O,y("function"),b("(")||(d=O,A=Ie(),x?Oe(d.value)&&Ne(d,g.StrictFunctionName):Oe(d.value)?(K=d,ne=g.StrictFunctionName):ke(d.value)&&(K=d,ne=g.StrictReservedWord)),he=uo(K),Ke=he.params,N=he.stricted,K=he.firstRestricted,he.message&&(ne=he.message),Qt=x,yt=ls(),x&&K&&_e(K,ne),x&&N&&Ne(N,ne),x=Qt,_.markEnd(_.createFunctionExpression(A,Ke,[],yt),Ht)}function Xr(){if(O.type===u.Keyword)switch(O.value){case"const":case"let":return Xe(O.value);case"function":return fs();default:return In()}if(O.type!==u.EOF)return In()}function hs(){for(var d,A=[],N,K,ne;w<L&&(N=O,!(N.type!==u.StringLiteral||(d=Xr(),A.push(d),d.expression.type!==h.Literal)));)K=S.slice(N.start+1,N.end-1),K==="use strict"?(x=!0,ne&&Ne(ne,g.StrictOctalLiteral)):!ne&&N.octal&&(ne=N);for(;w<L&&(d=Xr(),!(typeof d>"u"));)A.push(d);return A}function _a(){var d,A;return J(),It(),A=O,x=!1,d=hs(),_.markEnd(_.createProgram(d),A)}function ka(){var d,A,N,K=[];for(d=0;d<B.tokens.length;++d)A=B.tokens[d],N={type:A.type,value:A.value},B.range&&(N.range=A.range),B.loc&&(N.loc=A.loc),K.push(N);B.tokens=K}function Ta(d,A){var N,K,ne;N=String,typeof d!="string"&&!(d instanceof String)&&(d=N(d)),_=C,S=d,w=0,T=S.length>0?1:0,j=0,L=S.length,O=null,F={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},B={},A=A||{},A.tokens=!0,B.tokens=[],B.tokenize=!0,B.openParenToken=-1,B.openCurlyToken=-1,B.range=typeof A.range=="boolean"&&A.range,B.loc=typeof A.loc=="boolean"&&A.loc,typeof A.comment=="boolean"&&A.comment&&(B.comments=[]),typeof A.tolerant=="boolean"&&A.tolerant&&(B.errors=[]);try{if(It(),O.type===u.EOF)return B.tokens;for(K=we();O.type!==u.EOF;)try{K=we()}catch(he){if(K=O,B.errors){B.errors.push(he);break}else throw he}ka(),ne=B.tokens,typeof B.comments<"u"&&(ne.comments=B.comments),typeof B.errors<"u"&&(ne.errors=B.errors)}catch(he){throw he}finally{B={}}return ne}function Ia(d,A){var N,K;K=String,typeof d!="string"&&!(d instanceof String)&&(d=K(d)),_=C,S=d,w=0,T=S.length>0?1:0,j=0,L=S.length,O=null,F={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},B={},typeof A<"u"&&(B.range=typeof A.range=="boolean"&&A.range,B.loc=typeof A.loc=="boolean"&&A.loc,B.attachComment=typeof A.attachComment=="boolean"&&A.attachComment,B.loc&&A.source!==null&&A.source!==void 0&&(B.source=K(A.source)),typeof A.tokens=="boolean"&&A.tokens&&(B.tokens=[]),typeof A.comment=="boolean"&&A.comment&&(B.comments=[]),typeof A.tolerant=="boolean"&&A.tolerant&&(B.errors=[]),B.attachComment&&(B.range=!0,B.comments=[],B.bottomRightStack=[],B.trailingComments=[],B.leadingComments=[]));try{N=_a(),typeof B.comments<"u"&&(N.comments=B.comments),typeof B.tokens<"u"&&(ka(),N.tokens=B.tokens),typeof B.errors<"u"&&(N.errors=B.errors)}catch(ne){throw ne}finally{B={}}return N}a.version="1.2.2",a.tokenize=Ta,a.parse=Ia,a.Syntax=function(){var d,A={};typeof Object.create=="function"&&(A=Object.create(null));for(d in h)h.hasOwnProperty(d)&&(A[d]=h[d]);return typeof Object.freeze=="function"&&Object.freeze(A),A}()})},{}],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,x,w,T,j){x.ast||(x.ast=f,f.initialize());var L=T.length-1;switch(w){case 1:return x.ast.set({expression:{type:"root",value:T[L]}}),x.ast.unshift(),x.ast.yield();case 2:return x.ast.set({expression:{type:"root",value:T[L-1]}}),x.ast.unshift(),x.ast.yield();case 3:return x.ast.unshift(),x.ast.yield();case 4:return x.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:T[L-1]}}),x.ast.unshift(),x.ast.yield();case 5:break;case 6:break;case 7:x.ast.set({operation:"member"}),x.ast.push();break;case 8:x.ast.set({operation:"subscript"}),x.ast.push();break;case 9:x.ast.set({scope:"child"});break;case 10:x.ast.set({scope:"descendant"});break;case 11:break;case 12:x.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:x.ast.set({expression:{type:"wildcard",value:T[L]}});break;case 15:x.ast.set({expression:{type:"identifier",value:T[L]}});break;case 16:x.ast.set({expression:{type:"script_expression",value:T[L]}});break;case 17:x.ast.set({expression:{type:"numeric_literal",value:parseInt(T[L])}});break;case 18:break;case 19:x.ast.set({scope:"child"});break;case 20:x.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:T[L].length>1?x.ast.set({expression:{type:"union",value:T[L]}}):this.$=T[L];break;case 25:this.$=[T[L]];break;case 26:this.$=T[L-2].concat(T[L]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(T[L])}},x.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:T[L]}},x.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:T[L]}},x.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:T[L]}},x.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:T[L]}},x.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:T[L]}},x.ast.set(this.$);break;case 33:this.$=T[L];break;case 34:this.$=T[L];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],x=[null],w=[],T=this.table,j="",L=0,_=0,O=2,F=1,B=w.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;w.push(W);var X=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(){var ye;return ye=C.lexer.lex()||F,typeof ye!="number"&&(ye=C.symbols_[ye]||ye),ye}for(var le,me,be,Ae,de={},Se,ke,Oe,Ze;;){if(me=S[S.length-1],this.defaultActions[me]?be=this.defaultActions[me]:((le===null||typeof le>"u")&&(le=fe()),be=T[me]&&T[me][le]),typeof be>"u"||!be.length||!be[0]){var Ee="";Ze=[];for(Se in T[me])this.terminals_[Se]&&Se>O&&Ze.push("'"+this.terminals_[Se]+"'");this.lexer.showPosition?Ee="Parse error on line "+(L+1)+`:
224
224
  `+this.lexer.showPosition()+`
225
- Expecting `+Ze.join(", ")+", got '"+(this.terminals_[le]||le)+"'":Ae="Parse error on line "+(L+1)+": Unexpected "+(le==F?"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:Ze})}if(ve[0]instanceof Array&&ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+be+", token: "+le);switch(ve[0]){case 1:E.push(le),S.push(this.lexer.yytext),b.push(this.lexer.yylloc),E.push(ve[1]),le=null,_=this.lexer.yyleng,N=this.lexer.yytext,L=this.lexer.yylineno,W=this.lexer.yylloc;break;case 2:if(Oe=this.productions_[ve[1]][1],pe.$=S[S.length-Oe],pe._$={first_line:b[b.length-(Oe||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(Oe||1)].first_column,last_column:b[b.length-1].last_column},Y&&(pe._$.range=[b[b.length-(Oe||1)].range[0],b[b.length-1].range[1]]),Ce=this.performAction.apply(pe,[N,_,L,this.yy,ve[1],S,b].concat(B)),typeof Ce<"u")return Ce;Oe&&(E=E.slice(0,-1*Oe*2),S=S.slice(0,-1*Oe),b=b.slice(0,-1*Oe)),E.push(this.productions_[ve[1]][0]),S.push(pe.$),b.push(pe._$),Be=T[E[E.length-2]][E[E.length-1]],E.push(Be);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(g){for(var v in g)this._node[v]=g[v];return this._node},node:function(g){return arguments.length&&(this._node=g),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var g=this._nodes;return this.initialize(),g}},d=function(){var g={EOF:1,parseError:function(C,E){if(this.yy.parser)this.yy.parser.parseError(C,E);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,E=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 S=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),E.length-1&&(this.yylineno-=E.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:E?(E.length===S.length?this.yylloc.first_column:0)+S[S.length-E.length].length-E[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 `+Ze.join(", ")+", got '"+(this.terminals_[le]||le)+"'":Ee="Parse error on line "+(L+1)+": Unexpected "+(le==F?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(Ee,{text:this.lexer.match,token:this.terminals_[le]||le,line:this.lexer.yylineno,loc:W,expected:Ze})}if(be[0]instanceof Array&&be.length>1)throw new Error("Parse Error: multiple actions possible at state: "+me+", token: "+le);switch(be[0]){case 1:S.push(le),x.push(this.lexer.yytext),w.push(this.lexer.yylloc),S.push(be[1]),le=null,_=this.lexer.yyleng,j=this.lexer.yytext,L=this.lexer.yylineno,W=this.lexer.yylloc;break;case 2:if(ke=this.productions_[be[1]][1],de.$=x[x.length-ke],de._$={first_line:w[w.length-(ke||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(ke||1)].first_column,last_column:w[w.length-1].last_column},X&&(de._$.range=[w[w.length-(ke||1)].range[0],w[w.length-1].range[1]]),Ae=this.performAction.apply(de,[j,_,L,this.yy,be[1],x,w].concat(B)),typeof Ae<"u")return Ae;ke&&(S=S.slice(0,-1*ke*2),x=x.slice(0,-1*ke),w=w.slice(0,-1*ke)),S.push(this.productions_[be[1]][0]),x.push(de.$),w.push(de._$),Oe=T[S[S.length-2]][S[S.length-1]],S.push(Oe);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(g){for(var v in g)this._node[v]=g[v];return this._node},node:function(g){return arguments.length&&(this._node=g),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var g=this._nodes;return this.initialize(),g}},h=function(){var g={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 x=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 w=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===x.length?this.yylloc.first_column:0)+x[x.length-S.length].length-S[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[w[0],w[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 E,S,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))),S=v[0].match(/(?:\r\n?|\n).*/g),S&&(this.yylineno+=S.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:S?S[S.length-1].length-S[S.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],E=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var T in b)this[T]=b[T];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var v,C,E,S;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),T=0;T<b.length;T++)if(E=this._input.match(this.rules[b[T]]),E&&(!C||E[0].length>C[0].length)){if(C=E,S=T,this.options.backtrack_lexer){if(v=this.test_match(E,b[T]),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[S]),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,E,S,b){switch(S){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 E.yytext=E.yytext.substr(1,E.yyleng-2),32;case 11:return E.yytext=E.yytext.substr(1,E.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 g}();l.lexer=d;function p(){this.yy={}}return p.prototype=l,l.Parser=p,new p}();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(L){var _=[L.operation,L.scope,L.expression.type].join("-"),O=this._fns[_];if(!O)throw new Error("couldn't resolve key: "+_);return O.bind(this)},d.prototype.register=function(L,_){if(!_ instanceof Function)throw new Error("handler must be a function");this._fns[L]=_},d.prototype._fns={"member-child-identifier":function(L,_){var O=L.expression.value,F=_.value;if(F instanceof Object&&O in F)return[{value:F[O],path:_.path.concat(O)}]},"member-descendant-identifier":S(function(L,_,O){return L==O}),"subscript-child-numeric_literal":E(function(L,_,O){return L===O}),"member-child-numeric_literal":E(function(L,_,O){return String(L)===String(O)}),"subscript-descendant-numeric_literal":S(function(L,_,O){return L===O}),"member-child-wildcard":E(function(){return!0}),"member-descendant-wildcard":S(function(){return!0}),"subscript-descendant-wildcard":S(function(){return!0}),"subscript-child-wildcard":E(function(){return!0}),"subscript-child-slice":function(L,_){if(g(_.value)){var O=L.expression.value.split(":").map(N),F=_.value.map(function(B,W){return{value:B,path:_.path.concat(W)}});return u.apply(null,[F].concat(O))}},"subscript-child-union":function(L,_){var O=[];return L.expression.value.forEach(function(F){var B={operation:"subscript",scope:"child",expression:F.expression},W=this.resolve(B),Y=W(B,_);Y&&(O=O.concat(Y))},this),T(O)},"subscript-descendant-union":function(L,_,O){var F=n(".."),B=this,W=[],Y=F.nodes(_,"$..*").slice(1);return Y.forEach(function(fe){W.length>=O||L.expression.value.forEach(function(le){var be={operation:"subscript",scope:"child",expression:le.expression},ve=B.resolve(be),Ce=ve(be,fe);W=W.concat(Ce)})}),T(W)},"subscript-child-filter_expression":function(L,_,O){var F=L.expression.value.slice(2,-1),B=a.parse(F).body[0].expression,W=function(Y,fe){return b(B,{"@":fe})};return this.descend(_,null,W,O)},"subscript-descendant-filter_expression":function(L,_,O){var F=L.expression.value.slice(2,-1),B=a.parse(F).body[0].expression,W=function(Y,fe){return b(B,{"@":fe})};return this.traverse(_,null,W,O)},"subscript-child-script_expression":function(L,_){var O=L.expression.value.slice(1,-1);return p(_,O,"$[{{value}}]")},"member-child-script_expression":function(L,_){var O=L.expression.value.slice(1,-1);return p(_,O,"$.{{value}}")},"member-descendant-script_expression":function(L,_){var O=L.expression.value.slice(1,-1);return p(_,O,"$..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 p(L,_,O){var F=n("./index"),B=a.parse(_).body[0].expression,W=b(B,{"@":L.value}),Y=O.replace(/\{\{\s*value\s*\}\}/g,W),fe=F.nodes(L.value,Y);return fe.forEach(function(le){le.path=L.path.concat(le.path.slice(1))}),fe}function g(L){return Array.isArray(L)}function v(L){return L&&!(L instanceof Array)&&L instanceof Object}function C(L){return function(_,O,F,B){var W=_.value,Y=_.path,fe=[],le=function(be,ve){g(be)?(be.forEach(function(Ce,pe){fe.length>=B||F(pe,Ce,O)&&fe.push({path:ve.concat(pe),value:Ce})}),be.forEach(function(Ce,pe){fe.length>=B||L&&le(Ce,ve.concat(pe))})):v(be)&&(this.keys(be).forEach(function(Ce){fe.length>=B||F(Ce,be[Ce],O)&&fe.push({path:ve.concat(Ce),value:be[Ce]})}),this.keys(be).forEach(function(Ce){fe.length>=B||L&&le(be[Ce],ve.concat(Ce))}))}.bind(this);return le(W,Y),fe}}function E(L){return function(_,O,F){return this.descend(O,_.expression.value,L,F)}}function S(L){return function(_,O,F){return this.traverse(O,_.expression.value,L,F)}}function b(){try{return l.apply(this,arguments)}catch{}}function T(L){return L=L.filter(function(_){return _}),f(L,function(_){return _.path.map(function(O){return String(O).replace("-","--")}).join("-")})}function N(L){var _=String(L);return _.match(/^-?[0-9]+$/)?parseInt(_):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(p(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 E=this.nodes(v,C)[0];return E.path.pop(),this.value(v,E.path)},d.prototype.apply=function(v,C,E){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),a.equal(typeof E,"function","fn needs to be function");var S=this.nodes(v,C).sort(function(b,T){return T.path.length-b.path.length});return S.forEach(function(b){var T=b.path.pop(),N=this.value(v,this.stringify(b.path)),L=b.value=E.call(v,N[T]);N[T]=L},this),S},d.prototype.value=function(v,C,E){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),arguments.length>=3){var S=this.nodes(v,C).shift();if(!S)return this._vivify(v,C,E);var b=S.path.slice(-1).shift(),T=this.parent(v,this.stringify(S.path));T[b]=E}return this.query(v,this.stringify(C),1).shift()},d.prototype._vivify=function(v,C,E){var S=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}),T=function(N,L){var _=N.pop(),O=S.value(v,N);O||(T(N.concat(),typeof _=="string"?{}:[]),O=S.value(v,N)),O[_]=L};return T(b,E),this.query(v,C)[0]},d.prototype.query=function(v,C,E){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(p(C),"we need a path");var S=this.nodes(v,C,E).map(function(b){return b.value});return S},d.prototype.paths=function(v,C,E){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var S=this.nodes(v,C,E).map(function(b){return b.path});return S},d.prototype.nodes=function(v,C,E){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path"),E===0)return[];var S=this.parser.parse(C),b=this.handlers,T=[{path:["$"],value:v}],N=[];return S.length&&S[0].expression.type=="root"&&S.shift(),S.length?(S.forEach(function(L,_){if(!(N.length>=E)){var O=b.resolve(L),F=[];T.forEach(function(B){if(!(N.length>=E)){var W=O(L,B,E);_==S.length-1?N=N.concat(W||[]):F=F.concat(W||[])}}),T=F}}),E?N.slice(0,E):N):T},d.prototype.stringify=function(v){a.ok(v,"we need a path");var C="$",E={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return v=this._normalize(v),v.forEach(function(S){if(S.expression.type!="root"){var b=[S.scope,S.operation].join("-"),T=E[b],N;if(S.expression.type=="string_literal"?N=JSON.stringify(S.expression.value):N=S.expression.value,!T)throw new Error("couldn't find template "+b);C+=T.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(E,S){if(!(E=="$"&&S===0))if(typeof E=="string"&&E.match("^"+u.identifier+"$"))C.push({operation:"member",scope:"child",expression:{value:E,type:"identifier"}});else{var b=typeof E=="number"?"numeric_literal":"string_literal";C.push({operation:"subscript",scope:"child",expression:{value:E,type:b}})}}),C}else if(Array.isArray(v)&&typeof v[0]=="object")return v;throw new Error("couldn't understand path "+v)};function p(v){return Object.prototype.toString.call(v)=="[object String]"}d.Handlers=f,d.Parser=l;var g=new d;g.JSONPath=d,i.exports=g},{"./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 p=u.length;if(d===0)throw new Error("step cannot be zero");if(d=d?a(d):1,l=l<0?p+l:l,f=f<0?p+f:f,l=a(l===0?0:l||(d>0?0:p-1)),f=a(f===0?0:f||(d>0?p:-1)),l=d>0?Math.max(0,l):Math.min(p,l),f=d>0?Math.min(f,p):Math.max(-1,f),d>0&&f<=l)return[];if(d<0&&l<=f)return[];for(var g=[],v=l;v!=f&&!(d<0&&v<=f||d>0&&v>=f);v+=d)g.push(u[v]);return g};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(O){this.name="AssertionError",this.actual=O.actual,this.expected=O.expected,this.operator=O.operator,O.message?(this.message=O.message,this.generatedMessage=!1):(this.message=g(this),this.generatedMessage=!0);var F=O.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,F);else{var B=new Error;if(B.stack){var W=B.stack,Y=F.name,fe=W.indexOf(`
229
- `+Y);if(fe>=0){var le=W.indexOf(`
230
- `,fe+1);W=W.substring(le+1)}this.stack=W}}},a.inherits(f.AssertionError,Error);function d(_,O){return a.isUndefined(O)?""+O:a.isNumber(O)&&!isFinite(O)||a.isFunction(O)||a.isRegExp(O)?O.toString():O}function p(_,O){return a.isString(_)?_.length<O?_:_.slice(0,O):_}function g(_){return p(JSON.stringify(_.actual,d),128)+" "+_.operator+" "+p(JSON.stringify(_.expected,d),128)}function v(_,O,F,B,W){throw new f.AssertionError({message:F,actual:_,expected:O,operator:B,stackStartFunction:W})}f.fail=v;function C(_,O){_||v(_,!0,O,"==",f.ok)}f.ok=C,f.equal=function(O,F,B){O!=F&&v(O,F,B,"==",f.equal)},f.notEqual=function(O,F,B){O==F&&v(O,F,B,"!=",f.notEqual)},f.deepEqual=function(O,F,B){E(O,F)||v(O,F,B,"deepEqual",f.deepEqual)};function E(_,O){if(_===O)return!0;if(a.isBuffer(_)&&a.isBuffer(O)){if(_.length!=O.length)return!1;for(var F=0;F<_.length;F++)if(_[F]!==O[F])return!1;return!0}else return a.isDate(_)&&a.isDate(O)?_.getTime()===O.getTime():a.isRegExp(_)&&a.isRegExp(O)?_.source===O.source&&_.global===O.global&&_.multiline===O.multiline&&_.lastIndex===O.lastIndex&&_.ignoreCase===O.ignoreCase:!a.isObject(_)&&!a.isObject(O)?_==O:b(_,O)}function S(_){return Object.prototype.toString.call(_)=="[object Arguments]"}function b(_,O){if(a.isNullOrUndefined(_)||a.isNullOrUndefined(O)||_.prototype!==O.prototype)return!1;if(a.isPrimitive(_)||a.isPrimitive(O))return _===O;var F=S(_),B=S(O);if(F&&!B||!F&&B)return!1;if(F)return _=u.call(_),O=u.call(O),E(_,O);var W=L(_),Y=L(O),fe,le;if(W.length!=Y.length)return!1;for(W.sort(),Y.sort(),le=W.length-1;le>=0;le--)if(W[le]!=Y[le])return!1;for(le=W.length-1;le>=0;le--)if(fe=W[le],!E(_[fe],O[fe]))return!1;return!0}f.notDeepEqual=function(O,F,B){E(O,F)&&v(O,F,B,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(O,F,B){O!==F&&v(O,F,B,"===",f.strictEqual)},f.notStrictEqual=function(O,F,B){O===F&&v(O,F,B,"!==",f.notStrictEqual)};function T(_,O){return!_||!O?!1:Object.prototype.toString.call(O)=="[object RegExp]"?O.test(_):_ instanceof O?!0:O.call({},_)===!0}function N(_,O,F,B){var W;a.isString(F)&&(B=F,F=null);try{O()}catch(Y){W=Y}if(B=(F&&F.name?" ("+F.name+").":".")+(B?" "+B:"."),_&&!W&&v(W,F,"Missing expected exception"+B),!_&&T(W,F)&&v(W,F,"Got unwanted exception"+B),_&&W&&F&&!T(W,F)||!_&&W)throw W}f.throws=function(_,O,F){N.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(_,O){N.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(_){if(_)throw _};var L=Object.keys||function(_){var O=[];for(var F in _)l.call(_,F)&&O.push(F);return O}},{"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(J){if(!Y(J)){for(var Q=[],ue=0;ue<arguments.length;ue++)Q.push(p(arguments[ue]));return Q.join(" ")}for(var ue=1,De=arguments,Ye=De.length,ke=String(J).replace(l,function(Fe){if(Fe==="%%")return"%";if(ue>=Ye)return Fe;switch(Fe){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 Fe}}),Pe=De[ue];ue<Ye;Pe=De[++ue])F(Pe)||!ve(Pe)?ke+=" "+Pe:ke+=" "+p(Pe);return ke},o.deprecate=function(J,Q){if(le(u.process))return function(){return o.deprecate(J,Q).apply(this,arguments)};if(a.noDeprecation===!0)return J;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 J.apply(this,arguments)}return De};var f={},d;o.debuglog=function(J){if(le(d)&&(d=a.env.NODE_DEBUG||""),J=J.toUpperCase(),!f[J])if(new RegExp("\\b"+J+"\\b","i").test(d)){var Q=a.pid;f[J]=function(){var ue=o.format.apply(o,arguments);console.error("%s %d: %s",J,Q,ue)}}else f[J]=function(){};return f[J]};function p(J,Q){var ue={seen:[],stylize:v};return arguments.length>=3&&(ue.depth=arguments[2]),arguments.length>=4&&(ue.colors=arguments[3]),O(Q)?ue.showHidden=Q:Q&&o._extend(ue,Q),le(ue.showHidden)&&(ue.showHidden=!1),le(ue.depth)&&(ue.depth=2),le(ue.colors)&&(ue.colors=!1),le(ue.customInspect)&&(ue.customInspect=!0),ue.colors&&(ue.stylize=g),E(ue,J,ue.depth)}o.inspect=p,p.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]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function g(J,Q){var ue=p.styles[Q];return ue?"\x1B["+p.colors[ue][0]+"m"+J+"\x1B["+p.colors[ue][1]+"m":J}function v(J,Q){return J}function C(J){var Q={};return J.forEach(function(ue,De){Q[ue]=!0}),Q}function E(J,Q,ue){if(J.customInspect&&Q&&Ee(Q.inspect)&&Q.inspect!==o.inspect&&!(Q.constructor&&Q.constructor.prototype===Q)){var De=Q.inspect(ue,J);return Y(De)||(De=E(J,De,ue)),De}var Ye=S(J,Q);if(Ye)return Ye;var ke=Object.keys(Q),Pe=C(ke);if(J.showHidden&&(ke=Object.getOwnPropertyNames(Q)),pe(Q)&&(ke.indexOf("message")>=0||ke.indexOf("description")>=0))return b(Q);if(ke.length===0){if(Ee(Q)){var Fe=Q.name?": "+Q.name:"";return J.stylize("[Function"+Fe+"]","special")}if(be(Q))return J.stylize(RegExp.prototype.toString.call(Q),"regexp");if(Ce(Q))return J.stylize(Date.prototype.toString.call(Q),"date");if(pe(Q))return b(Q)}var Ne="",_t=!1,nn=["{","}"];if(_(Q)&&(_t=!0,nn=["[","]"]),Ee(Q)){var Pt=Q.name?": "+Q.name:"";Ne=" [Function"+Pt+"]"}if(be(Q)&&(Ne=" "+RegExp.prototype.toString.call(Q)),Ce(Q)&&(Ne=" "+Date.prototype.toUTCString.call(Q)),pe(Q)&&(Ne=" "+b(Q)),ke.length===0&&(!_t||Q.length==0))return nn[0]+Ne+nn[1];if(ue<0)return be(Q)?J.stylize(RegExp.prototype.toString.call(Q),"regexp"):J.stylize("[Object]","special");J.seen.push(Q);var Rt;return _t?Rt=T(J,Q,ue,Pe,ke):Rt=ke.map(function(Lt){return N(J,Q,ue,Pe,Lt,_t)}),J.seen.pop(),L(Rt,Ne,nn)}function S(J,Q){if(le(Q))return J.stylize("undefined","undefined");if(Y(Q)){var ue="'"+JSON.stringify(Q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return J.stylize(ue,"string")}if(W(Q))return J.stylize(""+Q,"number");if(O(Q))return J.stylize(""+Q,"boolean");if(F(Q))return J.stylize("null","null")}function b(J){return"["+Error.prototype.toString.call(J)+"]"}function T(J,Q,ue,De,Ye){for(var ke=[],Pe=0,Fe=Q.length;Pe<Fe;++Pe)Ke(Q,String(Pe))?ke.push(N(J,Q,ue,De,String(Pe),!0)):ke.push("");return Ye.forEach(function(Ne){Ne.match(/^\d+$/)||ke.push(N(J,Q,ue,De,Ne,!0))}),ke}function N(J,Q,ue,De,Ye,ke){var Pe,Fe,Ne;if(Ne=Object.getOwnPropertyDescriptor(Q,Ye)||{value:Q[Ye]},Ne.get?Ne.set?Fe=J.stylize("[Getter/Setter]","special"):Fe=J.stylize("[Getter]","special"):Ne.set&&(Fe=J.stylize("[Setter]","special")),Ke(De,Ye)||(Pe="["+Ye+"]"),Fe||(J.seen.indexOf(Ne.value)<0?(F(ue)?Fe=E(J,Ne.value,null):Fe=E(J,Ne.value,ue-1),Fe.indexOf(`
231
- `)>-1&&(ke?Fe=Fe.split(`
232
- `).map(function(_t){return" "+_t}).join(`
233
- `).substr(2):Fe=`
234
- `+Fe.split(`
235
- `).map(function(_t){return" "+_t}).join(`
236
- `))):Fe=J.stylize("[Circular]","special")),le(Pe)){if(ke&&Ye.match(/^\d+$/))return Fe;Pe=JSON.stringify(""+Ye),Pe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Pe=Pe.substr(1,Pe.length-2),Pe=J.stylize(Pe,"name")):(Pe=Pe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Pe=J.stylize(Pe,"string"))}return Pe+": "+Fe}function L(J,Q,ue){var De=J.reduce(function(Ye,ke){return ke.indexOf(`
237
- `)>=0,Ye+ke.replace(/\u001b\[\d\d?m/g,"").length+1},0);return De>60?ue[0]+(Q===""?"":Q+`
227
+ `+C+"^"},test_match:function(v,C){var S,x,w;if(this.options.backtrack_lexer&&(w={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&&(w.yylloc.range=this.yylloc.range.slice(0))),x=v[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.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 T in w)this[T]=w[T];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var v,C,S,x;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),T=0;T<w.length;T++)if(S=this._input.match(this.rules[w[T]]),S&&(!C||S[0].length>C[0].length)){if(C=S,x=T,this.options.backtrack_lexer){if(v=this.test_match(S,w[T]),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,w[x]),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,x,w){switch(x){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 g}();l.lexer=h;function p(){this.yy={}}return p.prototype=l,l.Parser=p,new p}();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(L){var _=[L.operation,L.scope,L.expression.type].join("-"),O=this._fns[_];if(!O)throw new Error("couldn't resolve key: "+_);return O.bind(this)},h.prototype.register=function(L,_){if(!_ instanceof Function)throw new Error("handler must be a function");this._fns[L]=_},h.prototype._fns={"member-child-identifier":function(L,_){var O=L.expression.value,F=_.value;if(F instanceof Object&&O in F)return[{value:F[O],path:_.path.concat(O)}]},"member-descendant-identifier":x(function(L,_,O){return L==O}),"subscript-child-numeric_literal":S(function(L,_,O){return L===O}),"member-child-numeric_literal":S(function(L,_,O){return String(L)===String(O)}),"subscript-descendant-numeric_literal":x(function(L,_,O){return L===O}),"member-child-wildcard":S(function(){return!0}),"member-descendant-wildcard":x(function(){return!0}),"subscript-descendant-wildcard":x(function(){return!0}),"subscript-child-wildcard":S(function(){return!0}),"subscript-child-slice":function(L,_){if(g(_.value)){var O=L.expression.value.split(":").map(j),F=_.value.map(function(B,W){return{value:B,path:_.path.concat(W)}});return u.apply(null,[F].concat(O))}},"subscript-child-union":function(L,_){var O=[];return L.expression.value.forEach(function(F){var B={operation:"subscript",scope:"child",expression:F.expression},W=this.resolve(B),X=W(B,_);X&&(O=O.concat(X))},this),T(O)},"subscript-descendant-union":function(L,_,O){var F=n(".."),B=this,W=[],X=F.nodes(_,"$..*").slice(1);return X.forEach(function(fe){W.length>=O||L.expression.value.forEach(function(le){var me={operation:"subscript",scope:"child",expression:le.expression},be=B.resolve(me),Ae=be(me,fe);W=W.concat(Ae)})}),T(W)},"subscript-child-filter_expression":function(L,_,O){var F=L.expression.value.slice(2,-1),B=a.parse(F).body[0].expression,W=function(X,fe){return w(B,{"@":fe})};return this.descend(_,null,W,O)},"subscript-descendant-filter_expression":function(L,_,O){var F=L.expression.value.slice(2,-1),B=a.parse(F).body[0].expression,W=function(X,fe){return w(B,{"@":fe})};return this.traverse(_,null,W,O)},"subscript-child-script_expression":function(L,_){var O=L.expression.value.slice(1,-1);return p(_,O,"$[{{value}}]")},"member-child-script_expression":function(L,_){var O=L.expression.value.slice(1,-1);return p(_,O,"$.{{value}}")},"member-descendant-script_expression":function(L,_){var O=L.expression.value.slice(1,-1);return p(_,O,"$..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 p(L,_,O){var F=n("./index"),B=a.parse(_).body[0].expression,W=w(B,{"@":L.value}),X=O.replace(/\{\{\s*value\s*\}\}/g,W),fe=F.nodes(L.value,X);return fe.forEach(function(le){le.path=L.path.concat(le.path.slice(1))}),fe}function g(L){return Array.isArray(L)}function v(L){return L&&!(L instanceof Array)&&L instanceof Object}function C(L){return function(_,O,F,B){var W=_.value,X=_.path,fe=[],le=function(me,be){g(me)?(me.forEach(function(Ae,de){fe.length>=B||F(de,Ae,O)&&fe.push({path:be.concat(de),value:Ae})}),me.forEach(function(Ae,de){fe.length>=B||L&&le(Ae,be.concat(de))})):v(me)&&(this.keys(me).forEach(function(Ae){fe.length>=B||F(Ae,me[Ae],O)&&fe.push({path:be.concat(Ae),value:me[Ae]})}),this.keys(me).forEach(function(Ae){fe.length>=B||L&&le(me[Ae],be.concat(Ae))}))}.bind(this);return le(W,X),fe}}function S(L){return function(_,O,F){return this.descend(O,_.expression.value,L,F)}}function x(L){return function(_,O,F){return this.traverse(O,_.expression.value,L,F)}}function w(){try{return l.apply(this,arguments)}catch{}}function T(L){return L=L.filter(function(_){return _}),f(L,function(_){return _.path.map(function(O){return String(O).replace("-","--")}).join("-")})}function j(L){var _=String(L);return _.match(/^-?[0-9]+$/)?parseInt(_):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(p(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 x=this.nodes(v,C).sort(function(w,T){return T.path.length-w.path.length});return x.forEach(function(w){var T=w.path.pop(),j=this.value(v,this.stringify(w.path)),L=w.value=S.call(v,j[T]);j[T]=L},this),x},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 x=this.nodes(v,C).shift();if(!x)return this._vivify(v,C,S);var w=x.path.slice(-1).shift(),T=this.parent(v,this.stringify(x.path));T[w]=S}return this.query(v,this.stringify(C),1).shift()},h.prototype._vivify=function(v,C,S){var x=this;a.ok(v instanceof Object,"obj needs to be an object"),a.ok(C,"we need a path");var w=this.parser.parse(C).map(function(j){return j.expression.value}),T=function(j,L){var _=j.pop(),O=x.value(v,j);O||(T(j.concat(),typeof _=="string"?{}:[]),O=x.value(v,j)),O[_]=L};return T(w,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(p(C),"we need a path");var x=this.nodes(v,C,S).map(function(w){return w.value});return x},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 x=this.nodes(v,C,S).map(function(w){return w.path});return x},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 x=this.parser.parse(C),w=this.handlers,T=[{path:["$"],value:v}],j=[];return x.length&&x[0].expression.type=="root"&&x.shift(),x.length?(x.forEach(function(L,_){if(!(j.length>=S)){var O=w.resolve(L),F=[];T.forEach(function(B){if(!(j.length>=S)){var W=O(L,B,S);_==x.length-1?j=j.concat(W||[]):F=F.concat(W||[])}}),T=F}}),S?j.slice(0,S):j):T},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(x){if(x.expression.type!="root"){var w=[x.scope,x.operation].join("-"),T=S[w],j;if(x.expression.type=="string_literal"?j=JSON.stringify(x.expression.value):j=x.expression.value,!T)throw new Error("couldn't find template "+w);C+=T.replace(/{{value}}/,j)}}),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,x){if(!(S=="$"&&x===0))if(typeof S=="string"&&S.match("^"+u.identifier+"$"))C.push({operation:"member",scope:"child",expression:{value:S,type:"identifier"}});else{var w=typeof S=="number"?"numeric_literal":"string_literal";C.push({operation:"subscript",scope:"child",expression:{value:S,type:w}})}}),C}else if(Array.isArray(v)&&typeof v[0]=="object")return v;throw new Error("couldn't understand path "+v)};function p(v){return Object.prototype.toString.call(v)=="[object String]"}h.Handlers=f,h.Parser=l;var g=new h;g.JSONPath=h,i.exports=g},{"./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 p=u.length;if(h===0)throw new Error("step cannot be zero");if(h=h?a(h):1,l=l<0?p+l:l,f=f<0?p+f:f,l=a(l===0?0:l||(h>0?0:p-1)),f=a(f===0?0:f||(h>0?p:-1)),l=h>0?Math.max(0,l):Math.min(p,l),f=h>0?Math.min(f,p):Math.max(-1,f),h>0&&f<=l)return[];if(h<0&&l<=f)return[];for(var g=[],v=l;v!=f&&!(h<0&&v<=f||h>0&&v>=f);v+=h)g.push(u[v]);return g};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(O){this.name="AssertionError",this.actual=O.actual,this.expected=O.expected,this.operator=O.operator,O.message?(this.message=O.message,this.generatedMessage=!1):(this.message=g(this),this.generatedMessage=!0);var F=O.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,F);else{var B=new Error;if(B.stack){var W=B.stack,X=F.name,fe=W.indexOf(`
229
+ `+X);if(fe>=0){var le=W.indexOf(`
230
+ `,fe+1);W=W.substring(le+1)}this.stack=W}}},a.inherits(f.AssertionError,Error);function h(_,O){return a.isUndefined(O)?""+O:a.isNumber(O)&&!isFinite(O)||a.isFunction(O)||a.isRegExp(O)?O.toString():O}function p(_,O){return a.isString(_)?_.length<O?_:_.slice(0,O):_}function g(_){return p(JSON.stringify(_.actual,h),128)+" "+_.operator+" "+p(JSON.stringify(_.expected,h),128)}function v(_,O,F,B,W){throw new f.AssertionError({message:F,actual:_,expected:O,operator:B,stackStartFunction:W})}f.fail=v;function C(_,O){_||v(_,!0,O,"==",f.ok)}f.ok=C,f.equal=function(O,F,B){O!=F&&v(O,F,B,"==",f.equal)},f.notEqual=function(O,F,B){O==F&&v(O,F,B,"!=",f.notEqual)},f.deepEqual=function(O,F,B){S(O,F)||v(O,F,B,"deepEqual",f.deepEqual)};function S(_,O){if(_===O)return!0;if(a.isBuffer(_)&&a.isBuffer(O)){if(_.length!=O.length)return!1;for(var F=0;F<_.length;F++)if(_[F]!==O[F])return!1;return!0}else return a.isDate(_)&&a.isDate(O)?_.getTime()===O.getTime():a.isRegExp(_)&&a.isRegExp(O)?_.source===O.source&&_.global===O.global&&_.multiline===O.multiline&&_.lastIndex===O.lastIndex&&_.ignoreCase===O.ignoreCase:!a.isObject(_)&&!a.isObject(O)?_==O:w(_,O)}function x(_){return Object.prototype.toString.call(_)=="[object Arguments]"}function w(_,O){if(a.isNullOrUndefined(_)||a.isNullOrUndefined(O)||_.prototype!==O.prototype)return!1;if(a.isPrimitive(_)||a.isPrimitive(O))return _===O;var F=x(_),B=x(O);if(F&&!B||!F&&B)return!1;if(F)return _=u.call(_),O=u.call(O),S(_,O);var W=L(_),X=L(O),fe,le;if(W.length!=X.length)return!1;for(W.sort(),X.sort(),le=W.length-1;le>=0;le--)if(W[le]!=X[le])return!1;for(le=W.length-1;le>=0;le--)if(fe=W[le],!S(_[fe],O[fe]))return!1;return!0}f.notDeepEqual=function(O,F,B){S(O,F)&&v(O,F,B,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(O,F,B){O!==F&&v(O,F,B,"===",f.strictEqual)},f.notStrictEqual=function(O,F,B){O===F&&v(O,F,B,"!==",f.notStrictEqual)};function T(_,O){return!_||!O?!1:Object.prototype.toString.call(O)=="[object RegExp]"?O.test(_):_ instanceof O?!0:O.call({},_)===!0}function j(_,O,F,B){var W;a.isString(F)&&(B=F,F=null);try{O()}catch(X){W=X}if(B=(F&&F.name?" ("+F.name+").":".")+(B?" "+B:"."),_&&!W&&v(W,F,"Missing expected exception"+B),!_&&T(W,F)&&v(W,F,"Got unwanted exception"+B),_&&W&&F&&!T(W,F)||!_&&W)throw W}f.throws=function(_,O,F){j.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(_,O){j.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(_){if(_)throw _};var L=Object.keys||function(_){var O=[];for(var F in _)l.call(_,F)&&O.push(F);return O}},{"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(J){if(!X(J)){for(var Y=[],oe=0;oe<arguments.length;oe++)Y.push(p(arguments[oe]));return Y.join(" ")}for(var oe=1,De=arguments,Je=De.length,ve=String(J).replace(l,function(je){if(je==="%%")return"%";if(oe>=Je)return je;switch(je){case"%s":return String(De[oe++]);case"%d":return Number(De[oe++]);case"%j":try{return JSON.stringify(De[oe++])}catch{return"[Circular]"}default:return je}}),Fe=De[oe];oe<Je;Fe=De[++oe])F(Fe)||!be(Fe)?ve+=" "+Fe:ve+=" "+p(Fe);return ve},o.deprecate=function(J,Y){if(le(u.process))return function(){return o.deprecate(J,Y).apply(this,arguments)};if(a.noDeprecation===!0)return J;var oe=!1;function De(){if(!oe){if(a.throwDeprecation)throw new Error(Y);a.traceDeprecation?console.trace(Y):console.error(Y),oe=!0}return J.apply(this,arguments)}return De};var f={},h;o.debuglog=function(J){if(le(h)&&(h=a.env.NODE_DEBUG||""),J=J.toUpperCase(),!f[J])if(new RegExp("\\b"+J+"\\b","i").test(h)){var Y=a.pid;f[J]=function(){var oe=o.format.apply(o,arguments);console.error("%s %d: %s",J,Y,oe)}}else f[J]=function(){};return f[J]};function p(J,Y){var oe={seen:[],stylize:v};return arguments.length>=3&&(oe.depth=arguments[2]),arguments.length>=4&&(oe.colors=arguments[3]),O(Y)?oe.showHidden=Y:Y&&o._extend(oe,Y),le(oe.showHidden)&&(oe.showHidden=!1),le(oe.depth)&&(oe.depth=2),le(oe.colors)&&(oe.colors=!1),le(oe.customInspect)&&(oe.customInspect=!0),oe.colors&&(oe.stylize=g),S(oe,J,oe.depth)}o.inspect=p,p.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]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function g(J,Y){var oe=p.styles[Y];return oe?"\x1B["+p.colors[oe][0]+"m"+J+"\x1B["+p.colors[oe][1]+"m":J}function v(J,Y){return J}function C(J){var Y={};return J.forEach(function(oe,De){Y[oe]=!0}),Y}function S(J,Y,oe){if(J.customInspect&&Y&&Se(Y.inspect)&&Y.inspect!==o.inspect&&!(Y.constructor&&Y.constructor.prototype===Y)){var De=Y.inspect(oe,J);return X(De)||(De=S(J,De,oe)),De}var Je=x(J,Y);if(Je)return Je;var ve=Object.keys(Y),Fe=C(ve);if(J.showHidden&&(ve=Object.getOwnPropertyNames(Y)),de(Y)&&(ve.indexOf("message")>=0||ve.indexOf("description")>=0))return w(Y);if(ve.length===0){if(Se(Y)){var je=Y.name?": "+Y.name:"";return J.stylize("[Function"+je+"]","special")}if(me(Y))return J.stylize(RegExp.prototype.toString.call(Y),"regexp");if(Ae(Y))return J.stylize(Date.prototype.toString.call(Y),"date");if(de(Y))return w(Y)}var Re="",Ct=!1,nn=["{","}"];if(_(Y)&&(Ct=!0,nn=["[","]"]),Se(Y)){var Lt=Y.name?": "+Y.name:"";Re=" [Function"+Lt+"]"}if(me(Y)&&(Re=" "+RegExp.prototype.toString.call(Y)),Ae(Y)&&(Re=" "+Date.prototype.toUTCString.call(Y)),de(Y)&&(Re=" "+w(Y)),ve.length===0&&(!Ct||Y.length==0))return nn[0]+Re+nn[1];if(oe<0)return me(Y)?J.stylize(RegExp.prototype.toString.call(Y),"regexp"):J.stylize("[Object]","special");J.seen.push(Y);var Pt;return Ct?Pt=T(J,Y,oe,Fe,ve):Pt=ve.map(function(jt){return j(J,Y,oe,Fe,jt,Ct)}),J.seen.pop(),L(Pt,Re,nn)}function x(J,Y){if(le(Y))return J.stylize("undefined","undefined");if(X(Y)){var oe="'"+JSON.stringify(Y).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return J.stylize(oe,"string")}if(W(Y))return J.stylize(""+Y,"number");if(O(Y))return J.stylize(""+Y,"boolean");if(F(Y))return J.stylize("null","null")}function w(J){return"["+Error.prototype.toString.call(J)+"]"}function T(J,Y,oe,De,Je){for(var ve=[],Fe=0,je=Y.length;Fe<je;++Fe)We(Y,String(Fe))?ve.push(j(J,Y,oe,De,String(Fe),!0)):ve.push("");return Je.forEach(function(Re){Re.match(/^\d+$/)||ve.push(j(J,Y,oe,De,Re,!0))}),ve}function j(J,Y,oe,De,Je,ve){var Fe,je,Re;if(Re=Object.getOwnPropertyDescriptor(Y,Je)||{value:Y[Je]},Re.get?Re.set?je=J.stylize("[Getter/Setter]","special"):je=J.stylize("[Getter]","special"):Re.set&&(je=J.stylize("[Setter]","special")),We(De,Je)||(Fe="["+Je+"]"),je||(J.seen.indexOf(Re.value)<0?(F(oe)?je=S(J,Re.value,null):je=S(J,Re.value,oe-1),je.indexOf(`
231
+ `)>-1&&(ve?je=je.split(`
232
+ `).map(function(Ct){return" "+Ct}).join(`
233
+ `).substr(2):je=`
234
+ `+je.split(`
235
+ `).map(function(Ct){return" "+Ct}).join(`
236
+ `))):je=J.stylize("[Circular]","special")),le(Fe)){if(ve&&Je.match(/^\d+$/))return je;Fe=JSON.stringify(""+Je),Fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Fe=Fe.substr(1,Fe.length-2),Fe=J.stylize(Fe,"name")):(Fe=Fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Fe=J.stylize(Fe,"string"))}return Fe+": "+je}function L(J,Y,oe){var De=J.reduce(function(Je,ve){return ve.indexOf(`
237
+ `)>=0,Je+ve.replace(/\u001b\[\d\d?m/g,"").length+1},0);return De>60?oe[0]+(Y===""?"":Y+`
238
238
  `)+" "+J.join(`,
239
- `)+" "+ue[1]:ue[0]+Q+" "+J.join(", ")+" "+ue[1]}function _(J){return Array.isArray(J)}o.isArray=_;function O(J){return typeof J=="boolean"}o.isBoolean=O;function F(J){return J===null}o.isNull=F;function B(J){return J==null}o.isNullOrUndefined=B;function W(J){return typeof J=="number"}o.isNumber=W;function Y(J){return typeof J=="string"}o.isString=Y;function fe(J){return typeof J=="symbol"}o.isSymbol=fe;function le(J){return J===void 0}o.isUndefined=le;function be(J){return ve(J)&&Be(J)==="[object RegExp]"}o.isRegExp=be;function ve(J){return typeof J=="object"&&J!==null}o.isObject=ve;function Ce(J){return ve(J)&&Be(J)==="[object Date]"}o.isDate=Ce;function pe(J){return ve(J)&&(Be(J)==="[object Error]"||J instanceof Error)}o.isError=pe;function Ee(J){return typeof J=="function"}o.isFunction=Ee;function Oe(J){return J===null||typeof J=="boolean"||typeof J=="number"||typeof J=="string"||typeof J=="symbol"||typeof J>"u"}o.isPrimitive=Oe,o.isBuffer=n("./support/isBuffer");function Be(J){return Object.prototype.toString.call(J)}function Ze(J){return J<10?"0"+J.toString(10):J.toString(10)}var Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function we(){var J=new Date,Q=[Ze(J.getHours()),Ze(J.getMinutes()),Ze(J.getSeconds())].join(":");return[J.getDate(),Ae[J.getMonth()],Q].join(" ")}o.log=function(){console.log("%s - %s",we(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(J,Q){if(!Q||!ve(Q))return J;for(var ue=Object.keys(Q),De=ue.length;De--;)J[ue[De]]=Q[ue[De]];return J};function Ke(J,Q){return Object.prototype.hasOwnProperty.call(J,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(p,g){for(var v=0,C=p.length-1;C>=0;C--){var E=p[C];E==="."?p.splice(C,1):E===".."?(p.splice(C,1),v++):v&&(p.splice(C,1),v--)}if(g)for(;v--;v)p.unshift("..");return p}o.resolve=function(){for(var p="",g=!1,v=arguments.length-1;v>=-1&&!g;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;p=C+"/"+p,g=C.charAt(0)==="/"}return p=u(f(p.split("/"),function(E){return!!E}),!g).join("/"),(g?"/":"")+p||"."},o.normalize=function(p){var g=o.isAbsolute(p),v=d(p,-1)==="/";return p=u(f(p.split("/"),function(C){return!!C}),!g).join("/"),!p&&!g&&(p="."),p&&v&&(p+="/"),(g?"/":"")+p},o.isAbsolute=function(p){return p.charAt(0)==="/"},o.join=function(){var p=Array.prototype.slice.call(arguments,0);return o.normalize(f(p,function(g,v){if(typeof g!="string")throw new TypeError("Arguments to path.join must be strings");return g}).join("/"))},o.relative=function(p,g){p=o.resolve(p).substr(1),g=o.resolve(g).substr(1);function v(L){for(var _=0;_<L.length&&L[_]==="";_++);for(var O=L.length-1;O>=0&&L[O]==="";O--);return _>O?[]:L.slice(_,O-_+1)}for(var C=v(p.split("/")),E=v(g.split("/")),S=Math.min(C.length,E.length),b=S,T=0;T<S;T++)if(C[T]!==E[T]){b=T;break}for(var N=[],T=b;T<C.length;T++)N.push("..");return N=N.concat(E.slice(b)),N.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(p){if(typeof p!="string"&&(p=p+""),p.length===0)return".";for(var g=p.charCodeAt(0),v=g===47,C=-1,E=!0,S=p.length-1;S>=1;--S)if(g=p.charCodeAt(S),g===47){if(!E){C=S;break}}else E=!1;return C===-1?v?"/":".":v&&C===1?"/":p.slice(0,C)};function l(p){typeof p!="string"&&(p=p+"");var g=0,v=-1,C=!0,E;for(E=p.length-1;E>=0;--E)if(p.charCodeAt(E)===47){if(!C){g=E+1;break}}else v===-1&&(C=!1,v=E+1);return v===-1?"":p.slice(g,v)}o.basename=function(p,g){var v=l(p);return g&&v.substr(-1*g.length)===g&&(v=v.substr(0,v.length-g.length)),v},o.extname=function(p){typeof p!="string"&&(p=p+"");for(var g=-1,v=0,C=-1,E=!0,S=0,b=p.length-1;b>=0;--b){var T=p.charCodeAt(b);if(T===47){if(!E){v=b+1;break}continue}C===-1&&(E=!1,C=b+1),T===46?g===-1?g=b:S!==1&&(S=1):g!==-1&&(S=-1)}return g===-1||C===-1||S===0||S===1&&g===C-1&&g===v+1?"":p.slice(g,C)};function f(p,g){if(p.filter)return p.filter(g);for(var v=[],C=0;C<p.length;C++)g(p[C],C,p)&&v.push(p[C]);return v}var d="ab".substr(-1)==="b"?function(p,g,v){return p.substr(g,v)}:function(p,g,v){return g<0&&(g=p.length+g),p.substr(g,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 p(_){if(u===setTimeout)return setTimeout(_,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(_,0);try{return u(_,0)}catch{try{return u.call(null,_,0)}catch{return u.call(this,_,0)}}}function g(_){if(l===clearTimeout)return clearTimeout(_);if((l===d||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(_);try{return l(_)}catch{try{return l.call(null,_)}catch{return l.call(this,_)}}}var v=[],C=!1,E,S=-1;function b(){!C||!E||(C=!1,E.length?v=E.concat(v):S=-1,v.length&&T())}function T(){if(!C){var _=p(b);C=!0;for(var O=v.length;O;){for(E=v,v=[];++S<O;)E&&E[S].run();S=-1,O=v.length}E=null,C=!1,g(_)}}a.nextTick=function(_){var O=new Array(arguments.length-1);if(arguments.length>1)for(var F=1;F<arguments.length;F++)O[F-1]=arguments[F];v.push(new N(_,O)),v.length===1&&!C&&p(T)};function N(_,O){this.fun=_,this.array=O}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 L(){}a.on=L,a.addListener=L,a.once=L,a.off=L,a.removeListener=L,a.removeAllListeners=L,a.emit=L,a.prependListener=L,a.prependOnceListener=L,a.listeners=function(_){return[]},a.binding=function(_){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(_){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 p(g,v){if(g.type==="Literal")return g.value;if(g.type==="UnaryExpression"){var C=p(g.argument);return g.operator==="+"?+C:g.operator==="-"?-C:g.operator==="~"?~C:g.operator==="!"?!C:f}else if(g.type==="ArrayExpression"){for(var E=[],S=0,b=g.elements.length;S<b;S++){var T=p(g.elements[S]);if(T===f)return f;E.push(T)}return E}else if(g.type==="ObjectExpression"){for(var N={},S=0;S<g.properties.length;S++){var L=g.properties[S],_=L.value===null?L.value:p(L.value);if(_===f)return f;N[L.key.value||L.key.name]=_}return N}else if(g.type==="BinaryExpression"||g.type==="LogicalExpression"){var b=p(g.left);if(b===f)return f;var O=p(g.right);if(O===f)return f;var F=g.operator;return F==="=="?b==O:F==="==="?b===O:F==="!="?b!=O:F==="!=="?b!==O:F==="+"?b+O:F==="-"?b-O:F==="*"?b*O:F==="/"?b/O:F==="%"?b%O:F==="<"?b<O:F==="<="?b<=O:F===">"?b>O:F===">="?b>=O:F==="|"?b|O:F==="&"?b&O:F==="^"?b^O:F==="&&"?b&&O:F==="||"?b||O:f}else{if(g.type==="Identifier")return{}.hasOwnProperty.call(l,g.name)?l[g.name]:f;if(g.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(g.type==="CallExpression"){var B=p(g.callee);if(B===f||typeof B!="function")return f;var W=g.callee.object?p(g.callee.object):f;W===f&&(W=null);for(var Y=[],S=0,b=g.arguments.length;S<b;S++){var T=p(g.arguments[S]);if(T===f)return f;Y.push(T)}return B.apply(W,Y)}else if(g.type==="MemberExpression"){var N=p(g.object);if(N===f||typeof N=="function")return f;if(g.property.type==="Identifier")return N[g.property.name];var L=p(g.property);return L===f?f:N[L]}else if(g.type==="ConditionalExpression"){var C=p(g.test);return C===f?f:p(C?g.consequent:g.alternate)}else if(g.type==="ExpressionStatement"){var C=p(g.expression);return C===f?f:C}else{if(g.type==="ReturnStatement")return p(g.argument);if(g.type==="FunctionExpression"){var fe=g.body.body,le={};Object.keys(l).forEach(function(Ae){le[Ae]=l[Ae]});for(var S=0;S<g.params.length;S++){var be=g.params[S];if(be.type=="Identifier")l[be.name]=null;else return f}for(var S in fe)if(p(fe[S])===f)return f;l=le;var ve=Object.keys(l),Ce=ve.map(function(Ae){return l[Ae]});return Function(ve.join(", "),"return "+a(g)).apply(null,Ce)}else if(g.type==="TemplateLiteral"){for(var pe="",S=0;S<g.expressions.length;S++)pe+=p(g.quasis[S]),pe+=p(g.expressions[S]);return pe+=p(g.quasis[S]),pe}else if(g.type==="TaggedTemplateExpression"){var Ee=p(g.tag),Oe=g.quasi,Be=Oe.quasis.map(p),Ze=Oe.expressions.map(p);return Ee.apply(null,[Be].concat(Ze))}else return g.type==="TemplateElement"?g.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")})})(zh);var o2=zh.exports;const Gh=bu(o2),Jh=({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 p=f.split(".").slice(1);return{title:l,dataIndex:d||p,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"&&l!==null){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:p})=>{const g=Gh.query(l,`$${p}`);f[d]=Array.isArray(g)&&g.length===1?g[0]:g}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&l!==null&&!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}},a2=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:p,selectData:g,tableProps:v})=>{if(!i&&!a)return null;const{dataSource:C,columns:E}=Jh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return A.jsx(Hh,{theme:e,baseprefix:t,dataSource:C,columns:E,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:p,selectData:g,tableProps:v})};var u2="Expected a function",Yh=NaN,c2="[object Symbol]",l2=/^\s+|\s+$/g,f2=/^[-+]0x[0-9a-f]+$/i,h2=/^0b[01]+$/i,d2=/^0o[0-7]+$/i,p2=parseInt,g2=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,y2=typeof self=="object"&&self&&self.Object===Object&&self,m2=g2||y2||Function("return this")(),w2=Object.prototype,b2=w2.toString,v2=Math.max,A2=Math.min,tc=function(){return m2.Date.now()};function S2(e,t,n){var i,o,a,u,l,f,d=0,p=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(u2);t=Xh(t)||0,nc(n)&&(p=!!n.leading,g="maxWait"in n,a=g?v2(Xh(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function C(F){var B=i,W=o;return i=o=void 0,d=F,u=e.apply(W,B),u}function E(F){return d=F,l=setTimeout(T,t),p?C(F):u}function S(F){var B=F-f,W=F-d,Y=t-B;return g?A2(Y,a-W):Y}function b(F){var B=F-f,W=F-d;return f===void 0||B>=t||B<0||g&&W>=a}function T(){var F=tc();if(b(F))return N(F);l=setTimeout(T,S(F))}function N(F){return l=void 0,v&&i?C(F):(i=o=void 0,u)}function L(){l!==void 0&&clearTimeout(l),d=0,i=f=o=l=void 0}function _(){return l===void 0?u:N(tc())}function O(){var F=tc(),B=b(F);if(i=arguments,o=this,f=F,B){if(l===void 0)return E(f);if(g)return l=setTimeout(T,t),C(f)}return l===void 0&&(l=setTimeout(T,t)),u}return O.cancel=L,O.flush=_,O}function nc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function E2(e){return!!e&&typeof e=="object"}function x2(e){return typeof e=="symbol"||E2(e)&&b2.call(e)==c2}function Xh(e){if(typeof e=="number")return e;if(x2(e))return Yh;if(nc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(l2,"");var n=h2.test(e);return n||d2.test(e)?p2(e.slice(2),n?2:8):f2.test(e)?Yh:+e}var C2=S2;const Qh=bu(C2);function _2(e){const t=Z.useRef(e);t.current=e,Z.useEffect(()=>()=>{t.current()},[])}function k2(e,t=500,n){const i=Z.useRef();_2(()=>{i.current&&i.current.cancel()});const o=Z.useMemo(()=>{const a=Qh(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=Qh(e,t,n)},[e,t,n]),o}const Zh=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"}})},Wr=({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 Zh({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),rc=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase()),ic=(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)ic(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},ea=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&&ea(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=>ea(t))),e),sc=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&&sc(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=>sc(t))),e);function Rs(e,t){const n=10**t;return Math.floor(e*n)/n}const T2=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Rs(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 Rs(n,1)},oc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Rs(t,1)}return 0},ac=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 Rs(t,1)}return 0},Ls=(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=Ls(u,t,n,l);o=o.concat(f)}}return o},ed=(e,t)=>{const n=Ut.cloneDeep(e),i=Ls(t,"type","rangeInputCpu");return Ls(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},td=(e,t)=>{const n=Ut.cloneDeep(e),i=Ls(t,"type","rangeInputCpu");return Ls(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,ac(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,oc(l))}),n},uc=(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,...uc(o,a)]:[a]}),nd=e=>e.map((t,n)=>e.slice(0,n+1));function I2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rd(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 id(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rd(Object(n),!0).forEach(function(i){I2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function O2(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 F2(e,t){if(e==null)return{};var n=O2(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 B2(e,t){return D2(e)||P2(e,t)||R2(e,t)||L2()}function D2(e){if(Array.isArray(e))return e}function P2(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 sd(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 sd(e,t)}}function sd(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 N2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function od(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 ad(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?od(Object(n),!0).forEach(function(i){N2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):od(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function j2(){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 Ns(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 ta(e){return{}.toString.call(e).includes("Object")}function $2(e){return!Object.keys(e).length}function js(e){return typeof e=="function"}function M2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function U2(e,t){return ta(t)||Kr("changeType"),Object.keys(t).some(function(n){return!M2(e,n)})&&Kr("changeField"),t}function V2(e){js(e)||Kr("selectorType")}function q2(e){js(e)||ta(e)||Kr("handlerType"),ta(e)&&Object.values(e).some(function(t){return!js(t)})&&Kr("handlersType")}function W2(e){e||Kr("initialIsRequired"),ta(e)||Kr("initialType"),$2(e)&&Kr("initialContent")}function K2(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=Ns(K2)(H2),na={changes:U2,selector:V2,handler:q2,initial:W2};function z2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};na.initial(e),na.handler(t);var n={current:e},i=Ns(Y2)(n,t),o=Ns(J2)(n),a=Ns(na.changes)(e),u=Ns(G2)(n);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return na.selector(d),d(n.current)}function f(d){j2(i,o,a,u)(d)}return[l,f]}function G2(e,t){return js(t)?t(e.current):t}function J2(e,t){return e.current=ad(ad({},e.current),t),t}function Y2(e,t,n){return js(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 X2={create:z2},Q2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Z2(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 ew(e){return{}.toString.call(e).includes("Object")}function tw(e){return e||cd("configIsRequired"),ew(e)||cd("configType"),e.urls?(nw(),{paths:{vs:e.urls.monacoBase}}):e}function nw(){console.warn(ud.deprecation)}function rw(e,t){throw new Error(e[t]||e.default)}var ud={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
+ `)+" "+oe[1]:oe[0]+Y+" "+J.join(", ")+" "+oe[1]}function _(J){return Array.isArray(J)}o.isArray=_;function O(J){return typeof J=="boolean"}o.isBoolean=O;function F(J){return J===null}o.isNull=F;function B(J){return J==null}o.isNullOrUndefined=B;function W(J){return typeof J=="number"}o.isNumber=W;function X(J){return typeof J=="string"}o.isString=X;function fe(J){return typeof J=="symbol"}o.isSymbol=fe;function le(J){return J===void 0}o.isUndefined=le;function me(J){return be(J)&&Oe(J)==="[object RegExp]"}o.isRegExp=me;function be(J){return typeof J=="object"&&J!==null}o.isObject=be;function Ae(J){return be(J)&&Oe(J)==="[object Date]"}o.isDate=Ae;function de(J){return be(J)&&(Oe(J)==="[object Error]"||J instanceof Error)}o.isError=de;function Se(J){return typeof J=="function"}o.isFunction=Se;function ke(J){return J===null||typeof J=="boolean"||typeof J=="number"||typeof J=="string"||typeof J=="symbol"||typeof J>"u"}o.isPrimitive=ke,o.isBuffer=n("./support/isBuffer");function Oe(J){return Object.prototype.toString.call(J)}function Ze(J){return J<10?"0"+J.toString(10):J.toString(10)}var Ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ye(){var J=new Date,Y=[Ze(J.getHours()),Ze(J.getMinutes()),Ze(J.getSeconds())].join(":");return[J.getDate(),Ee[J.getMonth()],Y].join(" ")}o.log=function(){console.log("%s - %s",ye(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(J,Y){if(!Y||!be(Y))return J;for(var oe=Object.keys(Y),De=oe.length;De--;)J[oe[De]]=Y[oe[De]];return J};function We(J,Y){return Object.prototype.hasOwnProperty.call(J,Y)}}).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(p,g){for(var v=0,C=p.length-1;C>=0;C--){var S=p[C];S==="."?p.splice(C,1):S===".."?(p.splice(C,1),v++):v&&(p.splice(C,1),v--)}if(g)for(;v--;v)p.unshift("..");return p}o.resolve=function(){for(var p="",g=!1,v=arguments.length-1;v>=-1&&!g;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;p=C+"/"+p,g=C.charAt(0)==="/"}return p=u(f(p.split("/"),function(S){return!!S}),!g).join("/"),(g?"/":"")+p||"."},o.normalize=function(p){var g=o.isAbsolute(p),v=h(p,-1)==="/";return p=u(f(p.split("/"),function(C){return!!C}),!g).join("/"),!p&&!g&&(p="."),p&&v&&(p+="/"),(g?"/":"")+p},o.isAbsolute=function(p){return p.charAt(0)==="/"},o.join=function(){var p=Array.prototype.slice.call(arguments,0);return o.normalize(f(p,function(g,v){if(typeof g!="string")throw new TypeError("Arguments to path.join must be strings");return g}).join("/"))},o.relative=function(p,g){p=o.resolve(p).substr(1),g=o.resolve(g).substr(1);function v(L){for(var _=0;_<L.length&&L[_]==="";_++);for(var O=L.length-1;O>=0&&L[O]==="";O--);return _>O?[]:L.slice(_,O-_+1)}for(var C=v(p.split("/")),S=v(g.split("/")),x=Math.min(C.length,S.length),w=x,T=0;T<x;T++)if(C[T]!==S[T]){w=T;break}for(var j=[],T=w;T<C.length;T++)j.push("..");return j=j.concat(S.slice(w)),j.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(p){if(typeof p!="string"&&(p=p+""),p.length===0)return".";for(var g=p.charCodeAt(0),v=g===47,C=-1,S=!0,x=p.length-1;x>=1;--x)if(g=p.charCodeAt(x),g===47){if(!S){C=x;break}}else S=!1;return C===-1?v?"/":".":v&&C===1?"/":p.slice(0,C)};function l(p){typeof p!="string"&&(p=p+"");var g=0,v=-1,C=!0,S;for(S=p.length-1;S>=0;--S)if(p.charCodeAt(S)===47){if(!C){g=S+1;break}}else v===-1&&(C=!1,v=S+1);return v===-1?"":p.slice(g,v)}o.basename=function(p,g){var v=l(p);return g&&v.substr(-1*g.length)===g&&(v=v.substr(0,v.length-g.length)),v},o.extname=function(p){typeof p!="string"&&(p=p+"");for(var g=-1,v=0,C=-1,S=!0,x=0,w=p.length-1;w>=0;--w){var T=p.charCodeAt(w);if(T===47){if(!S){v=w+1;break}continue}C===-1&&(S=!1,C=w+1),T===46?g===-1?g=w:x!==1&&(x=1):g!==-1&&(x=-1)}return g===-1||C===-1||x===0||x===1&&g===C-1&&g===v+1?"":p.slice(g,C)};function f(p,g){if(p.filter)return p.filter(g);for(var v=[],C=0;C<p.length;C++)g(p[C],C,p)&&v.push(p[C]);return v}var h="ab".substr(-1)==="b"?function(p,g,v){return p.substr(g,v)}:function(p,g,v){return g<0&&(g=p.length+g),p.substr(g,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 p(_){if(u===setTimeout)return setTimeout(_,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(_,0);try{return u(_,0)}catch{try{return u.call(null,_,0)}catch{return u.call(this,_,0)}}}function g(_){if(l===clearTimeout)return clearTimeout(_);if((l===h||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(_);try{return l(_)}catch{try{return l.call(null,_)}catch{return l.call(this,_)}}}var v=[],C=!1,S,x=-1;function w(){!C||!S||(C=!1,S.length?v=S.concat(v):x=-1,v.length&&T())}function T(){if(!C){var _=p(w);C=!0;for(var O=v.length;O;){for(S=v,v=[];++x<O;)S&&S[x].run();x=-1,O=v.length}S=null,C=!1,g(_)}}a.nextTick=function(_){var O=new Array(arguments.length-1);if(arguments.length>1)for(var F=1;F<arguments.length;F++)O[F-1]=arguments[F];v.push(new j(_,O)),v.length===1&&!C&&p(T)};function j(_,O){this.fun=_,this.array=O}j.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function L(){}a.on=L,a.addListener=L,a.once=L,a.off=L,a.removeListener=L,a.removeAllListeners=L,a.emit=L,a.prependListener=L,a.prependOnceListener=L,a.listeners=function(_){return[]},a.binding=function(_){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(_){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 p(g,v){if(g.type==="Literal")return g.value;if(g.type==="UnaryExpression"){var C=p(g.argument);return g.operator==="+"?+C:g.operator==="-"?-C:g.operator==="~"?~C:g.operator==="!"?!C:f}else if(g.type==="ArrayExpression"){for(var S=[],x=0,w=g.elements.length;x<w;x++){var T=p(g.elements[x]);if(T===f)return f;S.push(T)}return S}else if(g.type==="ObjectExpression"){for(var j={},x=0;x<g.properties.length;x++){var L=g.properties[x],_=L.value===null?L.value:p(L.value);if(_===f)return f;j[L.key.value||L.key.name]=_}return j}else if(g.type==="BinaryExpression"||g.type==="LogicalExpression"){var w=p(g.left);if(w===f)return f;var O=p(g.right);if(O===f)return f;var F=g.operator;return F==="=="?w==O:F==="==="?w===O:F==="!="?w!=O:F==="!=="?w!==O:F==="+"?w+O:F==="-"?w-O:F==="*"?w*O:F==="/"?w/O:F==="%"?w%O:F==="<"?w<O:F==="<="?w<=O:F===">"?w>O:F===">="?w>=O:F==="|"?w|O:F==="&"?w&O:F==="^"?w^O:F==="&&"?w&&O:F==="||"?w||O:f}else{if(g.type==="Identifier")return{}.hasOwnProperty.call(l,g.name)?l[g.name]:f;if(g.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(g.type==="CallExpression"){var B=p(g.callee);if(B===f||typeof B!="function")return f;var W=g.callee.object?p(g.callee.object):f;W===f&&(W=null);for(var X=[],x=0,w=g.arguments.length;x<w;x++){var T=p(g.arguments[x]);if(T===f)return f;X.push(T)}return B.apply(W,X)}else if(g.type==="MemberExpression"){var j=p(g.object);if(j===f||typeof j=="function")return f;if(g.property.type==="Identifier")return j[g.property.name];var L=p(g.property);return L===f?f:j[L]}else if(g.type==="ConditionalExpression"){var C=p(g.test);return C===f?f:p(C?g.consequent:g.alternate)}else if(g.type==="ExpressionStatement"){var C=p(g.expression);return C===f?f:C}else{if(g.type==="ReturnStatement")return p(g.argument);if(g.type==="FunctionExpression"){var fe=g.body.body,le={};Object.keys(l).forEach(function(Ee){le[Ee]=l[Ee]});for(var x=0;x<g.params.length;x++){var me=g.params[x];if(me.type=="Identifier")l[me.name]=null;else return f}for(var x in fe)if(p(fe[x])===f)return f;l=le;var be=Object.keys(l),Ae=be.map(function(Ee){return l[Ee]});return Function(be.join(", "),"return "+a(g)).apply(null,Ae)}else if(g.type==="TemplateLiteral"){for(var de="",x=0;x<g.expressions.length;x++)de+=p(g.quasis[x]),de+=p(g.expressions[x]);return de+=p(g.quasis[x]),de}else if(g.type==="TaggedTemplateExpression"){var Se=p(g.tag),ke=g.quasi,Oe=ke.quasis.map(p),Ze=ke.expressions.map(p);return Se.apply(null,[Oe].concat(Ze))}else return g.type==="TemplateElement"?g.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")})})(Wh);var n2=Wh.exports;const Kh=mu(n2),Hh=({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 p=f.split(".").slice(1);return{title:l,dataIndex:h||p,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"&&l!==null){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:p})=>{const g=Kh.query(l,`$${p}`);f[h]=Array.isArray(g)&&g.length===1?g[0]:g}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&l!==null&&!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}},r2=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:h,additionalPrinterColumnsColWidths:p,selectData:g,tableProps:v})=>{if(!i&&!a)return null;const{dataSource:C,columns:S}=Hh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return E.jsx(qh,{theme:e,baseprefix:t,dataSource:C,columns:S,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:h,additionalPrinterColumnsColWidths:p,selectData:g,tableProps:v})};var i2="Expected a function",zh=NaN,s2="[object Symbol]",o2=/^\s+|\s+$/g,a2=/^[-+]0x[0-9a-f]+$/i,u2=/^0b[01]+$/i,c2=/^0o[0-7]+$/i,l2=parseInt,f2=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,h2=typeof self=="object"&&self&&self.Object===Object&&self,d2=f2||h2||Function("return this")(),p2=Object.prototype,g2=p2.toString,y2=Math.max,m2=Math.min,Zu=function(){return d2.Date.now()};function b2(e,t,n){var i,o,a,u,l,f,h=0,p=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(i2);t=Gh(t)||0,ec(n)&&(p=!!n.leading,g="maxWait"in n,a=g?y2(Gh(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function C(F){var B=i,W=o;return i=o=void 0,h=F,u=e.apply(W,B),u}function S(F){return h=F,l=setTimeout(T,t),p?C(F):u}function x(F){var B=F-f,W=F-h,X=t-B;return g?m2(X,a-W):X}function w(F){var B=F-f,W=F-h;return f===void 0||B>=t||B<0||g&&W>=a}function T(){var F=Zu();if(w(F))return j(F);l=setTimeout(T,x(F))}function j(F){return l=void 0,v&&i?C(F):(i=o=void 0,u)}function L(){l!==void 0&&clearTimeout(l),h=0,i=f=o=l=void 0}function _(){return l===void 0?u:j(Zu())}function O(){var F=Zu(),B=w(F);if(i=arguments,o=this,f=F,B){if(l===void 0)return S(f);if(g)return l=setTimeout(T,t),C(f)}return l===void 0&&(l=setTimeout(T,t)),u}return O.cancel=L,O.flush=_,O}function ec(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function w2(e){return!!e&&typeof e=="object"}function v2(e){return typeof e=="symbol"||w2(e)&&g2.call(e)==s2}function Gh(e){if(typeof e=="number")return e;if(v2(e))return zh;if(ec(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ec(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(o2,"");var n=u2.test(e);return n||c2.test(e)?l2(e.slice(2),n?2:8):a2.test(e)?zh:+e}var E2=b2;const Jh=mu(E2);function x2(e){const t=Z.useRef(e);t.current=e,Z.useEffect(()=>()=>{t.current()},[])}function S2(e,t=500,n){const i=Z.useRef();x2(()=>{i.current&&i.current.cancel()});const o=Z.useMemo(()=>{const a=Jh(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=Jh(e,t,n)},[e,t,n]),o}const Yh=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return $e.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},Wr=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>En.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await Yh({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),tc=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase());function Ls(e,t){const n=10**t;return Math.floor(e*n)/n}const A2=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Ls(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 Ls(n,1)},nc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Ls(t,1)}return 0},rc=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 Ls(t,1)}return 0},ic=(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=ic(u,t,n,l);o=o.concat(f)}}return o},Xh=(e,t)=>{const n=ln.cloneDeep(e),i=ic(t,"type","rangeInputCpu");return ic(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=ln.get(n,u);(l||l===0)&&ln.set(n,u,rc(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=ln.get(n,u);(l||l===0)&&ln.set(n,u,nc(l))}),n},sc=(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,...sc(o,a)]:[a]}),Qh=e=>e.map((t,n)=>e.slice(0,n+1));function C2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zh(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 ed(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zh(Object(n),!0).forEach(function(i){C2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _2(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 k2(e,t){if(e==null)return{};var n=_2(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 T2(e,t){return I2(e)||O2(e,t)||F2(e,t)||B2()}function I2(e){if(Array.isArray(e))return e}function O2(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 F2(e,t){if(e){if(typeof e=="string")return td(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 td(e,t)}}function td(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 B2(){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 D2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nd(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 rd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nd(Object(n),!0).forEach(function(i){D2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nd(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function R2(){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 Ps(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 Zo(e){return{}.toString.call(e).includes("Object")}function L2(e){return!Object.keys(e).length}function js(e){return typeof e=="function"}function P2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function j2(e,t){return Zo(t)||Kr("changeType"),Object.keys(t).some(function(n){return!P2(e,n)})&&Kr("changeField"),t}function N2(e){js(e)||Kr("selectorType")}function $2(e){js(e)||Zo(e)||Kr("handlerType"),Zo(e)&&Object.values(e).some(function(t){return!js(t)})&&Kr("handlersType")}function M2(e){e||Kr("initialIsRequired"),Zo(e)||Kr("initialType"),L2(e)&&Kr("initialContent")}function U2(e,t){throw new Error(e[t]||e.default)}var V2={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=Ps(U2)(V2),ea={changes:j2,selector:N2,handler:$2,initial:M2};function q2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ea.initial(e),ea.handler(t);var n={current:e},i=Ps(H2)(n,t),o=Ps(K2)(n),a=Ps(ea.changes)(e),u=Ps(W2)(n);function l(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return ea.selector(h),h(n.current)}function f(h){R2(i,o,a,u)(h)}return[l,f]}function W2(e,t){return js(t)?t(e.current):t}function K2(e,t){return e.current=rd(rd({},e.current),t),t}function H2(e,t,n){return js(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 z2={create:q2},G2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function J2(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 Y2(e){return{}.toString.call(e).includes("Object")}function X2(e){return e||sd("configIsRequired"),Y2(e)||sd("configType"),e.urls?(Q2(),{paths:{vs:e.urls.monacoBase}}):e}function Q2(){console.warn(id.deprecation)}function Z2(e,t){throw new Error(e[t]||e.default)}var id={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,158 +246,158 @@ 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
- `},cd=Z2(rw)(ud),iw={config:tw},sw=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 ld(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],ld(e[n],t[n]))}),id(id({},e),t)}var ow={type:"cancelation",msg:"operation is manually canceled"};function cc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(ow):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var aw=X2.create({config:Q2,isInitialized:!1,resolve:null,reject:null,monaco:null}),fd=B2(aw,2),$s=fd[0],ra=fd[1];function uw(e){var t=iw.config(e),n=t.monaco,i=F2(t,["monaco"]);ra(function(o){return{config:ld(o.config,i),monaco:n}})}function cw(){var e=$s(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(ra({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),cc(lc);if(window.monaco&&window.monaco.editor)return hd(window.monaco),e.resolve(window.monaco),cc(lc);sw(lw,hw)(dw)}return cc(lc)}function lw(e){return document.body.appendChild(e)}function fw(e){var t=document.createElement("script");return e&&(t.src=e),t}function hw(e){var t=$s(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=fw("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function dw(){var e=$s(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){hd(n),e.resolve(n)},function(n){e.reject(n)})}function hd(e){$s().monaco||ra({monaco:e})}function pw(){return $s(function(e){var t=e.monaco;return t})}var lc=new Promise(function(e,t){return ra({resolve:e,reject:t})}),Ms={config:uw,init:cw,__getMonacoInstance:pw},gw={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},fc=gw,yw={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},mw=yw;function ww({children:e}){return Z.createElement("div",{style:mw.container},e)}var bw=ww,vw=bw;function Aw({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Z.createElement("section",{style:{...fc.wrapper,width:e,height:t},...u},!n&&Z.createElement(vw,null,i),Z.createElement("div",{ref:o,style:{...fc.fullWidth,...!n&&fc.hide},className:a}))}var Sw=Aw,dd=Z.memo(Sw);function Ew(e){Z.useEffect(e,[])}var hc=Ew;function xw(e,t,n=!0){let i=Z.useRef(!0);Z.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=xw;function Us(){}function zi(e,t,n,i){return Cw(e,i)||_w(e,t,n,i)}function Cw(e,t){return e.editor.getModel(pd(e,t))}function _w(e,t,n,i){return e.editor.createModel(t,n,i?pd(e,i):void 0)}function pd(e,t){return e.Uri.parse(t)}function kw({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:d="light",loading:p="Loading...",options:g={},height:v="100%",width:C="100%",className:E,wrapperProps:S={},beforeMount:b=Us,onMount:T=Us}){let[N,L]=Z.useState(!1),[_,O]=Z.useState(!0),F=Z.useRef(null),B=Z.useRef(null),W=Z.useRef(null),Y=Z.useRef(T),fe=Z.useRef(b),le=Z.useRef(!1);hc(()=>{let pe=Ms.init();return pe.then(Ee=>(B.current=Ee)&&O(!1)).catch(Ee=>Ee?.type!=="cancelation"&&console.error("Monaco initialization: error:",Ee)),()=>F.current?Ce():pe.cancel()}),_n(()=>{if(F.current&&B.current){let pe=F.current.getOriginalEditor(),Ee=zi(B.current,e||"",i||n||"text",a||"");Ee!==pe.getModel()&&pe.setModel(Ee)}},[a],N),_n(()=>{if(F.current&&B.current){let pe=F.current.getModifiedEditor(),Ee=zi(B.current,t||"",o||n||"text",u||"");Ee!==pe.getModel()&&pe.setModel(Ee)}},[u],N),_n(()=>{let pe=F.current.getModifiedEditor();pe.getOption(B.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(()=>{F.current?.getModel()?.original.setValue(e||"")},[e],N),_n(()=>{let{original:pe,modified:Ee}=F.current.getModel();B.current.editor.setModelLanguage(pe,i||n||"text"),B.current.editor.setModelLanguage(Ee,o||n||"text")},[n,i,o],N),_n(()=>{B.current?.editor.setTheme(d)},[d],N),_n(()=>{F.current?.updateOptions(g)},[g],N);let be=Z.useCallback(()=>{if(!B.current)return;fe.current(B.current);let pe=zi(B.current,e||"",i||n||"text",a||""),Ee=zi(B.current,t||"",o||n||"text",u||"");F.current?.setModel({original:pe,modified:Ee})},[n,t,o,e,i,a,u]),ve=Z.useCallback(()=>{!le.current&&W.current&&(F.current=B.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...g}),be(),B.current?.editor.setTheme(d),L(!0),le.current=!0)},[g,d,be]);Z.useEffect(()=>{N&&Y.current(F.current,B.current)},[N]),Z.useEffect(()=>{!_&&!N&&ve()},[_,N,ve]);function Ce(){let pe=F.current?.getModel();l||pe?.original?.dispose(),f||pe?.modified?.dispose(),F.current?.dispose()}return Z.createElement(dd,{width:C,height:v,isEditorReady:N,loading:p,_ref:W,className:E,wrapperProps:S})}var Tw=kw,Iw=Z.memo(Tw);function Ow(){let[e,t]=Z.useState(Ms.__getMonacoInstance());return hc(()=>{let n;return e||(n=Ms.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var Fw=Ow;function Bw(e){let t=Z.useRef();return Z.useEffect(()=>{t.current=e},[e]),t.current}var Dw=Bw,ia=new Map;function Pw({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:d={},overrideServices:p={},saveViewState:g=!0,keepCurrentModel:v=!1,width:C="100%",height:E="100%",className:S,wrapperProps:b={},beforeMount:T=Us,onMount:N=Us,onChange:L,onValidate:_=Us}){let[O,F]=Z.useState(!1),[B,W]=Z.useState(!0),Y=Z.useRef(null),fe=Z.useRef(null),le=Z.useRef(null),be=Z.useRef(N),ve=Z.useRef(T),Ce=Z.useRef(),pe=Z.useRef(i),Ee=Dw(a),Oe=Z.useRef(!1),Be=Z.useRef(!1);hc(()=>{let we=Ms.init();return we.then(Ke=>(Y.current=Ke)&&W(!1)).catch(Ke=>Ke?.type!=="cancelation"&&console.error("Monaco initialization: error:",Ke)),()=>fe.current?Ae():we.cancel()}),_n(()=>{let we=zi(Y.current,e||i||"",t||o||"",a||n||"");we!==fe.current?.getModel()&&(g&&ia.set(Ee,fe.current?.saveViewState()),fe.current?.setModel(we),g&&fe.current?.restoreViewState(ia.get(a)))},[a],O),_n(()=>{fe.current?.updateOptions(d)},[d],O),_n(()=>{!fe.current||i===void 0||(fe.current.getOption(Y.current.editor.EditorOption.readOnly)?fe.current.setValue(i):i!==fe.current.getValue()&&(Be.current=!0,fe.current.executeEdits("",[{range:fe.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),fe.current.pushUndoStop(),Be.current=!1))},[i],O),_n(()=>{let we=fe.current?.getModel();we&&o&&Y.current?.editor.setModelLanguage(we,o)},[o],O),_n(()=>{l!==void 0&&fe.current?.revealLine(l)},[l],O),_n(()=>{Y.current?.editor.setTheme(u)},[u],O);let Ze=Z.useCallback(()=>{if(!(!le.current||!Y.current)&&!Oe.current){ve.current(Y.current);let we=a||n,Ke=zi(Y.current,i||e||"",t||o||"",we||"");fe.current=Y.current?.editor.create(le.current,{model:Ke,automaticLayout:!0,...d},p),g&&fe.current.restoreViewState(ia.get(we)),Y.current.editor.setTheme(u),l!==void 0&&fe.current.revealLine(l),F(!0),Oe.current=!0}},[e,t,n,i,o,a,d,p,g,u,l]);Z.useEffect(()=>{O&&be.current(fe.current,Y.current)},[O]),Z.useEffect(()=>{!B&&!O&&Ze()},[B,O,Ze]),pe.current=i,Z.useEffect(()=>{O&&L&&(Ce.current?.dispose(),Ce.current=fe.current?.onDidChangeModelContent(we=>{Be.current||L(fe.current.getValue(),we)}))},[O,L]),Z.useEffect(()=>{if(O){let we=Y.current.editor.onDidChangeMarkers(Ke=>{let J=fe.current.getModel()?.uri;if(J&&Ke.find(Q=>Q.path===J.path)){let Q=Y.current.editor.getModelMarkers({resource:J});_?.(Q)}});return()=>{we?.dispose()}}return()=>{}},[O,_]);function Ae(){Ce.current?.dispose(),v?g&&ia.set(a,fe.current.saveViewState()):fe.current.getModel()?.dispose(),fe.current.dispose()}return Z.createElement(dd,{width:C,height:E,isEditorReady:O,loading:f,_ref:le,className:S,wrapperProps:b})}var Rw=Pw,gd=Z.memo(Rw),dc=gd;const Lw=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Iw,Editor:gd,default:dc,loader:Ms,useMonaco:Fw},Symbol.toStringTag,{value:"Module"})),pc=Symbol.for("yaml.alias"),gc=Symbol.for("yaml.document"),Hr=Symbol.for("yaml.map"),yd=Symbol.for("yaml.pair"),gr=Symbol.for("yaml.scalar"),Gi=Symbol.for("yaml.seq"),Mn=Symbol.for("yaml.node.type"),Ji=e=>!!e&&typeof e=="object"&&e[Mn]===pc,Vs=e=>!!e&&typeof e=="object"&&e[Mn]===gc,qs=e=>!!e&&typeof e=="object"&&e[Mn]===Hr,Vt=e=>!!e&&typeof e=="object"&&e[Mn]===yd,Ct=e=>!!e&&typeof e=="object"&&e[Mn]===gr,Ws=e=>!!e&&typeof e=="object"&&e[Mn]===Gi;function qt(e){if(e&&typeof e=="object")switch(e[Mn]){case Hr:case Gi:return!0}return!1}function Wt(e){if(e&&typeof e=="object")switch(e[Mn]){case pc:case Hr:case gr:case Gi:return!0}return!1}const Nw=e=>(Ct(e)||qt(e))&&!!e.anchor,pi=Symbol("break visit"),jw=Symbol("skip children"),Ks=Symbol("remove node");function gi(e,t){const n=$w(t);Vs(e)?Yi(null,e.contents,n,Object.freeze([e]))===Ks&&(e.contents=null):Yi(null,e,n,Object.freeze([]))}gi.BREAK=pi,gi.SKIP=jw,gi.REMOVE=Ks;function Yi(e,t,n,i){const o=Mw(e,t,n,i);if(Wt(o)||Vt(o))return Uw(e,i,o),Yi(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=Yi(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===pi)return pi;u===Ks&&(t.items.splice(a,1),a-=1)}}}else if(Vt(t)){i=Object.freeze(i.concat(t));const a=Yi("key",t.key,n,i);if(a===pi)return pi;a===Ks&&(t.key=null);const u=Yi("value",t.value,n,i);if(u===pi)return pi;u===Ks&&(t.value=null)}}return o}function $w(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 Mw(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(qs(t))return n.Map?.(e,t,i);if(Ws(t))return n.Seq?.(e,t,i);if(Vt(t))return n.Pair?.(e,t,i);if(Ct(t))return n.Scalar?.(e,t,i);if(Ji(t))return n.Alias?.(e,t,i)}function Uw(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(Vs(i))i.contents=n;else{const o=Ji(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Vw={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},qw=e=>e.replace(/[!,[\]{}]/g,t=>Vw[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+qw(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={};gi(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 md(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 wd(e){const t=new Set;return gi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function bd(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Ww(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=wd(e));const u=bd(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(Ct(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 Xi(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=Xi(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=Xi(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=Xi(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=Xi(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||!Nw(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 yc{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(!Vs(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"?Xi(a,{"":l},"",l):l}}class mc extends yc{constructor(t){super(pc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return gi(t,{Node:(i,o)=>{if(o===this)return gi.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=sa(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(md(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 sa(e,t,n){if(Ji(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=sa(e,o,n);a>i&&(i=a)}return i}else if(Vt(t)){const i=sa(e,t.key,n),o=sa(e,t.value,n);return Math.max(i,o)}return 1}const vd=e=>!e||typeof e!="function"&&typeof e!="object";class qe extends yc{constructor(t){super(gr),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 Kw="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 Hs(e,t,n){if(Vs(e)&&(e=e.contents),Wt(e))return e;if(Vt(e)){const g=n.schema[Hr].createNode?.(n.schema,null,n);return g.items.push(e),g}(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 mc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Kw+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 g=new qe(e);return f&&(f.node=g),g}d=e instanceof Map?u[Hr]:Symbol.iterator in Object(e)?u[Gi]:u[Hr]}a&&(a(d),delete n.onTagObj);const p=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?p.tag=t:d.default||(p.tag=d.tag),f&&(f.node=p),p}function oa(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 Hs(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 zs=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Ad extends yc{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(zs(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,oa(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&&Ct(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&&Ct(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,oa(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const zw=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Cr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const yi=(e,t,n)=>e.endsWith(`
249
+ `},sd=J2(Z2)(id),eb={config:X2},tb=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 od(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],od(e[n],t[n]))}),ed(ed({},e),t)}var nb={type:"cancelation",msg:"operation is manually canceled"};function oc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(nb):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var rb=z2.create({config:G2,isInitialized:!1,resolve:null,reject:null,monaco:null}),ad=T2(rb,2),Ns=ad[0],ta=ad[1];function ib(e){var t=eb.config(e),n=t.monaco,i=k2(t,["monaco"]);ta(function(o){return{config:od(o.config,i),monaco:n}})}function sb(){var e=Ns(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(ta({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),oc(ac);if(window.monaco&&window.monaco.editor)return ud(window.monaco),e.resolve(window.monaco),oc(ac);tb(ob,ub)(cb)}return oc(ac)}function ob(e){return document.body.appendChild(e)}function ab(e){var t=document.createElement("script");return e&&(t.src=e),t}function ub(e){var t=Ns(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=ab("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function cb(){var e=Ns(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){ud(n),e.resolve(n)},function(n){e.reject(n)})}function ud(e){Ns().monaco||ta({monaco:e})}function lb(){return Ns(function(e){var t=e.monaco;return t})}var ac=new Promise(function(e,t){return ta({resolve:e,reject:t})}),$s={config:ib,init:sb,__getMonacoInstance:lb},fb={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},uc=fb,hb={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},db=hb;function pb({children:e}){return Z.createElement("div",{style:db.container},e)}var gb=pb,yb=gb;function mb({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Z.createElement("section",{style:{...uc.wrapper,width:e,height:t},...u},!n&&Z.createElement(yb,null,i),Z.createElement("div",{ref:o,style:{...uc.fullWidth,...!n&&uc.hide},className:a}))}var bb=mb,cd=Z.memo(bb);function wb(e){Z.useEffect(e,[])}var cc=wb;function vb(e,t,n=!0){let i=Z.useRef(!0);Z.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var kn=vb;function Ms(){}function zi(e,t,n,i){return Eb(e,i)||xb(e,t,n,i)}function Eb(e,t){return e.editor.getModel(ld(e,t))}function xb(e,t,n,i){return e.editor.createModel(t,n,i?ld(e,i):void 0)}function ld(e,t){return e.Uri.parse(t)}function Sb({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:h="light",loading:p="Loading...",options:g={},height:v="100%",width:C="100%",className:S,wrapperProps:x={},beforeMount:w=Ms,onMount:T=Ms}){let[j,L]=Z.useState(!1),[_,O]=Z.useState(!0),F=Z.useRef(null),B=Z.useRef(null),W=Z.useRef(null),X=Z.useRef(T),fe=Z.useRef(w),le=Z.useRef(!1);cc(()=>{let de=$s.init();return de.then(Se=>(B.current=Se)&&O(!1)).catch(Se=>Se?.type!=="cancelation"&&console.error("Monaco initialization: error:",Se)),()=>F.current?Ae():de.cancel()}),kn(()=>{if(F.current&&B.current){let de=F.current.getOriginalEditor(),Se=zi(B.current,e||"",i||n||"text",a||"");Se!==de.getModel()&&de.setModel(Se)}},[a],j),kn(()=>{if(F.current&&B.current){let de=F.current.getModifiedEditor(),Se=zi(B.current,t||"",o||n||"text",u||"");Se!==de.getModel()&&de.setModel(Se)}},[u],j),kn(()=>{let de=F.current.getModifiedEditor();de.getOption(B.current.editor.EditorOption.readOnly)?de.setValue(t||""):t!==de.getValue()&&(de.executeEdits("",[{range:de.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),de.pushUndoStop())},[t],j),kn(()=>{F.current?.getModel()?.original.setValue(e||"")},[e],j),kn(()=>{let{original:de,modified:Se}=F.current.getModel();B.current.editor.setModelLanguage(de,i||n||"text"),B.current.editor.setModelLanguage(Se,o||n||"text")},[n,i,o],j),kn(()=>{B.current?.editor.setTheme(h)},[h],j),kn(()=>{F.current?.updateOptions(g)},[g],j);let me=Z.useCallback(()=>{if(!B.current)return;fe.current(B.current);let de=zi(B.current,e||"",i||n||"text",a||""),Se=zi(B.current,t||"",o||n||"text",u||"");F.current?.setModel({original:de,modified:Se})},[n,t,o,e,i,a,u]),be=Z.useCallback(()=>{!le.current&&W.current&&(F.current=B.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...g}),me(),B.current?.editor.setTheme(h),L(!0),le.current=!0)},[g,h,me]);Z.useEffect(()=>{j&&X.current(F.current,B.current)},[j]),Z.useEffect(()=>{!_&&!j&&be()},[_,j,be]);function Ae(){let de=F.current?.getModel();l||de?.original?.dispose(),f||de?.modified?.dispose(),F.current?.dispose()}return Z.createElement(cd,{width:C,height:v,isEditorReady:j,loading:p,_ref:W,className:S,wrapperProps:x})}var Ab=Sb,Cb=Z.memo(Ab);function _b(){let[e,t]=Z.useState($s.__getMonacoInstance());return cc(()=>{let n;return e||(n=$s.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var kb=_b;function Tb(e){let t=Z.useRef();return Z.useEffect(()=>{t.current=e},[e]),t.current}var Ib=Tb,na=new Map;function Ob({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:h={},overrideServices:p={},saveViewState:g=!0,keepCurrentModel:v=!1,width:C="100%",height:S="100%",className:x,wrapperProps:w={},beforeMount:T=Ms,onMount:j=Ms,onChange:L,onValidate:_=Ms}){let[O,F]=Z.useState(!1),[B,W]=Z.useState(!0),X=Z.useRef(null),fe=Z.useRef(null),le=Z.useRef(null),me=Z.useRef(j),be=Z.useRef(T),Ae=Z.useRef(),de=Z.useRef(i),Se=Ib(a),ke=Z.useRef(!1),Oe=Z.useRef(!1);cc(()=>{let ye=$s.init();return ye.then(We=>(X.current=We)&&W(!1)).catch(We=>We?.type!=="cancelation"&&console.error("Monaco initialization: error:",We)),()=>fe.current?Ee():ye.cancel()}),kn(()=>{let ye=zi(X.current,e||i||"",t||o||"",a||n||"");ye!==fe.current?.getModel()&&(g&&na.set(Se,fe.current?.saveViewState()),fe.current?.setModel(ye),g&&fe.current?.restoreViewState(na.get(a)))},[a],O),kn(()=>{fe.current?.updateOptions(h)},[h],O),kn(()=>{!fe.current||i===void 0||(fe.current.getOption(X.current.editor.EditorOption.readOnly)?fe.current.setValue(i):i!==fe.current.getValue()&&(Oe.current=!0,fe.current.executeEdits("",[{range:fe.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),fe.current.pushUndoStop(),Oe.current=!1))},[i],O),kn(()=>{let ye=fe.current?.getModel();ye&&o&&X.current?.editor.setModelLanguage(ye,o)},[o],O),kn(()=>{l!==void 0&&fe.current?.revealLine(l)},[l],O),kn(()=>{X.current?.editor.setTheme(u)},[u],O);let Ze=Z.useCallback(()=>{if(!(!le.current||!X.current)&&!ke.current){be.current(X.current);let ye=a||n,We=zi(X.current,i||e||"",t||o||"",ye||"");fe.current=X.current?.editor.create(le.current,{model:We,automaticLayout:!0,...h},p),g&&fe.current.restoreViewState(na.get(ye)),X.current.editor.setTheme(u),l!==void 0&&fe.current.revealLine(l),F(!0),ke.current=!0}},[e,t,n,i,o,a,h,p,g,u,l]);Z.useEffect(()=>{O&&me.current(fe.current,X.current)},[O]),Z.useEffect(()=>{!B&&!O&&Ze()},[B,O,Ze]),de.current=i,Z.useEffect(()=>{O&&L&&(Ae.current?.dispose(),Ae.current=fe.current?.onDidChangeModelContent(ye=>{Oe.current||L(fe.current.getValue(),ye)}))},[O,L]),Z.useEffect(()=>{if(O){let ye=X.current.editor.onDidChangeMarkers(We=>{let J=fe.current.getModel()?.uri;if(J&&We.find(Y=>Y.path===J.path)){let Y=X.current.editor.getModelMarkers({resource:J});_?.(Y)}});return()=>{ye?.dispose()}}return()=>{}},[O,_]);function Ee(){Ae.current?.dispose(),v?g&&na.set(a,fe.current.saveViewState()):fe.current.getModel()?.dispose(),fe.current.dispose()}return Z.createElement(cd,{width:C,height:S,isEditorReady:O,loading:f,_ref:le,className:x,wrapperProps:w})}var Fb=Ob,fd=Z.memo(Fb),lc=fd;const Bb=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Cb,Editor:fd,default:lc,loader:$s,useMonaco:kb},Symbol.toStringTag,{value:"Module"})),fc=Symbol.for("yaml.alias"),hc=Symbol.for("yaml.document"),Hr=Symbol.for("yaml.map"),hd=Symbol.for("yaml.pair"),pr=Symbol.for("yaml.scalar"),Gi=Symbol.for("yaml.seq"),Mn=Symbol.for("yaml.node.type"),Ji=e=>!!e&&typeof e=="object"&&e[Mn]===fc,Us=e=>!!e&&typeof e=="object"&&e[Mn]===hc,Vs=e=>!!e&&typeof e=="object"&&e[Mn]===Hr,Ut=e=>!!e&&typeof e=="object"&&e[Mn]===hd,At=e=>!!e&&typeof e=="object"&&e[Mn]===pr,qs=e=>!!e&&typeof e=="object"&&e[Mn]===Gi;function Vt(e){if(e&&typeof e=="object")switch(e[Mn]){case Hr:case Gi:return!0}return!1}function qt(e){if(e&&typeof e=="object")switch(e[Mn]){case fc:case Hr:case pr:case Gi:return!0}return!1}const Db=e=>(At(e)||Vt(e))&&!!e.anchor,pi=Symbol("break visit"),Rb=Symbol("skip children"),Ws=Symbol("remove node");function gi(e,t){const n=Lb(t);Us(e)?Yi(null,e.contents,n,Object.freeze([e]))===Ws&&(e.contents=null):Yi(null,e,n,Object.freeze([]))}gi.BREAK=pi,gi.SKIP=Rb,gi.REMOVE=Ws;function Yi(e,t,n,i){const o=Pb(e,t,n,i);if(qt(o)||Ut(o))return jb(e,i,o),Yi(e,o,n,i);if(typeof o!="symbol"){if(Vt(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Yi(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===pi)return pi;u===Ws&&(t.items.splice(a,1),a-=1)}}}else if(Ut(t)){i=Object.freeze(i.concat(t));const a=Yi("key",t.key,n,i);if(a===pi)return pi;a===Ws&&(t.key=null);const u=Yi("value",t.value,n,i);if(u===pi)return pi;u===Ws&&(t.value=null)}}return o}function Lb(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 Pb(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Vs(t))return n.Map?.(e,t,i);if(qs(t))return n.Seq?.(e,t,i);if(Ut(t))return n.Pair?.(e,t,i);if(At(t))return n.Scalar?.(e,t,i);if(Ji(t))return n.Alias?.(e,t,i)}function jb(e,t,n){const i=t[t.length-1];if(Vt(i))i.items[e]=n;else if(Ut(i))e==="key"?i.key=n:i.value=n;else if(Us(i))i.contents=n;else{const o=Ji(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Nb={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},$b=e=>e.replace(/[!,[\]{}]/g,t=>Nb[t]);class pn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},pn.defaultYaml,t),this.tags=Object.assign({},pn.defaultTags,n)}clone(){const t=new pn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new pn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:pn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},pn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:pn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},pn.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+$b(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&&qt(t.contents)){const a={};gi(t.contents,(u,l)=>{qt(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
+ `)}}pn.defaultYaml={explicit:!1,version:"1.2"},pn.defaultTags={"!!":"tag:yaml.org,2002:"};function dd(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 pd(e){const t=new Set;return gi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function gd(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Mb(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=pd(e));const u=gd(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(At(u.node)||Vt(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 Xi(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=Xi(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=Xi(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=Xi(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=Xi(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||!Db(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 dc{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(!Us(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"?Xi(a,{"":l},"",l):l}}class pc extends dc{constructor(t){super(fc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return gi(t,{Node:(i,o)=>{if(o===this)return gi.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=ra(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(dd(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 ra(e,t,n){if(Ji(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(Vt(t)){let i=0;for(const o of t.items){const a=ra(e,o,n);a>i&&(i=a)}return i}else if(Ut(t)){const i=ra(e,t.key,n),o=ra(e,t.value,n);return Math.max(i,o)}return 1}const yd=e=>!e||typeof e!="function"&&typeof e!="object";class Ve extends dc{constructor(t){super(pr),this.value=t}toJSON(t,n){return n?.keep?this.value:Un(this.value,t,n)}toString(){return String(this.value)}}Ve.BLOCK_FOLDED="BLOCK_FOLDED",Ve.BLOCK_LITERAL="BLOCK_LITERAL",Ve.PLAIN="PLAIN",Ve.QUOTE_DOUBLE="QUOTE_DOUBLE",Ve.QUOTE_SINGLE="QUOTE_SINGLE";const Ub="tag:yaml.org,2002:";function Vb(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 Ks(e,t,n){if(Us(e)&&(e=e.contents),qt(e))return e;if(Ut(e)){const g=n.schema[Hr].createNode?.(n.schema,null,n);return g.items.push(e),g}(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 pc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Ub+t.slice(2));let h=Vb(e,t,u.tags);if(!h){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const g=new Ve(e);return f&&(f.node=g),g}h=e instanceof Map?u[Hr]:Symbol.iterator in Object(e)?u[Gi]:u[Hr]}a&&(a(h),delete n.onTagObj);const p=h?.createNode?h.createNode(n.schema,e,n):typeof h?.nodeClass?.from=="function"?h.nodeClass.from(n.schema,e,n):new Ve(e);return t?p.tag=t:h.default||(p.tag=h.tag),f&&(f.node=p),p}function ia(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 Ks(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 Hs=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class md extends dc{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=>qt(i)||Ut(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Hs(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(Vt(a))a.addIn(o,n);else if(a===void 0&&this.schema)this.set(i,ia(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(Vt(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&&At(a)?a.value:a:Vt(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ut(n))return!1;const i=n.value;return i==null||t&&At(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 Vt(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(Vt(a))a.setIn(o,n);else if(a===void 0&&this.schema)this.set(i,ia(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const qb=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Cr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const yi=(e,t,n)=>e.endsWith(`
251
251
  `)?Cr(n,t):n.includes(`
252
252
  `)?`
253
- `+Cr(n,t):(e.endsWith(" ")?"":" ")+n,Sd="flow",wc="block",aa="quoted";function ua(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=[],p={};let g=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?d.push(0):g=o-i);let v,C,E=!1,S=-1,b=-1,T=-1;n===wc&&(S=Ed(e,S,t.length),S!==-1&&(g=S+f));for(let L;L=e[S+=1];){if(n===aa&&L==="\\"){switch(b=S,e[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}T=S}if(L===`
254
- `)n===wc&&(S=Ed(e,S,t.length)),g=S+t.length+f,v=void 0;else{if(L===" "&&C&&C!==" "&&C!==`
255
- `&&C!==" "){const _=e[S+1];_&&_!==" "&&_!==`
256
- `&&_!==" "&&(v=S)}if(S>=g)if(v)d.push(v),g=v+f,v=void 0;else if(n===aa){for(;C===" "||C===" ";)C=L,L=e[S+=1],E=!0;const _=S>T+1?S-2:b-1;if(p[_])return e;d.push(_),p[_]=!0,g=_+f,v=void 0}else E=!0}C=L}if(E&&l&&l(),d.length===0)return e;u&&u();let N=e.slice(0,d[0]);for(let L=0;L<d.length;++L){const _=d[L],O=d[L+1]||e.length;_===0?N=`
257
- ${t}${e.slice(0,O)}`:(n===aa&&p[_]&&(N+=`${e[_]}\\`),N+=`
258
- ${t}${e.slice(_+1,O)}`)}return N}function Ed(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 ca=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),la=e=>/^(%|---|\.\.\.)/m.test(e);function Gw(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 Gs(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:i}=t,o=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(la(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 p=n.substr(f+2,4);switch(p){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:p.substr(0,2)==="00"?u+="\\x"+p.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)+`
253
+ `+Cr(n,t):(e.endsWith(" ")?"":" ")+n,bd="flow",gc="block",sa="quoted";function oa(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=[],p={};let g=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?h.push(0):g=o-i);let v,C,S=!1,x=-1,w=-1,T=-1;n===gc&&(x=wd(e,x,t.length),x!==-1&&(g=x+f));for(let L;L=e[x+=1];){if(n===sa&&L==="\\"){switch(w=x,e[x+1]){case"x":x+=3;break;case"u":x+=5;break;case"U":x+=9;break;default:x+=1}T=x}if(L===`
254
+ `)n===gc&&(x=wd(e,x,t.length)),g=x+t.length+f,v=void 0;else{if(L===" "&&C&&C!==" "&&C!==`
255
+ `&&C!==" "){const _=e[x+1];_&&_!==" "&&_!==`
256
+ `&&_!==" "&&(v=x)}if(x>=g)if(v)h.push(v),g=v+f,v=void 0;else if(n===sa){for(;C===" "||C===" ";)C=L,L=e[x+=1],S=!0;const _=x>T+1?x-2:w-1;if(p[_])return e;h.push(_),p[_]=!0,g=_+f,v=void 0}else S=!0}C=L}if(S&&l&&l(),h.length===0)return e;u&&u();let j=e.slice(0,h[0]);for(let L=0;L<h.length;++L){const _=h[L],O=h[L+1]||e.length;_===0?j=`
257
+ ${t}${e.slice(0,O)}`:(n===sa&&p[_]&&(j+=`${e[_]}\\`),j+=`
258
+ ${t}${e.slice(_+1,O)}`)}return j}function wd(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 aa=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),ua=e=>/^(%|---|\.\.\.)/m.test(e);function Wb(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 zs(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:i}=t,o=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(ua(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 p=n.substr(f+2,4);switch(p){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:p.substr(0,2)==="00"?u+="\\x"+p.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:ua(u,a,aa,ca(t,!1))}function bc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
264
- `)||/[ \t]\n|\n[ \t]/.test(e))return Gs(e,t);const n=t.indent||(la(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
265
- ${n}`)+"'";return t.implicitKey?i:ua(i,n,Sd,ca(t,!1))}function Qi(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=Gs;else{const o=e.includes('"'),a=e.includes("'");o&&!a?i=bc:a&&!o?i=Gs:i=n?bc:Gs}return i(e,t)}let vc;try{vc=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:oa(u,a,sa,aa(t,!1))}function yc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
264
+ `)||/[ \t]\n|\n[ \t]/.test(e))return zs(e,t);const n=t.indent||(ua(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
265
+ ${n}`)+"'";return t.implicitKey?i:oa(i,n,bd,aa(t,!1))}function Qi(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=zs;else{const o=e.includes('"'),a=e.includes("'");o&&!a?i=yc:a&&!o?i=zs:i=n?yc:zs}return i(e,t)}let mc;try{mc=new RegExp(`(^|(?<!
266
266
  ))
267
267
  +(?!
268
- |$)`,"g")}catch{vc=/\n+(?!\n|$)/g}function fa({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 Qi(n,i);const d=i.indent||(i.forceBlockIndent||la(n)?" ":""),p=u==="literal"?!0:u==="folded"||t===qe.BLOCK_FOLDED?!1:t===qe.BLOCK_LITERAL?!0:!Gw(n,f,d.length);if(!n)return p?`|
268
+ |$)`,"g")}catch{mc=/\n+(?!\n|$)/g}function ca({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 Qi(n,i);const h=i.indent||(i.forceBlockIndent||ua(n)?" ":""),p=u==="literal"?!0:u==="folded"||t===Ve.BLOCK_FOLDED?!1:t===Ve.BLOCK_LITERAL?!0:!Wb(n,f,h.length);if(!n)return p?`|
269
269
  `:`>
270
270
  `;let g,v;for(v=n.length;v>0;--v){const O=n[v-1];if(O!==`
271
- `&&O!==" "&&O!==" ")break}let C=n.substring(v);const E=C.indexOf(`
272
- `);E===-1?g="-":n===C||E!==C.length-1?(g="+",a&&a()):g="",C&&(n=n.slice(0,-C.length),C[C.length-1]===`
273
- `&&(C=C.slice(0,-1)),C=C.replace(vc,`$&${d}`));let S=!1,b,T=-1;for(b=0;b<n.length;++b){const O=n[b];if(O===" ")S=!0;else if(O===`
274
- `)T=b;else break}let N=n.substring(0,T<b?T+1:b);N&&(n=n.substring(N.length),N=N.replace(/\n+/g,`$&${d}`));let _=(S?d?"2":"1":"")+g;if(e&&(_+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!p){const O=n.replace(/\n+/g,`
275
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let F=!1;const B=ca(i,!0);u!=="folded"&&t!==qe.BLOCK_FOLDED&&(B.onOverflow=()=>{F=!0});const W=ua(`${N}${O}${C}`,d,wc,B);if(!F)return`>${_}
276
- ${d}${W}`}return n=n.replace(/\n+/g,`$&${d}`),`|${_}
277
- ${d}${N}${n}${C}`}function Jw(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:d,inFlow:p}=t;if(l&&a.includes(`
271
+ `&&O!==" "&&O!==" ")break}let C=n.substring(v);const S=C.indexOf(`
272
+ `);S===-1?g="-":n===C||S!==C.length-1?(g="+",a&&a()):g="",C&&(n=n.slice(0,-C.length),C[C.length-1]===`
273
+ `&&(C=C.slice(0,-1)),C=C.replace(mc,`$&${h}`));let x=!1,w,T=-1;for(w=0;w<n.length;++w){const O=n[w];if(O===" ")x=!0;else if(O===`
274
+ `)T=w;else break}let j=n.substring(0,T<w?T+1:w);j&&(n=n.substring(j.length),j=j.replace(/\n+/g,`$&${h}`));let _=(x?h?"2":"1":"")+g;if(e&&(_+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!p){const O=n.replace(/\n+/g,`
275
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`);let F=!1;const B=aa(i,!0);u!=="folded"&&t!==Ve.BLOCK_FOLDED&&(B.onOverflow=()=>{F=!0});const W=oa(`${j}${O}${C}`,h,gc,B);if(!F)return`>${_}
276
+ ${h}${W}`}return n=n.replace(/\n+/g,`$&${h}`),`|${_}
277
+ ${h}${j}${n}${C}`}function Kb(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:h,inFlow:p}=t;if(l&&a.includes(`
278
278
  `)||p&&/[[\]{},]/.test(a))return Qi(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||p||!a.includes(`
279
- `)?Qi(a,t):fa(e,t,n,i);if(!l&&!p&&o!==qe.PLAIN&&a.includes(`
280
- `))return fa(e,t,n,i);if(la(a)){if(f==="")return t.forceBlockIndent=!0,fa(e,t,n,i);if(l&&f===d)return Qi(a,t)}const g=a.replace(/\n+/g,`$&
281
- ${f}`);if(u){const v=S=>S.default&&S.tag!=="tag:yaml.org,2002:str"&&S.test?.test(g),{compat:C,tags:E}=t.doc.schema;if(E.some(v)||C?.some(v))return Qi(a,t)}return l?g:ua(g,f,Sd,ca(t,!1))}function Ac(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=p=>{switch(p){case qe.BLOCK_FOLDED:case qe.BLOCK_LITERAL:return o||a?Qi(u.value,t):fa(u,t,n,i);case qe.QUOTE_DOUBLE:return Gs(u.value,t);case qe.QUOTE_SINGLE:return bc(u.value,t);case qe.PLAIN:return Jw(u,t,n,i);default:return null}};let d=f(l);if(d===null){const{defaultKeyType:p,defaultStringType:g}=t.options,v=o&&p||g;if(d=f(v),d===null)throw new Error(`Unsupported default string type ${v}`)}return d}function xd(e,t){const n=Object.assign({blockQuote:!0,commentString:zw,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 Yw(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(Ct(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 Xw(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(Ct(e)||qt(e))&&e.anchor;a&&md(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 Zi(e,t,n,i){if(Vt(e))return e.toString(t,n,i);if(Ji(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=Yw(t.doc.schema.tags,a));const u=Xw(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):Ct(a)?Ac(a,t,n,i):a.toString(t,n,i);return u?Ct(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
282
- ${t.indent}${l}`:l}function Qw({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:d,indentSeq:p,simpleKeys:g}}=n;let v=Wt(e)&&e.comment||null;if(g){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(qt(e)||!Wt(e)&&typeof e=="object"){const B="With simple keys, collection cannot be used as a key value";throw new Error(B)}}let C=!g&&(!e||v&&t==null&&!n.inFlow||qt(e)||(Ct(e)?e.type===qe.BLOCK_FOLDED||e.type===qe.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!C&&(g||!a),indent:l+f});let E=!1,S=!1,b=Zi(e,n,()=>E=!0,()=>S=!0);if(!C&&!n.inFlow&&b.length>1024){if(g)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 E&&i&&i(),b===""?"?":C?`? ${b}`:b}else if(a&&!g||t==null&&C)return b=`? ${b}`,v&&!E?b+=yi(b,n.indent,d(v)):S&&o&&o(),b;E&&(v=null),C?(v&&(b+=yi(b,n.indent,d(v))),b=`? ${b}
283
- ${l}:`):(b=`${b}:`,v&&(b+=yi(b,n.indent,d(v))));let T,N,L;Wt(t)?(T=!!t.spaceBefore,N=t.commentBefore,L=t.comment):(T=!1,N=null,L=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!C&&!v&&Ct(t)&&(n.indentAtStart=b.length+1),S=!1,!p&&f.length>=2&&!n.inFlow&&!C&&Ws(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let _=!1;const O=Zi(t,n,()=>_=!0,()=>S=!0);let F=" ";if(v||T||N){if(F=T?`
284
- `:"",N){const B=d(N);F+=`
279
+ `)?Qi(a,t):ca(e,t,n,i);if(!l&&!p&&o!==Ve.PLAIN&&a.includes(`
280
+ `))return ca(e,t,n,i);if(ua(a)){if(f==="")return t.forceBlockIndent=!0,ca(e,t,n,i);if(l&&f===h)return Qi(a,t)}const g=a.replace(/\n+/g,`$&
281
+ ${f}`);if(u){const v=x=>x.default&&x.tag!=="tag:yaml.org,2002:str"&&x.test?.test(g),{compat:C,tags:S}=t.doc.schema;if(S.some(v)||C?.some(v))return Qi(a,t)}return l?g:oa(g,f,bd,aa(t,!1))}function bc(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!==Ve.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=Ve.QUOTE_DOUBLE);const f=p=>{switch(p){case Ve.BLOCK_FOLDED:case Ve.BLOCK_LITERAL:return o||a?Qi(u.value,t):ca(u,t,n,i);case Ve.QUOTE_DOUBLE:return zs(u.value,t);case Ve.QUOTE_SINGLE:return yc(u.value,t);case Ve.PLAIN:return Kb(u,t,n,i);default:return null}};let h=f(l);if(h===null){const{defaultKeyType:p,defaultStringType:g}=t.options,v=o&&p||g;if(h=f(v),h===null)throw new Error(`Unsupported default string type ${v}`)}return h}function vd(e,t){const n=Object.assign({blockQuote:!0,commentString:qb,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 Hb(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(At(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 zb(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(At(e)||Vt(e))&&e.anchor;a&&dd(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 Zi(e,t,n,i){if(Ut(e))return e.toString(t,n,i);if(Ji(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=qt(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=Hb(t.doc.schema.tags,a));const u=zb(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):At(a)?bc(a,t,n,i):a.toString(t,n,i);return u?At(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
282
+ ${t.indent}${l}`:l}function Gb({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:h,indentSeq:p,simpleKeys:g}}=n;let v=qt(e)&&e.comment||null;if(g){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(Vt(e)||!qt(e)&&typeof e=="object"){const B="With simple keys, collection cannot be used as a key value";throw new Error(B)}}let C=!g&&(!e||v&&t==null&&!n.inFlow||Vt(e)||(At(e)?e.type===Ve.BLOCK_FOLDED||e.type===Ve.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!C&&(g||!a),indent:l+f});let S=!1,x=!1,w=Zi(e,n,()=>S=!0,()=>x=!0);if(!C&&!n.inFlow&&w.length>1024){if(g)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(),w===""?"?":C?`? ${w}`:w}else if(a&&!g||t==null&&C)return w=`? ${w}`,v&&!S?w+=yi(w,n.indent,h(v)):x&&o&&o(),w;S&&(v=null),C?(v&&(w+=yi(w,n.indent,h(v))),w=`? ${w}
283
+ ${l}:`):(w=`${w}:`,v&&(w+=yi(w,n.indent,h(v))));let T,j,L;qt(t)?(T=!!t.spaceBefore,j=t.commentBefore,L=t.comment):(T=!1,j=null,L=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!C&&!v&&At(t)&&(n.indentAtStart=w.length+1),x=!1,!p&&f.length>=2&&!n.inFlow&&!C&&qs(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let _=!1;const O=Zi(t,n,()=>_=!0,()=>x=!0);let F=" ";if(v||T||j){if(F=T?`
284
+ `:"",j){const B=h(j);F+=`
285
285
  ${Cr(B,n.indent)}`}O===""&&!n.inFlow?F===`
286
286
  `&&(F=`
287
287
 
288
288
  `):F+=`
289
- ${n.indent}`}else if(!C&&qt(t)){const B=O[0],W=O.indexOf(`
290
- `),Y=W!==-1,fe=n.inFlow??t.flow??t.items.length===0;if(Y||!fe){let le=!1;if(Y&&(B==="&"||B==="!")){let be=O.indexOf(" ");B==="&"&&be!==-1&&be<W&&O[be+1]==="!"&&(be=O.indexOf(" ",be+1)),(be===-1||W<be)&&(le=!0)}le||(F=`
289
+ ${n.indent}`}else if(!C&&Vt(t)){const B=O[0],W=O.indexOf(`
290
+ `),X=W!==-1,fe=n.inFlow??t.flow??t.items.length===0;if(X||!fe){let le=!1;if(X&&(B==="&"||B==="!")){let me=O.indexOf(" ");B==="&"&&me!==-1&&me<W&&O[me+1]==="!"&&(me=O.indexOf(" ",me+1)),(me===-1||W<me)&&(le=!0)}le||(F=`
291
291
  ${n.indent}`)}}else(O===""||O[0]===`
292
- `)&&(F="");return b+=F+O,n.inFlow?_&&i&&i():L&&!_?b+=yi(b,n.indent,d(L)):S&&o&&o(),b}function Cd(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const ha="<<",_r={identify:e=>e===ha||typeof e=="symbol"&&e.description===ha,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new qe(Symbol(ha)),{addToJSMap:_d}),stringify:()=>ha},Zw=(e,t)=>(_r.identify(t)||Ct(t)&&(!t.type||t.type===qe.PLAIN)&&_r.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===_r.tag&&n.default);function _d(e,t,n){if(n=e&&Ji(n)?n.resolve(e.doc):n,Ws(n))for(const i of n.items)Sc(e,t,i);else if(Array.isArray(n))for(const i of n)Sc(e,t,i);else Sc(e,t,n)}function Sc(e,t,n){const i=e&&Ji(n)?n.resolve(e.doc):n;if(!qs(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 kd(e,t,{key:n,value:i}){if(Wt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Zw(e,n))_d(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=eb(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 eb(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Wt(e)&&n?.doc){const i=xd(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)+'..."'),Cd(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 Ec(e,t,n){const i=Hs(e,void 0,n),o=Hs(t,void 0,n);return new dn(i,o)}class dn{constructor(t,n=null){Object.defineProperty(this,Mn,{value:yd}),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 kd(n,i,this)}toString(t,n,i){return t?.doc?Qw(this,t,n,i):JSON.stringify(this)}}function Td(e,t,n){return(t.inFlow??e.flow?nb:tb)(e,t,n)}function tb({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:d}}=n,p=Object.assign({},n,{indent:a,type:null});let g=!1;const v=[];for(let E=0;E<t.length;++E){const S=t[E];let b=null;if(Wt(S))!g&&S.spaceBefore&&v.push(""),da(n,v,S.commentBefore,g),S.comment&&(b=S.comment);else if(Vt(S)){const N=Wt(S.key)?S.key:null;N&&(!g&&N.spaceBefore&&v.push(""),da(n,v,N.commentBefore,g))}g=!1;let T=Zi(S,p,()=>b=null,()=>g=!0);b&&(T+=yi(T,a,d(b))),g&&b&&(g=!1),v.push(i+T)}let C;if(v.length===0)C=o.start+o.end;else{C=v[0];for(let E=1;E<v.length;++E){const S=v[E];C+=S?`
293
- ${f}${S}`:`
292
+ `)&&(F="");return w+=F+O,n.inFlow?_&&i&&i():L&&!_?w+=yi(w,n.indent,h(L)):x&&o&&o(),w}function Ed(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const la="<<",_r={identify:e=>e===la||typeof e=="symbol"&&e.description===la,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ve(Symbol(la)),{addToJSMap:xd}),stringify:()=>la},Jb=(e,t)=>(_r.identify(t)||At(t)&&(!t.type||t.type===Ve.PLAIN)&&_r.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===_r.tag&&n.default);function xd(e,t,n){if(n=e&&Ji(n)?n.resolve(e.doc):n,qs(n))for(const i of n.items)wc(e,t,i);else if(Array.isArray(n))for(const i of n)wc(e,t,i);else wc(e,t,n)}function wc(e,t,n){const i=e&&Ji(n)?n.resolve(e.doc):n;if(!Vs(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 Sd(e,t,{key:n,value:i}){if(qt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Jb(e,n))xd(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=Yb(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 Yb(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(qt(e)&&n?.doc){const i=vd(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)+'..."'),Ed(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 vc(e,t,n){const i=Ks(e,void 0,n),o=Ks(t,void 0,n);return new gn(i,o)}class gn{constructor(t,n=null){Object.defineProperty(this,Mn,{value:hd}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return qt(n)&&(n=n.clone(t)),qt(i)&&(i=i.clone(t)),new gn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return Sd(n,i,this)}toString(t,n,i){return t?.doc?Gb(this,t,n,i):JSON.stringify(this)}}function Ad(e,t,n){return(t.inFlow??e.flow?Qb:Xb)(e,t,n)}function Xb({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:h}}=n,p=Object.assign({},n,{indent:a,type:null});let g=!1;const v=[];for(let S=0;S<t.length;++S){const x=t[S];let w=null;if(qt(x))!g&&x.spaceBefore&&v.push(""),fa(n,v,x.commentBefore,g),x.comment&&(w=x.comment);else if(Ut(x)){const j=qt(x.key)?x.key:null;j&&(!g&&j.spaceBefore&&v.push(""),fa(n,v,j.commentBefore,g))}g=!1;let T=Zi(x,p,()=>w=null,()=>g=!0);w&&(T+=yi(T,a,h(w))),g&&w&&(g=!1),v.push(i+T)}let C;if(v.length===0)C=o.start+o.end;else{C=v[0];for(let S=1;S<v.length;++S){const x=v[S];C+=x?`
293
+ ${f}${x}`:`
294
294
  `}}return e?(C+=`
295
- `+Cr(d(e),f),l&&l()):g&&u&&u(),C}function nb({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,p=0;const g=[];for(let E=0;E<e.length;++E){const S=e[E];let b=null;if(Wt(S))S.spaceBefore&&g.push(""),da(t,g,S.commentBefore,!1),S.comment&&(b=S.comment);else if(Vt(S)){const N=Wt(S.key)?S.key:null;N&&(N.spaceBefore&&g.push(""),da(t,g,N.commentBefore,!1),N.comment&&(d=!0));const L=Wt(S.value)?S.value:null;L?(L.comment&&(b=L.comment),L.commentBefore&&(d=!0)):S.value==null&&N?.comment&&(b=N.comment)}b&&(d=!0);let T=Zi(S,f,()=>b=null);E<e.length-1&&(T+=","),b&&(T+=yi(T,i,l(b))),!d&&(g.length>p||T.includes(`
296
- `))&&(d=!0),g.push(T),p=g.length}const{start:v,end:C}=n;if(g.length===0)return v+C;if(!d){const E=g.reduce((S,b)=>S+b.length+2,2);d=t.options.lineWidth>0&&E>t.options.lineWidth}if(d){let E=v;for(const S of g)E+=S?`
297
- ${a}${o}${S}`:`
298
- `;return`${E}
299
- ${o}${C}`}else return`${v}${u}${g.join(" ")}${u}${C}`}function da({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=Cr(t(i),e);n.push(a.trimStart())}}function mi(e,t){const n=Ct(t)?t.value:t;for(const i of e)if(Vt(i)&&(i.key===t||i.key===n||Ct(i.key)&&i.key.value===n))return i}class Vn extends Ad{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Hr,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(Ec(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=mi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);Ct(o.value)&&vd(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=mi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=mi(this.items,t)?.value;return(!n&&Ct(o)?o.value:o)??void 0}has(t){return!!mi(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)kd(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})),Td(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const es={collection:"map",default:!0,nodeClass:Vn,tag:"tag:yaml.org,2002:map",resolve(e,t){return qs(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Vn.from(e,t,n)};class wi extends Ad{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Gi,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=pa(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=pa(t);if(typeof i!="number")return;const o=this.items[i];return!n&&Ct(o)?o.value:o}has(t){const n=pa(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=pa(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];Ct(o)&&vd(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?Td(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(Hs(l,void 0,i))}}return a}}function pa(e){let t=Ct(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ts={collection:"seq",default:!0,nodeClass:wi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Ws(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>wi.from(e,t,n)},ga={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),Ac(e,t,n,i)}},ya={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"&&ya.test.test(e)?e:t.options.nullStr},xc={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&&xc.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 Id={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},Od={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)}},Fd={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},ma=e=>typeof e=="bigint"||Number.isInteger(e),Cc=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Bd(e,t,n){const{value:i}=e;return ma(i)&&i>=0?n+i.toString(t):er(e)}const Dd={identify:e=>ma(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Cc(e,2,8,n),stringify:e=>Bd(e,8,"0o")},Pd={identify:ma,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Cc(e,0,10,n),stringify:er},Rd={identify:e=>ma(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Cc(e,2,16,n),stringify:e=>Bd(e,16,"0x")},rb=[es,ts,ga,ya,xc,Dd,Pd,Rd,Id,Od,Fd];function Ld(e){return typeof e=="bigint"||Number.isInteger(e)}const wa=({value:e})=>JSON.stringify(e),ib=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:wa},{identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:wa},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:wa},{identify:Ld,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})=>Ld(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:wa}],sb={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},ob=[es,ts].concat(ib,sb),_c={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),p=new Array(d);for(let g=0,v=0;g<d;++g,v+=f)p[g]=l.substr(v,f);l=p.join(t===qe.BLOCK_LITERAL?`
300
- `:" ")}return Ac({comment:e,type:t,value:l},i,o,a)}};function Nd(e,t){if(Ws(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Vt(i)){if(qs(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}
295
+ `+Cr(h(e),f),l&&l()):g&&u&&u(),C}function Qb({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,p=0;const g=[];for(let S=0;S<e.length;++S){const x=e[S];let w=null;if(qt(x))x.spaceBefore&&g.push(""),fa(t,g,x.commentBefore,!1),x.comment&&(w=x.comment);else if(Ut(x)){const j=qt(x.key)?x.key:null;j&&(j.spaceBefore&&g.push(""),fa(t,g,j.commentBefore,!1),j.comment&&(h=!0));const L=qt(x.value)?x.value:null;L?(L.comment&&(w=L.comment),L.commentBefore&&(h=!0)):x.value==null&&j?.comment&&(w=j.comment)}w&&(h=!0);let T=Zi(x,f,()=>w=null);S<e.length-1&&(T+=","),w&&(T+=yi(T,i,l(w))),!h&&(g.length>p||T.includes(`
296
+ `))&&(h=!0),g.push(T),p=g.length}const{start:v,end:C}=n;if(g.length===0)return v+C;if(!h){const S=g.reduce((x,w)=>x+w.length+2,2);h=t.options.lineWidth>0&&S>t.options.lineWidth}if(h){let S=v;for(const x of g)S+=x?`
297
+ ${a}${o}${x}`:`
298
+ `;return`${S}
299
+ ${o}${C}`}else return`${v}${u}${g.join(" ")}${u}${C}`}function fa({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=Cr(t(i),e);n.push(a.trimStart())}}function mi(e,t){const n=At(t)?t.value:t;for(const i of e)if(Ut(i)&&(i.key===t||i.key===n||At(i.key)&&i.key.value===n))return i}class Vn extends md{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Hr,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(vc(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;Ut(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new gn(t,t?.value):i=new gn(t.key,t.value);const o=mi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);At(o.value)&&yd(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=mi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=mi(this.items,t)?.value;return(!n&&At(o)?o.value:o)??void 0}has(t){return!!mi(this.items,t)}set(t,n){this.add(new gn(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)Sd(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Ut(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})),Ad(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const es={collection:"map",default:!0,nodeClass:Vn,tag:"tag:yaml.org,2002:map",resolve(e,t){return Vs(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Vn.from(e,t,n)};class bi extends md{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Gi,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=ha(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=ha(t);if(typeof i!="number")return;const o=this.items[i];return!n&&At(o)?o.value:o}has(t){const n=ha(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=ha(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];At(o)&&yd(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?Ad(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(Ks(l,void 0,i))}}return a}}function ha(e){let t=At(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ts={collection:"seq",default:!0,nodeClass:bi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return qs(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>bi.from(e,t,n)},da={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),bc(e,t,n,i)}},pa={identify:e=>e==null,createNode:()=>new Ve(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ve(null),stringify:({source:e},t)=>typeof e=="string"&&pa.test.test(e)?e:t.options.nullStr},Ec={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ve(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Ec.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 Cd={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},_d={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)}},kd={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 Ve(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:er},ga=e=>typeof e=="bigint"||Number.isInteger(e),xc=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Td(e,t,n){const{value:i}=e;return ga(i)&&i>=0?n+i.toString(t):er(e)}const Id={identify:e=>ga(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>xc(e,2,8,n),stringify:e=>Td(e,8,"0o")},Od={identify:ga,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>xc(e,0,10,n),stringify:er},Fd={identify:e=>ga(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>xc(e,2,16,n),stringify:e=>Td(e,16,"0x")},Zb=[es,ts,da,pa,Ec,Id,Od,Fd,Cd,_d,kd];function Bd(e){return typeof e=="bigint"||Number.isInteger(e)}const ya=({value:e})=>JSON.stringify(e),ew=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ya},{identify:e=>e==null,createNode:()=>new Ve(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ya},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:ya},{identify:Bd,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})=>Bd(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:ya}],tw={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},nw=[es,ts].concat(ew,tw),Sc={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=Ve.BLOCK_LITERAL),t!==Ve.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),h=Math.ceil(l.length/f),p=new Array(h);for(let g=0,v=0;g<h;++g,v+=f)p[g]=l.substr(v,f);l=p.join(t===Ve.BLOCK_LITERAL?`
300
+ `:" ")}return bc({comment:e,type:t,value:l},i,o,a)}};function Dd(e,t){if(qs(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Ut(i)){if(Vs(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new gn(new Ve(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 jd(e,t,n){const{replacer:i}=n,o=new wi(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(Ec(l,f,n))}return o}const kc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Nd,createNode:jd};class ns extends wi{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=ns.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=jd(t,n,i),a=new this;return a.items=o.items,a}}ns.tag="tag:yaml.org,2002:omap";const Tc={collection:"seq",identify:e=>e instanceof Map,nodeClass:ns,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Nd(e,t),i=[];for(const{key:o}of n.items)Ct(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new ns,n)},createNode:(e,t,n)=>ns.from(e,t,n)};function $d({value:e,source:t},n){return t&&(e?Md:Ud).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Md={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:$d},Ud={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:$d},ab={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},ub={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)}},cb={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},Js=e=>typeof e=="bigint"||Number.isInteger(e);function ba(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 Ic(e,t,n){const{value:i}=e;if(Js(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return er(e)}const lb={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>ba(e,2,2,n),stringify:e=>Ic(e,2,"0b")},fb={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>ba(e,1,8,n),stringify:e=>Ic(e,8,"0")},hb={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>ba(e,0,10,n),stringify:er},db={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>ba(e,2,16,n),stringify:e=>Ic(e,16,"0x")};class rs extends Vn{constructor(t){super(t),this.tag=rs.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),mi(this.items,n.key)||this.items.push(n)}get(t,n){const i=mi(this.items,t);return!n&&Vt(i)?Ct(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=mi(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(Ec(u,null,i));return a}}rs.tag="tag:yaml.org,2002:set";const Oc={collection:"map",identify:e=>e instanceof Set,nodeClass:rs,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>rs.from(e,t,n),resolve(e,t){if(qs(e)){if(e.hasAllNullValues(!0))return Object.assign(new rs,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Fc(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 Vd(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 qd={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})=>Fc(e,n),stringify:Vd},Wd={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=>Fc(e,!1),stringify:Vd},va={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(va.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 p=t[8];if(p&&p!=="Z"){let g=Fc(p,!1);Math.abs(g)<30&&(g*=60),d-=6e4*g}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},Kd=[es,ts,ga,ya,Md,Ud,lb,fb,hb,db,ab,ub,cb,_c,_r,Tc,kc,Oc,qd,Wd,va],Hd=new Map([["core",rb],["failsafe",[es,ts,ga]],["json",ob],["yaml11",Kd],["yaml-1.1",Kd]]),zd={binary:_c,bool:xc,float:Fd,floatExp:Od,floatNaN:Id,floatTime:Wd,int:Pd,intHex:Rd,intOct:Dd,intTime:qd,map:es,merge:_r,null:ya,omap:Tc,pairs:kc,seq:ts,set:Oc,timestamp:va},pb={"tag:yaml.org,2002:binary":_c,"tag:yaml.org,2002:merge":_r,"tag:yaml.org,2002:omap":Tc,"tag:yaml.org,2002:pairs":kc,"tag:yaml.org,2002:set":Oc,"tag:yaml.org,2002:timestamp":va};function Bc(e,t,n){const i=Hd.get(t);if(i&&!e)return n&&!i.includes(_r)?i.concat(_r):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(Hd.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(_r)),o.reduce((a,u)=>{const l=typeof u=="string"?zd[u]:u;if(!l){const f=JSON.stringify(u),d=Object.keys(zd).map(p=>JSON.stringify(p)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${d}`)}return a.includes(l)||a.push(l),a},[])}const gb=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Dc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?Bc(t,"compat"):t?Bc(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?pb:{},this.tags=Bc(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,Hr,{value:es}),Object.defineProperty(this,gr,{value:ga}),Object.defineProperty(this,Gi,{value:ts}),this.sortMapEntries=typeof u=="function"?u:u===!0?gb:null}clone(){const t=Object.create(Dc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function yb(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=xd(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(Cr(f,""))}let u=!1,l=null;if(e.contents){if(Wt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const p=a(e.contents.commentBefore);n.push(Cr(p,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let d=Zi(e.contents,o,()=>l=null,f);l&&(d+=yi(d,"",a(l))),(d[0]==="|"||d[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${d}`:n.push(d)}else n.push(Zi(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]=Ut(i)?i:new gn(i)}}else t("Expected a sequence for this tag");return e}function Rd(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(vc(l,f,n))}return o}const Ac={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Dd,createNode:Rd};class ns 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=ns.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(Ut(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=Rd(t,n,i),a=new this;return a.items=o.items,a}}ns.tag="tag:yaml.org,2002:omap";const Cc={collection:"seq",identify:e=>e instanceof Map,nodeClass:ns,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Dd(e,t),i=[];for(const{key:o}of n.items)At(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new ns,n)},createNode:(e,t,n)=>ns.from(e,t,n)};function Ld({value:e,source:t},n){return t&&(e?Pd:jd).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Pd={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 Ve(!0),stringify:Ld},jd={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 Ve(!1),stringify:Ld},rw={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},iw={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)}},sw={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 Ve(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},Gs=e=>typeof e=="bigint"||Number.isInteger(e);function ma(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 _c(e,t,n){const{value:i}=e;if(Gs(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return er(e)}const ow={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>ma(e,2,2,n),stringify:e=>_c(e,2,"0b")},aw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>ma(e,1,8,n),stringify:e=>_c(e,8,"0")},uw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>ma(e,0,10,n),stringify:er},cw={identify:Gs,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>ma(e,2,16,n),stringify:e=>_c(e,16,"0x")};class rs extends Vn{constructor(t){super(t),this.tag=rs.tag}add(t){let n;Ut(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new gn(t.key,null):n=new gn(t,null),mi(this.items,n.key)||this.items.push(n)}get(t,n){const i=mi(this.items,t);return!n&&Ut(i)?At(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=mi(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new gn(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(vc(u,null,i));return a}}rs.tag="tag:yaml.org,2002:set";const kc={collection:"map",identify:e=>e instanceof Set,nodeClass:rs,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>rs.from(e,t,n),resolve(e,t){if(Vs(e)){if(e.hasAllNullValues(!0))return Object.assign(new rs,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Tc(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 Nd(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 $d={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})=>Tc(e,n),stringify:Nd},Md={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=>Tc(e,!1),stringify:Nd},ba={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(ba.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 p=t[8];if(p&&p!=="Z"){let g=Tc(p,!1);Math.abs(g)<30&&(g*=60),h-=6e4*g}return new Date(h)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},Ud=[es,ts,da,pa,Pd,jd,ow,aw,uw,cw,rw,iw,sw,Sc,_r,Cc,Ac,kc,$d,Md,ba],Vd=new Map([["core",Zb],["failsafe",[es,ts,da]],["json",nw],["yaml11",Ud],["yaml-1.1",Ud]]),qd={binary:Sc,bool:Ec,float:kd,floatExp:_d,floatNaN:Cd,floatTime:Md,int:Od,intHex:Fd,intOct:Id,intTime:$d,map:es,merge:_r,null:pa,omap:Cc,pairs:Ac,seq:ts,set:kc,timestamp:ba},lw={"tag:yaml.org,2002:binary":Sc,"tag:yaml.org,2002:merge":_r,"tag:yaml.org,2002:omap":Cc,"tag:yaml.org,2002:pairs":Ac,"tag:yaml.org,2002:set":kc,"tag:yaml.org,2002:timestamp":ba};function Ic(e,t,n){const i=Vd.get(t);if(i&&!e)return n&&!i.includes(_r)?i.concat(_r):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(Vd.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(_r)),o.reduce((a,u)=>{const l=typeof u=="string"?qd[u]:u;if(!l){const f=JSON.stringify(u),h=Object.keys(qd).map(p=>JSON.stringify(p)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${h}`)}return a.includes(l)||a.push(l),a},[])}const fw=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Oc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?Ic(t,"compat"):t?Ic(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?lw:{},this.tags=Ic(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,Hr,{value:es}),Object.defineProperty(this,pr,{value:da}),Object.defineProperty(this,Gi,{value:ts}),this.sortMapEntries=typeof u=="function"?u:u===!0?fw:null}clone(){const t=Object.create(Oc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function hw(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=vd(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(Cr(f,""))}let u=!1,l=null;if(e.contents){if(qt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const p=a(e.contents.commentBefore);n.push(Cr(p,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let h=Zi(e.contents,o,()=>l=null,f);l&&(h+=yi(h,"",a(l))),(h[0]==="|"||h[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${h}`:n.push(h)}else n.push(Zi(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
303
303
  `)?(n.push("..."),n.push(Cr(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(Cr(a(f),"")))}return n.join(`
304
304
  `)+`
305
- `}class Ys{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mn,{value:gc});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(Ys.prototype,{[Mn]:{value:gc}});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){is(this.contents)&&this.contents.add(t)}addIn(t,n){is(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=wd(this);t.anchor=!n||i.has(n)?bd(n||"a",i):n}return new mc(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,T=n.filter(b).map(String);T.length>0&&(n=n.concat(T)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:d,tag:p}=i??{},{onAnchor:g,setAnchors:v,sourceObjects:C}=Ww(this,u||"a"),E={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:g,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:C},S=Hs(t,p,E);return l&&qt(S)&&(S.flow=!0),v(),S}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 is(this.contents)?this.contents.delete(t):!1}deleteIn(t){return zs(t)?this.contents==null?!1:(this.contents=null,!0):is(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 zs(t)?!n&&Ct(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 zs(t)?this.contents!==void 0:qt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=oa(this.schema,[t],n):is(this.contents)&&this.contents.set(t,n)}setIn(t,n){zs(t)?this.contents=n:this.contents==null?this.contents=oa(this.schema,Array.from(t),n):is(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 Dc(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:p}of l.anchors.values())a(p,d);return typeof u=="function"?Xi(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 yb(this,t)}}function is(e){if(qt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Gd extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class Xs extends Gd{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class mb extends Gd{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const Jd=(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+=`:
305
+ `}class Js{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mn,{value:hc});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 pn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(Js.prototype,{[Mn]:{value:hc}});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=qt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){is(this.contents)&&this.contents.add(t)}addIn(t,n){is(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=pd(this);t.anchor=!n||i.has(n)?gd(n||"a",i):n}return new pc(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 w=j=>typeof j=="number"||j instanceof String||j instanceof Number,T=n.filter(w).map(String);T.length>0&&(n=n.concat(T)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:h,tag:p}=i??{},{onAnchor:g,setAnchors:v,sourceObjects:C}=Mb(this,u||"a"),S={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:g,onTagObj:h,replacer:o,schema:this.schema,sourceObjects:C},x=Ks(t,p,S);return l&&Vt(x)&&(x.flow=!0),v(),x}createPair(t,n,i={}){const o=this.createNode(t,null,i),a=this.createNode(n,null,i);return new gn(o,a)}delete(t){return is(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Hs(t)?this.contents==null?!1:(this.contents=null,!0):is(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Vt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Hs(t)?!n&&At(this.contents)?this.contents.value:this.contents:Vt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Vt(this.contents)?this.contents.has(t):!1}hasIn(t){return Hs(t)?this.contents!==void 0:Vt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ia(this.schema,[t],n):is(this.contents)&&this.contents.set(t,n)}setIn(t,n){Hs(t)?this.contents=n:this.contents==null?this.contents=ia(this.schema,Array.from(t),n):is(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 pn({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 pn({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 Oc(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:p}of l.anchors.values())a(p,h);return typeof u=="function"?Xi(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 hw(this,t)}}function is(e){if(Vt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Wd extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class Ys extends Wd{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class dw extends Wd{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const Kd=(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+=`:
307
307
 
308
308
  ${u}
309
- ${d}
310
- `}};function ss(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,d=l,p=l,g="",v="",C=!1,E=!1,S=null,b=null,T=null,N=null,L=null,_=null,O=null;for(const W of e)switch(E&&(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"),E=!1),S&&(d&&W.type!=="comment"&&W.type!=="newline"&&a(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),W.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&W.source.includes(" ")&&(S=W),p=!0;break;case"comment":{p||a(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Y=W.source.substring(1)||" ";g?g+=v+Y:g=Y,v="",d=!1;break}case"newline":d?g?g+=W.source:(!_||n!=="seq-item-ind")&&(f=!0):v+=W.source,d=!0,C=!0,(b||T)&&(N=W),p=!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,O===null&&(O=W.offset),d=!1,p=!1,E=!0;break;case"tag":{T&&a(W,"MULTIPLE_TAGS","A node can have at most one tag"),T=W,O===null&&(O=W.offset),d=!1,p=!1,E=!0;break}case n:(b||T)&&a(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),_&&a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),_=W,d=n==="seq-item-ind"||n==="explicit-key-ind",p=!1;break;case"comma":if(t){L&&a(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),L=W,d=!1,p=!1;break}default:a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),d=!1,p=!1}const F=e[e.length-1],B=F?F.offset+F.source.length:o;return E&&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"),S&&(d&&S.indent<=u||i?.type==="block-map"||i?.type==="block-seq")&&a(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:L,found:_,spaceBefore:f,comment:g,hasNewline:C,anchor:b,tag:T,newlineAfterProp:N,end:B,start:O??B}}function Qs(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(Qs(t.key)||Qs(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==="}")&&Qs(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Yd(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||Ct(a)&&Ct(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const Xd="All mapping items must start at the same column";function wb({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 p of i.items){const{start:g,key:v,sep:C,value:E}=p,S=ss(g,{indicator:"explicit-key-ind",next:v??C?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),b=!S.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",Xd)),!S.anchor&&!S.tag&&!C){d=S.end,S.comment&&(l.comment?l.comment+=`
312
- `+S.comment:l.comment=S.comment);continue}(S.newlineAfterProp||Qs(v))&&o(v??g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else S.found?.indent!==i.indent&&o(f,"BAD_INDENT",Xd);n.atKey=!0;const T=S.end,N=v?e(n,v,S,o):t(n,T,g,null,S,o);n.schema.compat&&Pc(i.indent,v,o),n.atKey=!1,Yd(n,l.items,N)&&o(T,"DUPLICATE_KEY","Map keys must be unique");const L=ss(C??[],{indicator:"map-value-ind",next:E,offset:N.range[2],onError:o,parentIndent:i.indent,startOnNewline:!v||v.type==="block-scalar"});if(f=L.end,L.found){b&&(E?.type==="block-map"&&!L.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&S.start<L.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 _=E?e(n,E,L,o):t(n,f,C,null,L,o);n.schema.compat&&Pc(i.indent,E,o),f=_.range[2];const O=new dn(N,_);n.options.keepSourceTokens&&(O.srcToken=p),l.items.push(O)}else{b&&o(N.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),L.comment&&(N.comment?N.comment+=`
313
- `+L.comment:N.comment=L.comment);const _=new dn(N);n.options.keepSourceTokens&&(_.srcToken=p),l.items.push(_)}}return d&&d<f&&o(d,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,d??f],l}function bb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??wi,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,d=null;for(const{start:p,value:g}of i.items){const v=ss(p,{indicator:"seq-item-ind",next:g,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||g)g&&g.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=g?e(n,g,v,o):t(n,v.end,p,null,v,o);n.schema.compat&&Pc(i.indent,g,o),f=C.range[2],l.items.push(C)}return l.range=[i.offset,f,d??f],l}function Zs(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 p=f.substring(1)||" ";o?o+=u+p:o=p,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 Rc="Block collections are not allowed within flow collections",Lc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function vb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?Vn:wi),d=new f(n.schema);d.flow=!0;const p=n.atRoot;p&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let g=i.offset+i.start.source.length;for(let b=0;b<i.items.length;++b){const T=i.items[b],{start:N,key:L,sep:_,value:O}=T,F=ss(N,{flow:l,indicator:"explicit-key-ind",next:L??_?.[0],offset:g,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!F.found){if(!F.anchor&&!F.tag&&!_&&!O){b===0&&F.comma?o(F.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):b<i.items.length-1&&o(F.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),F.comment&&(d.comment?d.comment+=`
314
- `+F.comment:d.comment=F.comment),g=F.end;continue}!u&&n.options.strict&&Qs(L)&&o(L,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)F.comma&&o(F.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(F.comma||o(F.start,"MISSING_CHAR",`Missing , between ${l} items`),F.comment){let B="";e:for(const W of N)switch(W.type){case"comma":case"space":break;case"comment":B=W.source.substring(1);break e;default:break e}if(B){let W=d.items[d.items.length-1];Vt(W)&&(W=W.value??W.key),W.comment?W.comment+=`
315
- `+B:W.comment=B,F.comment=F.comment.substring(B.length+1)}}if(!u&&!_&&!F.found){const B=O?e(n,O,F,o):t(n,F.end,_,null,F,o);d.items.push(B),g=B.range[2],Lc(O)&&o(B.range,"BLOCK_IN_FLOW",Rc)}else{n.atKey=!0;const B=F.end,W=L?e(n,L,F,o):t(n,B,N,null,F,o);Lc(L)&&o(W.range,"BLOCK_IN_FLOW",Rc),n.atKey=!1;const Y=ss(_??[],{flow:l,indicator:"map-value-ind",next:O,offset:W.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(Y.found){if(!u&&!F.found&&n.options.strict){if(_)for(const be of _){if(be===Y.found)break;if(be.type==="newline"){o(be,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}F.start<Y.found.offset-1024&&o(Y.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else O&&("source"in O&&O.source&&O.source[0]===":"?o(O,"MISSING_CHAR",`Missing space after : in ${l}`):o(Y.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const fe=O?e(n,O,Y,o):Y.found?t(n,Y.end,_,null,Y,o):null;fe?Lc(O)&&o(fe.range,"BLOCK_IN_FLOW",Rc):Y.comment&&(W.comment?W.comment+=`
316
- `+Y.comment:W.comment=Y.comment);const le=new dn(W,fe);if(n.options.keepSourceTokens&&(le.srcToken=T),u){const be=d;Yd(n,be.items,W)&&o(B,"DUPLICATE_KEY","Map keys must be unique"),be.items.push(le)}else{const be=new Vn(n.schema);be.flow=!0,be.items.push(le);const ve=(fe??W).range;be.range=[W.range[0],ve[1],ve[2]],d.items.push(be)}g=fe?fe.range[2]:Y.end}}const v=u?"}":"]",[C,...E]=i.end;let S=g;if(C&&C.source===v)S=C.offset+C.source.length;else{const b=l[0].toUpperCase()+l.substring(1),T=p?`${b} must end with a ${v}`:`${b} in block collection must be sufficiently indented and end with a ${v}`;o(g,p?"MISSING_CHAR":"BAD_INDENT",T),C&&C.source.length!==1&&E.unshift(C)}if(E.length>0){const b=Zs(E,S,n.options.strict,o);b.comment&&(d.comment?d.comment+=`
317
- `+b.comment:d.comment=b.comment),d.range=[i.offset,S,b.offset]}else d.range=[i.offset,S,S];return d}function Nc(e,t,n,i,o,a){const u=n.type==="block-map"?wb(e,t,n,i,a):n.type==="block-seq"?bb(e,t,n,i,a):vb(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function Ab(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,E=v&&a?v.offset>a.offset?v:a:v??a;E&&(!C||C.offset<E.offset)&&o(E,"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===wi.tagName&&l==="seq")return Nc(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),Nc(e,t,n,o,u)}const d=Nc(e,t,n,o,u,f),p=f.resolve?.(d,v=>o(a,"TAG_RESOLVE_FAILED",v),t.options)??d,g=Wt(p)?p:new qe(p);return g.range=d.range,g.tag=u,f?.format&&(g.format=f.format),g}function Sb(e,t,n){const i=t.offset,o=Eb(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?xb(t.source):[];let l=u.length;for(let S=u.length-1;S>=0;--S){const b=u[S][1];if(b===""||b==="\r")l=S;else break}if(l===0){const S=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:S,type:a,comment:o.comment,range:[i,b,b]}}let f=t.indent+o.indent,d=t.offset+o.length,p=0;for(let S=0;S<l;++S){const[b,T]=u[S];if(T===""||T==="\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),p=S,f===0&&!e.atRoot&&n(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=b.length+T.length+1}for(let S=u.length-1;S>=l;--S)u[S][0].length>f&&(l=S+1);let g="",v="",C=!1;for(let S=0;S<p;++S)g+=u[S][0].slice(f)+`
319
- `;for(let S=p;S<l;++S){let[b,T]=u[S];d+=b.length+T.length+1;const N=T[T.length-1]==="\r";if(N&&(T=T.slice(0,-1)),T&&b.length<f){const _=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-T.length-(N?2:1),"BAD_INDENT",_),b=""}a===qe.BLOCK_LITERAL?(g+=v+b.slice(f)+T,v=`
320
- `):b.length>f||T[0]===" "?(v===" "?v=`
309
+ ${h}
310
+ `}};function ss(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,h=l,p=l,g="",v="",C=!1,S=!1,x=null,w=null,T=null,j=null,L=null,_=null,O=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),x&&(h&&W.type!=="comment"&&W.type!=="newline"&&a(x,"TAB_AS_INDENT","Tabs are not allowed as indentation"),x=null),W.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&W.source.includes(" ")&&(x=W),p=!0;break;case"comment":{p||a(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const X=W.source.substring(1)||" ";g?g+=v+X:g=X,v="",h=!1;break}case"newline":h?g?g+=W.source:(!_||n!=="seq-item-ind")&&(f=!0):v+=W.source,h=!0,C=!0,(w||T)&&(j=W),p=!0;break;case"anchor":w&&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),w=W,O===null&&(O=W.offset),h=!1,p=!1,S=!0;break;case"tag":{T&&a(W,"MULTIPLE_TAGS","A node can have at most one tag"),T=W,O===null&&(O=W.offset),h=!1,p=!1,S=!0;break}case n:(w||T)&&a(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),_&&a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),_=W,h=n==="seq-item-ind"||n==="explicit-key-ind",p=!1;break;case"comma":if(t){L&&a(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),L=W,h=!1,p=!1;break}default:a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),h=!1,p=!1}const F=e[e.length-1],B=F?F.offset+F.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"),x&&(h&&x.indent<=u||i?.type==="block-map"||i?.type==="block-seq")&&a(x,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:L,found:_,spaceBefore:f,comment:g,hasNewline:C,anchor:w,tag:T,newlineAfterProp:j,end:B,start:O??B}}function Xs(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(Xs(t.key)||Xs(t.value))return!0}return!1;default:return!0}}function Fc(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&Xs(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Hd(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||At(a)&&At(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 pw({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 p of i.items){const{start:g,key:v,sep:C,value:S}=p,x=ss(g,{indicator:"explicit-key-ind",next:v??C?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),w=!x.found;if(w){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)),!x.anchor&&!x.tag&&!C){h=x.end,x.comment&&(l.comment?l.comment+=`
312
+ `+x.comment:l.comment=x.comment);continue}(x.newlineAfterProp||Xs(v))&&o(v??g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else x.found?.indent!==i.indent&&o(f,"BAD_INDENT",zd);n.atKey=!0;const T=x.end,j=v?e(n,v,x,o):t(n,T,g,null,x,o);n.schema.compat&&Fc(i.indent,v,o),n.atKey=!1,Hd(n,l.items,j)&&o(T,"DUPLICATE_KEY","Map keys must be unique");const L=ss(C??[],{indicator:"map-value-ind",next:S,offset:j.range[2],onError:o,parentIndent:i.indent,startOnNewline:!v||v.type==="block-scalar"});if(f=L.end,L.found){w&&(S?.type==="block-map"&&!L.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&x.start<L.found.offset-1024&&o(j.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const _=S?e(n,S,L,o):t(n,f,C,null,L,o);n.schema.compat&&Fc(i.indent,S,o),f=_.range[2];const O=new gn(j,_);n.options.keepSourceTokens&&(O.srcToken=p),l.items.push(O)}else{w&&o(j.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),L.comment&&(j.comment?j.comment+=`
313
+ `+L.comment:j.comment=L.comment);const _=new gn(j);n.options.keepSourceTokens&&(_.srcToken=p),l.items.push(_)}}return h&&h<f&&o(h,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,h??f],l}function gw({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:p,value:g}of i.items){const v=ss(p,{indicator:"seq-item-ind",next:g,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||g)g&&g.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=g?e(n,g,v,o):t(n,v.end,p,null,v,o);n.schema.compat&&Fc(i.indent,g,o),f=C.range[2],l.items.push(C)}return l.range=[i.offset,f,h??f],l}function Qs(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 p=f.substring(1)||" ";o?o+=u+p:o=p,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 Bc="Block collections are not allowed within flow collections",Dc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function yw({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 p=n.atRoot;p&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let g=i.offset+i.start.source.length;for(let w=0;w<i.items.length;++w){const T=i.items[w],{start:j,key:L,sep:_,value:O}=T,F=ss(j,{flow:l,indicator:"explicit-key-ind",next:L??_?.[0],offset:g,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!F.found){if(!F.anchor&&!F.tag&&!_&&!O){w===0&&F.comma?o(F.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):w<i.items.length-1&&o(F.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),F.comment&&(h.comment?h.comment+=`
314
+ `+F.comment:h.comment=F.comment),g=F.end;continue}!u&&n.options.strict&&Xs(L)&&o(L,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(w===0)F.comma&&o(F.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(F.comma||o(F.start,"MISSING_CHAR",`Missing , between ${l} items`),F.comment){let B="";e:for(const W of j)switch(W.type){case"comma":case"space":break;case"comment":B=W.source.substring(1);break e;default:break e}if(B){let W=h.items[h.items.length-1];Ut(W)&&(W=W.value??W.key),W.comment?W.comment+=`
315
+ `+B:W.comment=B,F.comment=F.comment.substring(B.length+1)}}if(!u&&!_&&!F.found){const B=O?e(n,O,F,o):t(n,F.end,_,null,F,o);h.items.push(B),g=B.range[2],Dc(O)&&o(B.range,"BLOCK_IN_FLOW",Bc)}else{n.atKey=!0;const B=F.end,W=L?e(n,L,F,o):t(n,B,j,null,F,o);Dc(L)&&o(W.range,"BLOCK_IN_FLOW",Bc),n.atKey=!1;const X=ss(_??[],{flow:l,indicator:"map-value-ind",next:O,offset:W.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(X.found){if(!u&&!F.found&&n.options.strict){if(_)for(const me of _){if(me===X.found)break;if(me.type==="newline"){o(me,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}F.start<X.found.offset-1024&&o(X.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else O&&("source"in O&&O.source&&O.source[0]===":"?o(O,"MISSING_CHAR",`Missing space after : in ${l}`):o(X.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const fe=O?e(n,O,X,o):X.found?t(n,X.end,_,null,X,o):null;fe?Dc(O)&&o(fe.range,"BLOCK_IN_FLOW",Bc):X.comment&&(W.comment?W.comment+=`
316
+ `+X.comment:W.comment=X.comment);const le=new gn(W,fe);if(n.options.keepSourceTokens&&(le.srcToken=T),u){const me=h;Hd(n,me.items,W)&&o(B,"DUPLICATE_KEY","Map keys must be unique"),me.items.push(le)}else{const me=new Vn(n.schema);me.flow=!0,me.items.push(le);const be=(fe??W).range;me.range=[W.range[0],be[1],be[2]],h.items.push(me)}g=fe?fe.range[2]:X.end}}const v=u?"}":"]",[C,...S]=i.end;let x=g;if(C&&C.source===v)x=C.offset+C.source.length;else{const w=l[0].toUpperCase()+l.substring(1),T=p?`${w} must end with a ${v}`:`${w} in block collection must be sufficiently indented and end with a ${v}`;o(g,p?"MISSING_CHAR":"BAD_INDENT",T),C&&C.source.length!==1&&S.unshift(C)}if(S.length>0){const w=Qs(S,x,n.options.strict,o);w.comment&&(h.comment?h.comment+=`
317
+ `+w.comment:h.comment=w.comment),h.range=[i.offset,x,w.offset]}else h.range=[i.offset,x,x];return h}function Rc(e,t,n,i,o,a){const u=n.type==="block-map"?pw(e,t,n,i,a):n.type==="block-seq"?gw(e,t,n,i,a):yw(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function mw(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 Rc(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),Rc(e,t,n,o,u)}const h=Rc(e,t,n,o,u,f),p=f.resolve?.(h,v=>o(a,"TAG_RESOLVE_FAILED",v),t.options)??h,g=qt(p)?p:new Ve(p);return g.range=h.range,g.tag=u,f?.format&&(g.format=f.format),g}function bw(e,t,n){const i=t.offset,o=ww(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const a=o.mode===">"?Ve.BLOCK_FOLDED:Ve.BLOCK_LITERAL,u=t.source?vw(t.source):[];let l=u.length;for(let x=u.length-1;x>=0;--x){const w=u[x][1];if(w===""||w==="\r")l=x;else break}if(l===0){const x=o.chomp==="+"&&u.length>0?`
318
+ `.repeat(Math.max(1,u.length-1)):"";let w=i+o.length;return t.source&&(w+=t.source.length),{value:x,type:a,comment:o.comment,range:[i,w,w]}}let f=t.indent+o.indent,h=t.offset+o.length,p=0;for(let x=0;x<l;++x){const[w,T]=u[x];if(T===""||T==="\r")o.indent===0&&w.length>f&&(f=w.length);else{w.length<f&&n(h+w.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(f=w.length),p=x,f===0&&!e.atRoot&&n(h,"BAD_INDENT","Block scalar values in collections must be indented");break}h+=w.length+T.length+1}for(let x=u.length-1;x>=l;--x)u[x][0].length>f&&(l=x+1);let g="",v="",C=!1;for(let x=0;x<p;++x)g+=u[x][0].slice(f)+`
319
+ `;for(let x=p;x<l;++x){let[w,T]=u[x];h+=w.length+T.length+1;const j=T[T.length-1]==="\r";if(j&&(T=T.slice(0,-1)),T&&w.length<f){const _=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(h-T.length-(j?2:1),"BAD_INDENT",_),w=""}a===Ve.BLOCK_LITERAL?(g+=v+w.slice(f)+T,v=`
320
+ `):w.length>f||T[0]===" "?(v===" "?v=`
321
321
  `:!C&&v===`
322
322
  `&&(v=`
323
323
 
324
- `),g+=v+b.slice(f)+T,v=`
324
+ `),g+=v+w.slice(f)+T,v=`
325
325
  `,C=!0):T===""?v===`
326
326
  `?g+=`
327
327
  `:v=`
328
- `:(g+=v+T,v=" ",C=!1)}switch(o.chomp){case"-":break;case"+":for(let S=l;S<u.length;++S)g+=`
329
- `+u[S][0].slice(f);g[g.length-1]!==`
328
+ `:(g+=v+T,v=" ",C=!1)}switch(o.chomp){case"-":break;case"+":for(let x=l;x<u.length;++x)g+=`
329
+ `+u[x][0].slice(f);g[g.length-1]!==`
330
330
  `&&(g+=`
331
331
  `);break;default:g+=`
332
- `}const E=i+o.length+t.source.length;return{value:g,type:a,comment:o.comment,range:[i,E,E]}}function Eb({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 E=Number(C);!u&&E?u=E:f===-1&&(f=e+v)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,p="",g=o.length;for(let v=1;v<t.length;++v){const C=t[v];switch(C.type){case"space":d=!0;case"newline":g+=C.source.length;break;case"comment":n&&!d&&i(C,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),g+=C.source.length,p=C.source.substring(1);break;case"error":i(C,"UNEXPECTED_TOKEN",C.message),g+=C.source.length;break;default:{const E=`Unexpected token in block scalar header: ${C.type}`;i(C,"UNEXPECTED_TOKEN",E);const S=C.source;S&&typeof S=="string"&&(g+=S.length)}}}return{mode:a,indent:u,chomp:l,comment:p,length:g}}function xb(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 Cb(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const d=(v,C,E)=>n(i+v,C,E);switch(o){case"scalar":l=qe.PLAIN,f=_b(a,d);break;case"single-quoted-scalar":l=qe.QUOTE_SINGLE,f=kb(a,d);break;case"double-quoted-scalar":l=qe.QUOTE_DOUBLE,f=Tb(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 p=i+a.length,g=Zs(u,p,t,n);return{value:f,type:l,comment:g.comment,range:[i,p,g.offset]}}function _b(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}`),Qd(e)}function kb(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Qd(e.slice(1,-1)).replace(/''/g,"'")}function Qd(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
332
+ `}const S=i+o.length+t.source.length;return{value:g,type:a,comment:o.comment,range:[i,S,S]}}function ww({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,p="",g=o.length;for(let v=1;v<t.length;++v){const C=t[v];switch(C.type){case"space":h=!0;case"newline":g+=C.source.length;break;case"comment":n&&!h&&i(C,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),g+=C.source.length,p=C.source.substring(1);break;case"error":i(C,"UNEXPECTED_TOKEN",C.message),g+=C.source.length;break;default:{const S=`Unexpected token in block scalar header: ${C.type}`;i(C,"UNEXPECTED_TOKEN",S);const x=C.source;x&&typeof x=="string"&&(g+=x.length)}}}return{mode:a,indent:u,chomp:l,comment:p,length:g}}function vw(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 Ew(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=Ve.PLAIN,f=xw(a,h);break;case"single-quoted-scalar":l=Ve.QUOTE_SINGLE,f=Sw(a,h);break;case"double-quoted-scalar":l=Ve.QUOTE_DOUBLE,f=Aw(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 p=i+a.length,g=Qs(u,p,t,n);return{value:f,type:l,comment:g.comment,range:[i,p,g.offset]}}function xw(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}`),Gd(e)}function Sw(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Gd(e.slice(1,-1)).replace(/''/g,"'")}function Gd(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 Tb(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 Aw(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}=Ib(e,i);n+=a,i=u}else if(o==="\\"){let a=e[++i];const u=Ob[a];if(u)n+=u;else if(a===`
338
+ `){const{fold:a,offset:u}=Cw(e,i);n+=a,i=u}else if(o==="\\"){let a=e[++i];const u=_w[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+=Fb(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+=kw(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 Ib(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 Cw(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 Ob={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
347
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Fb(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 Zd(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?Sb(e,t,i):Cb(t,e.options.strict,i),f=n?e.directives.tagName(n.source,g=>i(n,"TAG_RESOLVE_FAILED",g)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[gr]:f?d=Bb(e.schema,o,f,n,i):t.type==="scalar"?d=Db(e,o,t,i):d=e.schema[gr];let p;try{const g=d.resolve(o,v=>i(n??t,"TAG_RESOLVE_FAILED",v),e.options);p=Ct(g)?g:new qe(g)}catch(g){const v=g instanceof Error?g.message:String(g);i(n??t,"TAG_RESOLVE_FAILED",v),p=new qe(o)}return p.range=l,p.source=o,a&&(p.type=a),f&&(p.tag=f),d.format&&(p.format=d.format),u&&(p.comment=u),p}function Bb(e,t,n,i,o){if(n==="!")return e[gr];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[gr])}function Db({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[gr];if(n.compat){const l=n.compat.find(f=>f.default&&f.test?.test(i))??n[gr];if(u.tag!==l.tag){const f=t.tagString(u.tag),d=t.tagString(l.tag),p=`Value may be parsed as either ${f} or ${d}`;a(o,"TAG_RESOLVE_FAILED",p,!0)}}return u}function Pb(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:ep,composeEmptyNode:jc};function ep(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let d,p=!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=Zd(e,t,f,i),l&&(d.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=Ab(Rb,e,t,n,i),l&&(d.anchor=l.source.substring(1));break;default:{const g=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",g),d=jc(e,t.offset,void 0,null,n,i),p=!1}}return l&&d.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!Ct(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&&p&&(d.srcToken=t),d}function jc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},d){const p={type:"scalar",offset:Pb(t,n,i),indent:-1,source:""},g=Zd(e,p,l,d);return u&&(g.anchor=u.source.substring(1),g.anchor===""&&d(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(g.spaceBefore=!0),a&&(g.comment=a,g.range[2]=f),g}function Lb({options:e},{offset:t,source:n,end:i},o){const a=new mc(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=Zs(i,u,e.strict,o);return a.range=[t,u,l.offset],l.comment&&(a.comment=l.comment),a}function Nb(e,t,{offset:n,start:i,value:o,end:a},u){const l=Object.assign({_directives:t},e),f=new Ys(void 0,l),d={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},p=ss(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});p.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!p.hasNewline&&u(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?ep(d,o,p,u):jc(d,p.end,i,null,p,u);const g=f.contents.range[2],v=Zs(a,g,!1,u);return v.comment&&(f.comment=v.comment),f.range=[n,g,v.offset],f}function eo(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 tp(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 _w={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
347
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function kw(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 Jd(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?bw(e,t,i):Ew(t,e.options.strict,i),f=n?e.directives.tagName(n.source,g=>i(n,"TAG_RESOLVE_FAILED",g)):null;let h;e.options.stringKeys&&e.atKey?h=e.schema[pr]:f?h=Tw(e.schema,o,f,n,i):t.type==="scalar"?h=Iw(e,o,t,i):h=e.schema[pr];let p;try{const g=h.resolve(o,v=>i(n??t,"TAG_RESOLVE_FAILED",v),e.options);p=At(g)?g:new Ve(g)}catch(g){const v=g instanceof Error?g.message:String(g);i(n??t,"TAG_RESOLVE_FAILED",v),p=new Ve(o)}return p.range=l,p.source=o,a&&(p.type=a),f&&(p.tag=f),h.format&&(p.format=h.format),u&&(p.comment=u),p}function Tw(e,t,n,i,o){if(n==="!")return e[pr];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[pr])}function Iw({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[pr];if(n.compat){const l=n.compat.find(f=>f.default&&f.test?.test(i))??n[pr];if(u.tag!==l.tag){const f=t.tagString(u.tag),h=t.tagString(l.tag),p=`Value may be parsed as either ${f} or ${h}`;a(o,"TAG_RESOLVE_FAILED",p,!0)}}return u}function Ow(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 Fw={composeNode:Yd,composeEmptyNode:Lc};function Yd(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let h,p=!0;switch(t.type){case"alias":h=Bw(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=Jd(e,t,f,i),l&&(h.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":h=mw(Fw,e,t,n,i),l&&(h.anchor=l.source.substring(1));break;default:{const g=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",g),h=Lc(e,t.offset,void 0,null,n,i),p=!1}}return l&&h.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!At(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&&p&&(h.srcToken=t),h}function Lc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},h){const p={type:"scalar",offset:Ow(t,n,i),indent:-1,source:""},g=Jd(e,p,l,h);return u&&(g.anchor=u.source.substring(1),g.anchor===""&&h(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(g.spaceBefore=!0),a&&(g.comment=a,g.range[2]=f),g}function Bw({options:e},{offset:t,source:n,end:i},o){const a=new pc(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=Qs(i,u,e.strict,o);return a.range=[t,u,l.offset],l.comment&&(a.comment=l.comment),a}function Dw(e,t,{offset:n,start:i,value:o,end:a},u){const l=Object.assign({_directives:t},e),f=new Js(void 0,l),h={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},p=ss(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});p.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!p.hasNewline&&u(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?Yd(h,o,p,u):Lc(h,p.end,i,null,p,u);const g=f.contents.range[2],v=Qs(a,g,!1,u);return v.comment&&(f.comment=v.comment),f.range=[n,g,v.offset],f}function Zs(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 Xd(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 jb{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=eo(n);a?this.warnings.push(new mb(u,i,o)):this.errors.push(new Xs(u,i,o))},this.directives=new hn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=tp(this.prelude);if(i){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
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}
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 Rw{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=Zs(n);a?this.warnings.push(new dw(u,i,o)):this.errors.push(new Ys(u,i,o))},this.directives=new pn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=Xd(this.prelude);if(i){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
351
+ ${i}`:i;else if(o||t.directives.docStart||!a)t.commentBefore=i;else if(Vt(a)&&!a.flow&&a.items.length>0){let u=a.items[0];Ut(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:tp(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=eo(t);a[0]+=n,this.onError(a,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Nb(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 Xs(eo(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 Xs(eo(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=Zs(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 Xs(eo(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 Ys(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 np="\uFEFF",rp="",ip="",$c="";function $b(e){switch(e){case np:return"byte-order-mark";case rp:return"doc-mode";case ip:return"flow-error-end";case $c: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:Xd(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=Zs(t);a[0]+=n,this.onError(a,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Dw(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 Ys(Zs(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 Ys(Zs(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=Qs(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 Ys(Zs(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 Js(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 Qd="\uFEFF",Zd="",ep="",Pc="";function Lw(e){switch(e){case Qd:return"byte-order-mark";case Zd:return"doc-mode";case ep:return"flow-error-end";case Pc: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 sp=new Set("0123456789ABCDEFabcdef"),Mb=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Aa=new Set(",[]{}"),Ub=new Set(` ,[]{}
358
- \r `),Mc=e=>!e||Ub.has(e);class Vb{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 tp=new Set("0123456789ABCDEFabcdef"),Pw=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),wa=new Set(",[]{}"),jw=new Set(` ,[]{}
358
+ \r `),jc=e=>!e||jw.has(e);class Nw{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]===np&&(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 rp,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(Mc),"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 ip,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(Mc),"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]===Qd&&(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 Zd,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(jc),"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 ep,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(jc),"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 $c,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&&Aa.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 Pc,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&&wa.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&&Aa.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&&Aa.has(o))break;n=i}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield $c,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(Mc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(tr(n)||t&&Aa.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(Mb.has(n))n=this.buffer[++t];else if(n==="%"&&sp.has(this.buffer[t+1])&&sp.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&&wa.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&&wa.has(o))break;n=i}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Pc,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(jc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(tr(n)||t&&wa.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(Pw.has(n))n=this.buffer[++t];else if(n==="%"&&tp.has(this.buffer[t+1])&&tp.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 qb{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 bi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function op(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 ap(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 Sa(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 os(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 up(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!bi(t.start,"explicit-key-ind")&&!bi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,ap(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 Wb{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 Vb,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=$b(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"&&up(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&&op(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":{op(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=Sa(this.peek(2)),i=os(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 $w{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 wi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function np(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 rp(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 va(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 os(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 ip(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!wi(t.start,"explicit-key-ind")&&!wi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,rp(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 Mw{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 Nw,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=Lw(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"&&ip(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&&np(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":{np(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=va(this.peek(2)),i=os(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(bi(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(ap(n.key)&&!bi(n.sep,"newline")){const u=os(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(bi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=os(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]}):bi(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||bi(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=Sa(i),a=os(o);up(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(wi(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(rp(n.key)&&!wi(n.sep,"newline")){const u=os(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(wi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=os(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]}):wi(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||wi(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=va(i),a=os(o);ip(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=Sa(t),i=os(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=Sa(t),i=os(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 Kb(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new qb||null,prettyErrors:t}}function Hb(e,t={}){const{lineCounter:n,prettyErrors:i}=Kb(t),o=new Wb(n?.addNewLine),a=new jb(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 Xs(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(Jd(e,n)),u.warnings.forEach(Jd(e,n))),u}function cp(e,t,n){let i;const o=Hb(e,n);if(!o)return null;if(o.warnings.forEach(a=>Cd(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 lp(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return Vs(e)&&!i?e.toString(n):new Ys(e,i,n).toString(n)}const zb={BorderRadiusContainer:Je.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=va(t),i=os(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=va(t),i=os(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 Uw(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new $w||null,prettyErrors:t}}function Vw(e,t={}){const{lineCounter:n,prettyErrors:i}=Uw(t),o=new Mw(n?.addNewLine),a=new Rw(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 Ys(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(Kd(e,n)),u.warnings.forEach(Kd(e,n))),u}function sp(e,t,n){let i;const o=Vw(e,n);if(!o)return null;if(o.warnings.forEach(a=>Ed(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 op(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return Us(e)&&!i?e.toString(n):new Js(e,i,n).toString(n)}const qw={BorderRadiusContainer:Ge.div`
380
380
  height: 100%;
381
381
 
382
382
  .monaco-editor,
383
383
  .overflow-guard {
384
384
  border-radius: 8px;
385
385
  }
386
- `},Gb=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Z.useState("");return Z.useEffect(()=>{o(lp(t))},[t]),A.jsx(zb.BorderRadiusContainer,{children:A.jsx(dc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(cp(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},Jb=Je.div`
386
+ `},Ww=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Z.useState("");return Z.useEffect(()=>{o(op(t))},[t]),E.jsx(qw.BorderRadiusContainer,{children:E.jsx(lc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(sp(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},Kw=Ge.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
- `,Yb=Je.div`
393
+ `,Hw=Ge.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
- `,fp={BorderRadiusContainer:Jb,ControlsRowContainer:Yb},Xb=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f,designNewLayout:d,designNewLayoutHeight:p})=>{const{token:g}=q.theme.useToken(),v=cr.useNavigate(),[C,E]=Z.useState(""),[S,b]=Z.useState(!1),[T,N]=Z.useState();Z.useEffect(()=>{E(lp(n))},[n]);const L=()=>{b(!0),N(void 0);const _=cp(C),{namespace:O}=_.metadata,{name:F}=_.metadata,B=_,W=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${O}`:""}/${l}/${o?"":F}`;o?Yo({endpoint:W,body:B}).then(Y=>{console.log(Y),f&&v(f)}).catch(Y=>{console.log("Form submit error",Y),b(!1),N(Y)}):Xo({endpoint:W,body:B}).then(Y=>{console.log(Y),f&&v(f)}).catch(Y=>{console.log("Form submit error",Y),b(!1),N(Y)})};return A.jsxs(A.Fragment,{children:[T&&A.jsx(q.Alert,{message:`An error has occurred: ${T?.response?.data?.message} `,type:"error"}),A.jsx(fp.BorderRadiusContainer,{$designNewLayoutHeight:p,children:A.jsx(dc,{defaultLanguage:"yaml",width:"100%",height:p||"75vh",value:C,onChange:_=>{E(_||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),A.jsx(fp.ControlsRowContainer,{$bgColor:g.colorPrimaryBg,$designNewLayout:d,children:A.jsxs(q.Flex,{gap:d?10:16,align:"center",children:[A.jsx(q.Button,{type:"primary",onClick:L,loading:S,children:"Submit"}),f&&A.jsx(q.Button,{onClick:()=>v(f),children:"Cancel"})]})})]})},It=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)},hp=Z.createContext(void 0),Qb=({value:e,children:t})=>A.jsx(hp.Provider,{value:e,children:t}),nr=()=>Z.useContext(hp),dp=Z.createContext(void 0),Zb=({value:e,children:t})=>A.jsx(dp.Provider,{value:e,children:t}),ev=()=>Z.useContext(dp),tv=Je.div`
400
+ `,ap={BorderRadiusContainer:Kw,ControlsRowContainer:Hw},zw=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f,designNewLayout:h,designNewLayoutHeight:p})=>{const{token:g}=V.theme.useToken(),v=vr.useNavigate(),[C,S]=Z.useState(""),[x,w]=Z.useState(!1),[T,j]=Z.useState();Z.useEffect(()=>{S(op(n))},[n]);const L=()=>{w(!0),j(void 0);const _=sp(C),{namespace:O}=_.metadata,{name:F}=_.metadata,B=_,W=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${O}`:""}/${l}/${o?"":F}`;o?Jo({endpoint:W,body:B}).then(X=>{console.log(X),f&&v(f)}).catch(X=>{console.log("Form submit error",X),w(!1),j(X)}):Yo({endpoint:W,body:B}).then(X=>{console.log(X),f&&v(f)}).catch(X=>{console.log("Form submit error",X),w(!1),j(X)})};return E.jsxs(E.Fragment,{children:[T&&E.jsx(V.Alert,{message:`An error has occurred: ${T?.response?.data?.message} `,type:"error"}),E.jsx(ap.BorderRadiusContainer,{$designNewLayoutHeight:p,children:E.jsx(lc,{defaultLanguage:"yaml",width:"100%",height:p||"75vh",value:C,onChange:_=>{S(_||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),E.jsx(ap.ControlsRowContainer,{$bgColor:g.colorPrimaryBg,$designNewLayout:h,children:E.jsxs(V.Flex,{gap:h?10:16,align:"center",children:[E.jsx(V.Button,{type:"primary",onClick:L,loading:x,children:"Submit"}),f&&E.jsx(V.Button,{onClick:()=>v(f),children:"Cancel"})]})})]})},Tt=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)},up=Z.createContext(void 0),Gw=({value:e,children:t})=>E.jsx(up.Provider,{value:e,children:t}),nr=()=>Z.useContext(up),cp=Z.createContext(void 0),Jw=({value:e,children:t})=>E.jsx(cp.Provider,{value:e,children:t}),Yw=()=>Z.useContext(cp),Xw=Ge.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
- `,nv=Je.div`
414
+ `,Qw=Ge.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
- `,rv=Je.div`
420
+ `,Zw=Ge.div`
421
421
  display: ${({$isOpen:e})=>e?"block":"none"};
422
422
  padding: ${({$designNewLayout:e})=>e?"0 0 0 6px":"4px"};
423
- `,Uc={Container:tv,TitleBar:nv,Content:rv},iv=({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)),p=nr(),g=()=>{d?n.onExpandClose(t):n.onExpandOpen(t)};return A.jsxs(Uc.Container,{$designNewLayout:p,$borderColor:f.colorBorder,$bgColor:f.colorBgContainer,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsxs(Uc.TitleBar,{onClick:()=>g(),children:[!p&&A.jsx("div",{children:d?A.jsx(wn.CaretDownOutlined,{size:14}):A.jsx(wn.CaretRightOutlined,{size:14})}),A.jsx("div",{children:e}),p&&A.jsx("div",{children:d?A.jsx(kh,{}):A.jsx(_h,{})})]}),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(Uc.Content,{$isOpen:d,$designNewLayout:p,children:l})]})},vi=({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("div",{children:A.jsx(q.Button,{size:"small",type:"text",onClick:o,children:i?A.jsx(Oh,{}):A.jsx(Fh,{})})})},sv=Je.div`
423
+ `,Nc={Container:Xw,TitleBar:Qw,Content:Zw},ev=({title:e,formName:t,expandedControls:n,persistedCheckbox:i,isAdditionalProperties:o,removeField:a,onRemoveByMinus:u,children:l})=>{const{token:f}=V.theme.useToken(),h=n.expandedKeys.some(v=>JSON.stringify(v)===JSON.stringify(t)),p=nr(),g=()=>{h?n.onExpandClose(t):n.onExpandOpen(t)};return E.jsxs(Nc.Container,{$designNewLayout:p,$borderColor:f.colorBorder,$bgColor:f.colorBgContainer,children:[E.jsxs(V.Flex,{justify:"space-between",children:[E.jsxs(Nc.TitleBar,{onClick:()=>g(),children:[!p&&E.jsx("div",{children:h?E.jsx(vn.CaretDownOutlined,{size:14}):E.jsx(vn.CaretRightOutlined,{size:14})}),E.jsx("div",{children:e}),p&&E.jsx("div",{children:h?E.jsx(Ah,{}):E.jsx(Sh,{})})]}),E.jsxs(V.Flex,{gap:4,children:[o&&E.jsx(V.Button,{size:"small",type:"text",onClick:()=>a(),children:E.jsx(sn,{})}),u&&E.jsx(V.Button,{size:"small",type:"text",onClick:u,children:E.jsx(sn,{})}),i]})]}),E.jsx(Nc.Content,{$isOpen:h,$designNewLayout:p,children:l})]})},vi=({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 E.jsx("div",{children:E.jsx(V.Button,{size:"small",type:"text",onClick:o,children:i?E.jsx(kh,{}):E.jsx(Th,{})})})},tv=Ge.div`
424
424
  display: ${({$isHidden:e})=>e?"none":"block"};
425
- `,kr=Je(q.Form.Item)`
425
+ `,kr=Ge(V.Form.Item)`
426
426
  margin-bottom: 8px;
427
- `,Tr=Je.div`
427
+ `,Tr=Ge.div`
428
428
  font-size: ${({$designNewLayout:e})=>e?"16px":"14px"};
429
429
  line-height: ${({$designNewLayout:e})=>e?"24px":"22px"};
430
- `,ov={Content:Je.div`
430
+ `,nv={Content:Ge.div`
431
431
  padding: ${({$designNewLayout:e})=>e?"0 0 0 6px":"4px"};
432
- `},av=({children:e})=>{const t=nr();return A.jsx(ov.Content,{$designNewLayout:t,children:e})},uv=(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},pp=(e,t)=>{if(!e)return!1;for(const n of e)if(uv(n,t))return!0;return!1},yr=({name:e,secondName:t,children:n})=>{const i=ev(),o=e?pp(i,Array.isArray(e)?e:[e]):!1,a=t?pp(i,Array.isArray(t)?t:[t]):!1;return A.jsx(sv,{$isHidden:!i||o||a,children:n})},cv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:d,customProps:p,urlParams:g,onRemoveByMinus:v})=>{const C=nr(),{clusterName:E,namespace:S,syntheticProject:b,entryName:T}=g,N=q.Form.useFormInstance(),L=q.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,N),_=St({template:p.valueUri,replaceValues:{clusterName:E,namespace:S,syntheticProject:b,entryName:T}}),{data:O,isError:F,isLoading:B}=tn({uri:_,refetchInterval:!1,queryKey:[_||"",JSON.stringify(e)],isEnabled:!!_});if(B)return A.jsx("div",{children:"Loading"});if(F)return A.jsx("div",{children:"Error"});const W=Ut.get(O,["items"]),Y=p.criteria?W.filter(Ee=>{const Oe=Ut.get(Ee,p.criteria?.keysToValue||[]);return p.criteria?.type==="equals"?Oe===p.criteria?.value:Oe!==p.criteria?.value}):W,fe=p.criteria?.keepPrefilled!==!1?W.find(Ee=>Ut.get(Ee,p.keysToValue)===L):void 0,le=fe?[fe,...Y]:Y,ve=(Array.isArray(le)?le.map(Ee=>({value:Ut.get(Ee,p.keysToValue),label:p.keysToLabel?Ut.get(Ee,p.keysToLabel):Ut.get(Ee,p.keysToValue)})).map(({value:Ee,label:Oe})=>({label:typeof Oe=="string"?Oe:JSON.stringify(Oe),value:typeof Ee=="string"?Ee:JSON.stringify(Ee)})):[]).reduce((Ee,Oe)=>(Ee.some(Ze=>Ze.value===Oe.value)||Ee.push(Oe),Ee),[]),Ce=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,pe=A.jsxs(A.Fragment,{children:[It(e),o?.includes(It(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(yr,{name:e,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:C,children:u?A.jsx(q.Tooltip,{title:u,children:pe}):pe}),A.jsxs(q.Flex,{gap:4,children:[l&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:A.jsx(sn,{})}),v&&A.jsx(q.Button,{size:"small",type:"text",onClick:v,children:A.jsx(sn,{})}),A.jsx(vi,{formName:i||e,persistedControls:d,type:"arr"})]})]}),A.jsx(kr,{name:n||Ce,rules:[{required:a===!1&&o?.includes(It(e))}],validateTrigger:"onBlur",hasFeedback:C?{icons:Vr}:!0,children:A.jsx(q.Select,{mode:p.mode,placeholder:"Select",options:ve,filterOption:rc,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"?oc(i):ac(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))},lv=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:d,maxAddSecondValueObj:p,logic:g})=>{let v=0,C=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const E=mr({valueObj:t,keysToValue:e.min.keysToValue,logic:g});v=gp({value:E})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const E=mr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:g}),S=mr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:g});v=yp({valueFirst:E,valueSecond:S})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const E=mr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:g}),S=mr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:g});v=mp({valueFirst:E,valueSecond:S})}if(e.min.type==="number"&&(v=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const E=mr({valueObj:u,keysToValue:e.max.keysToValue,logic:g});C=gp({value:E})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const E=mr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:g}),S=mr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:g});C=yp({valueFirst:E,valueSecond:S})}if(e.max.type==="addResourceValues"&&typeof d=="object"&&d!==null&&typeof p=="object"&&p!==null){const E=mr({valueObj:d,keysToValue:e.max.firstValuesKeysToValue,logic:g}),S=mr({valueObj:p,keysToValue:e.max.secondValuesKeysToValue,logic:g});C=mp({valueFirst:E,valueSecond:S})}return e.max.type==="number"&&(C=e.max.value),{minValue:v,maxValue:C}},fv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,persistedControls:u,description:l,onRemoveByMinus:f,initialValue:d,max:p,min:g,step:v=1,...C})=>{const E=nr(),[S,b]=Z.useState(d||g);Z.useEffect(()=>{(Number.isNaN(S)||S<g)&&b(g),S>p&&b(p),b(S)},[S,g,p]);const T=A.jsxs(A.Fragment,{children:[It(e),o?.includes(It(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(yr,{name:e,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:E,children:l?A.jsx(q.Tooltip,{title:l,children:T}):T}),A.jsxs(q.Flex,{gap:4,children:[f&&A.jsx(q.Button,{size:"small",type:"text",onClick:f,children:A.jsx(sn,{})}),A.jsx(vi,{formName:i||e,persistedControls:u,type:"number"})]})]}),A.jsxs(q.Row,{children:[A.jsxs(q.Col,{span:12,children:[A.jsx(kr,{name:n||e,rules:[{required:a===!1&&o?.includes(It(e))}],validateTrigger:"onBlur",hasFeedback:E?{icons:Vr}:!0,children:A.jsx(q.Slider,{min:g,max:p,step:v,...C})},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:g}),A.jsx("span",{children:p})]})})]}),A.jsx(q.Col,{span:4,children:A.jsx(kr,{name:n||e,rules:[{required:a===!1&&o?.includes(It(e))}],validateTrigger:"onBlur",hasFeedback:E?{icons:Vr}:!0,children:A.jsx(q.InputNumber,{min:g,max:p,step:v,value:S,disabled:C.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},hv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,persistedControls:f,customProps:d,urlParams:p,onRemoveByMinus:g})=>{const{clusterName:v,namespace:C,syntheticProject:E,entryName:S}=p,b=l?d.edit:d.add,T=b.min.type==="resourceValue"?St({template:b.min.valueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:E,entryName:S}}):void 0,N=b.min.type==="substractResourceValues"?St({template:b.min.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:E,entryName:S}}):void 0,L=b.min.type==="substractResourceValues"?St({template:b.min.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:E,entryName:S}}):void 0,_=b.min.type==="addResourceValues"?St({template:b.min.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:E,entryName:S}}):void 0,O=b.min.type==="addResourceValues"?St({template:b.min.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:E,entryName:S}}):void 0,F=b.max.type==="resourceValue"?St({template:b.max.valueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:E,entryName:S}}):void 0,B=b.max.type==="substractResourceValues"?St({template:b.max.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:E,entryName:S}}):void 0,W=b.max.type==="substractResourceValues"?St({template:b.max.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:E,entryName:S}}):void 0,Y=b.max.type==="addResourceValues"?St({template:b.max.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:E,entryName:S}}):void 0,fe=b.max.type==="addResourceValues"?St({template:b.max.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:E,entryName:S}}):void 0,{data:le,isError:be,isLoading:ve}=tn({uri:T||"",refetchInterval:!1,queryKey:[T||"",JSON.stringify(e)],isEnabled:!!T}),{data:Ce,isError:pe,isLoading:Ee}=tn({uri:N||"",refetchInterval:!1,queryKey:[N||"",JSON.stringify(e)],isEnabled:!!N}),{data:Oe,isError:Be,isLoading:Ze}=tn({uri:L||"",refetchInterval:!1,queryKey:[L||"",JSON.stringify(e)],isEnabled:!!L}),{data:Ae,isError:we,isLoading:Ke}=tn({uri:_||"",refetchInterval:!1,queryKey:[_||"",JSON.stringify(e)],isEnabled:!!_}),{data:J,isError:Q,isLoading:ue}=tn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:De,isError:Ye,isLoading:ke}=tn({uri:F||"",refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F}),{data:Pe,isError:Fe,isLoading:Ne}=tn({uri:B||"",refetchInterval:!1,queryKey:[B||"",JSON.stringify(e)],isEnabled:!!B}),{data:_t,isError:nn,isLoading:Pt}=tn({uri:W||"",refetchInterval:!1,queryKey:[W||"",JSON.stringify(e)],isEnabled:!!W}),{data:Rt,isError:Lt,isLoading:wt}=tn({uri:Y||"",refetchInterval:!1,queryKey:[Y||"",JSON.stringify(e)],isEnabled:!!Y}),{data:kn,isError:An,isLoading:_e}=tn({uri:fe||"",refetchInterval:!1,queryKey:[fe||"",JSON.stringify(e)],isEnabled:!!fe}),{minValue:Re,maxValue:de}=lv({minMaxAndStep:b,minValueObj:le,minSubstractFirstValueObj:Ce,minSubstractSecondValueObj:Oe,minAddFirstValueObj:Ae,minAddSecondValueObj:J,maxValueObj:De,maxSubstractFirstValueObj:Pe,maxSubstractSecondValueObj:_t,maxAddFirstValueObj:Rt,maxAddSecondValueObj:kn,logic:d.logic}),Et=l?d.edit.step:d.add.step;return b.min.type==="resourceValue"&&ve||b.min.type==="substractResourceValues"&&(Ee||Ze)||b.min.type==="addResourceValues"&&(Ke||ue)||b.max.type==="resourceValue"&&ke||b.max.type==="substractResourceValues"&&(Ne||Pt)||b.max.type==="addResourceValues"&&(wt||_e)?A.jsx("div",{children:"Loading"}):b.min.type==="resourceValue"&&be||b.min.type==="substractResourceValues"&&(pe||Be)||b.min.type==="addResourceValues"&&(we||Q)||b.max.type==="resourceValue"&&Ye||b.max.type==="substractResourceValues"&&(Fe||nn)||b.max.type==="addResourceValues"&&(Lt||An)?A.jsx("div",{children:"Error"}):A.jsx(fv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,min:Re,max:de,step:Et,persistedControls:f,onRemoveByMinus:g})},dv=({name:e,namespaceData:t,isAdditionalProperties:n,removeField:i})=>{const o=nr();return t?A.jsxs(yr,{name:e,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsxs(Tr,{$designNewLayout:o,children:["namespace",A.jsx(q.Typography.Text,{type:"danger",children:"*"})]}),A.jsx(q.Flex,{gap:4,children:n&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>i({path:e}),children:A.jsx(sn,{})})})]}),A.jsx(kr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:o?{icons:Vr}:!0,children:A.jsx(q.Select,{placeholder:"Select namespace",options:t.selectValues,filterOption:t.filterSelectOptions,allowClear:!0,disabled:t.disabled,showSearch:!0})})]}):null},pv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:d,onRemoveByMinus:p})=>{const g=nr(),v=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,C=A.jsxs(A.Fragment,{children:[It(e),o?.includes(It(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(yr,{name:e,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:g,children:u?A.jsx(q.Tooltip,{title:u,children:C}):C}),A.jsxs(q.Flex,{gap:4,children:[l&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:A.jsx(sn,{})}),p&&A.jsx(q.Button,{size:"small",type:"text",onClick:p,children:A.jsx(sn,{})}),A.jsx(vi,{formName:i||e,persistedControls:d,type:"str"})]})]}),A.jsx(kr,{name:n||v,rules:[{required:a===!1&&o?.includes(It(e))}],validateTrigger:"onBlur",hasFeedback:g?{icons:Vr}:!0,children:A.jsx(q.Input,{placeholder:It(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},gv=Je.div`
432
+ `},rv=({children:e})=>{const t=nr();return E.jsx(nv.Content,{$designNewLayout:t,children:e})},iv=(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},lp=(e,t)=>{if(!e)return!1;for(const n of e)if(iv(n,t))return!0;return!1},gr=({name:e,secondName:t,children:n})=>{const i=Yw(),o=e?lp(i,Array.isArray(e)?e:[e]):!1,a=t?lp(i,Array.isArray(t)?t:[t]):!1;return E.jsx(tv,{$isHidden:!i||o||a,children:n})},sv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,customProps:p,urlParams:g,onRemoveByMinus:v})=>{const C=nr(),{clusterName:S,namespace:x,syntheticProject:w,entryName:T}=g,j=V.Form.useFormInstance(),L=V.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,j),_=St({template:p.valueUri,replaceValues:{clusterName:S,namespace:x,syntheticProject:w,entryName:T}}),{data:O,isError:F,isLoading:B}=tn({uri:_,refetchInterval:!1,queryKey:[_||"",JSON.stringify(e)],isEnabled:!!_});if(B)return E.jsx("div",{children:"Loading"});if(F)return E.jsx("div",{children:"Error"});const W=ln.get(O,["items"]),X=p.criteria?W.filter(Se=>{const ke=ln.get(Se,p.criteria?.keysToValue||[]);return p.criteria?.type==="equals"?ke===p.criteria?.value:ke!==p.criteria?.value}):W,fe=p.criteria?.keepPrefilled!==!1?W.find(Se=>ln.get(Se,p.keysToValue)===L):void 0,le=fe?[fe,...X]:X,be=(Array.isArray(le)?le.map(Se=>({value:ln.get(Se,p.keysToValue),label:p.keysToLabel?ln.get(Se,p.keysToLabel):ln.get(Se,p.keysToValue)})).map(({value:Se,label:ke})=>({label:typeof ke=="string"?ke:JSON.stringify(ke),value:typeof Se=="string"?Se:JSON.stringify(Se)})):[]).reduce((Se,ke)=>(Se.some(Ze=>Ze.value===ke.value)||Se.push(ke),Se),[]),Ae=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,de=E.jsxs(E.Fragment,{children:[Tt(e),o?.includes(Tt(e))&&E.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return E.jsxs(gr,{name:e,children:[E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx(Tr,{$designNewLayout:C,children:u?E.jsx(V.Tooltip,{title:u,children:de}):de}),E.jsxs(V.Flex,{gap:4,children:[l&&E.jsx(V.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:E.jsx(sn,{})}),v&&E.jsx(V.Button,{size:"small",type:"text",onClick:v,children:E.jsx(sn,{})}),E.jsx(vi,{formName:i||e,persistedControls:h,type:"arr"})]})]}),E.jsx(kr,{name:n||Ae,rules:[{required:a===!1&&o?.includes(Tt(e))}],validateTrigger:"onBlur",hasFeedback:C?{icons:Vr}:!0,children:E.jsx(V.Select,{mode:p.mode,placeholder:"Select",options:be,filterOption:tc,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},yr=({valueObj:e,keysToValue:t,logic:n})=>{const i=ln.get(e,t);return n==="cpuLike"?nc(i):rc(i)},fp=({value:e})=>Number(e.toFixed(1)),hp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},dp=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},ov=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:h,maxAddSecondValueObj:p,logic:g})=>{let v=0,C=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const S=yr({valueObj:t,keysToValue:e.min.keysToValue,logic:g});v=fp({value:S})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const S=yr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:g}),x=yr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:g});v=hp({valueFirst:S,valueSecond:x})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const S=yr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:g}),x=yr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:g});v=dp({valueFirst:S,valueSecond:x})}if(e.min.type==="number"&&(v=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const S=yr({valueObj:u,keysToValue:e.max.keysToValue,logic:g});C=fp({value:S})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const S=yr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:g}),x=yr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:g});C=hp({valueFirst:S,valueSecond:x})}if(e.max.type==="addResourceValues"&&typeof h=="object"&&h!==null&&typeof p=="object"&&p!==null){const S=yr({valueObj:h,keysToValue:e.max.firstValuesKeysToValue,logic:g}),x=yr({valueObj:p,keysToValue:e.max.secondValuesKeysToValue,logic:g});C=dp({valueFirst:S,valueSecond:x})}return e.max.type==="number"&&(C=e.max.value),{minValue:v,maxValue:C}},av=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,persistedControls:u,description:l,onRemoveByMinus:f,initialValue:h,max:p,min:g,step:v=1,...C})=>{const S=nr(),[x,w]=Z.useState(h||g);Z.useEffect(()=>{(Number.isNaN(x)||x<g)&&w(g),x>p&&w(p),w(x)},[x,g,p]);const T=E.jsxs(E.Fragment,{children:[Tt(e),o?.includes(Tt(e))&&E.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return E.jsxs(gr,{name:e,children:[E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx(Tr,{$designNewLayout:S,children:l?E.jsx(V.Tooltip,{title:l,children:T}):T}),E.jsxs(V.Flex,{gap:4,children:[f&&E.jsx(V.Button,{size:"small",type:"text",onClick:f,children:E.jsx(sn,{})}),E.jsx(vi,{formName:i||e,persistedControls:u,type:"number"})]})]}),E.jsxs(V.Row,{children:[E.jsxs(V.Col,{span:12,children:[E.jsx(kr,{name:n||e,rules:[{required:a===!1&&o?.includes(Tt(e))}],validateTrigger:"onBlur",hasFeedback:S?{icons:Vr}:!0,children:E.jsx(V.Slider,{min:g,max:p,step:v,...C})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),E.jsx(V.Typography.Text,{children:E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx("span",{children:g}),E.jsx("span",{children:p})]})})]}),E.jsx(V.Col,{span:4,children:E.jsx(kr,{name:n||e,rules:[{required:a===!1&&o?.includes(Tt(e))}],validateTrigger:"onBlur",hasFeedback:S?{icons:Vr}:!0,children:E.jsx(V.InputNumber,{min:g,max:p,step:v,value:x,disabled:C.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},uv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,persistedControls:f,customProps:h,urlParams:p,onRemoveByMinus:g})=>{const{clusterName:v,namespace:C,syntheticProject:S,entryName:x}=p,w=l?h.edit:h.add,T=w.min.type==="resourceValue"?St({template:w.min.valueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:x}}):void 0,j=w.min.type==="substractResourceValues"?St({template:w.min.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:x}}):void 0,L=w.min.type==="substractResourceValues"?St({template:w.min.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:x}}):void 0,_=w.min.type==="addResourceValues"?St({template:w.min.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:x}}):void 0,O=w.min.type==="addResourceValues"?St({template:w.min.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:x}}):void 0,F=w.max.type==="resourceValue"?St({template:w.max.valueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:x}}):void 0,B=w.max.type==="substractResourceValues"?St({template:w.max.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:x}}):void 0,W=w.max.type==="substractResourceValues"?St({template:w.max.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:x}}):void 0,X=w.max.type==="addResourceValues"?St({template:w.max.firstValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:x}}):void 0,fe=w.max.type==="addResourceValues"?St({template:w.max.secondValueUri,replaceValues:{clusterName:v,namespace:C,syntheticProject:S,entryName:x}}):void 0,{data:le,isError:me,isLoading:be}=tn({uri:T||"",refetchInterval:!1,queryKey:[T||"",JSON.stringify(e)],isEnabled:!!T}),{data:Ae,isError:de,isLoading:Se}=tn({uri:j||"",refetchInterval:!1,queryKey:[j||"",JSON.stringify(e)],isEnabled:!!j}),{data:ke,isError:Oe,isLoading:Ze}=tn({uri:L||"",refetchInterval:!1,queryKey:[L||"",JSON.stringify(e)],isEnabled:!!L}),{data:Ee,isError:ye,isLoading:We}=tn({uri:_||"",refetchInterval:!1,queryKey:[_||"",JSON.stringify(e)],isEnabled:!!_}),{data:J,isError:Y,isLoading:oe}=tn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:De,isError:Je,isLoading:ve}=tn({uri:F||"",refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F}),{data:Fe,isError:je,isLoading:Re}=tn({uri:B||"",refetchInterval:!1,queryKey:[B||"",JSON.stringify(e)],isEnabled:!!B}),{data:Ct,isError:nn,isLoading:Lt}=tn({uri:W||"",refetchInterval:!1,queryKey:[W||"",JSON.stringify(e)],isEnabled:!!W}),{data:Pt,isError:jt,isLoading:bt}=tn({uri:X||"",refetchInterval:!1,queryKey:[X||"",JSON.stringify(e)],isEnabled:!!X}),{data:Te,isError:et,isLoading:gt}=tn({uri:fe||"",refetchInterval:!1,queryKey:[fe||"",JSON.stringify(e)],isEnabled:!!fe}),{minValue:vt,maxValue:we}=ov({minMaxAndStep:w,minValueObj:le,minSubstractFirstValueObj:Ae,minSubstractSecondValueObj:ke,minAddFirstValueObj:Ee,minAddSecondValueObj:J,maxValueObj:De,maxSubstractFirstValueObj:Fe,maxSubstractSecondValueObj:Ct,maxAddFirstValueObj:Pt,maxAddSecondValueObj:Te,logic:h.logic}),It=l?h.edit.step:h.add.step;return w.min.type==="resourceValue"&&be||w.min.type==="substractResourceValues"&&(Se||Ze)||w.min.type==="addResourceValues"&&(We||oe)||w.max.type==="resourceValue"&&ve||w.max.type==="substractResourceValues"&&(Re||Lt)||w.max.type==="addResourceValues"&&(bt||gt)?E.jsx("div",{children:"Loading"}):w.min.type==="resourceValue"&&me||w.min.type==="substractResourceValues"&&(de||Oe)||w.min.type==="addResourceValues"&&(ye||Y)||w.max.type==="resourceValue"&&Je||w.max.type==="substractResourceValues"&&(je||nn)||w.max.type==="addResourceValues"&&(jt||et)?E.jsx("div",{children:"Error"}):E.jsx(av,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,min:vt,max:we,step:It,persistedControls:f,onRemoveByMinus:g})},cv=({name:e,namespaceData:t,isAdditionalProperties:n,removeField:i})=>{const o=nr();return t?E.jsxs(gr,{name:e,children:[E.jsxs(V.Flex,{justify:"space-between",children:[E.jsxs(Tr,{$designNewLayout:o,children:["namespace",E.jsx(V.Typography.Text,{type:"danger",children:"*"})]}),E.jsx(V.Flex,{gap:4,children:n&&E.jsx(V.Button,{size:"small",type:"text",onClick:()=>i({path:e}),children:E.jsx(sn,{})})})]}),E.jsx(kr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:o?{icons:Vr}:!0,children:E.jsx(V.Select,{placeholder:"Select namespace",options:t.selectValues,filterOption:t.filterSelectOptions,allowClear:!0,disabled:t.disabled,showSearch:!0})})]}):null},lv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,onRemoveByMinus:p})=>{const g=nr(),v=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,C=E.jsxs(E.Fragment,{children:[Tt(e),o?.includes(Tt(e))&&E.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return E.jsxs(gr,{name:e,children:[E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx(Tr,{$designNewLayout:g,children:u?E.jsx(V.Tooltip,{title:u,children:C}):C}),E.jsxs(V.Flex,{gap:4,children:[l&&E.jsx(V.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:E.jsx(sn,{})}),p&&E.jsx(V.Button,{size:"small",type:"text",onClick:p,children:E.jsx(sn,{})}),E.jsx(vi,{formName:i||e,persistedControls:h,type:"str"})]})]}),E.jsx(kr,{name:n||v,rules:[{required:a===!1&&o?.includes(Tt(e))}],validateTrigger:"onBlur",hasFeedback:g?{icons:Vr}:!0,children:E.jsx(V.Input,{placeholder:Tt(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},fv=Ge.div`
433
433
  display: flex;
434
- `,yv=Je.div`
434
+ `,hv=Ge.div`
435
435
  margin-left: 4px;
436
436
  cursor: pointer;
437
437
  padding-top: 11px;
438
- `,wp={SwitchAndCrossContainer:gv,CrossContainer:yv},mv=({name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l})=>{const f=nr(),d=A.jsx(A.Fragment,{children:It(e)});return A.jsxs(yr,{name:e,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:f,children:i?A.jsx(q.Tooltip,{title:i,children:d}):d}),A.jsxs(q.Flex,{gap:4,children:[a&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>u({path:e}),children:A.jsx(sn,{})}),l&&A.jsx(q.Button,{size:"small",type:"text",onClick:l,children:A.jsx(sn,{})})]})]}),A.jsxs(wp.SwitchAndCrossContainer,{children:[A.jsx(kr,{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:()=>{o&&o(e)},children:A.jsx(Th,{})})]})]})},wv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:d,persistedControls:p,onRemoveByMinus:g})=>{const v=nr(),C=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,E=A.jsxs(A.Fragment,{children:[It(e),o?.includes(It(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(yr,{name:e,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:v,children:u?A.jsx(q.Tooltip,{title:u,children:E}):E}),A.jsxs(q.Flex,{gap:4,children:[l&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:A.jsx(sn,{})}),g&&A.jsx(q.Button,{size:"small",type:"text",onClick:g,children:A.jsx(sn,{})}),A.jsx(vi,{formName:i||e,persistedControls:p,type:"str"})]})]}),A.jsx(kr,{name:n||C,rules:[{required:a===!1&&o?.includes(It(e))}],validateTrigger:"onBlur",hasFeedback:v?{icons:Vr}:!0,children:A.jsx(q.Select,{options:d.map(S=>({value:S,label:S})),placeholder:It(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},bv=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:p,onRemoveByMinus:g})=>{const v=nr(),C=A.jsxs(A.Fragment,{children:[It(t),a?.includes(It(t))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(yr,{name:t,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:v,children:l?A.jsx(q.Tooltip,{title:l,children:C}):C}),A.jsxs(q.Flex,{gap:4,children:[f&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>d({path:t}),children:A.jsx(sn,{})}),g&&A.jsx(q.Button,{size:"small",type:"text",onClick:g,children:A.jsx(sn,{})}),A.jsx(vi,{formName:o||t,persistedControls:p,type:"number"})]})]}),A.jsx(kr,{name:i||t,rules:[{required:u===!1&&a?.includes(It(t))}],validateTrigger:"onBlur",hasFeedback:v?{icons:Vr}:!0,children:A.jsx(q.InputNumber,{placeholder:It(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]})},bp=({name:e,persistName:t,selfRequired:n,hiddenFormName:i,description:o,isAdditionalProperties:a,removeField:u,expandedControls:l,persistedControls:f,collapseTitle:d,collapseFormName:p,data:g,inputProps:v,onRemoveByMinus:C})=>{const E=nr(),[S,b]=Z.useState(),T=()=>{if(S&&S.length>0){const L=v?.additionalProperties;v?.addField({path:Array.isArray(e)?[...e,String(d)]:[e,String(d)],name:S,type:L.type,items:L.items,nestedProperties:L.properties||{},required:L.required}),b(void 0)}},N=A.jsxs(A.Fragment,{children:[It(d),n&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsx(yr,{name:e,secondName:i,children:A.jsxs(iv,{title:A.jsx(Tr,{$designNewLayout:E,children:o?A.jsx(q.Tooltip,{title:o,children:N}):N}),formName:p,expandedControls:l,isAdditionalProperties:a,removeField:()=>u({path:e}),onRemoveByMinus:C,persistedCheckbox:v?void 0:A.jsx(vi,{formName:t||e,persistedControls:f,type:"obj"}),children:[g,v&&A.jsx(q.Input,{placeholder:"Enter field name",allowClear:!0,value:S,onChange:L=>b(L.target.value),suffix:A.jsx(q.Button,{size:"small",type:"text",onClick:T,children:A.jsx(Zu,{})})})]},Array.isArray(e)?e.join("-"):e)})},vv=({name:e,persistName:t,required:n,description:i,isAdditionalProperties:o,removeField:a,persistedControls:u,onRemoveByMinus:l})=>{const f=nr(),d=A.jsxs(A.Fragment,{children:[It(e),n?.includes(It(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"})]});return A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:f,children:i?A.jsx(q.Tooltip,{title:i,children:d}):d}),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(vi,{formName:t||e,persistedControls:u,type:"arr"})]})]})},Av=Je.div`
438
+ `,pp={SwitchAndCrossContainer:fv,CrossContainer:hv},dv=({name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l})=>{const f=nr(),h=E.jsx(E.Fragment,{children:Tt(e)});return E.jsxs(gr,{name:e,children:[E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx(Tr,{$designNewLayout:f,children:i?E.jsx(V.Tooltip,{title:i,children:h}):h}),E.jsxs(V.Flex,{gap:4,children:[a&&E.jsx(V.Button,{size:"small",type:"text",onClick:()=>u({path:e}),children:E.jsx(sn,{})}),l&&E.jsx(V.Button,{size:"small",type:"text",onClick:l,children:E.jsx(sn,{})})]})]}),E.jsxs(pp.SwitchAndCrossContainer,{children:[E.jsx(kr,{name:n||e,children:E.jsx(V.Switch,{size:"small"})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),E.jsx(pp.CrossContainer,{onClick:()=>{o&&o(e)},children:E.jsx(Ch,{})})]})]})},pv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:h,persistedControls:p,onRemoveByMinus:g})=>{const v=nr(),C=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,S=E.jsxs(E.Fragment,{children:[Tt(e),o?.includes(Tt(e))&&E.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return E.jsxs(gr,{name:e,children:[E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx(Tr,{$designNewLayout:v,children:u?E.jsx(V.Tooltip,{title:u,children:S}):S}),E.jsxs(V.Flex,{gap:4,children:[l&&E.jsx(V.Button,{size:"small",type:"text",onClick:()=>f({path:e}),children:E.jsx(sn,{})}),g&&E.jsx(V.Button,{size:"small",type:"text",onClick:g,children:E.jsx(sn,{})}),E.jsx(vi,{formName:i||e,persistedControls:p,type:"str"})]})]}),E.jsx(kr,{name:n||C,rules:[{required:a===!1&&o?.includes(Tt(e))}],validateTrigger:"onBlur",hasFeedback:v?{icons:Vr}:!0,children:E.jsx(V.Select,{options:h.map(x=>({value:x,label:x})),placeholder:Tt(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},gv=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:p,onRemoveByMinus:g})=>{const v=nr(),C=E.jsxs(E.Fragment,{children:[Tt(t),a?.includes(Tt(t))&&E.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return E.jsxs(gr,{name:t,children:[E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx(Tr,{$designNewLayout:v,children:l?E.jsx(V.Tooltip,{title:l,children:C}):C}),E.jsxs(V.Flex,{gap:4,children:[f&&E.jsx(V.Button,{size:"small",type:"text",onClick:()=>h({path:t}),children:E.jsx(sn,{})}),g&&E.jsx(V.Button,{size:"small",type:"text",onClick:g,children:E.jsx(sn,{})}),E.jsx(vi,{formName:o||t,persistedControls:p,type:"number"})]})]}),E.jsx(kr,{name:i||t,rules:[{required:u===!1&&a?.includes(Tt(t))}],validateTrigger:"onBlur",hasFeedback:v?{icons:Vr}:!0,children:E.jsx(V.InputNumber,{placeholder:Tt(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]})},gp=({name:e,persistName:t,selfRequired:n,hiddenFormName:i,description:o,isAdditionalProperties:a,removeField:u,expandedControls:l,persistedControls:f,collapseTitle:h,collapseFormName:p,data:g,inputProps:v,onRemoveByMinus:C})=>{const S=nr(),[x,w]=Z.useState(),T=()=>{if(x&&x.length>0){const L=v?.additionalProperties;v?.addField({path:Array.isArray(e)?[...e,String(h)]:[e,String(h)],name:x,type:L.type,items:L.items,nestedProperties:L.properties||{},required:L.required}),w(void 0)}},j=E.jsxs(E.Fragment,{children:[Tt(h),n&&E.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return E.jsx(gr,{name:e,secondName:i,children:E.jsxs(ev,{title:E.jsx(Tr,{$designNewLayout:S,children:o?E.jsx(V.Tooltip,{title:o,children:j}):j}),formName:p,expandedControls:l,isAdditionalProperties:a,removeField:()=>u({path:e}),onRemoveByMinus:C,persistedCheckbox:v?void 0:E.jsx(vi,{formName:t||e,persistedControls:f,type:"obj"}),children:[g,v&&E.jsx(V.Input,{placeholder:"Enter field name",allowClear:!0,value:x,onChange:L=>w(L.target.value),suffix:E.jsx(V.Button,{size:"small",type:"text",onClick:T,children:E.jsx(Xu,{})})})]},Array.isArray(e)?e.join("-"):e)})},yv=({name:e,persistName:t,required:n,description:i,isAdditionalProperties:o,removeField:a,persistedControls:u,onRemoveByMinus:l})=>{const f=nr(),h=E.jsxs(E.Fragment,{children:[Tt(e),n?.includes(Tt(e))&&E.jsx(V.Typography.Text,{type:"danger",children:"*"})]});return E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx(Tr,{$designNewLayout:f,children:i?E.jsx(V.Tooltip,{title:i,children:h}):h}),E.jsxs(V.Flex,{gap:4,children:[o&&E.jsx(V.Button,{size:"small",type:"text",onClick:()=>a({path:e}),children:E.jsx(sn,{})}),l&&E.jsx(V.Button,{size:"small",type:"text",onClick:l,children:E.jsx(sn,{})}),E.jsx(vi,{formName:t||e,persistedControls:u,type:"arr"})]})]})},mv=Ge.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
- `,Sv=Je.div`
443
+ `,bv=Ge.div`
444
444
  overflow-x: auto;
445
445
  scrollbar-width: thin;
446
- `,Ev=Je(q.Form.List)`
446
+ `,wv=Ge(V.Form.List)`
447
447
  margin-bottom: 8px;
448
- `,xv=Je.div`
448
+ `,vv=Ge.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
- `,Cv=Je.div`
455
+ `,Ev=Ge.div`
456
456
  height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
457
- `,to={ResetedFormList:Ev,Container:Av,OverflowContainer:Sv,ControlsRowContainer:xv,DebugContainer:Cv},vp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,namespaceData:l,isAdditionalProperties:f,removeField:d,persistedControls:p,onRemoveByMinus:g})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&l?A.jsx(dv,{name:e,namespaceData:l,isAdditionalProperties:f,removeField:d}):A.jsx(pv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:f,removeField:d,persistedControls:p,onRemoveByMinus:g}),_v=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:d,persistedControls:p,onRemoveByMinus:g})=>A.jsx(wv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:d,persistedControls:p,onRemoveByMinus:g}),Ap=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:p,onRemoveByMinus:g})=>A.jsx(bv,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:p,onRemoveByMinus:g}),Sp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,persistedControls:f,customProps:d,urlParams:p,onRemoveByMinus:g})=>A.jsx(hv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,customProps:d,persistedControls:f,urlParams:p,onRemoveByMinus:g}),Ep=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:d,customProps:p,urlParams:g,onRemoveByMinus:v})=>A.jsx(cv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:d,customProps:p,urlParams:g,onRemoveByMinus:v}),xp=({name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l})=>A.jsx(mv,{name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l}),Cp=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,description:f,makeValueUndefined:d,addField:p,isAdditionalProperties:g,removeField:v,isEdit:C,expandedControls:E,persistedControls:S,urlParams:b,onRemoveByMinus:T})=>e.type==="array"?A.jsxs(yr,{name:t,children:[A.jsx(vv,{name:t,persistName:a,required:u,description:f,isAdditionalProperties:g,removeField:v,persistedControls:S,onRemoveByMinus:T}),A.jsx(to.ResetedFormList,{name:i||t,rules:!l&&u?.includes(It(t))?[{validator:async(N,L)=>{if(!L||L.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(N,{add:L,remove:_},{errors:O})=>A.jsxs(A.Fragment,{children:[N.map(F=>{const B=e.items?.type,W=e.items?.description,Y=e.items;return A.jsxs(av,{children:[B!=="object"&&A.jsxs(A.Fragment,{children:[B==="string"&&vp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:S,onRemoveByMinus:()=>_(F.name)}),(B==="number"||B==="integer")&&Ap({isNumber:B==="number",name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:S,onRemoveByMinus:()=>_(F.name)}),(B==="rangeInputCpu"||B==="rangeInputMemory")&&Sp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,isEdit:C,persistedControls:S,customProps:e.items.customProps,urlParams:b,onRemoveByMinus:()=>_(F.name)}),B==="listInput"&&Ep({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:S,customProps:e.items.customProps,urlParams:b,onRemoveByMinus:()=>_(F.name)}),B==="boolean"&&xp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],description:W,makeValueUndefined:d,removeField:v,onRemoveByMinus:()=>_(F.name)}),B==="array"&&Cp({schema:e.items,name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],expandName:o?Array.isArray(o)?[...o,F.name]:[o,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,makeValueUndefined:d,addField:p,removeField:v,isEdit:C,expandedControls:E,persistedControls:S,urlParams:b,onRemoveByMinus:()=>_(F.name)})]}),B==="object"&&Y?.properties&&_p({properties:Y.properties,name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],expandName:o?Array.isArray(o)?[...o,F.name]:[o,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],required:Y.required,forceNonRequired:l,description:W,makeValueUndefined:d,addField:p,isAdditionalProperties:g,removeField:v,isEdit:C,expandedControls:E,persistedControls:S,urlParams:b,onRemoveByMinus:()=>_(F.name)})]},F.key)}),A.jsxs(kr,{children:[A.jsx(q.Button,{type:"text",size:"small",onClick:()=>L(),children:A.jsx(Zu,{})}),A.jsx(q.Form.ErrorList,{errors:O})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,Ea=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,description:f,namespaceData:d,makeValueUndefined:p,addField:g,removeField:v,isEdit:C,expandedControls:E,persistedControls:S,urlParams:b})=>A.jsx(yr,{name:t,children:Object.keys(e).map(T=>{if(e[T].type==="string"&&e[T].enum)return _v({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:S,options:e[T].enum||[]});if(e[T].type==="string"&&!e[T].enum||Object.keys(e[T]).includes("x-kubernetes-int-or-string"))return vp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,namespaceData:d,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:S});if(e[T].type==="number"||e[T].type==="integer")return Ap({isNumber:e[T].type==="number",name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:S});if(e[T].type==="rangeInputCpu"||e[T].type==="rangeInputMemory")return Sp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isEdit:C,customProps:e[T].customProps,persistedControls:S,urlParams:b});if(e[T].type==="listInput")return Ep({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,customProps:e[T].customProps,removeField:v,persistedControls:S,urlParams:b});if(e[T].type==="boolean")return xp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,description:e[T].description,makeValueUndefined:p,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v});if(e[T].type==="array")return Cp({schema:e[T],name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,makeValueUndefined:p,addField:g,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,isEdit:C,expandedControls:E,persistedControls:S,urlParams:b});if(e[T].additionalProperties){const N=e[T].properties?Ea({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:e[T].required,forceNonRequired:l,description:e[T].description,namespaceData:d,makeValueUndefined:p,addField:g,removeField:v,isEdit:C,expandedControls:E,persistedControls:S,urlParams:b}):void 0;return A.jsx(bp,{name:t,persistName:a,hiddenFormName:Array.isArray(t)?[...t,String(T)]:[t,String(T)],description:f,removeField:v,expandedControls:E,persistedControls:S,collapseTitle:T,collapseFormName:Array.isArray(t)?[...t,String(T)]:[t,String(T)],data:N,inputProps:{addField:g,additionalProperties:e[T]?.additionalProperties}},Array.isArray(t)?[...t,String(T)].join("-"):[t,String(T)].join("-"))}return e[T].type==="object"&&e[T].properties?_p({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,selfRequired:u?.includes(T),required:e[T].required,forceNonRequired:l||!u?.includes(T),description:e[T].description,namespaceData:d,makeValueUndefined:p,addField:g,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,isEdit:C,expandedControls:E,persistedControls:S,urlParams:b}):e[T].type==="object"&&e[T]["x-kubernetes-preserve-unknown-fields"]?A.jsx(q.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(T)):null})}),_p=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,description:d,namespaceData:p,makeValueUndefined:g,addField:v,isAdditionalProperties:C,removeField:E,isEdit:S,expandedControls:b,persistedControls:T,urlParams:N,onRemoveByMinus:L})=>{const _=Ea({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,description:d,namespaceData:p,makeValueUndefined:g,addField:v,removeField:E,isEdit:S,expandedControls:b,persistedControls:T,urlParams:N});return A.jsx(bp,{name:t,persistName:a,selfRequired:u,description:d,isAdditionalProperties:C,removeField:E,expandedControls:b,persistedControls:T,collapseTitle:t,collapseFormName:o||t,data:_,onRemoveByMinus:L})},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))},kv=Z.lazy(()=>Promise.resolve().then(()=>Lw)),Tp=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:d,prefillValuesSchema:p,prefillValueNamespaceOnly:g,isNameSpaced:v,isCreate:C,type:E,apiGroupApiVersion:S,kindName:b,typeName:T,backlink:N,designNewLayout:L,designNewLayoutHeight:_})=>{const{token:O}=q.theme.useToken(),F=cr.useNavigate(),[B]=q.Form.useForm(),W=q.Form.useWatch(["metadata","namespace"],B),[Y,fe]=Z.useState(a),[le,be]=Z.useState(),ve=k2(be,500),[Ce,pe]=Z.useState(!1),[Ee,Oe]=Z.useState(),[Be,Ze]=Z.useState(!1),[Ae,we]=Z.useState(f||[]),[Ke,J]=Z.useState(d||[]),[Q,ue]=Z.useState(!0),De=Z.useRef(null),Ye=Wr({apiGroup:E==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:C===!0}),ke=Wr({apiGroup:E==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:C!==!0}),Pe=()=>{if(De.current){const{scrollHeight:_e,clientHeight:Re}=De.current;De.current.scrollTo({top:_e-Re,behavior:"smooth"})}B.validateFields().then(()=>{pe(!0),Oe(void 0);const _e=B.getFieldsValue(),Re=ic(_e,Ke),de=ea(Re),Nt=ed(de,Y),{namespace:vt}=Re.metadata,rt=`/api/clusters/${e}/k8s/${E==="builtin"?"":"apis/"}${S}${v?`/namespaces/${vt}`:""}/${T}/${C?"":Re.metadata.name}`;C?Yo({endpoint:rt,body:Nt}).then(ge=>{console.log(ge),N&&F(N)}).catch(ge=>{if(console.log("Form submit error",ge),pe(!1),Jo(ge)&&ge.response?.data.message.includes("Required value")){const ut=(ge.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,R=y.filter(V=>{const G=Array.isArray(V)?JSON.stringify(V):V;return w.has(G)?!1:(w.add(G),!0)});we([...R])}Oe(ge)}):Xo({endpoint:rt,body:Nt}).then(ge=>{console.log(ge),N&&F(N)}).catch(ge=>{if(console.log("Form submit error",ge),pe(!1),Jo(ge)&&ge.response?.data.message.includes("Required value")){const ut=(ge.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,R=y.filter(V=>{const G=Array.isArray(V)?JSON.stringify(V):V;return w.has(G)?!1:(w.add(G),!0)});we([...R])}Oe(ge)})}).catch(_e=>{console.log("Validating error",_e);const Re=_e.errorFields.reduce((xe,ut)=>[...xe,ut.name],[]),Et=Re.filter(xe=>Array.isArray(xe)).flatMap(xe=>Array.from({length:xe.length},(ut,I)=>xe.slice(0,I+1))),Nt=Re.filter(xe=>!Array.isArray(xe)),vt=[...Ae,...Nt,...Et],rt=new Set,ge=vt.filter(xe=>{const ut=Array.isArray(xe)?JSON.stringify(xe):xe;return rt.has(ut)?!1:(rt.add(ut),!0)});we([...ge])})},Fe=Z.useCallback(()=>{const _e=B.getFieldsValue();Ue.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues",{values:_e,persistedKeys:Ke,properties:Y}).then(({data:Re})=>ve(Re))},[B,ve,Y,Ke]),Ne=_e=>{Ue.post("/openapi-bff/forms/formSync/getFormValuesByYaml",{values:_e,properties:Y}).then(({data:Re})=>{Re&&B.setFieldsValue(Re)})};if(Z.useEffect(()=>{const _e=E==="apis"?`${S}/${T}`:`v1/${T}`,Re=o?.items.find(de=>typeof de=="object"&&!Array.isArray(de)&&de!==null&&de.spec&&typeof de.spec=="object"&&!Array.isArray(de.spec)&&de.spec!==null&&typeof de.spec.overrideType=="string"&&de.spec.overrideType===_e);if(kp(Re)&&Re.spec.values.forEach(({path:de,value:Et})=>{B.setFieldValue(de,Et)}),p){const de=td(p,Y);B.setFieldsValue(de)}Fe()},[p,B,o,E,S,T,Fe,Y]),Z.useEffect(()=>{let _e=[];const Re=E==="apis"?`${S}/${T}`:`v1/${T}`,de=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===Re);kp(de)&&(_e=de.spec.values.flatMap(({path:rt})=>nd(rt))),p&&typeof p=="object"&&p!==null&&(_e=[..._e,...uc(p)]);const Et=[...Ae,..._e],Nt=new Set,vt=Et.filter(rt=>{const ge=Array.isArray(rt)?JSON.stringify(rt):rt;return Nt.has(ge)?!1:(Nt.add(ge),!0)});we([...vt])},[S,o,p,E,T]),Z.useEffect(()=>{g&&B.setFieldValue(["metadata","namespace"],g),Fe()},[g,Fe,B]),Z.useEffect(()=>{C&&B.setFieldsValue({apiVersion:S==="api/v1"?"v1":S,kind:b}),Fe()},[C,b,S,Fe,B]),!Y)return null;const _t=v?{filterSelectOptions:rc,selectValues:v.map(_e=>({label:_e,value:_e})),disabled:!!g}:void 0,nn=_e=>{B.setFieldValue(_e,void 0),Fe()},Pt=({path:_e,name:Re,type:de,items:Et,nestedProperties:Nt,required:vt})=>{const ge=(Array.isArray(_e)?_e:[_e]).reduceRight((I,y)=>({[y]:{properties:I}}),{[Re]:{type:de,items:Et,properties:Nt,required:vt,isAdditionalProperties:!0}}),xe=Ut.cloneDeep(Y),ut=Ut.merge(xe,ge);console.log("newObject",ge),console.log("newProperties",ut),fe(ut)},Rt=({path:_e})=>{const de=(Array.isArray(_e)?_e:[_e]).flatMap(Nt=>[Nt,"properties"]).slice(0,-1),Et=Ut.cloneDeep(Y);Ut.unset(Et,de),fe(Et)},Lt=_e=>{we([...Ae,_e])},wt=_e=>{we([...Ae.filter(Re=>JSON.stringify(Re)!==JSON.stringify(_e))])},kn=(_e,Re)=>{Re&&B.getFieldValue(_e)===void 0&&(Re==="str"&&B.setFieldValue(_e,""),Re==="number"&&B.setFieldValue(_e,0),Re==="arr"&&B.setFieldValue(_e,[]),Re==="obj"&&B.setFieldValue(_e,{})),J([...Ke,_e])},An=_e=>{console.log(_e),J([...Ke.filter(Re=>JSON.stringify(Re)!==JSON.stringify(_e))])};return A.jsxs(A.Fragment,{children:[A.jsxs(to.Container,{$designNewLayout:L,$designNewLayoutHeight:_,children:[A.jsx(to.OverflowContainer,{ref:De,children:A.jsxs(q.Form,{form:B,onValuesChange:Fe,children:[A.jsx(Qb,{value:L,children:A.jsx(Zb,{value:l,children:Ea({properties:Y,name:[],required:u,namespaceData:_t,makeValueUndefined:nn,addField:Pt,removeField:Rt,isEdit:!C,expandedControls:{onExpandOpen:Lt,onExpandClose:wt,expandedKeys:Ae},persistedControls:{onPersistMark:kn,onPersistUnmark:An,persistedKeys:Ke,isPersistedKeysShown:Q},urlParams:n})})}),!L&&A.jsxs(A.Fragment,{children:[A.jsx(xr,{$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&&Ye.data?.status.allowed===!1&&A.jsxs(A.Fragment,{children:[A.jsx(xr,{$space:10,$samespace:!0}),A.jsx(q.Alert,{type:"warning",message:"Insufficient rights to create"})]}),!C&&ke.data?.status.allowed===!1&&A.jsxs(A.Fragment,{children:[A.jsx(xr,{$space:10,$samespace:!0}),A.jsx(q.Alert,{type:"warning",message:"Insufficient rights to edit"})]}),Ee&&A.jsxs(A.Fragment,{children:[A.jsx(xr,{$space:10,$samespace:!0}),A.jsx(q.Alert,{message:`An error has occurred: ${Ee?.response?.data?.message} `,type:"error"})]})]})}),A.jsx("div",{children:A.jsx(Gb,{theme:t,currentValues:le||{},onChange:Ne})})]}),A.jsx(to.ControlsRowContainer,{$bgColor:O.colorPrimaryBg,$designNewLayout:L,children:A.jsxs(q.Flex,{gap:L?10:16,align:"center",children:[A.jsx(q.Button,{type:"primary",onClick:Pe,loading:Ce,children:"Submit"}),N&&A.jsx(q.Button,{onClick:()=>F(N),children:"Cancel"}),A.jsx(q.Button,{onClick:()=>Ze(!0),icon:A.jsx(wn.BugOutlined,{})}),L&&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."})})]})}),Be&&A.jsx(q.Modal,{open:Be,onOk:()=>Ze(!1),onCancel:()=>Ze(!1),onClose:()=>Ze(!1),title:"Debug for properties",width:"90vw",children:A.jsx(to.DebugContainer,{$designNewLayoutHeight:_,children:A.jsx(Z.Suspense,{fallback:A.jsx("div",{children:"Loading..."}),children:A.jsx(kv,{defaultLanguage:"json",width:"100%",height:_||"75vh",theme:"vs-dark",value:JSON.stringify(Y,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},Tv=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,namespacesData:a,data:u,isCreate:l,backlink:f,modeData:d,designNewLayout:p,designNewLayoutHeight:g})=>{const[v,C]=Z.useState(),[E,S]=Z.useState(!1),[b,T]=Z.useState(!1),[N,L]=Z.useState(!1),_=Z.useCallback(()=>{d&&(d.onChange("Manual"),d.onDisabled())},[d]);return Z.useEffect(()=>{S(!0),Ue.post("/openapi-bff/forms/formPrepare/prepareFormProps",{data:u,clusterName:t}).then(({data:O})=>{O.isNamespaced&&T(!0),O.result==="error"?(L(O.error),console.log(O.error),_()):C({properties:O.properties,required:O.required||[],hiddenPaths:O.hiddenPaths,expandedPaths:O.expandedPaths||[],persistedPaths:O.persistedPaths||[],kindName:O.kindName||""})}).catch(O=>{L(O.message)}).finally(()=>{S(!1)})},[t,u,_]),E?A.jsx(q.Spin,{}):d?.current==="Manual"?A.jsx(Xb,{theme:e,cluster:t,prefillValuesSchema:u.prefillValuesSchema,isCreate:l,type:u.type,isNameSpaced:b?a?.items.map(O=>O.metadata.name):!1,apiGroupApiVersion:u.type==="builtin"?"api/v1":`${u.apiGroup}/${u.apiVersion}`,typeName:u.typeName,backlink:f,designNewLayout:p,designNewLayoutHeight:g}):!v?.properties&&!N||!v?.properties?null:N?A.jsx(q.Alert,{message:N,type:"error"}):A.jsx(Tp,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:v.properties,required:v.required,hiddenPaths:v.hiddenPaths,expandedPaths:v.expandedPaths,persistedPaths:v.persistedPaths,prefillValuesSchema:u.prefillValuesSchema,prefillValueNamespaceOnly:u.prefillValueNamespaceOnly,isCreate:l,type:u.type,isNameSpaced:b?a?.items.map(O=>O.metadata.name):!1,apiGroupApiVersion:u.type==="builtin"?"api/v1":`${u.apiGroup}/${u.apiVersion}`,kindName:v.kindName,typeName:u.typeName,backlink:f,designNewLayout:p,designNewLayoutHeight:g},JSON.stringify(v.properties)+JSON.stringify(v.required)+JSON.stringify(v.hiddenPaths)+JSON.stringify(u))},Iv={CustomCard:Je(q.Card)`
457
+ `,eo={ResetedFormList:wv,Container:mv,OverflowContainer:bv,ControlsRowContainer:vv,DebugContainer:Ev},yp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,namespaceData:l,isAdditionalProperties:f,removeField:h,persistedControls:p,onRemoveByMinus:g})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&l?E.jsx(cv,{name:e,namespaceData:l,isAdditionalProperties:f,removeField:h}):E.jsx(lv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:f,removeField:h,persistedControls:p,onRemoveByMinus:g}),xv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:h,persistedControls:p,onRemoveByMinus:g})=>E.jsx(pv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,options:h,persistedControls:p,onRemoveByMinus:g}),mp=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:p,onRemoveByMinus:g})=>E.jsx(gv,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,description:l,isAdditionalProperties:f,removeField:h,persistedControls:p,onRemoveByMinus:g}),bp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,persistedControls:f,customProps:h,urlParams:p,onRemoveByMinus:g})=>E.jsx(uv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isEdit:l,customProps:h,persistedControls:f,urlParams:p,onRemoveByMinus:g}),wp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,customProps:p,urlParams:g,onRemoveByMinus:v})=>E.jsx(sv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,description:u,isAdditionalProperties:l,removeField:f,persistedControls:h,customProps:p,urlParams:g,onRemoveByMinus:v}),vp=({name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l})=>E.jsx(dv,{name:e,arrKey:t,arrName:n,description:i,makeValueUndefined:o,isAdditionalProperties:a,removeField:u,onRemoveByMinus:l}),Ep=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,description:f,makeValueUndefined:h,addField:p,isAdditionalProperties:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:x,urlParams:w,onRemoveByMinus:T})=>e.type==="array"?E.jsxs(gr,{name:t,children:[E.jsx(yv,{name:t,persistName:a,required:u,description:f,isAdditionalProperties:g,removeField:v,persistedControls:x,onRemoveByMinus:T}),E.jsx(eo.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Tt(t))?[{validator:async(j,L)=>{if(!L||L.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(j,{add:L,remove:_},{errors:O})=>E.jsxs(E.Fragment,{children:[j.map(F=>{const B=e.items?.type,W=e.items?.description,X=e.items;return E.jsxs(rv,{children:[B!=="object"&&E.jsxs(E.Fragment,{children:[B==="string"&&yp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:x,onRemoveByMinus:()=>_(F.name)}),(B==="number"||B==="integer")&&mp({isNumber:B==="number",name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:x,onRemoveByMinus:()=>_(F.name)}),(B==="rangeInputCpu"||B==="rangeInputMemory")&&bp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,isEdit:C,persistedControls:x,customProps:e.items.customProps,urlParams:w,onRemoveByMinus:()=>_(F.name)}),B==="listInput"&&wp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,removeField:v,persistedControls:x,customProps:e.items.customProps,urlParams:w,onRemoveByMinus:()=>_(F.name)}),B==="boolean"&&vp({name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],description:W,makeValueUndefined:h,removeField:v,onRemoveByMinus:()=>_(F.name)}),B==="array"&&Ep({schema:e.items,name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],expandName:o?Array.isArray(o)?[...o,F.name]:[o,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],description:W,makeValueUndefined:h,addField:p,removeField:v,isEdit:C,expandedControls:S,persistedControls:x,urlParams:w,onRemoveByMinus:()=>_(F.name)})]}),B==="object"&&X?.properties&&xp({properties:X.properties,name:Array.isArray(t)?[...t,F.name]:[t,F.name],arrKey:F.key,arrName:[F.name],expandName:o?Array.isArray(o)?[...o,F.name]:[o,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],persistName:a?Array.isArray(a)?[...a,F.name]:[a,F.name]:Array.isArray(t)?[...t,F.name]:[t,F.name],required:X.required,forceNonRequired:l,description:W,makeValueUndefined:h,addField:p,isAdditionalProperties:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:x,urlParams:w,onRemoveByMinus:()=>_(F.name)})]},F.key)}),E.jsxs(kr,{children:[E.jsx(V.Button,{type:"text",size:"small",onClick:()=>L(),children:E.jsx(Xu,{})}),E.jsx(V.Form.ErrorList,{errors:O})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,Ea=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,description:f,namespaceData:h,makeValueUndefined:p,addField:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:x,urlParams:w})=>E.jsx(gr,{name:t,children:Object.keys(e).map(T=>{if(e[T].type==="string"&&e[T].enum)return xv({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:x,options:e[T].enum||[]});if(e[T].type==="string"&&!e[T].enum||Object.keys(e[T]).includes("x-kubernetes-int-or-string"))return yp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,namespaceData:h,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:x});if(e[T].type==="number"||e[T].type==="integer")return mp({isNumber:e[T].type==="number",name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,persistedControls:x});if(e[T].type==="rangeInputCpu"||e[T].type==="rangeInputMemory")return bp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,isEdit:C,customProps:e[T].customProps,persistedControls:x,urlParams:w});if(e[T].type==="listInput")return wp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,customProps:e[T].customProps,removeField:v,persistedControls:x,urlParams:w});if(e[T].type==="boolean")return vp({name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,description:e[T].description,makeValueUndefined:p,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v});if(e[T].type==="array")return Ep({schema:e[T],name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:u?.includes(T)?[String(T)]:void 0,forceNonRequired:l,description:e[T].description,makeValueUndefined:p,addField:g,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,isEdit:C,expandedControls:S,persistedControls:x,urlParams:w});if(e[T].additionalProperties){const j=e[T].properties?Ea({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,required:e[T].required,forceNonRequired:l,description:e[T].description,namespaceData:h,makeValueUndefined:p,addField:g,removeField:v,isEdit:C,expandedControls:S,persistedControls:x,urlParams:w}):void 0;return E.jsx(gp,{name:t,persistName:a,hiddenFormName:Array.isArray(t)?[...t,String(T)]:[t,String(T)],description:f,removeField:v,expandedControls:S,persistedControls:x,collapseTitle:T,collapseFormName:Array.isArray(t)?[...t,String(T)]:[t,String(T)],data:j,inputProps:{addField:g,additionalProperties:e[T]?.additionalProperties}},Array.isArray(t)?[...t,String(T)].join("-"):[t,String(T)].join("-"))}return e[T].type==="object"&&e[T].properties?xp({properties:e[T].properties,name:Array.isArray(t)?[...t,String(T)]:[t,String(T)],arrKey:n,arrName:Array.isArray(i)?[...i,String(T)]:void 0,expandName:o?Array.isArray(o)?[...o,String(T)]:[o,String(T)]:void 0,persistName:a?Array.isArray(a)?[...a,String(T)]:[a,String(T)]:void 0,selfRequired:u?.includes(T),required:e[T].required,forceNonRequired:l||!u?.includes(T),description:e[T].description,namespaceData:h,makeValueUndefined:p,addField:g,isAdditionalProperties:e[T].isAdditionalProperties,removeField:v,isEdit:C,expandedControls:S,persistedControls:x,urlParams:w}):e[T].type==="object"&&e[T]["x-kubernetes-preserve-unknown-fields"]?E.jsx(V.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(T)):null})}),xp=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,description:h,namespaceData:p,makeValueUndefined:g,addField:v,isAdditionalProperties:C,removeField:S,isEdit:x,expandedControls:w,persistedControls:T,urlParams:j,onRemoveByMinus:L})=>{const _=Ea({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,description:h,namespaceData:p,makeValueUndefined:g,addField:v,removeField:S,isEdit:x,expandedControls:w,persistedControls:T,urlParams:j});return E.jsx(gp,{name:t,persistName:a,selfRequired:u,description:h,isAdditionalProperties:C,removeField:S,expandedControls:w,persistedControls:T,collapseTitle:t,collapseFormName:o||t,data:_,onRemoveByMinus:L})},Sp=({error:e,expandedKeys:t})=>{const i=(e.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),o=Array.from({length:i.length},(f,h)=>i.slice(0,h+1)),a=[...t,...o],u=new Set;return a.filter(f=>{const h=Array.isArray(f)?JSON.stringify(f):f;return u.has(h)?!1:(u.add(h),!0)})},Sv=({error:e,expandedKeys:t})=>{const n=e.errorFields.reduce((h,p)=>[...h,p.name],[]),o=n.filter(h=>Array.isArray(h)).flatMap(h=>Array.from({length:h.length},(p,g)=>h.slice(0,g+1))),a=n.filter(h=>!Array.isArray(h)),u=[...t,...a,...o],l=new Set;return u.filter(h=>{const p=Array.isArray(h)?JSON.stringify(h):h;return l.has(p)?!1:(l.add(p),!0)})},Av=Z.lazy(()=>Promise.resolve().then(()=>Bb)),Ap=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefills:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:h,prefillValuesSchema:p,prefillValueNamespaceOnly:g,isNameSpaced:v,isCreate:C,type:S,apiGroupApiVersion:x,kindName:w,typeName:T,backlink:j,designNewLayout:L,designNewLayoutHeight:_})=>{const{token:O}=V.theme.useToken(),F=vr.useNavigate(),[B]=V.Form.useForm(),W=V.Form.useWatch(["metadata","namespace"],B),[X,fe]=Z.useState(a),[le,me]=Z.useState(),be=S2(me,500),[Ae,de]=Z.useState(!1),[Se,ke]=Z.useState(),[Oe,Ze]=Z.useState(!1),[Ee,ye]=Z.useState(f||[]),[We,J]=Z.useState(h||[]),Y=Z.useRef(null),oe=Wr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:C===!0}),De=Wr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:C!==!0}),Je=()=>{if(Y.current){const{scrollHeight:Te,clientHeight:et}=Y.current;Y.current.scrollTo({top:Te-et,behavior:"smooth"})}B.validateFields().then(()=>{de(!0),ke(void 0);const Te=B.getFieldValue(["metadata","name"]),et=B.getFieldValue(["metadata","namespace"]),vt={values:B.getFieldsValue(),persistedKeys:We,properties:X};$e.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues",vt).then(({data:we})=>{const It=we,an=`/api/clusters/${e}/k8s/${S==="builtin"?"":"apis/"}${x}${v?`/namespaces/${et}`:""}/${T}/${C?"":Te}`;C?Jo({endpoint:an,body:It}).then(Ye=>{console.log(Ye),j&&F(j)}).catch(Ye=>{if(console.log("Form submit error",Ye),de(!1),Y.current){const{scrollHeight:Bt,clientHeight:_e}=Y.current;Y.current.scrollTo({top:Bt-_e,behavior:"smooth"})}if(Go(Ye)&&Ye.response?.data.message.includes("Required value")){const Bt=Sp({error:Ye,expandedKeys:Ee});ye([...Bt])}ke(Ye)}):Yo({endpoint:an,body:It}).then(Ye=>{console.log(Ye),j&&F(j)}).catch(Ye=>{if(console.log("Form submit error",Ye),de(!1),Y.current){const{scrollHeight:Bt,clientHeight:_e}=Y.current;Y.current.scrollTo({top:Bt-_e,behavior:"smooth"})}if(Go(Ye)&&Ye.response?.data.message.includes("Required value")){const Bt=Sp({error:Ye,expandedKeys:Ee});ye([...Bt])}ke(Ye)})}).catch(we=>{if(console.log("BFF Transform Error",we),de(!1),Y.current){const{scrollHeight:It,clientHeight:an}=Y.current;Y.current.scrollTo({top:It-an,behavior:"smooth"})}ke(we)})}).catch(Te=>{console.log("Validating error",Te);const et=Sv({error:Te,expandedKeys:Ee});ye([...et])})},ve=Z.useCallback(()=>{const et={values:B.getFieldsValue(),persistedKeys:We,properties:X};$e.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues",et).then(({data:gt})=>be(gt))},[B,be,X,We]),Fe=Te=>{const et={values:Te,properties:X};$e.post("/openapi-bff/forms/formSync/getFormValuesByYaml",et).then(({data:gt})=>{gt&&B.setFieldsValue(gt)})};if(Z.useEffect(()=>{if(o&&o.spec.values.forEach(({path:Te,value:et})=>{B.setFieldValue(Te,et)}),p){const Te=Xh(p,X);B.setFieldsValue(Te)}ve()},[p,B,o,S,x,T,ve,X]),Z.useEffect(()=>{let Te=[];o&&(Te=o.spec.values.flatMap(({path:we})=>Qh(we))),p&&typeof p=="object"&&p!==null&&(Te=[...Te,...sc(p)]);const et=[...Ee,...Te],gt=new Set,vt=et.filter(we=>{const It=Array.isArray(we)?JSON.stringify(we):we;return gt.has(It)?!1:(gt.add(It),!0)});ye([...vt])},[x,o,p,S,T]),Z.useEffect(()=>{g&&B.setFieldValue(["metadata","namespace"],g),ve()},[g,ve,B]),Z.useEffect(()=>{C&&B.setFieldsValue({apiVersion:x==="api/v1"?"v1":x,kind:w}),ve()},[C,w,x,ve,B]),!X)return null;const je=v?{filterSelectOptions:tc,selectValues:v.map(Te=>({label:Te,value:Te})),disabled:!!g}:void 0,Re=Te=>{B.setFieldValue(Te,void 0),ve()},Ct=({path:Te,name:et,type:gt,items:vt,nestedProperties:we,required:It})=>{const Ye=(Array.isArray(Te)?Te:[Te]).reduceRight((Ne,Wt)=>({[Wt]:{properties:Ne}}),{[et]:{type:gt,items:vt,properties:we,required:It,isAdditionalProperties:!0}}),Bt=ln.cloneDeep(X),_e=ln.merge(Bt,Ye);console.log("newObject",Ye),console.log("newProperties",_e),fe(_e)},nn=({path:Te})=>{const gt=(Array.isArray(Te)?Te:[Te]).flatMap(we=>[we,"properties"]).slice(0,-1),vt=ln.cloneDeep(X);ln.unset(vt,gt),fe(vt)},Lt=Te=>{ye([...Ee,Te])},Pt=Te=>{ye([...Ee.filter(et=>JSON.stringify(et)!==JSON.stringify(Te))])},jt=(Te,et)=>{et&&B.getFieldValue(Te)===void 0&&(et==="str"&&B.setFieldValue(Te,""),et==="number"&&B.setFieldValue(Te,0),et==="arr"&&B.setFieldValue(Te,[]),et==="obj"&&B.setFieldValue(Te,{})),J([...We,Te])},bt=Te=>{console.log(Te),J([...We.filter(et=>JSON.stringify(et)!==JSON.stringify(Te))])};return E.jsxs(E.Fragment,{children:[E.jsxs(eo.Container,{$designNewLayout:L,$designNewLayoutHeight:_,children:[E.jsx(eo.OverflowContainer,{ref:Y,children:E.jsxs(V.Form,{form:B,onValuesChange:ve,children:[E.jsx(Gw,{value:L,children:E.jsx(Jw,{value:l,children:Ea({properties:X,name:[],required:u,namespaceData:je,makeValueUndefined:Re,addField:Ct,removeField:nn,isEdit:!C,expandedControls:{onExpandOpen:Lt,onExpandClose:Pt,expandedKeys:Ee},persistedControls:{onPersistMark:jt,onPersistUnmark:bt,persistedKeys:We},urlParams:n})})}),!L&&E.jsxs(E.Fragment,{children:[E.jsx(Ar,{$space:10,$samespace:!0}),E.jsx(V.Alert,{type:"warning",message:"Only the data from the form will be sent. Empty fields will be removed recursively."})]}),C&&oe.data?.status.allowed===!1&&E.jsxs(E.Fragment,{children:[E.jsx(Ar,{$space:10,$samespace:!0}),E.jsx(V.Alert,{type:"warning",message:"Insufficient rights to create"})]}),!C&&De.data?.status.allowed===!1&&E.jsxs(E.Fragment,{children:[E.jsx(Ar,{$space:10,$samespace:!0}),E.jsx(V.Alert,{type:"warning",message:"Insufficient rights to edit"})]}),Se&&E.jsxs(E.Fragment,{children:[E.jsx(Ar,{$space:10,$samespace:!0}),E.jsx(V.Alert,{message:`An error has occurred: ${Se?.response?.data?.message} `,type:"error"})]})]})}),E.jsx("div",{children:E.jsx(Ww,{theme:t,currentValues:le||{},onChange:Fe})})]}),E.jsx(eo.ControlsRowContainer,{$bgColor:O.colorPrimaryBg,$designNewLayout:L,children:E.jsxs(V.Flex,{gap:L?10:16,align:"center",children:[E.jsx(V.Button,{type:"primary",onClick:Je,loading:Ae,children:"Submit"}),j&&E.jsx(V.Button,{onClick:()=>F(j),children:"Cancel"}),E.jsx(V.Button,{onClick:()=>Ze(!0),icon:E.jsx(vn.BugOutlined,{})}),L&&E.jsx("div",{children:E.jsx(V.Typography.Text,{children:"Only the data from the form will be sent. Empty fields will be removed recursively."})})]})}),Oe&&E.jsx(V.Modal,{open:Oe,onOk:()=>Ze(!1),onCancel:()=>Ze(!1),onClose:()=>Ze(!1),title:"Debug for properties",width:"90vw",children:E.jsx(eo.DebugContainer,{$designNewLayoutHeight:_,children:E.jsx(Z.Suspense,{fallback:E.jsx("div",{children:"Loading..."}),children:E.jsx(Av,{defaultLanguage:"json",width:"100%",height:_||"75vh",theme:"vs-dark",value:JSON.stringify(X,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},Cv=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,data:o,customizationId:a,isCreate:u,backlink:l,modeData:f,designNewLayout:h,designNewLayoutHeight:p})=>{const[g,v]=Z.useState(),[C,S]=Z.useState(!1),[x,w]=Z.useState(!1),[T,j]=Z.useState(!1),L=Z.useCallback(()=>{f&&(f.onChange("Manual"),f.onDisabled())},[f]);return Z.useEffect(()=>{S(!0);const _={data:o,clusterName:t,customizationId:a};$e.post("/openapi-bff/forms/formPrepare/prepareFormProps",_).then(({data:O})=>{O.isNamespaced&&w(!0),O.result==="error"?(j(O.error),console.log(O.error),L()):v({properties:O.properties,required:O.required||[],hiddenPaths:O.hiddenPaths,expandedPaths:O.expandedPaths||[],persistedPaths:O.persistedPaths||[],kindName:O.kindName||"",formPrefills:O.formPrefills,namespacesData:O.namespacesData})}).catch(O=>{j(O.message)}).finally(()=>{S(!1)})},[t,o,a,L]),C?E.jsx(V.Spin,{}):f?.current==="Manual"?E.jsx(zw,{theme:e,cluster:t,prefillValuesSchema:o.prefillValuesSchema,isCreate:u,type:o.type,isNameSpaced:x,apiGroupApiVersion:o.type==="builtin"?"api/v1":`${o.apiGroup}/${o.apiVersion}`,typeName:o.typeName,backlink:l,designNewLayout:h,designNewLayoutHeight:p}):!g?.properties&&!T||!g?.properties?null:T?E.jsx(V.Alert,{message:T,type:"error"}):E.jsx(Ap,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefills:g.formPrefills,staticProperties:g.properties,required:g.required,hiddenPaths:g.hiddenPaths,expandedPaths:g.expandedPaths,persistedPaths:g.persistedPaths,prefillValuesSchema:o.prefillValuesSchema,prefillValueNamespaceOnly:o.prefillValueNamespaceOnly,isCreate:u,type:o.type,isNameSpaced:x?g.namespacesData:!1,apiGroupApiVersion:o.type==="builtin"?"api/v1":`${o.apiGroup}/${o.apiVersion}`,kindName:g.kindName,typeName:o.typeName,backlink:l,designNewLayout:h,designNewLayoutHeight:p},JSON.stringify(g.properties)+JSON.stringify(g.required)+JSON.stringify(g.hiddenPaths)+JSON.stringify(o))},_v={CustomCard:Ge(V.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
- `},Ov=({onAddClick:e})=>A.jsx(Iv.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 Fv(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 Vc;const Bv=new Uint8Array(16);function Dv(){if(!Vc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Vc=crypto.getRandomValues.bind(crypto)}return Vc(Bv)}const Ip={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Pv(e,t,n){if(Ip.randomUUID&&!e)return Ip.randomUUID();e=e||{};const i=e.random||(e.rng||Dv)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Fv(i)}const Rv=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:d})=>{const[p]=q.Form.useForm(),g=q.Form.useWatch("type",p),v=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,C=S=>{if(typeof a=="boolean"){Yo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:Pv()},spec:{...S}}}).then(()=>{u(!1),f()}).catch(b=>{(Jo(b)||b instanceof Error)&&l(b)}).finally(()=>u(!1));return}Xo({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:{...S}}}).then(()=>{u(!1),d()}).catch(b=>{(Jo(b)||b instanceof Error)&&l(b)}).finally(()=>u(!1))},E=()=>{p.validateFields().then(()=>{C(p.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:()=>E(),children:A.jsxs(q.Form,{form:p,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:g==="direct"||g==="built-in"})}),A.jsx(q.Form.Item,{label:"Enter API version",name:"apiVersion",children:A.jsx(q.Input,{disabled:g==="direct"})}),A.jsx(q.Form.Item,{label:"Enter resource type",name:"typeName",children:A.jsx(q.Input,{disabled:g==="direct"})}),A.jsx(q.Form.Item,{label:"Enter path",name:"pathToNav",children:A.jsx(q.Input,{disabled:g!=="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,{})})]})})},Lv=({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}`},Nv=({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}`,jv=({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}`,$v=Je(q.Card)`
476
+ `},kv=({onAddClick:e})=>E.jsx(_v.CustomCard,{onClick:e,children:E.jsx(vn.PlusOutlined,{})}),on=[];for(let e=0;e<256;++e)on.push((e+256).toString(16).slice(1));function Tv(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 $c;const Iv=new Uint8Array(16);function Ov(){if(!$c){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$c=crypto.getRandomValues.bind(crypto)}return $c(Iv)}const Cp={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Fv(e,t,n){if(Cp.randomUUID&&!e)return Cp.randomUUID();e=e||{};const i=e.random||(e.rng||Ov)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Tv(i)}const Bv=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:h})=>{const[p]=V.Form.useForm(),g=V.Form.useWatch("type",p),v=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,C=x=>{if(typeof a=="boolean"){Jo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:Fv()},spec:{...x}}}).then(()=>{u(!1),f()}).catch(w=>{(Go(w)||w instanceof Error)&&l(w)}).finally(()=>u(!1));return}Yo({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:{...x}}}).then(()=>{u(!1),h()}).catch(w=>{(Go(w)||w instanceof Error)&&l(w)}).finally(()=>u(!1))},S=()=>{p.validateFields().then(()=>{C(p.getFieldsValue())}).catch(()=>console.log("Validating error"))};return E.jsx(V.Modal,{title:typeof a=="boolean"?"Add card":"Edit плитку",open:a!==!1,onCancel:()=>u(!1),onOk:()=>S(),children:E.jsxs(V.Form,{form:p,name:"control-hooks",initialValues:{...v},children:[E.jsx(V.Form.Item,{label:"Name",name:"name",children:E.jsx(V.Input,{required:!0})}),E.jsx(V.Form.Item,{label:"Description",name:"description",children:E.jsx(V.Input,{required:!0})}),E.jsx(V.Form.Item,{label:"Icon",name:"icon",children:E.jsx(V.Input.TextArea,{placeholder:"SVG-иконка, <svg /> -> base64",maxLength:void 0,required:!0})}),E.jsx(V.Form.Item,{label:"Resources type",name:"type",children:E.jsx(V.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"}]})}),E.jsx(V.Form.Item,{label:"Enter API group",name:"apiGroup",children:E.jsx(V.Input,{disabled:g==="direct"||g==="built-in"})}),E.jsx(V.Form.Item,{label:"Enter API version",name:"apiVersion",children:E.jsx(V.Input,{disabled:g==="direct"})}),E.jsx(V.Form.Item,{label:"Enter resource type",name:"typeName",children:E.jsx(V.Input,{disabled:g==="direct"})}),E.jsx(V.Form.Item,{label:"Enter path",name:"pathToNav",children:E.jsx(V.Input,{disabled:g!=="direct"})}),E.jsx(V.Form.Item,{label:"Tags",name:"tags",children:E.jsx(V.Select,{mode:"tags",placeholder:"Enter tags. Separators: comma and space",tokenSeparators:[","," "],dropdownStyle:{display:"none"}})}),E.jsx(V.Form.Item,{label:"Disabled",name:"disabled",children:E.jsx(V.Switch,{})}),E.jsx(V.Form.Item,{label:"Hidden",name:"hidden",children:E.jsx(V.Switch,{})})]})})},Dv=({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}`},Rv=({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}`,Lv=({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}`,Pv=Ge(V.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
- `,Mv=Je.div`
495
+ `,jv=Ge.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
- `,Uv=Je.div`
504
+ `,Nv=Ge.div`
505
505
  overflow-x: auto;
506
506
  scrollbar-width: thin;
507
507
  margin-bottom: 20px;
508
- `,Vv=Je.div`
508
+ `,$v=Ge.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
- `,qv=Je.div`
517
+ `,Mv=Ge.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
- `,Wv=Je(q.Tag)`
525
+ `,Uv=Ge(V.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
- `,Kv=Je.div`
532
+ `,Vv=Ge.div`
533
533
  padding-left: 6px;
534
534
  padding-right: 6px;
535
- `,Hv=Je.div`
535
+ `,qv=Ge.div`
536
536
  position: absolute;
537
537
  bottom: 6px;
538
538
  right: 6px;
539
- `,zr={CustomCard:$v,ImageContainer:Mv,OverflowContainer:Uv,TitleContainer:Vv,TagsContainer:qv,CustomTag:Wv,DescriptionContainer:Kv,EditButtonContainer:Hv},qc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:p,tags:g,disabled:v,isEditMode:C,onDeleteClick:E,onEditClick:S,addedMode:b})=>{const{useToken:T}=q.theme,{token:N}=T(),L=cr.useNavigate();let _="";try{_=window.atob(i)}catch{_="Can't decode"}const O=b?Lv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:p,baseprefix:e}):Nv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:p,baseprefix:e}),F=b&&u!=="direct"?jv({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:d,apiVersion:p}):void 0,{data:B,error:W}=tn({uri:F||"",queryKey:[F||""],refetchInterval:!1,isEnabled:b&&F!==void 0});return b&&(W||u==="direct")?null:A.jsx(zr.CustomCard,{$isDisabled:v,$hoverColor:N.colorPrimary,onClick:()=>v?null:L(O),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(zr.ImageContainer,{dangerouslySetInnerHTML:{__html:_}}),C&&A.jsx("div",{onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),E&&E()},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(zr.OverflowContainer,{children:[A.jsxs(zr.TitleContainer,{children:[n," ",b&&A.jsxs("span",{children:["x",B?.items?.length]})]}),A.jsx(zr.TagsContainer,{children:g.map(Y=>A.jsx(zr.CustomTag,{children:Y},Y))}),A.jsx(zr.DescriptionContainer,{children:A.jsx(q.Typography.Text,{type:"secondary",children:t})})]}),A.jsx(zr.EditButtonContainer,{children:C&&A.jsx("div",{onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),S&&S()},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"})})})})]})})},zv=({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"}})},Gv={BigValue:Je.div`
539
+ `,zr={CustomCard:Pv,ImageContainer:jv,OverflowContainer:Nv,TitleContainer:$v,TagsContainer:Mv,CustomTag:Uv,DescriptionContainer:Vv,EditButtonContainer:qv},Mc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:p,tags:g,disabled:v,isEditMode:C,onDeleteClick:S,onEditClick:x,addedMode:w})=>{const{useToken:T}=V.theme,{token:j}=T(),L=vr.useNavigate();let _="";try{_=window.atob(i)}catch{_="Can't decode"}const O=w?Dv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:p,baseprefix:e}):Rv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:h,apiVersion:p,baseprefix:e}),F=w&&u!=="direct"?Lv({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:h,apiVersion:p}):void 0,{data:B,error:W}=tn({uri:F||"",queryKey:[F||""],refetchInterval:!1,isEnabled:w&&F!==void 0});return w&&(W||u==="direct")?null:E.jsx(zr.CustomCard,{$isDisabled:v,$hoverColor:j.colorPrimary,onClick:()=>v?null:L(O),children:E.jsxs(V.Flex,{vertical:!0,style:{width:"100%",height:"100%"},justify:"spaceBetween",children:[E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx(zr.ImageContainer,{dangerouslySetInnerHTML:{__html:_}}),C&&E.jsx("div",{onClick:X=>{X.preventDefault(),X.stopPropagation(),S&&S()},children:E.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.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"})})})]}),E.jsxs(zr.OverflowContainer,{children:[E.jsxs(zr.TitleContainer,{children:[n," ",w&&E.jsxs("span",{children:["x",B?.items?.length]})]}),E.jsx(zr.TagsContainer,{children:g.map(X=>E.jsx(zr.CustomTag,{children:X},X))}),E.jsx(zr.DescriptionContainer,{children:E.jsx(V.Typography.Text,{type:"secondary",children:t})})]}),E.jsx(zr.EditButtonContainer,{children:C&&E.jsx("div",{onClick:X=>{X.preventDefault(),X.stopPropagation(),x&&x()},children:E.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.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"})})})})]})})},Wv=({uniqueTags:e,selectedTags:t,onSelectedTags:n})=>{const i=e.map(o=>({key:o,value:o}));return E.jsx(V.Select,{mode:"tags",placeholder:"Search",tokenSeparators:[","," "," "],allowClear:!0,options:i,onClear:()=>{n([])},value:t,onChange:o=>n(o),style:{width:"240px"}})},Kv={BigValue:Ge.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
- `},Op=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=q.notification.useNotification(),[d,p]=Z.useState(!1),[g,v]=Z.useState(!1),[C,E]=Z.useState(!1),[S,b]=Z.useState(),[T,N]=Z.useState(),[L,_]=Z.useState([]),[O,F]=Z.useState([]),[B,W]=Z.useState([]),[Y,fe]=Z.useState([]),{data:le,isLoading:be,error:ve}=tn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),Ce=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),pe=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),Ee=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),Oe=()=>l.success({message:"Card created",key:"create-marketplace-success"}),Be=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Z.useEffect(()=>{le&&(d?(_(le.items.map(({spec:Ae})=>Ae).sort()),W(le.items.flatMap(({spec:Ae})=>Ae.tags).filter((Ae,we,Ke)=>Ke.indexOf(Ae)===we))):(_(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,we,Ke)=>Ke.indexOf(Ae)===we))))},[le,d]),Z.useEffect(()=>{let Ae=[];Y&&Y.length>0?Ae=L.filter(({name:we,description:Ke,tags:J})=>Y.some(Q=>we.toLowerCase().includes(Q.toLowerCase()))||Y.some(Q=>Ke.toLowerCase().includes(Q.toLowerCase()))||Y.some(Q=>J.some(ue=>ue.toLowerCase().includes(Q.toLowerCase())))).sort():Ae=L.sort(),F(Ae)},[Y,L]),ve)return A.jsx("div",{children:JSON.stringify(ve)});if(be)return A.jsx(q.Spin,{});if(!le)return A.jsx("div",{children:"No panels"});const Ze=()=>{p(!d)};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(Gv.BigValue,{children:"Marketplace"})})]})}),A.jsx("div",{children:A.jsxs(q.Flex,{gap:12,vertical:!0,children:[A.jsx(zv,{uniqueTags:B,selectedTags:Y,onSelectedTags:fe}),(Ce.data?.status.allowed||pe.data?.status.allowed||Ee.data?.status.allowed)&&A.jsxs(q.Flex,{align:"center",gap:8,children:[A.jsx(q.Switch,{defaultChecked:!0,checked:d,onClick:Ze})," Edit Mode"]})]})})]}),A.jsx(xr,{$space:20,$samespace:!0}),S&&A.jsx(q.Alert,{description:JSON.stringify(S),message:"Card was not created",onClose:()=>b(void 0),type:"error"}),T&&A.jsx(q.Alert,{description:JSON.stringify(T),message:"Card was not deleted",onClose:()=>N(void 0),type:"error"}),A.jsxs(q.Flex,{gap:22,wrap:!0,children:[e&&t&&O.map(({name:Ae,description:we,icon:Ke,type:J,pathToNav:Q,typeName:ue,apiGroup:De,apiVersion:Ye,tags:ke,disabled:Pe})=>A.jsx(qc,{baseprefix:u,description:we,disabled:Pe,icon:Ke,isEditMode:d,name:Ae,clusterName:e,namespace:t,type:J,pathToNav:Q,typeName:ue,apiGroup:De,apiVersion:Ye,tags:ke,onDeleteClick:()=>{const Fe=le.items.find(({spec:Ne})=>Ne.name===Ae);E(Fe?{name:Fe.metadata.name}:!1)},onEditClick:()=>{v(le.items.find(({spec:Fe})=>Fe.name===Ae)||!1)}},Ae)),d&&A.jsx(Ov,{onAddClick:()=>{v(!0)}})]}),g&&A.jsx(Rv,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:g,setError:b,setIsOpen:v,onCreateSuccess:Oe,onUpdateSuccess:Be}),typeof C!="boolean"&&A.jsx(Qu,{name:C.name,onClose:()=>E(!1),endpoint:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/${C.name}`})]})},Jv=({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(Ch,{}),"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(xh,{}),"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,{})})})},Yv=({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"})})]})})},Xv=Je.div`
552
+ `},_p=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=V.notification.useNotification(),[h,p]=Z.useState(!1),[g,v]=Z.useState(!1),[C,S]=Z.useState(!1),[x,w]=Z.useState(),[T,j]=Z.useState(),[L,_]=Z.useState([]),[O,F]=Z.useState([]),[B,W]=Z.useState([]),[X,fe]=Z.useState([]),{data:le,isLoading:me,error:be}=tn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),Ae=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),de=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),Se=Wr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),ke=()=>l.success({message:"Card created",key:"create-marketplace-success"}),Oe=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Z.useEffect(()=>{le&&(h?(_(le.items.map(({spec:Ee})=>Ee).sort()),W(le.items.flatMap(({spec:Ee})=>Ee.tags).filter((Ee,ye,We)=>We.indexOf(Ee)===ye))):(_(le.items.map(({spec:Ee})=>Ee).filter(({hidden:Ee})=>Ee!==!0).sort()),W(le.items.filter(({spec:Ee})=>Ee.hidden!==!0).flatMap(({spec:Ee})=>Ee.tags).filter((Ee,ye,We)=>We.indexOf(Ee)===ye))))},[le,h]),Z.useEffect(()=>{let Ee=[];X&&X.length>0?Ee=L.filter(({name:ye,description:We,tags:J})=>X.some(Y=>ye.toLowerCase().includes(Y.toLowerCase()))||X.some(Y=>We.toLowerCase().includes(Y.toLowerCase()))||X.some(Y=>J.some(oe=>oe.toLowerCase().includes(Y.toLowerCase())))).sort():Ee=L.sort(),F(Ee)},[X,L]),be)return E.jsx("div",{children:JSON.stringify(be)});if(me)return E.jsx(V.Spin,{});if(!le)return E.jsx("div",{children:"No panels"});const Ze=()=>{p(!h)};return E.jsxs(E.Fragment,{children:[f,E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx("div",{children:E.jsxs(V.Flex,{gap:12,vertical:!0,children:[E.jsx("div",{children:E.jsx(V.Typography.Text,{type:"secondary",children:"Available Products"})}),E.jsx("div",{children:E.jsx(Kv.BigValue,{children:"Marketplace"})})]})}),E.jsx("div",{children:E.jsxs(V.Flex,{gap:12,vertical:!0,children:[E.jsx(Wv,{uniqueTags:B,selectedTags:X,onSelectedTags:fe}),(Ae.data?.status.allowed||de.data?.status.allowed||Se.data?.status.allowed)&&E.jsxs(V.Flex,{align:"center",gap:8,children:[E.jsx(V.Switch,{defaultChecked:!0,checked:h,onClick:Ze})," Edit Mode"]})]})})]}),E.jsx(Ar,{$space:20,$samespace:!0}),x&&E.jsx(V.Alert,{description:JSON.stringify(x),message:"Card was not created",onClose:()=>w(void 0),type:"error"}),T&&E.jsx(V.Alert,{description:JSON.stringify(T),message:"Card was not deleted",onClose:()=>j(void 0),type:"error"}),E.jsxs(V.Flex,{gap:22,wrap:!0,children:[e&&t&&O.map(({name:Ee,description:ye,icon:We,type:J,pathToNav:Y,typeName:oe,apiGroup:De,apiVersion:Je,tags:ve,disabled:Fe})=>E.jsx(Mc,{baseprefix:u,description:ye,disabled:Fe,icon:We,isEditMode:h,name:Ee,clusterName:e,namespace:t,type:J,pathToNav:Y,typeName:oe,apiGroup:De,apiVersion:Je,tags:ve,onDeleteClick:()=>{const je=le.items.find(({spec:Re})=>Re.name===Ee);S(je?{name:je.metadata.name}:!1)},onEditClick:()=>{v(le.items.find(({spec:je})=>je.name===Ee)||!1)}},Ee)),h&&E.jsx(kv,{onAddClick:()=>{v(!0)}})]}),g&&E.jsx(Bv,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:g,setError:w,setIsOpen:v,onCreateSuccess:ke,onUpdateSuccess:Oe}),typeof C!="boolean"&&E.jsx(Yu,{name:C.name,onClose:()=>S(!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:E.jsx("div",{onClick:o=>{o.stopPropagation(),t()},children:E.jsxs(V.Flex,{align:"center",gap:8,children:[E.jsx(xh,{}),"Edit"]})})}),e&&i.push({key:"delete",label:E.jsx("div",{onClick:o=>{o.stopPropagation(),e()},children:E.jsxs(V.Flex,{align:"center",gap:8,children:[E.jsx(Eh,{}),"Delete"]})})}),i};return E.jsx(V.Dropdown,{placement:"bottomRight",menu:{items:n()},trigger:["click"],children:E.jsx(V.Button,{type:"text",onClick:i=>{i.preventDefault(),i.stopPropagation()},children:E.jsx(vn.EllipsisOutlined,{})})})},zv=({accessGroups:e})=>{const t=()=>e.map((n,i)=>({key:`${n}-${i}`,label:E.jsx("div",{onClick:o=>{o.stopPropagation()},children:n})}));return E.jsx(V.Dropdown,{placement:"bottomRight",menu:{items:t()},trigger:["click"],children:E.jsxs(V.Button,{type:"link",onClick:n=>{n.preventDefault(),n.stopPropagation()},children:["Access Groups",E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.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"})})]})})},Gv=Ge.div`
553
553
  width: 45.33px;
554
554
  height: 1px;
555
- `;Je.div`
555
+ `;Ge.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 Qv={ActionMenuPlaceholder:Xv},Fp=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectApiGroup:o,baseProjectVersion:a,mpResourceName:u,projectResourceName:l,baseprefix:f,accessGroups:d,children:p})=>{const g=cr.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:E,isLoading:S,error:b}=tn({uri:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[T,N]=Z.useState(!1),L=Wr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),_=Wr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),O=Z.useCallback(()=>{g(`/${f}/${e}/forms/apis/${o}/${a}/${l}/${t}?backlink=${f}/clusters/${e}`)},[f,e,t,o,a,l,g]);if(S)return A.jsx(q.Spin,{});if(!E||b)return null;const F=E.status.conditions.find(({type:B})=>B==="Ready");return A.jsxs(A.Fragment,{children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx("div",{children:p}),A.jsx("div",{children:A.jsxs(q.Flex,{gap:24,vertical:!0,children:[A.jsx(q.Flex,{justify:"flex-end",children:F?.status==="True"&&(L.data?.status.allowed||_.data?.status.allowed)?A.jsx(Jv,{onDelete:_.data?.status.allowed?()=>{N(!0)}:void 0,onUpdate:L.data?.status.allowed?O:void 0}):A.jsx(Qv.ActionMenuPlaceholder,{})}),A.jsx(Yv,{accessGroups:d})]})})]}),A.jsx(xr,{$space:24,$samespace:!0}),A.jsx(q.Typography.Text,{type:"secondary",children:"Added Products"}),A.jsx(xr,{$space:12,$samespace:!0}),A.jsxs(q.Flex,{gap:22,wrap:!0,children:[C&&A.jsx(q.Spin,{}),e&&t&&v?.items.map(({spec:B})=>B).sort().map(({name:B,description:W,icon:Y,type:fe,pathToNav:le,typeName:be,apiGroup:ve,apiVersion:Ce,tags:pe,disabled:Ee})=>A.jsx(qc,{baseprefix:f,description:W,disabled:Ee,icon:Y,isEditMode:!1,name:B,clusterName:e,namespace:t,type:fe,pathToNav:le,typeName:be,apiGroup:ve,apiVersion:Ce,tags:pe,addedMode:!0},B))]}),T&&A.jsx(Qu,{name:E.metadata.name,onClose:()=>{N(!1),g(`${f}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${E.metadata.name}`})]})},Wc=({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(d=>({...d,children:Array.isArray(d.children)?A.jsx(Wc,{items:d.children,components:t}):d.children}))}}const u=n.children?A.jsx(Wc,{items:n.children,components:t}):null;return A.jsx(Z.Fragment,{children:A.jsx(o,{data:a,children:u})},i)})}),Bp=e=>A.jsx(Wc,{...e}),Zv=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return A.jsxs(q.Typography.Text,{...o,children:[i,t]})},eA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Card,{...i,children:t})},tA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Flex,{...i,children:t})},nA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Row,{...i,children:t})},rA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Col,{...i,children:t})},iA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Tabs,{...i,children:t})},sA=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return A.jsxs(q.Button,{...o,children:[e.text,t]})},Dp=()=>{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}}},Pp=Dp(),oA=Pp.Provider,no=Pp.useTypedContext,aA=({data:e})=>{const n=no().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=St({template:e.text,replaceValues:n});return A.jsx("span",{children:i})},Rp=Z.createContext(void 0),uA=({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 A.jsx(Rp.Provider,{value:l,children:t})},xa=()=>{const e=Z.useContext(Rp);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},cA={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx("div",{...i,children:t})},antdText:Zv,antdCard:eA,antdFlex:tA,antdRow:nA,antdCol:rA,antdTabs:iA,antdButton:sA,partsOfUrl:aA,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=xa(),a=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const d=parseInt(l,10),p=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(v=>v[1]),g=qr.get(t[`req${d}`],p);return g!=null?String(g):""}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}=xa(),a=no(),u=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(d,p,g)=>{try{const v=parseInt(p,10),C=Array.from(g.matchAll(/['"]([^'"]+)['"]/g)).map(S=>S[1]),E=qr.get(t[`req${v}`],C);return E!=null?String(E):""}catch{return d}}):"",[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((d,p)=>d&&A.jsx("li",{children:d.message},p))})]});const l=a.partsOfUrl.reduce((d,p,g)=>(d[g.toString()]=p,d),{}),f=St({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:d}=xa(),g=no().partsOfUrl.reduce((S,b,T)=>(S[T.toString()]=b,S),{}),v=St({template:i,replaceValues:g}),C=St({template:o,replaceValues:g}),E=a.map(S=>{const b=S.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(N,L,_)=>{try{const O=parseInt(L,10),F=Array.from(_.matchAll(/['"]([^'"]+)['"]/g)).map(W=>W[1]),B=qr.get(l[`req${O}`],F);return B!=null?String(B):""}catch{return N}});return St({template:b,replaceValues:g})});return f?A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:d.map((S,b)=>S&&A.jsx("li",{children:S.message},b))})]}):A.jsx(Fp,{clusterName:v,namespace:C,accessGroups:E,...u,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=no().partsOfUrl.reduce((p,g,v)=>(p[v.toString()]=g,p),{}),f=St({template:i,replaceValues:l}),d=St({template:o,replaceValues:l});return A.jsx(Op,{clusterName:f,namespace:d,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(Bh,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(xr,{...i})},StatusText:({data:e,children:t})=>{const{id:n,requestIndex:i,jsonPath:o,criteria:a,valueToCompare:u,successText:l,errorText:f,...d}=e,{data:p,isLoading:g,isError:v,errors:C}=xa();let E;try{[E]=Gh.query(p[`req${i}`],`$${o}`)}catch(b){return A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:JSON.stringify(b)})]})}const S=a==="equals"?u===E:u!==E;return g?A.jsx("div",{children:"Loading..."}):v?A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:C.map((b,T)=>b&&A.jsx("li",{children:b.message},T))})]}):A.jsxs(q.Typography.Text,{type:S?"success":"danger",...d,children:[S?l:f,t]})},SidebarProvider:({data:e,children:t})=>{const{id:n,...i}=e,a=no().partsOfUrl.reduce((u,l,f)=>(u[f.toString()]=l,u),{});return A.jsx($h,{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=>St({template:i,replaceValues:n}))},lA=e=>{const t=cr.useLocation(),{urlsToFetch:n}=e,i=Lp({urls:n,locationPathname:t.pathname});return A.jsx(oA,{value:{partsOfUrl:t.pathname.split("/")},children:A.jsx(uA,{urls:i,children:A.jsx(Bp,{...e})})})},fA=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}},hA=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}},dA=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,Np=async({namespace:e,data:t,clusterName:n})=>(await Ue.post("/openapi-bff/scopes/filterScopes/filterIfBuiltInNamespaceScoped",{namespace:e,data:t,clusterName:n})).data,pA=(e,t)=>{const n={...e};for(const i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(n[i]=t[i]);return n},gA=e=>typeof e=="object"&&"value"in e&&"highlight"in e,yA=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("."),p=f.slice(0,-2).reverse();let g=t[d]=t[d]||{};for(const v of p)g[v]=g[v]||{},g=g[v];g[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(gA(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}))},mA=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),wA=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,p)=>d.name.localeCompare(p.name)),l=t?.groups.sort((d,p)=>d.name.localeCompare(p.name)),f=await Np({namespace:i,data:n,clusterName:e});return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},bA=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:p,apiExtensionVersion:g,crdName:v,pathname:C})=>e.map(({pathToMatch:S,pathToNavigate:b,keysToParse:T})=>({pathToMatch:S?St({template:S,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:p,apiExtensionVersion:g,crdName:v}}):void 0,pathToNavigate:b?St({template:b,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:p,apiExtensionVersion:g,crdName:v}}):void 0,keysToParse:T})).find(({pathToMatch:S})=>S?cr.matchPath(S,C):!1),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.additionalPrinterColumns)&&e.spec.additionalPrinterColumns.every(t=>Object.keys(t).includes("name")&&Object.keys(t).includes("jsonPath"))),$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.additionalPrinterColumnsUndefinedValues)&&e.spec.additionalPrinterColumnsUndefinedValues.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.additionalPrinterColumnsTrimLengths)&&e.spec.additionalPrinterColumnsTrimLengths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Up=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"))),vA=({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=jp(n)?n.spec.additionalPrinterColumns:void 0,o=$p(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=Mp(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Up(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},AA=async({clusterName:e})=>Ue.get(`/openapi-bff/swagger/swagger/${e}`),Vp=async()=>Ue.get("/clusterlist"),qp=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}`)},Wp=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}`),Kp=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}`),zp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>Ue.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),Gp=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}`),Jp=async({clusterName:e})=>Ue.get(`/api/clusters/${e}/k8s/apis/`),Yp=async({clusterName:e,apiGroup:t,apiVersion:n})=>Ue.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),Xp=async({clusterName:e})=>Ue.get(`/api/clusters/${e}/k8s/api/v1`),Qp=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>Ue.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),SA=({refetchInterval:e})=>bn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Vp()).data,refetchInterval:e!==void 0?e:5e3}),EA=({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 qp({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}),xA=({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 Wp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),CA=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>bn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await Kp({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}),_A=({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}),kA=({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 zp({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}),TA=({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 Gp({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 Jp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),OA=({clusterName:e,apiGroup:t,apiVersion:n})=>bn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await Yp({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),FA=({clusterName:e})=>bn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await Xp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),BA=({clusterName:e,apiExtensionVersion:t,crdName:n})=>bn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await Qp({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=Th,oe.BlackholeForm=Tp,oe.BlackholeFormDataProvider=Tv,oe.ContentCard=Bh,oe.DeleteIcon=xh,oe.DeleteModal=Qu,oe.DeleteModalMany=Gm,oe.DownIcon=kh,oe.DynamicComponents=cA,oe.DynamicRenderer=Bp,oe.DynamicRendererWithProviders=lA,oe.EditIcon=Ch,oe.EnrichedTable=Hh,oe.EnrichedTableProvider=a2,oe.LockedIcon=Oh,oe.ManageableBreadcrumbs=Rh,oe.ManageableBreadcrumbsWithDataProvider=Qm,oe.ManageableSidebar=jh,oe.ManageableSidebarWithDataProvider=$h,oe.MarketPlace=Op,oe.MarketplaceCard=qc,oe.MinusIcon=sn,oe.PlusIcon=Zu,oe.ProjectInfoCard=Fp,oe.Spacer=xr,oe.SuccessIcon=Ih,oe.TreeWithSearch=_y,oe.UnlockedIcon=Fh,oe.UpIcon=_h,oe.checkIfApiInstanceNamespaceScoped=fA,oe.checkIfBuiltInInstanceNamespaceScoped=hA,oe.checkPermission=Zh,oe.createContextFactory=Dp,oe.createNewEntry=Yo,oe.deleteEntry=Xu,oe.feedbackIcons=Vr,oe.filterIfApiInstanceNamespaceScoped=dA,oe.filterIfBuiltInInstanceNamespaceScoped=Np,oe.filterSelectOptions=rc,oe.floorToDecimal=Rs,oe.getAllPathsFromObj=uc,oe.getApiResourceSingle=Wp,oe.getApiResourceTypes=Jp,oe.getApiResourceTypesByApiGroup=Yp,oe.getApiResources=qp,oe.getBuiltinResourceSingle=Hp,oe.getBuiltinResourceTypes=Xp,oe.getBuiltinResources=Kp,oe.getBuiltinTreeData=mA,oe.getClusterList=Vp,oe.getCrdData=Qp,oe.getCrdResourceSingle=Gp,oe.getCrdResources=zp,oe.getDirectUnknownResource=Dh,oe.getEnrichedColumns=Wh,oe.getEnrichedColumnsWithControls=Kh,oe.getGroupsByCategory=wA,oe.getObjectFormItemsDraft=Ea,oe.getPrefixSubarrays=nd,oe.getStringByName=It,oe.getSwagger=AA,oe.groupsToTreeData=yA,oe.isFlatObject=qh,oe.isWithAdditionalPrinterColumns=jp,oe.isWithAdditionalPrinterColumnsColWidths=Up,oe.isWithAdditionalPrinterColumnsTrimLengths=Mp,oe.isWithAdditionalPrinterColumnsUndefinedValues=$p,oe.normalizeValuesForQuotas=ed,oe.normalizeValuesForQuotasToNumber=td,oe.overwriteMatchingKeys=pA,oe.parseCustomOverrides=vA,oe.parseQuotaValue=T2,oe.parseQuotaValueCpu=oc,oe.parseQuotaValueMemoryAndStorage=ac,oe.prepareDataForEnrichedColumns=Jh,oe.prepareDataForManageableBreadcrumbs=Ph,oe.prepareDataForManageableSidebar=Nh,oe.prepareTableMappings=bA,oe.prepareTemplate=St,oe.prepareUrlsToFetchForDynamicRenderer=Lp,oe.removeEmptyFormValues=ic,oe.renameBrokenFieldBack=ea,oe.renameBrokenFieldBackToFormAgain=sc,oe.updateEntry=Xo,oe.useApiResourceSingle=xA,oe.useApiResourceTypesByGroup=OA,oe.useApiResources=EA,oe.useApisResourceTypes=IA,oe.useBuiltinResourceSingle=_A,oe.useBuiltinResourceTypes=FA,oe.useBuiltinResources=CA,oe.useClusterList=SA,oe.useCrdData=BA,oe.useCrdResourceSingle=TA,oe.useCrdResources=kA,oe.useDirectUnknownResource=tn,oe.usePermissions=Wr,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});
568
+ `;const Jv={ActionMenuPlaceholder:Gv},kp=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectApiGroup:o,baseProjectVersion:a,mpResourceName:u,projectResourceName:l,baseprefix:f,accessGroups:h,children:p})=>{const g=vr.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:x,error:w}=tn({uri:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[T,j]=Z.useState(!1),L=Wr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),_=Wr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),O=Z.useCallback(()=>{g(`/${f}/${e}/forms/apis/${o}/${a}/${l}/${t}?backlink=${f}/clusters/${e}`)},[f,e,t,o,a,l,g]);if(x)return E.jsx(V.Spin,{});if(!S||w)return null;const F=S.status.conditions.find(({type:B})=>B==="Ready");return E.jsxs(E.Fragment,{children:[E.jsxs(V.Flex,{justify:"space-between",children:[E.jsx("div",{children:p}),E.jsx("div",{children:E.jsxs(V.Flex,{gap:24,vertical:!0,children:[E.jsx(V.Flex,{justify:"flex-end",children:F?.status==="True"&&(L.data?.status.allowed||_.data?.status.allowed)?E.jsx(Hv,{onDelete:_.data?.status.allowed?()=>{j(!0)}:void 0,onUpdate:L.data?.status.allowed?O:void 0}):E.jsx(Jv.ActionMenuPlaceholder,{})}),E.jsx(zv,{accessGroups:h})]})})]}),E.jsx(Ar,{$space:24,$samespace:!0}),E.jsx(V.Typography.Text,{type:"secondary",children:"Added Products"}),E.jsx(Ar,{$space:12,$samespace:!0}),E.jsxs(V.Flex,{gap:22,wrap:!0,children:[C&&E.jsx(V.Spin,{}),e&&t&&v?.items.map(({spec:B})=>B).sort().map(({name:B,description:W,icon:X,type:fe,pathToNav:le,typeName:me,apiGroup:be,apiVersion:Ae,tags:de,disabled:Se})=>E.jsx(Mc,{baseprefix:f,description:W,disabled:Se,icon:X,isEditMode:!1,name:B,clusterName:e,namespace:t,type:fe,pathToNav:le,typeName:me,apiGroup:be,apiVersion:Ae,tags:de,addedMode:!0},B))]}),T&&E.jsx(Yu,{name:S.metadata.name,onClose:()=>{j(!1),g(`${f}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${S.metadata.name}`})]})},Uc=({items:e,components:t})=>E.jsx(E.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return E.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)?E.jsx(Uc,{items:h.children,components:t}):h.children}))}}const u=n.children?E.jsx(Uc,{items:n.children,components:t}):null;return E.jsx(Z.Fragment,{children:E.jsx(o,{data:a,children:u})},i)})}),Tp=e=>E.jsx(Uc,{...e}),Yv=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return E.jsxs(V.Typography.Text,{...o,children:[i,t]})},Xv=({data:e,children:t})=>{const{id:n,...i}=e;return E.jsx(V.Card,{...i,children:t})},Qv=({data:e,children:t})=>{const{id:n,...i}=e;return E.jsx(V.Flex,{...i,children:t})},Zv=({data:e,children:t})=>{const{id:n,...i}=e;return E.jsx(V.Row,{...i,children:t})},eE=({data:e,children:t})=>{const{id:n,...i}=e;return E.jsx(V.Col,{...i,children:t})},tE=({data:e,children:t})=>{const{id:n,...i}=e;return E.jsx(V.Tabs,{...i,children:t})},nE=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return E.jsxs(V.Button,{...o,children:[e.text,t]})},Ip=()=>{const e=Z.createContext(null);return{Provider:({children:i,value:o})=>{const a=Z.useMemo(()=>o,Object.values(o));return E.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}}},Op=Ip(),rE=Op.Provider,to=Op.useTypedContext,iE=({data:e})=>{const n=to().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=St({template:e.text,replaceValues:n});return E.jsx("span",{children:i})},Fp=Z.createContext(void 0),sE=({urls:e,children:t})=>{const n=En.useQueries({queries:e.map((f,h)=>({queryKey:["multi",h,f],queryFn:async()=>(await $e.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 E.jsx(Fp.Provider,{value:l,children:t})},xa=()=>{const e=Z.useContext(Fp);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},oE={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return E.jsx("div",{...i,children:t})},antdText:Yv,antdCard:Xv,antdFlex:Qv,antdRow:Zv,antdCol:eE,antdTabs:tE,antdButton:nE,partsOfUrl:iE,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=xa(),a=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const h=parseInt(l,10),p=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(v=>v[1]),g=qr.get(t[`req${h}`],p);return g!=null?String(g):""}catch{return u}}):"",[e?.text,t]);return n?E.jsx("div",{children:"Loading..."}):i?E.jsxs("div",{children:[E.jsx("h4",{children:"Errors:"}),E.jsx("ul",{children:o.map((u,l)=>u&&E.jsx("li",{children:u.message},l))})]}):E.jsx("span",{children:a})},parsedText:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=xa(),a=to(),u=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(h,p,g)=>{try{const v=parseInt(p,10),C=Array.from(g.matchAll(/['"]([^'"]+)['"]/g)).map(x=>x[1]),S=qr.get(t[`req${v}`],C);return S!=null?String(S):""}catch{return h}}):"",[e?.text,t]);if(n)return E.jsx("div",{children:"Loading..."});if(i)return E.jsxs("div",{children:[E.jsx("h4",{children:"Errors:"}),E.jsx("ul",{children:o.map((h,p)=>h&&E.jsx("li",{children:h.message},p))})]});const l=a.partsOfUrl.reduce((h,p,g)=>(h[g.toString()]=p,h),{}),f=St({template:u,replaceValues:l});return E.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}=xa(),g=to().partsOfUrl.reduce((x,w,T)=>(x[T.toString()]=w,x),{}),v=St({template:i,replaceValues:g}),C=St({template:o,replaceValues:g}),S=a.map(x=>{const w=x.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(j,L,_)=>{try{const O=parseInt(L,10),F=Array.from(_.matchAll(/['"]([^'"]+)['"]/g)).map(W=>W[1]),B=qr.get(l[`req${O}`],F);return B!=null?String(B):""}catch{return j}});return St({template:w,replaceValues:g})});return f?E.jsxs("div",{children:[E.jsx("h4",{children:"Errors:"}),E.jsx("ul",{children:h.map((x,w)=>x&&E.jsx("li",{children:x.message},w))})]}):E.jsx(kp,{clusterName:v,namespace:C,accessGroups:S,...u,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=to().partsOfUrl.reduce((p,g,v)=>(p[v.toString()]=g,p),{}),f=St({template:i,replaceValues:l}),h=St({template:o,replaceValues:l});return E.jsx(_p,{clusterName:f,namespace:h,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return E.jsx(Ih,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return E.jsx(Ar,{...i})},StatusText:({data:e,children:t})=>{const{id:n,requestIndex:i,jsonPath:o,criteria:a,valueToCompare:u,successText:l,errorText:f,...h}=e,{data:p,isLoading:g,isError:v,errors:C}=xa();let S;try{[S]=Kh.query(p[`req${i}`],`$${o}`)}catch(w){return E.jsxs("div",{children:[E.jsx("h4",{children:"Errors:"}),E.jsx("ul",{children:JSON.stringify(w)})]})}const x=a==="equals"?u===S:u!==S;return g?E.jsx("div",{children:"Loading..."}):v?E.jsxs("div",{children:[E.jsx("h4",{children:"Errors:"}),E.jsx("ul",{children:C.map((w,T)=>w&&E.jsx("li",{children:w.message},T))})]}):E.jsxs(V.Typography.Text,{type:x?"success":"danger",...h,children:[x?l:f,t]})},SidebarProvider:({data:e,children:t})=>{const{id:n,...i}=e,a=to().partsOfUrl.reduce((u,l,f)=>(u[f.toString()]=l,u),{});return E.jsx(Ph,{replaceValues:a,...i})}},Bp=({urls:e,locationPathname:t})=>{const n=t.split("/").reduce((i,o,a)=>(i[a.toString()]=o,i),{});return e.map(i=>St({template:i,replaceValues:n}))},aE=e=>{const t=vr.useLocation(),{urlsToFetch:n}=e,i=Bp({urls:n,locationPathname:t.pathname});return E.jsx(rE,{value:{partsOfUrl:t.pathname.split("/")},children:E.jsx(sE,{urls:i,children:E.jsx(Tp,{...e})})})},uE=e=>typeof e=="object"&&"value"in e&&"highlight"in e,cE=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("."),p=f.slice(0,-2).reverse();let g=t[h]=t[h]||{};for(const v of p)g[v]=g[v]||{},g=g[v];g[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(uE(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}))},lE=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),fE=async({namespace:e,data:t,apiGroup:n,apiVersion:i,clusterName:o})=>{const a={namespace:e,data:t,apiGroup:n,apiVersion:i,clusterName:o};return(await $e.post("/openapi-bff/scopes/filterScopes/filterIfApiNamespaceScoped",a)).data},Dp=async({namespace:e,data:t,clusterName:n})=>{const i={namespace:e,data:t,clusterName:n};return(await $e.post("/openapi-bff/scopes/filterScopes/filterIfBuiltInNamespaceScoped",i)).data},hE=async({clusterName: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,p)=>h.name.localeCompare(p.name)),l=t?.groups.sort((h,p)=>h.name.localeCompare(p.name)),f=await Dp({namespace:i,data:n,clusterName:e});return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},dE=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:p,apiExtensionVersion:g,crdName:v,pathname:C})=>e.map(({pathToMatch:x,pathToNavigate:w,keysToParse:T})=>({pathToMatch:x?St({template:x,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:p,apiExtensionVersion:g,crdName:v}}):void 0,pathToNavigate:w?St({template:w,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:h,entryName:p,apiExtensionVersion:g,crdName:v}}):void 0,keysToParse:T})).find(({pathToMatch:x})=>x?vr.matchPath(x,C):!1),Rp=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"))),Lp=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"))),Pp=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"))),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.additionalPrinterColumnsColWidths)&&e.spec.additionalPrinterColumnsColWidths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),pE=({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=Rp(n)?n.spec.additionalPrinterColumns:void 0,o=Lp(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=Pp(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=jp(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},Np=async()=>$e.get("/clusterlist"),$p=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return $e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},Mp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>$e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Up=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return $e.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Vp=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>$e.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),qp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>$e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),Wp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>$e.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Kp=async({clusterName:e})=>$e.get(`/api/clusters/${e}/k8s/apis/`),Hp=async({clusterName:e,apiGroup:t,apiVersion:n})=>$e.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),zp=async({clusterName:e})=>$e.get(`/api/clusters/${e}/k8s/api/v1`),Gp=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>$e.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),gE=async({clusterName:e})=>$e.get(`/openapi-bff/swagger/swagger/${e}`),yE=async({typeName:e,apiGroup:t,apiVersion:n,clusterName:i})=>{const o={typeName:e,apiGroup:t,apiVersion:n,clusterName:i},{data:a}=await $e.post("/openapi-bff/scopes/checkScopes/checkIfApiNamespaceScoped",o);return a},mE=async({typeName:e,clusterName:t})=>{const n={typeName:e,clusterName:t},{data:i}=await $e.post("/openapi-bff/scopes/checkScopes/checkIfBuiltInNamespaceScoped",n);return i},bE=({refetchInterval:e})=>En.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Np()).data,refetchInterval:e!==void 0?e:5e3}),wE=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>En.useQuery({queryKey:["useApiResources",e,t,n,i,o,a],queryFn:async()=>{const l=await $p({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}),vE=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>En.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Mp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),EE=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>En.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await Up({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}),xE=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>En.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Vp({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),SE=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>En.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>{const u=await qp({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}),AE=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>En.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Wp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),CE=({clusterName:e})=>En.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>{const t=await Kp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),_E=({clusterName:e,apiGroup:t,apiVersion:n})=>En.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await Hp({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),kE=({clusterName:e})=>En.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await zp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),TE=({clusterName:e,apiExtensionVersion:t,crdName:n})=>En.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await Gp({clusterName:e,apiExtensionVersion:t,crdName:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3});ue.BackToDefaultIcon=Ch,ue.BlackholeForm=Ap,ue.BlackholeFormDataProvider=Cv,ue.ContentCard=Ih,ue.DeleteIcon=Eh,ue.DeleteModal=Yu,ue.DeleteModalMany=Wm,ue.DownIcon=Ah,ue.DynamicComponents=oE,ue.DynamicRenderer=Tp,ue.DynamicRendererWithProviders=aE,ue.EditIcon=xh,ue.EnrichedTable=qh,ue.EnrichedTableProvider=r2,ue.LockedIcon=kh,ue.ManageableBreadcrumbs=Bh,ue.ManageableBreadcrumbsWithDataProvider=Gm,ue.ManageableSidebar=Lh,ue.ManageableSidebarWithDataProvider=Ph,ue.MarketPlace=_p,ue.MarketplaceCard=Mc,ue.MinusIcon=sn,ue.PlusIcon=Xu,ue.ProjectInfoCard=kp,ue.Spacer=Ar,ue.SuccessIcon=_h,ue.TreeWithSearch=xy,ue.UnlockedIcon=Th,ue.UpIcon=Sh,ue.checkIfApiInstanceNamespaceScoped=yE,ue.checkIfBuiltInInstanceNamespaceScoped=mE,ue.checkPermission=Yh,ue.createContextFactory=Ip,ue.createNewEntry=Jo,ue.deleteEntry=Ju,ue.feedbackIcons=Vr,ue.filterIfApiInstanceNamespaceScoped=fE,ue.filterIfBuiltInInstanceNamespaceScoped=Dp,ue.filterSelectOptions=tc,ue.floorToDecimal=Ls,ue.getAllPathsFromObj=sc,ue.getApiResourceSingle=Mp,ue.getApiResourceTypes=Kp,ue.getApiResourceTypesByApiGroup=Hp,ue.getApiResources=$p,ue.getBuiltinResourceSingle=Vp,ue.getBuiltinResourceTypes=zp,ue.getBuiltinResources=Up,ue.getBuiltinTreeData=lE,ue.getClusterList=Np,ue.getCrdData=Gp,ue.getCrdResourceSingle=Wp,ue.getCrdResources=qp,ue.getDirectUnknownResource=Oh,ue.getEnrichedColumns=Uh,ue.getEnrichedColumnsWithControls=Vh,ue.getGroupsByCategory=hE,ue.getObjectFormItemsDraft=Ea,ue.getPrefixSubarrays=Qh,ue.getStringByName=Tt,ue.getSwagger=gE,ue.groupsToTreeData=cE,ue.isFlatObject=Mh,ue.isWithAdditionalPrinterColumns=Rp,ue.isWithAdditionalPrinterColumnsColWidths=jp,ue.isWithAdditionalPrinterColumnsTrimLengths=Pp,ue.isWithAdditionalPrinterColumnsUndefinedValues=Lp,ue.normalizeValuesForQuotasToNumber=Xh,ue.parseCustomOverrides=pE,ue.parseQuotaValue=A2,ue.parseQuotaValueCpu=nc,ue.parseQuotaValueMemoryAndStorage=rc,ue.prepareDataForEnrichedColumns=Hh,ue.prepareDataForManageableBreadcrumbs=Fh,ue.prepareDataForManageableSidebar=Rh,ue.prepareTableMappings=dE,ue.prepareTemplate=St,ue.prepareUrlsToFetchForDynamicRenderer=Bp,ue.updateEntry=Yo,ue.useApiResourceSingle=vE,ue.useApiResourceTypesByGroup=_E,ue.useApiResources=wE,ue.useApisResourceTypes=CE,ue.useBuiltinResourceSingle=xE,ue.useBuiltinResourceTypes=kE,ue.useBuiltinResources=EE,ue.useClusterList=bE,ue.useCrdData=TE,ue.useCrdResourceSingle=AE,ue.useCrdResources=SE,ue.useDirectUnknownResource=tn,ue.usePermissions=Wr,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
569
569
  //# sourceMappingURL=openapi-k8s-toolkit.umd.js.map