@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.30 → 0.0.1-alpha.31

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 (46) hide show
  1. package/dist/openapi-k8s-toolkit.es.js +8349 -8099
  2. package/dist/openapi-k8s-toolkit.es.js.map +1 -1
  3. package/dist/openapi-k8s-toolkit.umd.js +184 -192
  4. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  5. package/dist/types/components/atoms/Icons/BackToDefaultIcon.d.ts +2 -0
  6. package/dist/types/components/atoms/Icons/CustomFeedBackIcons.d.ts +6 -0
  7. package/dist/types/components/atoms/Icons/DownIcon.d.ts +2 -0
  8. package/dist/types/components/atoms/Icons/LockedIcon.d.ts +2 -0
  9. package/dist/types/components/atoms/Icons/MinusIcon.d.ts +2 -0
  10. package/dist/types/components/atoms/Icons/PlusIcon.d.ts +2 -0
  11. package/dist/types/components/atoms/Icons/SuccessIcon.d.ts +2 -0
  12. package/dist/types/components/atoms/Icons/UnlockedIcon.d.ts +2 -0
  13. package/dist/types/components/atoms/Icons/UpIcon.d.ts +2 -0
  14. package/dist/types/components/atoms/Icons/index.d.ts +9 -0
  15. package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/CustomCollapse.d.ts +4 -0
  16. package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/styled.d.ts +1 -0
  17. package/dist/types/components/molecules/BlackholeForm/atoms/CustomSizeTitle/CustomSizeTitle.d.ts +6 -0
  18. package/dist/types/components/molecules/BlackholeForm/atoms/CustomSizeTitle/index.d.ts +1 -0
  19. package/dist/types/components/molecules/BlackholeForm/atoms/index.d.ts +1 -1
  20. package/dist/types/components/molecules/BlackholeForm/molecules/FormArrayHeader/FormArrayHeader.d.ts +16 -0
  21. package/dist/types/components/molecules/BlackholeForm/molecules/FormArrayHeader/index.d.ts +1 -0
  22. package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +1 -0
  23. package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +1 -0
  24. package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +1 -0
  25. package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +1 -0
  26. package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.d.ts +35 -0
  27. package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/index.d.ts +1 -0
  28. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/FormRangeInput.d.ts +1 -0
  29. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/RangeInput.d.ts +1 -0
  30. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +1 -0
  31. package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +1 -0
  32. package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/styled.d.ts +5 -273
  33. package/dist/types/components/molecules/BlackholeForm/molecules/index.d.ts +2 -0
  34. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +1 -0
  35. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/styled.d.ts +7 -546
  36. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +16 -8
  37. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/BlackholeFormDataProvider.d.ts +1 -0
  38. package/dist/types/components/organisms/DynamicComponents/molecules/StatusText/StatusText.d.ts +6 -0
  39. package/dist/types/components/organisms/DynamicComponents/molecules/StatusText/index.d.ts +1 -0
  40. package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +1 -0
  41. package/dist/types/components/organisms/DynamicComponents/types.d.ts +9 -0
  42. package/package.json +1 -1
  43. package/dist/types/components/molecules/BlackholeForm/atoms/CursorPointerText/CursorPointerText.d.ts +0 -7
  44. package/dist/types/components/molecules/BlackholeForm/atoms/CursorPointerText/index.d.ts +0 -1
  45. package/dist/types/components/molecules/BlackholeForm/atoms/CursorPointerText/styled.d.ts +0 -276
  46. package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/styled.d.ts +0 -277
@@ -1,6 +1,6 @@
1
- (function(ue,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("react"),require("antd"),require("@tanstack/react-query"),require("react-router-dom"),require("@ant-design/icons")):typeof define=="function"&&define.amd?define(["exports","react","antd","@tanstack/react-query","react-router-dom","@ant-design/icons"],Z):(ue=typeof globalThis<"u"?globalThis:ue||self,Z(ue["@prorobotech/openapi-k8s-toolkit"]={},ue.React,ue.antd,ue.reactQuery,ue.ReactRouterDOM,ue.antdIcons))})(this,function(ue,Z,z,wn,Xn,qt){"use strict";function oy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tf={exports:{}},Wt=tf.exports={},cr,lr;function mu(){throw new Error("setTimeout has not been defined")}function bu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cr=setTimeout:cr=mu}catch{cr=mu}try{typeof clearTimeout=="function"?lr=clearTimeout:lr=bu}catch{lr=bu}})();function nf(e){if(cr===setTimeout)return setTimeout(e,0);if((cr===mu||!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 ay(e){if(lr===clearTimeout)return clearTimeout(e);if((lr===bu||!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 Ar=[],Fi=!1,ii,Co=-1;function uy(){!Fi||!ii||(Fi=!1,ii.length?Ar=ii.concat(Ar):Co=-1,Ar.length&&rf())}function rf(){if(!Fi){var e=nf(uy);Fi=!0;for(var t=Ar.length;t;){for(ii=Ar,Ar=[];++Co<t;)ii&&ii[Co].run();Co=-1,t=Ar.length}ii=null,Fi=!1,ay(e)}}Wt.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 sf(e,t)),Ar.length===1&&!Fi&&nf(rf)};function sf(e,t){this.fun=e,this.array=t}sf.prototype.run=function(){this.fun.apply(null,this.array)},Wt.title="browser",Wt.browser=!0,Wt.env={},Wt.argv=[],Wt.version="",Wt.versions={};function Sr(){}Wt.on=Sr,Wt.addListener=Sr,Wt.once=Sr,Wt.off=Sr,Wt.removeListener=Sr,Wt.removeAllListeners=Sr,Wt.emit=Sr,Wt.prependListener=Sr,Wt.prependOnceListener=Sr,Wt.listeners=function(e){return[]},Wt.binding=function(e){throw new Error("process.binding is not supported")},Wt.cwd=function(){return"/"},Wt.chdir=function(e){throw new Error("process.chdir is not supported")},Wt.umask=function(){return 0};var cy=tf.exports;const nt=oy(cy);var An=function(){return An=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},An.apply(this,arguments)};function Bi(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 ly(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var fy=/^((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)-.*))$/,hy=ly(function(e){return fy.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Qn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It="-ms-",_s="-moz-",mt="-webkit-",of="comm",_o="rule",wu="decl",dy="@import",py="@namespace",af="@keyframes",gy="@layer",uf=Math.abs,Au=String.fromCharCode,Su=Object.assign;function yy(e,t){return Zt(e,0)^45?(((t<<2^Zt(e,0))<<2^Zt(e,1))<<2^Zt(e,2))<<2^Zt(e,3):0}function cf(e){return e.trim()}function Er(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,n){return e.replace(t,n)}function ko(e,t,n){return e.indexOf(t,n)}function Zt(e,t){return e.charCodeAt(t)|0}function si(e,t,n){return e.slice(t,n)}function Zn(e){return e.length}function lf(e){return e.length}function ks(e,t){return t.push(e),e}function my(e,t){return e.map(t).join("")}function ff(e,t){return e.filter(function(n){return!Er(n,t)})}var To=1,Di=1,hf=0,Rn=0,Qt=0,Pi="";function Oo(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:To,column:Di,length:u,return:"",siblings:l}}function Lr(e,t){return Su(Oo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ri(e){for(;e.root;)e=Lr(e.root,{children:[e]});ks(e,e.siblings)}function by(){return Qt}function vy(){return Qt=Rn>0?Zt(Pi,--Rn):0,Di--,Qt===10&&(Di=1,To--),Qt}function er(){return Qt=Rn<hf?Zt(Pi,Rn++):0,Di++,Qt===10&&(Di=1,To++),Qt}function Nr(){return Zt(Pi,Rn)}function Io(){return Rn}function Fo(e,t){return si(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 wy(e){return To=Di=1,hf=Zn(Pi=e),Rn=0,[]}function Ay(e){return Pi="",e}function Eu(e){return cf(Fo(Rn-1,xu(e===91?e+2:e===40?e+1:e)))}function Sy(e){for(;(Qt=Nr())&&Qt<33;)er();return Ts(e)>2||Ts(Qt)>3?"":" "}function Ey(e,t){for(;--t&&er()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return Fo(e,Io()+(t<6&&Nr()==32&&er()==32))}function xu(e){for(;er();)switch(Qt){case e:return Rn;case 34:case 39:e!==34&&e!==39&&xu(Qt);break;case 40:e===41&&xu(e);break;case 92:er();break}return Rn}function xy(e,t){for(;er()&&e+Qt!==57;)if(e+Qt===84&&Nr()===47)break;return"/*"+Fo(t,Rn-1)+"*"+Au(e===47?e:er())}function Cy(e){for(;!Ts(Nr());)er();return Fo(e,Rn)}function _y(e){return Ay(Bo("",null,null,null,[""],e=wy(e),0,[0],e))}function Bo(e,t,n,i,o,a,u,l,f){for(var d=0,g=0,p=u,w=0,_=0,A=0,S=1,v=1,R=1,N=0,x="",O=o,F=a,k=i,D=x;v;)switch(A=N,N=er()){case 40:if(A!=108&&Zt(D,p-1)==58){ko(D+=Ye(Eu(N),"&","&\f"),"&\f",uf(d?l[d-1]:0))!=-1&&(R=-1);break}case 34:case 39:case 91:D+=Eu(N);break;case 9:case 10:case 13:case 32:D+=Sy(A);break;case 92:D+=Ey(Io()-1,7);continue;case 47:switch(Nr()){case 42:case 47:ks(ky(xy(er(),Io()),t,n,f),f),(Ts(A||1)==5||Ts(Nr()||1)==5)&&Zn(D)&&si(D,-1,void 0)!==" "&&(D+=" ");break;default:D+="/"}break;case 123*S:l[d++]=Zn(D)*R;case 125*S:case 59:case 0:switch(N){case 0:case 125:v=0;case 59+g:R==-1&&(D=Ye(D,/\f/g,"")),_>0&&(Zn(D)-p||S===0&&A===47)&&ks(_>32?pf(D+";",i,n,p-1,f):pf(Ye(D," ","")+";",i,n,p-2,f),f);break;case 59:D+=";";default:if(ks(k=df(D,t,n,d,g,o,l,x,O=[],F=[],p,a),a),N===123)if(g===0)Bo(D,t,k,k,O,a,p,l,F);else{switch(w){case 99:if(Zt(D,3)===110)break;case 108:if(Zt(D,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Bo(e,k,k,i&&ks(df(e,k,k,0,0,o,l,x,o,O=[],p,F),F),o,F,p,l,i?O:F):Bo(D,k,k,k,[""],F,0,l,F)}}d=g=_=0,S=R=1,x=D="",p=u;break;case 58:p=1+Zn(D),_=A;default:if(S<1){if(N==123)--S;else if(N==125&&S++==0&&vy()==125)continue}switch(D+=Au(N),N*S){case 38:R=g>0?1:(D+="\f",-1);break;case 44:l[d++]=(Zn(D)-1)*R,R=1;break;case 64:Nr()===45&&(D+=Eu(er())),w=Nr(),g=p=Zn(x=D+=Cy(Io())),N++;break;case 45:A===45&&Zn(D)==2&&(S=0)}}return a}function df(e,t,n,i,o,a,u,l,f,d,g,p){for(var w=o-1,_=o===0?a:[""],A=lf(_),S=0,v=0,R=0;S<i;++S)for(var N=0,x=si(e,w+1,w=uf(v=u[S])),O=e;N<A;++N)(O=cf(v>0?_[N]+" "+x:Ye(x,/&\f/g,_[N])))&&(f[R++]=O);return Oo(e,t,n,o===0?_o:l,f,d,g,p)}function ky(e,t,n,i){return Oo(e,t,n,of,Au(by()),si(e,2,-2),0,i)}function pf(e,t,n,i,o){return Oo(e,t,n,wu,si(e,0,i),si(e,i+1,-1),i,o)}function gf(e,t,n){switch(yy(e,t)){case 5103:return mt+"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 mt+e+e;case 4855:return mt+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 mt+e+_s+e+It+e+e;case 5936:switch(Zt(e,t+11)){case 114:return mt+e+It+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mt+e+It+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mt+e+It+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return mt+e+It+e+e;case 6165:return mt+e+It+"flex-"+e+e;case 5187:return mt+e+Ye(e,/(\w+).+(:[^]+)/,mt+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return mt+e+It+"flex-item-"+Ye(e,/flex-|-self/g,"")+(Er(e,/flex-|baseline/)?"":It+"grid-row-"+Ye(e,/flex-|-self/g,""))+e;case 4675:return mt+e+It+"flex-line-pack"+Ye(e,/align-content|flex-|-self/g,"")+e;case 5548:return mt+e+It+Ye(e,"shrink","negative")+e;case 5292:return mt+e+It+Ye(e,"basis","preferred-size")+e;case 6060:return mt+"box-"+Ye(e,"-grow","")+mt+e+It+Ye(e,"grow","positive")+e;case 4554:return mt+Ye(e,/([^-])(transform)/g,"$1"+mt+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,mt+"$1"),/(image-set)/,mt+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,mt+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,mt+"box-pack:$3"+It+"flex-pack:$3"),/space-between/,"justify")+mt+e+e;case 4200:if(!Er(e,/flex-|baseline/))return It+"grid-column-align"+si(e,t)+e;break;case 2592:case 3360:return It+Ye(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Er(i.props,/grid-\w+-end/)})?~ko(e+(n=n[t].value),"span",0)?e:It+Ye(e,"-start","")+e+It+"grid-row-span:"+(~ko(n,"span",0)?Er(n,/\d+/):+Er(n,/\d+/)-+Er(e,/\d+/))+";":It+Ye(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Er(i.props,/grid-\w+-start/)})?e:It+Ye(Ye(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,mt+"$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(Zn(e)-1-t>6)switch(Zt(e,t+1)){case 109:if(Zt(e,t+4)!==45)break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+mt+"$2-$3$1"+_s+(Zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ko(e,"stretch",0)?gf(Ye(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ye(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,d){return It+o+":"+a+d+(u?It+o+"-span:"+(l?f:+f-+a)+d:"")+e});case 4949:if(Zt(e,t+6)===121)return Ye(e,":",":"+mt)+e;break;case 6444:switch(Zt(e,Zt(e,14)===45?18:11)){case 120:return Ye(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+mt+(Zt(e,14)===45?"inline-":"")+"box$3$1"+mt+"$2$3$1"+It+"$2box$3")+e;case 100:return Ye(e,":",":"+It)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ye(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 Ty(e,t,n,i){switch(e.type){case gy:if(e.children.length)break;case dy:case py:case wu:return e.return=e.return||e.value;case of:return"";case af:return e.return=e.value+"{"+Do(e.children,i)+"}";case _o:if(!Zn(e.value=e.props.join(",")))return""}return Zn(n=Do(e.children,i))?e.return=e.value+"{"+n+"}":""}function Oy(e){var t=lf(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 Iy(e){return function(t){t.root||(t=t.return)&&e(t)}}function Fy(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case wu:e.return=gf(e.value,e.length,n);return;case af:return Do([Lr(e,{value:Ye(e.value,"@","@"+mt)})],i);case _o:if(e.length)return my(n=e.props,function(o){switch(Er(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ri(Lr(e,{props:[Ye(o,/:(read-\w+)/,":"+_s+"$1")]})),Ri(Lr(e,{props:[o]})),Su(e,{props:ff(n,i)});break;case"::placeholder":Ri(Lr(e,{props:[Ye(o,/:(plac\w+)/,":"+mt+"input-$1")]})),Ri(Lr(e,{props:[Ye(o,/:(plac\w+)/,":"+_s+"$1")]})),Ri(Lr(e,{props:[Ye(o,/:(plac\w+)/,It+"input-$1")]})),Ri(Lr(e,{props:[o]})),Su(e,{props:ff(n,i)});break}return""})}}var By={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},oi=typeof nt<"u"&&nt.env!==void 0&&(nt.env.REACT_APP_SC_ATTR||nt.env.SC_ATTR)||"data-styled",Cu=typeof window<"u"&&"HTMLElement"in window,Dy=!!(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"),yf=/invalid hook call/i,Po=new Set,Py=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.
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,Mt,bn,Qn){"use strict";function y1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var af={exports:{}},Vt=af.exports={},lr,fr;function vu(){throw new Error("setTimeout has not been defined")}function Au(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?lr=setTimeout:lr=vu}catch{lr=vu}try{typeof clearTimeout=="function"?fr=clearTimeout:fr=Au}catch{fr=Au}})();function uf(e){if(lr===setTimeout)return setTimeout(e,0);if((lr===vu||!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 m1(e){if(fr===clearTimeout)return clearTimeout(e);if((fr===Au||!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 Er=[],Pi=!1,ai,To=-1;function w1(){!Pi||!ai||(Pi=!1,ai.length?Er=ai.concat(Er):To=-1,Er.length&&cf())}function cf(){if(!Pi){var e=uf(w1);Pi=!0;for(var t=Er.length;t;){for(ai=Er,Er=[];++To<t;)ai&&ai[To].run();To=-1,t=Er.length}ai=null,Pi=!1,m1(e)}}Vt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Er.push(new lf(e,t)),Er.length===1&&!Pi&&uf(cf)};function lf(e,t){this.fun=e,this.array=t}lf.prototype.run=function(){this.fun.apply(null,this.array)},Vt.title="browser",Vt.browser=!0,Vt.env={},Vt.argv=[],Vt.version="",Vt.versions={};function xr(){}Vt.on=xr,Vt.addListener=xr,Vt.once=xr,Vt.off=xr,Vt.removeListener=xr,Vt.removeAllListeners=xr,Vt.emit=xr,Vt.prependListener=xr,Vt.prependOnceListener=xr,Vt.listeners=function(e){return[]},Vt.binding=function(e){throw new Error("process.binding is not supported")},Vt.cwd=function(){return"/"},Vt.chdir=function(e){throw new Error("process.chdir is not supported")},Vt.umask=function(){return 0};var b1=af.exports;const Ze=y1(b1);var vn=function(){return vn=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},vn.apply(this,arguments)};function Ri(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,a;i<o;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function v1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var A1=/^((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)-.*))$/,S1=v1(function(e){return A1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Su(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It="-ms-",Ts="-moz-",gt="-webkit-",ff="comm",Oo="rule",Eu="decl",E1="@import",x1="@namespace",hf="@keyframes",C1="@layer",df=Math.abs,xu=String.fromCharCode,Cu=Object.assign;function _1(e,t){return Qt(e,0)^45?(((t<<2^Qt(e,0))<<2^Qt(e,1))<<2^Qt(e,2))<<2^Qt(e,3):0}function pf(e){return e.trim()}function Cr(e,t){return(e=t.exec(e))?e[0]:e}function Je(e,t,n){return e.replace(t,n)}function Io(e,t,n){return e.indexOf(t,n)}function Qt(e,t){return e.charCodeAt(t)|0}function ui(e,t,n){return e.slice(t,n)}function Zn(e){return e.length}function gf(e){return e.length}function Os(e,t){return t.push(e),e}function k1(e,t){return e.map(t).join("")}function yf(e,t){return e.filter(function(n){return!Cr(n,t)})}var Fo=1,Li=1,mf=0,Ln=0,Yt=0,ji="";function Bo(e,t,n,i,o,a,u,l){return{value:e,root:t,parent:n,type:i,props:o,children:a,line:Fo,column:Li,length:u,return:"",siblings:l}}function $r(e,t){return Cu(Bo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ni(e){for(;e.root;)e=$r(e.root,{children:[e]});Os(e,e.siblings)}function T1(){return Yt}function O1(){return Yt=Ln>0?Qt(ji,--Ln):0,Li--,Yt===10&&(Li=1,Fo--),Yt}function er(){return Yt=Ln<mf?Qt(ji,Ln++):0,Li++,Yt===10&&(Li=1,Fo++),Yt}function Mr(){return Qt(ji,Ln)}function Do(){return Ln}function Po(e,t){return ui(ji,e,t)}function Is(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function I1(e){return Fo=Li=1,mf=Zn(ji=e),Ln=0,[]}function F1(e){return ji="",e}function _u(e){return pf(Po(Ln-1,ku(e===91?e+2:e===40?e+1:e)))}function B1(e){for(;(Yt=Mr())&&Yt<33;)er();return Is(e)>2||Is(Yt)>3?"":" "}function D1(e,t){for(;--t&&er()&&!(Yt<48||Yt>102||Yt>57&&Yt<65||Yt>70&&Yt<97););return Po(e,Do()+(t<6&&Mr()==32&&er()==32))}function ku(e){for(;er();)switch(Yt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&ku(Yt);break;case 40:e===41&&ku(e);break;case 92:er();break}return Ln}function P1(e,t){for(;er()&&e+Yt!==57;)if(e+Yt===84&&Mr()===47)break;return"/*"+Po(t,Ln-1)+"*"+xu(e===47?e:er())}function R1(e){for(;!Is(Mr());)er();return Po(e,Ln)}function L1(e){return F1(Ro("",null,null,null,[""],e=I1(e),0,[0],e))}function Ro(e,t,n,i,o,a,u,l,f){for(var d=0,g=0,p=u,v=0,_=0,S=0,E=1,b=1,D=1,j=0,C="",T=o,F=a,P=i,O=C;b;)switch(S=j,j=er()){case 40:if(S!=108&&Qt(O,p-1)==58){Io(O+=Je(_u(j),"&","&\f"),"&\f",df(d?l[d-1]:0))!=-1&&(D=-1);break}case 34:case 39:case 91:O+=_u(j);break;case 9:case 10:case 13:case 32:O+=B1(S);break;case 92:O+=D1(Do()-1,7);continue;case 47:switch(Mr()){case 42:case 47:Os(j1(P1(er(),Do()),t,n,f),f),(Is(S||1)==5||Is(Mr()||1)==5)&&Zn(O)&&ui(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*E:l[d++]=Zn(O)*D;case 125*E:case 59:case 0:switch(j){case 0:case 125:b=0;case 59+g:D==-1&&(O=Je(O,/\f/g,"")),_>0&&(Zn(O)-p||E===0&&S===47)&&Os(_>32?bf(O+";",i,n,p-1,f):bf(Je(O," ","")+";",i,n,p-2,f),f);break;case 59:O+=";";default:if(Os(P=wf(O,t,n,d,g,o,l,C,T=[],F=[],p,a),a),j===123)if(g===0)Ro(O,t,P,P,T,a,p,l,F);else{switch(v){case 99:if(Qt(O,3)===110)break;case 108:if(Qt(O,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Ro(e,P,P,i&&Os(wf(e,P,P,0,0,o,l,C,o,T=[],p,F),F),o,F,p,l,i?T:F):Ro(O,P,P,P,[""],F,0,l,F)}}d=g=_=0,E=D=1,C=O="",p=u;break;case 58:p=1+Zn(O),_=S;default:if(E<1){if(j==123)--E;else if(j==125&&E++==0&&O1()==125)continue}switch(O+=xu(j),j*E){case 38:D=g>0?1:(O+="\f",-1);break;case 44:l[d++]=(Zn(O)-1)*D,D=1;break;case 64:Mr()===45&&(O+=_u(er())),v=Mr(),g=p=Zn(C=O+=R1(Do())),j++;break;case 45:S===45&&Zn(O)==2&&(E=0)}}return a}function wf(e,t,n,i,o,a,u,l,f,d,g,p){for(var v=o-1,_=o===0?a:[""],S=gf(_),E=0,b=0,D=0;E<i;++E)for(var j=0,C=ui(e,v+1,v=df(b=u[E])),T=e;j<S;++j)(T=pf(b>0?_[j]+" "+C:Je(C,/&\f/g,_[j])))&&(f[D++]=T);return Bo(e,t,n,o===0?Oo:l,f,d,g,p)}function j1(e,t,n,i){return Bo(e,t,n,ff,xu(T1()),ui(e,2,-2),0,i)}function bf(e,t,n,i,o){return Bo(e,t,n,Eu,ui(e,0,i),ui(e,i+1,-1),i,o)}function vf(e,t,n){switch(_1(e,t)){case 5103:return gt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return gt+e+e;case 4855:return gt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Ts+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+Ts+e+It+e+e;case 5936:switch(Qt(e,t+11)){case 114:return gt+e+It+Je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+It+Je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+It+Je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gt+e+It+e+e;case 6165:return gt+e+It+"flex-"+e+e;case 5187:return gt+e+Je(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return gt+e+It+"flex-item-"+Je(e,/flex-|-self/g,"")+(Cr(e,/flex-|baseline/)?"":It+"grid-row-"+Je(e,/flex-|-self/g,""))+e;case 4675:return gt+e+It+"flex-line-pack"+Je(e,/align-content|flex-|-self/g,"")+e;case 5548:return gt+e+It+Je(e,"shrink","negative")+e;case 5292:return gt+e+It+Je(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+Je(e,"-grow","")+gt+e+It+Je(e,"grow","positive")+e;case 4554:return gt+Je(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return Je(Je(Je(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return Je(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return Je(Je(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+It+"flex-pack:$3"),/space-between/,"justify")+gt+e+e;case 4200:if(!Cr(e,/flex-|baseline/))return It+"grid-column-align"+ui(e,t)+e;break;case 2592:case 3360:return It+Je(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(i,o){return t=o,Cr(i.props,/grid-\w+-end/)})?~Io(e+(n=n[t].value),"span",0)?e:It+Je(e,"-start","")+e+It+"grid-row-span:"+(~Io(n,"span",0)?Cr(n,/\d+/):+Cr(n,/\d+/)-+Cr(e,/\d+/))+";":It+Je(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(i){return Cr(i.props,/grid-\w+-start/)})?e:It+Je(Je(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Je(e,/(.+)-inline(.+)/,gt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zn(e)-1-t>6)switch(Qt(e,t+1)){case 109:if(Qt(e,t+4)!==45)break;case 102:return Je(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+Ts+(Qt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Io(e,"stretch",0)?vf(Je(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Je(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,u,l,f,d){return It+o+":"+a+d+(u?It+o+"-span:"+(l?f:+f-+a)+d:"")+e});case 4949:if(Qt(e,t+6)===121)return Je(e,":",":"+gt)+e;break;case 6444:switch(Qt(e,Qt(e,14)===45?18:11)){case 120:return Je(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gt+(Qt(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+It+"$2box$3")+e;case 100:return Je(e,":",":"+It)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Je(e,"scroll-","scroll-snap-")+e}return e}function Lo(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function N1(e,t,n,i){switch(e.type){case C1:if(e.children.length)break;case E1:case x1:case Eu:return e.return=e.return||e.value;case ff:return"";case hf:return e.return=e.value+"{"+Lo(e.children,i)+"}";case Oo:if(!Zn(e.value=e.props.join(",")))return""}return Zn(n=Lo(e.children,i))?e.return=e.value+"{"+n+"}":""}function $1(e){var t=gf(e);return function(n,i,o,a){for(var u="",l=0;l<t;l++)u+=e[l](n,i,o,a)||"";return u}}function M1(e){return function(t){t.root||(t=t.return)&&e(t)}}function U1(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case Eu:e.return=vf(e.value,e.length,n);return;case hf:return Lo([$r(e,{value:Je(e.value,"@","@"+gt)})],i);case Oo:if(e.length)return k1(n=e.props,function(o){switch(Cr(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ni($r(e,{props:[Je(o,/:(read-\w+)/,":"+Ts+"$1")]})),Ni($r(e,{props:[o]})),Cu(e,{props:yf(n,i)});break;case"::placeholder":Ni($r(e,{props:[Je(o,/:(plac\w+)/,":"+gt+"input-$1")]})),Ni($r(e,{props:[Je(o,/:(plac\w+)/,":"+Ts+"$1")]})),Ni($r(e,{props:[Je(o,/:(plac\w+)/,It+"input-$1")]})),Ni($r(e,{props:[o]})),Cu(e,{props:yf(n,i)});break}return""})}}var V1={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 Ze<"u"&&Ze.env!==void 0&&(Ze.env.REACT_APP_SC_ATTR||Ze.env.SC_ATTR)||"data-styled",Tu=typeof window<"u"&&"HTMLElement"in window,q1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof Ze<"u"&&Ze.env!==void 0&&Ze.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ze.env.REACT_APP_SC_DISABLE_SPEEDY!==""?Ze.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ze.env.REACT_APP_SC_DISABLE_SPEEDY:typeof Ze<"u"&&Ze.env!==void 0&&Ze.env.SC_DISABLE_SPEEDY!==void 0&&Ze.env.SC_DISABLE_SPEEDY!==""?Ze.env.SC_DISABLE_SPEEDY!=="false"&&Ze.env.SC_DISABLE_SPEEDY:Ze.env.NODE_ENV!=="production"),Af=/invalid hook call/i,jo=new Set,W1=function(e,t){if(Ze.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];yf.test(u)?(a=!1,Po.delete(i)):o.apply(void 0,Bi([u],l,!1))},Z.useRef(),a&&!Po.has(i)&&(console.warn(i),Po.add(i))}catch(u){yf.test(u.message)&&Po.delete(i)}finally{console.error=o}}},Ro=Object.freeze([]),Li=Object.freeze({});function Ry(e,t,n){return n===void 0&&(n=Li),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"]),Ly=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ny=/(^-|-$)/g;function mf(e){return e.replace(Ly,"-").replace(Ny,"")}var $y=/(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($y,"$1-$2")}var Tu,ai=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},vf=function(e){return ai(5381,e)};function jy(e){return ku(vf(e)>>>0)}function wf(e){return nt.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Ou(e){return typeof e=="string"&&(nt.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Af=typeof Symbol=="function"&&Symbol.for,Sf=Af?Symbol.for("react.memo"):60115,My=Af?Symbol.for("react.forward_ref"):60112,Uy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vy={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},qy=((Tu={})[My]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tu[Sf]=Ef,Tu);function xf(e){return("type"in(t=e)&&t.type.$$typeof)===Sf?Ef:"$$typeof"in e?qy[e.$$typeof]:Uy;var t}var Wy=Object.defineProperty,Ky=Object.getOwnPropertyNames,Cf=Object.getOwnPropertySymbols,Hy=Object.getOwnPropertyDescriptor,zy=Object.getPrototypeOf,_f=Object.prototype;function kf(e,t,n){if(typeof t!="string"){if(_f){var i=zy(t);i&&i!==_f&&kf(e,i,n)}var o=Ky(t);Cf&&(o=o.concat(Cf(t)));for(var a=xf(e),u=xf(t),l=0;l<o.length;++l){var f=o[l];if(!(f in Vy||n&&n[f]||u&&f in u||a&&f in a)){var d=Hy(t,f);try{Wy(e,f,d)}catch{}}}}return e}function Ni(e){return typeof e=="function"}function Iu(e){return typeof e=="object"&&"styledComponentId"in e}function ui(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Tf(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function $i(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&&!$i(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($i(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 Gy=nt.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];Af.test(u)?(a=!1,jo.delete(i)):o.apply(void 0,Ri([u],l,!1))},Z.useRef(),a&&!jo.has(i)&&(console.warn(i),jo.add(i))}catch(u){Af.test(u.message)&&jo.delete(i)}finally{console.error=o}}},No=Object.freeze([]),$i=Object.freeze({});function K1(e,t,n){return n===void 0&&(n=$i),e.theme!==n.theme&&e.theme||t||n.theme}var Ou=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"]),H1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,z1=/(^-|-$)/g;function Sf(e){return e.replace(H1,"-").replace(z1,"")}var G1=/(a)(d)/gi,Ef=function(e){return String.fromCharCode(e+(e>25?39:97))};function Iu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ef(t%52)+n;return(Ef(t%52)+n).replace(G1,"$1-$2")}var Fu,li=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},xf=function(e){return li(5381,e)};function J1(e){return Iu(xf(e)>>>0)}function Cf(e){return Ze.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Bu(e){return typeof e=="string"&&(Ze.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var _f=typeof Symbol=="function"&&Symbol.for,kf=_f?Symbol.for("react.memo"):60115,Y1=_f?Symbol.for("react.forward_ref"):60112,Q1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},X1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Tf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Z1=((Fu={})[Y1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fu[kf]=Tf,Fu);function Of(e){return("type"in(t=e)&&t.type.$$typeof)===kf?Tf:"$$typeof"in e?Z1[e.$$typeof]:Q1;var t}var ey=Object.defineProperty,ty=Object.getOwnPropertyNames,If=Object.getOwnPropertySymbols,ny=Object.getOwnPropertyDescriptor,ry=Object.getPrototypeOf,Ff=Object.prototype;function Bf(e,t,n){if(typeof t!="string"){if(Ff){var i=ry(t);i&&i!==Ff&&Bf(e,i,n)}var o=ty(t);If&&(o=o.concat(If(t)));for(var a=Of(e),u=Of(t),l=0;l<o.length;++l){var f=o[l];if(!(f in X1||n&&n[f]||u&&f in u||a&&f in a)){var d=ny(t,f);try{ey(e,f,d)}catch{}}}}return e}function Mi(e){return typeof e=="function"}function Du(e){return typeof e=="object"&&"styledComponentId"in e}function fi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Df(e,t){if(e.length===0)return"";for(var n=e[0],i=1;i<e.length;i++)n+=e[i];return n}function Ui(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Pu(e,t,n){if(n===void 0&&(n=!1),!n&&!Ui(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Pu(e[i],t[i]);else if(Ui(t))for(var i in t)e[i]=Pu(e[i],t[i]);return e}function Ru(e,t){Object.defineProperty(e,"toString",{value:t})}var iy=Ze.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 Jy(){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 ji(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(Jy.apply(void 0,Bi([Gy[e]],t,!1)).trim())}var Yy=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 ji(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}(),Lo=new Map,No=new Map,Du=1,$o=function(e){if(Lo.has(e))return Lo.get(e);for(;No.has(Du);)Du++;var t=Du++;if(nt.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw ji(16,"".concat(t));return Lo.set(e,t),No.set(t,e),t},Xy=function(e,t){Lo.set(e,t),No.set(t,e)},Qy="style[".concat(oi,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),Zy=new RegExp("^".concat(oi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),em=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)},tm=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(Zy);if(f){var d=0|parseInt(f[1],10),g=f[2];d!==0&&(Xy(g,d),em(e,g,f[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(l)}}};function nm(){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(oi,"]")));return f[f.length-1]}(n),a=o!==void 0?o.nextSibling:null;i.setAttribute(oi,"active"),i.setAttribute("data-styled-version","6.0.7");var u=nm();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},rm=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 ji(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}(),im=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}(),sm=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}(),If=Cu,om={isServer:!Cu,useCSSOMInjection:!Dy},Ff=function(){function e(t,n,i){t===void 0&&(t=Li),n===void 0&&(n={});var o=this;this.options=An(An({},om),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Cu&&If&&(If=!1,function(a){for(var u=document.querySelectorAll(Qy),l=0,f=u.length;l<f;l++){var d=u[l];d&&d.getAttribute(oi)!=="active"&&(tm(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(p){var w=function(R){return No.get(R)}(p);if(w===void 0)return"continue";var _=a.names.get(w),A=u.getGroup(p);if(_===void 0||A.length===0)return"continue";var S="".concat(oi,".g").concat(p,'[id="').concat(w,'"]'),v="";_!==void 0&&_.forEach(function(R){R.length>0&&(v+="".concat(R,","))}),f+="".concat(A).concat(S,'{content:"').concat(v,'"}').concat(`/*!sc*/
47
- `)},g=0;g<l;g++)d(g);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(An(An({},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 sm(o):i?new rm(o):new im(o)}(this.options),new Yy(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}(),am=/&/g,um=/^\s*\/\/.*$/gm;function Bf(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=Bf(n.children,t)),n})}function cm(e){var t,n,i,o=Li,a=o.options,u=a===void 0?Li:a,l=o.plugins,f=l===void 0?Ro:l,d=function(w,_,A){return A===n||A.startsWith(n)&&A.endsWith(n)&&A.replaceAll(n,"").length>0?".".concat(t):w},g=f.slice();g.push(function(w){w.type===_o&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(am,n).replace(i,d))}),u.prefix&&g.push(Fy),g.push(Ty);var p=function(w,_,A,S){_===void 0&&(_=""),A===void 0&&(A=""),S===void 0&&(S="&"),t=S,n=_,i=new RegExp("\\".concat(n,"\\b"),"g");var v=w.replace(um,""),R=_y(A||_?"".concat(A," ").concat(_," { ").concat(v," }"):v);u.namespace&&(R=Bf(R,u.namespace));var N=[];return Do(R,Oy(g.concat(Iy(function(x){return N.push(x)})))),N};return p.hash=f.length?f.reduce(function(w,_){return _.name||ji(15),ai(w,_.name)},5381).toString():"",p}var lm=new Ff,Pu=cm(),Df=Z.createContext({shouldForwardProp:void 0,styleSheet:lm,stylis:Pu});Df.Consumer,Z.createContext(void 0);function Pf(){return Z.useContext(Df)}var Rf=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 ji(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Pu),this.name+t.hash},e}(),fm=function(e){return e>="A"&&e<="Z"};function Lf(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;fm(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Nf=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)&&!Nf(a)&&(Array.isArray(a)&&a.isCss||Ni(a)?i.push("".concat(Lf(o),":"),a,";"):$i(a)?i.push.apply(i,Bi(Bi(["".concat(o," {")],$f(a),!1),["}"],!1)):i.push("".concat(Lf(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in By||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function ci(e,t,n,i){if(Nf(e))return[];if(Iu(e))return[".".concat(e.styledComponentId)];if(Ni(e)){if(!Ni(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 Rf||$i(o)||o===null||console.error("".concat(wf(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.")),ci(o,t,n,i)}var a;return e instanceof Rf?n?(e.inject(n,i),[e.getName(i)]):[e]:$i(e)?$f(e):Array.isArray(e)?Array.prototype.concat.apply(Ro,e.map(function(u){return ci(u,t,n,i)})):[e.toString()]}function hm(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ni(n)&&!Iu(n))return!1}return!0}var dm=vf("6.0.7"),pm=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=nt.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&hm(t),this.componentId=n,this.baseHash=ai(dm,n),this.baseStyle=i,Ff.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=ui(o,this.staticRulesId);else{var a=Tf(ci(this.rules,t,n,i)),u=ku(ai(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=ui(o,u),this.staticRulesId=u}else{for(var f=ai(this.baseHash,i.hash),d="",g=0;g<this.rules.length;g++){var p=this.rules[g];if(typeof p=="string")d+=p,nt.env.NODE_ENV!=="production"&&(f=ai(f,p));else if(p){var w=Tf(ci(p,t,n,i));f=ai(f,w),d+=w}}if(d){var _=ku(f>>>0);n.hasNameForId(this.componentId,_)||n.insertRules(this.componentId,_,i(d,".".concat(_),void 0,this.componentId)),o=ui(o,_)}}return o},e}(),jf=Z.createContext(void 0);jf.Consumer;var Ru={},Mf=new Set;function gm(e,t,n){var i=Iu(e),o=e,a=!Ou(e),u=t.attrs,l=u===void 0?Ro:u,f=t.componentId,d=f===void 0?function(O,F){var k=typeof O!="string"?"sc":mf(O);Ru[k]=(Ru[k]||0)+1;var D="".concat(k,"-").concat(jy("6.0.7"+k+Ru[k]));return F?"".concat(F,"-").concat(D):D}(t.displayName,t.parentComponentId):f,g=t.displayName,p=g===void 0?function(O){return Ou(O)?"styled.".concat(O):"Styled(".concat(wf(O),")")}(e):g,w=t.displayName&&t.componentId?"".concat(mf(t.displayName),"-").concat(t.componentId):t.componentId||d,_=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,A=t.shouldForwardProp;if(i&&o.shouldForwardProp){var S=o.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;A=function(O,F){return S(O,F)&&v(O,F)}}else A=S}var R=new pm(n,w,i?o.componentStyle:void 0);function N(O,F){return function(k,D,V){var Q=k.attrs,fe=k.componentStyle,le=k.defaultProps,ge=k.foldedComponentIds,me=k.styledComponentId,he=k.target,de=Z.useContext(jf),Ie=Pf(),Re=k.shouldForwardProp||Ie.shouldForwardProp;nt.env.NODE_ENV!=="production"&&Z.useDebugValue(me);var Ce=function(X,oe,Be){for(var Ke,we=An(An({},oe),{className:void 0,theme:Be}),Oe=0;Oe<X.length;Oe+=1){var De=Ni(Ke=X[Oe])?Ke(we):Ke;for(var Le in De)we[Le]=Le==="className"?ui(we[Le],De[Le]):Le==="style"?An(An({},we[Le]),De[Le]):De[Le]}return oe.className&&(we.className=ui(we.className,oe.className)),we}(Q,D,Ry(D,de,le)||Li),ze=Ce.as||he,Se={};for(var ye in Ce)Ce[ye]===void 0||ye[0]==="$"||ye==="as"||ye==="theme"||(ye==="forwardedAs"?Se.as=Ce.forwardedAs:Re&&!Re(ye,ze)||(Se[ye]=Ce[ye],Re||nt.env.NODE_ENV!=="development"||hy(ye)||Mf.has(ye)||!_u.has(ze)||(Mf.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 et=function(X,oe){var Be=Pf(),Ke=X.generateAndInjectStyles(oe,Be.styleSheet,Be.stylis);return nt.env.NODE_ENV!=="production"&&Z.useDebugValue(Ke),Ke}(fe,Ce);nt.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(et);var J=ui(ge,me);return et&&(J+=" "+et),Ce.className&&(J+=" "+Ce.className),Se[Ou(ze)&&!_u.has(ze)?"class":"className"]=J,Se.ref=V,Z.createElement(ze,Se)}(x,O,F)}nt.env.NODE_ENV!=="production"&&(N.displayName=p);var x=Z.forwardRef(N);return x.attrs=_,x.componentStyle=R,x.shouldForwardProp=A,nt.env.NODE_ENV!=="production"&&(x.displayName=p),x.foldedComponentIds=i?ui(o.foldedComponentIds,o.styledComponentId):"",x.styledComponentId=w,x.target=i?o.target:e,Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(O){this._foldedDefaultProps=i?function(F){for(var k=[],D=1;D<arguments.length;D++)k[D-1]=arguments[D];for(var V=0,Q=k;V<Q.length;V++)Fu(F,Q[V],!0);return F}({},o.defaultProps,O):O}}),nt.env.NODE_ENV!=="production"&&(Py(p,w),x.warnTooManyClasses=function(O,F){var k={},D=!1;return function(V){if(!D&&(k[V]=!0,Object.keys(k).length>=200)){var Q=F?' with the id of "'.concat(F,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(O).concat(Q,`.
44
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function sy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],i=[],o=1,a=e.length;o<a;o+=1)i.push(e[o]);return i.forEach(function(u){n=n.replace(/%[a-z]/,u)}),n}function Vi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ze.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(sy.apply(void 0,Ri([iy[e]],t,!1)).trim())}var oy=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,i=0;i<t;i++)n+=this.groupSizes[i];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;t>=a;)if((a<<=1)<0)throw Vi(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var u=o;u<a;u++)this.groupSizes[u]=0}for(var l=this.indexOfGroup(t+1),f=(u=0,n.length);u<f;u++)this.tag.insertRule(l,n[u])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n;this.groupSizes[t]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var i=this.groupSizes[t],o=this.indexOfGroup(t),a=o+i,u=o;u<a;u++)n+="".concat(this.tag.getRule(u)).concat(`/*!sc*/
45
+ `);return n},e}(),$o=new Map,Mo=new Map,Lu=1,Uo=function(e){if($o.has(e))return $o.get(e);for(;Mo.has(Lu);)Lu++;var t=Lu++;if(Ze.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw Vi(16,"".concat(t));return $o.set(e,t),Mo.set(t,e),t},ay=function(e,t){$o.set(e,t),Mo.set(t,e)},uy="style[".concat(ci,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),cy=new RegExp("^".concat(ci,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ly=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)},fy=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(cy);if(f){var d=0|parseInt(f[1],10),g=f[2];d!==0&&(ay(g,d),ly(e,g,f[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(l)}}};function hy(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Pf=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(l){var f=Array.from(l.querySelectorAll("style[".concat(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=hy();return u&&i.setAttribute("nonce",u),n.insertBefore(i,a),i},dy=function(){function e(t){this.element=Pf(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var i=document.styleSheets,o=0,a=i.length;o<a;o++){var u=i[o];if(u.ownerNode===n)return u}throw Vi(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),py=function(){function e(t){this.element=Pf(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var i=document.createTextNode(n);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),gy=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Rf=Tu,yy={isServer:!Tu,useCSSOMInjection:!q1},Lf=function(){function e(t,n,i){t===void 0&&(t=$i),n===void 0&&(n={});var o=this;this.options=vn(vn({},yy),t),this.gs=n,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Tu&&Rf&&(Rf=!1,function(a){for(var u=document.querySelectorAll(uy),l=0,f=u.length;l<f;l++){var d=u[l];d&&d.getAttribute(ci)!=="active"&&(fy(a,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),Ru(this,function(){return function(a){for(var u=a.getTag(),l=u.length,f="",d=function(p){var v=function(D){return Mo.get(D)}(p);if(v===void 0)return"continue";var _=a.names.get(v),S=u.getGroup(p);if(_===void 0||S.length===0)return"continue";var E="".concat(ci,".g").concat(p,'[id="').concat(v,'"]'),b="";_!==void 0&&_.forEach(function(D){D.length>0&&(b+="".concat(D,","))}),f+="".concat(S).concat(E,'{content:"').concat(b,'"}').concat(`/*!sc*/
47
+ `)},g=0;g<l;g++)d(g);return f}(o)})}return e.registerId=function(t){return Uo(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(vn(vn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var i=n.useCSSOMInjection,o=n.target;return n.isServer?new gy(o):i?new dy(o):new py(o)}(this.options),new oy(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Uo(t),this.names.has(t))this.names.get(t).add(n);else{var i=new Set;i.add(n),this.names.set(t,i)}},e.prototype.insertRules=function(t,n,i){this.registerName(t,n),this.getTag().insertRules(Uo(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Uo(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),my=/&/g,wy=/^\s*\/\/.*$/gm;function jf(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=jf(n.children,t)),n})}function by(e){var t,n,i,o=$i,a=o.options,u=a===void 0?$i:a,l=o.plugins,f=l===void 0?No:l,d=function(v,_,S){return S===n||S.startsWith(n)&&S.endsWith(n)&&S.replaceAll(n,"").length>0?".".concat(t):v},g=f.slice();g.push(function(v){v.type===Oo&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(my,n).replace(i,d))}),u.prefix&&g.push(U1),g.push(N1);var p=function(v,_,S,E){_===void 0&&(_=""),S===void 0&&(S=""),E===void 0&&(E="&"),t=E,n=_,i=new RegExp("\\".concat(n,"\\b"),"g");var b=v.replace(wy,""),D=L1(S||_?"".concat(S," ").concat(_," { ").concat(b," }"):b);u.namespace&&(D=jf(D,u.namespace));var j=[];return Lo(D,$1(g.concat(M1(function(C){return j.push(C)})))),j};return p.hash=f.length?f.reduce(function(v,_){return _.name||Vi(15),li(v,_.name)},5381).toString():"",p}var vy=new Lf,ju=by(),Nf=Z.createContext({shouldForwardProp:void 0,styleSheet:vy,stylis:ju});Nf.Consumer,Z.createContext(void 0);function $f(){return Z.useContext(Nf)}var Mf=function(){function e(t,n){var i=this;this.inject=function(o,a){a===void 0&&(a=ju);var u=i.name+a.hash;o.hasNameForId(i.id,u)||o.insertRules(i.id,u,a(i.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Ru(this,function(){throw Vi(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ju),this.name+t.hash},e}(),Ay=function(e){return e>="A"&&e<="Z"};function Uf(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(n===1&&i==="-"&&e[0]==="-")return e;Ay(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Vf=function(e){return e==null||e===!1||e===""},qf=function(e){var t,n,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Vf(a)&&(Array.isArray(a)&&a.isCss||Mi(a)?i.push("".concat(Uf(o),":"),a,";"):Ui(a)?i.push.apply(i,Ri(Ri(["".concat(o," {")],qf(a),!1),["}"],!1)):i.push("".concat(Uf(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in V1||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function hi(e,t,n,i){if(Vf(e))return[];if(Du(e))return[".".concat(e.styledComponentId)];if(Mi(e)){if(!Mi(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return Ze.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Mf||Ui(o)||o===null||console.error("".concat(Cf(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),hi(o,t,n,i)}var a;return e instanceof Mf?n?(e.inject(n,i),[e.getName(i)]):[e]:Ui(e)?qf(e):Array.isArray(e)?Array.prototype.concat.apply(No,e.map(function(u){return hi(u,t,n,i)})):[e.toString()]}function Sy(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Mi(n)&&!Du(n))return!1}return!0}var Ey=xf("6.0.7"),xy=function(){function e(t,n,i){this.rules=t,this.staticRulesId="",this.isStatic=Ze.env.NODE_ENV==="production"&&(i===void 0||i.isStatic)&&Sy(t),this.componentId=n,this.baseHash=li(Ey,n),this.baseStyle=i,Lf.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=fi(o,this.staticRulesId);else{var a=Df(hi(this.rules,t,n,i)),u=Iu(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="",g=0;g<this.rules.length;g++){var p=this.rules[g];if(typeof p=="string")d+=p,Ze.env.NODE_ENV!=="production"&&(f=li(f,p));else if(p){var v=Df(hi(p,t,n,i));f=li(f,v),d+=v}}if(d){var _=Iu(f>>>0);n.hasNameForId(this.componentId,_)||n.insertRules(this.componentId,_,i(d,".".concat(_),void 0,this.componentId)),o=fi(o,_)}}return o},e}(),Wf=Z.createContext(void 0);Wf.Consumer;var Nu={},Kf=new Set;function Cy(e,t,n){var i=Du(e),o=e,a=!Bu(e),u=t.attrs,l=u===void 0?No:u,f=t.componentId,d=f===void 0?function(T,F){var P=typeof T!="string"?"sc":Sf(T);Nu[P]=(Nu[P]||0)+1;var O="".concat(P,"-").concat(J1("6.0.7"+P+Nu[P]));return F?"".concat(F,"-").concat(O):O}(t.displayName,t.parentComponentId):f,g=t.displayName,p=g===void 0?function(T){return Bu(T)?"styled.".concat(T):"Styled(".concat(Cf(T),")")}(e):g,v=t.displayName&&t.componentId?"".concat(Sf(t.displayName),"-").concat(t.componentId):t.componentId||d,_=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,S=t.shouldForwardProp;if(i&&o.shouldForwardProp){var E=o.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;S=function(T,F){return E(T,F)&&b(T,F)}}else S=E}var D=new xy(n,v,i?o.componentStyle:void 0);function j(T,F){return function(P,O,W){var Y=P.attrs,ce=P.componentStyle,le=P.defaultProps,ge=P.foldedComponentIds,ye=P.styledComponentId,Ce=P.target,pe=Z.useContext(Wf),Re=$f(),Se=P.shouldForwardProp||Re.shouldForwardProp;Ze.env.NODE_ENV!=="production"&&Z.useDebugValue(ye);var Ee=function(X,ae,Be){for(var We,_e=vn(vn({},ae),{className:void 0,theme:Be}),De=0;De<X.length;De+=1){var Oe=Mi(We=X[De])?We(_e):We;for(var Le in Oe)_e[Le]=Le==="className"?fi(_e[Le],Oe[Le]):Le==="style"?vn(vn({},_e[Le]),Oe[Le]):Oe[Le]}return ae.className&&(_e.className=fi(_e.className,ae.className)),_e}(Y,O,K1(O,pe,le)||$i),He=Ee.as||Ce,Ae={};for(var me in Ee)Ee[me]===void 0||me[0]==="$"||me==="as"||me==="theme"||(me==="forwardedAs"?Ae.as=Ee.forwardedAs:Se&&!Se(me,He)||(Ae[me]=Ee[me],Se||Ze.env.NODE_ENV!=="development"||S1(me)||Kf.has(me)||!Ou.has(He)||(Kf.add(me),console.warn('styled-components: it looks like an unknown prop "'.concat(me,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Me=function(X,ae){var Be=$f(),We=X.generateAndInjectStyles(ae,Be.styleSheet,Be.stylis);return Ze.env.NODE_ENV!=="production"&&Z.useDebugValue(We),We}(ce,Ee);Ze.env.NODE_ENV!=="production"&&P.warnTooManyClasses&&P.warnTooManyClasses(Me);var J=fi(ge,ye);return Me&&(J+=" "+Me),Ee.className&&(J+=" "+Ee.className),Ae[Bu(He)&&!Ou.has(He)?"class":"className"]=J,Ae.ref=W,Z.createElement(He,Ae)}(C,T,F)}Ze.env.NODE_ENV!=="production"&&(j.displayName=p);var C=Z.forwardRef(j);return C.attrs=_,C.componentStyle=D,C.shouldForwardProp=S,Ze.env.NODE_ENV!=="production"&&(C.displayName=p),C.foldedComponentIds=i?fi(o.foldedComponentIds,o.styledComponentId):"",C.styledComponentId=v,C.target=i?o.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(T){this._foldedDefaultProps=i?function(F){for(var P=[],O=1;O<arguments.length;O++)P[O-1]=arguments[O];for(var W=0,Y=P;W<Y.length;W++)Pu(F,Y[W],!0);return F}({},o.defaultProps,T):T}}),Ze.env.NODE_ENV!=="production"&&(W1(p,v),C.warnTooManyClasses=function(T,F){var P={},O=!1;return function(W){if(!O&&(P[W]=!0,Object.keys(P).length>=200)){var Y=F?' with the id of "'.concat(F,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(T).concat(Y,`.
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 />`),D=!0,k={}}}}(p,w)),Bu(x,function(){return".".concat(x.styledComponentId)}),a&&kf(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function Uf(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 Vf=function(e){return Object.assign(e,{isCss:!0})};function ym(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ni(e)||$i(e)){var i=e;return Vf(ci(Uf(Ro,Bi([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?ci(o):Vf(ci(Uf(o,t)))}function Lu(e,t,n){if(n===void 0&&(n=Li),!t)throw ji(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,ym.apply(void 0,Bi([o],a,!1)))};return i.attrs=function(o){return Lu(e,t,An(An({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Lu(e,t,An(An({},n),o))},i}var qf=function(e){return Lu(gm,e)},Xe=qf;_u.forEach(function(e){Xe[e]=qf(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.
56
+ <Component />`),O=!0,P={}}}}(p,v)),Ru(C,function(){return".".concat(C.styledComponentId)}),a&&Bf(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function Hf(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var zf=function(e){return Object.assign(e,{isCss:!0})};function _y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Mi(e)||Ui(e)){var i=e;return zf(hi(Hf(No,Ri([i],t,!0))))}var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?hi(o):zf(hi(Hf(o,t)))}function $u(e,t,n){if(n===void 0&&(n=$i),!t)throw Vi(1,t);var i=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,_y.apply(void 0,Ri([o],a,!1)))};return i.attrs=function(o){return $u(e,t,vn(vn({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return $u(e,t,vn(vn({},n),o))},i}var Gf=function(e){return $u(Cy,e)},et=Gf;Ou.forEach(function(e){et[e]=Gf(e)}),Ze.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 jo="__sc-".concat(oi,"__");nt.env.NODE_ENV!=="production"&&nt.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[jo]||(window[jo]=0),window[jo]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
58
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Vo="__sc-".concat(ci,"__");Ze.env.NODE_ENV!=="production"&&Ze.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Vo]||(window[Vo]=0),window[Vo]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
59
59
 
60
- See https://s-c.sh/2BAXzed for more info.`),window[jo]+=1);const fr=Xe.div`
60
+ See https://s-c.sh/2BAXzed for more info.`),window[Vo]+=1);const hr=et.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:{}},Os={};/**
67
+ `;var Mu={exports:{}},Fs={};/**
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[jo]+=1);const fr=Xe.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 Wf;function mm(){if(Wf)return Os;Wf=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,f,d){var g,p={},w=null,_=null;d!==void 0&&(w=""+d),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(_=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(p[g]=f[g]);if(l&&l.defaultProps)for(g in f=l.defaultProps,f)p[g]===void 0&&(p[g]=f[g]);return{$$typeof:t,type:l,key:w,ref:_,props:p,_owner:o.current}}return Os.Fragment=n,Os.jsx=u,Os.jsxs=u,Os}var Is={},Kf;function bm(){return Kf||(Kf=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"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),A=Symbol.iterator,S="@@iterator";function v(M){if(M===null||typeof M!="object")return null;var ce=A&&M[A]||M[S];return typeof ce=="function"?ce:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(M){{for(var ce=arguments.length,be=new Array(ce>1?ce-1:0),Te=1;Te<ce;Te++)be[Te-1]=arguments[Te];x("error",M,be)}}function x(M,ce,be){{var Te=R.ReactDebugCurrentFrame,ht=Te.getStackAddendum();ht!==""&&(ce+="%s",be=be.concat([ht]));var dt=be.map(function(rt){return String(rt)});dt.unshift("Warning: "+ce),Function.prototype.apply.call(console[M],console,dt)}}var O=!1,F=!1,k=!1,D=!1,V=!1,Q;Q=Symbol.for("react.module.reference");function fe(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||V||M===o||M===d||M===g||D||M===_||O||F||k||typeof M=="object"&&M!==null&&(M.$$typeof===w||M.$$typeof===p||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===Q||M.getModuleId!==void 0))}function le(M,ce,be){var Te=M.displayName;if(Te)return Te;var ht=ce.displayName||ce.name||"";return ht!==""?be+"("+ht+")":be}function ge(M){return M.displayName||"Context"}function me(M){if(M==null)return null;if(typeof M.tag=="number"&&N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case g:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var ce=M;return ge(ce)+".Consumer";case u:var be=M;return ge(be._context)+".Provider";case f:return le(M,M.render,"ForwardRef");case p:var Te=M.displayName||null;return Te!==null?Te:me(M.type)||"Memo";case w:{var ht=M,dt=ht._payload,rt=ht._init;try{return me(rt(dt))}catch{return null}}}return null}var he=Object.assign,de=0,Ie,Re,Ce,ze,Se,ye,et;function J(){}J.__reactDisabledLog=!0;function X(){{if(de===0){Ie=console.log,Re=console.info,Ce=console.warn,ze=console.error,Se=console.group,ye=console.groupCollapsed,et=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:he({},M,{value:Ie}),info:he({},M,{value:Re}),warn:he({},M,{value:Ce}),error:he({},M,{value:ze}),group:he({},M,{value:Se}),groupCollapsed:he({},M,{value:ye}),groupEnd:he({},M,{value:et})})}de<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Be=R.ReactCurrentDispatcher,Ke;function we(M,ce,be){{if(Ke===void 0)try{throw Error()}catch(ht){var Te=ht.stack.trim().match(/\n( *(at )?)/);Ke=Te&&Te[1]||""}return`
76
- `+Ke+M}}var Oe=!1,De;{var Le=typeof WeakMap=="function"?WeakMap:Map;De=new Le}function Tt(M,ce){if(!M||Oe)return"";{var be=De.get(M);if(be!==void 0)return be}var Te;Oe=!0;var ht=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var dt;dt=Be.current,Be.current=null,X();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(Gt){Te=Gt}Reflect.construct(M,[],rt)}else{try{rt.call()}catch(Gt){Te=Gt}M.call(rt.prototype)}}else{try{throw Error()}catch(Gt){Te=Gt}M()}}catch(Gt){if(Gt&&Te&&typeof Gt.stack=="string"){for(var Qe=Gt.stack.split(`
77
- `),en=Te.stack.split(`
78
- `),Dt=Qe.length-1,Rt=en.length-1;Dt>=1&&Rt>=0&&Qe[Dt]!==en[Rt];)Rt--;for(;Dt>=1&&Rt>=0;Dt--,Rt--)if(Qe[Dt]!==en[Rt]){if(Dt!==1||Rt!==1)do if(Dt--,Rt--,Rt<0||Qe[Dt]!==en[Rt]){var fn=`
79
- `+Qe[Dt].replace(" at new "," at ");return M.displayName&&fn.includes("<anonymous>")&&(fn=fn.replace("<anonymous>",M.displayName)),typeof M=="function"&&De.set(M,fn),fn}while(Dt>=1&&Rt>=0);break}}}finally{Oe=!1,Be.current=dt,oe(),Error.prepareStackTrace=ht}var kn=M?M.displayName||M.name:"",ir=kn?we(kn):"";return typeof M=="function"&&De.set(M,ir),ir}function on(M,ce,be){return Tt(M,!1)}function Nt(M){var ce=M.prototype;return!!(ce&&ce.isReactComponent)}function $t(M,ce,be){if(M==null)return"";if(typeof M=="function")return Tt(M,Nt(M));if(typeof M=="string")return we(M);switch(M){case d:return we("Suspense");case g:return we("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return on(M.render);case p:return $t(M.type,ce,be);case w:{var Te=M,ht=Te._payload,dt=Te._init;try{return $t(dt(ht),ce,be)}catch{}}}return""}var jt=Object.prototype.hasOwnProperty,St={},ke=R.ReactDebugCurrentFrame;function Ve(M){if(M){var ce=M._owner,be=$t(M.type,M._source,ce?ce.type:null);ke.setExtraStackFrame(be)}else ke.setExtraStackFrame(null)}function je(M,ce,be,Te,ht){{var dt=Function.call.bind(jt);for(var rt in M)if(dt(M,rt)){var Qe=void 0;try{if(typeof M[rt]!="function"){var en=Error((Te||"React class")+": "+be+" 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 en.name="Invariant Violation",en}Qe=M[rt](ce,rt,Te,be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Dt){Qe=Dt}Qe&&!(Qe instanceof Error)&&(Ve(ht),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).",Te||"React class",be,rt,typeof Qe),Ve(null)),Qe instanceof Error&&!(Qe.message in St)&&(St[Qe.message]=!0,Ve(ht),N("Failed %s type: %s",be,Qe.message),Ve(null))}}}var ct=Array.isArray;function Ae(M){return ct(M)}function Mt(M){{var ce=typeof Symbol=="function"&&Symbol.toStringTag,be=ce&&M[Symbol.toStringTag]||M.constructor.name||"Object";return be}}function lt(M){try{return Me(M),!1}catch{return!0}}function Me(M){return""+M}function vt(M){if(lt(M))return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(M)),Me(M)}var xe=R.ReactCurrentOwner,Fe={key:!0,ref:!0,__self:!0,__source:!0},Bt,T;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 L(M,ce){typeof M.ref=="string"&&xe.current}function q(M,ce){{var be=function(){Bt||(Bt=!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))};be.isReactWarning=!0,Object.defineProperty(M,"key",{get:be,configurable:!0})}}function G(M,ce){{var be=function(){T||(T=!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))};be.isReactWarning=!0,Object.defineProperty(M,"ref",{get:be,configurable:!0})}}var ee=function(M,ce,be,Te,ht,dt,rt){var Qe={$$typeof:t,type:M,key:ce,ref:be,props:rt,_owner:dt};return Qe._store={},Object.defineProperty(Qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(Qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ht}),Object.freeze&&(Object.freeze(Qe.props),Object.freeze(Qe)),Qe};function Ue(M,ce,be,Te,ht){{var dt,rt={},Qe=null,en=null;be!==void 0&&(vt(be),Qe=""+be),b(ce)&&(vt(ce.key),Qe=""+ce.key),y(ce)&&(en=ce.ref,L(ce,ht));for(dt in ce)jt.call(ce,dt)&&!Fe.hasOwnProperty(dt)&&(rt[dt]=ce[dt]);if(M&&M.defaultProps){var Dt=M.defaultProps;for(dt in Dt)rt[dt]===void 0&&(rt[dt]=Dt[dt])}if(Qe||en){var Rt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Qe&&q(rt,Rt),en&&G(rt,Rt)}return ee(M,Qe,en,ht,Te,xe.current,rt)}}var yt=R.ReactCurrentOwner,ft=R.ReactDebugCurrentFrame;function gt(M){if(M){var ce=M._owner,be=$t(M.type,M._source,ce?ce.type:null);ft.setExtraStackFrame(be)}else ft.setExtraStackFrame(null)}var ot;ot=!1;function Kr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function vi(){{if(yt.current){var M=me(yt.current.type);if(M)return`
75
+ */var Jf;function ky(){if(Jf)return Fs;Jf=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,f,d){var g,p={},v=null,_=null;d!==void 0&&(v=""+d),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(_=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(p[g]=f[g]);if(l&&l.defaultProps)for(g in f=l.defaultProps,f)p[g]===void 0&&(p[g]=f[g]);return{$$typeof:t,type:l,key:v,ref:_,props:p,_owner:o.current}}return Fs.Fragment=n,Fs.jsx=u,Fs.jsxs=u,Fs}var Bs={},Yf;function Ty(){return Yf||(Yf=1,Ze.env.NODE_ENV!=="production"&&function(){var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),S=Symbol.iterator,E="@@iterator";function b(M){if(M===null||typeof M!="object")return null;var fe=S&&M[S]||M[E];return typeof fe=="function"?fe:null}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(M){{for(var fe=arguments.length,be=new Array(fe>1?fe-1:0),Fe=1;Fe<fe;Fe++)be[Fe-1]=arguments[Fe];C("error",M,be)}}function C(M,fe,be){{var Fe=D.ReactDebugCurrentFrame,lt=Fe.getStackAddendum();lt!==""&&(fe+="%s",be=be.concat([lt]));var ft=be.map(function(tt){return String(tt)});ft.unshift("Warning: "+fe),Function.prototype.apply.call(console[M],console,ft)}}var T=!1,F=!1,P=!1,O=!1,W=!1,Y;Y=Symbol.for("react.module.reference");function ce(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===a||W||M===o||M===d||M===g||O||M===_||T||F||P||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===p||M.$$typeof===u||M.$$typeof===l||M.$$typeof===f||M.$$typeof===Y||M.getModuleId!==void 0))}function le(M,fe,be){var Fe=M.displayName;if(Fe)return Fe;var lt=fe.displayName||fe.name||"";return lt!==""?be+"("+lt+")":be}function ge(M){return M.displayName||"Context"}function ye(M){if(M==null)return null;if(typeof M.tag=="number"&&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 d:return"Suspense";case g:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var fe=M;return ge(fe)+".Consumer";case u:var be=M;return ge(be._context)+".Provider";case f:return le(M,M.render,"ForwardRef");case p:var Fe=M.displayName||null;return Fe!==null?Fe:ye(M.type)||"Memo";case v:{var lt=M,ft=lt._payload,tt=lt._init;try{return ye(tt(ft))}catch{return null}}}return null}var Ce=Object.assign,pe=0,Re,Se,Ee,He,Ae,me,Me;function J(){}J.__reactDisabledLog=!0;function X(){{if(pe===0){Re=console.log,Se=console.info,Ee=console.warn,He=console.error,Ae=console.group,me=console.groupCollapsed,Me=console.groupEnd;var M={configurable:!0,enumerable:!0,value:J,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}pe++}}function ae(){{if(pe--,pe===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ce({},M,{value:Re}),info:Ce({},M,{value:Se}),warn:Ce({},M,{value:Ee}),error:Ce({},M,{value:He}),group:Ce({},M,{value:Ae}),groupCollapsed:Ce({},M,{value:me}),groupEnd:Ce({},M,{value:Me})})}pe<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Be=D.ReactCurrentDispatcher,We;function _e(M,fe,be){{if(We===void 0)try{throw Error()}catch(lt){var Fe=lt.stack.trim().match(/\n( *(at )?)/);We=Fe&&Fe[1]||""}return`
76
+ `+We+M}}var De=!1,Oe;{var Le=typeof WeakMap=="function"?WeakMap:Map;Oe=new Le}function Tt(M,fe){if(!M||De)return"";{var be=Oe.get(M);if(be!==void 0)return be}var Fe;De=!0;var lt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ft;ft=Be.current,Be.current=null,X();try{if(fe){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(Ht){Fe=Ht}Reflect.construct(M,[],tt)}else{try{tt.call()}catch(Ht){Fe=Ht}M.call(tt.prototype)}}else{try{throw Error()}catch(Ht){Fe=Ht}M()}}catch(Ht){if(Ht&&Fe&&typeof Ht.stack=="string"){for(var Ye=Ht.stack.split(`
77
+ `),Xt=Fe.stack.split(`
78
+ `),Bt=Ye.length-1,Pt=Xt.length-1;Bt>=1&&Pt>=0&&Ye[Bt]!==Xt[Pt];)Pt--;for(;Bt>=1&&Pt>=0;Bt--,Pt--)if(Ye[Bt]!==Xt[Pt]){if(Bt!==1||Pt!==1)do if(Bt--,Pt--,Pt<0||Ye[Bt]!==Xt[Pt]){var ln=`
79
+ `+Ye[Bt].replace(" at new "," at ");return M.displayName&&ln.includes("<anonymous>")&&(ln=ln.replace("<anonymous>",M.displayName)),typeof M=="function"&&Oe.set(M,ln),ln}while(Bt>=1&&Pt>=0);break}}}finally{De=!1,Be.current=ft,ae(),Error.prepareStackTrace=lt}var Tn=M?M.displayName||M.name:"",sr=Tn?_e(Tn):"";return typeof M=="function"&&Oe.set(M,sr),sr}function rn(M,fe,be){return Tt(M,!1)}function Lt(M){var fe=M.prototype;return!!(fe&&fe.isReactComponent)}function jt(M,fe,be){if(M==null)return"";if(typeof M=="function")return Tt(M,Lt(M));if(typeof M=="string")return _e(M);switch(M){case d:return _e("Suspense");case g:return _e("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case f:return rn(M.render);case p:return jt(M.type,fe,be);case v:{var Fe=M,lt=Fe._payload,ft=Fe._init;try{return jt(ft(lt),fe,be)}catch{}}}return""}var Nt=Object.prototype.hasOwnProperty,bt={},kn=D.ReactDebugCurrentFrame;function An(M){if(M){var fe=M._owner,be=jt(M.type,M._source,fe?fe.type:null);kn.setExtraStackFrame(be)}else kn.setExtraStackFrame(null)}function ke(M,fe,be,Fe,lt){{var ft=Function.call.bind(Nt);for(var tt in M)if(ft(M,tt)){var Ye=void 0;try{if(typeof M[tt]!="function"){var Xt=Error((Fe||"React class")+": "+be+" type `"+tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Xt.name="Invariant Violation",Xt}Ye=M[tt](fe,tt,Fe,be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Bt){Ye=Bt}Ye&&!(Ye instanceof Error)&&(An(lt),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).",Fe||"React class",be,tt,typeof Ye),An(null)),Ye instanceof Error&&!(Ye.message in bt)&&(bt[Ye.message]=!0,An(lt),j("Failed %s type: %s",be,Ye.message),An(null))}}}var Pe=Array.isArray;function he(M){return Pe(M)}function At(M){{var fe=typeof Symbol=="function"&&Symbol.toStringTag,be=fe&&M[Symbol.toStringTag]||M.constructor.name||"Object";return be}}function St(M){try{return Et(M),!1}catch{return!0}}function Et(M){return""+M}function rt(M){if(St(M))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",At(M)),Et(M)}var we=D.ReactCurrentOwner,Te={key:!0,ref:!0,__self:!0,__source:!0},ut,I;function y(M){if(Nt.call(M,"ref")){var fe=Object.getOwnPropertyDescriptor(M,"ref").get;if(fe&&fe.isReactWarning)return!1}return M.ref!==void 0}function w(M){if(Nt.call(M,"key")){var fe=Object.getOwnPropertyDescriptor(M,"key").get;if(fe&&fe.isReactWarning)return!1}return M.key!==void 0}function L(M,fe){typeof M.ref=="string"&&we.current}function V(M,fe){{var be=function(){ut||(ut=!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)",fe))};be.isReactWarning=!0,Object.defineProperty(M,"key",{get:be,configurable:!0})}}function G(M,fe){{var be=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)",fe))};be.isReactWarning=!0,Object.defineProperty(M,"ref",{get:be,configurable:!0})}}var ee=function(M,fe,be,Fe,lt,ft,tt){var Ye={$$typeof:t,type:M,key:fe,ref:be,props:tt,_owner:ft};return Ye._store={},Object.defineProperty(Ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Fe}),Object.defineProperty(Ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:lt}),Object.freeze&&(Object.freeze(Ye.props),Object.freeze(Ye)),Ye};function Ue(M,fe,be,Fe,lt){{var ft,tt={},Ye=null,Xt=null;be!==void 0&&(rt(be),Ye=""+be),w(fe)&&(rt(fe.key),Ye=""+fe.key),y(fe)&&(Xt=fe.ref,L(fe,lt));for(ft in fe)Nt.call(fe,ft)&&!Te.hasOwnProperty(ft)&&(tt[ft]=fe[ft]);if(M&&M.defaultProps){var Bt=M.defaultProps;for(ft in Bt)tt[ft]===void 0&&(tt[ft]=Bt[ft])}if(Ye||Xt){var Pt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Ye&&V(tt,Pt),Xt&&G(tt,Pt)}return ee(M,Ye,Xt,lt,Fe,we.current,tt)}}var pt=D.ReactCurrentOwner,ct=D.ReactDebugCurrentFrame;function dt(M){if(M){var fe=M._owner,be=jt(M.type,M._source,fe?fe.type:null);ct.setExtraStackFrame(be)}else ct.setExtraStackFrame(null)}var st;st=!1;function Gr(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Si(){{if(pt.current){var M=ye(pt.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=vi();if(!ce){var be=typeof M=="string"?M:M.displayName||M.name;be&&(ce=`
81
+ Check the render method of \``+M+"`."}return""}}function cs(M){return""}var ls={};function fs(M){{var fe=Si();if(!fe){var be=typeof M=="string"?M:M.displayName||M.name;be&&(fe=`
82
82
 
83
- Check the top-level render call using <`+be+">.")}return ce}}function Hr(M,ce){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var be=cs(ce);if(us[be])return;us[be]=!0;var Te="";M&&M._owner&&M._owner!==yt.current&&(Te=" It was passed a child from "+me(M._owner.type)+"."),gt(M),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',be,Te),gt(null)}}function wi(M,ce){{if(typeof M!="object")return;if(Ae(M))for(var be=0;be<M.length;be++){var Te=M[be];Kr(Te)&&Hr(Te,ce)}else if(Kr(M))M._store&&(M._store.validated=!0);else if(M){var ht=v(M);if(typeof ht=="function"&&ht!==M.entries)for(var dt=ht.call(M),rt;!(rt=dt.next()).done;)Kr(rt.value)&&Hr(rt.value,ce)}}}function no(M){{var ce=M.type;if(ce==null||typeof ce=="string")return;var be;if(typeof ce=="function")be=ce.propTypes;else if(typeof ce=="object"&&(ce.$$typeof===f||ce.$$typeof===p))be=ce.propTypes;else return;if(be){var Te=me(ce);je(be,M.props,"prop",Te,M)}else if(ce.PropTypes!==void 0&&!ot){ot=!0;var ht=me(ce);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ht||"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 ro(M){{for(var ce=Object.keys(M.props),be=0;be<ce.length;be++){var Te=ce[be];if(Te!=="children"&&Te!=="key"){gt(M),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),gt(null);break}}M.ref!==null&&(gt(M),N("Invalid attribute `ref` supplied to `React.Fragment`."),gt(null))}}var _r={};function rr(M,ce,be,Te,ht,dt){{var rt=fe(M);if(!rt){var Qe="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(Qe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var en=as();en?Qe+=en:Qe+=vi();var Dt;M===null?Dt="null":Ae(M)?Dt="array":M!==void 0&&M.$$typeof===t?(Dt="<"+(me(M.type)||"Unknown")+" />",Qe=" Did you accidentally export a JSX literal instead of a component?"):Dt=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",Dt,Qe)}var Rt=Ue(M,ce,be,ht,dt);if(Rt==null)return Rt;if(rt){var fn=ce.children;if(fn!==void 0)if(Te)if(Ae(fn)){for(var kn=0;kn<fn.length;kn++)wi(fn[kn],M);Object.freeze&&Object.freeze(fn)}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 wi(fn,M)}if(jt.call(ce,"key")){var ir=me(M),Gt=Object.keys(ce).filter(function(ao){return ao!=="key"}),Ai=Gt.length>0?"{key: someKey, "+Gt.join(": ..., ")+": ...}":"{key: someKey}";if(!_r[ir+Ai]){var oo=Gt.length>0?"{"+Gt.join(": ..., ")+": ...}":"{}";N(`A props object containing a "key" prop is being spread into JSX:
83
+ Check the top-level render call using <`+be+">.")}return fe}}function Jr(M,fe){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var be=fs(fe);if(ls[be])return;ls[be]=!0;var Fe="";M&&M._owner&&M._owner!==pt.current&&(Fe=" It was passed a child from "+ye(M._owner.type)+"."),dt(M),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',be,Fe),dt(null)}}function Ei(M,fe){{if(typeof M!="object")return;if(he(M))for(var be=0;be<M.length;be++){var Fe=M[be];Gr(Fe)&&Jr(Fe,fe)}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),tt;!(tt=ft.next()).done;)Gr(tt.value)&&Jr(tt.value,fe)}}}function so(M){{var fe=M.type;if(fe==null||typeof fe=="string")return;var be;if(typeof fe=="function")be=fe.propTypes;else if(typeof fe=="object"&&(fe.$$typeof===f||fe.$$typeof===p))be=fe.propTypes;else return;if(be){var Fe=ye(fe);ke(be,M.props,"prop",Fe,M)}else if(fe.PropTypes!==void 0&&!st){st=!0;var lt=ye(fe);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",lt||"Unknown")}typeof fe.getDefaultProps=="function"&&!fe.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function oo(M){{for(var fe=Object.keys(M.props),be=0;be<fe.length;be++){var Fe=fe[be];if(Fe!=="children"&&Fe!=="key"){dt(M),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Fe),dt(null);break}}M.ref!==null&&(dt(M),j("Invalid attribute `ref` supplied to `React.Fragment`."),dt(null))}}var Or={};function ir(M,fe,be,Fe,lt,ft){{var tt=ce(M);if(!tt){var Ye="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(Ye+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Xt=cs();Xt?Ye+=Xt:Ye+=Si();var Bt;M===null?Bt="null":he(M)?Bt="array":M!==void 0&&M.$$typeof===t?(Bt="<"+(ye(M.type)||"Unknown")+" />",Ye=" Did you accidentally export a JSX literal instead of a component?"):Bt=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",Bt,Ye)}var Pt=Ue(M,fe,be,lt,ft);if(Pt==null)return Pt;if(tt){var ln=fe.children;if(ln!==void 0)if(Fe)if(he(ln)){for(var Tn=0;Tn<ln.length;Tn++)Ei(ln[Tn],M);Object.freeze&&Object.freeze(ln)}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 Ei(ln,M)}if(Nt.call(fe,"key")){var sr=ye(M),Ht=Object.keys(fe).filter(function(lo){return lo!=="key"}),xi=Ht.length>0?"{key: someKey, "+Ht.join(": ..., ")+": ...}":"{key: someKey}";if(!Or[sr+xi]){var co=Ht.length>0?"{"+Ht.join(": ..., ")+": ...}":"{}";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} />`,Ai,ir,oo,ir),_r[ir+Ai]=!0}}return M===i?ro(Rt):no(Rt),Rt}}function zr(M,ce,be){return rr(M,ce,be,!0)}function io(M,ce,be){return rr(M,ce,be,!1)}var so=io,yn=zr;Is.Fragment=i,Is.jsx=so,Is.jsxs=yn}()),Is}nt.env.NODE_ENV==="production"?Nu.exports=mm():Nu.exports=bm();var I=Nu.exports;const vm={CustomTreeProvider:Xe.div`
88
+ <%s key={someKey} {...props} />`,xi,sr,co,sr),Or[sr+xi]=!0}}return M===i?oo(Pt):so(Pt),Pt}}function Yr(M,fe,be){return ir(M,fe,be,!0)}function ao(M,fe,be){return ir(M,fe,be,!1)}var uo=ao,gn=Yr;Bs.Fragment=i,Bs.jsx=uo,Bs.jsxs=gn}()),Bs}Ze.env.NODE_ENV==="production"?Mu.exports=ky():Mu.exports=Ty();var A=Mu.exports;const Oy={CustomTreeProvider:et.div`
89
89
  .ant-tree-switcher {
90
90
  display: flex;
91
91
  align-items: center;
92
92
  justify-content: center;
93
93
  }
94
- `},{Search:wm}=z.Input,Am=({treeData:e,onSelect:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(""),u=f=>{const{value:d}=f.target,g={},p=(v,R)=>{v.forEach(N=>{g[N.key]=R,N.children&&p(N.children,N.key)})};p(e,null);const w=v=>{const R=[];let N=g[v];for(;N;)R.push(N),N=g[N];return R},_=[],A=v=>{v.forEach(R=>{if(R.title.toLowerCase().includes(d.toLowerCase())){_.push(R.key);const x=w(R.key);_.push(...x)}R.children&&A(R.children)})};A(e);const S=Array.from(new Set(_)).filter(Boolean);i(S),a(d)},l=f=>f.map(d=>{const g=d.title,p=g.toLowerCase().indexOf(o.toLowerCase()),w=g.substring(0,p),_=g.substring(p+o.length),A=p>-1?I.jsxs("span",{children:[w,I.jsx("span",{style:{color:"#f50"},children:o}),_]}):I.jsx("span",{children:g});return d.children?{...d,title:A,children:l(d.children)}:{...d,title:A}});return I.jsxs(I.Fragment,{children:[I.jsx(wm,{style:{marginBottom:8},placeholder:"Search",onChange:u}),I.jsx(vm.CustomTreeProvider,{children:I.jsx(z.Tree,{treeData:l(e),expandedKeys:n,onExpand:f=>{i(f)},onSelect:(f,d)=>{t&&t(f,d),n.includes(d.node.key)?i([...n.filter(g=>g!==d.node.key)]):i([...n,d.node.key])}})})]})},Sm=globalThis||void 0||self;function Hf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Em}=Object.prototype,{getPrototypeOf:$u}=Object,Mo=(e=>t=>{const n=Em.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hr=e=>(e=e.toLowerCase(),t=>Mo(t)===e),Uo=e=>t=>typeof t===e,{isArray:Mi}=Array,Fs=Uo("undefined");function xm(e){return e!==null&&!Fs(e)&&e.constructor!==null&&!Fs(e.constructor)&&Ln(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zf=hr("ArrayBuffer");function Cm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zf(e.buffer),t}const _m=Uo("string"),Ln=Uo("function"),Gf=Uo("number"),Vo=e=>e!==null&&typeof e=="object",km=e=>e===!0||e===!1,qo=e=>{if(Mo(e)!=="object")return!1;const t=$u(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Tm=hr("Date"),Om=hr("File"),Im=hr("Blob"),Fm=hr("FileList"),Bm=e=>Vo(e)&&Ln(e.pipe),Dm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ln(e.append)&&((t=Mo(e))==="formdata"||t==="object"&&Ln(e.toString)&&e.toString()==="[object FormData]"))},Pm=hr("URLSearchParams"),Rm=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]),Mi(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 Jf(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 Yf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Sm,Xf=e=>!Fs(e)&&e!==Yf;function ju(){const{caseless:e}=Xf(this)&&this||{},t={},n=(i,o)=>{const a=e&&Jf(t,o)||o;qo(t[a])&&qo(i)?t[a]=ju(t[a],i):qo(i)?t[a]=ju({},i):Mi(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 Lm=(e,t,n,{allOwnKeys:i}={})=>(Bs(t,(o,a)=>{n&&Ln(o)?e[a]=Hf(o,n):e[a]=o},{allOwnKeys:i}),e),Nm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$m=(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)},jm=(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&&$u(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mm=(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},Um=e=>{if(!e)return null;if(Mi(e))return e;let t=e.length;if(!Gf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$u(Uint8Array)),qm=(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])}},Wm=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Km=hr("HTMLFormElement"),Hm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),Qf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zm=hr("RegExp"),Zf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Bs(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},Gm=e=>{Zf(e,(t,n)=>{if(Ln(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Ln(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+"'")})}})},Jm=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return Mi(e)?i(e):i(String(e).split(t)),n},Ym=()=>{},Xm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Mu="abcdefghijklmnopqrstuvwxyz",eh="0123456789",th={DIGIT:eh,ALPHA:Mu,ALPHA_DIGIT:Mu+Mu.toUpperCase()+eh},Qm=(e=16,t=th.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Zm(e){return!!(e&&Ln(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const e1=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=Mi(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)},t1=hr("AsyncFunction"),re={isArray:Mi,isArrayBuffer:zf,isBuffer:xm,isFormData:Dm,isArrayBufferView:Cm,isString:_m,isNumber:Gf,isBoolean:km,isObject:Vo,isPlainObject:qo,isUndefined:Fs,isDate:Tm,isFile:Om,isBlob:Im,isRegExp:zm,isFunction:Ln,isStream:Bm,isURLSearchParams:Pm,isTypedArray:Vm,isFileList:Fm,forEach:Bs,merge:ju,extend:Lm,trim:Rm,stripBOM:Nm,inherits:$m,toFlatObject:jm,kindOf:Mo,kindOfTest:hr,endsWith:Mm,toArray:Um,forEachEntry:qm,matchAll:Wm,isHTMLForm:Km,hasOwnProperty:Qf,hasOwnProp:Qf,reduceDescriptors:Zf,freezeMethods:Gm,toObjectSet:Jm,toCamelCase:Hm,noop:Ym,toFiniteNumber:Xm,findKey:Jf,global:Yf,isContextDefined:Xf,ALPHABET:th,generateString:Qm,isSpecCompliantForm:Zm,toJSONObject:e1,isAsyncFn:t1,isThenable:e=>e&&(Vo(e)||Ln(e))&&Ln(e.then)&&Ln(e.catch)};var nh={},Wo={};Wo.byteLength=i1,Wo.toByteArray=o1,Wo.fromByteArray=c1;for(var dr=[],Nn=[],n1=typeof Uint8Array<"u"?Uint8Array:Array,Uu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ui=0,r1=Uu.length;Ui<r1;++Ui)dr[Ui]=Uu[Ui],Nn[Uu.charCodeAt(Ui)]=Ui;Nn[45]=62,Nn[95]=63;function rh(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 i1(e){var t=rh(e),n=t[0],i=t[1];return(n+i)*3/4-i}function s1(e,t,n){return(t+n)*3/4-n}function o1(e){var t,n=rh(e),i=n[0],o=n[1],a=new n1(s1(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 a1(e){return dr[e>>18&63]+dr[e>>12&63]+dr[e>>6&63]+dr[e&63]}function u1(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(a1(i));return o.join("")}function c1(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(u1(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,g=-7,p=n?o-1:0,w=n?-1:1,_=e[t+p];for(p+=w,a=_&(1<<-g)-1,_>>=-g,g+=l;g>0;a=a*256+e[t+p],p+=w,g-=8);for(u=a&(1<<-g)-1,a>>=-g,g+=i;g>0;u=u*256+e[t+p],p+=w,g-=8);if(a===0)a=1-d;else{if(a===f)return u?NaN:(_?-1:1)*(1/0);u=u+Math.pow(2,i),a=a-d}return(_?-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,g=(1<<d)-1,p=g>>1,w=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=i?0:a-1,A=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=g):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?t+=w/f:t+=w*Math.pow(2,1-p),t*f>=2&&(u++,f/=2),u+p>=g?(l=0,u=g):u+p>=1?(l=(t*f-1)*Math.pow(2,o),u=u+p):(l=t*Math.pow(2,p-1)*Math.pow(2,o),u=0));o>=8;e[n+_]=l&255,_+=A,l/=256,o-=8);for(u=u<<o|l,d+=o;d>0;e[n+_]=u&255,_+=A,u/=256,d-=8);e[n+_-A]|=S*128};/*!
94
+ `},{Search:Iy}=q.Input,Fy=({treeData:e,onSelect:t})=>{const[n,i]=Z.useState([]),[o,a]=Z.useState(""),u=f=>{const{value:d}=f.target,g={},p=(b,D)=>{b.forEach(j=>{g[j.key]=D,j.children&&p(j.children,j.key)})};p(e,null);const v=b=>{const D=[];let j=g[b];for(;j;)D.push(j),j=g[j];return D},_=[],S=b=>{b.forEach(D=>{if(D.title.toLowerCase().includes(d.toLowerCase())){_.push(D.key);const C=v(D.key);_.push(...C)}D.children&&S(D.children)})};S(e);const E=Array.from(new Set(_)).filter(Boolean);i(E),a(d)},l=f=>f.map(d=>{const g=d.title,p=g.toLowerCase().indexOf(o.toLowerCase()),v=g.substring(0,p),_=g.substring(p+o.length),S=p>-1?A.jsxs("span",{children:[v,A.jsx("span",{style:{color:"#f50"},children:o}),_]}):A.jsx("span",{children:g});return d.children?{...d,title:S,children:l(d.children)}:{...d,title:S}});return A.jsxs(A.Fragment,{children:[A.jsx(Iy,{style:{marginBottom:8},placeholder:"Search",onChange:u}),A.jsx(Oy.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(g=>g!==d.node.key)]):i([...n,d.node.key])}})})]})},By=globalThis||void 0||self;function Qf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Dy}=Object.prototype,{getPrototypeOf:Uu}=Object,qo=(e=>t=>{const n=Dy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),dr=e=>(e=e.toLowerCase(),t=>qo(t)===e),Wo=e=>t=>typeof t===e,{isArray:qi}=Array,Ds=Wo("undefined");function Py(e){return e!==null&&!Ds(e)&&e.constructor!==null&&!Ds(e.constructor)&&jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xf=dr("ArrayBuffer");function Ry(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xf(e.buffer),t}const Ly=Wo("string"),jn=Wo("function"),Zf=Wo("number"),Ko=e=>e!==null&&typeof e=="object",jy=e=>e===!0||e===!1,Ho=e=>{if(qo(e)!=="object")return!1;const t=Uu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ny=dr("Date"),$y=dr("File"),My=dr("Blob"),Uy=dr("FileList"),Vy=e=>Ko(e)&&jn(e.pipe),qy=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jn(e.append)&&((t=qo(e))==="formdata"||t==="object"&&jn(e.toString)&&e.toString()==="[object FormData]"))},Wy=dr("URLSearchParams"),Ky=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ps(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),qi(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let l;for(i=0;i<u;i++)l=a[i],t.call(null,e[l],l,e)}}function eh(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const th=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:By,nh=e=>!Ds(e)&&e!==th;function Vu(){const{caseless:e}=nh(this)&&this||{},t={},n=(i,o)=>{const a=e&&eh(t,o)||o;Ho(t[a])&&Ho(i)?t[a]=Vu(t[a],i):Ho(i)?t[a]=Vu({},i):qi(i)?t[a]=i.slice():t[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Ps(arguments[i],n);return t}const Hy=(e,t,n,{allOwnKeys:i}={})=>(Ps(t,(o,a)=>{n&&jn(o)?e[a]=Qf(o,n):e[a]=o},{allOwnKeys:i}),e),zy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Gy=(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)},Jy=(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&&Uu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Yy=(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},Qy=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Zf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Uu(Uint8Array)),Zy=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},em=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},tm=dr("HTMLFormElement"),nm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),rh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rm=dr("RegExp"),ih=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Ps(n,(o,a)=>{t(o,a,e)!==!1&&(i[a]=o)}),Object.defineProperties(e,i)},im=e=>{ih(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+"'")})}})},sm=(e,t)=>{const n={},i=o=>{o.forEach(a=>{n[a]=!0})};return qi(e)?i(e):i(String(e).split(t)),n},om=()=>{},am=(e,t)=>(e=+e,Number.isFinite(e)?e:t),qu="abcdefghijklmnopqrstuvwxyz",sh="0123456789",oh={DIGIT:sh,ALPHA:qu,ALPHA_DIGIT:qu+qu.toUpperCase()+sh},um=(e=16,t=oh.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function cm(e){return!!(e&&jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lm=e=>{const t=new Array(10),n=(i,o)=>{if(Ko(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const a=qi(i)?[]:{};return Ps(i,(u,l)=>{const f=n(u,o+1);!Ds(f)&&(a[l]=f)}),t[o]=void 0,a}}return i};return n(e,0)},fm=dr("AsyncFunction"),re={isArray:qi,isArrayBuffer:Xf,isBuffer:Py,isFormData:qy,isArrayBufferView:Ry,isString:Ly,isNumber:Zf,isBoolean:jy,isObject:Ko,isPlainObject:Ho,isUndefined:Ds,isDate:Ny,isFile:$y,isBlob:My,isRegExp:rm,isFunction:jn,isStream:Vy,isURLSearchParams:Wy,isTypedArray:Xy,isFileList:Uy,forEach:Ps,merge:Vu,extend:Hy,trim:Ky,stripBOM:zy,inherits:Gy,toFlatObject:Jy,kindOf:qo,kindOfTest:dr,endsWith:Yy,toArray:Qy,forEachEntry:Zy,matchAll:em,isHTMLForm:tm,hasOwnProperty:rh,hasOwnProp:rh,reduceDescriptors:ih,freezeMethods:im,toObjectSet:sm,toCamelCase:nm,noop:om,toFiniteNumber:am,findKey:eh,global:th,isContextDefined:nh,ALPHABET:oh,generateString:um,isSpecCompliantForm:cm,toJSONObject:lm,isAsyncFn:fm,isThenable:e=>e&&(Ko(e)||jn(e))&&jn(e.then)&&jn(e.catch)};var ah={},zo={};zo.byteLength=pm,zo.toByteArray=ym,zo.fromByteArray=bm;for(var pr=[],Nn=[],hm=typeof Uint8Array<"u"?Uint8Array:Array,Wu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wi=0,dm=Wu.length;Wi<dm;++Wi)pr[Wi]=Wu[Wi],Nn[Wu.charCodeAt(Wi)]=Wi;Nn[45]=62,Nn[95]=63;function uh(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function pm(e){var t=uh(e),n=t[0],i=t[1];return(n+i)*3/4-i}function gm(e,t,n){return(t+n)*3/4-n}function ym(e){var t,n=uh(e),i=n[0],o=n[1],a=new hm(gm(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 mm(e){return pr[e>>18&63]+pr[e>>12&63]+pr[e>>6&63]+pr[e&63]}function wm(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(mm(i));return o.join("")}function bm(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,l=n-i;u<l;u+=a)o.push(wm(e,u,u+a>l?l:u+a));return i===1?(t=e[n-1],o.push(pr[t>>2]+pr[t<<4&63]+"==")):i===2&&(t=(e[n-2]<<8)+e[n-1],o.push(pr[t>>10]+pr[t>>4&63]+pr[t<<2&63]+"=")),o.join("")}var Ku={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Ku.read=function(e,t,n,i,o){var a,u,l=o*8-i-1,f=(1<<l)-1,d=f>>1,g=-7,p=n?o-1:0,v=n?-1:1,_=e[t+p];for(p+=v,a=_&(1<<-g)-1,_>>=-g,g+=l;g>0;a=a*256+e[t+p],p+=v,g-=8);for(u=a&(1<<-g)-1,a>>=-g,g+=i;g>0;u=u*256+e[t+p],p+=v,g-=8);if(a===0)a=1-d;else{if(a===f)return u?NaN:(_?-1:1)*(1/0);u=u+Math.pow(2,i),a=a-d}return(_?-1:1)*u*Math.pow(2,a-i)},Ku.write=function(e,t,n,i,o,a){var u,l,f,d=a*8-o-1,g=(1<<d)-1,p=g>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=i?0:a-1,S=i?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=g):(u=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?t+=v/f:t+=v*Math.pow(2,1-p),t*f>=2&&(u++,f/=2),u+p>=g?(l=0,u=g):u+p>=1?(l=(t*f-1)*Math.pow(2,o),u=u+p):(l=t*Math.pow(2,p-1)*Math.pow(2,o),u=0));o>=8;e[n+_]=l&255,_+=S,l/=256,o-=8);for(u=u<<o|l,d+=o;d>0;e[n+_]=u&255,_+=S,u/=256,d-=8);e[n+_-S]|=E*128};/*!
95
95
  * The buffer module from node.js, for the browser.
96
96
  *
97
97
  * @author Feross Aboukhadijeh <https://feross.org>
98
98
  * @license MIT
99
- */(function(e){const t=Wo,n=Vu,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=g,e.SlowBuffer=F,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;g.TYPED_ARRAY_SUPPORT=f(),!g.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const T=new a(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,a.prototype),Object.setPrototypeOf(T,y),T.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function d(T){if(T>o)throw new RangeError('The value "'+T+'" is invalid for option "size"');const y=new a(T);return Object.setPrototypeOf(y,g.prototype),y}function g(T,y,b){if(typeof T=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(T)}return p(T,y,b)}g.poolSize=8192;function p(T,y,b){if(typeof T=="string")return S(T,y);if(u.isView(T))return R(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(Me(T,u)||T&&Me(T.buffer,u)||typeof l<"u"&&(Me(T,l)||T&&Me(T.buffer,l)))return N(T,y,b);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const L=T.valueOf&&T.valueOf();if(L!=null&&L!==T)return g.from(L,y,b);const q=x(T);if(q)return q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return g.from(T[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 T)}g.from=function(T,y,b){return p(T,y,b)},Object.setPrototypeOf(g.prototype,a.prototype),Object.setPrototypeOf(g,a);function w(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function _(T,y,b){return w(T),T<=0?d(T):y!==void 0?typeof b=="string"?d(T).fill(y,b):d(T).fill(y):d(T)}g.alloc=function(T,y,b){return _(T,y,b)};function A(T){return w(T),d(T<0?0:O(T)|0)}g.allocUnsafe=function(T){return A(T)},g.allocUnsafeSlow=function(T){return A(T)};function S(T,y){if((typeof y!="string"||y==="")&&(y="utf8"),!g.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const b=k(T,y)|0;let L=d(b);const q=L.write(T,y);return q!==b&&(L=L.slice(0,q)),L}function v(T){const y=T.length<0?0:O(T.length)|0,b=d(y);for(let L=0;L<y;L+=1)b[L]=T[L]&255;return b}function R(T){if(Me(T,a)){const y=new a(T);return N(y.buffer,y.byteOffset,y.byteLength)}return v(T)}function N(T,y,b){if(y<0||T.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<y+(b||0))throw new RangeError('"length" is outside of buffer bounds');let L;return y===void 0&&b===void 0?L=new a(T):b===void 0?L=new a(T,y):L=new a(T,y,b),Object.setPrototypeOf(L,g.prototype),L}function x(T){if(g.isBuffer(T)){const y=O(T.length)|0,b=d(y);return b.length===0||T.copy(b,0,0,y),b}if(T.length!==void 0)return typeof T.length!="number"||vt(T.length)?d(0):v(T);if(T.type==="Buffer"&&Array.isArray(T.data))return v(T.data)}function O(T){if(T>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return T|0}function F(T){return+T!=T&&(T=0),g.alloc(+T)}g.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==g.prototype},g.compare=function(y,b){if(Me(y,a)&&(y=g.from(y,y.offset,y.byteLength)),Me(b,a)&&(b=g.from(b,b.offset,b.byteLength)),!g.isBuffer(y)||!g.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===b)return 0;let L=y.length,q=b.length;for(let G=0,ee=Math.min(L,q);G<ee;++G)if(y[G]!==b[G]){L=y[G],q=b[G];break}return L<q?-1:q<L?1:0},g.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(y,b){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return g.alloc(0);let L;if(b===void 0)for(b=0,L=0;L<y.length;++L)b+=y[L].length;const q=g.allocUnsafe(b);let G=0;for(L=0;L<y.length;++L){let ee=y[L];if(Me(ee,a))G+ee.length>q.length?(g.isBuffer(ee)||(ee=g.from(ee)),ee.copy(q,G)):a.prototype.set.call(q,ee,G);else if(g.isBuffer(ee))ee.copy(q,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return q};function k(T,y){if(g.isBuffer(T))return T.length;if(u.isView(T)||Me(T,u))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const b=T.length,L=arguments.length>2&&arguments[2]===!0;if(!L&&b===0)return 0;let q=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return je(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return Mt(T).length;default:if(q)return L?-1:je(T).length;y=(""+y).toLowerCase(),q=!0}}g.byteLength=k;function D(T,y,b){let L=!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(T||(T="utf8");;)switch(T){case"hex":return et(this,y,b);case"utf8":case"utf-8":return Re(this,y,b);case"ascii":return Se(this,y,b);case"latin1":case"binary":return ye(this,y,b);case"base64":return Ie(this,y,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,y,b);default:if(L)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),L=!0}}g.prototype._isBuffer=!0;function V(T,y,b){const L=T[y];T[y]=T[b],T[b]=L}g.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<y;b+=2)V(this,b,b+1);return this},g.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<y;b+=4)V(this,b,b+3),V(this,b+1,b+2);return this},g.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<y;b+=8)V(this,b,b+7),V(this,b+1,b+6),V(this,b+2,b+5),V(this,b+3,b+4);return this},g.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?Re(this,0,y):D.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(y){if(!g.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:g.compare(this,y)===0},g.prototype.inspect=function(){let y="";const b=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(y+=" ... "),"<Buffer "+y+">"},i&&(g.prototype[i]=g.prototype.inspect),g.prototype.compare=function(y,b,L,q,G){if(Me(y,a)&&(y=g.from(y,y.offset,y.byteLength)),!g.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(b===void 0&&(b=0),L===void 0&&(L=y?y.length:0),q===void 0&&(q=0),G===void 0&&(G=this.length),b<0||L>y.length||q<0||G>this.length)throw new RangeError("out of range index");if(q>=G&&b>=L)return 0;if(q>=G)return-1;if(b>=L)return 1;if(b>>>=0,L>>>=0,q>>>=0,G>>>=0,this===y)return 0;let ee=G-q,Ue=L-b;const yt=Math.min(ee,Ue),ft=this.slice(q,G),gt=y.slice(b,L);for(let ot=0;ot<yt;++ot)if(ft[ot]!==gt[ot]){ee=ft[ot],Ue=gt[ot];break}return ee<Ue?-1:Ue<ee?1:0};function Q(T,y,b,L,q){if(T.length===0)return-1;if(typeof b=="string"?(L=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,vt(b)&&(b=q?0:T.length-1),b<0&&(b=T.length+b),b>=T.length){if(q)return-1;b=T.length-1}else if(b<0)if(q)b=0;else return-1;if(typeof y=="string"&&(y=g.from(y,L)),g.isBuffer(y))return y.length===0?-1:fe(T,y,b,L,q);if(typeof y=="number")return y=y&255,typeof a.prototype.indexOf=="function"?q?a.prototype.indexOf.call(T,y,b):a.prototype.lastIndexOf.call(T,y,b):fe(T,[y],b,L,q);throw new TypeError("val must be string, number or Buffer")}function fe(T,y,b,L,q){let G=1,ee=T.length,Ue=y.length;if(L!==void 0&&(L=String(L).toLowerCase(),L==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(T.length<2||y.length<2)return-1;G=2,ee/=2,Ue/=2,b/=2}function yt(gt,ot){return G===1?gt[ot]:gt.readUInt16BE(ot*G)}let ft;if(q){let gt=-1;for(ft=b;ft<ee;ft++)if(yt(T,ft)===yt(y,gt===-1?0:ft-gt)){if(gt===-1&&(gt=ft),ft-gt+1===Ue)return gt*G}else gt!==-1&&(ft-=ft-gt),gt=-1}else for(b+Ue>ee&&(b=ee-Ue),ft=b;ft>=0;ft--){let gt=!0;for(let ot=0;ot<Ue;ot++)if(yt(T,ft+ot)!==yt(y,ot)){gt=!1;break}if(gt)return ft}return-1}g.prototype.includes=function(y,b,L){return this.indexOf(y,b,L)!==-1},g.prototype.indexOf=function(y,b,L){return Q(this,y,b,L,!0)},g.prototype.lastIndexOf=function(y,b,L){return Q(this,y,b,L,!1)};function le(T,y,b,L){b=Number(b)||0;const q=T.length-b;L?(L=Number(L),L>q&&(L=q)):L=q;const G=y.length;L>G/2&&(L=G/2);let ee;for(ee=0;ee<L;++ee){const Ue=parseInt(y.substr(ee*2,2),16);if(vt(Ue))return ee;T[b+ee]=Ue}return ee}function ge(T,y,b,L){return lt(je(y,T.length-b),T,b,L)}function me(T,y,b,L){return lt(ct(y),T,b,L)}function he(T,y,b,L){return lt(Mt(y),T,b,L)}function de(T,y,b,L){return lt(Ae(y,T.length-b),T,b,L)}g.prototype.write=function(y,b,L,q){if(b===void 0)q="utf8",L=this.length,b=0;else if(L===void 0&&typeof b=="string")q=b,L=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(L)?(L=L>>>0,q===void 0&&(q="utf8")):(q=L,L=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-b;if((L===void 0||L>G)&&(L=G),y.length>0&&(L<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,L);case"utf8":case"utf-8":return ge(this,y,b,L);case"ascii":case"latin1":case"binary":return me(this,y,b,L);case"base64":return he(this,y,b,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,y,b,L);default:if(ee)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),ee=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ie(T,y,b){return y===0&&b===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(y,b))}function Re(T,y,b){b=Math.min(T.length,b);const L=[];let q=y;for(;q<b;){const G=T[q];let ee=null,Ue=G>239?4:G>223?3:G>191?2:1;if(q+Ue<=b){let yt,ft,gt,ot;switch(Ue){case 1:G<128&&(ee=G);break;case 2:yt=T[q+1],(yt&192)===128&&(ot=(G&31)<<6|yt&63,ot>127&&(ee=ot));break;case 3:yt=T[q+1],ft=T[q+2],(yt&192)===128&&(ft&192)===128&&(ot=(G&15)<<12|(yt&63)<<6|ft&63,ot>2047&&(ot<55296||ot>57343)&&(ee=ot));break;case 4:yt=T[q+1],ft=T[q+2],gt=T[q+3],(yt&192)===128&&(ft&192)===128&&(gt&192)===128&&(ot=(G&15)<<18|(yt&63)<<12|(ft&63)<<6|gt&63,ot>65535&&ot<1114112&&(ee=ot))}}ee===null?(ee=65533,Ue=1):ee>65535&&(ee-=65536,L.push(ee>>>10&1023|55296),ee=56320|ee&1023),L.push(ee),q+=Ue}return ze(L)}const Ce=4096;function ze(T){const y=T.length;if(y<=Ce)return String.fromCharCode.apply(String,T);let b="",L=0;for(;L<y;)b+=String.fromCharCode.apply(String,T.slice(L,L+=Ce));return b}function Se(T,y,b){let L="";b=Math.min(T.length,b);for(let q=y;q<b;++q)L+=String.fromCharCode(T[q]&127);return L}function ye(T,y,b){let L="";b=Math.min(T.length,b);for(let q=y;q<b;++q)L+=String.fromCharCode(T[q]);return L}function et(T,y,b){const L=T.length;(!y||y<0)&&(y=0),(!b||b<0||b>L)&&(b=L);let q="";for(let G=y;G<b;++G)q+=xe[T[G]];return q}function J(T,y,b){const L=T.slice(y,b);let q="";for(let G=0;G<L.length-1;G+=2)q+=String.fromCharCode(L[G]+L[G+1]*256);return q}g.prototype.slice=function(y,b){const L=this.length;y=~~y,b=b===void 0?L:~~b,y<0?(y+=L,y<0&&(y=0)):y>L&&(y=L),b<0?(b+=L,b<0&&(b=0)):b>L&&(b=L),b<y&&(b=y);const q=this.subarray(y,b);return Object.setPrototypeOf(q,g.prototype),q};function X(T,y,b){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+y>b)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let q=this[y],G=1,ee=0;for(;++ee<b&&(G*=256);)q+=this[y+ee]*G;return q},g.prototype.readUintBE=g.prototype.readUIntBE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(y,b,this.length);let q=this[y+--b],G=1;for(;b>0&&(G*=256);)q+=this[y+--b]*G;return q},g.prototype.readUint8=g.prototype.readUInt8=function(y,b){return y=y>>>0,b||X(y,1,this.length),this[y]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(y,b){return y=y>>>0,b||X(y,2,this.length),this[y]|this[y+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(y,b){return y=y>>>0,b||X(y,2,this.length),this[y]<<8|this[y+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(y,b){return y=y>>>0,b||X(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},g.prototype.readBigUInt64LE=Fe(function(y){y=y>>>0,jt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&St(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+L*2**24;return BigInt(q)+(BigInt(G)<<BigInt(32))}),g.prototype.readBigUInt64BE=Fe(function(y){y=y>>>0,jt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&St(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+L;return(BigInt(q)<<BigInt(32))+BigInt(G)}),g.prototype.readIntLE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(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},g.prototype.readIntBE=function(y,b,L){y=y>>>0,b=b>>>0,L||X(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},g.prototype.readInt8=function(y,b){return y=y>>>0,b||X(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},g.prototype.readInt16LE=function(y,b){y=y>>>0,b||X(y,2,this.length);const L=this[y]|this[y+1]<<8;return L&32768?L|4294901760:L},g.prototype.readInt16BE=function(y,b){y=y>>>0,b||X(y,2,this.length);const L=this[y+1]|this[y]<<8;return L&32768?L|4294901760:L},g.prototype.readInt32LE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},g.prototype.readInt32BE=function(y,b){return y=y>>>0,b||X(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},g.prototype.readBigInt64LE=Fe(function(y){y=y>>>0,jt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&St(y,this.length-8);const q=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(L<<24);return(BigInt(q)<<BigInt(32))+BigInt(b+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),g.prototype.readBigInt64BE=Fe(function(y){y=y>>>0,jt(y,"offset");const b=this[y],L=this[y+7];(b===void 0||L===void 0)&&St(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+L)}),g.prototype.readFloatLE=function(y,b){return y=y>>>0,b||X(y,4,this.length),n.read(this,y,!0,23,4)},g.prototype.readFloatBE=function(y,b){return y=y>>>0,b||X(y,4,this.length),n.read(this,y,!1,23,4)},g.prototype.readDoubleLE=function(y,b){return y=y>>>0,b||X(y,8,this.length),n.read(this,y,!0,52,8)},g.prototype.readDoubleBE=function(y,b){return y=y>>>0,b||X(y,8,this.length),n.read(this,y,!1,52,8)};function oe(T,y,b,L,q,G){if(!g.isBuffer(T))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+L>T.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(y,b,L,q){if(y=+y,b=b>>>0,L=L>>>0,!q){const Ue=Math.pow(2,8*L)-1;oe(this,y,b,L,Ue,0)}let G=1,ee=0;for(this[b]=y&255;++ee<L&&(G*=256);)this[b+ee]=y/G&255;return b+L},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(y,b,L,q){if(y=+y,b=b>>>0,L=L>>>0,!q){const Ue=Math.pow(2,8*L)-1;oe(this,y,b,L,Ue,0)}let G=L-1,ee=1;for(this[b+G]=y&255;--G>=0&&(ee*=256);)this[b+G]=y/ee&255;return b+L},g.prototype.writeUint8=g.prototype.writeUInt8=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,1,255,0),this[b]=y&255,b+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,2,65535,0),this[b]=y&255,this[b+1]=y>>>8,b+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,2,65535,0),this[b]=y>>>8,this[b+1]=y&255,b+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(y,b,L){return y=+y,b=b>>>0,L||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},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(y,b,L){return y=+y,b=b>>>0,L||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 Be(T,y,b,L,q){$t(y,L,q,T,b,7);let G=Number(y&BigInt(4294967295));T[b++]=G,G=G>>8,T[b++]=G,G=G>>8,T[b++]=G,G=G>>8,T[b++]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return T[b++]=ee,ee=ee>>8,T[b++]=ee,ee=ee>>8,T[b++]=ee,ee=ee>>8,T[b++]=ee,b}function Ke(T,y,b,L,q){$t(y,L,q,T,b,7);let G=Number(y&BigInt(4294967295));T[b+7]=G,G=G>>8,T[b+6]=G,G=G>>8,T[b+5]=G,G=G>>8,T[b+4]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return T[b+3]=ee,ee=ee>>8,T[b+2]=ee,ee=ee>>8,T[b+1]=ee,ee=ee>>8,T[b]=ee,b+8}g.prototype.writeBigUInt64LE=Fe(function(y,b=0){return Be(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=Fe(function(y,b=0){return Ke(this,y,b,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(y,b,L,q){if(y=+y,b=b>>>0,!q){const yt=Math.pow(2,8*L-1);oe(this,y,b,L,yt-1,-yt)}let G=0,ee=1,Ue=0;for(this[b]=y&255;++G<L&&(ee*=256);)y<0&&Ue===0&&this[b+G-1]!==0&&(Ue=1),this[b+G]=(y/ee>>0)-Ue&255;return b+L},g.prototype.writeIntBE=function(y,b,L,q){if(y=+y,b=b>>>0,!q){const yt=Math.pow(2,8*L-1);oe(this,y,b,L,yt-1,-yt)}let G=L-1,ee=1,Ue=0;for(this[b+G]=y&255;--G>=0&&(ee*=256);)y<0&&Ue===0&&this[b+G+1]!==0&&(Ue=1),this[b+G]=(y/ee>>0)-Ue&255;return b+L},g.prototype.writeInt8=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,1,127,-128),y<0&&(y=255+y+1),this[b]=y&255,b+1},g.prototype.writeInt16LE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,2,32767,-32768),this[b]=y&255,this[b+1]=y>>>8,b+2},g.prototype.writeInt16BE=function(y,b,L){return y=+y,b=b>>>0,L||oe(this,y,b,2,32767,-32768),this[b]=y>>>8,this[b+1]=y&255,b+2},g.prototype.writeInt32LE=function(y,b,L){return y=+y,b=b>>>0,L||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},g.prototype.writeInt32BE=function(y,b,L){return y=+y,b=b>>>0,L||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},g.prototype.writeBigInt64LE=Fe(function(y,b=0){return Be(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=Fe(function(y,b=0){return Ke(this,y,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function we(T,y,b,L,q,G){if(b+L>T.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Oe(T,y,b,L,q){return y=+y,b=b>>>0,q||we(T,y,b,4),n.write(T,y,b,L,23,4),b+4}g.prototype.writeFloatLE=function(y,b,L){return Oe(this,y,b,!0,L)},g.prototype.writeFloatBE=function(y,b,L){return Oe(this,y,b,!1,L)};function De(T,y,b,L,q){return y=+y,b=b>>>0,q||we(T,y,b,8),n.write(T,y,b,L,52,8),b+8}g.prototype.writeDoubleLE=function(y,b,L){return De(this,y,b,!0,L)},g.prototype.writeDoubleBE=function(y,b,L){return De(this,y,b,!1,L)},g.prototype.copy=function(y,b,L,q){if(!g.isBuffer(y))throw new TypeError("argument should be a Buffer");if(L||(L=0),!q&&q!==0&&(q=this.length),b>=y.length&&(b=y.length),b||(b=0),q>0&&q<L&&(q=L),q===L||y.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(L<0||L>=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-L&&(q=y.length-b+L);const G=q-L;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(b,L,q):a.prototype.set.call(y,this.subarray(L,q),b),G},g.prototype.fill=function(y,b,L,q){if(typeof y=="string"){if(typeof b=="string"?(q=b,b=0,L=this.length):typeof L=="string"&&(q=L,L=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!g.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<L)throw new RangeError("Out of range index");if(L<=b)return this;b=b>>>0,L=L===void 0?this.length:L>>>0,y||(y=0);let G;if(typeof y=="number")for(G=b;G<L;++G)this[G]=y;else{const ee=g.isBuffer(y)?y:g.from(y,q),Ue=ee.length;if(Ue===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<L-b;++G)this[G+b]=ee[G%Ue]}return this};const Le={};function Tt(T,y,b){Le[T]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(T,y){return`The "${T}" argument must be of type number. Received type ${typeof y}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(T,y,b){let L=`The value of "${T}" is out of range.`,q=b;return Number.isInteger(b)&&Math.abs(b)>2**32?q=on(String(b)):typeof b=="bigint"&&(q=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(q=on(q)),q+="n"),L+=` It must be ${y}. Received ${q}`,L},RangeError);function on(T){let y="",b=T.length;const L=T[0]==="-"?1:0;for(;b>=L+4;b-=3)y=`_${T.slice(b-3,b)}${y}`;return`${T.slice(0,b)}${y}`}function Nt(T,y,b){jt(y,"offset"),(T[y]===void 0||T[y+b]===void 0)&&St(y,T.length-(b+1))}function $t(T,y,b,L,q,G){if(T>b||T<y){const ee=typeof y=="bigint"?"n":"";let Ue;throw y===0||y===BigInt(0)?Ue=`>= 0${ee} and < 2${ee} ** ${(G+1)*8}${ee}`:Ue=`>= -(2${ee} ** ${(G+1)*8-1}${ee}) and < 2 ** ${(G+1)*8-1}${ee}`,new Le.ERR_OUT_OF_RANGE("value",Ue,T)}Nt(L,q,G)}function jt(T,y){if(typeof T!="number")throw new Le.ERR_INVALID_ARG_TYPE(y,"number",T)}function St(T,y,b){throw Math.floor(T)!==T?(jt(T,b),new Le.ERR_OUT_OF_RANGE("offset","an integer",T)):y<0?new Le.ERR_BUFFER_OUT_OF_BOUNDS:new Le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,T)}const ke=/[^+/0-9A-Za-z-_]/g;function Ve(T){if(T=T.split("=")[0],T=T.trim().replace(ke,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function je(T,y){y=y||1/0;let b;const L=T.length;let q=null;const G=[];for(let ee=0;ee<L;++ee){if(b=T.charCodeAt(ee),b>55295&&b<57344){if(!q){if(b>56319){(y-=3)>-1&&G.push(239,191,189);continue}else if(ee+1===L){(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 ct(T){const y=[];for(let b=0;b<T.length;++b)y.push(T.charCodeAt(b)&255);return y}function Ae(T,y){let b,L,q;const G=[];for(let ee=0;ee<T.length&&!((y-=2)<0);++ee)b=T.charCodeAt(ee),L=b>>8,q=b%256,G.push(q),G.push(L);return G}function Mt(T){return t.toByteArray(Ve(T))}function lt(T,y,b,L){let q;for(q=0;q<L&&!(q+b>=y.length||q>=T.length);++q)y[q+b]=T[q];return q}function Me(T,y){return T instanceof y||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===y.name}function vt(T){return T!==T}const xe=function(){const T="0123456789abcdef",y=new Array(256);for(let b=0;b<16;++b){const L=b*16;for(let q=0;q<16;++q)y[L+q]=T[b]+T[q]}return y}();function Fe(T){return typeof BigInt>"u"?Bt:T}function Bt(){throw new Error("BigInt not supported")}})(nh);const l1=nh.Buffer;function pt(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(pt,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 ih=pt.prototype,sh={};["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=>{sh[e]={value:e}}),Object.defineProperties(pt,sh),Object.defineProperty(ih,"isAxiosError",{value:!0}),pt.from=(e,t,n,i,o,a)=>{const u=Object.create(ih);return re.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),pt.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const f1=null;function qu(e){return re.isPlainObject(e)||re.isArray(e)}function oh(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function ah(e,t,n){return e?e.concat(t).map(function(o,a){return o=oh(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function h1(e){return re.isArray(e)&&!e.some(qu)}const d1=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(S,v){return!re.isUndefined(v[S])});const i=n.metaTokens,o=n.visitor||g,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(o))throw new TypeError("visitor must be a function");function d(A){if(A===null)return"";if(re.isDate(A))return A.toISOString();if(!f&&re.isBlob(A))throw new pt("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(A)||re.isTypedArray(A)?f&&typeof Blob=="function"?new Blob([A]):l1.from(A):A}function g(A,S,v){let R=A;if(A&&!v&&typeof A=="object"){if(re.endsWith(S,"{}"))S=i?S:S.slice(0,-2),A=JSON.stringify(A);else if(re.isArray(A)&&h1(A)||(re.isFileList(A)||re.endsWith(S,"[]"))&&(R=re.toArray(A)))return S=oh(S),R.forEach(function(x,O){!(re.isUndefined(x)||x===null)&&t.append(u===!0?ah([S],O,a):u===null?S:S+"[]",d(x))}),!1}return qu(A)?!0:(t.append(ah(v,S,a),d(A)),!1)}const p=[],w=Object.assign(d1,{defaultVisitor:g,convertValue:d,isVisitable:qu});function _(A,S){if(!re.isUndefined(A)){if(p.indexOf(A)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(A),re.forEach(A,function(R,N){(!(re.isUndefined(R)||R===null)&&o.call(t,R,re.isString(N)?N.trim():N,S,w))===!0&&_(R,S?S.concat(N):[N])}),p.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return _(e),t}function uh(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&&Ko(e,this,t)}const ch=Wu.prototype;ch.append=function(t,n){this._pairs.push([t,n])},ch.toString=function(t){const n=t?function(i){return t.call(this,i,uh)}:uh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function p1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lh(e,t,n){if(!t)return e;const i=n&&n.encode||p1,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 fh{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 hh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g1=typeof URLSearchParams<"u"?URLSearchParams:Wu,y1=typeof FormData<"u"?FormData:null,m1=typeof Blob<"u"?Blob:null,b1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),v1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pr={classes:{URLSearchParams:g1,FormData:y1,Blob:m1},isStandardBrowserEnv:b1,isStandardBrowserWebWorkerEnv:v1,protocols:["http","https","file","blob","url","data"]};function w1(e,t){return Ko(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 A1(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function S1(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 dh(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]=S1(o[u])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(i,o)=>{t(A1(i),o,n,0)}),n}return null}const E1={"Content-Type":void 0};function x1(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 Vi={transitional:hh,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(dh(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 w1(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),x1(t)):t}],transformResponse:[function(t){const n=this.transitional||Vi.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"?pt.from(l,pt.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){Vi.headers[t]={}}),re.forEach(["post","put","patch"],function(t){Vi.headers[t]=re.merge(E1)});const C1=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"]),_1=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]&&C1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},ph=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 k1(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 T1=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 O1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function I1(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,a,u){return this[i].call(this,t,o,a,u)},configurable:!0})})}let $n=class{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function a(l,f,d){const g=Ds(f);if(!g)throw new Error("header name must be a non-empty string");const p=re.findKey(o,g);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||f]=Ho(l))}const u=(l,f)=>re.forEach(l,(d,g)=>a(d,g,f));return re.isPlainObject(t)||t instanceof this.constructor?u(t,n):re.isString(t)&&(t=t.trim())&&!T1(t)?u(_1(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 k1(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]=Ho(o),delete n[a];return}const l=t?O1(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[ph]=this[ph]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Ds(u);i[l]||(I1(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||Vi,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 gh(e){return!!(e&&e.__CANCEL__)}function Ps(e,t,n){pt.call(this,e??"canceled",pt.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ps,pt,{__CANCEL__:!0});function F1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new pt("Request failed with status code "+n.status,[pt.ERR_BAD_REQUEST,pt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const B1=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 D1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function yh(e,t){return e&&!D1(t)?P1(e,t):t}const R1=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 L1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function N1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),g=i[a];u||(u=d),n[o]=f,i[o]=d;let p=a,w=0;for(;p!==o;)w+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-u<t)return;const _=g&&d-g;return _?Math.round(w*1e3/_):void 0}}function mh(e,t){let n=0;const i=N1(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),d=a<=u;n=a;const g={loaded:a,total:u,progress:u?a/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&d?(u-a)/f:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const zo={http:f1,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 _=e.auth.username||"",A=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(_+":"+A))}const g=yh(e.baseURL,e.url);d.open(e.method.toUpperCase(),lh(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const _=$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:_,config:e,request:d};F1(function(R){n(R),f()},function(R){i(R),f()},S),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(i(new pt("Request aborted",pt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){i(new pt("Network Error",pt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let A=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||hh;e.timeoutErrorMessage&&(A=e.timeoutErrorMessage),i(new pt(A,S.clarifyTimeoutError?pt.ETIMEDOUT:pt.ECONNABORTED,e,d)),d=null},pr.isStandardBrowserEnv){const _=(e.withCredentials||R1(g))&&e.xsrfCookieName&&B1.read(e.xsrfCookieName);_&&a.set(e.xsrfHeaderName,_)}o===void 0&&a.setContentType(null),"setRequestHeader"in d&&re.forEach(a.toJSON(),function(A,S){d.setRequestHeader(S,A)}),re.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),u&&u!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",mh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",mh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=_=>{d&&(i(!_||_.type?new Ps(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const w=L1(g);if(w&&pr.protocols.indexOf(w)===-1){i(new pt("Unsupported protocol "+w+":",pt.ERR_BAD_REQUEST,e));return}d.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 $1={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 pt(`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 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),$1.getAdapter(e.adapter||Vi.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 gh(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 qi(e,t){t=t||{};const n={};function i(d,g,p){return re.isPlainObject(d)&&re.isPlainObject(g)?re.merge.call({caseless:p},d,g):re.isPlainObject(g)?re.merge({},g):re.isArray(g)?g.slice():g}function o(d,g,p){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d,p)}else return i(d,g,p)}function a(d,g){if(!re.isUndefined(g))return i(void 0,g)}function u(d,g){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d)}else return i(void 0,g)}function l(d,g,p){if(p in t)return i(d,g);if(p in e)return i(void 0,d)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(d,g)=>o(vh(d),vh(g),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(g){const p=f[g]||o,w=p(e[g],t[g],g);re.isUndefined(w)&&p!==l||(n[g]=w)}),n}const wh="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 Ah={};Gu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+wh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new pt(o(u," has been removed"+(n?" in "+n:"")),pt.ERR_DEPRECATED);return n&&!Ah[u]&&(Ah[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 j1(e,t,n){if(typeof e!="object")throw new pt("options must be an object",pt.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 pt("option "+a+" must be "+f,pt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new pt("Unknown option "+a,pt.ERR_BAD_OPTION)}}const Ju={assertOptions:j1,validators:Gu},$r=Ju.validators;let li=class{constructor(t){this.defaults=t,this.interceptors={request:new fh,response:new fh}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qi(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&Ju.assertOptions(i,{silentJSONParsing:$r.transitional($r.boolean),forcedJSONParsing:$r.transitional($r.boolean),clarifyTimeoutError:$r.transitional($r.boolean)},!1),o!=null&&(re.isFunction(o)?n.paramsSerializer={serialize:o}:Ju.assertOptions(o,{encode:$r.function,serialize:$r.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=a&&re.merge(a.common,a[n.method]),u&&re.forEach(["delete","get","head","post","put","patch","common"],A=>{delete a[A]}),n.headers=$n.concat(u,a);const l=[];let f=!0;this.interceptors.request.forEach(function(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 g,p=0,w;if(!f){const A=[bh.bind(this),void 0];for(A.unshift.apply(A,l),A.push.apply(A,d),w=A.length,g=Promise.resolve(n);p<w;)g=g.then(A[p++],A[p++]);return g}w=l.length;let _=n;for(p=0;p<w;){const A=l[p++],S=l[p++];try{_=A(_)}catch(v){S.call(this,v);break}}try{g=bh.call(this,_)}catch(A){return Promise.reject(A)}for(p=0,w=d.length;p<w;)g=g.then(d[p++],d[p++]);return g}getUri(t){t=qi(this.defaults,t);const n=yh(t.baseURL,t.url);return lh(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){li.prototype[t]=function(n,i){return this.request(qi(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(qi(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}li.prototype[t]=n(),li.prototype[t+"Form"]=n(!0)});let M1=class sy{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 sy(function(o){t=o}),cancel:t}}};function U1(e){return function(n){return e.apply(null,n)}}function V1(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 Sh(e){const t=new li(e),n=Hf(li.prototype.request,t);return re.extend(n,li.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Sh(qi(e,o))},n}const it=Sh(Vi);it.Axios=li,it.CanceledError=Ps,it.CancelToken=M1,it.isCancel=gh,it.VERSION=wh,it.toFormData=Ko,it.AxiosError=pt,it.Cancel=it.CanceledError,it.all=function(t){return Promise.all(t)},it.spread=U1,it.isAxiosError=V1,it.mergeConfig=qi,it.AxiosHeaders=$n,it.formToJSON=e=>dh(re.isHTMLForm(e)?new FormData(e):e),it.HttpStatusCode=Yu,it.default=it;const{Axios:ST,AxiosError:ET,CanceledError:xT,isCancel:CT,CancelToken:_T,VERSION:kT,all:TT,Cancel:OT,isAxiosError:Go,spread:IT,toFormData:FT,AxiosHeaders:BT,HttpStatusCode:DT,formToJSON:PT,mergeConfig:RT}=it,Jo=async({endpoint:e,body:t})=>it.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Yo=async({endpoint:e,body:t})=>it.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),Xu=async({endpoint:e})=>it.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 I.jsx(z.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&&I.jsx(z.Alert,{type:"error",message:"Error while delete",description:i?.response?.data?.message})})},q1=({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 I.jsx(z.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&&I.jsx(z.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},Eh=()=>{const{token:e}=z.theme.useToken();return I.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.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}=z.theme.useToken();return I.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.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})})},W1={ContentContainer:Xe.div`
99
+ */(function(e){const t=zo,n=Ku,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=g,e.SlowBuffer=F,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:a,ArrayBuffer:u,SharedArrayBuffer:l}=globalThis;g.TYPED_ARRAY_SUPPORT=f(),!g.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const I=new a(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,a.prototype),Object.setPrototypeOf(I,y),I.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function d(I){if(I>o)throw new RangeError('The value "'+I+'" is invalid for option "size"');const y=new a(I);return Object.setPrototypeOf(y,g.prototype),y}function g(I,y,w){if(typeof I=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(I)}return p(I,y,w)}g.poolSize=8192;function p(I,y,w){if(typeof I=="string")return E(I,y);if(u.isView(I))return D(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(Et(I,u)||I&&Et(I.buffer,u)||typeof l<"u"&&(Et(I,l)||I&&Et(I.buffer,l)))return j(I,y,w);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const L=I.valueOf&&I.valueOf();if(L!=null&&L!==I)return g.from(L,y,w);const V=C(I);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return g.from(I[Symbol.toPrimitive]("string"),y,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}g.from=function(I,y,w){return p(I,y,w)},Object.setPrototypeOf(g.prototype,a.prototype),Object.setPrototypeOf(g,a);function v(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function _(I,y,w){return v(I),I<=0?d(I):y!==void 0?typeof w=="string"?d(I).fill(y,w):d(I).fill(y):d(I)}g.alloc=function(I,y,w){return _(I,y,w)};function S(I){return v(I),d(I<0?0:T(I)|0)}g.allocUnsafe=function(I){return S(I)},g.allocUnsafeSlow=function(I){return S(I)};function E(I,y){if((typeof y!="string"||y==="")&&(y="utf8"),!g.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=P(I,y)|0;let L=d(w);const V=L.write(I,y);return V!==w&&(L=L.slice(0,V)),L}function b(I){const y=I.length<0?0:T(I.length)|0,w=d(y);for(let L=0;L<y;L+=1)w[L]=I[L]&255;return w}function D(I){if(Et(I,a)){const y=new a(I);return j(y.buffer,y.byteOffset,y.byteLength)}return b(I)}function j(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 L;return y===void 0&&w===void 0?L=new a(I):w===void 0?L=new a(I,y):L=new a(I,y,w),Object.setPrototypeOf(L,g.prototype),L}function C(I){if(g.isBuffer(I)){const y=T(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 T(I){if(I>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return I|0}function F(I){return+I!=I&&(I=0),g.alloc(+I)}g.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==g.prototype},g.compare=function(y,w){if(Et(y,a)&&(y=g.from(y,y.offset,y.byteLength)),Et(w,a)&&(w=g.from(w,w.offset,w.byteLength)),!g.isBuffer(y)||!g.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===w)return 0;let L=y.length,V=w.length;for(let G=0,ee=Math.min(L,V);G<ee;++G)if(y[G]!==w[G]){L=y[G],V=w[G];break}return L<V?-1:V<L?1:0},g.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(y,w){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return g.alloc(0);let L;if(w===void 0)for(w=0,L=0;L<y.length;++L)w+=y[L].length;const V=g.allocUnsafe(w);let G=0;for(L=0;L<y.length;++L){let ee=y[L];if(Et(ee,a))G+ee.length>V.length?(g.isBuffer(ee)||(ee=g.from(ee)),ee.copy(V,G)):a.prototype.set.call(V,ee,G);else if(g.isBuffer(ee))ee.copy(V,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ee.length}return V};function P(I,y){if(g.isBuffer(I))return I.length;if(u.isView(I)||Et(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,L=arguments.length>2&&arguments[2]===!0;if(!L&&w===0)return 0;let V=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return ke(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return At(I).length;default:if(V)return L?-1:ke(I).length;y=(""+y).toLowerCase(),V=!0}}g.byteLength=P;function O(I,y,w){let L=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,y>>>=0,w<=y))return"";for(I||(I="utf8");;)switch(I){case"hex":return Me(this,y,w);case"utf8":case"utf-8":return Se(this,y,w);case"ascii":return Ae(this,y,w);case"latin1":case"binary":return me(this,y,w);case"base64":return Re(this,y,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,y,w);default:if(L)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),L=!0}}g.prototype._isBuffer=!0;function W(I,y,w){const L=I[y];I[y]=I[w],I[w]=L}g.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<y;w+=2)W(this,w,w+1);return this},g.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<y;w+=4)W(this,w,w+3),W(this,w+1,w+2);return this},g.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<y;w+=8)W(this,w,w+7),W(this,w+1,w+6),W(this,w+2,w+5),W(this,w+3,w+4);return this},g.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?Se(this,0,y):O.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(y){if(!g.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:g.compare(this,y)===0},g.prototype.inspect=function(){let y="";const w=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(y+=" ... "),"<Buffer "+y+">"},i&&(g.prototype[i]=g.prototype.inspect),g.prototype.compare=function(y,w,L,V,G){if(Et(y,a)&&(y=g.from(y,y.offset,y.byteLength)),!g.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(w===void 0&&(w=0),L===void 0&&(L=y?y.length:0),V===void 0&&(V=0),G===void 0&&(G=this.length),w<0||L>y.length||V<0||G>this.length)throw new RangeError("out of range index");if(V>=G&&w>=L)return 0;if(V>=G)return-1;if(w>=L)return 1;if(w>>>=0,L>>>=0,V>>>=0,G>>>=0,this===y)return 0;let ee=G-V,Ue=L-w;const pt=Math.min(ee,Ue),ct=this.slice(V,G),dt=y.slice(w,L);for(let st=0;st<pt;++st)if(ct[st]!==dt[st]){ee=ct[st],Ue=dt[st];break}return ee<Ue?-1:Ue<ee?1:0};function Y(I,y,w,L,V){if(I.length===0)return-1;if(typeof w=="string"?(L=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,rt(w)&&(w=V?0:I.length-1),w<0&&(w=I.length+w),w>=I.length){if(V)return-1;w=I.length-1}else if(w<0)if(V)w=0;else return-1;if(typeof y=="string"&&(y=g.from(y,L)),g.isBuffer(y))return y.length===0?-1:ce(I,y,w,L,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):ce(I,[y],w,L,V);throw new TypeError("val must be string, number or Buffer")}function ce(I,y,w,L,V){let G=1,ee=I.length,Ue=y.length;if(L!==void 0&&(L=String(L).toLowerCase(),L==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(I.length<2||y.length<2)return-1;G=2,ee/=2,Ue/=2,w/=2}function pt(dt,st){return G===1?dt[st]:dt.readUInt16BE(st*G)}let ct;if(V){let dt=-1;for(ct=w;ct<ee;ct++)if(pt(I,ct)===pt(y,dt===-1?0:ct-dt)){if(dt===-1&&(dt=ct),ct-dt+1===Ue)return dt*G}else dt!==-1&&(ct-=ct-dt),dt=-1}else for(w+Ue>ee&&(w=ee-Ue),ct=w;ct>=0;ct--){let dt=!0;for(let st=0;st<Ue;st++)if(pt(I,ct+st)!==pt(y,st)){dt=!1;break}if(dt)return ct}return-1}g.prototype.includes=function(y,w,L){return this.indexOf(y,w,L)!==-1},g.prototype.indexOf=function(y,w,L){return Y(this,y,w,L,!0)},g.prototype.lastIndexOf=function(y,w,L){return Y(this,y,w,L,!1)};function le(I,y,w,L){w=Number(w)||0;const V=I.length-w;L?(L=Number(L),L>V&&(L=V)):L=V;const G=y.length;L>G/2&&(L=G/2);let ee;for(ee=0;ee<L;++ee){const Ue=parseInt(y.substr(ee*2,2),16);if(rt(Ue))return ee;I[w+ee]=Ue}return ee}function ge(I,y,w,L){return St(ke(y,I.length-w),I,w,L)}function ye(I,y,w,L){return St(Pe(y),I,w,L)}function Ce(I,y,w,L){return St(At(y),I,w,L)}function pe(I,y,w,L){return St(he(y,I.length-w),I,w,L)}g.prototype.write=function(y,w,L,V){if(w===void 0)V="utf8",L=this.length,w=0;else if(L===void 0&&typeof w=="string")V=w,L=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(L)?(L=L>>>0,V===void 0&&(V="utf8")):(V=L,L=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-w;if((L===void 0||L>G)&&(L=G),y.length>0&&(L<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ee=!1;for(;;)switch(V){case"hex":return le(this,y,w,L);case"utf8":case"utf-8":return ge(this,y,w,L);case"ascii":case"latin1":case"binary":return ye(this,y,w,L);case"base64":return Ce(this,y,w,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,y,w,L);default:if(ee)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ee=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Re(I,y,w){return y===0&&w===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(y,w))}function Se(I,y,w){w=Math.min(I.length,w);const L=[];let V=y;for(;V<w;){const G=I[V];let ee=null,Ue=G>239?4:G>223?3:G>191?2:1;if(V+Ue<=w){let pt,ct,dt,st;switch(Ue){case 1:G<128&&(ee=G);break;case 2:pt=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,Ue=1):ee>65535&&(ee-=65536,L.push(ee>>>10&1023|55296),ee=56320|ee&1023),L.push(ee),V+=Ue}return He(L)}const Ee=4096;function He(I){const y=I.length;if(y<=Ee)return String.fromCharCode.apply(String,I);let w="",L=0;for(;L<y;)w+=String.fromCharCode.apply(String,I.slice(L,L+=Ee));return w}function Ae(I,y,w){let L="";w=Math.min(I.length,w);for(let V=y;V<w;++V)L+=String.fromCharCode(I[V]&127);return L}function me(I,y,w){let L="";w=Math.min(I.length,w);for(let V=y;V<w;++V)L+=String.fromCharCode(I[V]);return L}function Me(I,y,w){const L=I.length;(!y||y<0)&&(y=0),(!w||w<0||w>L)&&(w=L);let V="";for(let G=y;G<w;++G)V+=we[I[G]];return V}function J(I,y,w){const L=I.slice(y,w);let V="";for(let G=0;G<L.length-1;G+=2)V+=String.fromCharCode(L[G]+L[G+1]*256);return V}g.prototype.slice=function(y,w){const L=this.length;y=~~y,w=w===void 0?L:~~w,y<0?(y+=L,y<0&&(y=0)):y>L&&(y=L),w<0?(w+=L,w<0&&(w=0)):w>L&&(w=L),w<y&&(w=y);const V=this.subarray(y,w);return Object.setPrototypeOf(V,g.prototype),V};function X(I,y,w){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+y>w)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(y,w,L){y=y>>>0,w=w>>>0,L||X(y,w,this.length);let V=this[y],G=1,ee=0;for(;++ee<w&&(G*=256);)V+=this[y+ee]*G;return V},g.prototype.readUintBE=g.prototype.readUIntBE=function(y,w,L){y=y>>>0,w=w>>>0,L||X(y,w,this.length);let V=this[y+--w],G=1;for(;w>0&&(G*=256);)V+=this[y+--w]*G;return V},g.prototype.readUint8=g.prototype.readUInt8=function(y,w){return y=y>>>0,w||X(y,1,this.length),this[y]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(y,w){return y=y>>>0,w||X(y,2,this.length),this[y]|this[y+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(y,w){return y=y>>>0,w||X(y,2,this.length),this[y]<<8|this[y+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(y,w){return y=y>>>0,w||X(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(y,w){return y=y>>>0,w||X(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},g.prototype.readBigUInt64LE=Te(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],L=this[y+7];(w===void 0||L===void 0)&&bt(y,this.length-8);const V=w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,G=this[++y]+this[++y]*2**8+this[++y]*2**16+L*2**24;return BigInt(V)+(BigInt(G)<<BigInt(32))}),g.prototype.readBigUInt64BE=Te(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],L=this[y+7];(w===void 0||L===void 0)&&bt(y,this.length-8);const V=w*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],G=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L;return(BigInt(V)<<BigInt(32))+BigInt(G)}),g.prototype.readIntLE=function(y,w,L){y=y>>>0,w=w>>>0,L||X(y,w,this.length);let V=this[y],G=1,ee=0;for(;++ee<w&&(G*=256);)V+=this[y+ee]*G;return G*=128,V>=G&&(V-=Math.pow(2,8*w)),V},g.prototype.readIntBE=function(y,w,L){y=y>>>0,w=w>>>0,L||X(y,w,this.length);let V=w,G=1,ee=this[y+--V];for(;V>0&&(G*=256);)ee+=this[y+--V]*G;return G*=128,ee>=G&&(ee-=Math.pow(2,8*w)),ee},g.prototype.readInt8=function(y,w){return y=y>>>0,w||X(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},g.prototype.readInt16LE=function(y,w){y=y>>>0,w||X(y,2,this.length);const L=this[y]|this[y+1]<<8;return L&32768?L|4294901760:L},g.prototype.readInt16BE=function(y,w){y=y>>>0,w||X(y,2,this.length);const L=this[y+1]|this[y]<<8;return L&32768?L|4294901760:L},g.prototype.readInt32LE=function(y,w){return y=y>>>0,w||X(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},g.prototype.readInt32BE=function(y,w){return y=y>>>0,w||X(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},g.prototype.readBigInt64LE=Te(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],L=this[y+7];(w===void 0||L===void 0)&&bt(y,this.length-8);const V=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(L<<24);return(BigInt(V)<<BigInt(32))+BigInt(w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),g.prototype.readBigInt64BE=Te(function(y){y=y>>>0,Nt(y,"offset");const w=this[y],L=this[y+7];(w===void 0||L===void 0)&&bt(y,this.length-8);const V=(w<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(V)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L)}),g.prototype.readFloatLE=function(y,w){return y=y>>>0,w||X(y,4,this.length),n.read(this,y,!0,23,4)},g.prototype.readFloatBE=function(y,w){return y=y>>>0,w||X(y,4,this.length),n.read(this,y,!1,23,4)},g.prototype.readDoubleLE=function(y,w){return y=y>>>0,w||X(y,8,this.length),n.read(this,y,!0,52,8)},g.prototype.readDoubleBE=function(y,w){return y=y>>>0,w||X(y,8,this.length),n.read(this,y,!1,52,8)};function ae(I,y,w,L,V,G){if(!g.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>V||y<G)throw new RangeError('"value" argument is out of bounds');if(w+L>I.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(y,w,L,V){if(y=+y,w=w>>>0,L=L>>>0,!V){const Ue=Math.pow(2,8*L)-1;ae(this,y,w,L,Ue,0)}let G=1,ee=0;for(this[w]=y&255;++ee<L&&(G*=256);)this[w+ee]=y/G&255;return w+L},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(y,w,L,V){if(y=+y,w=w>>>0,L=L>>>0,!V){const Ue=Math.pow(2,8*L)-1;ae(this,y,w,L,Ue,0)}let G=L-1,ee=1;for(this[w+G]=y&255;--G>=0&&(ee*=256);)this[w+G]=y/ee&255;return w+L},g.prototype.writeUint8=g.prototype.writeUInt8=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,1,255,0),this[w]=y&255,w+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,2,65535,0),this[w]=y&255,this[w+1]=y>>>8,w+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,2,65535,0),this[w]=y>>>8,this[w+1]=y&255,w+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,4,4294967295,0),this[w+3]=y>>>24,this[w+2]=y>>>16,this[w+1]=y>>>8,this[w]=y&255,w+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,4,4294967295,0),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4};function Be(I,y,w,L,V){jt(y,L,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 We(I,y,w,L,V){jt(y,L,V,I,w,7);let G=Number(y&BigInt(4294967295));I[w+7]=G,G=G>>8,I[w+6]=G,G=G>>8,I[w+5]=G,G=G>>8,I[w+4]=G;let ee=Number(y>>BigInt(32)&BigInt(4294967295));return I[w+3]=ee,ee=ee>>8,I[w+2]=ee,ee=ee>>8,I[w+1]=ee,ee=ee>>8,I[w]=ee,w+8}g.prototype.writeBigUInt64LE=Te(function(y,w=0){return Be(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=Te(function(y,w=0){return We(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(y,w,L,V){if(y=+y,w=w>>>0,!V){const pt=Math.pow(2,8*L-1);ae(this,y,w,L,pt-1,-pt)}let G=0,ee=1,Ue=0;for(this[w]=y&255;++G<L&&(ee*=256);)y<0&&Ue===0&&this[w+G-1]!==0&&(Ue=1),this[w+G]=(y/ee>>0)-Ue&255;return w+L},g.prototype.writeIntBE=function(y,w,L,V){if(y=+y,w=w>>>0,!V){const pt=Math.pow(2,8*L-1);ae(this,y,w,L,pt-1,-pt)}let G=L-1,ee=1,Ue=0;for(this[w+G]=y&255;--G>=0&&(ee*=256);)y<0&&Ue===0&&this[w+G+1]!==0&&(Ue=1),this[w+G]=(y/ee>>0)-Ue&255;return w+L},g.prototype.writeInt8=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,1,127,-128),y<0&&(y=255+y+1),this[w]=y&255,w+1},g.prototype.writeInt16LE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,2,32767,-32768),this[w]=y&255,this[w+1]=y>>>8,w+2},g.prototype.writeInt16BE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,2,32767,-32768),this[w]=y>>>8,this[w+1]=y&255,w+2},g.prototype.writeInt32LE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,4,2147483647,-2147483648),this[w]=y&255,this[w+1]=y>>>8,this[w+2]=y>>>16,this[w+3]=y>>>24,w+4},g.prototype.writeInt32BE=function(y,w,L){return y=+y,w=w>>>0,L||ae(this,y,w,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4},g.prototype.writeBigInt64LE=Te(function(y,w=0){return Be(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=Te(function(y,w=0){return We(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _e(I,y,w,L,V,G){if(w+L>I.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function De(I,y,w,L,V){return y=+y,w=w>>>0,V||_e(I,y,w,4),n.write(I,y,w,L,23,4),w+4}g.prototype.writeFloatLE=function(y,w,L){return De(this,y,w,!0,L)},g.prototype.writeFloatBE=function(y,w,L){return De(this,y,w,!1,L)};function Oe(I,y,w,L,V){return y=+y,w=w>>>0,V||_e(I,y,w,8),n.write(I,y,w,L,52,8),w+8}g.prototype.writeDoubleLE=function(y,w,L){return Oe(this,y,w,!0,L)},g.prototype.writeDoubleBE=function(y,w,L){return Oe(this,y,w,!1,L)},g.prototype.copy=function(y,w,L,V){if(!g.isBuffer(y))throw new TypeError("argument should be a Buffer");if(L||(L=0),!V&&V!==0&&(V=this.length),w>=y.length&&(w=y.length),w||(w=0),V>0&&V<L&&(V=L),V===L||y.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(L<0||L>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),y.length-w<V-L&&(V=y.length-w+L);const G=V-L;return this===y&&typeof a.prototype.copyWithin=="function"?this.copyWithin(w,L,V):a.prototype.set.call(y,this.subarray(L,V),w),G},g.prototype.fill=function(y,w,L,V){if(typeof y=="string"){if(typeof w=="string"?(V=w,w=0,L=this.length):typeof L=="string"&&(V=L,L=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!g.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(y.length===1){const ee=y.charCodeAt(0);(V==="utf8"&&ee<128||V==="latin1")&&(y=ee)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(w<0||this.length<w||this.length<L)throw new RangeError("Out of range index");if(L<=w)return this;w=w>>>0,L=L===void 0?this.length:L>>>0,y||(y=0);let G;if(typeof y=="number")for(G=w;G<L;++G)this[G]=y;else{const ee=g.isBuffer(y)?y:g.from(y,V),Ue=ee.length;if(Ue===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(G=0;G<L-w;++G)this[G+w]=ee[G%Ue]}return this};const Le={};function Tt(I,y,w){Le[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}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(I,y){return`The "${I}" argument must be of type number. Received type ${typeof y}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(I,y,w){let L=`The value of "${I}" is out of range.`,V=w;return Number.isInteger(w)&&Math.abs(w)>2**32?V=rn(String(w)):typeof w=="bigint"&&(V=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(V=rn(V)),V+="n"),L+=` It must be ${y}. Received ${V}`,L},RangeError);function rn(I){let y="",w=I.length;const L=I[0]==="-"?1:0;for(;w>=L+4;w-=3)y=`_${I.slice(w-3,w)}${y}`;return`${I.slice(0,w)}${y}`}function Lt(I,y,w){Nt(y,"offset"),(I[y]===void 0||I[y+w]===void 0)&&bt(y,I.length-(w+1))}function jt(I,y,w,L,V,G){if(I>w||I<y){const ee=typeof y=="bigint"?"n":"";let Ue;throw y===0||y===BigInt(0)?Ue=`>= 0${ee} and < 2${ee} ** ${(G+1)*8}${ee}`:Ue=`>= -(2${ee} ** ${(G+1)*8-1}${ee}) and < 2 ** ${(G+1)*8-1}${ee}`,new Le.ERR_OUT_OF_RANGE("value",Ue,I)}Lt(L,V,G)}function Nt(I,y){if(typeof I!="number")throw new Le.ERR_INVALID_ARG_TYPE(y,"number",I)}function bt(I,y,w){throw Math.floor(I)!==I?(Nt(I,w),new Le.ERR_OUT_OF_RANGE("offset","an integer",I)):y<0?new Le.ERR_BUFFER_OUT_OF_BOUNDS:new Le.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 ke(I,y){y=y||1/0;let w;const L=I.length;let V=null;const G=[];for(let ee=0;ee<L;++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===L){(y-=3)>-1&&G.push(239,191,189);continue}V=w;continue}if(w<56320){(y-=3)>-1&&G.push(239,191,189),V=w;continue}w=(V-55296<<10|w-56320)+65536}else V&&(y-=3)>-1&&G.push(239,191,189);if(V=null,w<128){if((y-=1)<0)break;G.push(w)}else if(w<2048){if((y-=2)<0)break;G.push(w>>6|192,w&63|128)}else if(w<65536){if((y-=3)<0)break;G.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((y-=4)<0)break;G.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return G}function Pe(I){const y=[];for(let w=0;w<I.length;++w)y.push(I.charCodeAt(w)&255);return y}function he(I,y){let w,L,V;const G=[];for(let ee=0;ee<I.length&&!((y-=2)<0);++ee)w=I.charCodeAt(ee),L=w>>8,V=w%256,G.push(V),G.push(L);return G}function At(I){return t.toByteArray(An(I))}function St(I,y,w,L){let V;for(V=0;V<L&&!(V+w>=y.length||V>=I.length);++V)y[V+w]=I[V];return V}function Et(I,y){return I instanceof y||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===y.name}function rt(I){return I!==I}const we=function(){const I="0123456789abcdef",y=new Array(256);for(let w=0;w<16;++w){const L=w*16;for(let V=0;V<16;++V)y[L+V]=I[w]+I[V]}return y}();function Te(I){return typeof BigInt>"u"?ut:I}function ut(){throw new Error("BigInt not supported")}})(ah);const vm=ah.Buffer;function ht(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}re.inherits(ht,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ch=ht.prototype,lh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lh[e]={value:e}}),Object.defineProperties(ht,lh),Object.defineProperty(ch,"isAxiosError",{value:!0}),ht.from=(e,t,n,i,o,a)=>{const u=Object.create(ch);return re.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),ht.call(u,e.message,t,n,i,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const Am=null;function Hu(e){return re.isPlainObject(e)||re.isArray(e)}function fh(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function hh(e,t,n){return e?e.concat(t).map(function(o,a){return o=fh(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function Sm(e){return re.isArray(e)&&!e.some(Hu)}const Em=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function Go(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,b){return!re.isUndefined(b[E])});const i=n.metaTokens,o=n.visitor||g,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(o))throw new TypeError("visitor must be a function");function d(S){if(S===null)return"";if(re.isDate(S))return S.toISOString();if(!f&&re.isBlob(S))throw new ht("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(S)||re.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):vm.from(S):S}function g(S,E,b){let D=S;if(S&&!b&&typeof S=="object"){if(re.endsWith(E,"{}"))E=i?E:E.slice(0,-2),S=JSON.stringify(S);else if(re.isArray(S)&&Sm(S)||(re.isFileList(S)||re.endsWith(E,"[]"))&&(D=re.toArray(S)))return E=fh(E),D.forEach(function(C,T){!(re.isUndefined(C)||C===null)&&t.append(u===!0?hh([E],T,a):u===null?E:E+"[]",d(C))}),!1}return Hu(S)?!0:(t.append(hh(b,E,a),d(S)),!1)}const p=[],v=Object.assign(Em,{defaultVisitor:g,convertValue:d,isVisitable:Hu});function _(S,E){if(!re.isUndefined(S)){if(p.indexOf(S)!==-1)throw Error("Circular reference detected in "+E.join("."));p.push(S),re.forEach(S,function(D,j){(!(re.isUndefined(D)||D===null)&&o.call(t,D,re.isString(j)?j.trim():j,E,v))===!0&&_(D,E?E.concat(j):[j])}),p.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return _(e),t}function dh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function zu(e,t){this._pairs=[],e&&Go(e,this,t)}const ph=zu.prototype;ph.append=function(t,n){this._pairs.push([t,n])},ph.toString=function(t){const n=t?function(i){return t.call(this,i,dh)}:dh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function xm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gh(e,t,n){if(!t)return e;const i=n&&n.encode||xm,o=n&&n.serialize;let a;if(o?a=o(t,n):a=re.isURLSearchParams(t)?t.toString():new zu(t,n).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class yh{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(i){i!==null&&t(i)})}}const mh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cm=typeof URLSearchParams<"u"?URLSearchParams:zu,_m=typeof FormData<"u"?FormData:null,km=typeof Blob<"u"?Blob:null,Tm=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Om=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gr={classes:{URLSearchParams:Cm,FormData:_m,Blob:km},isStandardBrowserEnv:Tm,isStandardBrowserWebWorkerEnv:Om,protocols:["http","https","file","blob","url","data"]};function Im(e,t){return Go(e,new gr.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,a){return gr.isNode&&re.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Fm(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Bm(e){const t={},n=Object.keys(e);let i;const o=n.length;let a;for(i=0;i<o;i++)a=n[i],t[a]=e[a];return t}function wh(e){function t(n,i,o,a){let u=n[a++];const l=Number.isFinite(+u),f=a>=n.length;return u=!u&&re.isArray(o)?o.length:u,f?(re.hasOwnProp(o,u)?o[u]=[o[u],i]:o[u]=i,!l):((!o[u]||!re.isObject(o[u]))&&(o[u]=[]),t(n,i,o[u],a)&&re.isArray(o[u])&&(o[u]=Bm(o[u])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(i,o)=>{t(Fm(i),o,n,0)}),n}return null}const Dm={"Content-Type":void 0};function Pm(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Ki={transitional:mh,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,a=re.isObject(t);if(a&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return o&&o?JSON.stringify(wh(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Im(t,this.formSerializer).toString();if((l=re.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Go(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Pm(t)):t}],transformResponse:[function(t){const n=this.transitional||Ki.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&re.isString(t)&&(i&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(u)throw l.name==="SyntaxError"?ht.from(l,ht.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gr.classes.FormData,Blob:gr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};re.forEach(["delete","get","head"],function(t){Ki.headers[t]={}}),re.forEach(["post","put","patch"],function(t){Ki.headers[t]=re.merge(Dm)});const Rm=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"]),Lm=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]&&Rm[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},bh=Symbol("internals");function Rs(e){return e&&String(e).trim().toLowerCase()}function Jo(e){return e===!1||e==null?e:re.isArray(e)?e.map(Jo):String(e)}function jm(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 Nm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Gu(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 $m(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Mm(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,a,u){return this[i].call(this,t,o,a,u)},configurable:!0})})}let $n=class{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function a(l,f,d){const g=Rs(f);if(!g)throw new Error("header name must be a non-empty string");const p=re.findKey(o,g);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||f]=Jo(l))}const u=(l,f)=>re.forEach(l,(d,g)=>a(d,g,f));return re.isPlainObject(t)||t instanceof this.constructor?u(t,n):re.isString(t)&&(t=t.trim())&&!Nm(t)?u(Lm(t),n):t!=null&&a(n,t,i),this}get(t,n){if(t=Rs(t),t){const i=re.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return jm(o);if(re.isFunction(n))return n.call(this,o,i);if(re.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rs(t),t){const i=re.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Gu(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function a(u){if(u=Rs(u),u){const l=re.findKey(i,u);l&&(!n||Gu(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||Gu(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,i={};return re.forEach(this,(o,a)=>{const u=re.findKey(i,a);if(u){n[u]=Jo(o),delete n[a];return}const l=t?$m(a):String(a).trim();l!==a&&delete n[a],n[l]=Jo(o),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&re.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
101
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[bh]=this[bh]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=Rs(u);i[l]||(Mm(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 Ju(e,t){const n=this||Ki,i=t||n,o=$n.from(i.headers);let a=i.data;return re.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function vh(e){return!!(e&&e.__CANCEL__)}function Ls(e,t,n){ht.call(this,e??"canceled",ht.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ls,ht,{__CANCEL__:!0});function Um(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 Vm=gr.isStandardBrowserEnv?function(){return{write:function(n,i,o,a,u,l){const f=[];f.push(n+"="+encodeURIComponent(i)),re.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),re.isString(a)&&f.push("path="+a),re.isString(u)&&f.push("domain="+u),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function qm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Wm(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ah(e,t){return e&&!qm(t)?Wm(e,t):t}const Km=gr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function o(a){let u=a;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(u){const l=re.isString(u)?o(u):u;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function Hm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zm(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),g=i[a];u||(u=d),n[o]=f,i[o]=d;let p=a,v=0;for(;p!==o;)v+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-u<t)return;const _=g&&d-g;return _?Math.round(v*1e3/_):void 0}}function Sh(e,t){let n=0;const i=zm(50,250);return o=>{const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=a-n,f=i(l),d=a<=u;n=a;const g={loaded:a,total:u,progress:u?a/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&d?(u-a)/f:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const Yo={http:Am,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){let o=e.data;const a=$n.from(e.headers).normalize(),u=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}re.isFormData(o)&&(gr.isStandardBrowserEnv||gr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(_+":"+S))}const g=Ah(e.baseURL,e.url);d.open(e.method.toUpperCase(),gh(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const _=$n.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),E={data:!u||u==="text"||u==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};Um(function(D){n(D),f()},function(D){i(D),f()},E),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(i(new ht("Request aborted",ht.ECONNABORTED,e,d)),d=null)},d.onerror=function(){i(new ht("Network Error",ht.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||mh;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(new ht(S,E.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,d)),d=null},gr.isStandardBrowserEnv){const _=(e.withCredentials||Km(g))&&e.xsrfCookieName&&Vm.read(e.xsrfCookieName);_&&a.set(e.xsrfHeaderName,_)}o===void 0&&a.setContentType(null),"setRequestHeader"in d&&re.forEach(a.toJSON(),function(S,E){d.setRequestHeader(E,S)}),re.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),u&&u!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Sh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Sh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=_=>{d&&(i(!_||_.type?new Ls(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=Hm(g);if(v&&gr.protocols.indexOf(v)===-1){i(new ht("Unsupported protocol "+v+":",ht.ERR_BAD_REQUEST,e));return}d.send(o||null)})}};re.forEach(Yo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gm={getAdapter:e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let o=0;o<t&&(n=e[o],!(i=re.isString(n)?Yo[n.toLowerCase()]:n));o++);if(!i)throw i===!1?new ht(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(re.hasOwnProp(Yo,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!re.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:Yo};function Yu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ls(null,e)}function Eh(e){return Yu(e),e.headers=$n.from(e.headers),e.data=Ju.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gm.getAdapter(e.adapter||Ki.adapter)(e).then(function(i){return Yu(e),i.data=Ju.call(e,e.transformResponse,i),i.headers=$n.from(i.headers),i},function(i){return vh(i)||(Yu(e),i&&i.response&&(i.response.data=Ju.call(e,e.transformResponse,i.response),i.response.headers=$n.from(i.response.headers))),Promise.reject(i)})}const xh=e=>e instanceof $n?e.toJSON():e;function Hi(e,t){t=t||{};const n={};function i(d,g,p){return re.isPlainObject(d)&&re.isPlainObject(g)?re.merge.call({caseless:p},d,g):re.isPlainObject(g)?re.merge({},g):re.isArray(g)?g.slice():g}function o(d,g,p){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d,p)}else return i(d,g,p)}function a(d,g){if(!re.isUndefined(g))return i(void 0,g)}function u(d,g){if(re.isUndefined(g)){if(!re.isUndefined(d))return i(void 0,d)}else return i(void 0,g)}function l(d,g,p){if(p in t)return i(d,g);if(p in e)return i(void 0,d)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(d,g)=>o(xh(d),xh(g),!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(g){const p=f[g]||o,v=p(e[g],t[g],g);re.isUndefined(v)&&p!==l||(n[g]=v)}),n}const Ch="1.4.0",Qu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const _h={};Qu.transitional=function(t,n,i){function o(a,u){return"[Axios v"+Ch+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,l)=>{if(t===!1)throw new ht(o(u," has been removed"+(n?" in "+n:"")),ht.ERR_DEPRECATED);return n&&!_h[u]&&(_h[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,l):!0}};function Jm(e,t,n){if(typeof e!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],u=t[a];if(u){const l=e[a],f=l===void 0||u(l,a,e);if(f!==!0)throw new ht("option "+a+" must be "+f,ht.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ht("Unknown option "+a,ht.ERR_BAD_OPTION)}}const Xu={assertOptions:Jm,validators:Qu},Ur=Xu.validators;let di=class{constructor(t){this.defaults=t,this.interceptors={request:new yh,response:new yh}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Hi(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:a}=n;i!==void 0&&Xu.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}:Xu.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(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let g,p=0,v;if(!f){const S=[Eh.bind(this),void 0];for(S.unshift.apply(S,l),S.push.apply(S,d),v=S.length,g=Promise.resolve(n);p<v;)g=g.then(S[p++],S[p++]);return g}v=l.length;let _=n;for(p=0;p<v;){const S=l[p++],E=l[p++];try{_=S(_)}catch(b){E.call(this,b);break}}try{g=Eh.call(this,_)}catch(S){return Promise.reject(S)}for(p=0,v=d.length;p<v;)g=g.then(d[p++],d[p++]);return g}getUri(t){t=Hi(this.defaults,t);const n=Ah(t.baseURL,t.url);return gh(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){di.prototype[t]=function(n,i){return this.request(Hi(i||{},{method:t,url:n,data:(i||{}).data}))}}),re.forEach(["post","put","patch"],function(t){function n(i){return function(a,u,l){return this.request(Hi(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}di.prototype[t]=n(),di.prototype[t+"Form"]=n(!0)});let Ym=class g1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const u=new Promise(l=>{i.subscribe(l),a=l}).then(o);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,l){i.reason||(i.reason=new Ls(a,u,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new g1(function(o){t=o}),cancel:t}}};function Qm(e){return function(n){return e.apply(null,n)}}function Xm(e){return re.isObject(e)&&e.isAxiosError===!0}const Zu={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(Zu).forEach(([e,t])=>{Zu[t]=e});function kh(e){const t=new di(e),n=Qf(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 kh(Hi(e,o))},n}const nt=kh(Ki);nt.Axios=di,nt.CanceledError=Ls,nt.CancelToken=Ym,nt.isCancel=vh,nt.VERSION=Ch,nt.toFormData=Go,nt.AxiosError=ht,nt.Cancel=nt.CanceledError,nt.all=function(t){return Promise.all(t)},nt.spread=Qm,nt.isAxiosError=Xm,nt.mergeConfig=Hi,nt.AxiosHeaders=$n,nt.formToJSON=e=>wh(re.isHTMLForm(e)?new FormData(e):e),nt.HttpStatusCode=Zu,nt.default=nt;const{Axios:I8,AxiosError:F8,CanceledError:B8,isCancel:D8,CancelToken:P8,VERSION:R8,all:L8,Cancel:j8,isAxiosError:Qo,spread:N8,toFormData:$8,AxiosHeaders:M8,HttpStatusCode:U8,formToJSON:V8,mergeConfig:q8}=nt,Xo=async({endpoint:e,body:t})=>nt.post(e,JSON.stringify(t),{method:"POST",headers:{"Content-Type":"application/json"}}),Zo=async({endpoint:e,body:t})=>nt.put(e,JSON.stringify(t),{method:"PUT",headers:{"Content-Type":"application/json"}}),ec=async({endpoint:e})=>nt.delete(e),tc=({name:e,onClose:t,endpoint:n})=>{const[i,o]=Z.useState(),[a,u]=Z.useState(!1),l=()=>{u(!0),o(void 0),ec({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})})},Zm=({data:e,onClose:t})=>{const[n,i]=Z.useState(),[o,a]=Z.useState(!1),u=()=>{a(!0),i(void 0);const l=e.map(({endpoint:f})=>ec({endpoint:f}));Promise.all(l).then(()=>{t(),a(!1),i(void 0)}).catch(f=>{a(!1),i(f)})};return A.jsx(q.Modal,{title:"Delete selected",open:!0,onOk:()=>u(),onCancel:()=>{t(),a(!1),i(void 0)},okText:"Delete",confirmLoading:o,okButtonProps:{danger:!0},width:400,children:n&&A.jsx(q.Alert,{type:"error",message:"Error while delete",description:n?.response?.data?.message})})},Th=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M17.25 3.5H14.25V1.625C14.25 0.797656 13.5773 0.125 12.75 0.125H5.25C4.42266 0.125 3.75 0.797656 3.75 1.625V3.5H0.75C0.335156 3.5 0 3.83516 0 4.25V5C0 5.10313 0.084375 5.1875 0.1875 5.1875H1.60312L2.18203 17.4453C2.21953 18.2445 2.88047 18.875 3.67969 18.875H14.3203C15.1219 18.875 15.7805 18.2469 15.818 17.4453L16.3969 5.1875H17.8125C17.9156 5.1875 18 5.10313 18 5V4.25C18 3.83516 17.6648 3.5 17.25 3.5ZM12.5625 3.5H5.4375V1.8125H12.5625V3.5Z",fill:e.colorText})})},Oh=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:e.colorText})})},Ih=()=>A.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("g",{clipPath:"url(#clip0_186_9937)",children:A.jsx("path",{d:"M6.33719 9.39777L11.0528 3.36027C11.0652 3.34449 11.073 3.32553 11.0751 3.30557C11.0772 3.2856 11.0737 3.26544 11.0649 3.2474C11.056 3.22936 11.0423 3.21417 11.0253 3.20357C11.0082 3.19298 10.9885 3.18741 10.9684 3.1875L9.93317 3.1875C9.86754 3.1875 9.8046 3.2183 9.76442 3.2692L5.99969 8.09063L2.23495 3.2692C2.19478 3.21697 2.13183 3.1875 2.0662 3.1875L1.03094 3.1875C0.941204 3.1875 0.89165 3.29063 0.946561 3.36027L5.66219 9.39777C5.70221 9.44908 5.75342 9.4906 5.8119 9.51915C5.87038 9.5477 5.93461 9.56254 5.99969 9.56254C6.06477 9.56254 6.12899 9.5477 6.18747 9.51915C6.24596 9.4906 6.29716 9.44908 6.33719 9.39777Z",fill:"currentColor"})}),A.jsx("defs",{children:A.jsx("clipPath",{id:"clip0_186_9937",children:A.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(12) rotate(90)"})})})]}),Fh=()=>A.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("g",{clipPath:"url(#clip0_186_11488)",children:A.jsx("path",{d:"M5.66281 2.60223L0.947189 8.63973C0.934768 8.65551 0.92705 8.67447 0.924919 8.69443C0.922788 8.7144 0.926332 8.73456 0.935143 8.7526C0.943955 8.77064 0.957676 8.78583 0.974732 8.79643C0.991787 8.80702 1.01149 8.81259 1.03156 8.8125L2.06683 8.8125C2.13246 8.8125 2.1954 8.7817 2.23558 8.7308L6.00031 3.90937L9.76505 8.7308C9.80522 8.78303 9.86817 8.8125 9.9338 8.8125L10.9691 8.8125C11.0588 8.8125 11.1083 8.70937 11.0534 8.63973L6.33781 2.60223C6.29779 2.55092 6.24658 2.5094 6.1881 2.48085C6.12962 2.4523 6.06539 2.43746 6.00031 2.43746C5.93523 2.43746 5.87101 2.4523 5.81253 2.48085C5.75404 2.5094 5.70284 2.55092 5.66281 2.60223Z",fill:"currentColor"})}),A.jsx("defs",{children:A.jsx("clipPath",{id:"clip0_186_11488",children:A.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12) rotate(-90)"})})})]}),Bh=()=>{const{token:e}=q.theme.useToken();return A.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsxs("g",{clipPath:"url(#clip0_294_13557)",children:[A.jsx("path",{d:"M0.568356 1.62165L1.19782 2.11384C2.05608 1.01674 3.3909 0.3125 4.88978 0.3125C7.47795 0.3125 9.57282 2.40513 9.57617 4.99442C9.57952 7.58594 7.48019 9.6875 4.88978 9.6875C2.86635 9.6875 1.14202 8.40402 0.485765 6.60603C0.469025 6.55915 0.493578 6.5067 0.540453 6.49107L1.17327 6.27344C1.19533 6.26588 1.21948 6.26725 1.24054 6.27726C1.26161 6.28727 1.27792 6.30513 1.28599 6.32701C1.30608 6.38281 1.3284 6.43862 1.35184 6.4933C1.54492 6.95089 1.8217 7.36161 2.17438 7.71429C2.52421 8.06478 2.93841 8.34445 3.39425 8.53795C3.86635 8.73772 4.36969 8.83929 4.88755 8.83929C5.40653 8.83929 5.90876 8.73772 6.38086 8.53795C6.83713 8.34526 7.25148 8.06549 7.60072 7.71429C7.9515 7.3645 8.23087 6.9498 8.42327 6.4933C8.62304 6.02009 8.72461 5.51786 8.72461 4.99888C8.72461 4.47991 8.62304 3.97768 8.42327 3.50446C8.23019 3.04688 7.9534 2.63616 7.60072 2.28348C7.24804 1.9308 6.83733 1.65402 6.38086 1.45982C5.90876 1.26004 5.40541 1.15848 4.88755 1.15848C4.36858 1.15848 3.86635 1.26004 3.39425 1.45982C2.93797 1.65251 2.52362 1.93228 2.17438 2.28348C2.06389 2.39397 1.9601 2.51116 1.86411 2.63393L2.53599 3.15848C2.54928 3.16877 2.5594 3.18259 2.56519 3.19837C2.57097 3.21415 2.57219 3.23125 2.56869 3.24768C2.56519 3.26412 2.55712 3.27924 2.54542 3.2913C2.53371 3.30336 2.51884 3.31187 2.50251 3.31585L0.542685 3.79576C0.486881 3.80915 0.432195 3.76674 0.432195 3.70982L0.423265 1.69085C0.424381 1.61719 0.51032 1.57589 0.568356 1.62165Z",fill:e.colorPrimary}),A.jsx("circle",{cx:"4.99935",cy:"5.00033",r:"2.08333",fill:e.colorPrimary})]}),A.jsx("defs",{children:A.jsx("clipPath",{id:"clip0_294_13557",children:A.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})},Dh=()=>{const{token:e}=q.theme.useToken();return A.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("g",{clipPath:"url(#clip0_661_14605)",children:A.jsx("path",{d:"M14.6751 8.38707C14.9751 7.99064 15.1412 7.50492 15.1412 6.99957C15.1412 6.19778 14.693 5.43885 13.9715 5.01564C13.7858 4.9067 13.5744 4.84937 13.359 4.84957H9.0769L9.18404 2.65492C9.20904 2.12457 9.02154 1.621 8.65726 1.23707C8.47848 1.04783 8.2628 0.897269 8.02353 0.794683C7.78427 0.692098 7.52651 0.63967 7.26618 0.640638C6.33761 0.640638 5.51618 1.26564 5.26976 2.16028L3.73583 7.71385H1.4269C1.11083 7.71385 0.855469 7.96921 0.855469 8.28528V14.7853C0.855469 15.1014 1.11083 15.3567 1.4269 15.3567H12.1644C12.3287 15.3567 12.4894 15.3246 12.6376 15.2603C13.4876 14.8978 14.0358 14.0674 14.0358 13.146C14.0358 12.921 14.0037 12.6996 13.9394 12.4853C14.2394 12.0889 14.4055 11.6031 14.4055 11.0978C14.4055 10.8728 14.3733 10.6514 14.309 10.4371C14.609 10.0406 14.7751 9.55492 14.7751 9.04957C14.7715 8.82457 14.7394 8.60135 14.6751 8.38707ZM2.14118 14.071V8.99957H3.58761V14.071H2.14118ZM13.5055 7.76742L13.1144 8.10671L13.3626 8.56028C13.4444 8.70969 13.4868 8.87746 13.4858 9.04778C13.4858 9.34242 13.3573 9.62278 13.1358 9.81564L12.7448 10.1549L12.993 10.6085C13.0747 10.7579 13.1171 10.9257 13.1162 11.096C13.1162 11.3906 12.9876 11.671 12.7662 11.8639L12.3751 12.2031L12.6233 12.6567C12.7051 12.8061 12.7475 12.9739 12.7465 13.1442C12.7465 13.5442 12.5108 13.9049 12.1465 14.0692H4.73047V8.94242L6.50726 2.50492C6.55307 2.33992 6.65142 2.19436 6.7874 2.09027C6.92339 1.98619 7.08959 1.92927 7.26083 1.92814C7.39654 1.92814 7.53047 1.96742 7.63761 2.04778C7.8144 2.17992 7.90904 2.37992 7.89833 2.59242L7.7269 6.13528H13.3412C13.659 6.32992 13.8555 6.6585 13.8555 6.99957C13.8555 7.29421 13.7269 7.57278 13.5055 7.76742Z",fill:e.colorSuccess})}),A.jsx("defs",{children:A.jsx("clipPath",{id:"clip0_661_14605",children:A.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})},e2={success:A.jsx(Mt.CheckCircleFilled,{}),error:A.jsx(Mt.CloseCircleFilled,{}),warning:A.jsx(Mt.ExclamationCircleFilled,{}),validating:A.jsx(Mt.LoadingOutlined,{})},Vr=()=>({...e2,success:A.jsx(Dh,{})}),nc=()=>{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})})},on=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M14.4277 7.32227H1.57059C1.49202 7.32227 1.42773 7.38655 1.42773 7.46512V8.53655C1.42773 8.61512 1.49202 8.67941 1.57059 8.67941H14.4277C14.5063 8.67941 14.5706 8.61512 14.5706 8.53655V7.46512C14.5706 7.38655 14.5063 7.32227 14.4277 7.32227Z",fill:e.colorText})})},Ph=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M11.375 6.34375H10.4453V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398ZM9.46094 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V6.34375Z",fill:e.colorPrimary})})},Rh=()=>{const{token:e}=q.theme.useToken();return A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M11.375 6.34375H4.53906V3.28125C4.53906 2.85879 4.88223 2.51562 5.30469 2.51562H8.69531C9.11777 2.51562 9.46094 2.85879 9.46094 3.28125V4.21094C9.46094 4.27109 9.51016 4.32031 9.57031 4.32031H10.3359C10.3961 4.32031 10.4453 4.27109 10.4453 4.21094V3.28125C10.4453 2.31465 9.66191 1.53125 8.69531 1.53125H5.30469C4.33809 1.53125 3.55469 2.31465 3.55469 3.28125V6.34375H2.625C2.38301 6.34375 2.1875 6.53926 2.1875 6.78125V12.0312C2.1875 12.2732 2.38301 12.4688 2.625 12.4688H11.375C11.617 12.4688 11.8125 12.2732 11.8125 12.0312V6.78125C11.8125 6.53926 11.617 6.34375 11.375 6.34375ZM7.38281 9.58398V10.3086C7.38281 10.3687 7.33359 10.418 7.27344 10.418H6.72656C6.66641 10.418 6.61719 10.3687 6.61719 10.3086V9.58398C6.50433 9.50296 6.42009 9.38821 6.3766 9.25626C6.33311 9.12431 6.33261 8.98197 6.37517 8.84972C6.41773 8.71746 6.50115 8.60213 6.61344 8.52031C6.72572 8.43848 6.86107 8.3944 7 8.3944C7.13893 8.3944 7.27428 8.43848 7.38656 8.52031C7.49885 8.60213 7.58227 8.71746 7.62483 8.84972C7.66739 8.98197 7.66689 9.12431 7.6234 9.25626C7.57991 9.38821 7.49567 9.50296 7.38281 9.58398Z",fill:e.colorText})})},t2={ContentContainer:et.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
- `},Ch=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=z.theme.useToken();return I.jsx(W1.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},_h=async({uri:e})=>it.get(e),sn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>wn.useQuery({queryKey:t,queryFn:async()=>{const o=await _h({uri:e}),a=JSON.parse(JSON.stringify(o.data));return a.metadata?.resourceVersion&&delete a.metadata.resourceVersion,a},refetchInterval:n!==void 0?n:5e3,enabled:i}),Ct=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),K1=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?I.jsx(Xn.Link,{to:Ct({template:o,replaceValues:t}),children:Ct({template:i,replaceValues:t})}):Ct({template:i,replaceValues:t})})),kh=({data:e,replaceValues:t,pathname:n})=>e.map(({pathToMatch:o,breadcrumbItems:a})=>({pathToMatch:Ct({template:o,replaceValues:t}),breadcrumbItems:K1({rawLinks:a,replaceValues:t})})).find(({pathToMatch:o})=>Xn.matchPath(o,n)),Zu={HeightDiv:Xe.div`
111
+ `},Lh=({children:e,flexGrow:t,displayFlex:n,flexFlow:i})=>{const{token:o}=q.theme.useToken();return A.jsx(t2.ContentContainer,{$flexGrow:t,$bgColor:o.colorBgContainer,$borderColor:o.colorBorder,$displayFlex:n,$flexFlow:i,children:e})},jh=async({uri:e})=>nt.get(e),nn=({uri:e,queryKey:t,refetchInterval:n,isEnabled:i})=>bn.useQuery({queryKey:t,queryFn:async()=>{const o=await jh({uri:e}),a=JSON.parse(JSON.stringify(o.data));return a.metadata?.resourceVersion&&delete a.metadata.resourceVersion,a},refetchInterval:n!==void 0?n:5e3,enabled:i}),Ct=({template:e,replaceValues:t})=>e.replaceAll(/{(.*?)}/g,(n,i)=>t[i]||""),n2=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o})=>({key:n,title:o?A.jsx(Qn.Link,{to:Ct({template:o,replaceValues:t}),children:Ct({template:i,replaceValues:t})}):Ct({template:i,replaceValues:t})})),Nh=({data:e,replaceValues:t,pathname:n})=>e.map(({pathToMatch:o,breadcrumbItems:a})=>({pathToMatch:Ct({template:o,replaceValues:t}),breadcrumbItems:n2({rawLinks:a,replaceValues:t})})).find(({pathToMatch:o})=>Qn.matchPath(o,n)),rc={HeightDiv:et.div`
112
112
  min-height: 22px;
113
113
  width: 100%;
114
- `},Th=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=kh({data:i,replaceValues:t,pathname:n});return o?I.jsx(Zu.HeightDiv,{children:I.jsx(z.Breadcrumb,{separator:">",items:o.breadcrumbItems})}):I.jsx(Zu.HeightDiv,{})},H1=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o})=>{const{data:a,isError:u,isLoading:l}=sn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});return u?null:l?I.jsx(Zu.HeightDiv,{children:I.jsx(z.Spin,{})}):a?I.jsx(Th,{data:a,replaceValues:i,pathname:o}):null},Oh=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?Ct({template:o,replaceValues:t}):void 0;return{key:n,label:u?I.jsx(Xn.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?Oh({rawLinks:a,replaceValues:t}):void 0}}),z1=(e,t)=>{const n=(i,o)=>i.flatMap(a=>{const u=[...o,a.key?a.key:String(a.key)],l=a.internalMetaLink?.startsWith("/")?a.internalMetaLink.slice(1):a.internalMetaLink,f=t.startsWith("/")?t.slice(1):t,d=l===f||l&&u&&l.includes(f)?u:[];let g=[];return"children"in a&&a.children&&(g=n(a.children,u)),[...d,...g]});return n(e,[])},Ih=({data:e,replaceValues:t,pathname:n})=>{const o=e.map(({pathToMatch:l,menuItems:f})=>({pathToMatch:Ct({template:l,replaceValues:t}),menuItems:Oh({rawLinks:f,replaceValues:t})})).find(({pathToMatch:l})=>Xn.matchPath(l,n));if(!o)return;const u=(o?.menuItems?z1(o?.menuItems,n):[]).map(l=>typeof l=="string"?l:String(l));return{...o,selectedKeys:u}},G1={CustomMenu:Xe(z.Menu)`
114
+ `},$h=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=Nh({data:i,replaceValues:t,pathname:n});return o?A.jsx(rc.HeightDiv,{children:A.jsx(q.Breadcrumb,{separator:">",items:o.breadcrumbItems})}):A.jsx(rc.HeightDiv,{})},r2=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o})=>{const{data:a,isError:u,isLoading:l}=nn({uri:e,refetchInterval:t,queryKey:["breadcrumb",e],isEnabled:n});return u?null:l?A.jsx(rc.HeightDiv,{children:A.jsx(q.Spin,{})}):a?A.jsx($h,{data:a,replaceValues:i,pathname:o}):null},Mh=({rawLinks:e,replaceValues:t})=>e.map(({key:n,label:i,link:o,children:a})=>{const u=o?Ct({template:o,replaceValues:t}):void 0;return{key:n,label:u?A.jsx(Qn.Link,{to:u,children:i}):i,internalMetaLink:u,children:a?Mh({rawLinks:a,replaceValues:t}):void 0}}),i2=(e,t)=>{const n=(i,o)=>i.flatMap(a=>{const u=[...o,a.key?a.key:String(a.key)],l=a.internalMetaLink?.startsWith("/")?a.internalMetaLink.slice(1):a.internalMetaLink,f=t.startsWith("/")?t.slice(1):t,d=l===f||l&&u&&l.includes(f)?u:[];let g=[];return"children"in a&&a.children&&(g=n(a.children,u)),[...d,...g]});return n(e,[])},Uh=({data:e,replaceValues:t,pathname:n})=>{const o=e.map(({pathToMatch:l,menuItems:f})=>({pathToMatch:Ct({template:l,replaceValues:t}),menuItems:Mh({rawLinks:f,replaceValues:t})})).find(({pathToMatch:l})=>Qn.matchPath(l,n));if(!o)return;const u=(o?.menuItems?i2(o?.menuItems,n):[]).map(l=>typeof l=="string"?l:String(l));return{...o,selectedKeys:u}},s2={CustomMenu:et(q.Menu)`
115
115
  margin-top: 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
- `},Fh=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=Ih({data:i,replaceValues:t,pathname:n});return o?I.jsx(G1.CustomMenu,{selectedKeys:o.selectedKeys,onSelect:()=>{},onDeselect:()=>{},mode:"inline",items:o.menuItems}):null},J1=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,hidden:a})=>{const{data:u,isError:l,isLoading:f}=sn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});return l?null:f?I.jsx(z.Spin,{}):!u||a?null:I.jsx(Fh,{data:u,replaceValues:i,pathname:o})};var Xo={exports:{}};/**
136
+ `},Vh=({data:e,replaceValues:t,pathname:n})=>{const i=e?.items.map(({spec:a})=>a);if(!i)return null;const o=Uh({data:i,replaceValues:t,pathname:n});return o?A.jsx(s2.CustomMenu,{selectedKeys:o.selectedKeys,onSelect:()=>{},onDeselect:()=>{},mode:"inline",items:o.menuItems}):null},o2=({uri:e,refetchInterval:t,isEnabled:n,replaceValues:i,pathname:o,hidden:a})=>{const{data:u,isError:l,isLoading:f}=nn({uri:e,refetchInterval:t,queryKey:["sidebar",e],isEnabled:n});return l?null:f?A.jsx(q.Spin,{}):!u||a?null:A.jsx(Vh,{data:u,replaceValues:i,pathname:o})};var ea={exports:{}};/**
137
137
  * @license
138
138
  * Lodash <https://lodash.com/>
139
139
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
140
140
  * Released under MIT license <https://lodash.com/license>
141
141
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
142
142
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
143
- */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__",d=500,g="__lodash_placeholder__",p=1,w=2,_=4,A=1,S=2,v=1,R=2,N=4,x=8,O=16,F=32,k=64,D=128,V=256,Q=512,fe=30,le="...",ge=800,me=16,he=1,de=2,Ie=3,Re=1/0,Ce=9007199254740991,ze=17976931348623157e292,Se=NaN,ye=4294967295,et=ye-1,J=ye>>>1,X=[["ary",D],["bind",v],["bindKey",R],["curry",x],["curryRight",O],["flip",Q],["partial",F],["partialRight",k],["rearg",V]],oe="[object Arguments]",Be="[object Array]",Ke="[object AsyncFunction]",we="[object Boolean]",Oe="[object Date]",De="[object DOMException]",Le="[object Error]",Tt="[object Function]",on="[object GeneratorFunction]",Nt="[object Map]",$t="[object Number]",jt="[object Null]",St="[object Object]",ke="[object Promise]",Ve="[object Proxy]",je="[object RegExp]",ct="[object Set]",Ae="[object String]",Mt="[object Symbol]",lt="[object Undefined]",Me="[object WeakMap]",vt="[object WeakSet]",xe="[object ArrayBuffer]",Fe="[object DataView]",Bt="[object Float32Array]",T="[object Float64Array]",y="[object Int8Array]",b="[object Int16Array]",L="[object Int32Array]",q="[object Uint8Array]",G="[object Uint8ClampedArray]",ee="[object Uint16Array]",Ue="[object Uint32Array]",yt=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,gt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ot=/&(?:amp|lt|gt|quot|#39);/g,Kr=/[&<>"']/g,vi=RegExp(ot.source),as=RegExp(Kr.source),us=/<%-([\s\S]+?)%>/g,cs=/<%([\s\S]+?)%>/g,Hr=/<%=([\s\S]+?)%>/g,wi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,no=/^\w*$/,ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_r=/[\\^$.*+?()[\]{}|]/g,rr=RegExp(_r.source),zr=/^\s+/,io=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,be=/[()=,{}\[\]\/\s]/,Te=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Qe=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,Dt=/^0o[0-7]+$/i,Rt=/^(?:0|[1-9]\d*)$/,fn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn=/($^)/,ir=/['\n\r\u2028\u2029\\]/g,Gt="\\ud800-\\udfff",Ai="\\u0300-\\u036f",oo="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",Ca=Ai+oo+ao,_a="\\u2700-\\u27bf",ka="a-z\\xdf-\\xf6\\xf8-\\xff",Wc="\\xac\\xb1\\xd7\\xf7",Kc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hc="\\u2000-\\u206f",zc=" \\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",Tn="A-Z\\xc0-\\xd6\\xd8-\\xde",ls="\\ufe0e\\ufe0f",uo=Wc+Kc+Hc+zc,fs="['’]",Gc="["+Gt+"]",Gr="["+uo+"]",hs="["+Ca+"]",Ta="\\d+",Oa="["+_a+"]",Ia="["+ka+"]",Fa="[^"+Gt+uo+Ta+_a+ka+Tn+"]",h="\\ud83c[\\udffb-\\udfff]",E="(?:"+hs+"|"+h+")",$="[^"+Gt+"]",W="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="["+Tn+"]",Ge="\\u200d",wt="(?:"+Ia+"|"+Fa+")",tn="(?:"+pe+"|"+Fa+")",Jt="(?:"+fs+"(?:d|ll|m|re|s|t|ve))?",Gp="(?:"+fs+"(?:D|LL|M|RE|S|T|VE))?",Jp=E+"?",Yp="["+ls+"]?",SS="(?:"+Ge+"(?:"+[$,W,ne].join("|")+")"+Yp+Jp+")*",ES="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xp=Yp+Jp+SS,CS="(?:"+[Oa,W,ne].join("|")+")"+Xp,_S="(?:"+[$+hs+"?",hs,W,ne,Gc].join("|")+")",kS=RegExp(fs,"g"),TS=RegExp(hs,"g"),Jc=RegExp(h+"(?="+h+")|"+_S+Xp,"g"),OS=RegExp([pe+"?"+Ia+"+"+Jt+"(?="+[Gr,pe,"$"].join("|")+")",tn+"+"+Gp+"(?="+[Gr,pe+wt,"$"].join("|")+")",pe+"?"+wt+"+"+Jt,pe+"+"+Gp,xS,ES,Ta,CS].join("|"),"g"),IS=RegExp("["+Ge+Gt+Ca+ls+"]"),FS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,BS=["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"],DS=-1,Pt={};Pt[Bt]=Pt[T]=Pt[y]=Pt[b]=Pt[L]=Pt[q]=Pt[G]=Pt[ee]=Pt[Ue]=!0,Pt[oe]=Pt[Be]=Pt[xe]=Pt[we]=Pt[Fe]=Pt[Oe]=Pt[Le]=Pt[Tt]=Pt[Nt]=Pt[$t]=Pt[St]=Pt[je]=Pt[ct]=Pt[Ae]=Pt[Me]=!1;var Ot={};Ot[oe]=Ot[Be]=Ot[xe]=Ot[Fe]=Ot[we]=Ot[Oe]=Ot[Bt]=Ot[T]=Ot[y]=Ot[b]=Ot[L]=Ot[Nt]=Ot[$t]=Ot[St]=Ot[je]=Ot[ct]=Ot[Ae]=Ot[Mt]=Ot[q]=Ot[G]=Ot[ee]=Ot[Ue]=!0,Ot[Le]=Ot[Tt]=Ot[Me]=!1;var PS={À:"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"},RS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},LS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},NS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$S=parseFloat,jS=parseInt,Qp=typeof Qn=="object"&&Qn&&Qn.Object===Object&&Qn,MS=typeof self=="object"&&self&&self.Object===Object&&self,cn=Qp||MS||Function("return this")(),Yc=t&&!t.nodeType&&t,Si=Yc&&!0&&e&&!e.nodeType&&e,Zp=Si&&Si.exports===Yc,Xc=Zp&&Qp.process,qn=function(){try{var K=Si&&Si.require&&Si.require("util").types;return K||Xc&&Xc.binding&&Xc.binding("util")}catch{}}(),eg=qn&&qn.isArrayBuffer,tg=qn&&qn.isDate,ng=qn&&qn.isMap,rg=qn&&qn.isRegExp,ig=qn&&qn.isSet,sg=qn&&qn.isTypedArray;function On(K,te,Y){switch(Y.length){case 0:return K.call(te);case 1:return K.call(te,Y[0]);case 2:return K.call(te,Y[0],Y[1]);case 3:return K.call(te,Y[0],Y[1],Y[2])}return K.apply(te,Y)}function US(K,te,Y,Ee){for(var qe=-1,At=K==null?0:K.length;++qe<At;){var nn=K[qe];te(Ee,nn,Y(nn),K)}return Ee}function Wn(K,te){for(var Y=-1,Ee=K==null?0:K.length;++Y<Ee&&te(K[Y],Y,K)!==!1;);return K}function VS(K,te){for(var Y=K==null?0:K.length;Y--&&te(K[Y],Y,K)!==!1;);return K}function og(K,te){for(var Y=-1,Ee=K==null?0:K.length;++Y<Ee;)if(!te(K[Y],Y,K))return!1;return!0}function Jr(K,te){for(var Y=-1,Ee=K==null?0:K.length,qe=0,At=[];++Y<Ee;){var nn=K[Y];te(nn,Y,K)&&(At[qe++]=nn)}return At}function Ba(K,te){var Y=K==null?0:K.length;return!!Y&&ds(K,te,0)>-1}function Qc(K,te,Y){for(var Ee=-1,qe=K==null?0:K.length;++Ee<qe;)if(Y(te,K[Ee]))return!0;return!1}function Lt(K,te){for(var Y=-1,Ee=K==null?0:K.length,qe=Array(Ee);++Y<Ee;)qe[Y]=te(K[Y],Y,K);return qe}function Yr(K,te){for(var Y=-1,Ee=te.length,qe=K.length;++Y<Ee;)K[qe+Y]=te[Y];return K}function Zc(K,te,Y,Ee){var qe=-1,At=K==null?0:K.length;for(Ee&&At&&(Y=K[++qe]);++qe<At;)Y=te(Y,K[qe],qe,K);return Y}function qS(K,te,Y,Ee){var qe=K==null?0:K.length;for(Ee&&qe&&(Y=K[--qe]);qe--;)Y=te(Y,K[qe],qe,K);return Y}function el(K,te){for(var Y=-1,Ee=K==null?0:K.length;++Y<Ee;)if(te(K[Y],Y,K))return!0;return!1}var WS=tl("length");function KS(K){return K.split("")}function HS(K){return K.match(ce)||[]}function ag(K,te,Y){var Ee;return Y(K,function(qe,At,nn){if(te(qe,At,nn))return Ee=At,!1}),Ee}function Da(K,te,Y,Ee){for(var qe=K.length,At=Y+(Ee?1:-1);Ee?At--:++At<qe;)if(te(K[At],At,K))return At;return-1}function ds(K,te,Y){return te===te?iE(K,te,Y):Da(K,ug,Y)}function zS(K,te,Y,Ee){for(var qe=Y-1,At=K.length;++qe<At;)if(Ee(K[qe],te))return qe;return-1}function ug(K){return K!==K}function cg(K,te){var Y=K==null?0:K.length;return Y?rl(K,te)/Y:Se}function tl(K){return function(te){return te==null?n:te[K]}}function nl(K){return function(te){return K==null?n:K[te]}}function lg(K,te,Y,Ee,qe){return qe(K,function(At,nn,_t){Y=Ee?(Ee=!1,At):te(Y,At,nn,_t)}),Y}function GS(K,te){var Y=K.length;for(K.sort(te);Y--;)K[Y]=K[Y].value;return K}function rl(K,te){for(var Y,Ee=-1,qe=K.length;++Ee<qe;){var At=te(K[Ee]);At!==n&&(Y=Y===n?At:Y+At)}return Y}function il(K,te){for(var Y=-1,Ee=Array(K);++Y<K;)Ee[Y]=te(Y);return Ee}function JS(K,te){return Lt(te,function(Y){return[Y,K[Y]]})}function fg(K){return K&&K.slice(0,gg(K)+1).replace(zr,"")}function In(K){return function(te){return K(te)}}function sl(K,te){return Lt(te,function(Y){return K[Y]})}function co(K,te){return K.has(te)}function hg(K,te){for(var Y=-1,Ee=K.length;++Y<Ee&&ds(te,K[Y],0)>-1;);return Y}function dg(K,te){for(var Y=K.length;Y--&&ds(te,K[Y],0)>-1;);return Y}function YS(K,te){for(var Y=K.length,Ee=0;Y--;)K[Y]===te&&++Ee;return Ee}var XS=nl(PS),QS=nl(RS);function ZS(K){return"\\"+NS[K]}function eE(K,te){return K==null?n:K[te]}function ps(K){return IS.test(K)}function tE(K){return FS.test(K)}function nE(K){for(var te,Y=[];!(te=K.next()).done;)Y.push(te.value);return Y}function ol(K){var te=-1,Y=Array(K.size);return K.forEach(function(Ee,qe){Y[++te]=[qe,Ee]}),Y}function pg(K,te){return function(Y){return K(te(Y))}}function Xr(K,te){for(var Y=-1,Ee=K.length,qe=0,At=[];++Y<Ee;){var nn=K[Y];(nn===te||nn===g)&&(K[Y]=g,At[qe++]=Y)}return At}function Pa(K){var te=-1,Y=Array(K.size);return K.forEach(function(Ee){Y[++te]=Ee}),Y}function rE(K){var te=-1,Y=Array(K.size);return K.forEach(function(Ee){Y[++te]=[Ee,Ee]}),Y}function iE(K,te,Y){for(var Ee=Y-1,qe=K.length;++Ee<qe;)if(K[Ee]===te)return Ee;return-1}function sE(K,te,Y){for(var Ee=Y+1;Ee--;)if(K[Ee]===te)return Ee;return Ee}function gs(K){return ps(K)?aE(K):WS(K)}function sr(K){return ps(K)?uE(K):KS(K)}function gg(K){for(var te=K.length;te--&&io.test(K.charAt(te)););return te}var oE=nl(LS);function aE(K){for(var te=Jc.lastIndex=0;Jc.test(K);)++te;return te}function uE(K){return K.match(Jc)||[]}function cE(K){return K.match(OS)||[]}var lE=function K(te){te=te==null?cn:ys.defaults(cn.Object(),te,ys.pick(cn,BS));var Y=te.Array,Ee=te.Date,qe=te.Error,At=te.Function,nn=te.Math,_t=te.Object,al=te.RegExp,fE=te.String,Kn=te.TypeError,Ra=Y.prototype,hE=At.prototype,ms=_t.prototype,La=te["__core-js_shared__"],Na=hE.toString,xt=ms.hasOwnProperty,dE=0,yg=function(){var r=/[^.]+$/.exec(La&&La.keys&&La.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),$a=ms.toString,pE=Na.call(_t),gE=cn._,yE=al("^"+Na.call(xt).replace(_r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ja=Zp?te.Buffer:n,Qr=te.Symbol,Ma=te.Uint8Array,mg=ja?ja.allocUnsafe:n,Ua=pg(_t.getPrototypeOf,_t),bg=_t.create,vg=ms.propertyIsEnumerable,Va=Ra.splice,wg=Qr?Qr.isConcatSpreadable:n,lo=Qr?Qr.iterator:n,Ei=Qr?Qr.toStringTag:n,qa=function(){try{var r=Ti(_t,"defineProperty");return r({},"",{}),r}catch{}}(),mE=te.clearTimeout!==cn.clearTimeout&&te.clearTimeout,bE=Ee&&Ee.now!==cn.Date.now&&Ee.now,vE=te.setTimeout!==cn.setTimeout&&te.setTimeout,Wa=nn.ceil,Ka=nn.floor,ul=_t.getOwnPropertySymbols,wE=ja?ja.isBuffer:n,Ag=te.isFinite,AE=Ra.join,SE=pg(_t.keys,_t),rn=nn.max,hn=nn.min,EE=Ee.now,xE=te.parseInt,Sg=nn.random,CE=Ra.reverse,cl=Ti(te,"DataView"),fo=Ti(te,"Map"),ll=Ti(te,"Promise"),bs=Ti(te,"Set"),ho=Ti(te,"WeakMap"),po=Ti(_t,"create"),Ha=ho&&new ho,vs={},_E=Oi(cl),kE=Oi(fo),TE=Oi(ll),OE=Oi(bs),IE=Oi(ho),za=Qr?Qr.prototype:n,go=za?za.valueOf:n,Eg=za?za.toString:n;function B(r){if(Vt(r)&&!He(r)&&!(r instanceof at)){if(r instanceof Hn)return r;if(xt.call(r,"__wrapped__"))return x0(r)}return new Hn(r)}var ws=function(){function r(){}return function(s){if(!Ut(s))return{};if(bg)return bg(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}B.templateSettings={escape:us,evaluate:cs,interpolate:Hr,variable:"",imports:{_:B}},B.prototype=Ga.prototype,B.prototype.constructor=B,Hn.prototype=ws(Ga.prototype),Hn.prototype.constructor=Hn;function at(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ye,this.__views__=[]}function FE(){var r=new at(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 BE(){if(this.__filtered__){var r=new at(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function DE(){var r=this.__wrapped__.value(),s=this.__dir__,c=He(r),m=s<0,C=c?r.length:0,P=Kx(0,C,this.__views__),j=P.start,U=P.end,H=U-j,ie=m?U:j-1,se=this.__iteratees__,ae=se.length,ve=0,_e=hn(H,this.__takeCount__);if(!c||!m&&C==H&&_e==H)return zg(r,this.__actions__);var Ne=[];e:for(;H--&&ve<_e;){ie+=s;for(var Ze=-1,$e=r[ie];++Ze<ae;){var st=se[Ze],ut=st.iteratee,Dn=st.type,vn=ut($e);if(Dn==de)$e=vn;else if(!vn){if(Dn==he)continue e;break e}}Ne[ve++]=$e}return Ne}at.prototype=ws(Ga.prototype),at.prototype.constructor=at;function xi(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 PE(){this.__data__=po?po(null):{},this.size=0}function RE(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function LE(r){var s=this.__data__;if(po){var c=s[r];return c===f?n:c}return xt.call(s,r)?s[r]:n}function NE(r){var s=this.__data__;return po?s[r]!==n:xt.call(s,r)}function $E(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=po&&s===n?f:s,this}xi.prototype.clear=PE,xi.prototype.delete=RE,xi.prototype.get=LE,xi.prototype.has=NE,xi.prototype.set=$E;function kr(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 jE(){this.__data__=[],this.size=0}function ME(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 UE(r){var s=this.__data__,c=Ja(s,r);return c<0?n:s[c][1]}function VE(r){return Ja(this.__data__,r)>-1}function qE(r,s){var c=this.__data__,m=Ja(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}kr.prototype.clear=jE,kr.prototype.delete=ME,kr.prototype.get=UE,kr.prototype.has=VE,kr.prototype.set=qE;function Tr(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 WE(){this.size=0,this.__data__={hash:new xi,map:new(fo||kr),string:new xi}}function KE(r){var s=au(this,r).delete(r);return this.size-=s?1:0,s}function HE(r){return au(this,r).get(r)}function zE(r){return au(this,r).has(r)}function GE(r,s){var c=au(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Tr.prototype.clear=WE,Tr.prototype.delete=KE,Tr.prototype.get=HE,Tr.prototype.has=zE,Tr.prototype.set=GE;function Ci(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Tr;++s<c;)this.add(r[s])}function JE(r){return this.__data__.set(r,f),this}function YE(r){return this.__data__.has(r)}Ci.prototype.add=Ci.prototype.push=JE,Ci.prototype.has=YE;function or(r){var s=this.__data__=new kr(r);this.size=s.size}function XE(){this.__data__=new kr,this.size=0}function QE(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function ZE(r){return this.__data__.get(r)}function ex(r){return this.__data__.has(r)}function tx(r,s){var c=this.__data__;if(c instanceof kr){var m=c.__data__;if(!fo||m.length<o-1)return m.push([r,s]),this.size=++c.size,this;c=this.__data__=new Tr(m)}return c.set(r,s),this.size=c.size,this}or.prototype.clear=XE,or.prototype.delete=QE,or.prototype.get=ZE,or.prototype.has=ex,or.prototype.set=tx;function xg(r,s){var c=He(r),m=!c&&Ii(r),C=!c&&!m&&ri(r),P=!c&&!m&&!C&&xs(r),j=c||m||C||P,U=j?il(r.length,fE):[],H=U.length;for(var ie in r)(s||xt.call(r,ie))&&!(j&&(ie=="length"||C&&(ie=="offset"||ie=="parent")||P&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Br(ie,H)))&&U.push(ie);return U}function Cg(r){var s=r.length;return s?r[Al(0,s-1)]:n}function nx(r,s){return uu(Sn(r),_i(s,0,r.length))}function rx(r){return uu(Sn(r))}function fl(r,s,c){(c!==n&&!ar(r[s],c)||c===n&&!(s in r))&&Or(r,s,c)}function yo(r,s,c){var m=r[s];(!(xt.call(r,s)&&ar(m,c))||c===n&&!(s in r))&&Or(r,s,c)}function Ja(r,s){for(var c=r.length;c--;)if(ar(r[c][0],s))return c;return-1}function ix(r,s,c,m){return Zr(r,function(C,P,j){s(m,C,c(C),j)}),m}function _g(r,s){return r&&vr(s,an(s),r)}function sx(r,s){return r&&vr(s,xn(s),r)}function Or(r,s,c){s=="__proto__"&&qa?qa(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function hl(r,s){for(var c=-1,m=s.length,C=Y(m),P=r==null;++c<m;)C[c]=P?n:Hl(r,s[c]);return C}function _i(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,C,P){var j,U=s&p,H=s&w,ie=s&_;if(c&&(j=C?c(r,m,C,P):c(r)),j!==n)return j;if(!Ut(r))return r;var se=He(r);if(se){if(j=zx(r),!U)return Sn(r,j)}else{var ae=dn(r),ve=ae==Tt||ae==on;if(ri(r))return Yg(r,U);if(ae==St||ae==oe||ve&&!C){if(j=H||ve?{}:g0(r),!U)return H?Lx(r,sx(j,r)):Rx(r,_g(j,r))}else{if(!Ot[ae])return C?r:{};j=Gx(r,ae,U)}}P||(P=new or);var _e=P.get(r);if(_e)return _e;P.set(r,j),W0(r)?r.forEach(function($e){j.add(zn($e,s,c,$e,r,P))}):V0(r)&&r.forEach(function($e,st){j.set(st,zn($e,s,c,st,r,P))});var Ne=ie?H?Bl:Fl:H?xn:an,Ze=se?n:Ne(r);return Wn(Ze||r,function($e,st){Ze&&(st=$e,$e=r[st]),yo(j,st,zn($e,s,c,st,r,P))}),j}function ox(r){var s=an(r);return function(c){return kg(c,r,s)}}function kg(r,s,c){var m=c.length;if(r==null)return!m;for(r=_t(r);m--;){var C=c[m],P=s[C],j=r[C];if(j===n&&!(C in r)||!P(j))return!1}return!0}function Tg(r,s,c){if(typeof r!="function")throw new Kn(u);return Eo(function(){r.apply(n,c)},s)}function mo(r,s,c,m){var C=-1,P=Ba,j=!0,U=r.length,H=[],ie=s.length;if(!U)return H;c&&(s=Lt(s,In(c))),m?(P=Qc,j=!1):s.length>=o&&(P=co,j=!1,s=new Ci(s));e:for(;++C<U;){var se=r[C],ae=c==null?se:c(se);if(se=m||se!==0?se:0,j&&ae===ae){for(var ve=ie;ve--;)if(s[ve]===ae)continue e;H.push(se)}else P(s,ae,m)||H.push(se)}return H}var Zr=t0(br),Og=t0(pl,!0);function ax(r,s){var c=!0;return Zr(r,function(m,C,P){return c=!!s(m,C,P),c}),c}function Ya(r,s,c){for(var m=-1,C=r.length;++m<C;){var P=r[m],j=s(P);if(j!=null&&(U===n?j===j&&!Bn(j):c(j,U)))var U=j,H=P}return H}function ux(r,s,c,m){var C=r.length;for(c=Je(c),c<0&&(c=-c>C?0:C+c),m=m===n||m>C?C:Je(m),m<0&&(m+=C),m=c>m?0:H0(m);c<m;)r[c++]=s;return r}function Ig(r,s){var c=[];return Zr(r,function(m,C,P){s(m,C,P)&&c.push(m)}),c}function ln(r,s,c,m,C){var P=-1,j=r.length;for(c||(c=Yx),C||(C=[]);++P<j;){var U=r[P];s>0&&c(U)?s>1?ln(U,s-1,c,m,C):Yr(C,U):m||(C[C.length]=U)}return C}var dl=n0(),Fg=n0(!0);function br(r,s){return r&&dl(r,s,an)}function pl(r,s){return r&&Fg(r,s,an)}function Xa(r,s){return Jr(s,function(c){return Dr(r[c])})}function ki(r,s){s=ti(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 Bg(r,s,c){var m=s(r);return He(r)?m:Yr(m,c(r))}function mn(r){return r==null?r===n?lt:jt:Ei&&Ei in _t(r)?Wx(r):r2(r)}function gl(r,s){return r>s}function cx(r,s){return r!=null&&xt.call(r,s)}function lx(r,s){return r!=null&&s in _t(r)}function fx(r,s,c){return r>=hn(s,c)&&r<rn(s,c)}function yl(r,s,c){for(var m=c?Qc:Ba,C=r[0].length,P=r.length,j=P,U=Y(P),H=1/0,ie=[];j--;){var se=r[j];j&&s&&(se=Lt(se,In(s))),H=hn(se.length,H),U[j]=!c&&(s||C>=120&&se.length>=120)?new Ci(j&&se):n}se=r[0];var ae=-1,ve=U[0];e:for(;++ae<C&&ie.length<H;){var _e=se[ae],Ne=s?s(_e):_e;if(_e=c||_e!==0?_e:0,!(ve?co(ve,Ne):m(ie,Ne,c))){for(j=P;--j;){var Ze=U[j];if(!(Ze?co(Ze,Ne):m(r[j],Ne,c)))continue e}ve&&ve.push(Ne),ie.push(_e)}}return ie}function hx(r,s,c,m){return br(r,function(C,P,j){s(m,c(C),P,j)}),m}function bo(r,s,c){s=ti(s,r),r=v0(r,s);var m=r==null?r:r[wr(Jn(s))];return m==null?n:On(m,r,c)}function Dg(r){return Vt(r)&&mn(r)==oe}function dx(r){return Vt(r)&&mn(r)==xe}function px(r){return Vt(r)&&mn(r)==Oe}function vo(r,s,c,m,C){return r===s?!0:r==null||s==null||!Vt(r)&&!Vt(s)?r!==r&&s!==s:gx(r,s,c,m,vo,C)}function gx(r,s,c,m,C,P){var j=He(r),U=He(s),H=j?Be:dn(r),ie=U?Be:dn(s);H=H==oe?St:H,ie=ie==oe?St:ie;var se=H==St,ae=ie==St,ve=H==ie;if(ve&&ri(r)){if(!ri(s))return!1;j=!0,se=!1}if(ve&&!se)return P||(P=new or),j||xs(r)?h0(r,s,c,m,C,P):Vx(r,s,H,c,m,C,P);if(!(c&A)){var _e=se&&xt.call(r,"__wrapped__"),Ne=ae&&xt.call(s,"__wrapped__");if(_e||Ne){var Ze=_e?r.value():r,$e=Ne?s.value():s;return P||(P=new or),C(Ze,$e,c,m,P)}}return ve?(P||(P=new or),qx(r,s,c,m,C,P)):!1}function yx(r){return Vt(r)&&dn(r)==Nt}function ml(r,s,c,m){var C=c.length,P=C,j=!m;if(r==null)return!P;for(r=_t(r);C--;){var U=c[C];if(j&&U[2]?U[1]!==r[U[0]]:!(U[0]in r))return!1}for(;++C<P;){U=c[C];var H=U[0],ie=r[H],se=U[1];if(j&&U[2]){if(ie===n&&!(H in r))return!1}else{var ae=new or;if(m)var ve=m(ie,se,H,r,s,ae);if(!(ve===n?vo(se,ie,A|S,m,ae):ve))return!1}}return!0}function Pg(r){if(!Ut(r)||Qx(r))return!1;var s=Dr(r)?yE:en;return s.test(Oi(r))}function mx(r){return Vt(r)&&mn(r)==je}function bx(r){return Vt(r)&&dn(r)==ct}function vx(r){return Vt(r)&&pu(r.length)&&!!Pt[mn(r)]}function Rg(r){return typeof r=="function"?r:r==null?Cn:typeof r=="object"?He(r)?$g(r[0],r[1]):Ng(r):ry(r)}function bl(r){if(!So(r))return SE(r);var s=[];for(var c in _t(r))xt.call(r,c)&&c!="constructor"&&s.push(c);return s}function wx(r){if(!Ut(r))return n2(r);var s=So(r),c=[];for(var m in r)m=="constructor"&&(s||!xt.call(r,m))||c.push(m);return c}function vl(r,s){return r<s}function Lg(r,s){var c=-1,m=En(r)?Y(r.length):[];return Zr(r,function(C,P,j){m[++c]=s(C,P,j)}),m}function Ng(r){var s=Pl(r);return s.length==1&&s[0][2]?m0(s[0][0],s[0][1]):function(c){return c===r||ml(c,r,s)}}function $g(r,s){return Ll(r)&&y0(s)?m0(wr(r),s):function(c){var m=Hl(c,r);return m===n&&m===s?zl(c,r):vo(s,m,A|S)}}function Qa(r,s,c,m,C){r!==s&&dl(s,function(P,j){if(C||(C=new or),Ut(P))Ax(r,s,j,c,Qa,m,C);else{var U=m?m($l(r,j),P,j+"",r,s,C):n;U===n&&(U=P),fl(r,j,U)}},xn)}function Ax(r,s,c,m,C,P,j){var U=$l(r,c),H=$l(s,c),ie=j.get(H);if(ie){fl(r,c,ie);return}var se=P?P(U,H,c+"",r,s,j):n,ae=se===n;if(ae){var ve=He(H),_e=!ve&&ri(H),Ne=!ve&&!_e&&xs(H);se=H,ve||_e||Ne?He(U)?se=U:Yt(U)?se=Sn(U):_e?(ae=!1,se=Yg(H,!0)):Ne?(ae=!1,se=Xg(H,!0)):se=[]:xo(H)||Ii(H)?(se=U,Ii(U)?se=z0(U):(!Ut(U)||Dr(U))&&(se=g0(H))):ae=!1}ae&&(j.set(H,se),C(se,H,m,P,j),j.delete(H)),fl(r,c,se)}function jg(r,s){var c=r.length;if(c)return s+=s<0?c:0,Br(s,c)?r[s]:n}function Mg(r,s,c){s.length?s=Lt(s,function(P){return He(P)?function(j){return ki(j,P.length===1?P[0]:P)}:P}):s=[Cn];var m=-1;s=Lt(s,In(Pe()));var C=Lg(r,function(P,j,U){var H=Lt(s,function(ie){return ie(P)});return{criteria:H,index:++m,value:P}});return GS(C,function(P,j){return Px(P,j,c)})}function Sx(r,s){return Ug(r,s,function(c,m){return zl(r,m)})}function Ug(r,s,c){for(var m=-1,C=s.length,P={};++m<C;){var j=s[m],U=ki(r,j);c(U,j)&&wo(P,ti(j,r),U)}return P}function Ex(r){return function(s){return ki(s,r)}}function wl(r,s,c,m){var C=m?zS:ds,P=-1,j=s.length,U=r;for(r===s&&(s=Sn(s)),c&&(U=Lt(r,In(c)));++P<j;)for(var H=0,ie=s[P],se=c?c(ie):ie;(H=C(U,se,H,m))>-1;)U!==r&&Va.call(U,H,1),Va.call(r,H,1);return r}function Vg(r,s){for(var c=r?s.length:0,m=c-1;c--;){var C=s[c];if(c==m||C!==P){var P=C;Br(C)?Va.call(r,C,1):xl(r,C)}}return r}function Al(r,s){return r+Ka(Sg()*(s-r+1))}function xx(r,s,c,m){for(var C=-1,P=rn(Wa((s-r)/(c||1)),0),j=Y(P);P--;)j[m?P:++C]=r,r+=c;return j}function Sl(r,s){var c="";if(!r||s<1||s>Ce)return c;do s%2&&(c+=r),s=Ka(s/2),s&&(r+=r);while(s);return c}function tt(r,s){return jl(b0(r,s,Cn),r+"")}function Cx(r){return Cg(Cs(r))}function _x(r,s){var c=Cs(r);return uu(c,_i(s,0,c.length))}function wo(r,s,c,m){if(!Ut(r))return r;s=ti(s,r);for(var C=-1,P=s.length,j=P-1,U=r;U!=null&&++C<P;){var H=wr(s[C]),ie=c;if(H==="__proto__"||H==="constructor"||H==="prototype")return r;if(C!=j){var se=U[H];ie=m?m(se,H,U):n,ie===n&&(ie=Ut(se)?se:Br(s[C+1])?[]:{})}yo(U,H,ie),U=U[H]}return r}var qg=Ha?function(r,s){return Ha.set(r,s),r}:Cn,kx=qa?function(r,s){return qa(r,"toString",{configurable:!0,enumerable:!1,value:Jl(s),writable:!0})}:Cn;function Tx(r){return uu(Cs(r))}function Gn(r,s,c){var m=-1,C=r.length;s<0&&(s=-s>C?0:C+s),c=c>C?C:c,c<0&&(c+=C),C=s>c?0:c-s>>>0,s>>>=0;for(var P=Y(C);++m<C;)P[m]=r[m+s];return P}function Ox(r,s){var c;return Zr(r,function(m,C,P){return c=s(m,C,P),!c}),!!c}function Za(r,s,c){var m=0,C=r==null?m:r.length;if(typeof s=="number"&&s===s&&C<=J){for(;m<C;){var P=m+C>>>1,j=r[P];j!==null&&!Bn(j)&&(c?j<=s:j<s)?m=P+1:C=P}return C}return El(r,s,Cn,c)}function El(r,s,c,m){var C=0,P=r==null?0:r.length;if(P===0)return 0;s=c(s);for(var j=s!==s,U=s===null,H=Bn(s),ie=s===n;C<P;){var se=Ka((C+P)/2),ae=c(r[se]),ve=ae!==n,_e=ae===null,Ne=ae===ae,Ze=Bn(ae);if(j)var $e=m||Ne;else ie?$e=Ne&&(m||ve):U?$e=Ne&&ve&&(m||!_e):H?$e=Ne&&ve&&!_e&&(m||!Ze):_e||Ze?$e=!1:$e=m?ae<=s:ae<s;$e?C=se+1:P=se}return hn(P,et)}function Wg(r,s){for(var c=-1,m=r.length,C=0,P=[];++c<m;){var j=r[c],U=s?s(j):j;if(!c||!ar(U,H)){var H=U;P[C++]=j===0?0:j}}return P}function Kg(r){return typeof r=="number"?r:Bn(r)?Se:+r}function Fn(r){if(typeof r=="string")return r;if(He(r))return Lt(r,Fn)+"";if(Bn(r))return Eg?Eg.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ei(r,s,c){var m=-1,C=Ba,P=r.length,j=!0,U=[],H=U;if(c)j=!1,C=Qc;else if(P>=o){var ie=s?null:Mx(r);if(ie)return Pa(ie);j=!1,C=co,H=new Ci}else H=s?[]:U;e:for(;++m<P;){var se=r[m],ae=s?s(se):se;if(se=c||se!==0?se:0,j&&ae===ae){for(var ve=H.length;ve--;)if(H[ve]===ae)continue e;s&&H.push(ae),U.push(se)}else C(H,ae,c)||(H!==U&&H.push(ae),U.push(se))}return U}function xl(r,s){return s=ti(s,r),r=v0(r,s),r==null||delete r[wr(Jn(s))]}function Hg(r,s,c,m){return wo(r,s,c(ki(r,s)),m)}function eu(r,s,c,m){for(var C=r.length,P=m?C:-1;(m?P--:++P<C)&&s(r[P],P,r););return c?Gn(r,m?0:P,m?P+1:C):Gn(r,m?P+1:0,m?C:P)}function zg(r,s){var c=r;return c instanceof at&&(c=c.value()),Zc(s,function(m,C){return C.func.apply(C.thisArg,Yr([m],C.args))},c)}function Cl(r,s,c){var m=r.length;if(m<2)return m?ei(r[0]):[];for(var C=-1,P=Y(m);++C<m;)for(var j=r[C],U=-1;++U<m;)U!=C&&(P[C]=mo(P[C]||j,r[U],s,c));return ei(ln(P,1),s,c)}function Gg(r,s,c){for(var m=-1,C=r.length,P=s.length,j={};++m<C;){var U=m<P?s[m]:n;c(j,r[m],U)}return j}function _l(r){return Yt(r)?r:[]}function kl(r){return typeof r=="function"?r:Cn}function ti(r,s){return He(r)?r:Ll(r,s)?[r]:E0(Et(r))}var Ix=tt;function ni(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var Jg=mE||function(r){return cn.clearTimeout(r)};function Yg(r,s){if(s)return r.slice();var c=r.length,m=mg?mg(c):new r.constructor(c);return r.copy(m),m}function Tl(r){var s=new r.constructor(r.byteLength);return new Ma(s).set(new Ma(r)),s}function Fx(r,s){var c=s?Tl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function Bx(r){var s=new r.constructor(r.source,dt.exec(r));return s.lastIndex=r.lastIndex,s}function Dx(r){return go?_t(go.call(r)):{}}function Xg(r,s){var c=s?Tl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function Qg(r,s){if(r!==s){var c=r!==n,m=r===null,C=r===r,P=Bn(r),j=s!==n,U=s===null,H=s===s,ie=Bn(s);if(!U&&!ie&&!P&&r>s||P&&j&&H&&!U&&!ie||m&&j&&H||!c&&H||!C)return 1;if(!m&&!P&&!ie&&r<s||ie&&c&&C&&!m&&!P||U&&c&&C||!j&&C||!H)return-1}return 0}function Px(r,s,c){for(var m=-1,C=r.criteria,P=s.criteria,j=C.length,U=c.length;++m<j;){var H=Qg(C[m],P[m]);if(H){if(m>=U)return H;var ie=c[m];return H*(ie=="desc"?-1:1)}}return r.index-s.index}function Zg(r,s,c,m){for(var C=-1,P=r.length,j=c.length,U=-1,H=s.length,ie=rn(P-j,0),se=Y(H+ie),ae=!m;++U<H;)se[U]=s[U];for(;++C<j;)(ae||C<P)&&(se[c[C]]=r[C]);for(;ie--;)se[U++]=r[C++];return se}function e0(r,s,c,m){for(var C=-1,P=r.length,j=-1,U=c.length,H=-1,ie=s.length,se=rn(P-U,0),ae=Y(se+ie),ve=!m;++C<se;)ae[C]=r[C];for(var _e=C;++H<ie;)ae[_e+H]=s[H];for(;++j<U;)(ve||C<P)&&(ae[_e+c[j]]=r[C++]);return ae}function Sn(r,s){var c=-1,m=r.length;for(s||(s=Y(m));++c<m;)s[c]=r[c];return s}function vr(r,s,c,m){var C=!c;c||(c={});for(var P=-1,j=s.length;++P<j;){var U=s[P],H=m?m(c[U],r[U],U,c,r):n;H===n&&(H=r[U]),C?Or(c,U,H):yo(c,U,H)}return c}function Rx(r,s){return vr(r,Rl(r),s)}function Lx(r,s){return vr(r,d0(r),s)}function tu(r,s){return function(c,m){var C=He(c)?US:ix,P=s?s():{};return C(c,r,Pe(m,2),P)}}function As(r){return tt(function(s,c){var m=-1,C=c.length,P=C>1?c[C-1]:n,j=C>2?c[2]:n;for(P=r.length>3&&typeof P=="function"?(C--,P):n,j&&bn(c[0],c[1],j)&&(P=C<3?n:P,C=1),s=_t(s);++m<C;){var U=c[m];U&&r(s,U,m,P)}return s})}function t0(r,s){return function(c,m){if(c==null)return c;if(!En(c))return r(c,m);for(var C=c.length,P=s?C:-1,j=_t(c);(s?P--:++P<C)&&m(j[P],P,j)!==!1;);return c}}function n0(r){return function(s,c,m){for(var C=-1,P=_t(s),j=m(s),U=j.length;U--;){var H=j[r?U:++C];if(c(P[H],H,P)===!1)break}return s}}function Nx(r,s,c){var m=s&v,C=Ao(r);function P(){var j=this&&this!==cn&&this instanceof P?C:r;return j.apply(m?c:this,arguments)}return P}function r0(r){return function(s){s=Et(s);var c=ps(s)?sr(s):n,m=c?c[0]:s.charAt(0),C=c?ni(c,1).join(""):s.slice(1);return m[r]()+C}}function Ss(r){return function(s){return Zc(ty(ey(s).replace(kS,"")),r,"")}}function Ao(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=ws(r.prototype),m=r.apply(c,s);return Ut(m)?m:c}}function $x(r,s,c){var m=Ao(r);function C(){for(var P=arguments.length,j=Y(P),U=P,H=Es(C);U--;)j[U]=arguments[U];var ie=P<3&&j[0]!==H&&j[P-1]!==H?[]:Xr(j,H);if(P-=ie.length,P<c)return u0(r,s,nu,C.placeholder,n,j,ie,n,n,c-P);var se=this&&this!==cn&&this instanceof C?m:r;return On(se,this,j)}return C}function i0(r){return function(s,c,m){var C=_t(s);if(!En(s)){var P=Pe(c,3);s=an(s),c=function(U){return P(C[U],U,C)}}var j=r(s,c,m);return j>-1?C[P?s[j]:j]:n}}function s0(r){return Fr(function(s){var c=s.length,m=c,C=Hn.prototype.thru;for(r&&s.reverse();m--;){var P=s[m];if(typeof P!="function")throw new Kn(u);if(C&&!j&&ou(P)=="wrapper")var j=new Hn([],!0)}for(m=j?m:c;++m<c;){P=s[m];var U=ou(P),H=U=="wrapper"?Dl(P):n;H&&Nl(H[0])&&H[1]==(D|x|F|V)&&!H[4].length&&H[9]==1?j=j[ou(H[0])].apply(j,H[3]):j=P.length==1&&Nl(P)?j[U]():j.thru(P)}return function(){var ie=arguments,se=ie[0];if(j&&ie.length==1&&He(se))return j.plant(se).value();for(var ae=0,ve=c?s[ae].apply(this,ie):se;++ae<c;)ve=s[ae].call(this,ve);return ve}})}function nu(r,s,c,m,C,P,j,U,H,ie){var se=s&D,ae=s&v,ve=s&R,_e=s&(x|O),Ne=s&Q,Ze=ve?n:Ao(r);function $e(){for(var st=arguments.length,ut=Y(st),Dn=st;Dn--;)ut[Dn]=arguments[Dn];if(_e)var vn=Es($e),Pn=YS(ut,vn);if(m&&(ut=Zg(ut,m,C,_e)),P&&(ut=e0(ut,P,j,_e)),st-=Pn,_e&&st<ie){var Xt=Xr(ut,vn);return u0(r,s,nu,$e.placeholder,c,ut,Xt,U,H,ie-st)}var ur=ae?c:this,Rr=ve?ur[r]:r;return st=ut.length,U?ut=i2(ut,U):Ne&&st>1&&ut.reverse(),se&&H<st&&(ut.length=H),this&&this!==cn&&this instanceof $e&&(Rr=Ze||Ao(Rr)),Rr.apply(ur,ut)}return $e}function o0(r,s){return function(c,m){return hx(c,r,s(m),{})}}function ru(r,s){return function(c,m){var C;if(c===n&&m===n)return s;if(c!==n&&(C=c),m!==n){if(C===n)return m;typeof c=="string"||typeof m=="string"?(c=Fn(c),m=Fn(m)):(c=Kg(c),m=Kg(m)),C=r(c,m)}return C}}function Ol(r){return Fr(function(s){return s=Lt(s,In(Pe())),tt(function(c){var m=this;return r(s,function(C){return On(C,m,c)})})})}function iu(r,s){s=s===n?" ":Fn(s);var c=s.length;if(c<2)return c?Sl(s,r):s;var m=Sl(s,Wa(r/gs(s)));return ps(s)?ni(sr(m),0,r).join(""):m.slice(0,r)}function jx(r,s,c,m){var C=s&v,P=Ao(r);function j(){for(var U=-1,H=arguments.length,ie=-1,se=m.length,ae=Y(se+H),ve=this&&this!==cn&&this instanceof j?P:r;++ie<se;)ae[ie]=m[ie];for(;H--;)ae[ie++]=arguments[++U];return On(ve,C?c:this,ae)}return j}function a0(r){return function(s,c,m){return m&&typeof m!="number"&&bn(s,c,m)&&(c=m=n),s=Pr(s),c===n?(c=s,s=0):c=Pr(c),m=m===n?s<c?1:-1:Pr(m),xx(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 u0(r,s,c,m,C,P,j,U,H,ie){var se=s&x,ae=se?j:n,ve=se?n:j,_e=se?P:n,Ne=se?n:P;s|=se?F:k,s&=~(se?k:F),s&N||(s&=-4);var Ze=[r,s,C,_e,ae,Ne,ve,U,H,ie],$e=c.apply(n,Ze);return Nl(r)&&w0($e,Ze),$e.placeholder=m,A0($e,r,s)}function Il(r){var s=nn[r];return function(c,m){if(c=Yn(c),m=m==null?0:hn(Je(m),292),m&&Ag(c)){var C=(Et(c)+"e").split("e"),P=s(C[0]+"e"+(+C[1]+m));return C=(Et(P)+"e").split("e"),+(C[0]+"e"+(+C[1]-m))}return s(c)}}var Mx=bs&&1/Pa(new bs([,-0]))[1]==Re?function(r){return new bs(r)}:Ql;function c0(r){return function(s){var c=dn(s);return c==Nt?ol(s):c==ct?rE(s):JS(s,r(s))}}function Ir(r,s,c,m,C,P,j,U){var H=s&R;if(!H&&typeof r!="function")throw new Kn(u);var ie=m?m.length:0;if(ie||(s&=-97,m=C=n),j=j===n?j:rn(Je(j),0),U=U===n?U:Je(U),ie-=C?C.length:0,s&k){var se=m,ae=C;m=C=n}var ve=H?n:Dl(r),_e=[r,s,c,m,C,se,ae,P,j,U];if(ve&&t2(_e,ve),r=_e[0],s=_e[1],c=_e[2],m=_e[3],C=_e[4],U=_e[9]=_e[9]===n?H?0:r.length:rn(_e[9]-ie,0),!U&&s&(x|O)&&(s&=-25),!s||s==v)var Ne=Nx(r,s,c);else s==x||s==O?Ne=$x(r,s,U):(s==F||s==(v|F))&&!C.length?Ne=jx(r,s,c,m):Ne=nu.apply(n,_e);var Ze=ve?qg:w0;return A0(Ze(Ne,_e),r,s)}function l0(r,s,c,m){return r===n||ar(r,ms[c])&&!xt.call(m,c)?s:r}function f0(r,s,c,m,C,P){return Ut(r)&&Ut(s)&&(P.set(s,r),Qa(r,s,n,f0,P),P.delete(s)),r}function Ux(r){return xo(r)?n:r}function h0(r,s,c,m,C,P){var j=c&A,U=r.length,H=s.length;if(U!=H&&!(j&&H>U))return!1;var ie=P.get(r),se=P.get(s);if(ie&&se)return ie==s&&se==r;var ae=-1,ve=!0,_e=c&S?new Ci:n;for(P.set(r,s),P.set(s,r);++ae<U;){var Ne=r[ae],Ze=s[ae];if(m)var $e=j?m(Ze,Ne,ae,s,r,P):m(Ne,Ze,ae,r,s,P);if($e!==n){if($e)continue;ve=!1;break}if(_e){if(!el(s,function(st,ut){if(!co(_e,ut)&&(Ne===st||C(Ne,st,c,m,P)))return _e.push(ut)})){ve=!1;break}}else if(!(Ne===Ze||C(Ne,Ze,c,m,P))){ve=!1;break}}return P.delete(r),P.delete(s),ve}function Vx(r,s,c,m,C,P,j){switch(c){case Fe:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case xe:return!(r.byteLength!=s.byteLength||!P(new Ma(r),new Ma(s)));case we:case Oe:case $t:return ar(+r,+s);case Le:return r.name==s.name&&r.message==s.message;case je:case Ae:return r==s+"";case Nt:var U=ol;case ct:var H=m&A;if(U||(U=Pa),r.size!=s.size&&!H)return!1;var ie=j.get(r);if(ie)return ie==s;m|=S,j.set(r,s);var se=h0(U(r),U(s),m,C,P,j);return j.delete(r),se;case Mt:if(go)return go.call(r)==go.call(s)}return!1}function qx(r,s,c,m,C,P){var j=c&A,U=Fl(r),H=U.length,ie=Fl(s),se=ie.length;if(H!=se&&!j)return!1;for(var ae=H;ae--;){var ve=U[ae];if(!(j?ve in s:xt.call(s,ve)))return!1}var _e=P.get(r),Ne=P.get(s);if(_e&&Ne)return _e==s&&Ne==r;var Ze=!0;P.set(r,s),P.set(s,r);for(var $e=j;++ae<H;){ve=U[ae];var st=r[ve],ut=s[ve];if(m)var Dn=j?m(ut,st,ve,s,r,P):m(st,ut,ve,r,s,P);if(!(Dn===n?st===ut||C(st,ut,c,m,P):Dn)){Ze=!1;break}$e||($e=ve=="constructor")}if(Ze&&!$e){var vn=r.constructor,Pn=s.constructor;vn!=Pn&&"constructor"in r&&"constructor"in s&&!(typeof vn=="function"&&vn instanceof vn&&typeof Pn=="function"&&Pn instanceof Pn)&&(Ze=!1)}return P.delete(r),P.delete(s),Ze}function Fr(r){return jl(b0(r,n,k0),r+"")}function Fl(r){return Bg(r,an,Rl)}function Bl(r){return Bg(r,xn,d0)}var Dl=Ha?function(r){return Ha.get(r)}:Ql;function ou(r){for(var s=r.name+"",c=vs[s],m=xt.call(vs,s)?c.length:0;m--;){var C=c[m],P=C.func;if(P==null||P==r)return C.name}return s}function Es(r){var s=xt.call(B,"placeholder")?B:r;return s.placeholder}function Pe(){var r=B.iteratee||Yl;return r=r===Yl?Rg:r,arguments.length?r(arguments[0],arguments[1]):r}function au(r,s){var c=r.__data__;return Xx(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Pl(r){for(var s=an(r),c=s.length;c--;){var m=s[c],C=r[m];s[c]=[m,C,y0(C)]}return s}function Ti(r,s){var c=eE(r,s);return Pg(c)?c:n}function Wx(r){var s=xt.call(r,Ei),c=r[Ei];try{r[Ei]=n;var m=!0}catch{}var C=$a.call(r);return m&&(s?r[Ei]=c:delete r[Ei]),C}var Rl=ul?function(r){return r==null?[]:(r=_t(r),Jr(ul(r),function(s){return vg.call(r,s)}))}:Zl,d0=ul?function(r){for(var s=[];r;)Yr(s,Rl(r)),r=Ua(r);return s}:Zl,dn=mn;(cl&&dn(new cl(new ArrayBuffer(1)))!=Fe||fo&&dn(new fo)!=Nt||ll&&dn(ll.resolve())!=ke||bs&&dn(new bs)!=ct||ho&&dn(new ho)!=Me)&&(dn=function(r){var s=mn(r),c=s==St?r.constructor:n,m=c?Oi(c):"";if(m)switch(m){case _E:return Fe;case kE:return Nt;case TE:return ke;case OE:return ct;case IE:return Me}return s});function Kx(r,s,c){for(var m=-1,C=c.length;++m<C;){var P=c[m],j=P.size;switch(P.type){case"drop":r+=j;break;case"dropRight":s-=j;break;case"take":s=hn(s,r+j);break;case"takeRight":r=rn(r,s-j);break}}return{start:r,end:s}}function Hx(r){var s=r.match(yn);return s?s[1].split(M):[]}function p0(r,s,c){s=ti(s,r);for(var m=-1,C=s.length,P=!1;++m<C;){var j=wr(s[m]);if(!(P=r!=null&&c(r,j)))break;r=r[j]}return P||++m!=C?P:(C=r==null?0:r.length,!!C&&pu(C)&&Br(j,C)&&(He(r)||Ii(r)))}function zx(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&xt.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function g0(r){return typeof r.constructor=="function"&&!So(r)?ws(Ua(r)):{}}function Gx(r,s,c){var m=r.constructor;switch(s){case xe:return Tl(r);case we:case Oe:return new m(+r);case Fe:return Fx(r,c);case Bt:case T:case y:case b:case L:case q:case G:case ee:case Ue:return Xg(r,c);case Nt:return new m;case $t:case Ae:return new m(r);case je:return Bx(r);case ct:return new m;case Mt:return Dx(r)}}function Jx(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,`{
143
+ */ea.exports,function(e,t){(function(){var n,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,g="__lodash_placeholder__",p=1,v=2,_=4,S=1,E=2,b=1,D=2,j=4,C=8,T=16,F=32,P=64,O=128,W=256,Y=512,ce=30,le="...",ge=800,ye=16,Ce=1,pe=2,Re=3,Se=1/0,Ee=9007199254740991,He=17976931348623157e292,Ae=NaN,me=4294967295,Me=me-1,J=me>>>1,X=[["ary",O],["bind",b],["bindKey",D],["curry",C],["curryRight",T],["flip",Y],["partial",F],["partialRight",P],["rearg",W]],ae="[object Arguments]",Be="[object Array]",We="[object AsyncFunction]",_e="[object Boolean]",De="[object Date]",Oe="[object DOMException]",Le="[object Error]",Tt="[object Function]",rn="[object GeneratorFunction]",Lt="[object Map]",jt="[object Number]",Nt="[object Null]",bt="[object Object]",kn="[object Promise]",An="[object Proxy]",ke="[object RegExp]",Pe="[object Set]",he="[object String]",At="[object Symbol]",St="[object Undefined]",Et="[object WeakMap]",rt="[object WeakSet]",we="[object ArrayBuffer]",Te="[object DataView]",ut="[object Float32Array]",I="[object Float64Array]",y="[object Int8Array]",w="[object Int16Array]",L="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",ee="[object Uint16Array]",Ue="[object Uint32Array]",pt=/\b__p \+= '';/g,ct=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39);/g,Gr=/[&<>"']/g,Si=RegExp(st.source),cs=RegExp(Gr.source),ls=/<%-([\s\S]+?)%>/g,fs=/<%([\s\S]+?)%>/g,Jr=/<%=([\s\S]+?)%>/g,Ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/,oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Or=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(Or.source),Yr=/^\s+/,ao=/\s/,uo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gn=/\{\n\/\* \[wrapped with (.+)\] \*/,M=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,be=/[()=,{}\[\]\/\s]/,Fe=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Bt=/^0o[0-7]+$/i,Pt=/^(?:0|[1-9]\d*)$/,ln=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,sr=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",xi="\\u0300-\\u036f",co="\\ufe20-\\ufe2f",lo="\\u20d0-\\u20ff",Ta=xi+co+lo,Oa="\\u2700-\\u27bf",Ia="a-z\\xdf-\\xf6\\xf8-\\xff",Jc="\\xac\\xb1\\xd7\\xf7",Yc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qc="\\u2000-\\u206f",Xc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",On="A-Z\\xc0-\\xd6\\xd8-\\xde",hs="\\ufe0e\\ufe0f",fo=Jc+Yc+Qc+Xc,ds="['’]",Zc="["+Ht+"]",Qr="["+fo+"]",ps="["+Ta+"]",Fa="\\d+",Ba="["+Oa+"]",Da="["+Ia+"]",Pa="[^"+Ht+fo+Fa+Oa+Ia+On+"]",h="\\ud83c[\\udffb-\\udfff]",x="(?:"+ps+"|"+h+")",N="[^"+Ht+"]",K="(?:\\ud83c[\\udde6-\\uddff]){2}",ne="[\\ud800-\\udbff][\\udc00-\\udfff]",de="["+On+"]",ze="\\u200d",mt="(?:"+Da+"|"+Pa+")",Zt="(?:"+de+"|"+Pa+")",zt="(?:"+ds+"(?:d|ll|m|re|s|t|ve))?",i0="(?:"+ds+"(?:D|LL|M|RE|S|T|VE))?",s0=x+"?",o0="["+hs+"]?",IA="(?:"+ze+"(?:"+[N,K,ne].join("|")+")"+o0+s0+")*",FA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",BA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",a0=o0+s0+IA,DA="(?:"+[Ba,K,ne].join("|")+")"+a0,PA="(?:"+[N+ps+"?",ps,K,ne,Zc].join("|")+")",RA=RegExp(ds,"g"),LA=RegExp(ps,"g"),el=RegExp(h+"(?="+h+")|"+PA+a0,"g"),jA=RegExp([de+"?"+Da+"+"+zt+"(?="+[Qr,de,"$"].join("|")+")",Zt+"+"+i0+"(?="+[Qr,de+mt,"$"].join("|")+")",de+"?"+mt+"+"+zt,de+"+"+i0,BA,FA,Fa,DA].join("|"),"g"),NA=RegExp("["+ze+Ht+Ta+hs+"]"),$A=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,MA=["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"],UA=-1,Dt={};Dt[ut]=Dt[I]=Dt[y]=Dt[w]=Dt[L]=Dt[V]=Dt[G]=Dt[ee]=Dt[Ue]=!0,Dt[ae]=Dt[Be]=Dt[we]=Dt[_e]=Dt[Te]=Dt[De]=Dt[Le]=Dt[Tt]=Dt[Lt]=Dt[jt]=Dt[bt]=Dt[ke]=Dt[Pe]=Dt[he]=Dt[Et]=!1;var Ot={};Ot[ae]=Ot[Be]=Ot[we]=Ot[Te]=Ot[_e]=Ot[De]=Ot[ut]=Ot[I]=Ot[y]=Ot[w]=Ot[L]=Ot[Lt]=Ot[jt]=Ot[bt]=Ot[ke]=Ot[Pe]=Ot[he]=Ot[At]=Ot[V]=Ot[G]=Ot[ee]=Ot[Ue]=!0,Ot[Le]=Ot[Tt]=Ot[Et]=!1;var VA={À:"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"},qA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},WA={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},KA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},HA=parseFloat,zA=parseInt,u0=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,GA=typeof self=="object"&&self&&self.Object===Object&&self,un=u0||GA||Function("return this")(),tl=t&&!t.nodeType&&t,Ci=tl&&!0&&e&&!e.nodeType&&e,c0=Ci&&Ci.exports===tl,nl=c0&&u0.process,qn=function(){try{var H=Ci&&Ci.require&&Ci.require("util").types;return H||nl&&nl.binding&&nl.binding("util")}catch{}}(),l0=qn&&qn.isArrayBuffer,f0=qn&&qn.isDate,h0=qn&&qn.isMap,d0=qn&&qn.isRegExp,p0=qn&&qn.isSet,g0=qn&&qn.isTypedArray;function In(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 JA(H,te,Q,xe){for(var Ve=-1,wt=H==null?0:H.length;++Ve<wt;){var en=H[Ve];te(xe,en,Q(en),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 YA(H,te){for(var Q=H==null?0:H.length;Q--&&te(H[Q],Q,H)!==!1;);return H}function y0(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 Xr(H,te){for(var Q=-1,xe=H==null?0:H.length,Ve=0,wt=[];++Q<xe;){var en=H[Q];te(en,Q,H)&&(wt[Ve++]=en)}return wt}function Ra(H,te){var Q=H==null?0:H.length;return!!Q&&gs(H,te,0)>-1}function rl(H,te,Q){for(var xe=-1,Ve=H==null?0:H.length;++xe<Ve;)if(Q(te,H[xe]))return!0;return!1}function Rt(H,te){for(var Q=-1,xe=H==null?0:H.length,Ve=Array(xe);++Q<xe;)Ve[Q]=te(H[Q],Q,H);return Ve}function Zr(H,te){for(var Q=-1,xe=te.length,Ve=H.length;++Q<xe;)H[Ve+Q]=te[Q];return H}function il(H,te,Q,xe){var Ve=-1,wt=H==null?0:H.length;for(xe&&wt&&(Q=H[++Ve]);++Ve<wt;)Q=te(Q,H[Ve],Ve,H);return Q}function QA(H,te,Q,xe){var Ve=H==null?0:H.length;for(xe&&Ve&&(Q=H[--Ve]);Ve--;)Q=te(Q,H[Ve],Ve,H);return Q}function sl(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 XA=ol("length");function ZA(H){return H.split("")}function eS(H){return H.match(fe)||[]}function m0(H,te,Q){var xe;return Q(H,function(Ve,wt,en){if(te(Ve,wt,en))return xe=wt,!1}),xe}function La(H,te,Q,xe){for(var Ve=H.length,wt=Q+(xe?1:-1);xe?wt--:++wt<Ve;)if(te(H[wt],wt,H))return wt;return-1}function gs(H,te,Q){return te===te?hS(H,te,Q):La(H,w0,Q)}function tS(H,te,Q,xe){for(var Ve=Q-1,wt=H.length;++Ve<wt;)if(xe(H[Ve],te))return Ve;return-1}function w0(H){return H!==H}function b0(H,te){var Q=H==null?0:H.length;return Q?ul(H,te)/Q:Ae}function ol(H){return function(te){return te==null?n:te[H]}}function al(H){return function(te){return H==null?n:H[te]}}function v0(H,te,Q,xe,Ve){return Ve(H,function(wt,en,_t){Q=xe?(xe=!1,wt):te(Q,wt,en,_t)}),Q}function nS(H,te){var Q=H.length;for(H.sort(te);Q--;)H[Q]=H[Q].value;return H}function ul(H,te){for(var Q,xe=-1,Ve=H.length;++xe<Ve;){var wt=te(H[xe]);wt!==n&&(Q=Q===n?wt:Q+wt)}return Q}function cl(H,te){for(var Q=-1,xe=Array(H);++Q<H;)xe[Q]=te(Q);return xe}function rS(H,te){return Rt(te,function(Q){return[Q,H[Q]]})}function A0(H){return H&&H.slice(0,C0(H)+1).replace(Yr,"")}function Fn(H){return function(te){return H(te)}}function ll(H,te){return Rt(te,function(Q){return H[Q]})}function ho(H,te){return H.has(te)}function S0(H,te){for(var Q=-1,xe=H.length;++Q<xe&&gs(te,H[Q],0)>-1;);return Q}function E0(H,te){for(var Q=H.length;Q--&&gs(te,H[Q],0)>-1;);return Q}function iS(H,te){for(var Q=H.length,xe=0;Q--;)H[Q]===te&&++xe;return xe}var sS=al(VA),oS=al(qA);function aS(H){return"\\"+KA[H]}function uS(H,te){return H==null?n:H[te]}function ys(H){return NA.test(H)}function cS(H){return $A.test(H)}function lS(H){for(var te,Q=[];!(te=H.next()).done;)Q.push(te.value);return Q}function fl(H){var te=-1,Q=Array(H.size);return H.forEach(function(xe,Ve){Q[++te]=[Ve,xe]}),Q}function x0(H,te){return function(Q){return H(te(Q))}}function ei(H,te){for(var Q=-1,xe=H.length,Ve=0,wt=[];++Q<xe;){var en=H[Q];(en===te||en===g)&&(H[Q]=g,wt[Ve++]=Q)}return wt}function ja(H){var te=-1,Q=Array(H.size);return H.forEach(function(xe){Q[++te]=xe}),Q}function fS(H){var te=-1,Q=Array(H.size);return H.forEach(function(xe){Q[++te]=[xe,xe]}),Q}function hS(H,te,Q){for(var xe=Q-1,Ve=H.length;++xe<Ve;)if(H[xe]===te)return xe;return-1}function dS(H,te,Q){for(var xe=Q+1;xe--;)if(H[xe]===te)return xe;return xe}function ms(H){return ys(H)?gS(H):XA(H)}function or(H){return ys(H)?yS(H):ZA(H)}function C0(H){for(var te=H.length;te--&&ao.test(H.charAt(te)););return te}var pS=al(WA);function gS(H){for(var te=el.lastIndex=0;el.test(H);)++te;return te}function yS(H){return H.match(el)||[]}function mS(H){return H.match(jA)||[]}var wS=function H(te){te=te==null?un:ws.defaults(un.Object(),te,ws.pick(un,MA));var Q=te.Array,xe=te.Date,Ve=te.Error,wt=te.Function,en=te.Math,_t=te.Object,hl=te.RegExp,bS=te.String,Kn=te.TypeError,Na=Q.prototype,vS=wt.prototype,bs=_t.prototype,$a=te["__core-js_shared__"],Ma=vS.toString,xt=bs.hasOwnProperty,AS=0,_0=function(){var r=/[^.]+$/.exec($a&&$a.keys&&$a.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Ua=bs.toString,SS=Ma.call(_t),ES=un._,xS=hl("^"+Ma.call(xt).replace(Or,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Va=c0?te.Buffer:n,ti=te.Symbol,qa=te.Uint8Array,k0=Va?Va.allocUnsafe:n,Wa=x0(_t.getPrototypeOf,_t),T0=_t.create,O0=bs.propertyIsEnumerable,Ka=Na.splice,I0=ti?ti.isConcatSpreadable:n,po=ti?ti.iterator:n,_i=ti?ti.toStringTag:n,Ha=function(){try{var r=Fi(_t,"defineProperty");return r({},"",{}),r}catch{}}(),CS=te.clearTimeout!==un.clearTimeout&&te.clearTimeout,_S=xe&&xe.now!==un.Date.now&&xe.now,kS=te.setTimeout!==un.setTimeout&&te.setTimeout,za=en.ceil,Ga=en.floor,dl=_t.getOwnPropertySymbols,TS=Va?Va.isBuffer:n,F0=te.isFinite,OS=Na.join,IS=x0(_t.keys,_t),tn=en.max,fn=en.min,FS=xe.now,BS=te.parseInt,B0=en.random,DS=Na.reverse,pl=Fi(te,"DataView"),go=Fi(te,"Map"),gl=Fi(te,"Promise"),vs=Fi(te,"Set"),yo=Fi(te,"WeakMap"),mo=Fi(_t,"create"),Ja=yo&&new yo,As={},PS=Bi(pl),RS=Bi(go),LS=Bi(gl),jS=Bi(vs),NS=Bi(yo),Ya=ti?ti.prototype:n,wo=Ya?Ya.valueOf:n,D0=Ya?Ya.toString:n;function B(r){if(Ut(r)&&!Ke(r)&&!(r instanceof ot)){if(r instanceof Hn)return r;if(xt.call(r,"__wrapped__"))return Pg(r)}return new Hn(r)}var Ss=function(){function r(){}return function(s){if(!$t(s))return{};if(T0)return T0(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Qa(){}function Hn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}B.templateSettings={escape:ls,evaluate:fs,interpolate:Jr,variable:"",imports:{_:B}},B.prototype=Qa.prototype,B.prototype.constructor=B,Hn.prototype=Ss(Qa.prototype),Hn.prototype.constructor=Hn;function ot(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=me,this.__views__=[]}function $S(){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 MS(){if(this.__filtered__){var r=new ot(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function US(){var r=this.__wrapped__.value(),s=this.__dir__,c=Ke(r),m=s<0,k=c?r.length:0,R=ZE(0,k,this.__views__),$=R.start,U=R.end,z=U-$,ie=m?U:$-1,se=this.__iteratees__,ue=se.length,ve=0,Ie=fn(z,this.__takeCount__);if(!c||!m&&k==z&&Ie==z)return rg(r,this.__actions__);var Ne=[];e:for(;z--&&ve<Ie;){ie+=s;for(var Qe=-1,$e=r[ie];++Qe<ue;){var it=se[Qe],at=it.iteratee,Pn=it.type,wn=at($e);if(Pn==pe)$e=wn;else if(!wn){if(Pn==Ce)continue e;break e}}Ne[ve++]=$e}return Ne}ot.prototype=Ss(Qa.prototype),ot.prototype.constructor=ot;function ki(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function VS(){this.__data__=mo?mo(null):{},this.size=0}function qS(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function WS(r){var s=this.__data__;if(mo){var c=s[r];return c===f?n:c}return xt.call(s,r)?s[r]:n}function KS(r){var s=this.__data__;return mo?s[r]!==n:xt.call(s,r)}function HS(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=mo&&s===n?f:s,this}ki.prototype.clear=VS,ki.prototype.delete=qS,ki.prototype.get=WS,ki.prototype.has=KS,ki.prototype.set=HS;function Ir(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 zS(){this.__data__=[],this.size=0}function GS(r){var s=this.__data__,c=Xa(s,r);if(c<0)return!1;var m=s.length-1;return c==m?s.pop():Ka.call(s,c,1),--this.size,!0}function JS(r){var s=this.__data__,c=Xa(s,r);return c<0?n:s[c][1]}function YS(r){return Xa(this.__data__,r)>-1}function QS(r,s){var c=this.__data__,m=Xa(c,r);return m<0?(++this.size,c.push([r,s])):c[m][1]=s,this}Ir.prototype.clear=zS,Ir.prototype.delete=GS,Ir.prototype.get=JS,Ir.prototype.has=YS,Ir.prototype.set=QS;function Fr(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var m=r[s];this.set(m[0],m[1])}}function XS(){this.size=0,this.__data__={hash:new ki,map:new(go||Ir),string:new ki}}function ZS(r){var s=lu(this,r).delete(r);return this.size-=s?1:0,s}function eE(r){return lu(this,r).get(r)}function tE(r){return lu(this,r).has(r)}function nE(r,s){var c=lu(this,r),m=c.size;return c.set(r,s),this.size+=c.size==m?0:1,this}Fr.prototype.clear=XS,Fr.prototype.delete=ZS,Fr.prototype.get=eE,Fr.prototype.has=tE,Fr.prototype.set=nE;function Ti(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new Fr;++s<c;)this.add(r[s])}function rE(r){return this.__data__.set(r,f),this}function iE(r){return this.__data__.has(r)}Ti.prototype.add=Ti.prototype.push=rE,Ti.prototype.has=iE;function ar(r){var s=this.__data__=new Ir(r);this.size=s.size}function sE(){this.__data__=new Ir,this.size=0}function oE(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function aE(r){return this.__data__.get(r)}function uE(r){return this.__data__.has(r)}function cE(r,s){var c=this.__data__;if(c instanceof Ir){var m=c.__data__;if(!go||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}ar.prototype.clear=sE,ar.prototype.delete=oE,ar.prototype.get=aE,ar.prototype.has=uE,ar.prototype.set=cE;function P0(r,s){var c=Ke(r),m=!c&&Di(r),k=!c&&!m&&oi(r),R=!c&&!m&&!k&&_s(r),$=c||m||k||R,U=$?cl(r.length,bS):[],z=U.length;for(var ie in r)(s||xt.call(r,ie))&&!($&&(ie=="length"||k&&(ie=="offset"||ie=="parent")||R&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Rr(ie,z)))&&U.push(ie);return U}function R0(r){var s=r.length;return s?r[_l(0,s-1)]:n}function lE(r,s){return fu(Sn(r),Oi(s,0,r.length))}function fE(r){return fu(Sn(r))}function yl(r,s,c){(c!==n&&!ur(r[s],c)||c===n&&!(s in r))&&Br(r,s,c)}function bo(r,s,c){var m=r[s];(!(xt.call(r,s)&&ur(m,c))||c===n&&!(s in r))&&Br(r,s,c)}function Xa(r,s){for(var c=r.length;c--;)if(ur(r[c][0],s))return c;return-1}function hE(r,s,c,m){return ni(r,function(k,R,$){s(m,k,c(k),$)}),m}function L0(r,s){return r&&Ar(s,sn(s),r)}function dE(r,s){return r&&Ar(s,xn(s),r)}function Br(r,s,c){s=="__proto__"&&Ha?Ha(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function ml(r,s){for(var c=-1,m=s.length,k=Q(m),R=r==null;++c<m;)k[c]=R?n:Ql(r,s[c]);return k}function Oi(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function zn(r,s,c,m,k,R){var $,U=s&p,z=s&v,ie=s&_;if(c&&($=k?c(r,m,k,R):c(r)),$!==n)return $;if(!$t(r))return r;var se=Ke(r);if(se){if($=tx(r),!U)return Sn(r,$)}else{var ue=hn(r),ve=ue==Tt||ue==rn;if(oi(r))return og(r,U);if(ue==bt||ue==ae||ve&&!k){if($=z||ve?{}:Cg(r),!U)return z?WE(r,dE($,r)):qE(r,L0($,r))}else{if(!Ot[ue])return k?r:{};$=nx(r,ue,U)}}R||(R=new ar);var Ie=R.get(r);if(Ie)return Ie;R.set(r,$),e1(r)?r.forEach(function($e){$.add(zn($e,s,c,$e,r,R))}):Xg(r)&&r.forEach(function($e,it){$.set(it,zn($e,s,c,it,r,R))});var Ne=ie?z?jl:Ll:z?xn:sn,Qe=se?n:Ne(r);return Wn(Qe||r,function($e,it){Qe&&(it=$e,$e=r[it]),bo($,it,zn($e,s,c,it,r,R))}),$}function pE(r){var s=sn(r);return function(c){return j0(c,r,s)}}function j0(r,s,c){var m=c.length;if(r==null)return!m;for(r=_t(r);m--;){var k=c[m],R=s[k],$=r[k];if($===n&&!(k in r)||!R($))return!1}return!0}function N0(r,s,c){if(typeof r!="function")throw new Kn(u);return _o(function(){r.apply(n,c)},s)}function vo(r,s,c,m){var k=-1,R=Ra,$=!0,U=r.length,z=[],ie=s.length;if(!U)return z;c&&(s=Rt(s,Fn(c))),m?(R=rl,$=!1):s.length>=o&&(R=ho,$=!1,s=new Ti(s));e:for(;++k<U;){var se=r[k],ue=c==null?se:c(se);if(se=m||se!==0?se:0,$&&ue===ue){for(var ve=ie;ve--;)if(s[ve]===ue)continue e;z.push(se)}else R(s,ue,m)||z.push(se)}return z}var ni=fg(vr),$0=fg(bl,!0);function gE(r,s){var c=!0;return ni(r,function(m,k,R){return c=!!s(m,k,R),c}),c}function Za(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 yE(r,s,c,m){var k=r.length;for(c=Ge(c),c<0&&(c=-c>k?0:k+c),m=m===n||m>k?k:Ge(m),m<0&&(m+=k),m=c>m?0:n1(m);c<m;)r[c++]=s;return r}function M0(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=ix),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 wl=hg(),U0=hg(!0);function vr(r,s){return r&&wl(r,s,sn)}function bl(r,s){return r&&U0(r,s,sn)}function eu(r,s){return Xr(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[Sr(s[c++])];return c&&c==m?r:n}function V0(r,s,c){var m=s(r);return Ke(r)?m:Zr(m,c(r))}function yn(r){return r==null?r===n?St:Nt:_i&&_i in _t(r)?XE(r):fx(r)}function vl(r,s){return r>s}function mE(r,s){return r!=null&&xt.call(r,s)}function wE(r,s){return r!=null&&s in _t(r)}function bE(r,s,c){return r>=fn(s,c)&&r<tn(s,c)}function Al(r,s,c){for(var m=c?rl:Ra,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=fn(se.length,z),U[$]=!c&&(s||k>=120&&se.length>=120)?new Ti($&&se):n}se=r[0];var ue=-1,ve=U[0];e:for(;++ue<k&&ie.length<z;){var Ie=se[ue],Ne=s?s(Ie):Ie;if(Ie=c||Ie!==0?Ie:0,!(ve?ho(ve,Ne):m(ie,Ne,c))){for($=R;--$;){var Qe=U[$];if(!(Qe?ho(Qe,Ne):m(r[$],Ne,c)))continue e}ve&&ve.push(Ne),ie.push(Ie)}}return ie}function vE(r,s,c,m){return vr(r,function(k,R,$){s(m,c(k),R,$)}),m}function Ao(r,s,c){s=ii(s,r),r=Og(r,s);var m=r==null?r:r[Sr(Jn(s))];return m==null?n:In(m,r,c)}function q0(r){return Ut(r)&&yn(r)==ae}function AE(r){return Ut(r)&&yn(r)==we}function SE(r){return Ut(r)&&yn(r)==De}function So(r,s,c,m,k){return r===s?!0:r==null||s==null||!Ut(r)&&!Ut(s)?r!==r&&s!==s:EE(r,s,c,m,So,k)}function EE(r,s,c,m,k,R){var $=Ke(r),U=Ke(s),z=$?Be:hn(r),ie=U?Be:hn(s);z=z==ae?bt:z,ie=ie==ae?bt:ie;var se=z==bt,ue=ie==bt,ve=z==ie;if(ve&&oi(r)){if(!oi(s))return!1;$=!0,se=!1}if(ve&&!se)return R||(R=new ar),$||_s(r)?Sg(r,s,c,m,k,R):YE(r,s,z,c,m,k,R);if(!(c&S)){var Ie=se&&xt.call(r,"__wrapped__"),Ne=ue&&xt.call(s,"__wrapped__");if(Ie||Ne){var Qe=Ie?r.value():r,$e=Ne?s.value():s;return R||(R=new ar),k(Qe,$e,c,m,R)}}return ve?(R||(R=new ar),QE(r,s,c,m,k,R)):!1}function xE(r){return Ut(r)&&hn(r)==Lt}function Sl(r,s,c,m){var k=c.length,R=k,$=!m;if(r==null)return!R;for(r=_t(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 ue=new ar;if(m)var ve=m(ie,se,z,r,s,ue);if(!(ve===n?So(se,ie,S|E,m,ue):ve))return!1}}return!0}function W0(r){if(!$t(r)||ox(r))return!1;var s=Lr(r)?xS:Xt;return s.test(Bi(r))}function CE(r){return Ut(r)&&yn(r)==ke}function _E(r){return Ut(r)&&hn(r)==Pe}function kE(r){return Ut(r)&&mu(r.length)&&!!Dt[yn(r)]}function K0(r){return typeof r=="function"?r:r==null?Cn:typeof r=="object"?Ke(r)?G0(r[0],r[1]):z0(r):d1(r)}function El(r){if(!Co(r))return IS(r);var s=[];for(var c in _t(r))xt.call(r,c)&&c!="constructor"&&s.push(c);return s}function TE(r){if(!$t(r))return lx(r);var s=Co(r),c=[];for(var m in r)m=="constructor"&&(s||!xt.call(r,m))||c.push(m);return c}function xl(r,s){return r<s}function H0(r,s){var c=-1,m=En(r)?Q(r.length):[];return ni(r,function(k,R,$){m[++c]=s(k,R,$)}),m}function z0(r){var s=$l(r);return s.length==1&&s[0][2]?kg(s[0][0],s[0][1]):function(c){return c===r||Sl(c,r,s)}}function G0(r,s){return Ul(r)&&_g(s)?kg(Sr(r),s):function(c){var m=Ql(c,r);return m===n&&m===s?Xl(c,r):So(s,m,S|E)}}function tu(r,s,c,m,k){r!==s&&wl(s,function(R,$){if(k||(k=new ar),$t(R))OE(r,s,$,c,tu,m,k);else{var U=m?m(ql(r,$),R,$+"",r,s,k):n;U===n&&(U=R),yl(r,$,U)}},xn)}function OE(r,s,c,m,k,R,$){var U=ql(r,c),z=ql(s,c),ie=$.get(z);if(ie){yl(r,c,ie);return}var se=R?R(U,z,c+"",r,s,$):n,ue=se===n;if(ue){var ve=Ke(z),Ie=!ve&&oi(z),Ne=!ve&&!Ie&&_s(z);se=z,ve||Ie||Ne?Ke(U)?se=U:Gt(U)?se=Sn(U):Ie?(ue=!1,se=og(z,!0)):Ne?(ue=!1,se=ag(z,!0)):se=[]:ko(z)||Di(z)?(se=U,Di(U)?se=r1(U):(!$t(U)||Lr(U))&&(se=Cg(z))):ue=!1}ue&&($.set(z,se),k(se,z,m,R,$),$.delete(z)),yl(r,c,se)}function J0(r,s){var c=r.length;if(c)return s+=s<0?c:0,Rr(s,c)?r[s]:n}function Y0(r,s,c){s.length?s=Rt(s,function(R){return Ke(R)?function($){return Ii($,R.length===1?R[0]:R)}:R}):s=[Cn];var m=-1;s=Rt(s,Fn(je()));var k=H0(r,function(R,$,U){var z=Rt(s,function(ie){return ie(R)});return{criteria:z,index:++m,value:R}});return nS(k,function(R,$){return VE(R,$,c)})}function IE(r,s){return Q0(r,s,function(c,m){return Xl(r,m)})}function Q0(r,s,c){for(var m=-1,k=s.length,R={};++m<k;){var $=s[m],U=Ii(r,$);c(U,$)&&Eo(R,ii($,r),U)}return R}function FE(r){return function(s){return Ii(s,r)}}function Cl(r,s,c,m){var k=m?tS:gs,R=-1,$=s.length,U=r;for(r===s&&(s=Sn(s)),c&&(U=Rt(r,Fn(c)));++R<$;)for(var z=0,ie=s[R],se=c?c(ie):ie;(z=k(U,se,z,m))>-1;)U!==r&&Ka.call(U,z,1),Ka.call(r,z,1);return r}function X0(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;Rr(k)?Ka.call(r,k,1):Ol(r,k)}}return r}function _l(r,s){return r+Ga(B0()*(s-r+1))}function BE(r,s,c,m){for(var k=-1,R=tn(za((s-r)/(c||1)),0),$=Q(R);R--;)$[m?R:++k]=r,r+=c;return $}function kl(r,s){var c="";if(!r||s<1||s>Ee)return c;do s%2&&(c+=r),s=Ga(s/2),s&&(r+=r);while(s);return c}function Xe(r,s){return Wl(Tg(r,s,Cn),r+"")}function DE(r){return R0(ks(r))}function PE(r,s){var c=ks(r);return fu(c,Oi(s,0,c.length))}function Eo(r,s,c,m){if(!$t(r))return r;s=ii(s,r);for(var k=-1,R=s.length,$=R-1,U=r;U!=null&&++k<R;){var z=Sr(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=$t(se)?se:Rr(s[k+1])?[]:{})}bo(U,z,ie),U=U[z]}return r}var Z0=Ja?function(r,s){return Ja.set(r,s),r}:Cn,RE=Ha?function(r,s){return Ha(r,"toString",{configurable:!0,enumerable:!1,value:ef(s),writable:!0})}:Cn;function LE(r){return fu(ks(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 jE(r,s){var c;return ni(r,function(m,k,R){return c=s(m,k,R),!c}),!!c}function nu(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 Tl(r,s,Cn,c)}function Tl(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=Ga((k+R)/2),ue=c(r[se]),ve=ue!==n,Ie=ue===null,Ne=ue===ue,Qe=Dn(ue);if($)var $e=m||Ne;else ie?$e=Ne&&(m||ve):U?$e=Ne&&ve&&(m||!Ie):z?$e=Ne&&ve&&!Ie&&(m||!Qe):Ie||Qe?$e=!1:$e=m?ue<=s:ue<s;$e?k=se+1:R=se}return fn(R,Me)}function eg(r,s){for(var c=-1,m=r.length,k=0,R=[];++c<m;){var $=r[c],U=s?s($):$;if(!c||!ur(U,z)){var z=U;R[k++]=$===0?0:$}}return R}function tg(r){return typeof r=="number"?r:Dn(r)?Ae:+r}function Bn(r){if(typeof r=="string")return r;if(Ke(r))return Rt(r,Bn)+"";if(Dn(r))return D0?D0.call(r):"";var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function ri(r,s,c){var m=-1,k=Ra,R=r.length,$=!0,U=[],z=U;if(c)$=!1,k=rl;else if(R>=o){var ie=s?null:GE(r);if(ie)return ja(ie);$=!1,k=ho,z=new Ti}else z=s?[]:U;e:for(;++m<R;){var se=r[m],ue=s?s(se):se;if(se=c||se!==0?se:0,$&&ue===ue){for(var ve=z.length;ve--;)if(z[ve]===ue)continue e;s&&z.push(ue),U.push(se)}else k(z,ue,c)||(z!==U&&z.push(ue),U.push(se))}return U}function Ol(r,s){return s=ii(s,r),r=Og(r,s),r==null||delete r[Sr(Jn(s))]}function ng(r,s,c,m){return Eo(r,s,c(Ii(r,s)),m)}function ru(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 rg(r,s){var c=r;return c instanceof ot&&(c=c.value()),il(s,function(m,k){return k.func.apply(k.thisArg,Zr([m],k.args))},c)}function Il(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]=vo(R[k]||$,r[U],s,c));return ri(cn(R,1),s,c)}function ig(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 Fl(r){return Gt(r)?r:[]}function Bl(r){return typeof r=="function"?r:Cn}function ii(r,s){return Ke(r)?r:Ul(r,s)?[r]:Dg(vt(r))}var NE=Xe;function si(r,s,c){var m=r.length;return c=c===n?m:c,!s&&c>=m?r:Gn(r,s,c)}var sg=CS||function(r){return un.clearTimeout(r)};function og(r,s){if(s)return r.slice();var c=r.length,m=k0?k0(c):new r.constructor(c);return r.copy(m),m}function Dl(r){var s=new r.constructor(r.byteLength);return new qa(s).set(new qa(r)),s}function $E(r,s){var c=s?Dl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function ME(r){var s=new r.constructor(r.source,ft.exec(r));return s.lastIndex=r.lastIndex,s}function UE(r){return wo?_t(wo.call(r)):{}}function ag(r,s){var c=s?Dl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function ug(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 VE(r,s,c){for(var m=-1,k=r.criteria,R=s.criteria,$=k.length,U=c.length;++m<$;){var z=ug(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 cg(r,s,c,m){for(var k=-1,R=r.length,$=c.length,U=-1,z=s.length,ie=tn(R-$,0),se=Q(z+ie),ue=!m;++U<z;)se[U]=s[U];for(;++k<$;)(ue||k<R)&&(se[c[k]]=r[k]);for(;ie--;)se[U++]=r[k++];return se}function lg(r,s,c,m){for(var k=-1,R=r.length,$=-1,U=c.length,z=-1,ie=s.length,se=tn(R-U,0),ue=Q(se+ie),ve=!m;++k<se;)ue[k]=r[k];for(var Ie=k;++z<ie;)ue[Ie+z]=s[z];for(;++$<U;)(ve||k<R)&&(ue[Ie+c[$]]=r[k++]);return ue}function Sn(r,s){var c=-1,m=r.length;for(s||(s=Q(m));++c<m;)s[c]=r[c];return s}function Ar(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):bo(c,U,z)}return c}function qE(r,s){return Ar(r,Ml(r),s)}function WE(r,s){return Ar(r,Eg(r),s)}function iu(r,s){return function(c,m){var k=Ke(c)?JA:hE,R=s?s():{};return k(c,r,je(m,2),R)}}function Es(r){return Xe(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,$&&mn(c[0],c[1],$)&&(R=k<3?n:R,k=1),s=_t(s);++m<k;){var U=c[m];U&&r(s,U,m,R)}return s})}function fg(r,s){return function(c,m){if(c==null)return c;if(!En(c))return r(c,m);for(var k=c.length,R=s?k:-1,$=_t(c);(s?R--:++R<k)&&m($[R],R,$)!==!1;);return c}}function hg(r){return function(s,c,m){for(var k=-1,R=_t(s),$=m(s),U=$.length;U--;){var z=$[r?U:++k];if(c(R[z],z,R)===!1)break}return s}}function KE(r,s,c){var m=s&b,k=xo(r);function R(){var $=this&&this!==un&&this instanceof R?k:r;return $.apply(m?c:this,arguments)}return R}function dg(r){return function(s){s=vt(s);var c=ys(s)?or(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 il(f1(l1(s).replace(RA,"")),r,"")}}function xo(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=Ss(r.prototype),m=r.apply(c,s);return $t(m)?m:c}}function HE(r,s,c){var m=xo(r);function k(){for(var R=arguments.length,$=Q(R),U=R,z=Cs(k);U--;)$[U]=arguments[U];var ie=R<3&&$[0]!==z&&$[R-1]!==z?[]:ei($,z);if(R-=ie.length,R<c)return wg(r,s,su,k.placeholder,n,$,ie,n,n,c-R);var se=this&&this!==un&&this instanceof k?m:r;return In(se,this,$)}return k}function pg(r){return function(s,c,m){var k=_t(s);if(!En(s)){var R=je(c,3);s=sn(s),c=function(U){return R(k[U],U,k)}}var $=r(s,c,m);return $>-1?k[R?s[$]:$]:n}}function gg(r){return Pr(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&&!$&&cu(R)=="wrapper")var $=new Hn([],!0)}for(m=$?m:c;++m<c;){R=s[m];var U=cu(R),z=U=="wrapper"?Nl(R):n;z&&Vl(z[0])&&z[1]==(O|C|F|W)&&!z[4].length&&z[9]==1?$=$[cu(z[0])].apply($,z[3]):$=R.length==1&&Vl(R)?$[U]():$.thru(R)}return function(){var ie=arguments,se=ie[0];if($&&ie.length==1&&Ke(se))return $.plant(se).value();for(var ue=0,ve=c?s[ue].apply(this,ie):se;++ue<c;)ve=s[ue].call(this,ve);return ve}})}function su(r,s,c,m,k,R,$,U,z,ie){var se=s&O,ue=s&b,ve=s&D,Ie=s&(C|T),Ne=s&Y,Qe=ve?n:xo(r);function $e(){for(var it=arguments.length,at=Q(it),Pn=it;Pn--;)at[Pn]=arguments[Pn];if(Ie)var wn=Cs($e),Rn=iS(at,wn);if(m&&(at=cg(at,m,k,Ie)),R&&(at=lg(at,R,$,Ie)),it-=Rn,Ie&&it<ie){var Jt=ei(at,wn);return wg(r,s,su,$e.placeholder,c,at,Jt,U,z,ie-it)}var cr=ue?c:this,Nr=ve?cr[r]:r;return it=at.length,U?at=hx(at,U):Ne&&it>1&&at.reverse(),se&&z<it&&(at.length=z),this&&this!==un&&this instanceof $e&&(Nr=Qe||xo(Nr)),Nr.apply(cr,at)}return $e}function yg(r,s){return function(c,m){return vE(c,r,s(m),{})}}function ou(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=tg(c),m=tg(m)),k=r(c,m)}return k}}function Pl(r){return Pr(function(s){return s=Rt(s,Fn(je())),Xe(function(c){var m=this;return r(s,function(k){return In(k,m,c)})})})}function au(r,s){s=s===n?" ":Bn(s);var c=s.length;if(c<2)return c?kl(s,r):s;var m=kl(s,za(r/ms(s)));return ys(s)?si(or(m),0,r).join(""):m.slice(0,r)}function zE(r,s,c,m){var k=s&b,R=xo(r);function $(){for(var U=-1,z=arguments.length,ie=-1,se=m.length,ue=Q(se+z),ve=this&&this!==un&&this instanceof $?R:r;++ie<se;)ue[ie]=m[ie];for(;z--;)ue[ie++]=arguments[++U];return In(ve,k?c:this,ue)}return $}function mg(r){return function(s,c,m){return m&&typeof m!="number"&&mn(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),BE(s,c,m,r)}}function uu(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Yn(s),c=Yn(c)),r(s,c)}}function wg(r,s,c,m,k,R,$,U,z,ie){var se=s&C,ue=se?$:n,ve=se?n:$,Ie=se?R:n,Ne=se?n:R;s|=se?F:P,s&=~(se?P:F),s&j||(s&=-4);var Qe=[r,s,k,Ie,ue,Ne,ve,U,z,ie],$e=c.apply(n,Qe);return Vl(r)&&Ig($e,Qe),$e.placeholder=m,Fg($e,r,s)}function Rl(r){var s=en[r];return function(c,m){if(c=Yn(c),m=m==null?0:fn(Ge(m),292),m&&F0(c)){var k=(vt(c)+"e").split("e"),R=s(k[0]+"e"+(+k[1]+m));return k=(vt(R)+"e").split("e"),+(k[0]+"e"+(+k[1]-m))}return s(c)}}var GE=vs&&1/ja(new vs([,-0]))[1]==Se?function(r){return new vs(r)}:rf;function bg(r){return function(s){var c=hn(s);return c==Lt?fl(s):c==Pe?fS(s):rS(s,r(s))}}function Dr(r,s,c,m,k,R,$,U){var z=s&D;if(!z&&typeof r!="function")throw new Kn(u);var ie=m?m.length:0;if(ie||(s&=-97,m=k=n),$=$===n?$:tn(Ge($),0),U=U===n?U:Ge(U),ie-=k?k.length:0,s&P){var se=m,ue=k;m=k=n}var ve=z?n:Nl(r),Ie=[r,s,c,m,k,se,ue,R,$,U];if(ve&&cx(Ie,ve),r=Ie[0],s=Ie[1],c=Ie[2],m=Ie[3],k=Ie[4],U=Ie[9]=Ie[9]===n?z?0:r.length:tn(Ie[9]-ie,0),!U&&s&(C|T)&&(s&=-25),!s||s==b)var Ne=KE(r,s,c);else s==C||s==T?Ne=HE(r,s,U):(s==F||s==(b|F))&&!k.length?Ne=zE(r,s,c,m):Ne=su.apply(n,Ie);var Qe=ve?Z0:Ig;return Fg(Qe(Ne,Ie),r,s)}function vg(r,s,c,m){return r===n||ur(r,bs[c])&&!xt.call(m,c)?s:r}function Ag(r,s,c,m,k,R){return $t(r)&&$t(s)&&(R.set(s,r),tu(r,s,n,Ag,R),R.delete(s)),r}function JE(r){return ko(r)?n:r}function Sg(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 ue=-1,ve=!0,Ie=c&E?new Ti:n;for(R.set(r,s),R.set(s,r);++ue<U;){var Ne=r[ue],Qe=s[ue];if(m)var $e=$?m(Qe,Ne,ue,s,r,R):m(Ne,Qe,ue,r,s,R);if($e!==n){if($e)continue;ve=!1;break}if(Ie){if(!sl(s,function(it,at){if(!ho(Ie,at)&&(Ne===it||k(Ne,it,c,m,R)))return Ie.push(at)})){ve=!1;break}}else if(!(Ne===Qe||k(Ne,Qe,c,m,R))){ve=!1;break}}return R.delete(r),R.delete(s),ve}function YE(r,s,c,m,k,R,$){switch(c){case Te:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case we:return!(r.byteLength!=s.byteLength||!R(new qa(r),new qa(s)));case _e:case De:case jt:return ur(+r,+s);case Le:return r.name==s.name&&r.message==s.message;case ke:case he:return r==s+"";case Lt:var U=fl;case Pe:var z=m&S;if(U||(U=ja),r.size!=s.size&&!z)return!1;var ie=$.get(r);if(ie)return ie==s;m|=E,$.set(r,s);var se=Sg(U(r),U(s),m,k,R,$);return $.delete(r),se;case At:if(wo)return wo.call(r)==wo.call(s)}return!1}function QE(r,s,c,m,k,R){var $=c&S,U=Ll(r),z=U.length,ie=Ll(s),se=ie.length;if(z!=se&&!$)return!1;for(var ue=z;ue--;){var ve=U[ue];if(!($?ve in s:xt.call(s,ve)))return!1}var Ie=R.get(r),Ne=R.get(s);if(Ie&&Ne)return Ie==s&&Ne==r;var Qe=!0;R.set(r,s),R.set(s,r);for(var $e=$;++ue<z;){ve=U[ue];var it=r[ve],at=s[ve];if(m)var Pn=$?m(at,it,ve,s,r,R):m(it,at,ve,r,s,R);if(!(Pn===n?it===at||k(it,at,c,m,R):Pn)){Qe=!1;break}$e||($e=ve=="constructor")}if(Qe&&!$e){var wn=r.constructor,Rn=s.constructor;wn!=Rn&&"constructor"in r&&"constructor"in s&&!(typeof wn=="function"&&wn instanceof wn&&typeof Rn=="function"&&Rn instanceof Rn)&&(Qe=!1)}return R.delete(r),R.delete(s),Qe}function Pr(r){return Wl(Tg(r,n,jg),r+"")}function Ll(r){return V0(r,sn,Ml)}function jl(r){return V0(r,xn,Eg)}var Nl=Ja?function(r){return Ja.get(r)}:rf;function cu(r){for(var s=r.name+"",c=As[s],m=xt.call(As,s)?c.length:0;m--;){var k=c[m],R=k.func;if(R==null||R==r)return k.name}return s}function Cs(r){var s=xt.call(B,"placeholder")?B:r;return s.placeholder}function je(){var r=B.iteratee||tf;return r=r===tf?K0:r,arguments.length?r(arguments[0],arguments[1]):r}function lu(r,s){var c=r.__data__;return sx(s)?c[typeof s=="string"?"string":"hash"]:c.map}function $l(r){for(var s=sn(r),c=s.length;c--;){var m=s[c],k=r[m];s[c]=[m,k,_g(k)]}return s}function Fi(r,s){var c=uS(r,s);return W0(c)?c:n}function XE(r){var s=xt.call(r,_i),c=r[_i];try{r[_i]=n;var m=!0}catch{}var k=Ua.call(r);return m&&(s?r[_i]=c:delete r[_i]),k}var Ml=dl?function(r){return r==null?[]:(r=_t(r),Xr(dl(r),function(s){return O0.call(r,s)}))}:sf,Eg=dl?function(r){for(var s=[];r;)Zr(s,Ml(r)),r=Wa(r);return s}:sf,hn=yn;(pl&&hn(new pl(new ArrayBuffer(1)))!=Te||go&&hn(new go)!=Lt||gl&&hn(gl.resolve())!=kn||vs&&hn(new vs)!=Pe||yo&&hn(new yo)!=Et)&&(hn=function(r){var s=yn(r),c=s==bt?r.constructor:n,m=c?Bi(c):"";if(m)switch(m){case PS:return Te;case RS:return Lt;case LS:return kn;case jS:return Pe;case NS:return Et}return s});function ZE(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=fn(s,r+$);break;case"takeRight":r=tn(r,s-$);break}}return{start:r,end:s}}function ex(r){var s=r.match(gn);return s?s[1].split(M):[]}function xg(r,s,c){s=ii(s,r);for(var m=-1,k=s.length,R=!1;++m<k;){var $=Sr(s[m]);if(!(R=r!=null&&c(r,$)))break;r=r[$]}return R||++m!=k?R:(k=r==null?0:r.length,!!k&&mu(k)&&Rr($,k)&&(Ke(r)||Di(r)))}function tx(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&xt.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function Cg(r){return typeof r.constructor=="function"&&!Co(r)?Ss(Wa(r)):{}}function nx(r,s,c){var m=r.constructor;switch(s){case we:return Dl(r);case _e:case De:return new m(+r);case Te:return $E(r,c);case ut:case I:case y:case w:case L:case V:case G:case ee:case Ue:return ag(r,c);case Lt:return new m;case jt:case he:return new m(r);case ke:return ME(r);case Pe:return new m;case At:return UE(r)}}function rx(r,s){var c=s.length;if(!c)return r;var m=c-1;return s[m]=(c>1?"& ":"")+s[m],s=s.join(c>2?", ":" "),r.replace(uo,`{
144
144
  /* [wrapped with `+s+`] */
145
- `)}function Yx(r){return He(r)||Ii(r)||!!(wg&&r&&r[wg])}function Br(r,s){var c=typeof r;return s=s??Ce,!!s&&(c=="number"||c!="symbol"&&Rt.test(r))&&r>-1&&r%1==0&&r<s}function bn(r,s,c){if(!Ut(c))return!1;var m=typeof s;return(m=="number"?En(c)&&Br(s,c.length):m=="string"&&s in c)?ar(c[s],r):!1}function Ll(r,s){if(He(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Bn(r)?!0:no.test(r)||!wi.test(r)||s!=null&&r in _t(s)}function Xx(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Nl(r){var s=ou(r),c=B[s];if(typeof c!="function"||!(s in at.prototype))return!1;if(r===c)return!0;var m=Dl(c);return!!m&&r===m[0]}function Qx(r){return!!yg&&yg in r}var Zx=La?Dr:ef;function So(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||ms;return r===c}function y0(r){return r===r&&!Ut(r)}function m0(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in _t(c))}}function e2(r){var s=hu(r,function(m){return c.size===d&&c.clear(),m}),c=s.cache;return s}function t2(r,s){var c=r[1],m=s[1],C=c|m,P=C<(v|R|D),j=m==D&&c==x||m==D&&c==V&&r[7].length<=s[8]||m==(D|V)&&s[7].length<=s[8]&&c==x;if(!(P||j))return r;m&v&&(r[2]=s[2],C|=c&v?0:N);var U=s[3];if(U){var H=r[3];r[3]=H?Zg(H,U,s[4]):U,r[4]=H?Xr(r[3],g):s[4]}return U=s[5],U&&(H=r[5],r[5]=H?e0(H,U,s[6]):U,r[6]=H?Xr(r[5],g):s[6]),U=s[7],U&&(r[7]=U),m&D&&(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]=C,r}function n2(r){var s=[];if(r!=null)for(var c in _t(r))s.push(c);return s}function r2(r){return $a.call(r)}function b0(r,s,c){return s=rn(s===n?r.length-1:s,0),function(){for(var m=arguments,C=-1,P=rn(m.length-s,0),j=Y(P);++C<P;)j[C]=m[s+C];C=-1;for(var U=Y(s+1);++C<s;)U[C]=m[C];return U[s]=c(j),On(r,this,U)}}function v0(r,s){return s.length<2?r:ki(r,Gn(s,0,-1))}function i2(r,s){for(var c=r.length,m=hn(s.length,c),C=Sn(r);m--;){var P=s[m];r[m]=Br(P,c)?C[P]:n}return r}function $l(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var w0=S0(qg),Eo=vE||function(r,s){return cn.setTimeout(r,s)},jl=S0(kx);function A0(r,s,c){var m=s+"";return jl(r,Jx(m,s2(Hx(m),c)))}function S0(r){var s=0,c=0;return function(){var m=EE(),C=me-(m-c);if(c=m,C>0){if(++s>=ge)return arguments[0]}else s=0;return r.apply(n,arguments)}}function uu(r,s){var c=-1,m=r.length,C=m-1;for(s=s===n?m:s;++c<s;){var P=Al(c,C),j=r[P];r[P]=r[c],r[c]=j}return r.length=s,r}var E0=e2(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(ro,function(c,m,C,P){s.push(C?P.replace(Te,"$1"):m||c)}),s});function wr(r){if(typeof r=="string"||Bn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Oi(r){if(r!=null){try{return Na.call(r)}catch{}try{return r+""}catch{}}return""}function s2(r,s){return Wn(X,function(c){var m="_."+c[0];s&c[1]&&!Ba(r,m)&&r.push(m)}),r.sort()}function x0(r){if(r instanceof at)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 o2(r,s,c){(c?bn(r,s,c):s===n)?s=1:s=rn(Je(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var C=0,P=0,j=Y(Wa(m/s));C<m;)j[P++]=Gn(r,C,C+=s);return j}function a2(r){for(var s=-1,c=r==null?0:r.length,m=0,C=[];++s<c;){var P=r[s];P&&(C[m++]=P)}return C}function u2(){var r=arguments.length;if(!r)return[];for(var s=Y(r-1),c=arguments[0],m=r;m--;)s[m-1]=arguments[m];return Yr(He(c)?Sn(c):[c],ln(s,1))}var c2=tt(function(r,s){return Yt(r)?mo(r,ln(s,1,Yt,!0)):[]}),l2=tt(function(r,s){var c=Jn(s);return Yt(c)&&(c=n),Yt(r)?mo(r,ln(s,1,Yt,!0),Pe(c,2)):[]}),f2=tt(function(r,s){var c=Jn(s);return Yt(c)&&(c=n),Yt(r)?mo(r,ln(s,1,Yt,!0),n,c):[]});function h2(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Je(s),Gn(r,s<0?0:s,m)):[]}function d2(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Je(s),s=m-s,Gn(r,0,s<0?0:s)):[]}function p2(r,s){return r&&r.length?eu(r,Pe(s,3),!0,!0):[]}function g2(r,s){return r&&r.length?eu(r,Pe(s,3),!0):[]}function y2(r,s,c,m){var C=r==null?0:r.length;return C?(c&&typeof c!="number"&&bn(r,s,c)&&(c=0,m=C),ux(r,s,c,m)):[]}function C0(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=c==null?0:Je(c);return C<0&&(C=rn(m+C,0)),Da(r,Pe(s,3),C)}function _0(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=m-1;return c!==n&&(C=Je(c),C=c<0?rn(m+C,0):hn(C,m-1)),Da(r,Pe(s,3),C,!0)}function k0(r){var s=r==null?0:r.length;return s?ln(r,1):[]}function m2(r){var s=r==null?0:r.length;return s?ln(r,Re):[]}function b2(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:Je(s),ln(r,s)):[]}function v2(r){for(var s=-1,c=r==null?0:r.length,m={};++s<c;){var C=r[s];m[C[0]]=C[1]}return m}function T0(r){return r&&r.length?r[0]:n}function w2(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=c==null?0:Je(c);return C<0&&(C=rn(m+C,0)),ds(r,s,C)}function A2(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var S2=tt(function(r){var s=Lt(r,_l);return s.length&&s[0]===r[0]?yl(s):[]}),E2=tt(function(r){var s=Jn(r),c=Lt(r,_l);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?yl(c,Pe(s,2)):[]}),x2=tt(function(r){var s=Jn(r),c=Lt(r,_l);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?yl(c,n,s):[]});function C2(r,s){return r==null?"":AE.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function _2(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var C=m;return c!==n&&(C=Je(c),C=C<0?rn(m+C,0):hn(C,m-1)),s===s?sE(r,s,C):Da(r,ug,C,!0)}function k2(r,s){return r&&r.length?jg(r,Je(s)):n}var T2=tt(O0);function O0(r,s){return r&&r.length&&s&&s.length?wl(r,s):r}function O2(r,s,c){return r&&r.length&&s&&s.length?wl(r,s,Pe(c,2)):r}function I2(r,s,c){return r&&r.length&&s&&s.length?wl(r,s,n,c):r}var F2=Fr(function(r,s){var c=r==null?0:r.length,m=hl(r,s);return Vg(r,Lt(s,function(C){return Br(C,c)?+C:C}).sort(Qg)),m});function B2(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,C=[],P=r.length;for(s=Pe(s,3);++m<P;){var j=r[m];s(j,m,r)&&(c.push(j),C.push(m))}return Vg(r,C),c}function Ml(r){return r==null?r:CE.call(r)}function D2(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:Je(s),c=c===n?m:Je(c)),Gn(r,s,c)):[]}function P2(r,s){return Za(r,s)}function R2(r,s,c){return El(r,s,Pe(c,2))}function L2(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 N2(r,s){return Za(r,s,!0)}function $2(r,s,c){return El(r,s,Pe(c,2),!0)}function j2(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 M2(r){return r&&r.length?Wg(r):[]}function U2(r,s){return r&&r.length?Wg(r,Pe(s,2)):[]}function V2(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function q2(r,s,c){return r&&r.length?(s=c||s===n?1:Je(s),Gn(r,0,s<0?0:s)):[]}function W2(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Je(s),s=m-s,Gn(r,s<0?0:s,m)):[]}function K2(r,s){return r&&r.length?eu(r,Pe(s,3),!1,!0):[]}function H2(r,s){return r&&r.length?eu(r,Pe(s,3)):[]}var z2=tt(function(r){return ei(ln(r,1,Yt,!0))}),G2=tt(function(r){var s=Jn(r);return Yt(s)&&(s=n),ei(ln(r,1,Yt,!0),Pe(s,2))}),J2=tt(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,ei(ln(r,1,Yt,!0),n,s)});function Y2(r){return r&&r.length?ei(r):[]}function X2(r,s){return r&&r.length?ei(r,Pe(s,2)):[]}function Q2(r,s){return s=typeof s=="function"?s:n,r&&r.length?ei(r,n,s):[]}function Ul(r){if(!(r&&r.length))return[];var s=0;return r=Jr(r,function(c){if(Yt(c))return s=rn(c.length,s),!0}),il(s,function(c){return Lt(r,tl(c))})}function I0(r,s){if(!(r&&r.length))return[];var c=Ul(r);return s==null?c:Lt(c,function(m){return On(s,n,m)})}var Z2=tt(function(r,s){return Yt(r)?mo(r,s):[]}),eC=tt(function(r){return Cl(Jr(r,Yt))}),tC=tt(function(r){var s=Jn(r);return Yt(s)&&(s=n),Cl(Jr(r,Yt),Pe(s,2))}),nC=tt(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,Cl(Jr(r,Yt),n,s)}),rC=tt(Ul);function iC(r,s){return Gg(r||[],s||[],yo)}function sC(r,s){return Gg(r||[],s||[],wo)}var oC=tt(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,I0(r,c)});function F0(r){var s=B(r);return s.__chain__=!0,s}function aC(r,s){return s(r),r}function cu(r,s){return s(r)}var uC=Fr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,C=function(P){return hl(P,r)};return s>1||this.__actions__.length||!(m instanceof at)||!Br(c)?this.thru(C):(m=m.slice(c,+c+(s?1:0)),m.__actions__.push({func:cu,args:[C],thisArg:n}),new Hn(m,this.__chain__).thru(function(P){return s&&!P.length&&P.push(n),P}))});function cC(){return F0(this)}function lC(){return new Hn(this.value(),this.__chain__)}function fC(){this.__values__===n&&(this.__values__=K0(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function hC(){return this}function dC(r){for(var s,c=this;c instanceof Ga;){var m=x0(c);m.__index__=0,m.__values__=n,s?C.__wrapped__=m:s=m;var C=m;c=c.__wrapped__}return C.__wrapped__=r,s}function pC(){var r=this.__wrapped__;if(r instanceof at){var s=r;return this.__actions__.length&&(s=new at(this)),s=s.reverse(),s.__actions__.push({func:cu,args:[Ml],thisArg:n}),new Hn(s,this.__chain__)}return this.thru(Ml)}function gC(){return zg(this.__wrapped__,this.__actions__)}var yC=tu(function(r,s,c){xt.call(r,c)?++r[c]:Or(r,c,1)});function mC(r,s,c){var m=He(r)?og:ax;return c&&bn(r,s,c)&&(s=n),m(r,Pe(s,3))}function bC(r,s){var c=He(r)?Jr:Ig;return c(r,Pe(s,3))}var vC=i0(C0),wC=i0(_0);function AC(r,s){return ln(lu(r,s),1)}function SC(r,s){return ln(lu(r,s),Re)}function EC(r,s,c){return c=c===n?1:Je(c),ln(lu(r,s),c)}function B0(r,s){var c=He(r)?Wn:Zr;return c(r,Pe(s,3))}function D0(r,s){var c=He(r)?VS:Og;return c(r,Pe(s,3))}var xC=tu(function(r,s,c){xt.call(r,c)?r[c].push(s):Or(r,c,[s])});function CC(r,s,c,m){r=En(r)?r:Cs(r),c=c&&!m?Je(c):0;var C=r.length;return c<0&&(c=rn(C+c,0)),gu(r)?c<=C&&r.indexOf(s,c)>-1:!!C&&ds(r,s,c)>-1}var _C=tt(function(r,s,c){var m=-1,C=typeof s=="function",P=En(r)?Y(r.length):[];return Zr(r,function(j){P[++m]=C?On(s,j,c):bo(j,s,c)}),P}),kC=tu(function(r,s,c){Or(r,c,s)});function lu(r,s){var c=He(r)?Lt:Lg;return c(r,Pe(s,3))}function TC(r,s,c,m){return r==null?[]:(He(s)||(s=s==null?[]:[s]),c=m?n:c,He(c)||(c=c==null?[]:[c]),Mg(r,s,c))}var OC=tu(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function IC(r,s,c){var m=He(r)?Zc:lg,C=arguments.length<3;return m(r,Pe(s,4),c,C,Zr)}function FC(r,s,c){var m=He(r)?qS:lg,C=arguments.length<3;return m(r,Pe(s,4),c,C,Og)}function BC(r,s){var c=He(r)?Jr:Ig;return c(r,du(Pe(s,3)))}function DC(r){var s=He(r)?Cg:Cx;return s(r)}function PC(r,s,c){(c?bn(r,s,c):s===n)?s=1:s=Je(s);var m=He(r)?nx:_x;return m(r,s)}function RC(r){var s=He(r)?rx:Tx;return s(r)}function LC(r){if(r==null)return 0;if(En(r))return gu(r)?gs(r):r.length;var s=dn(r);return s==Nt||s==ct?r.size:bl(r).length}function NC(r,s,c){var m=He(r)?el:Ox;return c&&bn(r,s,c)&&(s=n),m(r,Pe(s,3))}var $C=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]]),Mg(r,ln(s,1),[])}),fu=bE||function(){return cn.Date.now()};function jC(r,s){if(typeof s!="function")throw new Kn(u);return r=Je(r),function(){if(--r<1)return s.apply(this,arguments)}}function P0(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Ir(r,D,n,n,n,n,s)}function R0(r,s){var c;if(typeof s!="function")throw new Kn(u);return r=Je(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var Vl=tt(function(r,s,c){var m=v;if(c.length){var C=Xr(c,Es(Vl));m|=F}return Ir(r,m,s,c,C)}),L0=tt(function(r,s,c){var m=v|R;if(c.length){var C=Xr(c,Es(L0));m|=F}return Ir(s,m,r,c,C)});function N0(r,s,c){s=c?n:s;var m=Ir(r,x,n,n,n,n,n,s);return m.placeholder=N0.placeholder,m}function $0(r,s,c){s=c?n:s;var m=Ir(r,O,n,n,n,n,n,s);return m.placeholder=$0.placeholder,m}function j0(r,s,c){var m,C,P,j,U,H,ie=0,se=!1,ae=!1,ve=!0;if(typeof r!="function")throw new Kn(u);s=Yn(s)||0,Ut(c)&&(se=!!c.leading,ae="maxWait"in c,P=ae?rn(Yn(c.maxWait)||0,s):P,ve="trailing"in c?!!c.trailing:ve);function _e(Xt){var ur=m,Rr=C;return m=C=n,ie=Xt,j=r.apply(Rr,ur),j}function Ne(Xt){return ie=Xt,U=Eo(st,s),se?_e(Xt):j}function Ze(Xt){var ur=Xt-H,Rr=Xt-ie,iy=s-ur;return ae?hn(iy,P-Rr):iy}function $e(Xt){var ur=Xt-H,Rr=Xt-ie;return H===n||ur>=s||ur<0||ae&&Rr>=P}function st(){var Xt=fu();if($e(Xt))return ut(Xt);U=Eo(st,Ze(Xt))}function ut(Xt){return U=n,ve&&m?_e(Xt):(m=C=n,j)}function Dn(){U!==n&&Jg(U),ie=0,m=H=C=U=n}function vn(){return U===n?j:ut(fu())}function Pn(){var Xt=fu(),ur=$e(Xt);if(m=arguments,C=this,H=Xt,ur){if(U===n)return Ne(H);if(ae)return Jg(U),U=Eo(st,s),_e(H)}return U===n&&(U=Eo(st,s)),j}return Pn.cancel=Dn,Pn.flush=vn,Pn}var MC=tt(function(r,s){return Tg(r,1,s)}),UC=tt(function(r,s,c){return Tg(r,Yn(s)||0,c)});function VC(r){return Ir(r,Q)}function hu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Kn(u);var c=function(){var m=arguments,C=s?s.apply(this,m):m[0],P=c.cache;if(P.has(C))return P.get(C);var j=r.apply(this,m);return c.cache=P.set(C,j)||P,j};return c.cache=new(hu.Cache||Tr),c}hu.Cache=Tr;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 qC(r){return R0(2,r)}var WC=Ix(function(r,s){s=s.length==1&&He(s[0])?Lt(s[0],In(Pe())):Lt(ln(s,1),In(Pe()));var c=s.length;return tt(function(m){for(var C=-1,P=hn(m.length,c);++C<P;)m[C]=s[C].call(this,m[C]);return On(r,this,m)})}),ql=tt(function(r,s){var c=Xr(s,Es(ql));return Ir(r,F,n,s,c)}),M0=tt(function(r,s){var c=Xr(s,Es(M0));return Ir(r,k,n,s,c)}),KC=Fr(function(r,s){return Ir(r,V,n,n,n,s)});function HC(r,s){if(typeof r!="function")throw new Kn(u);return s=s===n?s:Je(s),tt(r,s)}function zC(r,s){if(typeof r!="function")throw new Kn(u);return s=s==null?0:rn(Je(s),0),tt(function(c){var m=c[s],C=ni(c,0,s);return m&&Yr(C,m),On(r,this,C)})}function GC(r,s,c){var m=!0,C=!0;if(typeof r!="function")throw new Kn(u);return Ut(c)&&(m="leading"in c?!!c.leading:m,C="trailing"in c?!!c.trailing:C),j0(r,s,{leading:m,maxWait:s,trailing:C})}function JC(r){return P0(r,1)}function YC(r,s){return ql(kl(s),r)}function XC(){if(!arguments.length)return[];var r=arguments[0];return He(r)?r:[r]}function QC(r){return zn(r,_)}function ZC(r,s){return s=typeof s=="function"?s:n,zn(r,_,s)}function e_(r){return zn(r,p|_)}function t_(r,s){return s=typeof s=="function"?s:n,zn(r,p|_,s)}function n_(r,s){return s==null||kg(r,s,an(s))}function ar(r,s){return r===s||r!==r&&s!==s}var r_=su(gl),i_=su(function(r,s){return r>=s}),Ii=Dg(function(){return arguments}())?Dg:function(r){return Vt(r)&&xt.call(r,"callee")&&!vg.call(r,"callee")},He=Y.isArray,s_=eg?In(eg):dx;function En(r){return r!=null&&pu(r.length)&&!Dr(r)}function Yt(r){return Vt(r)&&En(r)}function o_(r){return r===!0||r===!1||Vt(r)&&mn(r)==we}var ri=wE||ef,a_=tg?In(tg):px;function u_(r){return Vt(r)&&r.nodeType===1&&!xo(r)}function c_(r){if(r==null)return!0;if(En(r)&&(He(r)||typeof r=="string"||typeof r.splice=="function"||ri(r)||xs(r)||Ii(r)))return!r.length;var s=dn(r);if(s==Nt||s==ct)return!r.size;if(So(r))return!bl(r).length;for(var c in r)if(xt.call(r,c))return!1;return!0}function l_(r,s){return vo(r,s)}function f_(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 Wl(r){if(!Vt(r))return!1;var s=mn(r);return s==Le||s==De||typeof r.message=="string"&&typeof r.name=="string"&&!xo(r)}function h_(r){return typeof r=="number"&&Ag(r)}function Dr(r){if(!Ut(r))return!1;var s=mn(r);return s==Tt||s==on||s==Ke||s==Ve}function U0(r){return typeof r=="number"&&r==Je(r)}function pu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Ce}function Ut(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function Vt(r){return r!=null&&typeof r=="object"}var V0=ng?In(ng):yx;function d_(r,s){return r===s||ml(r,s,Pl(s))}function p_(r,s,c){return c=typeof c=="function"?c:n,ml(r,s,Pl(s),c)}function g_(r){return q0(r)&&r!=+r}function y_(r){if(Zx(r))throw new qe(a);return Pg(r)}function m_(r){return r===null}function b_(r){return r==null}function q0(r){return typeof r=="number"||Vt(r)&&mn(r)==$t}function xo(r){if(!Vt(r)||mn(r)!=St)return!1;var s=Ua(r);if(s===null)return!0;var c=xt.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&Na.call(c)==pE}var Kl=rg?In(rg):mx;function v_(r){return U0(r)&&r>=-9007199254740991&&r<=Ce}var W0=ig?In(ig):bx;function gu(r){return typeof r=="string"||!He(r)&&Vt(r)&&mn(r)==Ae}function Bn(r){return typeof r=="symbol"||Vt(r)&&mn(r)==Mt}var xs=sg?In(sg):vx;function w_(r){return r===n}function A_(r){return Vt(r)&&dn(r)==Me}function S_(r){return Vt(r)&&mn(r)==vt}var E_=su(vl),x_=su(function(r,s){return r<=s});function K0(r){if(!r)return[];if(En(r))return gu(r)?sr(r):Sn(r);if(lo&&r[lo])return nE(r[lo]());var s=dn(r),c=s==Nt?ol:s==ct?Pa:Cs;return c(r)}function Pr(r){if(!r)return r===0?r:0;if(r=Yn(r),r===Re||r===-1/0){var s=r<0?-1:1;return s*ze}return r===r?r:0}function Je(r){var s=Pr(r),c=s%1;return s===s?c?s-c:s:0}function H0(r){return r?_i(Je(r),0,ye):0}function Yn(r){if(typeof r=="number")return r;if(Bn(r))return Se;if(Ut(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=Ut(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=fg(r);var c=Qe.test(r);return c||Dt.test(r)?jS(r.slice(2),c?2:8):rt.test(r)?Se:+r}function z0(r){return vr(r,xn(r))}function C_(r){return r?_i(Je(r),-9007199254740991,Ce):r===0?r:0}function Et(r){return r==null?"":Fn(r)}var __=As(function(r,s){if(So(s)||En(s)){vr(s,an(s),r);return}for(var c in s)xt.call(s,c)&&yo(r,c,s[c])}),G0=As(function(r,s){vr(s,xn(s),r)}),yu=As(function(r,s,c,m){vr(s,xn(s),r,m)}),k_=As(function(r,s,c,m){vr(s,an(s),r,m)}),T_=Fr(hl);function O_(r,s){var c=ws(r);return s==null?c:_g(c,s)}var I_=tt(function(r,s){r=_t(r);var c=-1,m=s.length,C=m>2?s[2]:n;for(C&&bn(s[0],s[1],C)&&(m=1);++c<m;)for(var P=s[c],j=xn(P),U=-1,H=j.length;++U<H;){var ie=j[U],se=r[ie];(se===n||ar(se,ms[ie])&&!xt.call(r,ie))&&(r[ie]=P[ie])}return r}),F_=tt(function(r){return r.push(n,f0),On(J0,n,r)});function B_(r,s){return ag(r,Pe(s,3),br)}function D_(r,s){return ag(r,Pe(s,3),pl)}function P_(r,s){return r==null?r:dl(r,Pe(s,3),xn)}function R_(r,s){return r==null?r:Fg(r,Pe(s,3),xn)}function L_(r,s){return r&&br(r,Pe(s,3))}function N_(r,s){return r&&pl(r,Pe(s,3))}function $_(r){return r==null?[]:Xa(r,an(r))}function j_(r){return r==null?[]:Xa(r,xn(r))}function Hl(r,s,c){var m=r==null?n:ki(r,s);return m===n?c:m}function M_(r,s){return r!=null&&p0(r,s,cx)}function zl(r,s){return r!=null&&p0(r,s,lx)}var U_=o0(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=$a.call(s)),r[s]=c},Jl(Cn)),V_=o0(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=$a.call(s)),xt.call(r,s)?r[s].push(c):r[s]=[c]},Pe),q_=tt(bo);function an(r){return En(r)?xg(r):bl(r)}function xn(r){return En(r)?xg(r,!0):wx(r)}function W_(r,s){var c={};return s=Pe(s,3),br(r,function(m,C,P){Or(c,s(m,C,P),m)}),c}function K_(r,s){var c={};return s=Pe(s,3),br(r,function(m,C,P){Or(c,C,s(m,C,P))}),c}var H_=As(function(r,s,c){Qa(r,s,c)}),J0=As(function(r,s,c,m){Qa(r,s,c,m)}),z_=Fr(function(r,s){var c={};if(r==null)return c;var m=!1;s=Lt(s,function(P){return P=ti(P,r),m||(m=P.length>1),P}),vr(r,Bl(r),c),m&&(c=zn(c,p|w|_,Ux));for(var C=s.length;C--;)xl(c,s[C]);return c});function G_(r,s){return Y0(r,du(Pe(s)))}var J_=Fr(function(r,s){return r==null?{}:Sx(r,s)});function Y0(r,s){if(r==null)return{};var c=Lt(Bl(r),function(m){return[m]});return s=Pe(s),Ug(r,c,function(m,C){return s(m,C[0])})}function Y_(r,s,c){s=ti(s,r);var m=-1,C=s.length;for(C||(C=1,r=n);++m<C;){var P=r==null?n:r[wr(s[m])];P===n&&(m=C,P=c),r=Dr(P)?P.call(r):P}return r}function X_(r,s,c){return r==null?r:wo(r,s,c)}function Q_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:wo(r,s,c,m)}var X0=c0(an),Q0=c0(xn);function Z_(r,s,c){var m=He(r),C=m||ri(r)||xs(r);if(s=Pe(s,4),c==null){var P=r&&r.constructor;C?c=m?new P:[]:Ut(r)?c=Dr(P)?ws(Ua(r)):{}:c={}}return(C?Wn:br)(r,function(j,U,H){return s(c,j,U,H)}),c}function ek(r,s){return r==null?!0:xl(r,s)}function tk(r,s,c){return r==null?r:Hg(r,s,kl(c))}function nk(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Hg(r,s,kl(c),m)}function Cs(r){return r==null?[]:sl(r,an(r))}function rk(r){return r==null?[]:sl(r,xn(r))}function ik(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),_i(Yn(r),s,c)}function sk(r,s,c){return s=Pr(s),c===n?(c=s,s=0):c=Pr(c),r=Yn(r),fx(r,s,c)}function ok(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=Pr(r),s===n?(s=r,r=0):s=Pr(s)),r>s){var m=r;r=s,s=m}if(c||r%1||s%1){var C=Sg();return hn(r+C*(s-r+$S("1e-"+((C+"").length-1))),s)}return Al(r,s)}var ak=Ss(function(r,s,c){return s=s.toLowerCase(),r+(c?Z0(s):s)});function Z0(r){return Gl(Et(r).toLowerCase())}function ey(r){return r=Et(r),r&&r.replace(fn,XS).replace(TS,"")}function uk(r,s,c){r=Et(r),s=Fn(s);var m=r.length;c=c===n?m:_i(Je(c),0,m);var C=c;return c-=s.length,c>=0&&r.slice(c,C)==s}function ck(r){return r=Et(r),r&&as.test(r)?r.replace(Kr,QS):r}function lk(r){return r=Et(r),r&&rr.test(r)?r.replace(_r,"\\$&"):r}var fk=Ss(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),hk=Ss(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),dk=r0("toLowerCase");function pk(r,s,c){r=Et(r),s=Je(s);var m=s?gs(r):0;if(!s||m>=s)return r;var C=(s-m)/2;return iu(Ka(C),c)+r+iu(Wa(C),c)}function gk(r,s,c){r=Et(r),s=Je(s);var m=s?gs(r):0;return s&&m<s?r+iu(s-m,c):r}function yk(r,s,c){r=Et(r),s=Je(s);var m=s?gs(r):0;return s&&m<s?iu(s-m,c)+r:r}function mk(r,s,c){return c||s==null?s=0:s&&(s=+s),xE(Et(r).replace(zr,""),s||0)}function bk(r,s,c){return(c?bn(r,s,c):s===n)?s=1:s=Je(s),Sl(Et(r),s)}function vk(){var r=arguments,s=Et(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var wk=Ss(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function Ak(r,s,c){return c&&typeof c!="number"&&bn(r,s,c)&&(s=c=n),c=c===n?ye:c>>>0,c?(r=Et(r),r&&(typeof s=="string"||s!=null&&!Kl(s))&&(s=Fn(s),!s&&ps(r))?ni(sr(r),0,c):r.split(s,c)):[]}var Sk=Ss(function(r,s,c){return r+(c?" ":"")+Gl(s)});function Ek(r,s,c){return r=Et(r),c=c==null?0:_i(Je(c),0,r.length),s=Fn(s),r.slice(c,c+s.length)==s}function xk(r,s,c){var m=B.templateSettings;c&&bn(r,s,c)&&(s=n),r=Et(r),s=yu({},s,m,l0);var C=yu({},s.imports,m.imports,l0),P=an(C),j=sl(C,P),U,H,ie=0,se=s.interpolate||kn,ae="__p += '",ve=al((s.escape||kn).source+"|"+se.source+"|"+(se===Hr?ht:kn).source+"|"+(s.evaluate||kn).source+"|$","g"),_e="//# sourceURL="+(xt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++DS+"]")+`
146
- `;r.replace(ve,function($e,st,ut,Dn,vn,Pn){return ut||(ut=Dn),ae+=r.slice(ie,Pn).replace(ir,ZS),st&&(U=!0,ae+=`' +
147
- __e(`+st+`) +
148
- '`),vn&&(H=!0,ae+=`';
149
- `+vn+`;
150
- __p += '`),ut&&(ae+=`' +
151
- ((__t = (`+ut+`)) == null ? '' : __t) +
152
- '`),ie=Pn+$e.length,$e}),ae+=`';
153
- `;var Ne=xt.call(s,"variable")&&s.variable;if(!Ne)ae=`with (obj) {
154
- `+ae+`
145
+ `)}function ix(r){return Ke(r)||Di(r)||!!(I0&&r&&r[I0])}function Rr(r,s){var c=typeof r;return s=s??Ee,!!s&&(c=="number"||c!="symbol"&&Pt.test(r))&&r>-1&&r%1==0&&r<s}function mn(r,s,c){if(!$t(c))return!1;var m=typeof s;return(m=="number"?En(c)&&Rr(s,c.length):m=="string"&&s in c)?ur(c[s],r):!1}function Ul(r,s){if(Ke(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Dn(r)?!0:so.test(r)||!Ei.test(r)||s!=null&&r in _t(s)}function sx(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function Vl(r){var s=cu(r),c=B[s];if(typeof c!="function"||!(s in ot.prototype))return!1;if(r===c)return!0;var m=Nl(c);return!!m&&r===m[0]}function ox(r){return!!_0&&_0 in r}var ax=$a?Lr:of;function Co(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||bs;return r===c}function _g(r){return r===r&&!$t(r)}function kg(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in _t(c))}}function ux(r){var s=gu(r,function(m){return c.size===d&&c.clear(),m}),c=s.cache;return s}function cx(r,s){var c=r[1],m=s[1],k=c|m,R=k<(b|D|O),$=m==O&&c==C||m==O&&c==W&&r[7].length<=s[8]||m==(O|W)&&s[7].length<=s[8]&&c==C;if(!(R||$))return r;m&b&&(r[2]=s[2],k|=c&b?0:j);var U=s[3];if(U){var z=r[3];r[3]=z?cg(z,U,s[4]):U,r[4]=z?ei(r[3],g):s[4]}return U=s[5],U&&(z=r[5],r[5]=z?lg(z,U,s[6]):U,r[6]=z?ei(r[5],g):s[6]),U=s[7],U&&(r[7]=U),m&O&&(r[8]=r[8]==null?s[8]:fn(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=k,r}function lx(r){var s=[];if(r!=null)for(var c in _t(r))s.push(c);return s}function fx(r){return Ua.call(r)}function Tg(r,s,c){return s=tn(s===n?r.length-1:s,0),function(){for(var m=arguments,k=-1,R=tn(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($),In(r,this,U)}}function Og(r,s){return s.length<2?r:Ii(r,Gn(s,0,-1))}function hx(r,s){for(var c=r.length,m=fn(s.length,c),k=Sn(r);m--;){var R=s[m];r[m]=Rr(R,c)?k[R]:n}return r}function ql(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var Ig=Bg(Z0),_o=kS||function(r,s){return un.setTimeout(r,s)},Wl=Bg(RE);function Fg(r,s,c){var m=s+"";return Wl(r,rx(m,dx(ex(m),c)))}function Bg(r){var s=0,c=0;return function(){var m=FS(),k=ye-(m-c);if(c=m,k>0){if(++s>=ge)return arguments[0]}else s=0;return r.apply(n,arguments)}}function fu(r,s){var c=-1,m=r.length,k=m-1;for(s=s===n?m:s;++c<s;){var R=_l(c,k),$=r[R];r[R]=r[c],r[c]=$}return r.length=s,r}var Dg=ux(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(oo,function(c,m,k,R){s.push(k?R.replace(Fe,"$1"):m||c)}),s});function Sr(r){if(typeof r=="string"||Dn(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}function Bi(r){if(r!=null){try{return Ma.call(r)}catch{}try{return r+""}catch{}}return""}function dx(r,s){return Wn(X,function(c){var m="_."+c[0];s&c[1]&&!Ra(r,m)&&r.push(m)}),r.sort()}function Pg(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 px(r,s,c){(c?mn(r,s,c):s===n)?s=1:s=tn(Ge(s),0);var m=r==null?0:r.length;if(!m||s<1)return[];for(var k=0,R=0,$=Q(za(m/s));k<m;)$[R++]=Gn(r,k,k+=s);return $}function gx(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 yx(){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(Ke(c)?Sn(c):[c],cn(s,1))}var mx=Xe(function(r,s){return Gt(r)?vo(r,cn(s,1,Gt,!0)):[]}),wx=Xe(function(r,s){var c=Jn(s);return Gt(c)&&(c=n),Gt(r)?vo(r,cn(s,1,Gt,!0),je(c,2)):[]}),bx=Xe(function(r,s){var c=Jn(s);return Gt(c)&&(c=n),Gt(r)?vo(r,cn(s,1,Gt,!0),n,c):[]});function vx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),Gn(r,s<0?0:s,m)):[]}function Ax(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),s=m-s,Gn(r,0,s<0?0:s)):[]}function Sx(r,s){return r&&r.length?ru(r,je(s,3),!0,!0):[]}function Ex(r,s){return r&&r.length?ru(r,je(s,3),!0):[]}function xx(r,s,c,m){var k=r==null?0:r.length;return k?(c&&typeof c!="number"&&mn(r,s,c)&&(c=0,m=k),yE(r,s,c,m)):[]}function Rg(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=c==null?0:Ge(c);return k<0&&(k=tn(m+k,0)),La(r,je(s,3),k)}function Lg(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=m-1;return c!==n&&(k=Ge(c),k=c<0?tn(m+k,0):fn(k,m-1)),La(r,je(s,3),k,!0)}function jg(r){var s=r==null?0:r.length;return s?cn(r,1):[]}function Cx(r){var s=r==null?0:r.length;return s?cn(r,Se):[]}function _x(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:Ge(s),cn(r,s)):[]}function kx(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 Ng(r){return r&&r.length?r[0]:n}function Tx(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=c==null?0:Ge(c);return k<0&&(k=tn(m+k,0)),gs(r,s,k)}function Ox(r){var s=r==null?0:r.length;return s?Gn(r,0,-1):[]}var Ix=Xe(function(r){var s=Rt(r,Fl);return s.length&&s[0]===r[0]?Al(s):[]}),Fx=Xe(function(r){var s=Jn(r),c=Rt(r,Fl);return s===Jn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?Al(c,je(s,2)):[]}),Bx=Xe(function(r){var s=Jn(r),c=Rt(r,Fl);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?Al(c,n,s):[]});function Dx(r,s){return r==null?"":OS.call(r,s)}function Jn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function Px(r,s,c){var m=r==null?0:r.length;if(!m)return-1;var k=m;return c!==n&&(k=Ge(c),k=k<0?tn(m+k,0):fn(k,m-1)),s===s?dS(r,s,k):La(r,w0,k,!0)}function Rx(r,s){return r&&r.length?J0(r,Ge(s)):n}var Lx=Xe($g);function $g(r,s){return r&&r.length&&s&&s.length?Cl(r,s):r}function jx(r,s,c){return r&&r.length&&s&&s.length?Cl(r,s,je(c,2)):r}function Nx(r,s,c){return r&&r.length&&s&&s.length?Cl(r,s,n,c):r}var $x=Pr(function(r,s){var c=r==null?0:r.length,m=ml(r,s);return X0(r,Rt(s,function(k){return Rr(k,c)?+k:k}).sort(ug)),m});function Mx(r,s){var c=[];if(!(r&&r.length))return c;var m=-1,k=[],R=r.length;for(s=je(s,3);++m<R;){var $=r[m];s($,m,r)&&(c.push($),k.push(m))}return X0(r,k),c}function Kl(r){return r==null?r:DS.call(r)}function Ux(r,s,c){var m=r==null?0:r.length;return m?(c&&typeof c!="number"&&mn(r,s,c)?(s=0,c=m):(s=s==null?0:Ge(s),c=c===n?m:Ge(c)),Gn(r,s,c)):[]}function Vx(r,s){return nu(r,s)}function qx(r,s,c){return Tl(r,s,je(c,2))}function Wx(r,s){var c=r==null?0:r.length;if(c){var m=nu(r,s);if(m<c&&ur(r[m],s))return m}return-1}function Kx(r,s){return nu(r,s,!0)}function Hx(r,s,c){return Tl(r,s,je(c,2),!0)}function zx(r,s){var c=r==null?0:r.length;if(c){var m=nu(r,s,!0)-1;if(ur(r[m],s))return m}return-1}function Gx(r){return r&&r.length?eg(r):[]}function Jx(r,s){return r&&r.length?eg(r,je(s,2)):[]}function Yx(r){var s=r==null?0:r.length;return s?Gn(r,1,s):[]}function Qx(r,s,c){return r&&r.length?(s=c||s===n?1:Ge(s),Gn(r,0,s<0?0:s)):[]}function Xx(r,s,c){var m=r==null?0:r.length;return m?(s=c||s===n?1:Ge(s),s=m-s,Gn(r,s<0?0:s,m)):[]}function Zx(r,s){return r&&r.length?ru(r,je(s,3),!1,!0):[]}function eC(r,s){return r&&r.length?ru(r,je(s,3)):[]}var tC=Xe(function(r){return ri(cn(r,1,Gt,!0))}),nC=Xe(function(r){var s=Jn(r);return Gt(s)&&(s=n),ri(cn(r,1,Gt,!0),je(s,2))}),rC=Xe(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,ri(cn(r,1,Gt,!0),n,s)});function iC(r){return r&&r.length?ri(r):[]}function sC(r,s){return r&&r.length?ri(r,je(s,2)):[]}function oC(r,s){return s=typeof s=="function"?s:n,r&&r.length?ri(r,n,s):[]}function Hl(r){if(!(r&&r.length))return[];var s=0;return r=Xr(r,function(c){if(Gt(c))return s=tn(c.length,s),!0}),cl(s,function(c){return Rt(r,ol(c))})}function Mg(r,s){if(!(r&&r.length))return[];var c=Hl(r);return s==null?c:Rt(c,function(m){return In(s,n,m)})}var aC=Xe(function(r,s){return Gt(r)?vo(r,s):[]}),uC=Xe(function(r){return Il(Xr(r,Gt))}),cC=Xe(function(r){var s=Jn(r);return Gt(s)&&(s=n),Il(Xr(r,Gt),je(s,2))}),lC=Xe(function(r){var s=Jn(r);return s=typeof s=="function"?s:n,Il(Xr(r,Gt),n,s)}),fC=Xe(Hl);function hC(r,s){return ig(r||[],s||[],bo)}function dC(r,s){return ig(r||[],s||[],Eo)}var pC=Xe(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,Mg(r,c)});function Ug(r){var s=B(r);return s.__chain__=!0,s}function gC(r,s){return s(r),r}function hu(r,s){return s(r)}var yC=Pr(function(r){var s=r.length,c=s?r[0]:0,m=this.__wrapped__,k=function(R){return ml(R,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:hu,args:[k],thisArg:n}),new Hn(m,this.__chain__).thru(function(R){return s&&!R.length&&R.push(n),R}))});function mC(){return Ug(this)}function wC(){return new Hn(this.value(),this.__chain__)}function bC(){this.__values__===n&&(this.__values__=t1(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function vC(){return this}function AC(r){for(var s,c=this;c instanceof Qa;){var m=Pg(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 SC(){var r=this.__wrapped__;if(r instanceof ot){var s=r;return this.__actions__.length&&(s=new ot(this)),s=s.reverse(),s.__actions__.push({func:hu,args:[Kl],thisArg:n}),new Hn(s,this.__chain__)}return this.thru(Kl)}function EC(){return rg(this.__wrapped__,this.__actions__)}var xC=iu(function(r,s,c){xt.call(r,c)?++r[c]:Br(r,c,1)});function CC(r,s,c){var m=Ke(r)?y0:gE;return c&&mn(r,s,c)&&(s=n),m(r,je(s,3))}function _C(r,s){var c=Ke(r)?Xr:M0;return c(r,je(s,3))}var kC=pg(Rg),TC=pg(Lg);function OC(r,s){return cn(du(r,s),1)}function IC(r,s){return cn(du(r,s),Se)}function FC(r,s,c){return c=c===n?1:Ge(c),cn(du(r,s),c)}function Vg(r,s){var c=Ke(r)?Wn:ni;return c(r,je(s,3))}function qg(r,s){var c=Ke(r)?YA:$0;return c(r,je(s,3))}var BC=iu(function(r,s,c){xt.call(r,c)?r[c].push(s):Br(r,c,[s])});function DC(r,s,c,m){r=En(r)?r:ks(r),c=c&&!m?Ge(c):0;var k=r.length;return c<0&&(c=tn(k+c,0)),wu(r)?c<=k&&r.indexOf(s,c)>-1:!!k&&gs(r,s,c)>-1}var PC=Xe(function(r,s,c){var m=-1,k=typeof s=="function",R=En(r)?Q(r.length):[];return ni(r,function($){R[++m]=k?In(s,$,c):Ao($,s,c)}),R}),RC=iu(function(r,s,c){Br(r,c,s)});function du(r,s){var c=Ke(r)?Rt:H0;return c(r,je(s,3))}function LC(r,s,c,m){return r==null?[]:(Ke(s)||(s=s==null?[]:[s]),c=m?n:c,Ke(c)||(c=c==null?[]:[c]),Y0(r,s,c))}var jC=iu(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function NC(r,s,c){var m=Ke(r)?il:v0,k=arguments.length<3;return m(r,je(s,4),c,k,ni)}function $C(r,s,c){var m=Ke(r)?QA:v0,k=arguments.length<3;return m(r,je(s,4),c,k,$0)}function MC(r,s){var c=Ke(r)?Xr:M0;return c(r,yu(je(s,3)))}function UC(r){var s=Ke(r)?R0:DE;return s(r)}function VC(r,s,c){(c?mn(r,s,c):s===n)?s=1:s=Ge(s);var m=Ke(r)?lE:PE;return m(r,s)}function qC(r){var s=Ke(r)?fE:LE;return s(r)}function WC(r){if(r==null)return 0;if(En(r))return wu(r)?ms(r):r.length;var s=hn(r);return s==Lt||s==Pe?r.size:El(r).length}function KC(r,s,c){var m=Ke(r)?sl:jE;return c&&mn(r,s,c)&&(s=n),m(r,je(s,3))}var HC=Xe(function(r,s){if(r==null)return[];var c=s.length;return c>1&&mn(r,s[0],s[1])?s=[]:c>2&&mn(s[0],s[1],s[2])&&(s=[s[0]]),Y0(r,cn(s,1),[])}),pu=_S||function(){return un.Date.now()};function zC(r,s){if(typeof s!="function")throw new Kn(u);return r=Ge(r),function(){if(--r<1)return s.apply(this,arguments)}}function Wg(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Dr(r,O,n,n,n,n,s)}function Kg(r,s){var c;if(typeof s!="function")throw new Kn(u);return r=Ge(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var zl=Xe(function(r,s,c){var m=b;if(c.length){var k=ei(c,Cs(zl));m|=F}return Dr(r,m,s,c,k)}),Hg=Xe(function(r,s,c){var m=b|D;if(c.length){var k=ei(c,Cs(Hg));m|=F}return Dr(s,m,r,c,k)});function zg(r,s,c){s=c?n:s;var m=Dr(r,C,n,n,n,n,n,s);return m.placeholder=zg.placeholder,m}function Gg(r,s,c){s=c?n:s;var m=Dr(r,T,n,n,n,n,n,s);return m.placeholder=Gg.placeholder,m}function Jg(r,s,c){var m,k,R,$,U,z,ie=0,se=!1,ue=!1,ve=!0;if(typeof r!="function")throw new Kn(u);s=Yn(s)||0,$t(c)&&(se=!!c.leading,ue="maxWait"in c,R=ue?tn(Yn(c.maxWait)||0,s):R,ve="trailing"in c?!!c.trailing:ve);function Ie(Jt){var cr=m,Nr=k;return m=k=n,ie=Jt,$=r.apply(Nr,cr),$}function Ne(Jt){return ie=Jt,U=_o(it,s),se?Ie(Jt):$}function Qe(Jt){var cr=Jt-z,Nr=Jt-ie,p1=s-cr;return ue?fn(p1,R-Nr):p1}function $e(Jt){var cr=Jt-z,Nr=Jt-ie;return z===n||cr>=s||cr<0||ue&&Nr>=R}function it(){var Jt=pu();if($e(Jt))return at(Jt);U=_o(it,Qe(Jt))}function at(Jt){return U=n,ve&&m?Ie(Jt):(m=k=n,$)}function Pn(){U!==n&&sg(U),ie=0,m=z=k=U=n}function wn(){return U===n?$:at(pu())}function Rn(){var Jt=pu(),cr=$e(Jt);if(m=arguments,k=this,z=Jt,cr){if(U===n)return Ne(z);if(ue)return sg(U),U=_o(it,s),Ie(z)}return U===n&&(U=_o(it,s)),$}return Rn.cancel=Pn,Rn.flush=wn,Rn}var GC=Xe(function(r,s){return N0(r,1,s)}),JC=Xe(function(r,s,c){return N0(r,Yn(s)||0,c)});function YC(r){return Dr(r,Y)}function gu(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(gu.Cache||Fr),c}gu.Cache=Fr;function yu(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 QC(r){return Kg(2,r)}var XC=NE(function(r,s){s=s.length==1&&Ke(s[0])?Rt(s[0],Fn(je())):Rt(cn(s,1),Fn(je()));var c=s.length;return Xe(function(m){for(var k=-1,R=fn(m.length,c);++k<R;)m[k]=s[k].call(this,m[k]);return In(r,this,m)})}),Gl=Xe(function(r,s){var c=ei(s,Cs(Gl));return Dr(r,F,n,s,c)}),Yg=Xe(function(r,s){var c=ei(s,Cs(Yg));return Dr(r,P,n,s,c)}),ZC=Pr(function(r,s){return Dr(r,W,n,n,n,s)});function e3(r,s){if(typeof r!="function")throw new Kn(u);return s=s===n?s:Ge(s),Xe(r,s)}function t3(r,s){if(typeof r!="function")throw new Kn(u);return s=s==null?0:tn(Ge(s),0),Xe(function(c){var m=c[s],k=si(c,0,s);return m&&Zr(k,m),In(r,this,k)})}function n3(r,s,c){var m=!0,k=!0;if(typeof r!="function")throw new Kn(u);return $t(c)&&(m="leading"in c?!!c.leading:m,k="trailing"in c?!!c.trailing:k),Jg(r,s,{leading:m,maxWait:s,trailing:k})}function r3(r){return Wg(r,1)}function i3(r,s){return Gl(Bl(s),r)}function s3(){if(!arguments.length)return[];var r=arguments[0];return Ke(r)?r:[r]}function o3(r){return zn(r,_)}function a3(r,s){return s=typeof s=="function"?s:n,zn(r,_,s)}function u3(r){return zn(r,p|_)}function c3(r,s){return s=typeof s=="function"?s:n,zn(r,p|_,s)}function l3(r,s){return s==null||j0(r,s,sn(s))}function ur(r,s){return r===s||r!==r&&s!==s}var f3=uu(vl),h3=uu(function(r,s){return r>=s}),Di=q0(function(){return arguments}())?q0:function(r){return Ut(r)&&xt.call(r,"callee")&&!O0.call(r,"callee")},Ke=Q.isArray,d3=l0?Fn(l0):AE;function En(r){return r!=null&&mu(r.length)&&!Lr(r)}function Gt(r){return Ut(r)&&En(r)}function p3(r){return r===!0||r===!1||Ut(r)&&yn(r)==_e}var oi=TS||of,g3=f0?Fn(f0):SE;function y3(r){return Ut(r)&&r.nodeType===1&&!ko(r)}function m3(r){if(r==null)return!0;if(En(r)&&(Ke(r)||typeof r=="string"||typeof r.splice=="function"||oi(r)||_s(r)||Di(r)))return!r.length;var s=hn(r);if(s==Lt||s==Pe)return!r.size;if(Co(r))return!El(r).length;for(var c in r)if(xt.call(r,c))return!1;return!0}function w3(r,s){return So(r,s)}function b3(r,s,c){c=typeof c=="function"?c:n;var m=c?c(r,s):n;return m===n?So(r,s,n,c):!!m}function Jl(r){if(!Ut(r))return!1;var s=yn(r);return s==Le||s==Oe||typeof r.message=="string"&&typeof r.name=="string"&&!ko(r)}function v3(r){return typeof r=="number"&&F0(r)}function Lr(r){if(!$t(r))return!1;var s=yn(r);return s==Tt||s==rn||s==We||s==An}function Qg(r){return typeof r=="number"&&r==Ge(r)}function mu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Ee}function $t(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function Ut(r){return r!=null&&typeof r=="object"}var Xg=h0?Fn(h0):xE;function A3(r,s){return r===s||Sl(r,s,$l(s))}function S3(r,s,c){return c=typeof c=="function"?c:n,Sl(r,s,$l(s),c)}function E3(r){return Zg(r)&&r!=+r}function x3(r){if(ax(r))throw new Ve(a);return W0(r)}function C3(r){return r===null}function _3(r){return r==null}function Zg(r){return typeof r=="number"||Ut(r)&&yn(r)==jt}function ko(r){if(!Ut(r)||yn(r)!=bt)return!1;var s=Wa(r);if(s===null)return!0;var c=xt.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&Ma.call(c)==SS}var Yl=d0?Fn(d0):CE;function k3(r){return Qg(r)&&r>=-9007199254740991&&r<=Ee}var e1=p0?Fn(p0):_E;function wu(r){return typeof r=="string"||!Ke(r)&&Ut(r)&&yn(r)==he}function Dn(r){return typeof r=="symbol"||Ut(r)&&yn(r)==At}var _s=g0?Fn(g0):kE;function T3(r){return r===n}function O3(r){return Ut(r)&&hn(r)==Et}function I3(r){return Ut(r)&&yn(r)==rt}var F3=uu(xl),B3=uu(function(r,s){return r<=s});function t1(r){if(!r)return[];if(En(r))return wu(r)?or(r):Sn(r);if(po&&r[po])return lS(r[po]());var s=hn(r),c=s==Lt?fl:s==Pe?ja:ks;return c(r)}function jr(r){if(!r)return r===0?r:0;if(r=Yn(r),r===Se||r===-1/0){var s=r<0?-1:1;return s*He}return r===r?r:0}function Ge(r){var s=jr(r),c=s%1;return s===s?c?s-c:s:0}function n1(r){return r?Oi(Ge(r),0,me):0}function Yn(r){if(typeof r=="number")return r;if(Dn(r))return Ae;if($t(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=$t(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=A0(r);var c=Ye.test(r);return c||Bt.test(r)?zA(r.slice(2),c?2:8):tt.test(r)?Ae:+r}function r1(r){return Ar(r,xn(r))}function D3(r){return r?Oi(Ge(r),-9007199254740991,Ee):r===0?r:0}function vt(r){return r==null?"":Bn(r)}var P3=Es(function(r,s){if(Co(s)||En(s)){Ar(s,sn(s),r);return}for(var c in s)xt.call(s,c)&&bo(r,c,s[c])}),i1=Es(function(r,s){Ar(s,xn(s),r)}),bu=Es(function(r,s,c,m){Ar(s,xn(s),r,m)}),R3=Es(function(r,s,c,m){Ar(s,sn(s),r,m)}),L3=Pr(ml);function j3(r,s){var c=Ss(r);return s==null?c:L0(c,s)}var N3=Xe(function(r,s){r=_t(r);var c=-1,m=s.length,k=m>2?s[2]:n;for(k&&mn(s[0],s[1],k)&&(m=1);++c<m;)for(var R=s[c],$=xn(R),U=-1,z=$.length;++U<z;){var ie=$[U],se=r[ie];(se===n||ur(se,bs[ie])&&!xt.call(r,ie))&&(r[ie]=R[ie])}return r}),$3=Xe(function(r){return r.push(n,Ag),In(s1,n,r)});function M3(r,s){return m0(r,je(s,3),vr)}function U3(r,s){return m0(r,je(s,3),bl)}function V3(r,s){return r==null?r:wl(r,je(s,3),xn)}function q3(r,s){return r==null?r:U0(r,je(s,3),xn)}function W3(r,s){return r&&vr(r,je(s,3))}function K3(r,s){return r&&bl(r,je(s,3))}function H3(r){return r==null?[]:eu(r,sn(r))}function z3(r){return r==null?[]:eu(r,xn(r))}function Ql(r,s,c){var m=r==null?n:Ii(r,s);return m===n?c:m}function G3(r,s){return r!=null&&xg(r,s,mE)}function Xl(r,s){return r!=null&&xg(r,s,wE)}var J3=yg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Ua.call(s)),r[s]=c},ef(Cn)),Y3=yg(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=Ua.call(s)),xt.call(r,s)?r[s].push(c):r[s]=[c]},je),Q3=Xe(Ao);function sn(r){return En(r)?P0(r):El(r)}function xn(r){return En(r)?P0(r,!0):TE(r)}function X3(r,s){var c={};return s=je(s,3),vr(r,function(m,k,R){Br(c,s(m,k,R),m)}),c}function Z3(r,s){var c={};return s=je(s,3),vr(r,function(m,k,R){Br(c,k,s(m,k,R))}),c}var e_=Es(function(r,s,c){tu(r,s,c)}),s1=Es(function(r,s,c,m){tu(r,s,c,m)}),t_=Pr(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}),Ar(r,jl(r),c),m&&(c=zn(c,p|v|_,JE));for(var k=s.length;k--;)Ol(c,s[k]);return c});function n_(r,s){return o1(r,yu(je(s)))}var r_=Pr(function(r,s){return r==null?{}:IE(r,s)});function o1(r,s){if(r==null)return{};var c=Rt(jl(r),function(m){return[m]});return s=je(s),Q0(r,c,function(m,k){return s(m,k[0])})}function i_(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[Sr(s[m])];R===n&&(m=k,R=c),r=Lr(R)?R.call(r):R}return r}function s_(r,s,c){return r==null?r:Eo(r,s,c)}function o_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:Eo(r,s,c,m)}var a1=bg(sn),u1=bg(xn);function a_(r,s,c){var m=Ke(r),k=m||oi(r)||_s(r);if(s=je(s,4),c==null){var R=r&&r.constructor;k?c=m?new R:[]:$t(r)?c=Lr(R)?Ss(Wa(r)):{}:c={}}return(k?Wn:vr)(r,function($,U,z){return s(c,$,U,z)}),c}function u_(r,s){return r==null?!0:Ol(r,s)}function c_(r,s,c){return r==null?r:ng(r,s,Bl(c))}function l_(r,s,c,m){return m=typeof m=="function"?m:n,r==null?r:ng(r,s,Bl(c),m)}function ks(r){return r==null?[]:ll(r,sn(r))}function f_(r){return r==null?[]:ll(r,xn(r))}function h_(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Yn(c),c=c===c?c:0),s!==n&&(s=Yn(s),s=s===s?s:0),Oi(Yn(r),s,c)}function d_(r,s,c){return s=jr(s),c===n?(c=s,s=0):c=jr(c),r=Yn(r),bE(r,s,c)}function p_(r,s,c){if(c&&typeof c!="boolean"&&mn(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=B0();return fn(r+k*(s-r+HA("1e-"+((k+"").length-1))),s)}return _l(r,s)}var g_=xs(function(r,s,c){return s=s.toLowerCase(),r+(c?c1(s):s)});function c1(r){return Zl(vt(r).toLowerCase())}function l1(r){return r=vt(r),r&&r.replace(ln,sS).replace(LA,"")}function y_(r,s,c){r=vt(r),s=Bn(s);var m=r.length;c=c===n?m:Oi(Ge(c),0,m);var k=c;return c-=s.length,c>=0&&r.slice(c,k)==s}function m_(r){return r=vt(r),r&&cs.test(r)?r.replace(Gr,oS):r}function w_(r){return r=vt(r),r&&ir.test(r)?r.replace(Or,"\\$&"):r}var b_=xs(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),v_=xs(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),A_=dg("toLowerCase");function S_(r,s,c){r=vt(r),s=Ge(s);var m=s?ms(r):0;if(!s||m>=s)return r;var k=(s-m)/2;return au(Ga(k),c)+r+au(za(k),c)}function E_(r,s,c){r=vt(r),s=Ge(s);var m=s?ms(r):0;return s&&m<s?r+au(s-m,c):r}function x_(r,s,c){r=vt(r),s=Ge(s);var m=s?ms(r):0;return s&&m<s?au(s-m,c)+r:r}function C_(r,s,c){return c||s==null?s=0:s&&(s=+s),BS(vt(r).replace(Yr,""),s||0)}function __(r,s,c){return(c?mn(r,s,c):s===n)?s=1:s=Ge(s),kl(vt(r),s)}function k_(){var r=arguments,s=vt(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var T_=xs(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function O_(r,s,c){return c&&typeof c!="number"&&mn(r,s,c)&&(s=c=n),c=c===n?me:c>>>0,c?(r=vt(r),r&&(typeof s=="string"||s!=null&&!Yl(s))&&(s=Bn(s),!s&&ys(r))?si(or(r),0,c):r.split(s,c)):[]}var I_=xs(function(r,s,c){return r+(c?" ":"")+Zl(s)});function F_(r,s,c){return r=vt(r),c=c==null?0:Oi(Ge(c),0,r.length),s=Bn(s),r.slice(c,c+s.length)==s}function B_(r,s,c){var m=B.templateSettings;c&&mn(r,s,c)&&(s=n),r=vt(r),s=bu({},s,m,vg);var k=bu({},s.imports,m.imports,vg),R=sn(k),$=ll(k,R),U,z,ie=0,se=s.interpolate||Tn,ue="__p += '",ve=hl((s.escape||Tn).source+"|"+se.source+"|"+(se===Jr?lt:Tn).source+"|"+(s.evaluate||Tn).source+"|$","g"),Ie="//# sourceURL="+(xt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++UA+"]")+`
146
+ `;r.replace(ve,function($e,it,at,Pn,wn,Rn){return at||(at=Pn),ue+=r.slice(ie,Rn).replace(sr,aS),it&&(U=!0,ue+=`' +
147
+ __e(`+it+`) +
148
+ '`),wn&&(z=!0,ue+=`';
149
+ `+wn+`;
150
+ __p += '`),at&&(ue+=`' +
151
+ ((__t = (`+at+`)) == null ? '' : __t) +
152
+ '`),ie=Rn+$e.length,$e}),ue+=`';
153
+ `;var Ne=xt.call(s,"variable")&&s.variable;if(!Ne)ue=`with (obj) {
154
+ `+ue+`
155
155
  }
156
- `;else if(be.test(Ne))throw new qe(l);ae=(H?ae.replace(yt,""):ae).replace(ft,"$1").replace(gt,"$1;"),ae="function("+(Ne||"obj")+`) {
156
+ `;else if(be.test(Ne))throw new Ve(l);ue=(z?ue.replace(pt,""):ue).replace(ct,"$1").replace(dt,"$1;"),ue="function("+(Ne||"obj")+`) {
157
157
  `+(Ne?"":`obj || (obj = {});
158
- `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
158
+ `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
159
159
  function print() { __p += __j.call(arguments, '') }
160
160
  `:`;
161
- `)+ae+`return __p
162
- }`;var Ze=ny(function(){return At(P,_e+"return "+ae).apply(n,j)});if(Ze.source=ae,Wl(Ze))throw Ze;return Ze}function Ck(r){return Et(r).toLowerCase()}function _k(r){return Et(r).toUpperCase()}function kk(r,s,c){if(r=Et(r),r&&(c||s===n))return fg(r);if(!r||!(s=Fn(s)))return r;var m=sr(r),C=sr(s),P=hg(m,C),j=dg(m,C)+1;return ni(m,P,j).join("")}function Tk(r,s,c){if(r=Et(r),r&&(c||s===n))return r.slice(0,gg(r)+1);if(!r||!(s=Fn(s)))return r;var m=sr(r),C=dg(m,sr(s))+1;return ni(m,0,C).join("")}function Ok(r,s,c){if(r=Et(r),r&&(c||s===n))return r.replace(zr,"");if(!r||!(s=Fn(s)))return r;var m=sr(r),C=hg(m,sr(s));return ni(m,C).join("")}function Ik(r,s){var c=fe,m=le;if(Ut(s)){var C="separator"in s?s.separator:C;c="length"in s?Je(s.length):c,m="omission"in s?Fn(s.omission):m}r=Et(r);var P=r.length;if(ps(r)){var j=sr(r);P=j.length}if(c>=P)return r;var U=c-gs(m);if(U<1)return m;var H=j?ni(j,0,U).join(""):r.slice(0,U);if(C===n)return H+m;if(j&&(U+=H.length-U),Kl(C)){if(r.slice(U).search(C)){var ie,se=H;for(C.global||(C=al(C.source,Et(dt.exec(C))+"g")),C.lastIndex=0;ie=C.exec(se);)var ae=ie.index;H=H.slice(0,ae===n?U:ae)}}else if(r.indexOf(Fn(C),U)!=U){var ve=H.lastIndexOf(C);ve>-1&&(H=H.slice(0,ve))}return H+m}function Fk(r){return r=Et(r),r&&vi.test(r)?r.replace(ot,oE):r}var Bk=Ss(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Gl=r0("toUpperCase");function ty(r,s,c){return r=Et(r),s=c?n:s,s===n?tE(r)?cE(r):HS(r):r.match(s)||[]}var ny=tt(function(r,s){try{return On(r,n,s)}catch(c){return Wl(c)?c:new qe(c)}}),Dk=Fr(function(r,s){return Wn(s,function(c){c=wr(c),Or(r,c,Vl(r[c],r))}),r});function Pk(r){var s=r==null?0:r.length,c=Pe();return r=s?Lt(r,function(m){if(typeof m[1]!="function")throw new Kn(u);return[c(m[0]),m[1]]}):[],tt(function(m){for(var C=-1;++C<s;){var P=r[C];if(On(P[0],this,m))return On(P[1],this,m)}})}function Rk(r){return ox(zn(r,p))}function Jl(r){return function(){return r}}function Lk(r,s){return r==null||r!==r?s:r}var Nk=s0(),$k=s0(!0);function Cn(r){return r}function Yl(r){return Rg(typeof r=="function"?r:zn(r,p))}function jk(r){return Ng(zn(r,p))}function Mk(r,s){return $g(r,zn(s,p))}var Uk=tt(function(r,s){return function(c){return bo(c,r,s)}}),Vk=tt(function(r,s){return function(c){return bo(r,c,s)}});function Xl(r,s,c){var m=an(s),C=Xa(s,m);c==null&&!(Ut(s)&&(C.length||!m.length))&&(c=s,s=r,r=this,C=Xa(s,an(s)));var P=!(Ut(c)&&"chain"in c)||!!c.chain,j=Dr(r);return Wn(C,function(U){var H=s[U];r[U]=H,j&&(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:H,args:arguments,thisArg:r}),se.__chain__=ie,se}return H.apply(r,Yr([this.value()],arguments))})}),r}function qk(){return cn._===this&&(cn._=gE),this}function Ql(){}function Wk(r){return r=Je(r),tt(function(s){return jg(s,r)})}var Kk=Ol(Lt),Hk=Ol(og),zk=Ol(el);function ry(r){return Ll(r)?tl(wr(r)):Ex(r)}function Gk(r){return function(s){return r==null?n:ki(r,s)}}var Jk=a0(),Yk=a0(!0);function Zl(){return[]}function ef(){return!1}function Xk(){return{}}function Qk(){return""}function Zk(){return!0}function eT(r,s){if(r=Je(r),r<1||r>Ce)return[];var c=ye,m=hn(r,ye);s=Pe(s),r-=ye;for(var C=il(m,s);++c<r;)s(c);return C}function tT(r){return He(r)?Lt(r,wr):Bn(r)?[r]:Sn(E0(Et(r)))}function nT(r){var s=++dE;return Et(r)+s}var rT=ru(function(r,s){return r+s},0),iT=Il("ceil"),sT=ru(function(r,s){return r/s},1),oT=Il("floor");function aT(r){return r&&r.length?Ya(r,Cn,gl):n}function uT(r,s){return r&&r.length?Ya(r,Pe(s,2),gl):n}function cT(r){return cg(r,Cn)}function lT(r,s){return cg(r,Pe(s,2))}function fT(r){return r&&r.length?Ya(r,Cn,vl):n}function hT(r,s){return r&&r.length?Ya(r,Pe(s,2),vl):n}var dT=ru(function(r,s){return r*s},1),pT=Il("round"),gT=ru(function(r,s){return r-s},0);function yT(r){return r&&r.length?rl(r,Cn):0}function mT(r,s){return r&&r.length?rl(r,Pe(s,2)):0}return B.after=jC,B.ary=P0,B.assign=__,B.assignIn=G0,B.assignInWith=yu,B.assignWith=k_,B.at=T_,B.before=R0,B.bind=Vl,B.bindAll=Dk,B.bindKey=L0,B.castArray=XC,B.chain=F0,B.chunk=o2,B.compact=a2,B.concat=u2,B.cond=Pk,B.conforms=Rk,B.constant=Jl,B.countBy=yC,B.create=O_,B.curry=N0,B.curryRight=$0,B.debounce=j0,B.defaults=I_,B.defaultsDeep=F_,B.defer=MC,B.delay=UC,B.difference=c2,B.differenceBy=l2,B.differenceWith=f2,B.drop=h2,B.dropRight=d2,B.dropRightWhile=p2,B.dropWhile=g2,B.fill=y2,B.filter=bC,B.flatMap=AC,B.flatMapDeep=SC,B.flatMapDepth=EC,B.flatten=k0,B.flattenDeep=m2,B.flattenDepth=b2,B.flip=VC,B.flow=Nk,B.flowRight=$k,B.fromPairs=v2,B.functions=$_,B.functionsIn=j_,B.groupBy=xC,B.initial=A2,B.intersection=S2,B.intersectionBy=E2,B.intersectionWith=x2,B.invert=U_,B.invertBy=V_,B.invokeMap=_C,B.iteratee=Yl,B.keyBy=kC,B.keys=an,B.keysIn=xn,B.map=lu,B.mapKeys=W_,B.mapValues=K_,B.matches=jk,B.matchesProperty=Mk,B.memoize=hu,B.merge=H_,B.mergeWith=J0,B.method=Uk,B.methodOf=Vk,B.mixin=Xl,B.negate=du,B.nthArg=Wk,B.omit=z_,B.omitBy=G_,B.once=qC,B.orderBy=TC,B.over=Kk,B.overArgs=WC,B.overEvery=Hk,B.overSome=zk,B.partial=ql,B.partialRight=M0,B.partition=OC,B.pick=J_,B.pickBy=Y0,B.property=ry,B.propertyOf=Gk,B.pull=T2,B.pullAll=O0,B.pullAllBy=O2,B.pullAllWith=I2,B.pullAt=F2,B.range=Jk,B.rangeRight=Yk,B.rearg=KC,B.reject=BC,B.remove=B2,B.rest=HC,B.reverse=Ml,B.sampleSize=PC,B.set=X_,B.setWith=Q_,B.shuffle=RC,B.slice=D2,B.sortBy=$C,B.sortedUniq=M2,B.sortedUniqBy=U2,B.split=Ak,B.spread=zC,B.tail=V2,B.take=q2,B.takeRight=W2,B.takeRightWhile=K2,B.takeWhile=H2,B.tap=aC,B.throttle=GC,B.thru=cu,B.toArray=K0,B.toPairs=X0,B.toPairsIn=Q0,B.toPath=tT,B.toPlainObject=z0,B.transform=Z_,B.unary=JC,B.union=z2,B.unionBy=G2,B.unionWith=J2,B.uniq=Y2,B.uniqBy=X2,B.uniqWith=Q2,B.unset=ek,B.unzip=Ul,B.unzipWith=I0,B.update=tk,B.updateWith=nk,B.values=Cs,B.valuesIn=rk,B.without=Z2,B.words=ty,B.wrap=YC,B.xor=eC,B.xorBy=tC,B.xorWith=nC,B.zip=rC,B.zipObject=iC,B.zipObjectDeep=sC,B.zipWith=oC,B.entries=X0,B.entriesIn=Q0,B.extend=G0,B.extendWith=yu,Xl(B,B),B.add=rT,B.attempt=ny,B.camelCase=ak,B.capitalize=Z0,B.ceil=iT,B.clamp=ik,B.clone=QC,B.cloneDeep=e_,B.cloneDeepWith=t_,B.cloneWith=ZC,B.conformsTo=n_,B.deburr=ey,B.defaultTo=Lk,B.divide=sT,B.endsWith=uk,B.eq=ar,B.escape=ck,B.escapeRegExp=lk,B.every=mC,B.find=vC,B.findIndex=C0,B.findKey=B_,B.findLast=wC,B.findLastIndex=_0,B.findLastKey=D_,B.floor=oT,B.forEach=B0,B.forEachRight=D0,B.forIn=P_,B.forInRight=R_,B.forOwn=L_,B.forOwnRight=N_,B.get=Hl,B.gt=r_,B.gte=i_,B.has=M_,B.hasIn=zl,B.head=T0,B.identity=Cn,B.includes=CC,B.indexOf=w2,B.inRange=sk,B.invoke=q_,B.isArguments=Ii,B.isArray=He,B.isArrayBuffer=s_,B.isArrayLike=En,B.isArrayLikeObject=Yt,B.isBoolean=o_,B.isBuffer=ri,B.isDate=a_,B.isElement=u_,B.isEmpty=c_,B.isEqual=l_,B.isEqualWith=f_,B.isError=Wl,B.isFinite=h_,B.isFunction=Dr,B.isInteger=U0,B.isLength=pu,B.isMap=V0,B.isMatch=d_,B.isMatchWith=p_,B.isNaN=g_,B.isNative=y_,B.isNil=b_,B.isNull=m_,B.isNumber=q0,B.isObject=Ut,B.isObjectLike=Vt,B.isPlainObject=xo,B.isRegExp=Kl,B.isSafeInteger=v_,B.isSet=W0,B.isString=gu,B.isSymbol=Bn,B.isTypedArray=xs,B.isUndefined=w_,B.isWeakMap=A_,B.isWeakSet=S_,B.join=C2,B.kebabCase=fk,B.last=Jn,B.lastIndexOf=_2,B.lowerCase=hk,B.lowerFirst=dk,B.lt=E_,B.lte=x_,B.max=aT,B.maxBy=uT,B.mean=cT,B.meanBy=lT,B.min=fT,B.minBy=hT,B.stubArray=Zl,B.stubFalse=ef,B.stubObject=Xk,B.stubString=Qk,B.stubTrue=Zk,B.multiply=dT,B.nth=k2,B.noConflict=qk,B.noop=Ql,B.now=fu,B.pad=pk,B.padEnd=gk,B.padStart=yk,B.parseInt=mk,B.random=ok,B.reduce=IC,B.reduceRight=FC,B.repeat=bk,B.replace=vk,B.result=Y_,B.round=pT,B.runInContext=K,B.sample=DC,B.size=LC,B.snakeCase=wk,B.some=NC,B.sortedIndex=P2,B.sortedIndexBy=R2,B.sortedIndexOf=L2,B.sortedLastIndex=N2,B.sortedLastIndexBy=$2,B.sortedLastIndexOf=j2,B.startCase=Sk,B.startsWith=Ek,B.subtract=gT,B.sum=yT,B.sumBy=mT,B.template=xk,B.times=eT,B.toFinite=Pr,B.toInteger=Je,B.toLength=H0,B.toLower=Ck,B.toNumber=Yn,B.toSafeInteger=C_,B.toString=Et,B.toUpper=_k,B.trim=kk,B.trimEnd=Tk,B.trimStart=Ok,B.truncate=Ik,B.unescape=Fk,B.uniqueId=nT,B.upperCase=Bk,B.upperFirst=Gl,B.each=B0,B.eachRight=D0,B.first=T0,Xl(B,function(){var r={};return br(B,function(s,c){xt.call(B.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),B.VERSION=i,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){B[r].placeholder=B}),Wn(["drop","take"],function(r,s){at.prototype[r]=function(c){c=c===n?1:rn(Je(c),0);var m=this.__filtered__&&!s?new at(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},at.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Wn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==he||c==Ie;at.prototype[r]=function(C){var P=this.clone();return P.__iteratees__.push({iteratee:Pe(C,3),type:c}),P.__filtered__=P.__filtered__||m,P}}),Wn(["head","last"],function(r,s){var c="take"+(s?"Right":"");at.prototype[r]=function(){return this[c](1).value()[0]}}),Wn(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");at.prototype[r]=function(){return this.__filtered__?new at(this):this[c](1)}}),at.prototype.compact=function(){return this.filter(Cn)},at.prototype.find=function(r){return this.filter(r).head()},at.prototype.findLast=function(r){return this.reverse().find(r)},at.prototype.invokeMap=tt(function(r,s){return typeof r=="function"?new at(this):this.map(function(c){return bo(c,r,s)})}),at.prototype.reject=function(r){return this.filter(du(Pe(r)))},at.prototype.slice=function(r,s){r=Je(r);var c=this;return c.__filtered__&&(r>0||s<0)?new at(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=Je(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},at.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},at.prototype.toArray=function(){return this.take(ye)},br(at.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),C=B[m?"take"+(s=="last"?"Right":""):s],P=m||/^find/.test(s);C&&(B.prototype[s]=function(){var j=this.__wrapped__,U=m?[1]:arguments,H=j instanceof at,ie=U[0],se=H||He(j),ae=function(st){var ut=C.apply(B,Yr([st],U));return m&&ve?ut[0]:ut};se&&c&&typeof ie=="function"&&ie.length!=1&&(H=se=!1);var ve=this.__chain__,_e=!!this.__actions__.length,Ne=P&&!ve,Ze=H&&!_e;if(!P&&se){j=Ze?j:new at(this);var $e=r.apply(j,U);return $e.__actions__.push({func:cu,args:[ae],thisArg:n}),new Hn($e,ve)}return Ne&&Ze?r.apply(this,U):($e=this.thru(ae),Ne?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);B.prototype[r]=function(){var C=arguments;if(m&&!this.__chain__){var P=this.value();return s.apply(He(P)?P:[],C)}return this[c](function(j){return s.apply(He(j)?j:[],C)})}}),br(at.prototype,function(r,s){var c=B[s];if(c){var m=c.name+"";xt.call(vs,m)||(vs[m]=[]),vs[m].push({name:s,func:c})}}),vs[nu(n,R).name]=[{name:"wrapper",func:n}],at.prototype.clone=FE,at.prototype.reverse=BE,at.prototype.value=DE,B.prototype.at=uC,B.prototype.chain=cC,B.prototype.commit=lC,B.prototype.next=fC,B.prototype.plant=dC,B.prototype.reverse=pC,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=gC,B.prototype.first=B.prototype.head,lo&&(B.prototype[lo]=hC),B},ys=lE();Si?((Si.exports=ys)._=ys,Yc._=ys):cn._=ys}).call(Qn)}(Xo,Xo.exports);var fi=Xo.exports;const bt=vu(fi),Y1={ShortenedText:Xe.div`
161
+ `)+ue+`return __p
162
+ }`;var Qe=h1(function(){return wt(R,Ie+"return "+ue).apply(n,$)});if(Qe.source=ue,Jl(Qe))throw Qe;return Qe}function D_(r){return vt(r).toLowerCase()}function P_(r){return vt(r).toUpperCase()}function R_(r,s,c){if(r=vt(r),r&&(c||s===n))return A0(r);if(!r||!(s=Bn(s)))return r;var m=or(r),k=or(s),R=S0(m,k),$=E0(m,k)+1;return si(m,R,$).join("")}function L_(r,s,c){if(r=vt(r),r&&(c||s===n))return r.slice(0,C0(r)+1);if(!r||!(s=Bn(s)))return r;var m=or(r),k=E0(m,or(s))+1;return si(m,0,k).join("")}function j_(r,s,c){if(r=vt(r),r&&(c||s===n))return r.replace(Yr,"");if(!r||!(s=Bn(s)))return r;var m=or(r),k=S0(m,or(s));return si(m,k).join("")}function N_(r,s){var c=ce,m=le;if($t(s)){var k="separator"in s?s.separator:k;c="length"in s?Ge(s.length):c,m="omission"in s?Bn(s.omission):m}r=vt(r);var R=r.length;if(ys(r)){var $=or(r);R=$.length}if(c>=R)return r;var U=c-ms(m);if(U<1)return m;var z=$?si($,0,U).join(""):r.slice(0,U);if(k===n)return z+m;if($&&(U+=z.length-U),Yl(k)){if(r.slice(U).search(k)){var ie,se=z;for(k.global||(k=hl(k.source,vt(ft.exec(k))+"g")),k.lastIndex=0;ie=k.exec(se);)var ue=ie.index;z=z.slice(0,ue===n?U:ue)}}else if(r.indexOf(Bn(k),U)!=U){var ve=z.lastIndexOf(k);ve>-1&&(z=z.slice(0,ve))}return z+m}function $_(r){return r=vt(r),r&&Si.test(r)?r.replace(st,pS):r}var M_=xs(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),Zl=dg("toUpperCase");function f1(r,s,c){return r=vt(r),s=c?n:s,s===n?cS(r)?mS(r):eS(r):r.match(s)||[]}var h1=Xe(function(r,s){try{return In(r,n,s)}catch(c){return Jl(c)?c:new Ve(c)}}),U_=Pr(function(r,s){return Wn(s,function(c){c=Sr(c),Br(r,c,zl(r[c],r))}),r});function V_(r){var s=r==null?0:r.length,c=je();return r=s?Rt(r,function(m){if(typeof m[1]!="function")throw new Kn(u);return[c(m[0]),m[1]]}):[],Xe(function(m){for(var k=-1;++k<s;){var R=r[k];if(In(R[0],this,m))return In(R[1],this,m)}})}function q_(r){return pE(zn(r,p))}function ef(r){return function(){return r}}function W_(r,s){return r==null||r!==r?s:r}var K_=gg(),H_=gg(!0);function Cn(r){return r}function tf(r){return K0(typeof r=="function"?r:zn(r,p))}function z_(r){return z0(zn(r,p))}function G_(r,s){return G0(r,zn(s,p))}var J_=Xe(function(r,s){return function(c){return Ao(c,r,s)}}),Y_=Xe(function(r,s){return function(c){return Ao(r,c,s)}});function nf(r,s,c){var m=sn(s),k=eu(s,m);c==null&&!($t(s)&&(k.length||!m.length))&&(c=s,s=r,r=this,k=eu(s,sn(s)));var R=!($t(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(R||ie){var se=r(this.__wrapped__),ue=se.__actions__=Sn(this.__actions__);return ue.push({func:z,args:arguments,thisArg:r}),se.__chain__=ie,se}return z.apply(r,Zr([this.value()],arguments))})}),r}function Q_(){return un._===this&&(un._=ES),this}function rf(){}function X_(r){return r=Ge(r),Xe(function(s){return J0(s,r)})}var Z_=Pl(Rt),e8=Pl(y0),t8=Pl(sl);function d1(r){return Ul(r)?ol(Sr(r)):FE(r)}function n8(r){return function(s){return r==null?n:Ii(r,s)}}var r8=mg(),i8=mg(!0);function sf(){return[]}function of(){return!1}function s8(){return{}}function o8(){return""}function a8(){return!0}function u8(r,s){if(r=Ge(r),r<1||r>Ee)return[];var c=me,m=fn(r,me);s=je(s),r-=me;for(var k=cl(m,s);++c<r;)s(c);return k}function c8(r){return Ke(r)?Rt(r,Sr):Dn(r)?[r]:Sn(Dg(vt(r)))}function l8(r){var s=++AS;return vt(r)+s}var f8=ou(function(r,s){return r+s},0),h8=Rl("ceil"),d8=ou(function(r,s){return r/s},1),p8=Rl("floor");function g8(r){return r&&r.length?Za(r,Cn,vl):n}function y8(r,s){return r&&r.length?Za(r,je(s,2),vl):n}function m8(r){return b0(r,Cn)}function w8(r,s){return b0(r,je(s,2))}function b8(r){return r&&r.length?Za(r,Cn,xl):n}function v8(r,s){return r&&r.length?Za(r,je(s,2),xl):n}var A8=ou(function(r,s){return r*s},1),S8=Rl("round"),E8=ou(function(r,s){return r-s},0);function x8(r){return r&&r.length?ul(r,Cn):0}function C8(r,s){return r&&r.length?ul(r,je(s,2)):0}return B.after=zC,B.ary=Wg,B.assign=P3,B.assignIn=i1,B.assignInWith=bu,B.assignWith=R3,B.at=L3,B.before=Kg,B.bind=zl,B.bindAll=U_,B.bindKey=Hg,B.castArray=s3,B.chain=Ug,B.chunk=px,B.compact=gx,B.concat=yx,B.cond=V_,B.conforms=q_,B.constant=ef,B.countBy=xC,B.create=j3,B.curry=zg,B.curryRight=Gg,B.debounce=Jg,B.defaults=N3,B.defaultsDeep=$3,B.defer=GC,B.delay=JC,B.difference=mx,B.differenceBy=wx,B.differenceWith=bx,B.drop=vx,B.dropRight=Ax,B.dropRightWhile=Sx,B.dropWhile=Ex,B.fill=xx,B.filter=_C,B.flatMap=OC,B.flatMapDeep=IC,B.flatMapDepth=FC,B.flatten=jg,B.flattenDeep=Cx,B.flattenDepth=_x,B.flip=YC,B.flow=K_,B.flowRight=H_,B.fromPairs=kx,B.functions=H3,B.functionsIn=z3,B.groupBy=BC,B.initial=Ox,B.intersection=Ix,B.intersectionBy=Fx,B.intersectionWith=Bx,B.invert=J3,B.invertBy=Y3,B.invokeMap=PC,B.iteratee=tf,B.keyBy=RC,B.keys=sn,B.keysIn=xn,B.map=du,B.mapKeys=X3,B.mapValues=Z3,B.matches=z_,B.matchesProperty=G_,B.memoize=gu,B.merge=e_,B.mergeWith=s1,B.method=J_,B.methodOf=Y_,B.mixin=nf,B.negate=yu,B.nthArg=X_,B.omit=t_,B.omitBy=n_,B.once=QC,B.orderBy=LC,B.over=Z_,B.overArgs=XC,B.overEvery=e8,B.overSome=t8,B.partial=Gl,B.partialRight=Yg,B.partition=jC,B.pick=r_,B.pickBy=o1,B.property=d1,B.propertyOf=n8,B.pull=Lx,B.pullAll=$g,B.pullAllBy=jx,B.pullAllWith=Nx,B.pullAt=$x,B.range=r8,B.rangeRight=i8,B.rearg=ZC,B.reject=MC,B.remove=Mx,B.rest=e3,B.reverse=Kl,B.sampleSize=VC,B.set=s_,B.setWith=o_,B.shuffle=qC,B.slice=Ux,B.sortBy=HC,B.sortedUniq=Gx,B.sortedUniqBy=Jx,B.split=O_,B.spread=t3,B.tail=Yx,B.take=Qx,B.takeRight=Xx,B.takeRightWhile=Zx,B.takeWhile=eC,B.tap=gC,B.throttle=n3,B.thru=hu,B.toArray=t1,B.toPairs=a1,B.toPairsIn=u1,B.toPath=c8,B.toPlainObject=r1,B.transform=a_,B.unary=r3,B.union=tC,B.unionBy=nC,B.unionWith=rC,B.uniq=iC,B.uniqBy=sC,B.uniqWith=oC,B.unset=u_,B.unzip=Hl,B.unzipWith=Mg,B.update=c_,B.updateWith=l_,B.values=ks,B.valuesIn=f_,B.without=aC,B.words=f1,B.wrap=i3,B.xor=uC,B.xorBy=cC,B.xorWith=lC,B.zip=fC,B.zipObject=hC,B.zipObjectDeep=dC,B.zipWith=pC,B.entries=a1,B.entriesIn=u1,B.extend=i1,B.extendWith=bu,nf(B,B),B.add=f8,B.attempt=h1,B.camelCase=g_,B.capitalize=c1,B.ceil=h8,B.clamp=h_,B.clone=o3,B.cloneDeep=u3,B.cloneDeepWith=c3,B.cloneWith=a3,B.conformsTo=l3,B.deburr=l1,B.defaultTo=W_,B.divide=d8,B.endsWith=y_,B.eq=ur,B.escape=m_,B.escapeRegExp=w_,B.every=CC,B.find=kC,B.findIndex=Rg,B.findKey=M3,B.findLast=TC,B.findLastIndex=Lg,B.findLastKey=U3,B.floor=p8,B.forEach=Vg,B.forEachRight=qg,B.forIn=V3,B.forInRight=q3,B.forOwn=W3,B.forOwnRight=K3,B.get=Ql,B.gt=f3,B.gte=h3,B.has=G3,B.hasIn=Xl,B.head=Ng,B.identity=Cn,B.includes=DC,B.indexOf=Tx,B.inRange=d_,B.invoke=Q3,B.isArguments=Di,B.isArray=Ke,B.isArrayBuffer=d3,B.isArrayLike=En,B.isArrayLikeObject=Gt,B.isBoolean=p3,B.isBuffer=oi,B.isDate=g3,B.isElement=y3,B.isEmpty=m3,B.isEqual=w3,B.isEqualWith=b3,B.isError=Jl,B.isFinite=v3,B.isFunction=Lr,B.isInteger=Qg,B.isLength=mu,B.isMap=Xg,B.isMatch=A3,B.isMatchWith=S3,B.isNaN=E3,B.isNative=x3,B.isNil=_3,B.isNull=C3,B.isNumber=Zg,B.isObject=$t,B.isObjectLike=Ut,B.isPlainObject=ko,B.isRegExp=Yl,B.isSafeInteger=k3,B.isSet=e1,B.isString=wu,B.isSymbol=Dn,B.isTypedArray=_s,B.isUndefined=T3,B.isWeakMap=O3,B.isWeakSet=I3,B.join=Dx,B.kebabCase=b_,B.last=Jn,B.lastIndexOf=Px,B.lowerCase=v_,B.lowerFirst=A_,B.lt=F3,B.lte=B3,B.max=g8,B.maxBy=y8,B.mean=m8,B.meanBy=w8,B.min=b8,B.minBy=v8,B.stubArray=sf,B.stubFalse=of,B.stubObject=s8,B.stubString=o8,B.stubTrue=a8,B.multiply=A8,B.nth=Rx,B.noConflict=Q_,B.noop=rf,B.now=pu,B.pad=S_,B.padEnd=E_,B.padStart=x_,B.parseInt=C_,B.random=p_,B.reduce=NC,B.reduceRight=$C,B.repeat=__,B.replace=k_,B.result=i_,B.round=S8,B.runInContext=H,B.sample=UC,B.size=WC,B.snakeCase=T_,B.some=KC,B.sortedIndex=Vx,B.sortedIndexBy=qx,B.sortedIndexOf=Wx,B.sortedLastIndex=Kx,B.sortedLastIndexBy=Hx,B.sortedLastIndexOf=zx,B.startCase=I_,B.startsWith=F_,B.subtract=E8,B.sum=x8,B.sumBy=C8,B.template=B_,B.times=u8,B.toFinite=jr,B.toInteger=Ge,B.toLength=n1,B.toLower=D_,B.toNumber=Yn,B.toSafeInteger=D3,B.toString=vt,B.toUpper=P_,B.trim=R_,B.trimEnd=L_,B.trimStart=j_,B.truncate=N_,B.unescape=$_,B.uniqueId=l8,B.upperCase=M_,B.upperFirst=Zl,B.each=Vg,B.eachRight=qg,B.first=Ng,nf(B,function(){var r={};return vr(B,function(s,c){xt.call(B.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),B.VERSION=i,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){B[r].placeholder=B}),Wn(["drop","take"],function(r,s){ot.prototype[r]=function(c){c=c===n?1:tn(Ge(c),0);var m=this.__filtered__&&!s?new ot(this):this.clone();return m.__filtered__?m.__takeCount__=fn(c,m.__takeCount__):m.__views__.push({size:fn(c,me),type:r+(m.__dir__<0?"Right":"")}),m},ot.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Wn(["filter","map","takeWhile"],function(r,s){var c=s+1,m=c==Ce||c==Re;ot.prototype[r]=function(k){var R=this.clone();return R.__iteratees__.push({iteratee:je(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(Cn)},ot.prototype.find=function(r){return this.filter(r).head()},ot.prototype.findLast=function(r){return this.reverse().find(r)},ot.prototype.invokeMap=Xe(function(r,s){return typeof r=="function"?new ot(this):this.map(function(c){return Ao(c,r,s)})}),ot.prototype.reject=function(r){return this.filter(yu(je(r)))},ot.prototype.slice=function(r,s){r=Ge(r);var c=this;return c.__filtered__&&(r>0||s<0)?new ot(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=Ge(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},ot.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ot.prototype.toArray=function(){return this.take(me)},vr(ot.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),m=/^(?:head|last)$/.test(s),k=B[m?"take"+(s=="last"?"Right":""):s],R=m||/^find/.test(s);k&&(B.prototype[s]=function(){var $=this.__wrapped__,U=m?[1]:arguments,z=$ instanceof ot,ie=U[0],se=z||Ke($),ue=function(it){var at=k.apply(B,Zr([it],U));return m&&ve?at[0]:at};se&&c&&typeof ie=="function"&&ie.length!=1&&(z=se=!1);var ve=this.__chain__,Ie=!!this.__actions__.length,Ne=R&&!ve,Qe=z&&!Ie;if(!R&&se){$=Qe?$:new ot(this);var $e=r.apply($,U);return $e.__actions__.push({func:hu,args:[ue],thisArg:n}),new Hn($e,ve)}return Ne&&Qe?r.apply(this,U):($e=this.thru(ue),Ne?m?$e.value()[0]:$e.value():$e)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(r){var s=Na[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);B.prototype[r]=function(){var k=arguments;if(m&&!this.__chain__){var R=this.value();return s.apply(Ke(R)?R:[],k)}return this[c](function($){return s.apply(Ke($)?$:[],k)})}}),vr(ot.prototype,function(r,s){var c=B[s];if(c){var m=c.name+"";xt.call(As,m)||(As[m]=[]),As[m].push({name:s,func:c})}}),As[su(n,D).name]=[{name:"wrapper",func:n}],ot.prototype.clone=$S,ot.prototype.reverse=MS,ot.prototype.value=US,B.prototype.at=yC,B.prototype.chain=mC,B.prototype.commit=wC,B.prototype.next=bC,B.prototype.plant=AC,B.prototype.reverse=SC,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=EC,B.prototype.first=B.prototype.head,po&&(B.prototype[po]=vC),B},ws=wS();Ci?((Ci.exports=ws)._=ws,tl._=ws):un._=ws}).call(Xn)}(ea,ea.exports);var pi=ea.exports;const yt=Su(pi),a2={ShortenedText:et.div`
163
163
  max-width: ${({$maxWidth:e})=>e}px;
164
164
  overflow: hidden;
165
165
  white-space: nowrap;
166
166
  text-overflow: ellipsis;
167
- `},Wi=({text:e,trimLength:t,maxWidth:n=200})=>{if(t){const i=e.substring(0,t);return I.jsx(z.Tooltip,{title:e,placement:"top",children:i})}return I.jsx(z.Tooltip,{title:e,children:I.jsx(Y1.ShortenedText,{$maxWidth:n,children:e})})},X1=({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i,close:o})=>{const a=(l,f)=>{f({closeDropdown:!1})},u=l=>{l()};return I.jsxs("div",{style:{padding:8},onKeyDown:l=>l.stopPropagation(),children:[I.jsx(z.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"}}),I.jsxs(z.Space,{children:[I.jsx(z.Button,{onClick:()=>{i&&(i(),u(i)),a([],n)},size:"small",style:{width:90},children:"Reset"}),I.jsx(z.Button,{type:"link",size:"small",onClick:()=>{o()},children:"close"})]})]})},Q1=Xe.div`
167
+ `},zi=({text:e,trimLength:t,maxWidth:n=200})=>{if(t){const i=e.substring(0,t);return A.jsx(q.Tooltip,{title:e,placement:"top",children:i})}return A.jsx(q.Tooltip,{title:e,children:A.jsx(a2.ShortenedText,{$maxWidth:n,children:e})})},u2=({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"})]})]})},c2=et.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
- `,Z1=Xe.div`
207
+ `,l2=et.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
- `,Bh={TableContainer:Q1,HideableControls:Z1},Dh=Xe(z.Button)`
217
+ `,qh={TableContainer:c2,HideableControls:l2},Wh=et(q.Button)`
218
218
  height: 24px !important;
219
- `,eb=Xe.div`
219
+ `,f2=et.div`
220
220
  text-align: ${({$align:e})=>e};
221
- `,Ph=({tags:e,trimLength:t})=>{const n=i=>i.map(o=>I.jsx(z.Tag,{style:{margin:0,flexShrink:0},children:o},o));return t&&t<e.length?I.jsxs(z.Flex,{wrap:"nowrap",gap:"4px",children:[n(e.slice(0,t)),I.jsx(z.Tooltip,{title:I.jsx(I.Fragment,{children:n(e.slice(t))}),children:I.jsxs(z.Tag,{children:["+",e.length-t]},"more")})]}):I.jsx(z.Flex,{wrap:"nowrap",gap:"4px",children:n(e)})},Rh=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),Lh=({columns:e,additionalPrinterColumnsUndefinedValues:t,additionalPrinterColumnsTrimLengths:n,additionalPrinterColumnsColWidths:i})=>{if(e)return e.map(o=>{const a=t?.find(({key:f})=>f===o.key)?.value,u=n?.find(({key:f})=>f===o.key)?.value,l=i?.find(({key:f})=>f===o.key)?.value;return{...o,render:f=>typeof f=="object"&&!Array.isArray(f)?Rh(f)?I.jsx(Ph,{tags:Object.entries(f).map(([d,g])=>`${d}: ${String(g)}`),trimLength:u}):I.jsx(Wi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(d=>d&&!Array.isArray(d))?I.jsx(Ph,{tags:f.map(d=>d.toLocaleString()),trimLength:u}):I.jsx(Wi,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?I.jsx(qt.CheckOutlined,{style:{color:"green"}}):I.jsx(qt.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?I.jsx(Wi,{trimLength:u,text:String(f)}):typeof f=="string"?I.jsx(Wi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?I.jsx(Wi,{trimLength:u,text:a}):I.jsx(Wi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:w})=>I.jsx(X1,{setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:w}),filterIcon:f=>I.jsx(qt.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?fi.get(d,g):d[g];if(typeof p=="object"&&!Array.isArray(p))return JSON.stringify(p).toLowerCase().includes(f.toLowerCase());if(Array.isArray(p))return p.some(w=>w.toLowerCase().includes(f.toLowerCase()));if(typeof p=="boolean"){const w=f.toLowerCase()==="true";return p===w}return typeof p=="number"?String(p).includes(f.toLowerCase()):typeof p=="string"?p.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?fi.get(f,g):f[g],w=Array.isArray(g)?fi.get(d,g):d[g];return typeof p=="object"&&!Array.isArray(p)&&p!==null?typeof w=="object"&&!Array.isArray(w)&&w!==null?Object.keys(p).length-Object.keys(w).length:Object.keys(p).length?-1:1:Array.isArray(p)?Array.isArray(w)?p.length-w.length:p.length?-1:1:typeof p=="boolean"?p===w?0:p?-1:1:typeof p=="number"?typeof w=="number"?p-w:p?-1:1:typeof p=="string"?typeof w=="string"?p.localeCompare(w):p?-1:1:0}}})},Nh=({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=>I.jsxs(eb,{$align:"right",className:"hideable",children:[I.jsx(Dh,{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||I.jsx(qt.EditOutlined,{size:14}),disabled:!a.permissions.canUpdate}),I.jsx(Dh,{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||I.jsx(qt.DeleteOutlined,{size:14}),disabled:!a.permissions.canDelete})]})}]},$h=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:d,withoutControls:g=!1,tableProps:p})=>{const w=Xn.useNavigate();if(!i)return null;const _=Lh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!_)return null;const A=g?_:Nh({enrichedColumns:_,navigate:w,baseprefix:t,editIcon:p?.editIcon,deleteIcon:p?.deleteIcon});if(!A)return null;const S=v=>`Total: ${v}`;return I.jsx(Bh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:p?.borderless,$isTotalLeft:p?.isTotalLeft,children:I.jsx(Bh.HideableControls,{children:I.jsx(z.Table,{dataSource:n,columns:A,pagination:{position:p?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:S},scroll:{x:"max-content"},rowSelection:d?{type:"checkbox",selectedRowKeys:d.selectedRowKeys,onChange:(v,R)=>{d.onChange(v,R.map(({internalDataForControls:N})=>({name:N.entryName,endpoint:`${N.deletePathPrefix}/${N.apiGroupAndVersion}${N.namespace?`/namespaces/${N.namespace}`:""}/${N.typeName}/${N.entryName}`})))}}:void 0,onRow:v=>({onClick:()=>{if(o&&a){const R=fi.get(v,a),N=typeof R=="string"?R:JSON.stringify(R),x=o.replaceAll("~recordValue~",N);w(x)}}})})})})};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 jh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(d,g){if(!o[d]){if(!i[d]){var p=typeof Qo=="function"&&Qo;if(!g&&p)return p(d,!0);if(l)return l(d,!0);var w=new Error("Cannot find module '"+d+"'");throw w.code="MODULE_NOT_FOUND",w}var _=o[d]={exports:{}};i[d][0].call(_.exports,function(A){var S=i[d][1][A];return u(S||A)},_,_.exports,n,i,o,a)}return o[d].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,d,g,p,w,_,A,S,v,R,N,x,O,F,k,D;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},l={},l[u.BooleanLiteral]="Boolean",l[u.EOF]="<end>",l[u.Identifier]="Identifier",l[u.Keyword]="Keyword",l[u.NullLiteral]="Null",l[u.NumericLiteral]="Numeric",l[u.Punctuator]="Punctuator",l[u.StringLiteral]="String",l[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],d={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},g={Data:1,Get:2,Set:4},p={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},w={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function V(h,E){if(!h)throw new Error("ASSERT: "+E)}function Q(h){return h>=48&&h<=57}function fe(h){return"0123456789abcdefABCDEF".indexOf(h)>=0}function le(h){return"01234567".indexOf(h)>=0}function ge(h){return h===32||h===9||h===11||h===12||h===160||h>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(h)>=0}function me(h){return h===10||h===13||h===8232||h===8233}function he(h){return h==64||h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h===92||h>=128&&w.NonAsciiIdentifierStart.test(String.fromCharCode(h))}function de(h){return h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h>=48&&h<=57||h===92||h>=128&&w.NonAsciiIdentifierPart.test(String.fromCharCode(h))}function Ie(h){switch(h){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function Re(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 Ce(h){return h==="eval"||h==="arguments"}function ze(h){if(S&&Re(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 Se(h,E,$,W,ne){var pe;V(typeof $=="number","Comment must have valid position"),!(k.lastCommentStart>=$)&&(k.lastCommentStart=$,pe={type:h,value:E},D.range&&(pe.range=[$,W]),D.loc&&(pe.loc=ne),D.comments.push(pe),D.attachComment&&(D.leadingComments.push(pe),D.trailingComments.push(pe)))}function ye(h){var E,$,W,ne;for(E=v-h,$={start:{line:R,column:v-N-h}};v<x;)if(W=A.charCodeAt(v),++v,me(W)){D.comments&&(ne=A.slice(E+h,v-1),$.end={line:R,column:v-N-1},Se("Line",ne,E,v-1,$)),W===13&&A.charCodeAt(v)===10&&++v,++R,N=v;return}D.comments&&(ne=A.slice(E+h,v),$.end={line:R,column:v-N},Se("Line",ne,E,v,$))}function et(){var h,E,$,W;for(D.comments&&(h=v-2,E={start:{line:R,column:v-N-2}});v<x;)if($=A.charCodeAt(v),me($))$===13&&A.charCodeAt(v+1)===10&&++v,++R,++v,N=v,v>=x&&xe({},p.UnexpectedToken,"ILLEGAL");else if($===42){if(A.charCodeAt(v+1)===47){++v,++v,D.comments&&(W=A.slice(h+2,v-2),E.end={line:R,column:v-N},Se("Block",W,h,v,E));return}++v}else++v;xe({},p.UnexpectedToken,"ILLEGAL")}function J(){var h,E;for(E=v===0;v<x;)if(h=A.charCodeAt(v),ge(h))++v;else if(me(h))++v,h===13&&A.charCodeAt(v)===10&&++v,++R,N=v,E=!0;else if(h===47)if(h=A.charCodeAt(v+1),h===47)++v,++v,ye(2),E=!0;else if(h===42)++v,++v,et();else break;else if(E&&h===45)if(A.charCodeAt(v+1)===45&&A.charCodeAt(v+2)===62)v+=3,ye(3);else break;else if(h===60)if(A.slice(v+1,v+4)==="!--")++v,++v,++v,++v,ye(4);else break;else break}function X(h){var E,$,W,ne=0;for($=h==="u"?4:2,E=0;E<$;++E)if(v<x&&fe(A[v]))W=A[v++],ne=ne*16+"0123456789abcdef".indexOf(W.toLowerCase());else return"";return String.fromCharCode(ne)}function oe(){var h,E;for(h=A.charCodeAt(v++),E=String.fromCharCode(h),h===92&&(A.charCodeAt(v)!==117&&xe({},p.UnexpectedToken,"ILLEGAL"),++v,h=X("u"),(!h||h==="\\"||!he(h.charCodeAt(0)))&&xe({},p.UnexpectedToken,"ILLEGAL"),E=h);v<x&&(h=A.charCodeAt(v),!!de(h));)++v,E+=String.fromCharCode(h),h===92&&(E=E.substr(0,E.length-1),A.charCodeAt(v)!==117&&xe({},p.UnexpectedToken,"ILLEGAL"),++v,h=X("u"),(!h||h==="\\"||!de(h.charCodeAt(0)))&&xe({},p.UnexpectedToken,"ILLEGAL"),E+=h);return E}function Be(){var h,E;for(h=v++;v<x;){if(E=A.charCodeAt(v),E===92)return v=h,oe();if(de(E))++v;else break}return A.slice(h,v)}function Ke(){var h,E,$;return h=v,E=A.charCodeAt(v)===92?oe():Be(),E.length===1?$=u.Identifier:ze(E)?$=u.Keyword:E==="null"?$=u.NullLiteral:E==="true"||E==="false"?$=u.BooleanLiteral:$=u.Identifier,{type:$,value:E,lineNumber:R,lineStart:N,start:h,end:v}}function we(){var h=v,E=A.charCodeAt(v),$,W=A[v],ne,pe,Ge;switch(E){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++v,D.tokenize&&(E===40?D.openParenToken=D.tokens.length:E===123&&(D.openCurlyToken=D.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(E),lineNumber:R,lineStart:N,start:h,end:v};default:if($=A.charCodeAt(v+1),$===61)switch(E){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return v+=2,{type:u.Punctuator,value:String.fromCharCode(E)+String.fromCharCode($),lineNumber:R,lineStart:N,start:h,end:v};case 33:case 61:return v+=2,A.charCodeAt(v)===61&&++v,{type:u.Punctuator,value:A.slice(h,v),lineNumber:R,lineStart:N,start:h,end:v}}}if(Ge=A.substr(v,4),Ge===">>>=")return v+=4,{type:u.Punctuator,value:Ge,lineNumber:R,lineStart:N,start:h,end:v};if(pe=Ge.substr(0,3),pe===">>>"||pe==="<<="||pe===">>=")return v+=3,{type:u.Punctuator,value:pe,lineNumber:R,lineStart:N,start:h,end:v};if(ne=pe.substr(0,2),W===ne[1]&&"+-<>&|".indexOf(W)>=0||ne==="=>")return v+=2,{type:u.Punctuator,value:ne,lineNumber:R,lineStart:N,start:h,end:v};if("<>=!+-*%&|^/".indexOf(W)>=0)return++v,{type:u.Punctuator,value:W,lineNumber:R,lineStart:N,start:h,end:v};xe({},p.UnexpectedToken,"ILLEGAL")}function Oe(h){for(var E="";v<x&&fe(A[v]);)E+=A[v++];return E.length===0&&xe({},p.UnexpectedToken,"ILLEGAL"),he(A.charCodeAt(v))&&xe({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+E,16),lineNumber:R,lineStart:N,start:h,end:v}}function De(h){for(var E="0"+A[v++];v<x&&le(A[v]);)E+=A[v++];return(he(A.charCodeAt(v))||Q(A.charCodeAt(v)))&&xe({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(E,8),octal:!0,lineNumber:R,lineStart:N,start:h,end:v}}function Le(){var h,E,$;if($=A[v],V(Q($.charCodeAt(0))||$===".","Numeric literal must start with a decimal digit or a decimal point"),E=v,h="",$!=="."){if(h=A[v++],$=A[v],h==="0"){if($==="x"||$==="X")return++v,Oe(E);if(le($))return De(E);$&&Q($.charCodeAt(0))&&xe({},p.UnexpectedToken,"ILLEGAL")}for(;Q(A.charCodeAt(v));)h+=A[v++];$=A[v]}if($==="."){for(h+=A[v++];Q(A.charCodeAt(v));)h+=A[v++];$=A[v]}if($==="e"||$==="E")if(h+=A[v++],$=A[v],($==="+"||$==="-")&&(h+=A[v++]),Q(A.charCodeAt(v)))for(;Q(A.charCodeAt(v));)h+=A[v++];else xe({},p.UnexpectedToken,"ILLEGAL");return he(A.charCodeAt(v))&&xe({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(h),lineNumber:R,lineStart:N,start:E,end:v}}function Tt(){var h="",E,$,W,ne,pe,Ge,wt=!1,tn,Jt;for(tn=R,Jt=N,E=A[v],V(E==="'"||E==='"',"String literal must starts with a quote"),$=v,++v;v<x;)if(W=A[v++],W===E){E="";break}else if(W==="\\")if(W=A[v++],!W||!me(W.charCodeAt(0)))switch(W){case"u":case"x":Ge=v,pe=X(W),pe?h+=pe:(v=Ge,h+=W);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(W)?(ne="01234567".indexOf(W),ne!==0&&(wt=!0),v<x&&le(A[v])&&(wt=!0,ne=ne*8+"01234567".indexOf(A[v++]),"0123".indexOf(W)>=0&&v<x&&le(A[v])&&(ne=ne*8+"01234567".indexOf(A[v++]))),h+=String.fromCharCode(ne)):h+=W;break}else++R,W==="\r"&&A[v]===`
223
- `&&++v,N=v;else{if(me(W.charCodeAt(0)))break;h+=W}return E!==""&&xe({},p.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:h,octal:wt,startLineNumber:tn,startLineStart:Jt,lineNumber:R,lineStart:N,start:$,end:v}}function on(h,E){var $;try{$=new RegExp(h,E)}catch{xe({},p.InvalidRegExp)}return $}function Nt(){var h,E,$,W,ne;for(h=A[v],V(h==="/","Regular expression literal must start with a slash"),E=A[v++],$=!1,W=!1;v<x;)if(h=A[v++],E+=h,h==="\\")h=A[v++],me(h.charCodeAt(0))&&xe({},p.UnterminatedRegExp),E+=h;else if(me(h.charCodeAt(0)))xe({},p.UnterminatedRegExp);else if($)h==="]"&&($=!1);else if(h==="/"){W=!0;break}else h==="["&&($=!0);return W||xe({},p.UnterminatedRegExp),ne=E.substr(1,E.length-2),{value:ne,literal:E}}function $t(){var h,E,$,W;for(E="",$="";v<x&&(h=A[v],!!de(h.charCodeAt(0)));)if(++v,h==="\\"&&v<x)if(h=A[v],h==="u"){if(++v,W=v,h=X("u"),h)for($+=h,E+="\\u";W<v;++W)E+=A[W];else v=W,$+="u",E+="\\u";Fe({},p.UnexpectedToken,"ILLEGAL")}else E+="\\",Fe({},p.UnexpectedToken,"ILLEGAL");else $+=h,E+=h;return{value:$,literal:E}}function jt(){var h,E,$,W;return F=null,J(),h=v,E=Nt(),$=$t(),W=on(E.value,$.value),D.tokenize?{type:u.RegularExpression,value:W,lineNumber:R,lineStart:N,start:h,end:v}:{literal:E.literal+$.literal,value:W,start:h,end:v}}function St(){var h,E,$,W;return J(),h=v,E={start:{line:R,column:v-N}},$=jt(),E.end={line:R,column:v-N},D.tokenize||(D.tokens.length>0&&(W=D.tokens[D.tokens.length-1],W.range[0]===h&&W.type==="Punctuator"&&(W.value==="/"||W.value==="/=")&&D.tokens.pop()),D.tokens.push({type:"RegularExpression",value:$.literal,range:[h,v],loc:E})),$}function ke(h){return h.type===u.Identifier||h.type===u.Keyword||h.type===u.BooleanLiteral||h.type===u.NullLiteral}function Ve(){var h,E;if(h=D.tokens[D.tokens.length-1],!h)return St();if(h.type==="Punctuator"){if(h.value==="]")return we();if(h.value===")")return E=D.tokens[D.openParenToken-1],E&&E.type==="Keyword"&&(E.value==="if"||E.value==="while"||E.value==="for"||E.value==="with")?St():we();if(h.value==="}"){if(D.tokens[D.openCurlyToken-3]&&D.tokens[D.openCurlyToken-3].type==="Keyword"){if(E=D.tokens[D.openCurlyToken-4],!E)return we()}else if(D.tokens[D.openCurlyToken-4]&&D.tokens[D.openCurlyToken-4].type==="Keyword"){if(E=D.tokens[D.openCurlyToken-5],!E)return St()}else return we();return f.indexOf(E.value)>=0?we():St()}return St()}return h.type==="Keyword"?St():we()}function je(){var h;return J(),v>=x?{type:u.EOF,lineNumber:R,lineStart:N,start:v,end:v}:(h=A.charCodeAt(v),he(h)?Ke():h===40||h===41||h===59?we():h===39||h===34?Tt():h===46?Q(A.charCodeAt(v+1))?Le():we():Q(h)?Le():D.tokenize&&h===47?Ve():we())}function ct(){var h,E,$;return J(),h={start:{line:R,column:v-N}},E=je(),h.end={line:R,column:v-N},E.type!==u.EOF&&($=A.slice(E.start,E.end),D.tokens.push({type:l[E.type],value:$,range:[E.start,E.end],loc:h})),E}function Ae(){var h;return h=F,v=h.end,R=h.lineNumber,N=h.lineStart,F=typeof D.tokens<"u"?ct():je(),v=h.end,R=h.lineNumber,N=h.lineStart,h}function Mt(){var h,E,$;h=v,E=R,$=N,F=typeof D.tokens<"u"?ct():je(),v=h,R=E,N=$}function lt(h,E){this.line=h,this.column=E}function Me(h,E,$,W){this.start=new lt(h,E),this.end=new lt($,W)}_={name:"SyntaxTree",processComment:function(h){var E,$;if(!(h.type===d.Program&&h.body.length>0)){for(D.trailingComments.length>0?D.trailingComments[0].range[0]>=h.range[1]?($=D.trailingComments,D.trailingComments=[]):D.trailingComments.length=0:D.bottomRightStack.length>0&&D.bottomRightStack[D.bottomRightStack.length-1].trailingComments&&D.bottomRightStack[D.bottomRightStack.length-1].trailingComments[0].range[0]>=h.range[1]&&($=D.bottomRightStack[D.bottomRightStack.length-1].trailingComments,delete D.bottomRightStack[D.bottomRightStack.length-1].trailingComments);D.bottomRightStack.length>0&&D.bottomRightStack[D.bottomRightStack.length-1].range[0]>=h.range[0];)E=D.bottomRightStack.pop();E?E.leadingComments&&E.leadingComments[E.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=E.leadingComments,delete E.leadingComments):D.leadingComments.length>0&&D.leadingComments[D.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=D.leadingComments,D.leadingComments=[]),$&&(h.trailingComments=$),D.bottomRightStack.push(h)}},markEnd:function(h,E){return D.range&&(h.range=[E.start,v]),D.loc&&(h.loc=new Me(E.startLineNumber===void 0?E.lineNumber:E.startLineNumber,E.start-(E.startLineStart===void 0?E.lineStart:E.startLineStart),R,v-N),this.postProcess(h)),D.attachComment&&this.processComment(h),h},postProcess:function(h){return D.source&&(h.loc.source=D.source),h},createArrayExpression:function(h){return{type:d.ArrayExpression,elements:h}},createAssignmentExpression:function(h,E,$){return{type:d.AssignmentExpression,operator:h,left:E,right:$}},createBinaryExpression:function(h,E,$){var W=h==="||"||h==="&&"?d.LogicalExpression:d.BinaryExpression;return{type:W,operator:h,left:E,right:$}},createBlockStatement:function(h){return{type:d.BlockStatement,body:h}},createBreakStatement:function(h){return{type:d.BreakStatement,label:h}},createCallExpression:function(h,E){return{type:d.CallExpression,callee:h,arguments:E}},createCatchClause:function(h,E){return{type:d.CatchClause,param:h,body:E}},createConditionalExpression:function(h,E,$){return{type:d.ConditionalExpression,test:h,consequent:E,alternate:$}},createContinueStatement:function(h){return{type:d.ContinueStatement,label:h}},createDebuggerStatement:function(){return{type:d.DebuggerStatement}},createDoWhileStatement:function(h,E){return{type:d.DoWhileStatement,body:h,test:E}},createEmptyStatement:function(){return{type:d.EmptyStatement}},createExpressionStatement:function(h){return{type:d.ExpressionStatement,expression:h}},createForStatement:function(h,E,$,W){return{type:d.ForStatement,init:h,test:E,update:$,body:W}},createForInStatement:function(h,E,$){return{type:d.ForInStatement,left:h,right:E,body:$,each:!1}},createFunctionDeclaration:function(h,E,$,W){return{type:d.FunctionDeclaration,id:h,params:E,defaults:$,body:W,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(h,E,$,W){return{type:d.FunctionExpression,id:h,params:E,defaults:$,body:W,rest:null,generator:!1,expression:!1}},createIdentifier:function(h){return{type:d.Identifier,name:h}},createIfStatement:function(h,E,$){return{type:d.IfStatement,test:h,consequent:E,alternate:$}},createLabeledStatement:function(h,E){return{type:d.LabeledStatement,label:h,body:E}},createLiteral:function(h){return{type:d.Literal,value:h.value,raw:A.slice(h.start,h.end)}},createMemberExpression:function(h,E,$){return{type:d.MemberExpression,computed:h==="[",object:E,property:$}},createNewExpression:function(h,E){return{type:d.NewExpression,callee:h,arguments:E}},createObjectExpression:function(h){return{type:d.ObjectExpression,properties:h}},createPostfixExpression:function(h,E){return{type:d.UpdateExpression,operator:h,argument:E,prefix:!1}},createProgram:function(h){return{type:d.Program,body:h}},createProperty:function(h,E,$){return{type:d.Property,key:E,value:$,kind:h}},createReturnStatement:function(h){return{type:d.ReturnStatement,argument:h}},createSequenceExpression:function(h){return{type:d.SequenceExpression,expressions:h}},createSwitchCase:function(h,E){return{type:d.SwitchCase,test:h,consequent:E}},createSwitchStatement:function(h,E){return{type:d.SwitchStatement,discriminant:h,cases:E}},createThisExpression:function(){return{type:d.ThisExpression}},createThrowStatement:function(h){return{type:d.ThrowStatement,argument:h}},createTryStatement:function(h,E,$,W){return{type:d.TryStatement,block:h,guardedHandlers:E,handlers:$,finalizer:W}},createUnaryExpression:function(h,E){return h==="++"||h==="--"?{type:d.UpdateExpression,operator:h,argument:E,prefix:!0}:{type:d.UnaryExpression,operator:h,argument:E,prefix:!0}},createVariableDeclaration:function(h,E){return{type:d.VariableDeclaration,declarations:h,kind:E}},createVariableDeclarator:function(h,E){return{type:d.VariableDeclarator,id:h,init:E}},createWhileStatement:function(h,E){return{type:d.WhileStatement,test:h,body:E}},createWithStatement:function(h,E){return{type:d.WithStatement,object:h,body:E}}};function vt(){var h,E,$,W;return h=v,E=R,$=N,J(),W=R!==E,v=h,R=E,N=$,W}function xe(h,E){var $,W=Array.prototype.slice.call(arguments,2),ne=E.replace(/%(\d)/g,function(pe,Ge){return V(Ge<W.length,"Message reference must be in range"),W[Ge]});throw typeof h.lineNumber=="number"?($=new Error("Line "+h.lineNumber+": "+ne),$.index=h.start,$.lineNumber=h.lineNumber,$.column=h.start-N+1):($=new Error("Line "+R+": "+ne),$.index=v,$.lineNumber=R,$.column=v-N+1),$.description=ne,$}function Fe(){try{xe.apply(null,arguments)}catch(h){if(D.errors)D.errors.push(h);else throw h}}function Bt(h){if(h.type===u.EOF&&xe(h,p.UnexpectedEOS),h.type===u.NumericLiteral&&xe(h,p.UnexpectedNumber),h.type===u.StringLiteral&&xe(h,p.UnexpectedString),h.type===u.Identifier&&xe(h,p.UnexpectedIdentifier),h.type===u.Keyword){if(Ie(h.value))xe(h,p.UnexpectedReserved);else if(S&&Re(h.value)){Fe(h,p.StrictReservedWord);return}xe(h,p.UnexpectedToken,h.value)}xe(h,p.UnexpectedToken,h.value)}function T(h){var E=Ae();(E.type!==u.Punctuator||E.value!==h)&&Bt(E)}function y(h){var E=Ae();(E.type!==u.Keyword||E.value!==h)&&Bt(E)}function b(h){return F.type===u.Punctuator&&F.value===h}function L(h){return F.type===u.Keyword&&F.value===h}function q(){var h;return F.type!==u.Punctuator?!1:(h=F.value,h==="="||h==="*="||h==="/="||h==="%="||h==="+="||h==="-="||h==="<<="||h===">>="||h===">>>="||h==="&="||h==="^="||h==="|=")}function G(){var h;if(A.charCodeAt(v)===59||b(";")){Ae();return}h=R,J(),R===h&&F.type!==u.EOF&&!b("}")&&Bt(F)}function ee(h){return h.type===d.Identifier||h.type===d.MemberExpression}function Ue(){var h=[],E;for(E=F,T("[");!b("]");)b(",")?(Ae(),h.push(null)):(h.push(yn()),b("]")||T(","));return Ae(),O.markEnd(O.createArrayExpression(h),E)}function yt(h,E){var $,W,ne;return $=S,ne=F,W=ls(),E&&S&&Ce(h[0].name)&&Fe(E,p.StrictParamName),S=$,O.markEnd(O.createFunctionExpression(null,h,[],W),ne)}function ft(){var h,E;return E=F,h=Ae(),h.type===u.StringLiteral||h.type===u.NumericLiteral?(S&&h.octal&&Fe(h,p.StrictOctalLiteral),O.markEnd(O.createLiteral(h),E)):O.markEnd(O.createIdentifier(h.value),E)}function gt(){var h,E,$,W,ne,pe;if(h=F,pe=F,h.type===u.Identifier)return $=ft(),h.value==="get"&&!b(":")?(E=ft(),T("("),T(")"),W=yt([]),O.markEnd(O.createProperty("get",E,W),pe)):h.value==="set"&&!b(":")?(E=ft(),T("("),h=F,h.type!==u.Identifier?(T(")"),Fe(h,p.UnexpectedToken,h.value),W=yt([])):(ne=[Te()],T(")"),W=yt(ne,h)),O.markEnd(O.createProperty("set",E,W),pe)):(T(":"),W=yn(),O.markEnd(O.createProperty("init",$,W),pe));if(h.type===u.EOF||h.type===u.Punctuator)Bt(h);else return E=ft(),T(":"),W=yn(),O.markEnd(O.createProperty("init",E,W),pe)}function ot(){var h=[],E,$,W,ne,pe={},Ge=String,wt;for(wt=F,T("{");!b("}");)E=gt(),E.key.type===d.Identifier?$=E.key.name:$=Ge(E.key.value),ne=E.kind==="init"?g.Data:E.kind==="get"?g.Get:g.Set,W="$"+$,Object.prototype.hasOwnProperty.call(pe,W)?(pe[W]===g.Data?S&&ne===g.Data?Fe({},p.StrictDuplicateProperty):ne!==g.Data&&Fe({},p.AccessorDataProperty):ne===g.Data?Fe({},p.AccessorDataProperty):pe[W]&ne&&Fe({},p.AccessorGetSet),pe[W]|=ne):pe[W]=ne,h.push(E),b("}")||T(",");return T("}"),O.markEnd(O.createObjectExpression(h),wt)}function Kr(){var h;return T("("),h=M(),T(")"),h}function vi(){var h,E,$,W;if(b("("))return Kr();if(b("["))return Ue();if(b("{"))return ot();if(h=F.type,W=F,h===u.Identifier)$=O.createIdentifier(Ae().value);else if(h===u.StringLiteral||h===u.NumericLiteral)S&&F.octal&&Fe(F,p.StrictOctalLiteral),$=O.createLiteral(Ae());else if(h===u.Keyword){if(L("function"))return Gc();L("this")?(Ae(),$=O.createThisExpression()):Bt(Ae())}else h===u.BooleanLiteral?(E=Ae(),E.value=E.value==="true",$=O.createLiteral(E)):h===u.NullLiteral?(E=Ae(),E.value=null,$=O.createLiteral(E)):b("/")||b("/=")?(typeof D.tokens<"u"?$=O.createLiteral(St()):$=O.createLiteral(jt()),Mt()):Bt(Ae());return O.markEnd($,W)}function as(){var h=[];if(T("("),!b(")"))for(;v<x&&(h.push(yn()),!b(")"));)T(",");return T(")"),h}function us(){var h,E;return E=F,h=Ae(),ke(h)||Bt(h),O.markEnd(O.createIdentifier(h.value),E)}function cs(){return T("."),us()}function Hr(){var h;return T("["),h=M(),T("]"),h}function wi(){var h,E,$;return $=F,y("new"),h=ro(),E=b("(")?as():[],O.markEnd(O.createNewExpression(h,E),$)}function no(){var h,E,$,W,ne;for(ne=F,h=k.allowIn,k.allowIn=!0,E=L("new")?wi():vi(),k.allowIn=h;;){if(b("."))W=cs(),E=O.createMemberExpression(".",E,W);else if(b("("))$=as(),E=O.createCallExpression(E,$);else if(b("["))W=Hr(),E=O.createMemberExpression("[",E,W);else break;O.markEnd(E,ne)}return E}function ro(){var h,E,$,W;for(W=F,h=k.allowIn,E=L("new")?wi():vi(),k.allowIn=h;b(".")||b("[");)b("[")?($=Hr(),E=O.createMemberExpression("[",E,$)):($=cs(),E=O.createMemberExpression(".",E,$)),O.markEnd(E,W);return E}function _r(){var h,E,$=F;return h=no(),F.type===u.Punctuator&&(b("++")||b("--"))&&!vt()&&(S&&h.type===d.Identifier&&Ce(h.name)&&Fe({},p.StrictLHSPostfix),ee(h)||Fe({},p.InvalidLHSInAssignment),E=Ae(),h=O.markEnd(O.createPostfixExpression(E.value,h),$)),h}function rr(){var h,E,$;return F.type!==u.Punctuator&&F.type!==u.Keyword?E=_r():b("++")||b("--")?($=F,h=Ae(),E=rr(),S&&E.type===d.Identifier&&Ce(E.name)&&Fe({},p.StrictLHSPrefix),ee(E)||Fe({},p.InvalidLHSInAssignment),E=O.createUnaryExpression(h.value,E),E=O.markEnd(E,$)):b("+")||b("-")||b("~")||b("!")?($=F,h=Ae(),E=rr(),E=O.createUnaryExpression(h.value,E),E=O.markEnd(E,$)):L("delete")||L("void")||L("typeof")?($=F,h=Ae(),E=rr(),E=O.createUnaryExpression(h.value,E),E=O.markEnd(E,$),S&&E.operator==="delete"&&E.argument.type===d.Identifier&&Fe({},p.StrictDelete)):E=_r(),E}function zr(h,E){var $=0;if(h.type!==u.Punctuator&&h.type!==u.Keyword)return 0;switch(h.value){case"||":$=1;break;case"&&":$=2;break;case"|":$=3;break;case"^":$=4;break;case"&":$=5;break;case"==":case"!=":case"===":case"!==":$=6;break;case"<":case">":case"<=":case">=":case"instanceof":$=7;break;case"in":$=E?7:0;break;case"<<":case">>":case">>>":$=8;break;case"+":case"-":$=9;break;case"*":case"/":case"%":$=11;break}return $}function io(){var h,E,$,W,ne,pe,Ge,wt,tn,Jt;if(h=F,tn=rr(),W=F,ne=zr(W,k.allowIn),ne===0)return tn;for(W.prec=ne,Ae(),E=[h,F],Ge=rr(),pe=[tn,W,Ge];(ne=zr(F,k.allowIn))>0;){for(;pe.length>2&&ne<=pe[pe.length-2].prec;)Ge=pe.pop(),wt=pe.pop().value,tn=pe.pop(),$=O.createBinaryExpression(wt,tn,Ge),E.pop(),h=E[E.length-1],O.markEnd($,h),pe.push($);W=Ae(),W.prec=ne,pe.push(W),E.push(F),$=rr(),pe.push($)}for(Jt=pe.length-1,$=pe[Jt],E.pop();Jt>1;)$=O.createBinaryExpression(pe[Jt-1].value,pe[Jt-2],$),Jt-=2,h=E.pop(),O.markEnd($,h);return $}function so(){var h,E,$,W,ne;return ne=F,h=io(),b("?")&&(Ae(),E=k.allowIn,k.allowIn=!0,$=yn(),k.allowIn=E,T(":"),W=yn(),h=O.createConditionalExpression(h,$,W),O.markEnd(h,ne)),h}function yn(){var h,E,$,W,ne;return h=F,ne=F,W=E=so(),q()&&(ee(E)||Fe({},p.InvalidLHSInAssignment),S&&E.type===d.Identifier&&Ce(E.name)&&Fe(h,p.StrictLHSAssignment),h=Ae(),$=yn(),W=O.markEnd(O.createAssignmentExpression(h.value,E,$),ne)),W}function M(){var h,E=F;if(h=yn(),b(",")){for(h=O.createSequenceExpression([h]);v<x&&b(",");)Ae(),h.expressions.push(yn());O.markEnd(h,E)}return h}function ce(){for(var h=[],E;v<x&&!(b("}")||(E=Gr(),typeof E>"u"));)h.push(E);return h}function be(){var h,E;return E=F,T("{"),h=ce(),T("}"),O.markEnd(O.createBlockStatement(h),E)}function Te(){var h,E;return E=F,h=Ae(),h.type!==u.Identifier&&Bt(h),O.markEnd(O.createIdentifier(h.value),E)}function ht(h){var E=null,$,W;return W=F,$=Te(),S&&Ce($.name)&&Fe({},p.StrictVarName),h==="const"?(T("="),E=yn()):b("=")&&(Ae(),E=yn()),O.markEnd(O.createVariableDeclarator($,E),W)}function dt(h){var E=[];do{if(E.push(ht(h)),!b(","))break;Ae()}while(v<x);return E}function rt(){var h;return y("var"),h=dt(),G(),O.createVariableDeclaration(h,"var")}function Qe(h){var E,$;return $=F,y(h),E=dt(h),G(),O.markEnd(O.createVariableDeclaration(E,h),$)}function en(){return T(";"),O.createEmptyStatement()}function Dt(){var h=M();return G(),O.createExpressionStatement(h)}function Rt(){var h,E,$;return y("if"),T("("),h=M(),T(")"),E=Tn(),L("else")?(Ae(),$=Tn()):$=null,O.createIfStatement(h,E,$)}function fn(){var h,E,$;return y("do"),$=k.inIteration,k.inIteration=!0,h=Tn(),k.inIteration=$,y("while"),T("("),E=M(),T(")"),b(";")&&Ae(),O.createDoWhileStatement(h,E)}function kn(){var h,E,$;return y("while"),T("("),h=M(),T(")"),$=k.inIteration,k.inIteration=!0,E=Tn(),k.inIteration=$,O.createWhileStatement(h,E)}function ir(){var h,E,$;return $=F,h=Ae(),E=dt(),O.markEnd(O.createVariableDeclaration(E,h.value),$)}function Gt(){var h,E,$,W,ne,pe,Ge;return h=E=$=null,y("for"),T("("),b(";")?Ae():(L("var")||L("let")?(k.allowIn=!1,h=ir(),k.allowIn=!0,h.declarations.length===1&&L("in")&&(Ae(),W=h,ne=M(),h=null)):(k.allowIn=!1,h=M(),k.allowIn=!0,L("in")&&(ee(h)||Fe({},p.InvalidLHSInForIn),Ae(),W=h,ne=M(),h=null)),typeof W>"u"&&T(";")),typeof W>"u"&&(b(";")||(E=M()),T(";"),b(")")||($=M())),T(")"),Ge=k.inIteration,k.inIteration=!0,pe=Tn(),k.inIteration=Ge,typeof W>"u"?O.createForStatement(h,E,$,pe):O.createForInStatement(W,ne,pe)}function Ai(){var h=null,E;return y("continue"),A.charCodeAt(v)===59?(Ae(),k.inIteration||xe({},p.IllegalContinue),O.createContinueStatement(null)):vt()?(k.inIteration||xe({},p.IllegalContinue),O.createContinueStatement(null)):(F.type===u.Identifier&&(h=Te(),E="$"+h.name,Object.prototype.hasOwnProperty.call(k.labelSet,E)||xe({},p.UnknownLabel,h.name)),G(),h===null&&!k.inIteration&&xe({},p.IllegalContinue),O.createContinueStatement(h))}function oo(){var h=null,E;return y("break"),A.charCodeAt(v)===59?(Ae(),k.inIteration||k.inSwitch||xe({},p.IllegalBreak),O.createBreakStatement(null)):vt()?(k.inIteration||k.inSwitch||xe({},p.IllegalBreak),O.createBreakStatement(null)):(F.type===u.Identifier&&(h=Te(),E="$"+h.name,Object.prototype.hasOwnProperty.call(k.labelSet,E)||xe({},p.UnknownLabel,h.name)),G(),h===null&&!(k.inIteration||k.inSwitch)&&xe({},p.IllegalBreak),O.createBreakStatement(h))}function ao(){var h=null;return y("return"),k.inFunctionBody||Fe({},p.IllegalReturn),A.charCodeAt(v)===32&&he(A.charCodeAt(v+1))?(h=M(),G(),O.createReturnStatement(h)):vt()?O.createReturnStatement(null):(b(";")||!b("}")&&F.type!==u.EOF&&(h=M()),G(),O.createReturnStatement(h))}function Ca(){var h,E;return S&&(J(),Fe({},p.StrictModeWith)),y("with"),T("("),h=M(),T(")"),E=Tn(),O.createWithStatement(h,E)}function _a(){var h,E=[],$,W;for(W=F,L("default")?(Ae(),h=null):(y("case"),h=M()),T(":");v<x&&!(b("}")||L("default")||L("case"));)$=Tn(),E.push($);return O.markEnd(O.createSwitchCase(h,E),W)}function ka(){var h,E,$,W,ne;if(y("switch"),T("("),h=M(),T(")"),T("{"),E=[],b("}"))return Ae(),O.createSwitchStatement(h,E);for(W=k.inSwitch,k.inSwitch=!0,ne=!1;v<x&&!b("}");)$=_a(),$.test===null&&(ne&&xe({},p.MultipleDefaultsInSwitch),ne=!0),E.push($);return k.inSwitch=W,T("}"),O.createSwitchStatement(h,E)}function Wc(){var h;return y("throw"),vt()&&xe({},p.NewlineAfterThrow),h=M(),G(),O.createThrowStatement(h)}function Kc(){var h,E,$;return $=F,y("catch"),T("("),b(")")&&Bt(F),h=Te(),S&&Ce(h.name)&&Fe({},p.StrictCatchVariable),T(")"),E=be(),O.markEnd(O.createCatchClause(h,E),$)}function Hc(){var h,E=[],$=null;return y("try"),h=be(),L("catch")&&E.push(Kc()),L("finally")&&(Ae(),$=be()),E.length===0&&!$&&xe({},p.NoCatchOrFinally),O.createTryStatement(h,[],E,$)}function zc(){return y("debugger"),G(),O.createDebuggerStatement()}function Tn(){var h=F.type,E,$,W,ne;if(h===u.EOF&&Bt(F),h===u.Punctuator&&F.value==="{")return be();if(ne=F,h===u.Punctuator)switch(F.value){case";":return O.markEnd(en(),ne);case"(":return O.markEnd(Dt(),ne)}if(h===u.Keyword)switch(F.value){case"break":return O.markEnd(oo(),ne);case"continue":return O.markEnd(Ai(),ne);case"debugger":return O.markEnd(zc(),ne);case"do":return O.markEnd(fn(),ne);case"for":return O.markEnd(Gt(),ne);case"function":return O.markEnd(fs(),ne);case"if":return O.markEnd(Rt(),ne);case"return":return O.markEnd(ao(),ne);case"switch":return O.markEnd(ka(),ne);case"throw":return O.markEnd(Wc(),ne);case"try":return O.markEnd(Hc(),ne);case"var":return O.markEnd(rt(),ne);case"while":return O.markEnd(kn(),ne);case"with":return O.markEnd(Ca(),ne)}return E=M(),E.type===d.Identifier&&b(":")?(Ae(),W="$"+E.name,Object.prototype.hasOwnProperty.call(k.labelSet,W)&&xe({},p.Redeclaration,"Label",E.name),k.labelSet[W]=!0,$=Tn(),delete k.labelSet[W],O.markEnd(O.createLabeledStatement(E,$),ne)):(G(),O.markEnd(O.createExpressionStatement(E),ne))}function ls(){var h,E=[],$,W,ne,pe,Ge,wt,tn,Jt;for(Jt=F,T("{");v<x&&!(F.type!==u.StringLiteral||($=F,h=Gr(),E.push(h),h.expression.type!==d.Literal));)W=A.slice($.start+1,$.end-1),W==="use strict"?(S=!0,ne&&Fe(ne,p.StrictOctalLiteral)):!ne&&$.octal&&(ne=$);for(pe=k.labelSet,Ge=k.inIteration,wt=k.inSwitch,tn=k.inFunctionBody,k.labelSet={},k.inIteration=!1,k.inSwitch=!1,k.inFunctionBody=!0;v<x&&!(b("}")||(h=Gr(),typeof h>"u"));)E.push(h);return T("}"),k.labelSet=pe,k.inIteration=Ge,k.inSwitch=wt,k.inFunctionBody=tn,O.markEnd(O.createBlockStatement(E),Jt)}function uo(h){var E,$=[],W,ne,pe,Ge,wt;if(T("("),!b(")"))for(pe={};v<x&&(W=F,E=Te(),Ge="$"+W.value,S?(Ce(W.value)&&(ne=W,wt=p.StrictParamName),Object.prototype.hasOwnProperty.call(pe,Ge)&&(ne=W,wt=p.StrictParamDupe)):h||(Ce(W.value)?(h=W,wt=p.StrictParamName):Re(W.value)?(h=W,wt=p.StrictReservedWord):Object.prototype.hasOwnProperty.call(pe,Ge)&&(h=W,wt=p.StrictParamDupe)),$.push(E),pe[Ge]=!0,!b(")"));)T(",");return T(")"),{params:$,stricted:ne,firstRestricted:h,message:wt}}function fs(){var h,E=[],$,W,ne,pe,Ge,wt,tn,Jt;return Jt=F,y("function"),W=F,h=Te(),S?Ce(W.value)&&Fe(W,p.StrictFunctionName):Ce(W.value)?(Ge=W,wt=p.StrictFunctionName):Re(W.value)&&(Ge=W,wt=p.StrictReservedWord),pe=uo(Ge),E=pe.params,ne=pe.stricted,Ge=pe.firstRestricted,pe.message&&(wt=pe.message),tn=S,$=ls(),S&&Ge&&xe(Ge,wt),S&&ne&&Fe(ne,wt),S=tn,O.markEnd(O.createFunctionDeclaration(h,E,[],$),Jt)}function Gc(){var h,E=null,$,W,ne,pe,Ge=[],wt,tn,Jt;return Jt=F,y("function"),b("(")||(h=F,E=Te(),S?Ce(h.value)&&Fe(h,p.StrictFunctionName):Ce(h.value)?(W=h,ne=p.StrictFunctionName):Re(h.value)&&(W=h,ne=p.StrictReservedWord)),pe=uo(W),Ge=pe.params,$=pe.stricted,W=pe.firstRestricted,pe.message&&(ne=pe.message),tn=S,wt=ls(),S&&W&&xe(W,ne),S&&$&&Fe($,ne),S=tn,O.markEnd(O.createFunctionExpression(E,Ge,[],wt),Jt)}function Gr(){if(F.type===u.Keyword)switch(F.value){case"const":case"let":return Qe(F.value);case"function":return fs();default:return Tn()}if(F.type!==u.EOF)return Tn()}function hs(){for(var h,E=[],$,W,ne;v<x&&($=F,!($.type!==u.StringLiteral||(h=Gr(),E.push(h),h.expression.type!==d.Literal)));)W=A.slice($.start+1,$.end-1),W==="use strict"?(S=!0,ne&&Fe(ne,p.StrictOctalLiteral)):!ne&&$.octal&&(ne=$);for(;v<x&&(h=Gr(),!(typeof h>"u"));)E.push(h);return E}function Ta(){var h,E;return J(),Mt(),E=F,S=!1,h=hs(),O.markEnd(O.createProgram(h),E)}function Oa(){var h,E,$,W=[];for(h=0;h<D.tokens.length;++h)E=D.tokens[h],$={type:E.type,value:E.value},D.range&&($.range=E.range),D.loc&&($.loc=E.loc),W.push($);D.tokens=W}function Ia(h,E){var $,W,ne;$=String,typeof h!="string"&&!(h instanceof String)&&(h=$(h)),O=_,A=h,v=0,R=A.length>0?1:0,N=0,x=A.length,F=null,k={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},D={},E=E||{},E.tokens=!0,D.tokens=[],D.tokenize=!0,D.openParenToken=-1,D.openCurlyToken=-1,D.range=typeof E.range=="boolean"&&E.range,D.loc=typeof E.loc=="boolean"&&E.loc,typeof E.comment=="boolean"&&E.comment&&(D.comments=[]),typeof E.tolerant=="boolean"&&E.tolerant&&(D.errors=[]);try{if(Mt(),F.type===u.EOF)return D.tokens;for(W=Ae();F.type!==u.EOF;)try{W=Ae()}catch(pe){if(W=F,D.errors){D.errors.push(pe);break}else throw pe}Oa(),ne=D.tokens,typeof D.comments<"u"&&(ne.comments=D.comments),typeof D.errors<"u"&&(ne.errors=D.errors)}catch(pe){throw pe}finally{D={}}return ne}function Fa(h,E){var $,W;W=String,typeof h!="string"&&!(h instanceof String)&&(h=W(h)),O=_,A=h,v=0,R=A.length>0?1:0,N=0,x=A.length,F=null,k={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},D={},typeof E<"u"&&(D.range=typeof E.range=="boolean"&&E.range,D.loc=typeof E.loc=="boolean"&&E.loc,D.attachComment=typeof E.attachComment=="boolean"&&E.attachComment,D.loc&&E.source!==null&&E.source!==void 0&&(D.source=W(E.source)),typeof E.tokens=="boolean"&&E.tokens&&(D.tokens=[]),typeof E.comment=="boolean"&&E.comment&&(D.comments=[]),typeof E.tolerant=="boolean"&&E.tolerant&&(D.errors=[]),D.attachComment&&(D.range=!0,D.comments=[],D.bottomRightStack=[],D.trailingComments=[],D.leadingComments=[]));try{$=Ta(),typeof D.comments<"u"&&($.comments=D.comments),typeof D.tokens<"u"&&(Oa(),$.tokens=D.tokens),typeof D.errors<"u"&&($.errors=D.errors)}catch(ne){throw ne}finally{D={}}return $}a.version="1.2.2",a.tokenize=Ia,a.parse=Fa,a.Syntax=function(){var h,E={};typeof Object.create=="function"&&(E=Object.create(null));for(h in d)d.hasOwnProperty(h)&&(E[h]=d[h]);return typeof Object.freeze=="function"&&Object.freeze(E),E}()})},{}],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(w,_,A,S,v,R,N){S.ast||(S.ast=f,f.initialize());var x=R.length-1;switch(v){case 1:return S.ast.set({expression:{type:"root",value:R[x]}}),S.ast.unshift(),S.ast.yield();case 2:return S.ast.set({expression:{type:"root",value:R[x-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:R[x-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:R[x]}});break;case 15:S.ast.set({expression:{type:"identifier",value:R[x]}});break;case 16:S.ast.set({expression:{type:"script_expression",value:R[x]}});break;case 17:S.ast.set({expression:{type:"numeric_literal",value:parseInt(R[x])}});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:R[x].length>1?S.ast.set({expression:{type:"union",value:R[x]}}):this.$=R[x];break;case 25:this.$=[R[x]];break;case 26:this.$=R[x-2].concat(R[x]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(R[x])}},S.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:R[x]}},S.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:R[x]}},S.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:R[x]}},S.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:R[x]}},S.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:R[x]}},S.ast.set(this.$);break;case 33:this.$=R[x];break;case 34:this.$=R[x];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(w,_){if(_.recoverable)this.trace(w);else throw new Error(w)},parse:function(w){var _=this,A=[0],S=[null],v=[],R=this.table,N="",x=0,O=0,F=2,k=1,D=v.slice.call(arguments,1);this.lexer.setInput(w),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var V=this.lexer.yylloc;v.push(V);var Q=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=_.lexer.lex()||k,typeof ye!="number"&&(ye=_.symbols_[ye]||ye),ye}for(var le,ge,me,he,de={},Ie,Re,Ce,ze;;){if(ge=A[A.length-1],this.defaultActions[ge]?me=this.defaultActions[ge]:((le===null||typeof le>"u")&&(le=fe()),me=R[ge]&&R[ge][le]),typeof me>"u"||!me.length||!me[0]){var Se="";ze=[];for(Ie in R[ge])this.terminals_[Ie]&&Ie>F&&ze.push("'"+this.terminals_[Ie]+"'");this.lexer.showPosition?Se="Parse error on line "+(x+1)+`:
221
+ `,Kh=({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)})},Hh=e=>Object.entries(e).every(([,t])=>t===null||typeof t!="object"),zh=({columns:e,additionalPrinterColumnsUndefinedValues:t,additionalPrinterColumnsTrimLengths:n,additionalPrinterColumnsColWidths:i})=>{if(e)return e.map(o=>{const a=t?.find(({key:f})=>f===o.key)?.value,u=n?.find(({key:f})=>f===o.key)?.value,l=i?.find(({key:f})=>f===o.key)?.value;return{...o,render:f=>typeof f=="object"&&!Array.isArray(f)?Hh(f)?A.jsx(Kh,{tags:Object.entries(f).map(([d,g])=>`${d}: ${String(g)}`),trimLength:u}):A.jsx(zi,{trimLength:u,text:JSON.stringify(f)}):Array.isArray(f)?f.every(d=>d&&!Array.isArray(d))?A.jsx(Kh,{tags:f.map(d=>d.toLocaleString()),trimLength:u}):A.jsx(zi,{trimLength:u,text:f.join(", ")}):typeof f=="boolean"?f?A.jsx(Mt.CheckOutlined,{style:{color:"green"}}):A.jsx(Mt.CloseOutlined,{style:{color:"red"}}):typeof f=="number"?A.jsx(zi,{trimLength:u,text:String(f)}):typeof f=="string"?A.jsx(zi,{trimLength:u,text:f}):f===void 0&&o.key&&t&&a?A.jsx(zi,{trimLength:u,text:a}):A.jsx(zi,{trimLength:u,text:`Raw: ${JSON.stringify(f)}`}),width:l,filterDropdown:({setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:v})=>A.jsx(u2,{setSelectedKeys:f,selectedKeys:d,confirm:g,clearFilters:p,close:v}),filterIcon:f=>A.jsx(Mt.SearchOutlined,{style:{color:f?"#1677ff":void 0}}),onFilter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?pi.get(d,g):d[g];if(typeof p=="object"&&!Array.isArray(p))return JSON.stringify(p).toLowerCase().includes(f.toLowerCase());if(Array.isArray(p))return p.some(v=>v.toLowerCase().includes(f.toLowerCase()));if(typeof p=="boolean"){const v=f.toLowerCase()==="true";return p===v}return typeof p=="number"?String(p).includes(f.toLowerCase()):typeof p=="string"?p.toLowerCase().includes(f.toLowerCase()):!1},sorter:(f,d)=>{const{dataIndex:g}=o,p=Array.isArray(g)?pi.get(f,g):f[g],v=Array.isArray(g)?pi.get(d,g):d[g];return typeof p=="object"&&!Array.isArray(p)&&p!==null?typeof v=="object"&&!Array.isArray(v)&&v!==null?Object.keys(p).length-Object.keys(v).length:Object.keys(p).length?-1:1:Array.isArray(p)?Array.isArray(v)?p.length-v.length:p.length?-1:1:typeof p=="boolean"?p===v?0:p?-1:1:typeof p=="number"?typeof v=="number"?p-v:p?-1:1:typeof p=="string"?typeof v=="string"?p.localeCompare(v):p?-1:1:0}}})},Gh=({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(f2,{$align:"right",className:"hideable",children:[A.jsx(Wh,{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(Mt.EditOutlined,{size:14}),disabled:!a.permissions.canUpdate}),A.jsx(Wh,{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(Mt.DeleteOutlined,{size:14}),disabled:!a.permissions.canDelete})]})}]},Jh=({theme:e,baseprefix:t,dataSource:n,columns:i,pathToNavigate:o,recordKeysForNavigation:a,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f,selectData:d,withoutControls:g=!1,tableProps:p})=>{const v=Qn.useNavigate();if(!i)return null;const _=zh({columns:i,additionalPrinterColumnsUndefinedValues:u,additionalPrinterColumnsTrimLengths:l,additionalPrinterColumnsColWidths:f});if(!_)return null;const S=g?_:Gh({enrichedColumns:_,navigate:v,baseprefix:t,editIcon:p?.editIcon,deleteIcon:p?.deleteIcon});if(!S)return null;const E=b=>`Total: ${b}`;return A.jsx(qh.TableContainer,{$isDark:e==="dark",$isCursorPointer:!!o,$borderless:p?.borderless,$isTotalLeft:p?.isTotalLeft,children:A.jsx(qh.HideableControls,{children:A.jsx(q.Table,{dataSource:n,columns:S,pagination:{position:p?.paginationPosition||["bottomLeft"],showSizeChanger:!0,defaultPageSize:10,hideOnSinglePage:!1,showTotal:E},scroll:{x:"max-content"},rowSelection:d?{type:"checkbox",selectedRowKeys:d.selectedRowKeys,onChange:(b,D)=>{d.onChange(b,D.map(({internalDataForControls:j})=>({name:j.entryName,endpoint:`${j.deletePathPrefix}/${j.apiGroupAndVersion}${j.namespace?`/namespaces/${j.namespace}`:""}/${j.typeName}/${j.entryName}`})))}}:void 0,onRow:b=>({onClick:()=>{if(o&&a){const D=pi.get(b,a),j=typeof D=="string"?D:JSON.stringify(D),C=o.replaceAll("~recordValue~",j);v(C)}}})})})})};function ta(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Yh={exports:{}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,o,a){function u(d,g){if(!o[d]){if(!i[d]){var p=typeof ta=="function"&&ta;if(!g&&p)return p(d,!0);if(l)return l(d,!0);var v=new Error("Cannot find module '"+d+"'");throw v.code="MODULE_NOT_FOUND",v}var _=o[d]={exports:{}};i[d][0].call(_.exports,function(S){var E=i[d][1][S];return u(E||S)},_,_.exports,n,i,o,a)}return o[d].exports}for(var l=typeof ta=="function"&&ta,f=0;f<a.length;f++)u(a[f]);return u}({"./aesprim":[function(n,i,o){(function(a,u){u(typeof o<"u"?o:a.esprima={})})(this,function(a){var u,l,f,d,g,p,v,_,S,E,b,D,j,C,T,F,P,O;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},l={},l[u.BooleanLiteral]="Boolean",l[u.EOF]="<end>",l[u.Identifier]="Identifier",l[u.Keyword]="Keyword",l[u.NullLiteral]="Null",l[u.NumericLiteral]="Numeric",l[u.Punctuator]="Punctuator",l[u.StringLiteral]="String",l[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],d={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},g={Data:1,Get:2,Set:4},p={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},v={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function W(h,x){if(!h)throw new Error("ASSERT: "+x)}function Y(h){return h>=48&&h<=57}function ce(h){return"0123456789abcdefABCDEF".indexOf(h)>=0}function le(h){return"01234567".indexOf(h)>=0}function ge(h){return h===32||h===9||h===11||h===12||h===160||h>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(h)>=0}function ye(h){return h===10||h===13||h===8232||h===8233}function 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 Re(h){switch(h){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function Se(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 Ee(h){return h==="eval"||h==="arguments"}function He(h){if(E&&Se(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,N,K,ne){var de;W(typeof N=="number","Comment must have valid position"),!(P.lastCommentStart>=N)&&(P.lastCommentStart=N,de={type:h,value:x},O.range&&(de.range=[N,K]),O.loc&&(de.loc=ne),O.comments.push(de),O.attachComment&&(O.leadingComments.push(de),O.trailingComments.push(de)))}function me(h){var x,N,K,ne;for(x=b-h,N={start:{line:D,column:b-j-h}};b<C;)if(K=S.charCodeAt(b),++b,ye(K)){O.comments&&(ne=S.slice(x+h,b-1),N.end={line:D,column:b-j-1},Ae("Line",ne,x,b-1,N)),K===13&&S.charCodeAt(b)===10&&++b,++D,j=b;return}O.comments&&(ne=S.slice(x+h,b),N.end={line:D,column:b-j},Ae("Line",ne,x,b,N))}function Me(){var h,x,N,K;for(O.comments&&(h=b-2,x={start:{line:D,column:b-j-2}});b<C;)if(N=S.charCodeAt(b),ye(N))N===13&&S.charCodeAt(b+1)===10&&++b,++D,++b,j=b,b>=C&&we({},p.UnexpectedToken,"ILLEGAL");else if(N===42){if(S.charCodeAt(b+1)===47){++b,++b,O.comments&&(K=S.slice(h+2,b-2),x.end={line:D,column:b-j},Ae("Block",K,h,b,x));return}++b}else++b;we({},p.UnexpectedToken,"ILLEGAL")}function J(){var h,x;for(x=b===0;b<C;)if(h=S.charCodeAt(b),ge(h))++b;else if(ye(h))++b,h===13&&S.charCodeAt(b)===10&&++b,++D,j=b,x=!0;else if(h===47)if(h=S.charCodeAt(b+1),h===47)++b,++b,me(2),x=!0;else if(h===42)++b,++b,Me();else break;else if(x&&h===45)if(S.charCodeAt(b+1)===45&&S.charCodeAt(b+2)===62)b+=3,me(3);else break;else if(h===60)if(S.slice(b+1,b+4)==="!--")++b,++b,++b,++b,me(4);else break;else break}function X(h){var x,N,K,ne=0;for(N=h==="u"?4:2,x=0;x<N;++x)if(b<C&&ce(S[b]))K=S[b++],ne=ne*16+"0123456789abcdef".indexOf(K.toLowerCase());else return"";return String.fromCharCode(ne)}function ae(){var h,x;for(h=S.charCodeAt(b++),x=String.fromCharCode(h),h===92&&(S.charCodeAt(b)!==117&&we({},p.UnexpectedToken,"ILLEGAL"),++b,h=X("u"),(!h||h==="\\"||!Ce(h.charCodeAt(0)))&&we({},p.UnexpectedToken,"ILLEGAL"),x=h);b<C&&(h=S.charCodeAt(b),!!pe(h));)++b,x+=String.fromCharCode(h),h===92&&(x=x.substr(0,x.length-1),S.charCodeAt(b)!==117&&we({},p.UnexpectedToken,"ILLEGAL"),++b,h=X("u"),(!h||h==="\\"||!pe(h.charCodeAt(0)))&&we({},p.UnexpectedToken,"ILLEGAL"),x+=h);return x}function Be(){var h,x;for(h=b++;b<C;){if(x=S.charCodeAt(b),x===92)return b=h,ae();if(pe(x))++b;else break}return S.slice(h,b)}function We(){var h,x,N;return h=b,x=S.charCodeAt(b)===92?ae():Be(),x.length===1?N=u.Identifier:He(x)?N=u.Keyword:x==="null"?N=u.NullLiteral:x==="true"||x==="false"?N=u.BooleanLiteral:N=u.Identifier,{type:N,value:x,lineNumber:D,lineStart:j,start:h,end:b}}function _e(){var h=b,x=S.charCodeAt(b),N,K=S[b],ne,de,ze;switch(x){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++b,O.tokenize&&(x===40?O.openParenToken=O.tokens.length:x===123&&(O.openCurlyToken=O.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(x),lineNumber:D,lineStart:j,start:h,end:b};default:if(N=S.charCodeAt(b+1),N===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(N),lineNumber:D,lineStart:j,start:h,end:b};case 33:case 61:return b+=2,S.charCodeAt(b)===61&&++b,{type:u.Punctuator,value:S.slice(h,b),lineNumber:D,lineStart:j,start:h,end:b}}}if(ze=S.substr(b,4),ze===">>>=")return b+=4,{type:u.Punctuator,value:ze,lineNumber:D,lineStart:j,start:h,end:b};if(de=ze.substr(0,3),de===">>>"||de==="<<="||de===">>=")return b+=3,{type:u.Punctuator,value:de,lineNumber:D,lineStart:j,start:h,end:b};if(ne=de.substr(0,2),K===ne[1]&&"+-<>&|".indexOf(K)>=0||ne==="=>")return b+=2,{type:u.Punctuator,value:ne,lineNumber:D,lineStart:j,start:h,end:b};if("<>=!+-*%&|^/".indexOf(K)>=0)return++b,{type:u.Punctuator,value:K,lineNumber:D,lineStart:j,start:h,end:b};we({},p.UnexpectedToken,"ILLEGAL")}function De(h){for(var x="";b<C&&ce(S[b]);)x+=S[b++];return x.length===0&&we({},p.UnexpectedToken,"ILLEGAL"),Ce(S.charCodeAt(b))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+x,16),lineNumber:D,lineStart:j,start:h,end:b}}function Oe(h){for(var x="0"+S[b++];b<C&&le(S[b]);)x+=S[b++];return(Ce(S.charCodeAt(b))||Y(S.charCodeAt(b)))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(x,8),octal:!0,lineNumber:D,lineStart:j,start:h,end:b}}function Le(){var h,x,N;if(N=S[b],W(Y(N.charCodeAt(0))||N===".","Numeric literal must start with a decimal digit or a decimal point"),x=b,h="",N!=="."){if(h=S[b++],N=S[b],h==="0"){if(N==="x"||N==="X")return++b,De(x);if(le(N))return Oe(x);N&&Y(N.charCodeAt(0))&&we({},p.UnexpectedToken,"ILLEGAL")}for(;Y(S.charCodeAt(b));)h+=S[b++];N=S[b]}if(N==="."){for(h+=S[b++];Y(S.charCodeAt(b));)h+=S[b++];N=S[b]}if(N==="e"||N==="E")if(h+=S[b++],N=S[b],(N==="+"||N==="-")&&(h+=S[b++]),Y(S.charCodeAt(b)))for(;Y(S.charCodeAt(b));)h+=S[b++];else we({},p.UnexpectedToken,"ILLEGAL");return Ce(S.charCodeAt(b))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(h),lineNumber:D,lineStart:j,start:x,end:b}}function Tt(){var h="",x,N,K,ne,de,ze,mt=!1,Zt,zt;for(Zt=D,zt=j,x=S[b],W(x==="'"||x==='"',"String literal must starts with a quote"),N=b,++b;b<C;)if(K=S[b++],K===x){x="";break}else if(K==="\\")if(K=S[b++],!K||!ye(K.charCodeAt(0)))switch(K){case"u":case"x":ze=b,de=X(K),de?h+=de:(b=ze,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&&(mt=!0),b<C&&le(S[b])&&(mt=!0,ne=ne*8+"01234567".indexOf(S[b++]),"0123".indexOf(K)>=0&&b<C&&le(S[b])&&(ne=ne*8+"01234567".indexOf(S[b++]))),h+=String.fromCharCode(ne)):h+=K;break}else++D,K==="\r"&&S[b]===`
223
+ `&&++b,j=b;else{if(ye(K.charCodeAt(0)))break;h+=K}return x!==""&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:h,octal:mt,startLineNumber:Zt,startLineStart:zt,lineNumber:D,lineStart:j,start:N,end:b}}function rn(h,x){var N;try{N=new RegExp(h,x)}catch{we({},p.InvalidRegExp)}return N}function Lt(){var h,x,N,K,ne;for(h=S[b],W(h==="/","Regular expression literal must start with a slash"),x=S[b++],N=!1,K=!1;b<C;)if(h=S[b++],x+=h,h==="\\")h=S[b++],ye(h.charCodeAt(0))&&we({},p.UnterminatedRegExp),x+=h;else if(ye(h.charCodeAt(0)))we({},p.UnterminatedRegExp);else if(N)h==="]"&&(N=!1);else if(h==="/"){K=!0;break}else h==="["&&(N=!0);return K||we({},p.UnterminatedRegExp),ne=x.substr(1,x.length-2),{value:ne,literal:x}}function jt(){var h,x,N,K;for(x="",N="";b<C&&(h=S[b],!!pe(h.charCodeAt(0)));)if(++b,h==="\\"&&b<C)if(h=S[b],h==="u"){if(++b,K=b,h=X("u"),h)for(N+=h,x+="\\u";K<b;++K)x+=S[K];else b=K,N+="u",x+="\\u";Te({},p.UnexpectedToken,"ILLEGAL")}else x+="\\",Te({},p.UnexpectedToken,"ILLEGAL");else N+=h,x+=h;return{value:N,literal:x}}function Nt(){var h,x,N,K;return F=null,J(),h=b,x=Lt(),N=jt(),K=rn(x.value,N.value),O.tokenize?{type:u.RegularExpression,value:K,lineNumber:D,lineStart:j,start:h,end:b}:{literal:x.literal+N.literal,value:K,start:h,end:b}}function bt(){var h,x,N,K;return J(),h=b,x={start:{line:D,column:b-j}},N=Nt(),x.end={line:D,column:b-j},O.tokenize||(O.tokens.length>0&&(K=O.tokens[O.tokens.length-1],K.range[0]===h&&K.type==="Punctuator"&&(K.value==="/"||K.value==="/=")&&O.tokens.pop()),O.tokens.push({type:"RegularExpression",value:N.literal,range:[h,b],loc:x})),N}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=O.tokens[O.tokens.length-1],!h)return bt();if(h.type==="Punctuator"){if(h.value==="]")return _e();if(h.value===")")return x=O.tokens[O.openParenToken-1],x&&x.type==="Keyword"&&(x.value==="if"||x.value==="while"||x.value==="for"||x.value==="with")?bt():_e();if(h.value==="}"){if(O.tokens[O.openCurlyToken-3]&&O.tokens[O.openCurlyToken-3].type==="Keyword"){if(x=O.tokens[O.openCurlyToken-4],!x)return _e()}else if(O.tokens[O.openCurlyToken-4]&&O.tokens[O.openCurlyToken-4].type==="Keyword"){if(x=O.tokens[O.openCurlyToken-5],!x)return bt()}else return _e();return f.indexOf(x.value)>=0?_e():bt()}return bt()}return h.type==="Keyword"?bt():_e()}function ke(){var h;return J(),b>=C?{type:u.EOF,lineNumber:D,lineStart:j,start:b,end:b}:(h=S.charCodeAt(b),Ce(h)?We():h===40||h===41||h===59?_e():h===39||h===34?Tt():h===46?Y(S.charCodeAt(b+1))?Le():_e():Y(h)?Le():O.tokenize&&h===47?An():_e())}function Pe(){var h,x,N;return J(),h={start:{line:D,column:b-j}},x=ke(),h.end={line:D,column:b-j},x.type!==u.EOF&&(N=S.slice(x.start,x.end),O.tokens.push({type:l[x.type],value:N,range:[x.start,x.end],loc:h})),x}function he(){var h;return h=F,b=h.end,D=h.lineNumber,j=h.lineStart,F=typeof O.tokens<"u"?Pe():ke(),b=h.end,D=h.lineNumber,j=h.lineStart,h}function At(){var h,x,N;h=b,x=D,N=j,F=typeof O.tokens<"u"?Pe():ke(),b=h,D=x,j=N}function St(h,x){this.line=h,this.column=x}function Et(h,x,N,K){this.start=new St(h,x),this.end=new St(N,K)}_={name:"SyntaxTree",processComment:function(h){var x,N;if(!(h.type===d.Program&&h.body.length>0)){for(O.trailingComments.length>0?O.trailingComments[0].range[0]>=h.range[1]?(N=O.trailingComments,O.trailingComments=[]):O.trailingComments.length=0:O.bottomRightStack.length>0&&O.bottomRightStack[O.bottomRightStack.length-1].trailingComments&&O.bottomRightStack[O.bottomRightStack.length-1].trailingComments[0].range[0]>=h.range[1]&&(N=O.bottomRightStack[O.bottomRightStack.length-1].trailingComments,delete O.bottomRightStack[O.bottomRightStack.length-1].trailingComments);O.bottomRightStack.length>0&&O.bottomRightStack[O.bottomRightStack.length-1].range[0]>=h.range[0];)x=O.bottomRightStack.pop();x?x.leadingComments&&x.leadingComments[x.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=x.leadingComments,delete x.leadingComments):O.leadingComments.length>0&&O.leadingComments[O.leadingComments.length-1].range[1]<=h.range[0]&&(h.leadingComments=O.leadingComments,O.leadingComments=[]),N&&(h.trailingComments=N),O.bottomRightStack.push(h)}},markEnd:function(h,x){return O.range&&(h.range=[x.start,b]),O.loc&&(h.loc=new Et(x.startLineNumber===void 0?x.lineNumber:x.startLineNumber,x.start-(x.startLineStart===void 0?x.lineStart:x.startLineStart),D,b-j),this.postProcess(h)),O.attachComment&&this.processComment(h),h},postProcess:function(h){return O.source&&(h.loc.source=O.source),h},createArrayExpression:function(h){return{type:d.ArrayExpression,elements:h}},createAssignmentExpression:function(h,x,N){return{type:d.AssignmentExpression,operator:h,left:x,right:N}},createBinaryExpression:function(h,x,N){var K=h==="||"||h==="&&"?d.LogicalExpression:d.BinaryExpression;return{type:K,operator:h,left:x,right:N}},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,N){return{type:d.ConditionalExpression,test:h,consequent:x,alternate:N}},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,N,K){return{type:d.ForStatement,init:h,test:x,update:N,body:K}},createForInStatement:function(h,x,N){return{type:d.ForInStatement,left:h,right:x,body:N,each:!1}},createFunctionDeclaration:function(h,x,N,K){return{type:d.FunctionDeclaration,id:h,params:x,defaults:N,body:K,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(h,x,N,K){return{type:d.FunctionExpression,id:h,params:x,defaults:N,body:K,rest:null,generator:!1,expression:!1}},createIdentifier:function(h){return{type:d.Identifier,name:h}},createIfStatement:function(h,x,N){return{type:d.IfStatement,test:h,consequent:x,alternate:N}},createLabeledStatement:function(h,x){return{type:d.LabeledStatement,label:h,body:x}},createLiteral:function(h){return{type:d.Literal,value:h.value,raw:S.slice(h.start,h.end)}},createMemberExpression:function(h,x,N){return{type:d.MemberExpression,computed:h==="[",object:x,property:N}},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,N){return{type:d.Property,key:x,value:N,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,N,K){return{type:d.TryStatement,block:h,guardedHandlers:x,handlers:N,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,N,K;return h=b,x=D,N=j,J(),K=D!==x,b=h,D=x,j=N,K}function we(h,x){var N,K=Array.prototype.slice.call(arguments,2),ne=x.replace(/%(\d)/g,function(de,ze){return W(ze<K.length,"Message reference must be in range"),K[ze]});throw typeof h.lineNumber=="number"?(N=new Error("Line "+h.lineNumber+": "+ne),N.index=h.start,N.lineNumber=h.lineNumber,N.column=h.start-j+1):(N=new Error("Line "+D+": "+ne),N.index=b,N.lineNumber=D,N.column=b-j+1),N.description=ne,N}function Te(){try{we.apply(null,arguments)}catch(h){if(O.errors)O.errors.push(h);else throw h}}function ut(h){if(h.type===u.EOF&&we(h,p.UnexpectedEOS),h.type===u.NumericLiteral&&we(h,p.UnexpectedNumber),h.type===u.StringLiteral&&we(h,p.UnexpectedString),h.type===u.Identifier&&we(h,p.UnexpectedIdentifier),h.type===u.Keyword){if(Re(h.value))we(h,p.UnexpectedReserved);else if(E&&Se(h.value)){Te(h,p.StrictReservedWord);return}we(h,p.UnexpectedToken,h.value)}we(h,p.UnexpectedToken,h.value)}function I(h){var x=he();(x.type!==u.Punctuator||x.value!==h)&&ut(x)}function y(h){var x=he();(x.type!==u.Keyword||x.value!==h)&&ut(x)}function w(h){return F.type===u.Punctuator&&F.value===h}function L(h){return F.type===u.Keyword&&F.value===h}function V(){var h;return F.type!==u.Punctuator?!1:(h=F.value,h==="="||h==="*="||h==="/="||h==="%="||h==="+="||h==="-="||h==="<<="||h===">>="||h===">>>="||h==="&="||h==="^="||h==="|=")}function G(){var h;if(S.charCodeAt(b)===59||w(";")){he();return}h=D,J(),D===h&&F.type!==u.EOF&&!w("}")&&ut(F)}function ee(h){return h.type===d.Identifier||h.type===d.MemberExpression}function Ue(){var h=[],x;for(x=F,I("[");!w("]");)w(",")?(he(),h.push(null)):(h.push(gn()),w("]")||I(","));return he(),T.markEnd(T.createArrayExpression(h),x)}function pt(h,x){var N,K,ne;return N=E,ne=F,K=hs(),x&&E&&Ee(h[0].name)&&Te(x,p.StrictParamName),E=N,T.markEnd(T.createFunctionExpression(null,h,[],K),ne)}function ct(){var h,x;return x=F,h=he(),h.type===u.StringLiteral||h.type===u.NumericLiteral?(E&&h.octal&&Te(h,p.StrictOctalLiteral),T.markEnd(T.createLiteral(h),x)):T.markEnd(T.createIdentifier(h.value),x)}function dt(){var h,x,N,K,ne,de;if(h=F,de=F,h.type===u.Identifier)return N=ct(),h.value==="get"&&!w(":")?(x=ct(),I("("),I(")"),K=pt([]),T.markEnd(T.createProperty("get",x,K),de)):h.value==="set"&&!w(":")?(x=ct(),I("("),h=F,h.type!==u.Identifier?(I(")"),Te(h,p.UnexpectedToken,h.value),K=pt([])):(ne=[Fe()],I(")"),K=pt(ne,h)),T.markEnd(T.createProperty("set",x,K),de)):(I(":"),K=gn(),T.markEnd(T.createProperty("init",N,K),de));if(h.type===u.EOF||h.type===u.Punctuator)ut(h);else return x=ct(),I(":"),K=gn(),T.markEnd(T.createProperty("init",x,K),de)}function st(){var h=[],x,N,K,ne,de={},ze=String,mt;for(mt=F,I("{");!w("}");)x=dt(),x.key.type===d.Identifier?N=x.key.name:N=ze(x.key.value),ne=x.kind==="init"?g.Data:x.kind==="get"?g.Get:g.Set,K="$"+N,Object.prototype.hasOwnProperty.call(de,K)?(de[K]===g.Data?E&&ne===g.Data?Te({},p.StrictDuplicateProperty):ne!==g.Data&&Te({},p.AccessorDataProperty):ne===g.Data?Te({},p.AccessorDataProperty):de[K]&ne&&Te({},p.AccessorGetSet),de[K]|=ne):de[K]=ne,h.push(x),w("}")||I(",");return I("}"),T.markEnd(T.createObjectExpression(h),mt)}function Gr(){var h;return I("("),h=M(),I(")"),h}function Si(){var h,x,N,K;if(w("("))return Gr();if(w("["))return Ue();if(w("{"))return st();if(h=F.type,K=F,h===u.Identifier)N=T.createIdentifier(he().value);else if(h===u.StringLiteral||h===u.NumericLiteral)E&&F.octal&&Te(F,p.StrictOctalLiteral),N=T.createLiteral(he());else if(h===u.Keyword){if(L("function"))return Zc();L("this")?(he(),N=T.createThisExpression()):ut(he())}else h===u.BooleanLiteral?(x=he(),x.value=x.value==="true",N=T.createLiteral(x)):h===u.NullLiteral?(x=he(),x.value=null,N=T.createLiteral(x)):w("/")||w("/=")?(typeof O.tokens<"u"?N=T.createLiteral(bt()):N=T.createLiteral(Nt()),At()):ut(he());return T.markEnd(N,K)}function cs(){var h=[];if(I("("),!w(")"))for(;b<C&&(h.push(gn()),!w(")"));)I(",");return I(")"),h}function ls(){var h,x;return x=F,h=he(),kn(h)||ut(h),T.markEnd(T.createIdentifier(h.value),x)}function fs(){return I("."),ls()}function Jr(){var h;return I("["),h=M(),I("]"),h}function Ei(){var h,x,N;return N=F,y("new"),h=oo(),x=w("(")?cs():[],T.markEnd(T.createNewExpression(h,x),N)}function so(){var h,x,N,K,ne;for(ne=F,h=P.allowIn,P.allowIn=!0,x=L("new")?Ei():Si(),P.allowIn=h;;){if(w("."))K=fs(),x=T.createMemberExpression(".",x,K);else if(w("("))N=cs(),x=T.createCallExpression(x,N);else if(w("["))K=Jr(),x=T.createMemberExpression("[",x,K);else break;T.markEnd(x,ne)}return x}function oo(){var h,x,N,K;for(K=F,h=P.allowIn,x=L("new")?Ei():Si(),P.allowIn=h;w(".")||w("[");)w("[")?(N=Jr(),x=T.createMemberExpression("[",x,N)):(N=fs(),x=T.createMemberExpression(".",x,N)),T.markEnd(x,K);return x}function Or(){var h,x,N=F;return h=so(),F.type===u.Punctuator&&(w("++")||w("--"))&&!rt()&&(E&&h.type===d.Identifier&&Ee(h.name)&&Te({},p.StrictLHSPostfix),ee(h)||Te({},p.InvalidLHSInAssignment),x=he(),h=T.markEnd(T.createPostfixExpression(x.value,h),N)),h}function ir(){var h,x,N;return F.type!==u.Punctuator&&F.type!==u.Keyword?x=Or():w("++")||w("--")?(N=F,h=he(),x=ir(),E&&x.type===d.Identifier&&Ee(x.name)&&Te({},p.StrictLHSPrefix),ee(x)||Te({},p.InvalidLHSInAssignment),x=T.createUnaryExpression(h.value,x),x=T.markEnd(x,N)):w("+")||w("-")||w("~")||w("!")?(N=F,h=he(),x=ir(),x=T.createUnaryExpression(h.value,x),x=T.markEnd(x,N)):L("delete")||L("void")||L("typeof")?(N=F,h=he(),x=ir(),x=T.createUnaryExpression(h.value,x),x=T.markEnd(x,N),E&&x.operator==="delete"&&x.argument.type===d.Identifier&&Te({},p.StrictDelete)):x=Or(),x}function Yr(h,x){var N=0;if(h.type!==u.Punctuator&&h.type!==u.Keyword)return 0;switch(h.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=x?7:0;break;case"<<":case">>":case">>>":N=8;break;case"+":case"-":N=9;break;case"*":case"/":case"%":N=11;break}return N}function ao(){var h,x,N,K,ne,de,ze,mt,Zt,zt;if(h=F,Zt=ir(),K=F,ne=Yr(K,P.allowIn),ne===0)return Zt;for(K.prec=ne,he(),x=[h,F],ze=ir(),de=[Zt,K,ze];(ne=Yr(F,P.allowIn))>0;){for(;de.length>2&&ne<=de[de.length-2].prec;)ze=de.pop(),mt=de.pop().value,Zt=de.pop(),N=T.createBinaryExpression(mt,Zt,ze),x.pop(),h=x[x.length-1],T.markEnd(N,h),de.push(N);K=he(),K.prec=ne,de.push(K),x.push(F),N=ir(),de.push(N)}for(zt=de.length-1,N=de[zt],x.pop();zt>1;)N=T.createBinaryExpression(de[zt-1].value,de[zt-2],N),zt-=2,h=x.pop(),T.markEnd(N,h);return N}function uo(){var h,x,N,K,ne;return ne=F,h=ao(),w("?")&&(he(),x=P.allowIn,P.allowIn=!0,N=gn(),P.allowIn=x,I(":"),K=gn(),h=T.createConditionalExpression(h,N,K),T.markEnd(h,ne)),h}function gn(){var h,x,N,K,ne;return h=F,ne=F,K=x=uo(),V()&&(ee(x)||Te({},p.InvalidLHSInAssignment),E&&x.type===d.Identifier&&Ee(x.name)&&Te(h,p.StrictLHSAssignment),h=he(),N=gn(),K=T.markEnd(T.createAssignmentExpression(h.value,x,N),ne)),K}function M(){var h,x=F;if(h=gn(),w(",")){for(h=T.createSequenceExpression([h]);b<C&&w(",");)he(),h.expressions.push(gn());T.markEnd(h,x)}return h}function fe(){for(var h=[],x;b<C&&!(w("}")||(x=Qr(),typeof x>"u"));)h.push(x);return h}function be(){var h,x;return x=F,I("{"),h=fe(),I("}"),T.markEnd(T.createBlockStatement(h),x)}function Fe(){var h,x;return x=F,h=he(),h.type!==u.Identifier&&ut(h),T.markEnd(T.createIdentifier(h.value),x)}function lt(h){var x=null,N,K;return K=F,N=Fe(),E&&Ee(N.name)&&Te({},p.StrictVarName),h==="const"?(I("="),x=gn()):w("=")&&(he(),x=gn()),T.markEnd(T.createVariableDeclarator(N,x),K)}function ft(h){var x=[];do{if(x.push(lt(h)),!w(","))break;he()}while(b<C);return x}function tt(){var h;return y("var"),h=ft(),G(),T.createVariableDeclaration(h,"var")}function Ye(h){var x,N;return N=F,y(h),x=ft(h),G(),T.markEnd(T.createVariableDeclaration(x,h),N)}function Xt(){return I(";"),T.createEmptyStatement()}function Bt(){var h=M();return G(),T.createExpressionStatement(h)}function Pt(){var h,x,N;return y("if"),I("("),h=M(),I(")"),x=On(),L("else")?(he(),N=On()):N=null,T.createIfStatement(h,x,N)}function ln(){var h,x,N;return y("do"),N=P.inIteration,P.inIteration=!0,h=On(),P.inIteration=N,y("while"),I("("),x=M(),I(")"),w(";")&&he(),T.createDoWhileStatement(h,x)}function Tn(){var h,x,N;return y("while"),I("("),h=M(),I(")"),N=P.inIteration,P.inIteration=!0,x=On(),P.inIteration=N,T.createWhileStatement(h,x)}function sr(){var h,x,N;return N=F,h=he(),x=ft(),T.markEnd(T.createVariableDeclaration(x,h.value),N)}function Ht(){var h,x,N,K,ne,de,ze;return h=x=N=null,y("for"),I("("),w(";")?he():(L("var")||L("let")?(P.allowIn=!1,h=sr(),P.allowIn=!0,h.declarations.length===1&&L("in")&&(he(),K=h,ne=M(),h=null)):(P.allowIn=!1,h=M(),P.allowIn=!0,L("in")&&(ee(h)||Te({},p.InvalidLHSInForIn),he(),K=h,ne=M(),h=null)),typeof K>"u"&&I(";")),typeof K>"u"&&(w(";")||(x=M()),I(";"),w(")")||(N=M())),I(")"),ze=P.inIteration,P.inIteration=!0,de=On(),P.inIteration=ze,typeof K>"u"?T.createForStatement(h,x,N,de):T.createForInStatement(K,ne,de)}function xi(){var h=null,x;return y("continue"),S.charCodeAt(b)===59?(he(),P.inIteration||we({},p.IllegalContinue),T.createContinueStatement(null)):rt()?(P.inIteration||we({},p.IllegalContinue),T.createContinueStatement(null)):(F.type===u.Identifier&&(h=Fe(),x="$"+h.name,Object.prototype.hasOwnProperty.call(P.labelSet,x)||we({},p.UnknownLabel,h.name)),G(),h===null&&!P.inIteration&&we({},p.IllegalContinue),T.createContinueStatement(h))}function co(){var h=null,x;return y("break"),S.charCodeAt(b)===59?(he(),P.inIteration||P.inSwitch||we({},p.IllegalBreak),T.createBreakStatement(null)):rt()?(P.inIteration||P.inSwitch||we({},p.IllegalBreak),T.createBreakStatement(null)):(F.type===u.Identifier&&(h=Fe(),x="$"+h.name,Object.prototype.hasOwnProperty.call(P.labelSet,x)||we({},p.UnknownLabel,h.name)),G(),h===null&&!(P.inIteration||P.inSwitch)&&we({},p.IllegalBreak),T.createBreakStatement(h))}function lo(){var h=null;return y("return"),P.inFunctionBody||Te({},p.IllegalReturn),S.charCodeAt(b)===32&&Ce(S.charCodeAt(b+1))?(h=M(),G(),T.createReturnStatement(h)):rt()?T.createReturnStatement(null):(w(";")||!w("}")&&F.type!==u.EOF&&(h=M()),G(),T.createReturnStatement(h))}function Ta(){var h,x;return E&&(J(),Te({},p.StrictModeWith)),y("with"),I("("),h=M(),I(")"),x=On(),T.createWithStatement(h,x)}function Oa(){var h,x=[],N,K;for(K=F,L("default")?(he(),h=null):(y("case"),h=M()),I(":");b<C&&!(w("}")||L("default")||L("case"));)N=On(),x.push(N);return T.markEnd(T.createSwitchCase(h,x),K)}function Ia(){var h,x,N,K,ne;if(y("switch"),I("("),h=M(),I(")"),I("{"),x=[],w("}"))return he(),T.createSwitchStatement(h,x);for(K=P.inSwitch,P.inSwitch=!0,ne=!1;b<C&&!w("}");)N=Oa(),N.test===null&&(ne&&we({},p.MultipleDefaultsInSwitch),ne=!0),x.push(N);return P.inSwitch=K,I("}"),T.createSwitchStatement(h,x)}function Jc(){var h;return y("throw"),rt()&&we({},p.NewlineAfterThrow),h=M(),G(),T.createThrowStatement(h)}function Yc(){var h,x,N;return N=F,y("catch"),I("("),w(")")&&ut(F),h=Fe(),E&&Ee(h.name)&&Te({},p.StrictCatchVariable),I(")"),x=be(),T.markEnd(T.createCatchClause(h,x),N)}function Qc(){var h,x=[],N=null;return y("try"),h=be(),L("catch")&&x.push(Yc()),L("finally")&&(he(),N=be()),x.length===0&&!N&&we({},p.NoCatchOrFinally),T.createTryStatement(h,[],x,N)}function Xc(){return y("debugger"),G(),T.createDebuggerStatement()}function On(){var h=F.type,x,N,K,ne;if(h===u.EOF&&ut(F),h===u.Punctuator&&F.value==="{")return be();if(ne=F,h===u.Punctuator)switch(F.value){case";":return T.markEnd(Xt(),ne);case"(":return T.markEnd(Bt(),ne)}if(h===u.Keyword)switch(F.value){case"break":return T.markEnd(co(),ne);case"continue":return T.markEnd(xi(),ne);case"debugger":return T.markEnd(Xc(),ne);case"do":return T.markEnd(ln(),ne);case"for":return T.markEnd(Ht(),ne);case"function":return T.markEnd(ds(),ne);case"if":return T.markEnd(Pt(),ne);case"return":return T.markEnd(lo(),ne);case"switch":return T.markEnd(Ia(),ne);case"throw":return T.markEnd(Jc(),ne);case"try":return T.markEnd(Qc(),ne);case"var":return T.markEnd(tt(),ne);case"while":return T.markEnd(Tn(),ne);case"with":return T.markEnd(Ta(),ne)}return x=M(),x.type===d.Identifier&&w(":")?(he(),K="$"+x.name,Object.prototype.hasOwnProperty.call(P.labelSet,K)&&we({},p.Redeclaration,"Label",x.name),P.labelSet[K]=!0,N=On(),delete P.labelSet[K],T.markEnd(T.createLabeledStatement(x,N),ne)):(G(),T.markEnd(T.createExpressionStatement(x),ne))}function hs(){var h,x=[],N,K,ne,de,ze,mt,Zt,zt;for(zt=F,I("{");b<C&&!(F.type!==u.StringLiteral||(N=F,h=Qr(),x.push(h),h.expression.type!==d.Literal));)K=S.slice(N.start+1,N.end-1),K==="use strict"?(E=!0,ne&&Te(ne,p.StrictOctalLiteral)):!ne&&N.octal&&(ne=N);for(de=P.labelSet,ze=P.inIteration,mt=P.inSwitch,Zt=P.inFunctionBody,P.labelSet={},P.inIteration=!1,P.inSwitch=!1,P.inFunctionBody=!0;b<C&&!(w("}")||(h=Qr(),typeof h>"u"));)x.push(h);return I("}"),P.labelSet=de,P.inIteration=ze,P.inSwitch=mt,P.inFunctionBody=Zt,T.markEnd(T.createBlockStatement(x),zt)}function fo(h){var x,N=[],K,ne,de,ze,mt;if(I("("),!w(")"))for(de={};b<C&&(K=F,x=Fe(),ze="$"+K.value,E?(Ee(K.value)&&(ne=K,mt=p.StrictParamName),Object.prototype.hasOwnProperty.call(de,ze)&&(ne=K,mt=p.StrictParamDupe)):h||(Ee(K.value)?(h=K,mt=p.StrictParamName):Se(K.value)?(h=K,mt=p.StrictReservedWord):Object.prototype.hasOwnProperty.call(de,ze)&&(h=K,mt=p.StrictParamDupe)),N.push(x),de[ze]=!0,!w(")"));)I(",");return I(")"),{params:N,stricted:ne,firstRestricted:h,message:mt}}function ds(){var h,x=[],N,K,ne,de,ze,mt,Zt,zt;return zt=F,y("function"),K=F,h=Fe(),E?Ee(K.value)&&Te(K,p.StrictFunctionName):Ee(K.value)?(ze=K,mt=p.StrictFunctionName):Se(K.value)&&(ze=K,mt=p.StrictReservedWord),de=fo(ze),x=de.params,ne=de.stricted,ze=de.firstRestricted,de.message&&(mt=de.message),Zt=E,N=hs(),E&&ze&&we(ze,mt),E&&ne&&Te(ne,mt),E=Zt,T.markEnd(T.createFunctionDeclaration(h,x,[],N),zt)}function Zc(){var h,x=null,N,K,ne,de,ze=[],mt,Zt,zt;return zt=F,y("function"),w("(")||(h=F,x=Fe(),E?Ee(h.value)&&Te(h,p.StrictFunctionName):Ee(h.value)?(K=h,ne=p.StrictFunctionName):Se(h.value)&&(K=h,ne=p.StrictReservedWord)),de=fo(K),ze=de.params,N=de.stricted,K=de.firstRestricted,de.message&&(ne=de.message),Zt=E,mt=hs(),E&&K&&we(K,ne),E&&N&&Te(N,ne),E=Zt,T.markEnd(T.createFunctionExpression(x,ze,[],mt),zt)}function Qr(){if(F.type===u.Keyword)switch(F.value){case"const":case"let":return Ye(F.value);case"function":return ds();default:return On()}if(F.type!==u.EOF)return On()}function ps(){for(var h,x=[],N,K,ne;b<C&&(N=F,!(N.type!==u.StringLiteral||(h=Qr(),x.push(h),h.expression.type!==d.Literal)));)K=S.slice(N.start+1,N.end-1),K==="use strict"?(E=!0,ne&&Te(ne,p.StrictOctalLiteral)):!ne&&N.octal&&(ne=N);for(;b<C&&(h=Qr(),!(typeof h>"u"));)x.push(h);return x}function Fa(){var h,x;return J(),At(),x=F,E=!1,h=ps(),T.markEnd(T.createProgram(h),x)}function Ba(){var h,x,N,K=[];for(h=0;h<O.tokens.length;++h)x=O.tokens[h],N={type:x.type,value:x.value},O.range&&(N.range=x.range),O.loc&&(N.loc=x.loc),K.push(N);O.tokens=K}function Da(h,x){var N,K,ne;N=String,typeof h!="string"&&!(h instanceof String)&&(h=N(h)),T=_,S=h,b=0,D=S.length>0?1:0,j=0,C=S.length,F=null,P={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},O={},x=x||{},x.tokens=!0,O.tokens=[],O.tokenize=!0,O.openParenToken=-1,O.openCurlyToken=-1,O.range=typeof x.range=="boolean"&&x.range,O.loc=typeof x.loc=="boolean"&&x.loc,typeof x.comment=="boolean"&&x.comment&&(O.comments=[]),typeof x.tolerant=="boolean"&&x.tolerant&&(O.errors=[]);try{if(At(),F.type===u.EOF)return O.tokens;for(K=he();F.type!==u.EOF;)try{K=he()}catch(de){if(K=F,O.errors){O.errors.push(de);break}else throw de}Ba(),ne=O.tokens,typeof O.comments<"u"&&(ne.comments=O.comments),typeof O.errors<"u"&&(ne.errors=O.errors)}catch(de){throw de}finally{O={}}return ne}function Pa(h,x){var N,K;K=String,typeof h!="string"&&!(h instanceof String)&&(h=K(h)),T=_,S=h,b=0,D=S.length>0?1:0,j=0,C=S.length,F=null,P={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},O={},typeof x<"u"&&(O.range=typeof x.range=="boolean"&&x.range,O.loc=typeof x.loc=="boolean"&&x.loc,O.attachComment=typeof x.attachComment=="boolean"&&x.attachComment,O.loc&&x.source!==null&&x.source!==void 0&&(O.source=K(x.source)),typeof x.tokens=="boolean"&&x.tokens&&(O.tokens=[]),typeof x.comment=="boolean"&&x.comment&&(O.comments=[]),typeof x.tolerant=="boolean"&&x.tolerant&&(O.errors=[]),O.attachComment&&(O.range=!0,O.comments=[],O.bottomRightStack=[],O.trailingComments=[],O.leadingComments=[]));try{N=Fa(),typeof O.comments<"u"&&(N.comments=O.comments),typeof O.tokens<"u"&&(Ba(),N.tokens=O.tokens),typeof O.errors<"u"&&(N.errors=O.errors)}catch(ne){throw ne}finally{O={}}return N}a.version="1.2.2",a.tokenize=Da,a.parse=Pa,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,_,S,E,b,D,j){E.ast||(E.ast=f,f.initialize());var C=D.length-1;switch(b){case 1:return E.ast.set({expression:{type:"root",value:D[C]}}),E.ast.unshift(),E.ast.yield();case 2:return E.ast.set({expression:{type:"root",value:D[C-1]}}),E.ast.unshift(),E.ast.yield();case 3:return E.ast.unshift(),E.ast.yield();case 4:return E.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:D[C-1]}}),E.ast.unshift(),E.ast.yield();case 5:break;case 6:break;case 7:E.ast.set({operation:"member"}),E.ast.push();break;case 8:E.ast.set({operation:"subscript"}),E.ast.push();break;case 9:E.ast.set({scope:"child"});break;case 10:E.ast.set({scope:"descendant"});break;case 11:break;case 12:E.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:E.ast.set({expression:{type:"wildcard",value:D[C]}});break;case 15:E.ast.set({expression:{type:"identifier",value:D[C]}});break;case 16:E.ast.set({expression:{type:"script_expression",value:D[C]}});break;case 17:E.ast.set({expression:{type:"numeric_literal",value:parseInt(D[C])}});break;case 18:break;case 19:E.ast.set({scope:"child"});break;case 20:E.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:D[C].length>1?E.ast.set({expression:{type:"union",value:D[C]}}):this.$=D[C];break;case 25:this.$=[D[C]];break;case 26:this.$=D[C-2].concat(D[C]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(D[C])}},E.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:D[C]}},E.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:D[C]}},E.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:D[C]}},E.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:D[C]}},E.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:D[C]}},E.ast.set(this.$);break;case 33:this.$=D[C];break;case 34:this.$=D[C];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,_){if(_.recoverable)this.trace(v);else throw new Error(v)},parse:function(v){var _=this,S=[0],E=[null],b=[],D=this.table,j="",C=0,T=0,F=2,P=1,O=b.slice.call(arguments,1);this.lexer.setInput(v),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var W=this.lexer.yylloc;b.push(W);var 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 ce(){var me;return me=_.lexer.lex()||P,typeof me!="number"&&(me=_.symbols_[me]||me),me}for(var le,ge,ye,Ce,pe={},Re,Se,Ee,He;;){if(ge=S[S.length-1],this.defaultActions[ge]?ye=this.defaultActions[ge]:((le===null||typeof le>"u")&&(le=ce()),ye=D[ge]&&D[ge][le]),typeof ye>"u"||!ye.length||!ye[0]){var Ae="";He=[];for(Re in D[ge])this.terminals_[Re]&&Re>F&&He.push("'"+this.terminals_[Re]+"'");this.lexer.showPosition?Ae="Parse error on line "+(C+1)+`:
224
224
  `+this.lexer.showPosition()+`
225
- Expecting `+ze.join(", ")+", got '"+(this.terminals_[le]||le)+"'":Se="Parse error on line "+(x+1)+": Unexpected "+(le==k?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(Se,{text:this.lexer.match,token:this.terminals_[le]||le,line:this.lexer.yylineno,loc:V,expected:ze})}if(me[0]instanceof Array&&me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+le);switch(me[0]){case 1:A.push(le),S.push(this.lexer.yytext),v.push(this.lexer.yylloc),A.push(me[1]),le=null,O=this.lexer.yyleng,N=this.lexer.yytext,x=this.lexer.yylineno,V=this.lexer.yylloc;break;case 2:if(Re=this.productions_[me[1]][1],de.$=S[S.length-Re],de._$={first_line:v[v.length-(Re||1)].first_line,last_line:v[v.length-1].last_line,first_column:v[v.length-(Re||1)].first_column,last_column:v[v.length-1].last_column},Q&&(de._$.range=[v[v.length-(Re||1)].range[0],v[v.length-1].range[1]]),he=this.performAction.apply(de,[N,O,x,this.yy,me[1],S,v].concat(D)),typeof he<"u")return he;Re&&(A=A.slice(0,-1*Re*2),S=S.slice(0,-1*Re),v=v.slice(0,-1*Re)),A.push(this.productions_[me[1]][0]),S.push(de.$),v.push(de._$),Ce=R[A[A.length-2]][A[A.length-1]],A.push(Ce);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(p){for(var w in p)this._node[w]=p[w];return this._node},node:function(p){return arguments.length&&(this._node=p),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var p=this._nodes;return this.initialize(),p}},d=function(){var p={EOF:1,parseError:function(_,A){if(this.yy.parser)this.yy.parser.parseError(_,A);else throw new Error(_)},setInput:function(w){return this._input=w,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 w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var _=w.match(/(?:\r\n?|\n).*/g);return _?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var _=w.length,A=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_-1),this.offset-=_;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),A.length-1&&(this.yylineno-=A.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:A?(A.length===S.length?this.yylloc.first_column:0)+S[S.length-A.length].length-A[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-_]),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
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),_=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
227
- `+_+"^"},test_match:function(w,_){var A,S,v;if(this.options.backtrack_lexer&&(v={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&&(v.yylloc.range=this.yylloc.range.slice(0))),S=w[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+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,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(w[0].length),this.matched+=w[0],A=this.performAction.call(this,this.yy,this,_,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),A)return A;if(this._backtrack){for(var R in v)this[R]=v[R];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,_,A,S;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),R=0;R<v.length;R++)if(A=this._input.match(this.rules[v[R]]),A&&(!_||A[0].length>_[0].length)){if(_=A,S=R,this.options.backtrack_lexer){if(w=this.test_match(A,v[R]),w!==!1)return w;if(this._backtrack){_=!1;continue}else return!1}else if(!this.options.flex)break}return _?(w=this.test_match(_,v[S]),w!==!1?w:!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 _=this.next();return _||this.lex()},begin:function(_){this.conditionStack.push(_)},popState:function(){var _=this.conditionStack.length-1;return _>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(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},pushState:function(_){this.begin(_)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(_,A,S,v){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 A.yytext=A.yytext.substr(1,A.yyleng-2),32;case 11:return A.yytext=A.yytext.substr(1,A.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return p}();l.lexer=d;function g(){this.yy={}}return g.prototype=l,l.Parser=g,new g}();typeof n<"u"&&typeof o<"u"&&(o.parser=u,o.Parser=u.Parser,o.parse=function(){return u.parse.apply(u,arguments)},o.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),a.exit(1));var d=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return o.parser.parse(d)},typeof i<"u"&&n.main===i&&o.main(a.argv.slice(1)))}).call(this,n("_process"))},{_process:14,fs:12,path:13}],2:[function(n,i,o){i.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(n,i,o){var a=n("./dict"),u=n("fs"),l={lex:{macros:{esc:"\\\\",int:a.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[a.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[a.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[a.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};u.readFileSync&&(l.moduleInclude=u.readFileSync(n.resolve("../include/module.js")),l.actionInclude=u.readFileSync(n.resolve("../include/action.js"))),i.exports=l},{"./dict":2,fs:12}],4:[function(n,i,o){var a=n("./aesprim"),u=n("./slice"),l=n("static-eval"),f=n("underscore").uniq,d=function(){return this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.traverse=_(!0),this.descend=_()},d.prototype.keys=Object.keys,d.prototype.resolve=function(x){var O=[x.operation,x.scope,x.expression.type].join("-"),F=this._fns[O];if(!F)throw new Error("couldn't resolve key: "+O);return F.bind(this)},d.prototype.register=function(x,O){if(!O instanceof Function)throw new Error("handler must be a function");this._fns[x]=O},d.prototype._fns={"member-child-identifier":function(x,O){var F=x.expression.value,k=O.value;if(k instanceof Object&&F in k)return[{value:k[F],path:O.path.concat(F)}]},"member-descendant-identifier":S(function(x,O,F){return x==F}),"subscript-child-numeric_literal":A(function(x,O,F){return x===F}),"member-child-numeric_literal":A(function(x,O,F){return String(x)===String(F)}),"subscript-descendant-numeric_literal":S(function(x,O,F){return x===F}),"member-child-wildcard":A(function(){return!0}),"member-descendant-wildcard":S(function(){return!0}),"subscript-descendant-wildcard":S(function(){return!0}),"subscript-child-wildcard":A(function(){return!0}),"subscript-child-slice":function(x,O){if(p(O.value)){var F=x.expression.value.split(":").map(N),k=O.value.map(function(D,V){return{value:D,path:O.path.concat(V)}});return u.apply(null,[k].concat(F))}},"subscript-child-union":function(x,O){var F=[];return x.expression.value.forEach(function(k){var D={operation:"subscript",scope:"child",expression:k.expression},V=this.resolve(D),Q=V(D,O);Q&&(F=F.concat(Q))},this),R(F)},"subscript-descendant-union":function(x,O,F){var k=n(".."),D=this,V=[],Q=k.nodes(O,"$..*").slice(1);return Q.forEach(function(fe){V.length>=F||x.expression.value.forEach(function(le){var ge={operation:"subscript",scope:"child",expression:le.expression},me=D.resolve(ge),he=me(ge,fe);V=V.concat(he)})}),R(V)},"subscript-child-filter_expression":function(x,O,F){var k=x.expression.value.slice(2,-1),D=a.parse(k).body[0].expression,V=function(Q,fe){return v(D,{"@":fe})};return this.descend(O,null,V,F)},"subscript-descendant-filter_expression":function(x,O,F){var k=x.expression.value.slice(2,-1),D=a.parse(k).body[0].expression,V=function(Q,fe){return v(D,{"@":fe})};return this.traverse(O,null,V,F)},"subscript-child-script_expression":function(x,O){var F=x.expression.value.slice(1,-1);return g(O,F,"$[{{value}}]")},"member-child-script_expression":function(x,O){var F=x.expression.value.slice(1,-1);return g(O,F,"$.{{value}}")},"member-descendant-script_expression":function(x,O){var F=x.expression.value.slice(1,-1);return g(O,F,"$..value")}},d.prototype._fns["subscript-child-string_literal"]=d.prototype._fns["member-child-identifier"],d.prototype._fns["member-descendant-numeric_literal"]=d.prototype._fns["subscript-descendant-string_literal"]=d.prototype._fns["member-descendant-identifier"];function g(x,O,F){var k=n("./index"),D=a.parse(O).body[0].expression,V=v(D,{"@":x.value}),Q=F.replace(/\{\{\s*value\s*\}\}/g,V),fe=k.nodes(x.value,Q);return fe.forEach(function(le){le.path=x.path.concat(le.path.slice(1))}),fe}function p(x){return Array.isArray(x)}function w(x){return x&&!(x instanceof Array)&&x instanceof Object}function _(x){return function(O,F,k,D){var V=O.value,Q=O.path,fe=[],le=function(ge,me){p(ge)?(ge.forEach(function(he,de){fe.length>=D||k(de,he,F)&&fe.push({path:me.concat(de),value:he})}),ge.forEach(function(he,de){fe.length>=D||x&&le(he,me.concat(de))})):w(ge)&&(this.keys(ge).forEach(function(he){fe.length>=D||k(he,ge[he],F)&&fe.push({path:me.concat(he),value:ge[he]})}),this.keys(ge).forEach(function(he){fe.length>=D||x&&le(ge[he],me.concat(he))}))}.bind(this);return le(V,Q),fe}}function A(x){return function(O,F,k){return this.descend(F,O.expression.value,x,k)}}function S(x){return function(O,F,k){return this.traverse(F,O.expression.value,x,k)}}function v(){try{return l.apply(this,arguments)}catch{}}function R(x){return x=x.filter(function(O){return O}),f(x,function(O){return O.path.map(function(F){return String(F).replace("-","--")}).join("-")})}function N(x){var O=String(x);return O.match(/^-?[0-9]+$/)?parseInt(O):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(w){return a.ok(g(w),"we need a path"),this.parser.parse(w)},d.prototype.parent=function(w,_){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path");var A=this.nodes(w,_)[0];return A.path.pop(),this.value(w,A.path)},d.prototype.apply=function(w,_,A){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path"),a.equal(typeof A,"function","fn needs to be function");var S=this.nodes(w,_).sort(function(v,R){return R.path.length-v.path.length});return S.forEach(function(v){var R=v.path.pop(),N=this.value(w,this.stringify(v.path)),x=v.value=A.call(w,N[R]);N[R]=x},this),S},d.prototype.value=function(w,_,A){if(a.ok(w instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path"),arguments.length>=3){var S=this.nodes(w,_).shift();if(!S)return this._vivify(w,_,A);var v=S.path.slice(-1).shift(),R=this.parent(w,this.stringify(S.path));R[v]=A}return this.query(w,this.stringify(_),1).shift()},d.prototype._vivify=function(w,_,A){var S=this;a.ok(w instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path");var v=this.parser.parse(_).map(function(N){return N.expression.value}),R=function(N,x){var O=N.pop(),F=S.value(w,N);F||(R(N.concat(),typeof O=="string"?{}:[]),F=S.value(w,N)),F[O]=x};return R(v,A),this.query(w,_)[0]},d.prototype.query=function(w,_,A){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(g(_),"we need a path");var S=this.nodes(w,_,A).map(function(v){return v.value});return S},d.prototype.paths=function(w,_,A){a.ok(w instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path");var S=this.nodes(w,_,A).map(function(v){return v.path});return S},d.prototype.nodes=function(w,_,A){if(a.ok(w instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path"),A===0)return[];var S=this.parser.parse(_),v=this.handlers,R=[{path:["$"],value:w}],N=[];return S.length&&S[0].expression.type=="root"&&S.shift(),S.length?(S.forEach(function(x,O){if(!(N.length>=A)){var F=v.resolve(x),k=[];R.forEach(function(D){if(!(N.length>=A)){var V=F(x,D,A);O==S.length-1?N=N.concat(V||[]):k=k.concat(V||[])}}),R=k}}),A?N.slice(0,A):N):R},d.prototype.stringify=function(w){a.ok(w,"we need a path");var _="$",A={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return w=this._normalize(w),w.forEach(function(S){if(S.expression.type!="root"){var v=[S.scope,S.operation].join("-"),R=A[v],N;if(S.expression.type=="string_literal"?N=JSON.stringify(S.expression.value):N=S.expression.value,!R)throw new Error("couldn't find template "+v);_+=R.replace(/{{value}}/,N)}}),_},d.prototype._normalize=function(w){if(a.ok(w,"we need a path"),typeof w=="string")return this.parser.parse(w);if(Array.isArray(w)&&typeof w[0]=="string"){var _=[{expression:{type:"root",value:"$"}}];return w.forEach(function(A,S){if(!(A=="$"&&S===0))if(typeof A=="string"&&A.match("^"+u.identifier+"$"))_.push({operation:"member",scope:"child",expression:{value:A,type:"identifier"}});else{var v=typeof A=="number"?"numeric_literal":"string_literal";_.push({operation:"subscript",scope:"child",expression:{value:A,type:v}})}}),_}else if(Array.isArray(w)&&typeof w[0]=="object")return w;throw new Error("couldn't understand path "+w)};function g(w){return Object.prototype.toString.call(w)=="[object String]"}d.Handlers=f,d.Parser=l;var p=new d;p.JSONPath=d,i.exports=p},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(n,i,o){var a=n("./grammar"),u=n("../generated/parser"),l=function(){var f=new u.Parser,d=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),d.apply(f,arguments)},f};l.grammar=a,i.exports=l},{"../generated/parser":1,"./grammar":3}],7:[function(n,i,o){i.exports=function(u,l,f,d){if(typeof l=="string")throw new Error("start cannot be a string");if(typeof f=="string")throw new Error("end cannot be a string");if(typeof d=="string")throw new Error("step cannot be a string");var g=u.length;if(d===0)throw new Error("step cannot be zero");if(d=d?a(d):1,l=l<0?g+l:l,f=f<0?g+f:f,l=a(l===0?0:l||(d>0?0:g-1)),f=a(f===0?0:f||(d>0?g:-1)),l=d>0?Math.max(0,l):Math.min(g,l),f=d>0?Math.min(f,g):Math.max(-1,f),d>0&&f<=l)return[];if(d<0&&l<=f)return[];for(var p=[],w=l;w!=f&&!(d<0&&w<=f||d>0&&w>=f);w+=d)p.push(u[w]);return p};function a(u){return String(u).match(/^[0-9]+$/)?parseInt(u):Number.isFinite(u)?parseInt(u,10):0}},{}],8:[function(n,i,o){var a=n("util/"),u=Array.prototype.slice,l=Object.prototype.hasOwnProperty,f=i.exports=_;f.AssertionError=function(F){this.name="AssertionError",this.actual=F.actual,this.expected=F.expected,this.operator=F.operator,F.message?(this.message=F.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var k=F.stackStartFunction||w;if(Error.captureStackTrace)Error.captureStackTrace(this,k);else{var D=new Error;if(D.stack){var V=D.stack,Q=k.name,fe=V.indexOf(`
229
- `+Q);if(fe>=0){var le=V.indexOf(`
230
- `,fe+1);V=V.substring(le+1)}this.stack=V}}},a.inherits(f.AssertionError,Error);function d(O,F){return a.isUndefined(F)?""+F:a.isNumber(F)&&!isFinite(F)||a.isFunction(F)||a.isRegExp(F)?F.toString():F}function g(O,F){return a.isString(O)?O.length<F?O:O.slice(0,F):O}function p(O){return g(JSON.stringify(O.actual,d),128)+" "+O.operator+" "+g(JSON.stringify(O.expected,d),128)}function w(O,F,k,D,V){throw new f.AssertionError({message:k,actual:O,expected:F,operator:D,stackStartFunction:V})}f.fail=w;function _(O,F){O||w(O,!0,F,"==",f.ok)}f.ok=_,f.equal=function(F,k,D){F!=k&&w(F,k,D,"==",f.equal)},f.notEqual=function(F,k,D){F==k&&w(F,k,D,"!=",f.notEqual)},f.deepEqual=function(F,k,D){A(F,k)||w(F,k,D,"deepEqual",f.deepEqual)};function A(O,F){if(O===F)return!0;if(a.isBuffer(O)&&a.isBuffer(F)){if(O.length!=F.length)return!1;for(var k=0;k<O.length;k++)if(O[k]!==F[k])return!1;return!0}else return a.isDate(O)&&a.isDate(F)?O.getTime()===F.getTime():a.isRegExp(O)&&a.isRegExp(F)?O.source===F.source&&O.global===F.global&&O.multiline===F.multiline&&O.lastIndex===F.lastIndex&&O.ignoreCase===F.ignoreCase:!a.isObject(O)&&!a.isObject(F)?O==F:v(O,F)}function S(O){return Object.prototype.toString.call(O)=="[object Arguments]"}function v(O,F){if(a.isNullOrUndefined(O)||a.isNullOrUndefined(F)||O.prototype!==F.prototype)return!1;if(a.isPrimitive(O)||a.isPrimitive(F))return O===F;var k=S(O),D=S(F);if(k&&!D||!k&&D)return!1;if(k)return O=u.call(O),F=u.call(F),A(O,F);var V=x(O),Q=x(F),fe,le;if(V.length!=Q.length)return!1;for(V.sort(),Q.sort(),le=V.length-1;le>=0;le--)if(V[le]!=Q[le])return!1;for(le=V.length-1;le>=0;le--)if(fe=V[le],!A(O[fe],F[fe]))return!1;return!0}f.notDeepEqual=function(F,k,D){A(F,k)&&w(F,k,D,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(F,k,D){F!==k&&w(F,k,D,"===",f.strictEqual)},f.notStrictEqual=function(F,k,D){F===k&&w(F,k,D,"!==",f.notStrictEqual)};function R(O,F){return!O||!F?!1:Object.prototype.toString.call(F)=="[object RegExp]"?F.test(O):O instanceof F?!0:F.call({},O)===!0}function N(O,F,k,D){var V;a.isString(k)&&(D=k,k=null);try{F()}catch(Q){V=Q}if(D=(k&&k.name?" ("+k.name+").":".")+(D?" "+D:"."),O&&!V&&w(V,k,"Missing expected exception"+D),!O&&R(V,k)&&w(V,k,"Got unwanted exception"+D),O&&V&&k&&!R(V,k)||!O&&V)throw V}f.throws=function(O,F,k){N.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(O,F){N.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(O){if(O)throw O};var x=Object.keys||function(O){var F=[];for(var k in O)l.call(O,k)&&F.push(k);return F}},{"util/":11}],9:[function(n,i,o){typeof Object.create=="function"?i.exports=function(u,l){u.super_=l,u.prototype=Object.create(l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(u,l){u.super_=l;var f=function(){};f.prototype=l.prototype,u.prototype=new f,u.prototype.constructor=u}},{}],10:[function(n,i,o){i.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],11:[function(n,i,o){(function(a,u){var l=/%[sdj%]/g;o.format=function(J){if(!Q(J)){for(var X=[],oe=0;oe<arguments.length;oe++)X.push(g(arguments[oe]));return X.join(" ")}for(var oe=1,Be=arguments,Ke=Be.length,we=String(J).replace(l,function(De){if(De==="%%")return"%";if(oe>=Ke)return De;switch(De){case"%s":return String(Be[oe++]);case"%d":return Number(Be[oe++]);case"%j":try{return JSON.stringify(Be[oe++])}catch{return"[Circular]"}default:return De}}),Oe=Be[oe];oe<Ke;Oe=Be[++oe])k(Oe)||!me(Oe)?we+=" "+Oe:we+=" "+g(Oe);return we},o.deprecate=function(J,X){if(le(u.process))return function(){return o.deprecate(J,X).apply(this,arguments)};if(a.noDeprecation===!0)return J;var oe=!1;function Be(){if(!oe){if(a.throwDeprecation)throw new Error(X);a.traceDeprecation?console.trace(X):console.error(X),oe=!0}return J.apply(this,arguments)}return Be};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 X=a.pid;f[J]=function(){var oe=o.format.apply(o,arguments);console.error("%s %d: %s",J,X,oe)}}else f[J]=function(){};return f[J]};function g(J,X){var oe={seen:[],stylize:w};return arguments.length>=3&&(oe.depth=arguments[2]),arguments.length>=4&&(oe.colors=arguments[3]),F(X)?oe.showHidden=X:X&&o._extend(oe,X),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=p),A(oe,J,oe.depth)}o.inspect=g,g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(J,X){var oe=g.styles[X];return oe?"\x1B["+g.colors[oe][0]+"m"+J+"\x1B["+g.colors[oe][1]+"m":J}function w(J,X){return J}function _(J){var X={};return J.forEach(function(oe,Be){X[oe]=!0}),X}function A(J,X,oe){if(J.customInspect&&X&&Ie(X.inspect)&&X.inspect!==o.inspect&&!(X.constructor&&X.constructor.prototype===X)){var Be=X.inspect(oe,J);return Q(Be)||(Be=A(J,Be,oe)),Be}var Ke=S(J,X);if(Ke)return Ke;var we=Object.keys(X),Oe=_(we);if(J.showHidden&&(we=Object.getOwnPropertyNames(X)),de(X)&&(we.indexOf("message")>=0||we.indexOf("description")>=0))return v(X);if(we.length===0){if(Ie(X)){var De=X.name?": "+X.name:"";return J.stylize("[Function"+De+"]","special")}if(ge(X))return J.stylize(RegExp.prototype.toString.call(X),"regexp");if(he(X))return J.stylize(Date.prototype.toString.call(X),"date");if(de(X))return v(X)}var Le="",Tt=!1,on=["{","}"];if(O(X)&&(Tt=!0,on=["[","]"]),Ie(X)){var Nt=X.name?": "+X.name:"";Le=" [Function"+Nt+"]"}if(ge(X)&&(Le=" "+RegExp.prototype.toString.call(X)),he(X)&&(Le=" "+Date.prototype.toUTCString.call(X)),de(X)&&(Le=" "+v(X)),we.length===0&&(!Tt||X.length==0))return on[0]+Le+on[1];if(oe<0)return ge(X)?J.stylize(RegExp.prototype.toString.call(X),"regexp"):J.stylize("[Object]","special");J.seen.push(X);var $t;return Tt?$t=R(J,X,oe,Oe,we):$t=we.map(function(jt){return N(J,X,oe,Oe,jt,Tt)}),J.seen.pop(),x($t,Le,on)}function S(J,X){if(le(X))return J.stylize("undefined","undefined");if(Q(X)){var oe="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return J.stylize(oe,"string")}if(V(X))return J.stylize(""+X,"number");if(F(X))return J.stylize(""+X,"boolean");if(k(X))return J.stylize("null","null")}function v(J){return"["+Error.prototype.toString.call(J)+"]"}function R(J,X,oe,Be,Ke){for(var we=[],Oe=0,De=X.length;Oe<De;++Oe)et(X,String(Oe))?we.push(N(J,X,oe,Be,String(Oe),!0)):we.push("");return Ke.forEach(function(Le){Le.match(/^\d+$/)||we.push(N(J,X,oe,Be,Le,!0))}),we}function N(J,X,oe,Be,Ke,we){var Oe,De,Le;if(Le=Object.getOwnPropertyDescriptor(X,Ke)||{value:X[Ke]},Le.get?Le.set?De=J.stylize("[Getter/Setter]","special"):De=J.stylize("[Getter]","special"):Le.set&&(De=J.stylize("[Setter]","special")),et(Be,Ke)||(Oe="["+Ke+"]"),De||(J.seen.indexOf(Le.value)<0?(k(oe)?De=A(J,Le.value,null):De=A(J,Le.value,oe-1),De.indexOf(`
231
- `)>-1&&(we?De=De.split(`
225
+ Expecting `+He.join(", ")+", got '"+(this.terminals_[le]||le)+"'":Ae="Parse error on line "+(C+1)+": Unexpected "+(le==P?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(Ae,{text:this.lexer.match,token:this.terminals_[le]||le,line:this.lexer.yylineno,loc:W,expected:He})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+le);switch(ye[0]){case 1:S.push(le),E.push(this.lexer.yytext),b.push(this.lexer.yylloc),S.push(ye[1]),le=null,T=this.lexer.yyleng,j=this.lexer.yytext,C=this.lexer.yylineno,W=this.lexer.yylloc;break;case 2:if(Se=this.productions_[ye[1]][1],pe.$=E[E.length-Se],pe._$={first_line:b[b.length-(Se||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(Se||1)].first_column,last_column:b[b.length-1].last_column},Y&&(pe._$.range=[b[b.length-(Se||1)].range[0],b[b.length-1].range[1]]),Ce=this.performAction.apply(pe,[j,T,C,this.yy,ye[1],E,b].concat(O)),typeof Ce<"u")return Ce;Se&&(S=S.slice(0,-1*Se*2),E=E.slice(0,-1*Se),b=b.slice(0,-1*Se)),S.push(this.productions_[ye[1]][0]),E.push(pe.$),b.push(pe._$),Ee=D[S[S.length-2]][S[S.length-1]],S.push(Ee);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(p){for(var v in p)this._node[v]=p[v];return this._node},node:function(p){return arguments.length&&(this._node=p),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var p=this._nodes;return this.initialize(),p}},d=function(){var p={EOF:1,parseError:function(_,S){if(this.yy.parser)this.yy.parser.parseError(_,S);else throw new Error(_)},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 _=v.match(/(?:\r\n?|\n).*/g);return _?(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 _=v.length,S=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_-1),this.offset-=_;var E=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===E.length?this.yylloc.first_column:0)+E[E.length-S.length].length-S[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-_]),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
+ `+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(),_=new Array(v.length+1).join("-");return v+this.upcomingInput()+`
227
+ `+_+"^"},test_match:function(v,_){var S,E,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),E=v[0].match(/(?:\r\n?|\n).*/g),E&&(this.yylineno+=E.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:E?E[E.length-1].length-E[E.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+v[0].length},this.yytext+=v[0],this.match+=v[0],this.matches=v,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(v[0].length),this.matched+=v[0],S=this.performAction.call(this,this.yy,this,_,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var D in b)this[D]=b[D];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var v,_,S,E;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),D=0;D<b.length;D++)if(S=this._input.match(this.rules[b[D]]),S&&(!_||S[0].length>_[0].length)){if(_=S,E=D,this.options.backtrack_lexer){if(v=this.test_match(S,b[D]),v!==!1)return v;if(this._backtrack){_=!1;continue}else return!1}else if(!this.options.flex)break}return _?(v=this.test_match(_,b[E]),v!==!1?v:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
228
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var _=this.next();return _||this.lex()},begin:function(_){this.conditionStack.push(_)},popState:function(){var _=this.conditionStack.length-1;return _>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(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},pushState:function(_){this.begin(_)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(_,S,E,b){switch(E){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return S.yytext=S.yytext.substr(1,S.yyleng-2),32;case 11:return S.yytext=S.yytext.substr(1,S.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return p}();l.lexer=d;function g(){this.yy={}}return g.prototype=l,l.Parser=g,new g}();typeof n<"u"&&typeof o<"u"&&(o.parser=u,o.Parser=u.Parser,o.parse=function(){return u.parse.apply(u,arguments)},o.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),a.exit(1));var d=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return o.parser.parse(d)},typeof i<"u"&&n.main===i&&o.main(a.argv.slice(1)))}).call(this,n("_process"))},{_process:14,fs:12,path:13}],2:[function(n,i,o){i.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(n,i,o){var a=n("./dict"),u=n("fs"),l={lex:{macros:{esc:"\\\\",int:a.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[a.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[a.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[a.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};u.readFileSync&&(l.moduleInclude=u.readFileSync(n.resolve("../include/module.js")),l.actionInclude=u.readFileSync(n.resolve("../include/action.js"))),i.exports=l},{"./dict":2,fs:12}],4:[function(n,i,o){var a=n("./aesprim"),u=n("./slice"),l=n("static-eval"),f=n("underscore").uniq,d=function(){return this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.traverse=_(!0),this.descend=_()},d.prototype.keys=Object.keys,d.prototype.resolve=function(C){var T=[C.operation,C.scope,C.expression.type].join("-"),F=this._fns[T];if(!F)throw new Error("couldn't resolve key: "+T);return F.bind(this)},d.prototype.register=function(C,T){if(!T instanceof Function)throw new Error("handler must be a function");this._fns[C]=T},d.prototype._fns={"member-child-identifier":function(C,T){var F=C.expression.value,P=T.value;if(P instanceof Object&&F in P)return[{value:P[F],path:T.path.concat(F)}]},"member-descendant-identifier":E(function(C,T,F){return C==F}),"subscript-child-numeric_literal":S(function(C,T,F){return C===F}),"member-child-numeric_literal":S(function(C,T,F){return String(C)===String(F)}),"subscript-descendant-numeric_literal":E(function(C,T,F){return C===F}),"member-child-wildcard":S(function(){return!0}),"member-descendant-wildcard":E(function(){return!0}),"subscript-descendant-wildcard":E(function(){return!0}),"subscript-child-wildcard":S(function(){return!0}),"subscript-child-slice":function(C,T){if(p(T.value)){var F=C.expression.value.split(":").map(j),P=T.value.map(function(O,W){return{value:O,path:T.path.concat(W)}});return u.apply(null,[P].concat(F))}},"subscript-child-union":function(C,T){var F=[];return C.expression.value.forEach(function(P){var O={operation:"subscript",scope:"child",expression:P.expression},W=this.resolve(O),Y=W(O,T);Y&&(F=F.concat(Y))},this),D(F)},"subscript-descendant-union":function(C,T,F){var P=n(".."),O=this,W=[],Y=P.nodes(T,"$..*").slice(1);return Y.forEach(function(ce){W.length>=F||C.expression.value.forEach(function(le){var ge={operation:"subscript",scope:"child",expression:le.expression},ye=O.resolve(ge),Ce=ye(ge,ce);W=W.concat(Ce)})}),D(W)},"subscript-child-filter_expression":function(C,T,F){var P=C.expression.value.slice(2,-1),O=a.parse(P).body[0].expression,W=function(Y,ce){return b(O,{"@":ce})};return this.descend(T,null,W,F)},"subscript-descendant-filter_expression":function(C,T,F){var P=C.expression.value.slice(2,-1),O=a.parse(P).body[0].expression,W=function(Y,ce){return b(O,{"@":ce})};return this.traverse(T,null,W,F)},"subscript-child-script_expression":function(C,T){var F=C.expression.value.slice(1,-1);return g(T,F,"$[{{value}}]")},"member-child-script_expression":function(C,T){var F=C.expression.value.slice(1,-1);return g(T,F,"$.{{value}}")},"member-descendant-script_expression":function(C,T){var F=C.expression.value.slice(1,-1);return g(T,F,"$..value")}},d.prototype._fns["subscript-child-string_literal"]=d.prototype._fns["member-child-identifier"],d.prototype._fns["member-descendant-numeric_literal"]=d.prototype._fns["subscript-descendant-string_literal"]=d.prototype._fns["member-descendant-identifier"];function g(C,T,F){var P=n("./index"),O=a.parse(T).body[0].expression,W=b(O,{"@":C.value}),Y=F.replace(/\{\{\s*value\s*\}\}/g,W),ce=P.nodes(C.value,Y);return ce.forEach(function(le){le.path=C.path.concat(le.path.slice(1))}),ce}function p(C){return Array.isArray(C)}function v(C){return C&&!(C instanceof Array)&&C instanceof Object}function _(C){return function(T,F,P,O){var W=T.value,Y=T.path,ce=[],le=function(ge,ye){p(ge)?(ge.forEach(function(Ce,pe){ce.length>=O||P(pe,Ce,F)&&ce.push({path:ye.concat(pe),value:Ce})}),ge.forEach(function(Ce,pe){ce.length>=O||C&&le(Ce,ye.concat(pe))})):v(ge)&&(this.keys(ge).forEach(function(Ce){ce.length>=O||P(Ce,ge[Ce],F)&&ce.push({path:ye.concat(Ce),value:ge[Ce]})}),this.keys(ge).forEach(function(Ce){ce.length>=O||C&&le(ge[Ce],ye.concat(Ce))}))}.bind(this);return le(W,Y),ce}}function S(C){return function(T,F,P){return this.descend(F,T.expression.value,C,P)}}function E(C){return function(T,F,P){return this.traverse(F,T.expression.value,C,P)}}function b(){try{return l.apply(this,arguments)}catch{}}function D(C){return C=C.filter(function(T){return T}),f(C,function(T){return T.path.map(function(F){return String(F).replace("-","--")}).join("-")})}function j(C){var T=String(C);return T.match(/^-?[0-9]+$/)?parseInt(T):null}i.exports=d},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(n,i,o){var a=n("assert"),u=n("./dict"),l=n("./parser"),f=n("./handlers"),d=function(){this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.parser=new l,this.handlers=new f},d.prototype.parse=function(v){return a.ok(g(v),"we need a path"),this.parser.parse(v)},d.prototype.parent=function(v,_){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path");var S=this.nodes(v,_)[0];return S.path.pop(),this.value(v,S.path)},d.prototype.apply=function(v,_,S){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path"),a.equal(typeof S,"function","fn needs to be function");var E=this.nodes(v,_).sort(function(b,D){return D.path.length-b.path.length});return E.forEach(function(b){var D=b.path.pop(),j=this.value(v,this.stringify(b.path)),C=b.value=S.call(v,j[D]);j[D]=C},this),E},d.prototype.value=function(v,_,S){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path"),arguments.length>=3){var E=this.nodes(v,_).shift();if(!E)return this._vivify(v,_,S);var b=E.path.slice(-1).shift(),D=this.parent(v,this.stringify(E.path));D[b]=S}return this.query(v,this.stringify(_),1).shift()},d.prototype._vivify=function(v,_,S){var E=this;a.ok(v instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path");var b=this.parser.parse(_).map(function(j){return j.expression.value}),D=function(j,C){var T=j.pop(),F=E.value(v,j);F||(D(j.concat(),typeof T=="string"?{}:[]),F=E.value(v,j)),F[T]=C};return D(b,S),this.query(v,_)[0]},d.prototype.query=function(v,_,S){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(g(_),"we need a path");var E=this.nodes(v,_,S).map(function(b){return b.value});return E},d.prototype.paths=function(v,_,S){a.ok(v instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path");var E=this.nodes(v,_,S).map(function(b){return b.path});return E},d.prototype.nodes=function(v,_,S){if(a.ok(v instanceof Object,"obj needs to be an object"),a.ok(_,"we need a path"),S===0)return[];var E=this.parser.parse(_),b=this.handlers,D=[{path:["$"],value:v}],j=[];return E.length&&E[0].expression.type=="root"&&E.shift(),E.length?(E.forEach(function(C,T){if(!(j.length>=S)){var F=b.resolve(C),P=[];D.forEach(function(O){if(!(j.length>=S)){var W=F(C,O,S);T==E.length-1?j=j.concat(W||[]):P=P.concat(W||[])}}),D=P}}),S?j.slice(0,S):j):D},d.prototype.stringify=function(v){a.ok(v,"we need a path");var _="$",S={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return v=this._normalize(v),v.forEach(function(E){if(E.expression.type!="root"){var b=[E.scope,E.operation].join("-"),D=S[b],j;if(E.expression.type=="string_literal"?j=JSON.stringify(E.expression.value):j=E.expression.value,!D)throw new Error("couldn't find template "+b);_+=D.replace(/{{value}}/,j)}}),_},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 _=[{expression:{type:"root",value:"$"}}];return v.forEach(function(S,E){if(!(S=="$"&&E===0))if(typeof S=="string"&&S.match("^"+u.identifier+"$"))_.push({operation:"member",scope:"child",expression:{value:S,type:"identifier"}});else{var b=typeof S=="number"?"numeric_literal":"string_literal";_.push({operation:"subscript",scope:"child",expression:{value:S,type:b}})}}),_}else if(Array.isArray(v)&&typeof v[0]=="object")return v;throw new Error("couldn't understand path "+v)};function g(v){return Object.prototype.toString.call(v)=="[object String]"}d.Handlers=f,d.Parser=l;var p=new d;p.JSONPath=d,i.exports=p},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(n,i,o){var a=n("./grammar"),u=n("../generated/parser"),l=function(){var f=new u.Parser,d=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),d.apply(f,arguments)},f};l.grammar=a,i.exports=l},{"../generated/parser":1,"./grammar":3}],7:[function(n,i,o){i.exports=function(u,l,f,d){if(typeof l=="string")throw new Error("start cannot be a string");if(typeof f=="string")throw new Error("end cannot be a string");if(typeof d=="string")throw new Error("step cannot be a string");var g=u.length;if(d===0)throw new Error("step cannot be zero");if(d=d?a(d):1,l=l<0?g+l:l,f=f<0?g+f:f,l=a(l===0?0:l||(d>0?0:g-1)),f=a(f===0?0:f||(d>0?g:-1)),l=d>0?Math.max(0,l):Math.min(g,l),f=d>0?Math.min(f,g):Math.max(-1,f),d>0&&f<=l)return[];if(d<0&&l<=f)return[];for(var p=[],v=l;v!=f&&!(d<0&&v<=f||d>0&&v>=f);v+=d)p.push(u[v]);return p};function a(u){return String(u).match(/^[0-9]+$/)?parseInt(u):Number.isFinite(u)?parseInt(u,10):0}},{}],8:[function(n,i,o){var a=n("util/"),u=Array.prototype.slice,l=Object.prototype.hasOwnProperty,f=i.exports=_;f.AssertionError=function(F){this.name="AssertionError",this.actual=F.actual,this.expected=F.expected,this.operator=F.operator,F.message?(this.message=F.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var P=F.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,P);else{var O=new Error;if(O.stack){var W=O.stack,Y=P.name,ce=W.indexOf(`
229
+ `+Y);if(ce>=0){var le=W.indexOf(`
230
+ `,ce+1);W=W.substring(le+1)}this.stack=W}}},a.inherits(f.AssertionError,Error);function d(T,F){return a.isUndefined(F)?""+F:a.isNumber(F)&&!isFinite(F)||a.isFunction(F)||a.isRegExp(F)?F.toString():F}function g(T,F){return a.isString(T)?T.length<F?T:T.slice(0,F):T}function p(T){return g(JSON.stringify(T.actual,d),128)+" "+T.operator+" "+g(JSON.stringify(T.expected,d),128)}function v(T,F,P,O,W){throw new f.AssertionError({message:P,actual:T,expected:F,operator:O,stackStartFunction:W})}f.fail=v;function _(T,F){T||v(T,!0,F,"==",f.ok)}f.ok=_,f.equal=function(F,P,O){F!=P&&v(F,P,O,"==",f.equal)},f.notEqual=function(F,P,O){F==P&&v(F,P,O,"!=",f.notEqual)},f.deepEqual=function(F,P,O){S(F,P)||v(F,P,O,"deepEqual",f.deepEqual)};function S(T,F){if(T===F)return!0;if(a.isBuffer(T)&&a.isBuffer(F)){if(T.length!=F.length)return!1;for(var P=0;P<T.length;P++)if(T[P]!==F[P])return!1;return!0}else return a.isDate(T)&&a.isDate(F)?T.getTime()===F.getTime():a.isRegExp(T)&&a.isRegExp(F)?T.source===F.source&&T.global===F.global&&T.multiline===F.multiline&&T.lastIndex===F.lastIndex&&T.ignoreCase===F.ignoreCase:!a.isObject(T)&&!a.isObject(F)?T==F:b(T,F)}function E(T){return Object.prototype.toString.call(T)=="[object Arguments]"}function b(T,F){if(a.isNullOrUndefined(T)||a.isNullOrUndefined(F)||T.prototype!==F.prototype)return!1;if(a.isPrimitive(T)||a.isPrimitive(F))return T===F;var P=E(T),O=E(F);if(P&&!O||!P&&O)return!1;if(P)return T=u.call(T),F=u.call(F),S(T,F);var W=C(T),Y=C(F),ce,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(ce=W[le],!S(T[ce],F[ce]))return!1;return!0}f.notDeepEqual=function(F,P,O){S(F,P)&&v(F,P,O,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(F,P,O){F!==P&&v(F,P,O,"===",f.strictEqual)},f.notStrictEqual=function(F,P,O){F===P&&v(F,P,O,"!==",f.notStrictEqual)};function D(T,F){return!T||!F?!1:Object.prototype.toString.call(F)=="[object RegExp]"?F.test(T):T instanceof F?!0:F.call({},T)===!0}function j(T,F,P,O){var W;a.isString(P)&&(O=P,P=null);try{F()}catch(Y){W=Y}if(O=(P&&P.name?" ("+P.name+").":".")+(O?" "+O:"."),T&&!W&&v(W,P,"Missing expected exception"+O),!T&&D(W,P)&&v(W,P,"Got unwanted exception"+O),T&&W&&P&&!D(W,P)||!T&&W)throw W}f.throws=function(T,F,P){j.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(T,F){j.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(T){if(T)throw T};var C=Object.keys||function(T){var F=[];for(var P in T)l.call(T,P)&&F.push(P);return F}},{"util/":11}],9:[function(n,i,o){typeof Object.create=="function"?i.exports=function(u,l){u.super_=l,u.prototype=Object.create(l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(u,l){u.super_=l;var f=function(){};f.prototype=l.prototype,u.prototype=new f,u.prototype.constructor=u}},{}],10:[function(n,i,o){i.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],11:[function(n,i,o){(function(a,u){var l=/%[sdj%]/g;o.format=function(J){if(!Y(J)){for(var X=[],ae=0;ae<arguments.length;ae++)X.push(g(arguments[ae]));return X.join(" ")}for(var ae=1,Be=arguments,We=Be.length,_e=String(J).replace(l,function(Oe){if(Oe==="%%")return"%";if(ae>=We)return Oe;switch(Oe){case"%s":return String(Be[ae++]);case"%d":return Number(Be[ae++]);case"%j":try{return JSON.stringify(Be[ae++])}catch{return"[Circular]"}default:return Oe}}),De=Be[ae];ae<We;De=Be[++ae])P(De)||!ye(De)?_e+=" "+De:_e+=" "+g(De);return _e},o.deprecate=function(J,X){if(le(u.process))return function(){return o.deprecate(J,X).apply(this,arguments)};if(a.noDeprecation===!0)return J;var ae=!1;function Be(){if(!ae){if(a.throwDeprecation)throw new Error(X);a.traceDeprecation?console.trace(X):console.error(X),ae=!0}return J.apply(this,arguments)}return Be};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 X=a.pid;f[J]=function(){var ae=o.format.apply(o,arguments);console.error("%s %d: %s",J,X,ae)}}else f[J]=function(){};return f[J]};function g(J,X){var ae={seen:[],stylize:v};return arguments.length>=3&&(ae.depth=arguments[2]),arguments.length>=4&&(ae.colors=arguments[3]),F(X)?ae.showHidden=X:X&&o._extend(ae,X),le(ae.showHidden)&&(ae.showHidden=!1),le(ae.depth)&&(ae.depth=2),le(ae.colors)&&(ae.colors=!1),le(ae.customInspect)&&(ae.customInspect=!0),ae.colors&&(ae.stylize=p),S(ae,J,ae.depth)}o.inspect=g,g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(J,X){var ae=g.styles[X];return ae?"\x1B["+g.colors[ae][0]+"m"+J+"\x1B["+g.colors[ae][1]+"m":J}function v(J,X){return J}function _(J){var X={};return J.forEach(function(ae,Be){X[ae]=!0}),X}function S(J,X,ae){if(J.customInspect&&X&&Re(X.inspect)&&X.inspect!==o.inspect&&!(X.constructor&&X.constructor.prototype===X)){var Be=X.inspect(ae,J);return Y(Be)||(Be=S(J,Be,ae)),Be}var We=E(J,X);if(We)return We;var _e=Object.keys(X),De=_(_e);if(J.showHidden&&(_e=Object.getOwnPropertyNames(X)),pe(X)&&(_e.indexOf("message")>=0||_e.indexOf("description")>=0))return b(X);if(_e.length===0){if(Re(X)){var Oe=X.name?": "+X.name:"";return J.stylize("[Function"+Oe+"]","special")}if(ge(X))return J.stylize(RegExp.prototype.toString.call(X),"regexp");if(Ce(X))return J.stylize(Date.prototype.toString.call(X),"date");if(pe(X))return b(X)}var Le="",Tt=!1,rn=["{","}"];if(T(X)&&(Tt=!0,rn=["[","]"]),Re(X)){var Lt=X.name?": "+X.name:"";Le=" [Function"+Lt+"]"}if(ge(X)&&(Le=" "+RegExp.prototype.toString.call(X)),Ce(X)&&(Le=" "+Date.prototype.toUTCString.call(X)),pe(X)&&(Le=" "+b(X)),_e.length===0&&(!Tt||X.length==0))return rn[0]+Le+rn[1];if(ae<0)return ge(X)?J.stylize(RegExp.prototype.toString.call(X),"regexp"):J.stylize("[Object]","special");J.seen.push(X);var jt;return Tt?jt=D(J,X,ae,De,_e):jt=_e.map(function(Nt){return j(J,X,ae,De,Nt,Tt)}),J.seen.pop(),C(jt,Le,rn)}function E(J,X){if(le(X))return J.stylize("undefined","undefined");if(Y(X)){var ae="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return J.stylize(ae,"string")}if(W(X))return J.stylize(""+X,"number");if(F(X))return J.stylize(""+X,"boolean");if(P(X))return J.stylize("null","null")}function b(J){return"["+Error.prototype.toString.call(J)+"]"}function D(J,X,ae,Be,We){for(var _e=[],De=0,Oe=X.length;De<Oe;++De)Me(X,String(De))?_e.push(j(J,X,ae,Be,String(De),!0)):_e.push("");return We.forEach(function(Le){Le.match(/^\d+$/)||_e.push(j(J,X,ae,Be,Le,!0))}),_e}function j(J,X,ae,Be,We,_e){var De,Oe,Le;if(Le=Object.getOwnPropertyDescriptor(X,We)||{value:X[We]},Le.get?Le.set?Oe=J.stylize("[Getter/Setter]","special"):Oe=J.stylize("[Getter]","special"):Le.set&&(Oe=J.stylize("[Setter]","special")),Me(Be,We)||(De="["+We+"]"),Oe||(J.seen.indexOf(Le.value)<0?(P(ae)?Oe=S(J,Le.value,null):Oe=S(J,Le.value,ae-1),Oe.indexOf(`
231
+ `)>-1&&(_e?Oe=Oe.split(`
232
232
  `).map(function(Tt){return" "+Tt}).join(`
233
- `).substr(2):De=`
234
- `+De.split(`
233
+ `).substr(2):Oe=`
234
+ `+Oe.split(`
235
235
  `).map(function(Tt){return" "+Tt}).join(`
236
- `))):De=J.stylize("[Circular]","special")),le(Oe)){if(we&&Ke.match(/^\d+$/))return De;Oe=JSON.stringify(""+Ke),Oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Oe=Oe.substr(1,Oe.length-2),Oe=J.stylize(Oe,"name")):(Oe=Oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Oe=J.stylize(Oe,"string"))}return Oe+": "+De}function x(J,X,oe){var Be=J.reduce(function(Ke,we){return we.indexOf(`
237
- `)>=0,Ke+we.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Be>60?oe[0]+(X===""?"":X+`
236
+ `))):Oe=J.stylize("[Circular]","special")),le(De)){if(_e&&We.match(/^\d+$/))return Oe;De=JSON.stringify(""+We),De.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(De=De.substr(1,De.length-2),De=J.stylize(De,"name")):(De=De.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),De=J.stylize(De,"string"))}return De+": "+Oe}function C(J,X,ae){var Be=J.reduce(function(We,_e){return _e.indexOf(`
237
+ `)>=0,We+_e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Be>60?ae[0]+(X===""?"":X+`
238
238
  `)+" "+J.join(`,
239
- `)+" "+oe[1]:oe[0]+X+" "+J.join(", ")+" "+oe[1]}function O(J){return Array.isArray(J)}o.isArray=O;function F(J){return typeof J=="boolean"}o.isBoolean=F;function k(J){return J===null}o.isNull=k;function D(J){return J==null}o.isNullOrUndefined=D;function V(J){return typeof J=="number"}o.isNumber=V;function Q(J){return typeof J=="string"}o.isString=Q;function fe(J){return typeof J=="symbol"}o.isSymbol=fe;function le(J){return J===void 0}o.isUndefined=le;function ge(J){return me(J)&&Ce(J)==="[object RegExp]"}o.isRegExp=ge;function me(J){return typeof J=="object"&&J!==null}o.isObject=me;function he(J){return me(J)&&Ce(J)==="[object Date]"}o.isDate=he;function de(J){return me(J)&&(Ce(J)==="[object Error]"||J instanceof Error)}o.isError=de;function Ie(J){return typeof J=="function"}o.isFunction=Ie;function Re(J){return J===null||typeof J=="boolean"||typeof J=="number"||typeof J=="string"||typeof J=="symbol"||typeof J>"u"}o.isPrimitive=Re,o.isBuffer=n("./support/isBuffer");function Ce(J){return Object.prototype.toString.call(J)}function ze(J){return J<10?"0"+J.toString(10):J.toString(10)}var Se=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ye(){var J=new Date,X=[ze(J.getHours()),ze(J.getMinutes()),ze(J.getSeconds())].join(":");return[J.getDate(),Se[J.getMonth()],X].join(" ")}o.log=function(){console.log("%s - %s",ye(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(J,X){if(!X||!me(X))return J;for(var oe=Object.keys(X),Be=oe.length;Be--;)J[oe[Be]]=X[oe[Be]];return J};function et(J,X){return Object.prototype.hasOwnProperty.call(J,X)}}).call(this,n("_process"),typeof Qn<"u"?Qn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,o){},{}],13:[function(n,i,o){(function(a){function u(g,p){for(var w=0,_=g.length-1;_>=0;_--){var A=g[_];A==="."?g.splice(_,1):A===".."?(g.splice(_,1),w++):w&&(g.splice(_,1),w--)}if(p)for(;w--;w)g.unshift("..");return g}o.resolve=function(){for(var g="",p=!1,w=arguments.length-1;w>=-1&&!p;w--){var _=w>=0?arguments[w]:a.cwd();if(typeof _!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!_)continue;g=_+"/"+g,p=_.charAt(0)==="/"}return g=u(f(g.split("/"),function(A){return!!A}),!p).join("/"),(p?"/":"")+g||"."},o.normalize=function(g){var p=o.isAbsolute(g),w=d(g,-1)==="/";return g=u(f(g.split("/"),function(_){return!!_}),!p).join("/"),!g&&!p&&(g="."),g&&w&&(g+="/"),(p?"/":"")+g},o.isAbsolute=function(g){return g.charAt(0)==="/"},o.join=function(){var g=Array.prototype.slice.call(arguments,0);return o.normalize(f(g,function(p,w){if(typeof p!="string")throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},o.relative=function(g,p){g=o.resolve(g).substr(1),p=o.resolve(p).substr(1);function w(x){for(var O=0;O<x.length&&x[O]==="";O++);for(var F=x.length-1;F>=0&&x[F]==="";F--);return O>F?[]:x.slice(O,F-O+1)}for(var _=w(g.split("/")),A=w(p.split("/")),S=Math.min(_.length,A.length),v=S,R=0;R<S;R++)if(_[R]!==A[R]){v=R;break}for(var N=[],R=v;R<_.length;R++)N.push("..");return N=N.concat(A.slice(v)),N.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var p=g.charCodeAt(0),w=p===47,_=-1,A=!0,S=g.length-1;S>=1;--S)if(p=g.charCodeAt(S),p===47){if(!A){_=S;break}}else A=!1;return _===-1?w?"/":".":w&&_===1?"/":g.slice(0,_)};function l(g){typeof g!="string"&&(g=g+"");var p=0,w=-1,_=!0,A;for(A=g.length-1;A>=0;--A)if(g.charCodeAt(A)===47){if(!_){p=A+1;break}}else w===-1&&(_=!1,w=A+1);return w===-1?"":g.slice(p,w)}o.basename=function(g,p){var w=l(g);return p&&w.substr(-1*p.length)===p&&(w=w.substr(0,w.length-p.length)),w},o.extname=function(g){typeof g!="string"&&(g=g+"");for(var p=-1,w=0,_=-1,A=!0,S=0,v=g.length-1;v>=0;--v){var R=g.charCodeAt(v);if(R===47){if(!A){w=v+1;break}continue}_===-1&&(A=!1,_=v+1),R===46?p===-1?p=v:S!==1&&(S=1):p!==-1&&(S=-1)}return p===-1||_===-1||S===0||S===1&&p===_-1&&p===w+1?"":g.slice(p,_)};function f(g,p){if(g.filter)return g.filter(p);for(var w=[],_=0;_<g.length;_++)p(g[_],_,g)&&w.push(g[_]);return w}var d="ab".substr(-1)==="b"?function(g,p,w){return g.substr(p,w)}:function(g,p,w){return p<0&&(p=g.length+p),g.substr(p,w)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,o){var a=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=d}catch{l=d}})();function g(O){if(u===setTimeout)return setTimeout(O,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(O,0);try{return u(O,0)}catch{try{return u.call(null,O,0)}catch{return u.call(this,O,0)}}}function p(O){if(l===clearTimeout)return clearTimeout(O);if((l===d||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(O);try{return l(O)}catch{try{return l.call(null,O)}catch{return l.call(this,O)}}}var w=[],_=!1,A,S=-1;function v(){!_||!A||(_=!1,A.length?w=A.concat(w):S=-1,w.length&&R())}function R(){if(!_){var O=g(v);_=!0;for(var F=w.length;F;){for(A=w,w=[];++S<F;)A&&A[S].run();S=-1,F=w.length}A=null,_=!1,p(O)}}a.nextTick=function(O){var F=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)F[k-1]=arguments[k];w.push(new N(O,F)),w.length===1&&!_&&g(R)};function N(O,F){this.fun=O,this.array=F}N.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function x(){}a.on=x,a.addListener=x,a.once=x,a.off=x,a.removeListener=x,a.removeAllListeners=x,a.emit=x,a.prependListener=x,a.prependOnceListener=x,a.listeners=function(O){return[]},a.binding=function(O){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(O){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(n,i,o){var a=n("escodegen").generate;i.exports=function(u,l){l||(l={});var f={},d=function g(p,w){if(p.type==="Literal")return p.value;if(p.type==="UnaryExpression"){var _=g(p.argument);return p.operator==="+"?+_:p.operator==="-"?-_:p.operator==="~"?~_:p.operator==="!"?!_:f}else if(p.type==="ArrayExpression"){for(var A=[],S=0,v=p.elements.length;S<v;S++){var R=g(p.elements[S]);if(R===f)return f;A.push(R)}return A}else if(p.type==="ObjectExpression"){for(var N={},S=0;S<p.properties.length;S++){var x=p.properties[S],O=x.value===null?x.value:g(x.value);if(O===f)return f;N[x.key.value||x.key.name]=O}return N}else if(p.type==="BinaryExpression"||p.type==="LogicalExpression"){var v=g(p.left);if(v===f)return f;var F=g(p.right);if(F===f)return f;var k=p.operator;return k==="=="?v==F:k==="==="?v===F:k==="!="?v!=F:k==="!=="?v!==F:k==="+"?v+F:k==="-"?v-F:k==="*"?v*F:k==="/"?v/F:k==="%"?v%F:k==="<"?v<F:k==="<="?v<=F:k===">"?v>F:k===">="?v>=F:k==="|"?v|F:k==="&"?v&F:k==="^"?v^F:k==="&&"?v&&F:k==="||"?v||F:f}else{if(p.type==="Identifier")return{}.hasOwnProperty.call(l,p.name)?l[p.name]:f;if(p.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(p.type==="CallExpression"){var D=g(p.callee);if(D===f||typeof D!="function")return f;var V=p.callee.object?g(p.callee.object):f;V===f&&(V=null);for(var Q=[],S=0,v=p.arguments.length;S<v;S++){var R=g(p.arguments[S]);if(R===f)return f;Q.push(R)}return D.apply(V,Q)}else if(p.type==="MemberExpression"){var N=g(p.object);if(N===f||typeof N=="function")return f;if(p.property.type==="Identifier")return N[p.property.name];var x=g(p.property);return x===f?f:N[x]}else if(p.type==="ConditionalExpression"){var _=g(p.test);return _===f?f:g(_?p.consequent:p.alternate)}else if(p.type==="ExpressionStatement"){var _=g(p.expression);return _===f?f:_}else{if(p.type==="ReturnStatement")return g(p.argument);if(p.type==="FunctionExpression"){var fe=p.body.body,le={};Object.keys(l).forEach(function(Se){le[Se]=l[Se]});for(var S=0;S<p.params.length;S++){var ge=p.params[S];if(ge.type=="Identifier")l[ge.name]=null;else return f}for(var S in fe)if(g(fe[S])===f)return f;l=le;var me=Object.keys(l),he=me.map(function(Se){return l[Se]});return Function(me.join(", "),"return "+a(p)).apply(null,he)}else if(p.type==="TemplateLiteral"){for(var de="",S=0;S<p.expressions.length;S++)de+=g(p.quasis[S]),de+=g(p.expressions[S]);return de+=g(p.quasis[S]),de}else if(p.type==="TaggedTemplateExpression"){var Ie=g(p.tag),Re=p.quasi,Ce=Re.quasis.map(g),ze=Re.expressions.map(g);return Ie.apply(null,[Ce].concat(ze))}else return p.type==="TemplateElement"?p.value.cooked:f}}}(u);return d===f?void 0:d}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(jh);var tb=jh.exports;const nb=vu(tb),Mh=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let d="";f.includes("[")&&(d=JSON.stringify(f),o.push({dataIndex:d,jsonPath:f}));const g=f.split(".").slice(1);return{title:l,dataIndex:d||g,key:l}}):t&&(a=[...Object.keys(t).map(l=>({title:l,dataIndex:l,key:l}))]);let u;return i?(u=e.map(l=>{if(typeof l=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,syntheticProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l,internalDataForControls:f}}return{key:JSON.stringify(l),...l}}return{}}),o.length>0&&(u=u.map(l=>{const f={};return o.forEach(({dataIndex:d,jsonPath:g})=>{const p=nb.query(l,`$${g}`);f[d]=Array.isArray(p)&&p.length===1?p[0]:p}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&!Array.isArray(l)&&l.spec&&typeof l.spec=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,synthetichProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l.spec,internalDataForControls:f}}return{key:JSON.stringify(l.spec),...l.spec}}return{}}),{dataSource:u,columns:a}},rb=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:w})=>{if(!i&&!a)return null;const{dataSource:_,columns:A}=Mh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return I.jsx($h,{theme:e,baseprefix:t,dataSource:_,columns:A,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:w})};var ib="Expected a function",Uh=NaN,sb="[object Symbol]",ob=/^\s+|\s+$/g,ab=/^[-+]0x[0-9a-f]+$/i,ub=/^0b[01]+$/i,cb=/^0o[0-7]+$/i,lb=parseInt,fb=typeof Qn=="object"&&Qn&&Qn.Object===Object&&Qn,hb=typeof self=="object"&&self&&self.Object===Object&&self,db=fb||hb||Function("return this")(),pb=Object.prototype,gb=pb.toString,yb=Math.max,mb=Math.min,ec=function(){return db.Date.now()};function bb(e,t,n){var i,o,a,u,l,f,d=0,g=!1,p=!1,w=!0;if(typeof e!="function")throw new TypeError(ib);t=Vh(t)||0,tc(n)&&(g=!!n.leading,p="maxWait"in n,a=p?yb(Vh(n.maxWait)||0,t):a,w="trailing"in n?!!n.trailing:w);function _(k){var D=i,V=o;return i=o=void 0,d=k,u=e.apply(V,D),u}function A(k){return d=k,l=setTimeout(R,t),g?_(k):u}function S(k){var D=k-f,V=k-d,Q=t-D;return p?mb(Q,a-V):Q}function v(k){var D=k-f,V=k-d;return f===void 0||D>=t||D<0||p&&V>=a}function R(){var k=ec();if(v(k))return N(k);l=setTimeout(R,S(k))}function N(k){return l=void 0,w&&i?_(k):(i=o=void 0,u)}function x(){l!==void 0&&clearTimeout(l),d=0,i=f=o=l=void 0}function O(){return l===void 0?u:N(ec())}function F(){var k=ec(),D=v(k);if(i=arguments,o=this,f=k,D){if(l===void 0)return A(f);if(p)return l=setTimeout(R,t),_(f)}return l===void 0&&(l=setTimeout(R,t)),u}return F.cancel=x,F.flush=O,F}function tc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function vb(e){return!!e&&typeof e=="object"}function wb(e){return typeof e=="symbol"||vb(e)&&gb.call(e)==sb}function Vh(e){if(typeof e=="number")return e;if(wb(e))return Uh;if(tc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(ob,"");var n=ub.test(e);return n||cb.test(e)?lb(e.slice(2),n?2:8):ab.test(e)?Uh:+e}var Ab=bb;const qh=vu(Ab);function Sb(e){const t=Z.useRef(e);t.current=e,Z.useEffect(()=>()=>{t.current()},[])}function Eb(e,t=500,n){const i=Z.useRef();Sb(()=>{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 Wh=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return it.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},jr=({clusterName:e,namespace:t,apiGroup:n,typeName:i,verb:o,refetchInterval:a,enabler:u})=>wn.useQuery({queryKey:["usePermissions",e,t,n,i,o],queryFn:async()=>(await Wh({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),nc=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase()),Rs=(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)Rs(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},Ki=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&&Ki(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=>Ki(t))),e),Zo=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&&Zo(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=>Zo(t))),e);function Ls(e,t){const n=10**t;return Math.floor(e*n)/n}const xb=(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)},rc=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},ic=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},Ns=(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=Ns(u,t,n,l);o=o.concat(f)}}return o},ea=(e,t)=>{const n=bt.cloneDeep(e),i=Ns(t,"type","rangeInputCpu");return Ns(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,`${l}G`)}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,`${parseFloat(l)}`)}),n},sc=(e,t)=>{const n=bt.cloneDeep(e),i=Ns(t,"type","rangeInputCpu");return Ns(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,ic(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=bt.get(n,u);(l||l===0)&&bt.set(n,u,rc(l))}),n},oc=(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,...oc(o,a)]:[a]}),Kh=e=>e.map((t,n)=>e.slice(0,n+1));function Cb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hh(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 zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hh(Object(n),!0).forEach(function(i){Cb(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _b(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 kb(e,t){if(e==null)return{};var n=_b(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 Tb(e,t){return Ob(e)||Ib(e,t)||Fb(e,t)||Bb()}function Ob(e){if(Array.isArray(e))return e}function Ib(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 Fb(e,t){if(e){if(typeof e=="string")return Gh(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 Gh(e,t)}}function Gh(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 Bb(){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 Db(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jh(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 Yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jh(Object(n),!0).forEach(function(i){Db(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jh(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.reduceRight(function(o,a){return a(o)},i)}}function $s(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function ta(e){return{}.toString.call(e).includes("Object")}function Rb(e){return!Object.keys(e).length}function js(e){return typeof e=="function"}function Lb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Nb(e,t){return ta(t)||Mr("changeType"),Object.keys(t).some(function(n){return!Lb(e,n)})&&Mr("changeField"),t}function $b(e){js(e)||Mr("selectorType")}function jb(e){js(e)||ta(e)||Mr("handlerType"),ta(e)&&Object.values(e).some(function(t){return!js(t)})&&Mr("handlersType")}function Mb(e){e||Mr("initialIsRequired"),ta(e)||Mr("initialType"),Rb(e)&&Mr("initialContent")}function Ub(e,t){throw new Error(e[t]||e.default)}var Vb={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"},Mr=$s(Ub)(Vb),na={changes:Nb,selector:$b,handler:jb,initial:Mb};function qb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};na.initial(e),na.handler(t);var n={current:e},i=$s(Hb)(n,t),o=$s(Kb)(n),a=$s(na.changes)(e),u=$s(Wb)(n);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return na.selector(d),d(n.current)}function f(d){Pb(i,o,a,u)(d)}return[l,f]}function Wb(e,t){return js(t)?t(e.current):t}function Kb(e,t){return e.current=Yh(Yh({},e.current),t),t}function Hb(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 zb={create:qb},Gb={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Jb(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 Yb(e){return{}.toString.call(e).includes("Object")}function Xb(e){return e||Qh("configIsRequired"),Yb(e)||Qh("configType"),e.urls?(Qb(),{paths:{vs:e.urls.monacoBase}}):e}function Qb(){console.warn(Xh.deprecation)}function Zb(e,t){throw new Error(e[t]||e.default)}var Xh={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
+ `)+" "+ae[1]:ae[0]+X+" "+J.join(", ")+" "+ae[1]}function T(J){return Array.isArray(J)}o.isArray=T;function F(J){return typeof J=="boolean"}o.isBoolean=F;function P(J){return J===null}o.isNull=P;function O(J){return J==null}o.isNullOrUndefined=O;function W(J){return typeof J=="number"}o.isNumber=W;function Y(J){return typeof J=="string"}o.isString=Y;function ce(J){return typeof J=="symbol"}o.isSymbol=ce;function le(J){return J===void 0}o.isUndefined=le;function ge(J){return ye(J)&&Ee(J)==="[object RegExp]"}o.isRegExp=ge;function ye(J){return typeof J=="object"&&J!==null}o.isObject=ye;function Ce(J){return ye(J)&&Ee(J)==="[object Date]"}o.isDate=Ce;function pe(J){return ye(J)&&(Ee(J)==="[object Error]"||J instanceof Error)}o.isError=pe;function Re(J){return typeof J=="function"}o.isFunction=Re;function Se(J){return J===null||typeof J=="boolean"||typeof J=="number"||typeof J=="string"||typeof J=="symbol"||typeof J>"u"}o.isPrimitive=Se,o.isBuffer=n("./support/isBuffer");function Ee(J){return Object.prototype.toString.call(J)}function He(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 me(){var J=new Date,X=[He(J.getHours()),He(J.getMinutes()),He(J.getSeconds())].join(":");return[J.getDate(),Ae[J.getMonth()],X].join(" ")}o.log=function(){console.log("%s - %s",me(),o.format.apply(o,arguments))},o.inherits=n("inherits"),o._extend=function(J,X){if(!X||!ye(X))return J;for(var ae=Object.keys(X),Be=ae.length;Be--;)J[ae[Be]]=X[ae[Be]];return J};function Me(J,X){return Object.prototype.hasOwnProperty.call(J,X)}}).call(this,n("_process"),typeof Xn<"u"?Xn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,o){},{}],13:[function(n,i,o){(function(a){function u(g,p){for(var v=0,_=g.length-1;_>=0;_--){var S=g[_];S==="."?g.splice(_,1):S===".."?(g.splice(_,1),v++):v&&(g.splice(_,1),v--)}if(p)for(;v--;v)g.unshift("..");return g}o.resolve=function(){for(var g="",p=!1,v=arguments.length-1;v>=-1&&!p;v--){var _=v>=0?arguments[v]:a.cwd();if(typeof _!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!_)continue;g=_+"/"+g,p=_.charAt(0)==="/"}return g=u(f(g.split("/"),function(S){return!!S}),!p).join("/"),(p?"/":"")+g||"."},o.normalize=function(g){var p=o.isAbsolute(g),v=d(g,-1)==="/";return g=u(f(g.split("/"),function(_){return!!_}),!p).join("/"),!g&&!p&&(g="."),g&&v&&(g+="/"),(p?"/":"")+g},o.isAbsolute=function(g){return g.charAt(0)==="/"},o.join=function(){var g=Array.prototype.slice.call(arguments,0);return o.normalize(f(g,function(p,v){if(typeof p!="string")throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},o.relative=function(g,p){g=o.resolve(g).substr(1),p=o.resolve(p).substr(1);function v(C){for(var T=0;T<C.length&&C[T]==="";T++);for(var F=C.length-1;F>=0&&C[F]==="";F--);return T>F?[]:C.slice(T,F-T+1)}for(var _=v(g.split("/")),S=v(p.split("/")),E=Math.min(_.length,S.length),b=E,D=0;D<E;D++)if(_[D]!==S[D]){b=D;break}for(var j=[],D=b;D<_.length;D++)j.push("..");return j=j.concat(S.slice(b)),j.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var p=g.charCodeAt(0),v=p===47,_=-1,S=!0,E=g.length-1;E>=1;--E)if(p=g.charCodeAt(E),p===47){if(!S){_=E;break}}else S=!1;return _===-1?v?"/":".":v&&_===1?"/":g.slice(0,_)};function l(g){typeof g!="string"&&(g=g+"");var p=0,v=-1,_=!0,S;for(S=g.length-1;S>=0;--S)if(g.charCodeAt(S)===47){if(!_){p=S+1;break}}else v===-1&&(_=!1,v=S+1);return v===-1?"":g.slice(p,v)}o.basename=function(g,p){var v=l(g);return p&&v.substr(-1*p.length)===p&&(v=v.substr(0,v.length-p.length)),v},o.extname=function(g){typeof g!="string"&&(g=g+"");for(var p=-1,v=0,_=-1,S=!0,E=0,b=g.length-1;b>=0;--b){var D=g.charCodeAt(b);if(D===47){if(!S){v=b+1;break}continue}_===-1&&(S=!1,_=b+1),D===46?p===-1?p=b:E!==1&&(E=1):p!==-1&&(E=-1)}return p===-1||_===-1||E===0||E===1&&p===_-1&&p===v+1?"":g.slice(p,_)};function f(g,p){if(g.filter)return g.filter(p);for(var v=[],_=0;_<g.length;_++)p(g[_],_,g)&&v.push(g[_]);return v}var d="ab".substr(-1)==="b"?function(g,p,v){return g.substr(p,v)}:function(g,p,v){return p<0&&(p=g.length+p),g.substr(p,v)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,o){var a=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=d}catch{l=d}})();function g(T){if(u===setTimeout)return setTimeout(T,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(T,0);try{return u(T,0)}catch{try{return u.call(null,T,0)}catch{return u.call(this,T,0)}}}function p(T){if(l===clearTimeout)return clearTimeout(T);if((l===d||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(T);try{return l(T)}catch{try{return l.call(null,T)}catch{return l.call(this,T)}}}var v=[],_=!1,S,E=-1;function b(){!_||!S||(_=!1,S.length?v=S.concat(v):E=-1,v.length&&D())}function D(){if(!_){var T=g(b);_=!0;for(var F=v.length;F;){for(S=v,v=[];++E<F;)S&&S[E].run();E=-1,F=v.length}S=null,_=!1,p(T)}}a.nextTick=function(T){var F=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)F[P-1]=arguments[P];v.push(new j(T,F)),v.length===1&&!_&&g(D)};function j(T,F){this.fun=T,this.array=F}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 C(){}a.on=C,a.addListener=C,a.once=C,a.off=C,a.removeListener=C,a.removeAllListeners=C,a.emit=C,a.prependListener=C,a.prependOnceListener=C,a.listeners=function(T){return[]},a.binding=function(T){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(T){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],15:[function(n,i,o){var a=n("escodegen").generate;i.exports=function(u,l){l||(l={});var f={},d=function g(p,v){if(p.type==="Literal")return p.value;if(p.type==="UnaryExpression"){var _=g(p.argument);return p.operator==="+"?+_:p.operator==="-"?-_:p.operator==="~"?~_:p.operator==="!"?!_:f}else if(p.type==="ArrayExpression"){for(var S=[],E=0,b=p.elements.length;E<b;E++){var D=g(p.elements[E]);if(D===f)return f;S.push(D)}return S}else if(p.type==="ObjectExpression"){for(var j={},E=0;E<p.properties.length;E++){var C=p.properties[E],T=C.value===null?C.value:g(C.value);if(T===f)return f;j[C.key.value||C.key.name]=T}return j}else if(p.type==="BinaryExpression"||p.type==="LogicalExpression"){var b=g(p.left);if(b===f)return f;var F=g(p.right);if(F===f)return f;var P=p.operator;return P==="=="?b==F:P==="==="?b===F:P==="!="?b!=F:P==="!=="?b!==F:P==="+"?b+F:P==="-"?b-F:P==="*"?b*F:P==="/"?b/F:P==="%"?b%F:P==="<"?b<F:P==="<="?b<=F:P===">"?b>F:P===">="?b>=F:P==="|"?b|F:P==="&"?b&F:P==="^"?b^F:P==="&&"?b&&F:P==="||"?b||F:f}else{if(p.type==="Identifier")return{}.hasOwnProperty.call(l,p.name)?l[p.name]:f;if(p.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(p.type==="CallExpression"){var O=g(p.callee);if(O===f||typeof O!="function")return f;var W=p.callee.object?g(p.callee.object):f;W===f&&(W=null);for(var Y=[],E=0,b=p.arguments.length;E<b;E++){var D=g(p.arguments[E]);if(D===f)return f;Y.push(D)}return O.apply(W,Y)}else if(p.type==="MemberExpression"){var j=g(p.object);if(j===f||typeof j=="function")return f;if(p.property.type==="Identifier")return j[p.property.name];var C=g(p.property);return C===f?f:j[C]}else if(p.type==="ConditionalExpression"){var _=g(p.test);return _===f?f:g(_?p.consequent:p.alternate)}else if(p.type==="ExpressionStatement"){var _=g(p.expression);return _===f?f:_}else{if(p.type==="ReturnStatement")return g(p.argument);if(p.type==="FunctionExpression"){var ce=p.body.body,le={};Object.keys(l).forEach(function(Ae){le[Ae]=l[Ae]});for(var E=0;E<p.params.length;E++){var ge=p.params[E];if(ge.type=="Identifier")l[ge.name]=null;else return f}for(var E in ce)if(g(ce[E])===f)return f;l=le;var ye=Object.keys(l),Ce=ye.map(function(Ae){return l[Ae]});return Function(ye.join(", "),"return "+a(p)).apply(null,Ce)}else if(p.type==="TemplateLiteral"){for(var pe="",E=0;E<p.expressions.length;E++)pe+=g(p.quasis[E]),pe+=g(p.expressions[E]);return pe+=g(p.quasis[E]),pe}else if(p.type==="TaggedTemplateExpression"){var Re=g(p.tag),Se=p.quasi,Ee=Se.quasis.map(g),He=Se.expressions.map(g);return Re.apply(null,[Ee].concat(He))}else return p.type==="TemplateElement"?p.value.cooked:f}}}(u);return d===f?void 0:d}},{escodegen:12}],jsonpath:[function(n,i,o){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(Yh);var h2=Yh.exports;const Qh=Su(h2),Xh=({dataItems:e,resourceSchema:t,dataForControls:n,additionalPrinterColumns:i})=>{const o=[];let a=[];i?a=i.map(({name:l,jsonPath:f})=>{let d="";f.includes("[")&&(d=JSON.stringify(f),o.push({dataIndex:d,jsonPath:f}));const g=f.split(".").slice(1);return{title:l,dataIndex:d||g,key:l}}):t&&(a=[...Object.keys(t).map(l=>({title:l,dataIndex:l,key:l}))]);let u;return i?(u=e.map(l=>{if(typeof l=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,syntheticProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l,internalDataForControls:f}}return{key:JSON.stringify(l),...l}}return{}}),o.length>0&&(u=u.map(l=>{const f={};return o.forEach(({dataIndex:d,jsonPath:g})=>{const p=Qh.query(l,`$${g}`);f[d]=Array.isArray(p)&&p.length===1?p[0]:p}),typeof l=="object"?{...l,...f}:{...f}}))):u=e.map(l=>{if(typeof l=="object"&&!Array.isArray(l)&&l.spec&&typeof l.spec=="object"){if(!Array.isArray(l)&&l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&l.metadata.name&&n){const f={cluster:n.cluster,synthetichProject:n.syntheticProject,pathPrefix:n.pathPrefix,apiGroupAndVersion:n.apiVersion,typeName:n.typeName,entryName:l.metadata.name,namespace:l.metadata.namespace||void 0,backlink:n.backlink,deletePathPrefix:n.deletePathPrefix,onDeleteHandle:n.onDeleteHandle,permissions:n.permissions};return{key:l.metadata.name,...l.spec,internalDataForControls:f}}return{key:JSON.stringify(l.spec),...l.spec}}return{}}),{dataSource:u,columns:a}},d2=({theme:e,baseprefix:t,dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:v})=>{if(!i&&!a)return null;const{dataSource:_,columns:S}=Xh({dataItems:n,resourceSchema:i,dataForControls:o,additionalPrinterColumns:a});return A.jsx(Jh,{theme:e,baseprefix:t,dataSource:_,columns:S,pathToNavigate:u,recordKeysForNavigation:l,additionalPrinterColumnsUndefinedValues:f,additionalPrinterColumnsTrimLengths:d,additionalPrinterColumnsColWidths:g,selectData:p,tableProps:v})};var p2="Expected a function",Zh=NaN,g2="[object Symbol]",y2=/^\s+|\s+$/g,m2=/^[-+]0x[0-9a-f]+$/i,w2=/^0b[01]+$/i,b2=/^0o[0-7]+$/i,v2=parseInt,A2=typeof Xn=="object"&&Xn&&Xn.Object===Object&&Xn,S2=typeof self=="object"&&self&&self.Object===Object&&self,E2=A2||S2||Function("return this")(),x2=Object.prototype,C2=x2.toString,_2=Math.max,k2=Math.min,ic=function(){return E2.Date.now()};function T2(e,t,n){var i,o,a,u,l,f,d=0,g=!1,p=!1,v=!0;if(typeof e!="function")throw new TypeError(p2);t=ed(t)||0,sc(n)&&(g=!!n.leading,p="maxWait"in n,a=p?_2(ed(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function _(P){var O=i,W=o;return i=o=void 0,d=P,u=e.apply(W,O),u}function S(P){return d=P,l=setTimeout(D,t),g?_(P):u}function E(P){var O=P-f,W=P-d,Y=t-O;return p?k2(Y,a-W):Y}function b(P){var O=P-f,W=P-d;return f===void 0||O>=t||O<0||p&&W>=a}function D(){var P=ic();if(b(P))return j(P);l=setTimeout(D,E(P))}function j(P){return l=void 0,v&&i?_(P):(i=o=void 0,u)}function C(){l!==void 0&&clearTimeout(l),d=0,i=f=o=l=void 0}function T(){return l===void 0?u:j(ic())}function F(){var P=ic(),O=b(P);if(i=arguments,o=this,f=P,O){if(l===void 0)return S(f);if(p)return l=setTimeout(D,t),_(f)}return l===void 0&&(l=setTimeout(D,t)),u}return F.cancel=C,F.flush=T,F}function sc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function O2(e){return!!e&&typeof e=="object"}function I2(e){return typeof e=="symbol"||O2(e)&&C2.call(e)==g2}function ed(e){if(typeof e=="number")return e;if(I2(e))return Zh;if(sc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=sc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(y2,"");var n=w2.test(e);return n||b2.test(e)?v2(e.slice(2),n?2:8):m2.test(e)?Zh:+e}var F2=T2;const td=Su(F2);function B2(e){const t=Z.useRef(e);t.current=e,Z.useEffect(()=>()=>{t.current()},[])}function D2(e,t=500,n){const i=Z.useRef();B2(()=>{i.current&&i.current.cancel()});const o=Z.useMemo(()=>{const a=td(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=td(e,t,n)},[e,t,n]),o}const nd=async({clusterName:e,body:t})=>{const n=JSON.stringify({apiVersion:"authorization.k8s.io/v1",kind:"SelfSubjectAccessReview",spec:{resourceAttributes:{...t}}});return nt.post(`/api/clusters/${e}/k8s/apis/authorization.k8s.io/v1/selfsubjectaccessreviews`,n,{method:"POST",headers:{"Content-Type":"application/json"}})},qr=({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 nd({clusterName:e,body:{namespace:t,group:n,resource:i,verb:o}})).data,refetchInterval:a!==void 0?a:5e3,enabled:u||!0}),oc=(e,t)=>(typeof t?.label=="string"?t.label:"").toLowerCase().includes(e.toLowerCase()),js=(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)js(e[a],t,u),Object.keys(e[a]).length===0&&!o(u)&&delete e[a];else{const l=(typeof e[a]=="string"||Array.isArray(e[a]))&&e[a].length===0,f=e[a]===void 0;(l||f)&&!o(u)&&delete e[a]}}),e},Gi=e=>(typeof e=="object"&&!Array.isArray(e)&&e!==null&&Object.keys(e).forEach(t=>{t==="nodeNameBecauseOfSuddenBug"&&(e.nodeName=e[t],delete e[t]),typeof e[t]=="object"&&!Array.isArray(e[t])&&e[t]!==null&&Gi(e[t])}),typeof e=="object"&&Array.isArray(e)&&e!==null&&typeof typeof e[0]=="object"&&!Array.isArray(e[0])&&e[0]!==null&&(e=e.map(t=>Gi(t))),e),na=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&&na(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=>na(t))),e);function Ns(e,t){const n=10**t;return Math.floor(e*n)/n}const P2=(e,t)=>{let n=parseFloat(t.replace(/[a-zA-Zа-яА-Я]/g,""));if(e==="cpu")return t.endsWith("m")&&(n/=1e3),Ns(n,1);if(t.endsWith("m"))n/=1e3;else if(t.endsWith("k"))n/=1e6;else if(t.endsWith("M"))n/=1e3;else if(t.endsWith("G"))n/=1;else if(t.endsWith("T"))n*=1e3;else if(t.endsWith("Ki"))n/=1024,n/=1e6;else if(t.endsWith("Mi"))n/=1e3,n/=1e3;else if(/^\d+(\.\d+)?$/.test(t))n/=1e9;else throw new Error("Invalid value");return Ns(n,1)},ac=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));return e.endsWith("m")&&(t/=1e3),Ns(t,1)}return 0},uc=e=>{if(typeof e=="string"){let t=parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g,""));if(e.endsWith("k"))t/=1e6;else if(e.endsWith("m"))t/=1e3;else if(e.endsWith("M"))t/=1e3;else if(e.endsWith("G"))t/=1;else if(e.endsWith("T"))t*=1e3;else if(e.endsWith("P"))t*=1e6;else if(e.endsWith("E"))t*=1e9;else if(e.endsWith("Ki"))t*=1024/1e9;else if(e.endsWith("Mi"))t/=1048.576;else if(e.endsWith("Gi"))t*=1.073741824;else if(e.endsWith("Ti"))t*=1.099511628;else if(e.endsWith("Pi"))t*=1.125899907;else if(e.endsWith("Ei"))t*=1.152921505;else throw new Error("Invalid value");return Ns(t,1)}return 0},$s=(e,t,n,i=[])=>{let o=[];if(typeof e!="object"||e===null)return o;e[t]===n&&o.push([...i]);for(const a in e)if(e.hasOwnProperty(a)){const u=e[a];if(typeof u=="object"&&u!==null){const l=[...i,a],f=$s(u,t,n,l);o=o.concat(f)}}return o},ra=(e,t)=>{const n=yt.cloneDeep(e),i=$s(t,"type","rangeInputCpu");return $s(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,`${l}G`)}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,`${parseFloat(l)}`)}),n},cc=(e,t)=>{const n=yt.cloneDeep(e),i=$s(t,"type","rangeInputCpu");return $s(t,"type","rangeInputMemory").forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,uc(l))}),i.forEach(a=>{const u=a.filter(f=>typeof f=="string").filter(f=>f!=="properties"),l=yt.get(n,u);(l||l===0)&&yt.set(n,u,ac(l))}),n},lc=(e,t=[])=>(Array.isArray(e)?e.map((i,o)=>[o,i]):Object.entries(e)).flatMap(([i,o])=>{const a=[...t,i];return typeof o=="object"&&o!==null?[a,...lc(o,a)]:[a]}),rd=e=>e.map((t,n)=>e.slice(0,n+1));function R2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?id(Object(n),!0).forEach(function(i){R2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function L2(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function j2(e,t){if(e==null)return{};var n=L2(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 N2(e,t){return $2(e)||M2(e,t)||U2(e,t)||V2()}function $2(e){if(Array.isArray(e))return e}function M2(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 U2(e,t){if(e){if(typeof e=="string")return od(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return od(e,t)}}function od(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function V2(){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 q2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ad(Object(n),!0).forEach(function(i){q2(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function W2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.reduceRight(function(o,a){return a(o)},i)}}function Ms(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return t.apply(n,[].concat(o,l))}}}function ia(e){return{}.toString.call(e).includes("Object")}function K2(e){return!Object.keys(e).length}function Us(e){return typeof e=="function"}function H2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function z2(e,t){return ia(t)||Wr("changeType"),Object.keys(t).some(function(n){return!H2(e,n)})&&Wr("changeField"),t}function G2(e){Us(e)||Wr("selectorType")}function J2(e){Us(e)||ia(e)||Wr("handlerType"),ia(e)&&Object.values(e).some(function(t){return!Us(t)})&&Wr("handlersType")}function Y2(e){e||Wr("initialIsRequired"),ia(e)||Wr("initialType"),K2(e)&&Wr("initialContent")}function Q2(e,t){throw new Error(e[t]||e.default)}var X2={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"},Wr=Ms(Q2)(X2),sa={changes:z2,selector:G2,handler:J2,initial:Y2};function Z2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};sa.initial(e),sa.handler(t);var n={current:e},i=Ms(nw)(n,t),o=Ms(tw)(n),a=Ms(sa.changes)(e),u=Ms(ew)(n);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return sa.selector(d),d(n.current)}function f(d){W2(i,o,a,u)(d)}return[l,f]}function ew(e,t){return Us(t)?t(e.current):t}function tw(e,t){return e.current=ud(ud({},e.current),t),t}function nw(e,t,n){return Us(t)?t(e.current):Object.keys(n).forEach(function(i){var o;return(o=t[i])===null||o===void 0?void 0:o.call(t,e.current[i])}),n}var rw={create:Z2},iw={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function sw(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 ow(e){return{}.toString.call(e).includes("Object")}function aw(e){return e||ld("configIsRequired"),ow(e)||ld("configType"),e.urls?(uw(),{paths:{vs:e.urls.monacoBase}}):e}function uw(){console.warn(cd.deprecation)}function cw(e,t){throw new Error(e[t]||e.default)}var cd={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
241
241
  You are using deprecated way of configuration.
242
242
 
243
243
  Instead of using
@@ -246,151 +246,151 @@ 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
- `},Qh=Jb(Zb)(Xh),ev={config:Xb},tv=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 Zh(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Zh(e[n],t[n]))}),zh(zh({},e),t)}var nv={type:"cancelation",msg:"operation is manually canceled"};function ac(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(nv):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var rv=zb.create({config:Gb,isInitialized:!1,resolve:null,reject:null,monaco:null}),ed=Tb(rv,2),Ms=ed[0],ra=ed[1];function iv(e){var t=ev.config(e),n=t.monaco,i=kb(t,["monaco"]);ra(function(o){return{config:Zh(o.config,i),monaco:n}})}function sv(){var e=Ms(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),ac(uc);if(window.monaco&&window.monaco.editor)return td(window.monaco),e.resolve(window.monaco),ac(uc);tv(ov,uv)(cv)}return ac(uc)}function ov(e){return document.body.appendChild(e)}function av(e){var t=document.createElement("script");return e&&(t.src=e),t}function uv(e){var t=Ms(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=av("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function cv(){var e=Ms(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){td(n),e.resolve(n)},function(n){e.reject(n)})}function td(e){Ms().monaco||ra({monaco:e})}function lv(){return Ms(function(e){var t=e.monaco;return t})}var uc=new Promise(function(e,t){return ra({resolve:e,reject:t})}),Us={config:iv,init:sv,__getMonacoInstance:lv},fv={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},cc=fv,hv={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},dv=hv;function pv({children:e}){return Z.createElement("div",{style:dv.container},e)}var gv=pv,yv=gv;function mv({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Z.createElement("section",{style:{...cc.wrapper,width:e,height:t},...u},!n&&Z.createElement(yv,null,i),Z.createElement("div",{ref:o,style:{...cc.fullWidth,...!n&&cc.hide},className:a}))}var bv=mv,nd=Z.memo(bv);function vv(e){Z.useEffect(e,[])}var lc=vv;function wv(e,t,n=!0){let i=Z.useRef(!0);Z.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=wv;function Vs(){}function Hi(e,t,n,i){return Av(e,i)||Sv(e,t,n,i)}function Av(e,t){return e.editor.getModel(rd(e,t))}function Sv(e,t,n,i){return e.editor.createModel(t,n,i?rd(e,i):void 0)}function rd(e,t){return e.Uri.parse(t)}function Ev({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:d="light",loading:g="Loading...",options:p={},height:w="100%",width:_="100%",className:A,wrapperProps:S={},beforeMount:v=Vs,onMount:R=Vs}){let[N,x]=Z.useState(!1),[O,F]=Z.useState(!0),k=Z.useRef(null),D=Z.useRef(null),V=Z.useRef(null),Q=Z.useRef(R),fe=Z.useRef(v),le=Z.useRef(!1);lc(()=>{let de=Us.init();return de.then(Ie=>(D.current=Ie)&&F(!1)).catch(Ie=>Ie?.type!=="cancelation"&&console.error("Monaco initialization: error:",Ie)),()=>k.current?he():de.cancel()}),_n(()=>{if(k.current&&D.current){let de=k.current.getOriginalEditor(),Ie=Hi(D.current,e||"",i||n||"text",a||"");Ie!==de.getModel()&&de.setModel(Ie)}},[a],N),_n(()=>{if(k.current&&D.current){let de=k.current.getModifiedEditor(),Ie=Hi(D.current,t||"",o||n||"text",u||"");Ie!==de.getModel()&&de.setModel(Ie)}},[u],N),_n(()=>{let de=k.current.getModifiedEditor();de.getOption(D.current.editor.EditorOption.readOnly)?de.setValue(t||""):t!==de.getValue()&&(de.executeEdits("",[{range:de.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),de.pushUndoStop())},[t],N),_n(()=>{k.current?.getModel()?.original.setValue(e||"")},[e],N),_n(()=>{let{original:de,modified:Ie}=k.current.getModel();D.current.editor.setModelLanguage(de,i||n||"text"),D.current.editor.setModelLanguage(Ie,o||n||"text")},[n,i,o],N),_n(()=>{D.current?.editor.setTheme(d)},[d],N),_n(()=>{k.current?.updateOptions(p)},[p],N);let ge=Z.useCallback(()=>{if(!D.current)return;fe.current(D.current);let de=Hi(D.current,e||"",i||n||"text",a||""),Ie=Hi(D.current,t||"",o||n||"text",u||"");k.current?.setModel({original:de,modified:Ie})},[n,t,o,e,i,a,u]),me=Z.useCallback(()=>{!le.current&&V.current&&(k.current=D.current.editor.createDiffEditor(V.current,{automaticLayout:!0,...p}),ge(),D.current?.editor.setTheme(d),x(!0),le.current=!0)},[p,d,ge]);Z.useEffect(()=>{N&&Q.current(k.current,D.current)},[N]),Z.useEffect(()=>{!O&&!N&&me()},[O,N,me]);function he(){let de=k.current?.getModel();l||de?.original?.dispose(),f||de?.modified?.dispose(),k.current?.dispose()}return Z.createElement(nd,{width:_,height:w,isEditorReady:N,loading:g,_ref:V,className:A,wrapperProps:S})}var xv=Ev,Cv=Z.memo(xv);function _v(){let[e,t]=Z.useState(Us.__getMonacoInstance());return lc(()=>{let n;return e||(n=Us.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var kv=_v;function Tv(e){let t=Z.useRef();return Z.useEffect(()=>{t.current=e},[e]),t.current}var Ov=Tv,ia=new Map;function Iv({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:d={},overrideServices:g={},saveViewState:p=!0,keepCurrentModel:w=!1,width:_="100%",height:A="100%",className:S,wrapperProps:v={},beforeMount:R=Vs,onMount:N=Vs,onChange:x,onValidate:O=Vs}){let[F,k]=Z.useState(!1),[D,V]=Z.useState(!0),Q=Z.useRef(null),fe=Z.useRef(null),le=Z.useRef(null),ge=Z.useRef(N),me=Z.useRef(R),he=Z.useRef(),de=Z.useRef(i),Ie=Ov(a),Re=Z.useRef(!1),Ce=Z.useRef(!1);lc(()=>{let ye=Us.init();return ye.then(et=>(Q.current=et)&&V(!1)).catch(et=>et?.type!=="cancelation"&&console.error("Monaco initialization: error:",et)),()=>fe.current?Se():ye.cancel()}),_n(()=>{let ye=Hi(Q.current,e||i||"",t||o||"",a||n||"");ye!==fe.current?.getModel()&&(p&&ia.set(Ie,fe.current?.saveViewState()),fe.current?.setModel(ye),p&&fe.current?.restoreViewState(ia.get(a)))},[a],F),_n(()=>{fe.current?.updateOptions(d)},[d],F),_n(()=>{!fe.current||i===void 0||(fe.current.getOption(Q.current.editor.EditorOption.readOnly)?fe.current.setValue(i):i!==fe.current.getValue()&&(Ce.current=!0,fe.current.executeEdits("",[{range:fe.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),fe.current.pushUndoStop(),Ce.current=!1))},[i],F),_n(()=>{let ye=fe.current?.getModel();ye&&o&&Q.current?.editor.setModelLanguage(ye,o)},[o],F),_n(()=>{l!==void 0&&fe.current?.revealLine(l)},[l],F),_n(()=>{Q.current?.editor.setTheme(u)},[u],F);let ze=Z.useCallback(()=>{if(!(!le.current||!Q.current)&&!Re.current){me.current(Q.current);let ye=a||n,et=Hi(Q.current,i||e||"",t||o||"",ye||"");fe.current=Q.current?.editor.create(le.current,{model:et,automaticLayout:!0,...d},g),p&&fe.current.restoreViewState(ia.get(ye)),Q.current.editor.setTheme(u),l!==void 0&&fe.current.revealLine(l),k(!0),Re.current=!0}},[e,t,n,i,o,a,d,g,p,u,l]);Z.useEffect(()=>{F&&ge.current(fe.current,Q.current)},[F]),Z.useEffect(()=>{!D&&!F&&ze()},[D,F,ze]),de.current=i,Z.useEffect(()=>{F&&x&&(he.current?.dispose(),he.current=fe.current?.onDidChangeModelContent(ye=>{Ce.current||x(fe.current.getValue(),ye)}))},[F,x]),Z.useEffect(()=>{if(F){let ye=Q.current.editor.onDidChangeMarkers(et=>{let J=fe.current.getModel()?.uri;if(J&&et.find(X=>X.path===J.path)){let X=Q.current.editor.getModelMarkers({resource:J});O?.(X)}});return()=>{ye?.dispose()}}return()=>{}},[F,O]);function Se(){he.current?.dispose(),w?p&&ia.set(a,fe.current.saveViewState()):fe.current.getModel()?.dispose(),fe.current.dispose()}return Z.createElement(nd,{width:_,height:A,isEditorReady:F,loading:f,_ref:le,className:S,wrapperProps:v})}var Fv=Iv,id=Z.memo(Fv),fc=id;const Bv=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Cv,Editor:id,default:fc,loader:Us,useMonaco:kv},Symbol.toStringTag,{value:"Module"})),hc=Symbol.for("yaml.alias"),dc=Symbol.for("yaml.document"),Ur=Symbol.for("yaml.map"),sd=Symbol.for("yaml.pair"),gr=Symbol.for("yaml.scalar"),zi=Symbol.for("yaml.seq"),jn=Symbol.for("yaml.node.type"),Gi=e=>!!e&&typeof e=="object"&&e[jn]===hc,qs=e=>!!e&&typeof e=="object"&&e[jn]===dc,Ws=e=>!!e&&typeof e=="object"&&e[jn]===Ur,Kt=e=>!!e&&typeof e=="object"&&e[jn]===sd,kt=e=>!!e&&typeof e=="object"&&e[jn]===gr,Ks=e=>!!e&&typeof e=="object"&&e[jn]===zi;function Ht(e){if(e&&typeof e=="object")switch(e[jn]){case Ur:case zi:return!0}return!1}function zt(e){if(e&&typeof e=="object")switch(e[jn]){case hc:case Ur:case gr:case zi:return!0}return!1}const Dv=e=>(kt(e)||Ht(e))&&!!e.anchor,hi=Symbol("break visit"),Pv=Symbol("skip children"),Hs=Symbol("remove node");function di(e,t){const n=Rv(t);qs(e)?Ji(null,e.contents,n,Object.freeze([e]))===Hs&&(e.contents=null):Ji(null,e,n,Object.freeze([]))}di.BREAK=hi,di.SKIP=Pv,di.REMOVE=Hs;function Ji(e,t,n,i){const o=Lv(e,t,n,i);if(zt(o)||Kt(o))return Nv(e,i,o),Ji(e,o,n,i);if(typeof o!="symbol"){if(Ht(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Ji(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===hi)return hi;u===Hs&&(t.items.splice(a,1),a-=1)}}}else if(Kt(t)){i=Object.freeze(i.concat(t));const a=Ji("key",t.key,n,i);if(a===hi)return hi;a===Hs&&(t.key=null);const u=Ji("value",t.value,n,i);if(u===hi)return hi;u===Hs&&(t.value=null)}}return o}function Rv(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 Lv(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Ws(t))return n.Map?.(e,t,i);if(Ks(t))return n.Seq?.(e,t,i);if(Kt(t))return n.Pair?.(e,t,i);if(kt(t))return n.Scalar?.(e,t,i);if(Gi(t))return n.Alias?.(e,t,i)}function Nv(e,t,n){const i=t[t.length-1];if(Ht(i))i.items[e]=n;else if(Kt(i))e==="key"?i.key=n:i.value=n;else if(qs(i))i.contents=n;else{const o=Gi(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const $v={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},jv=e=>e.replace(/[!,[\]{}]/g,t=>$v[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+jv(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&&zt(t.contents)){const a={};di(t.contents,(u,l)=>{zt(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 od(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 ad(e){const t=new Set;return di(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function ud(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Mv(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=ad(e));const u=ud(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(kt(u.node)||Ht(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 Yi(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=Yi(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=Yi(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=Yi(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=Yi(e,i,o,a);u===void 0?delete i[o]:u!==a&&(i[o]=u)}return e.call(t,n,i)}function Mn(e,t,n){if(Array.isArray(e))return e.map((i,o)=>Mn(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Dv(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 pc{constructor(t){Object.defineProperty(this,jn,{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(!qs(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=Mn(this,"",u);if(typeof o=="function")for(const{count:f,res:d}of u.anchors.values())o(d,f);return typeof a=="function"?Yi(a,{"":l},"",l):l}}class gc extends pc{constructor(t){super(hc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return di(t,{Node:(i,o)=>{if(o===this)return di.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||(Mn(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(od(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(Gi(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(Ht(t)){let i=0;for(const o of t.items){const a=sa(e,o,n);a>i&&(i=a)}return i}else if(Kt(t)){const i=sa(e,t.key,n),o=sa(e,t.value,n);return Math.max(i,o)}return 1}const cd=e=>!e||typeof e!="function"&&typeof e!="object";class We extends pc{constructor(t){super(gr),this.value=t}toJSON(t,n){return n?.keep?this.value:Mn(this.value,t,n)}toString(){return String(this.value)}}We.BLOCK_FOLDED="BLOCK_FOLDED",We.BLOCK_LITERAL="BLOCK_LITERAL",We.PLAIN="PLAIN",We.QUOTE_DOUBLE="QUOTE_DOUBLE",We.QUOTE_SINGLE="QUOTE_SINGLE";const Uv="tag:yaml.org,2002:";function Vv(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 zs(e,t,n){if(qs(e)&&(e=e.contents),zt(e))return e;if(Kt(e)){const p=n.schema[Ur].createNode?.(n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:a,schema:u,sourceObjects:l}=n;let f;if(i&&e&&typeof e=="object"){if(f=l.get(e),f)return f.anchor||(f.anchor=o(e)),new gc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Uv+t.slice(2));let d=Vv(e,t,u.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new We(e);return f&&(f.node=p),p}d=e instanceof Map?u[Ur]:Symbol.iterator in Object(e)?u[zi]:u[Ur]}a&&(a(d),delete n.onTagObj);const g=d?.createNode?d.createNode(n.schema,e,n):typeof d?.nodeClass?.from=="function"?d.nodeClass.from(n.schema,e,n):new We(e);return t?g.tag=t:d.default||(g.tag=d.tag),f&&(f.node=g),g}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 zs(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 Gs=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class ld extends pc{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=>zt(i)||Kt(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Gs(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(Ht(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(Ht(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,a=this.get(i,!0);return o.length===0?!n&&kt(a)?a.value:a:Ht(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Kt(n))return!1;const i=n.value;return i==null||t&&kt(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return Ht(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(Ht(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 qv=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function xr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const pi=(e,t,n)=>e.endsWith(`
251
- `)?xr(n,t):n.includes(`
249
+ `},ld=sw(cw)(cd),lw={config:aw},fw=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(o){return n.reduceRight(function(a,u){return u(a)},o)}};function fd(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],fd(e[n],t[n]))}),sd(sd({},e),t)}var hw={type:"cancelation",msg:"operation is manually canceled"};function fc(e){var t=!1,n=new Promise(function(i,o){e.then(function(a){return t?o(hw):i(a)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var dw=rw.create({config:iw,isInitialized:!1,resolve:null,reject:null,monaco:null}),hd=N2(dw,2),Vs=hd[0],oa=hd[1];function pw(e){var t=lw.config(e),n=t.monaco,i=j2(t,["monaco"]);oa(function(o){return{config:fd(o.config,i),monaco:n}})}function gw(){var e=Vs(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(oa({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),fc(hc);if(window.monaco&&window.monaco.editor)return dd(window.monaco),e.resolve(window.monaco),fc(hc);fw(yw,ww)(bw)}return fc(hc)}function yw(e){return document.body.appendChild(e)}function mw(e){var t=document.createElement("script");return e&&(t.src=e),t}function ww(e){var t=Vs(function(i){var o=i.config,a=i.reject;return{config:o,reject:a}}),n=mw("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function bw(){var e=Vs(function(n){var i=n.config,o=n.resolve,a=n.reject;return{config:i,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){dd(n),e.resolve(n)},function(n){e.reject(n)})}function dd(e){Vs().monaco||oa({monaco:e})}function vw(){return Vs(function(e){var t=e.monaco;return t})}var hc=new Promise(function(e,t){return oa({resolve:e,reject:t})}),qs={config:pw,init:gw,__getMonacoInstance:vw},Aw={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},dc=Aw,Sw={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Ew=Sw;function xw({children:e}){return Z.createElement("div",{style:Ew.container},e)}var Cw=xw,_w=Cw;function kw({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:a,wrapperProps:u}){return Z.createElement("section",{style:{...dc.wrapper,width:e,height:t},...u},!n&&Z.createElement(_w,null,i),Z.createElement("div",{ref:o,style:{...dc.fullWidth,...!n&&dc.hide},className:a}))}var Tw=kw,pd=Z.memo(Tw);function Ow(e){Z.useEffect(e,[])}var pc=Ow;function Iw(e,t,n=!0){let i=Z.useRef(!0);Z.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var _n=Iw;function Ws(){}function Ji(e,t,n,i){return Fw(e,i)||Bw(e,t,n,i)}function Fw(e,t){return e.editor.getModel(gd(e,t))}function Bw(e,t,n,i){return e.editor.createModel(t,n,i?gd(e,i):void 0)}function gd(e,t){return e.Uri.parse(t)}function Dw({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:a,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:f=!1,theme:d="light",loading:g="Loading...",options:p={},height:v="100%",width:_="100%",className:S,wrapperProps:E={},beforeMount:b=Ws,onMount:D=Ws}){let[j,C]=Z.useState(!1),[T,F]=Z.useState(!0),P=Z.useRef(null),O=Z.useRef(null),W=Z.useRef(null),Y=Z.useRef(D),ce=Z.useRef(b),le=Z.useRef(!1);pc(()=>{let pe=qs.init();return pe.then(Re=>(O.current=Re)&&F(!1)).catch(Re=>Re?.type!=="cancelation"&&console.error("Monaco initialization: error:",Re)),()=>P.current?Ce():pe.cancel()}),_n(()=>{if(P.current&&O.current){let pe=P.current.getOriginalEditor(),Re=Ji(O.current,e||"",i||n||"text",a||"");Re!==pe.getModel()&&pe.setModel(Re)}},[a],j),_n(()=>{if(P.current&&O.current){let pe=P.current.getModifiedEditor(),Re=Ji(O.current,t||"",o||n||"text",u||"");Re!==pe.getModel()&&pe.setModel(Re)}},[u],j),_n(()=>{let pe=P.current.getModifiedEditor();pe.getOption(O.current.editor.EditorOption.readOnly)?pe.setValue(t||""):t!==pe.getValue()&&(pe.executeEdits("",[{range:pe.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),pe.pushUndoStop())},[t],j),_n(()=>{P.current?.getModel()?.original.setValue(e||"")},[e],j),_n(()=>{let{original:pe,modified:Re}=P.current.getModel();O.current.editor.setModelLanguage(pe,i||n||"text"),O.current.editor.setModelLanguage(Re,o||n||"text")},[n,i,o],j),_n(()=>{O.current?.editor.setTheme(d)},[d],j),_n(()=>{P.current?.updateOptions(p)},[p],j);let ge=Z.useCallback(()=>{if(!O.current)return;ce.current(O.current);let pe=Ji(O.current,e||"",i||n||"text",a||""),Re=Ji(O.current,t||"",o||n||"text",u||"");P.current?.setModel({original:pe,modified:Re})},[n,t,o,e,i,a,u]),ye=Z.useCallback(()=>{!le.current&&W.current&&(P.current=O.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...p}),ge(),O.current?.editor.setTheme(d),C(!0),le.current=!0)},[p,d,ge]);Z.useEffect(()=>{j&&Y.current(P.current,O.current)},[j]),Z.useEffect(()=>{!T&&!j&&ye()},[T,j,ye]);function Ce(){let pe=P.current?.getModel();l||pe?.original?.dispose(),f||pe?.modified?.dispose(),P.current?.dispose()}return Z.createElement(pd,{width:_,height:v,isEditorReady:j,loading:g,_ref:W,className:S,wrapperProps:E})}var Pw=Dw,Rw=Z.memo(Pw);function Lw(){let[e,t]=Z.useState(qs.__getMonacoInstance());return pc(()=>{let n;return e||(n=qs.init(),n.then(i=>{t(i)})),()=>n?.cancel()}),e}var jw=Lw;function Nw(e){let t=Z.useRef();return Z.useEffect(()=>{t.current=e},[e]),t.current}var $w=Nw,aa=new Map;function Mw({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:a,theme:u="light",line:l,loading:f="Loading...",options:d={},overrideServices:g={},saveViewState:p=!0,keepCurrentModel:v=!1,width:_="100%",height:S="100%",className:E,wrapperProps:b={},beforeMount:D=Ws,onMount:j=Ws,onChange:C,onValidate:T=Ws}){let[F,P]=Z.useState(!1),[O,W]=Z.useState(!0),Y=Z.useRef(null),ce=Z.useRef(null),le=Z.useRef(null),ge=Z.useRef(j),ye=Z.useRef(D),Ce=Z.useRef(),pe=Z.useRef(i),Re=$w(a),Se=Z.useRef(!1),Ee=Z.useRef(!1);pc(()=>{let me=qs.init();return me.then(Me=>(Y.current=Me)&&W(!1)).catch(Me=>Me?.type!=="cancelation"&&console.error("Monaco initialization: error:",Me)),()=>ce.current?Ae():me.cancel()}),_n(()=>{let me=Ji(Y.current,e||i||"",t||o||"",a||n||"");me!==ce.current?.getModel()&&(p&&aa.set(Re,ce.current?.saveViewState()),ce.current?.setModel(me),p&&ce.current?.restoreViewState(aa.get(a)))},[a],F),_n(()=>{ce.current?.updateOptions(d)},[d],F),_n(()=>{!ce.current||i===void 0||(ce.current.getOption(Y.current.editor.EditorOption.readOnly)?ce.current.setValue(i):i!==ce.current.getValue()&&(Ee.current=!0,ce.current.executeEdits("",[{range:ce.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),ce.current.pushUndoStop(),Ee.current=!1))},[i],F),_n(()=>{let me=ce.current?.getModel();me&&o&&Y.current?.editor.setModelLanguage(me,o)},[o],F),_n(()=>{l!==void 0&&ce.current?.revealLine(l)},[l],F),_n(()=>{Y.current?.editor.setTheme(u)},[u],F);let He=Z.useCallback(()=>{if(!(!le.current||!Y.current)&&!Se.current){ye.current(Y.current);let me=a||n,Me=Ji(Y.current,i||e||"",t||o||"",me||"");ce.current=Y.current?.editor.create(le.current,{model:Me,automaticLayout:!0,...d},g),p&&ce.current.restoreViewState(aa.get(me)),Y.current.editor.setTheme(u),l!==void 0&&ce.current.revealLine(l),P(!0),Se.current=!0}},[e,t,n,i,o,a,d,g,p,u,l]);Z.useEffect(()=>{F&&ge.current(ce.current,Y.current)},[F]),Z.useEffect(()=>{!O&&!F&&He()},[O,F,He]),pe.current=i,Z.useEffect(()=>{F&&C&&(Ce.current?.dispose(),Ce.current=ce.current?.onDidChangeModelContent(me=>{Ee.current||C(ce.current.getValue(),me)}))},[F,C]),Z.useEffect(()=>{if(F){let me=Y.current.editor.onDidChangeMarkers(Me=>{let J=ce.current.getModel()?.uri;if(J&&Me.find(X=>X.path===J.path)){let X=Y.current.editor.getModelMarkers({resource:J});T?.(X)}});return()=>{me?.dispose()}}return()=>{}},[F,T]);function Ae(){Ce.current?.dispose(),v?p&&aa.set(a,ce.current.saveViewState()):ce.current.getModel()?.dispose(),ce.current.dispose()}return Z.createElement(pd,{width:_,height:S,isEditorReady:F,loading:f,_ref:le,className:E,wrapperProps:b})}var Uw=Mw,yd=Z.memo(Uw),gc=yd;const Vw=Object.freeze(Object.defineProperty({__proto__:null,DiffEditor:Rw,Editor:yd,default:gc,loader:qs,useMonaco:jw},Symbol.toStringTag,{value:"Module"})),yc=Symbol.for("yaml.alias"),mc=Symbol.for("yaml.document"),Kr=Symbol.for("yaml.map"),md=Symbol.for("yaml.pair"),yr=Symbol.for("yaml.scalar"),Yi=Symbol.for("yaml.seq"),Mn=Symbol.for("yaml.node.type"),Qi=e=>!!e&&typeof e=="object"&&e[Mn]===yc,Ks=e=>!!e&&typeof e=="object"&&e[Mn]===mc,Hs=e=>!!e&&typeof e=="object"&&e[Mn]===Kr,qt=e=>!!e&&typeof e=="object"&&e[Mn]===md,kt=e=>!!e&&typeof e=="object"&&e[Mn]===yr,zs=e=>!!e&&typeof e=="object"&&e[Mn]===Yi;function Wt(e){if(e&&typeof e=="object")switch(e[Mn]){case Kr:case Yi:return!0}return!1}function Kt(e){if(e&&typeof e=="object")switch(e[Mn]){case yc:case Kr:case yr:case Yi:return!0}return!1}const qw=e=>(kt(e)||Wt(e))&&!!e.anchor,gi=Symbol("break visit"),Ww=Symbol("skip children"),Gs=Symbol("remove node");function yi(e,t){const n=Kw(t);Ks(e)?Xi(null,e.contents,n,Object.freeze([e]))===Gs&&(e.contents=null):Xi(null,e,n,Object.freeze([]))}yi.BREAK=gi,yi.SKIP=Ww,yi.REMOVE=Gs;function Xi(e,t,n,i){const o=Hw(e,t,n,i);if(Kt(o)||qt(o))return zw(e,i,o),Xi(e,o,n,i);if(typeof o!="symbol"){if(Wt(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){const u=Xi(a,t.items[a],n,i);if(typeof u=="number")a=u-1;else{if(u===gi)return gi;u===Gs&&(t.items.splice(a,1),a-=1)}}}else if(qt(t)){i=Object.freeze(i.concat(t));const a=Xi("key",t.key,n,i);if(a===gi)return gi;a===Gs&&(t.key=null);const u=Xi("value",t.value,n,i);if(u===gi)return gi;u===Gs&&(t.value=null)}}return o}function Kw(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 Hw(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(Hs(t))return n.Map?.(e,t,i);if(zs(t))return n.Seq?.(e,t,i);if(qt(t))return n.Pair?.(e,t,i);if(kt(t))return n.Scalar?.(e,t,i);if(Qi(t))return n.Alias?.(e,t,i)}function zw(e,t,n){const i=t[t.length-1];if(Wt(i))i.items[e]=n;else if(qt(i))e==="key"?i.key=n:i.value=n;else if(Ks(i))i.contents=n;else{const o=Qi(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Gw={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Jw=e=>e.replace(/[!,[\]{}]/g,t=>Gw[t]);class dn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},dn.defaultYaml,t),this.tags=Object.assign({},dn.defaultTags,n)}clone(){const t=new dn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new dn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:dn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},dn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:dn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},dn.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+Jw(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&&Kt(t.contents)){const a={};yi(t.contents,(u,l)=>{Kt(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
+ `)}}dn.defaultYaml={explicit:!1,version:"1.2"},dn.defaultTags={"!!":"tag:yaml.org,2002:"};function wd(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function bd(e){const t=new Set;return yi(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function vd(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Yw(e,t){const n=[],i=new Map;let o=null;return{onAnchor:a=>{n.push(a),o||(o=bd(e));const u=vd(t,o);return o.add(u),u},setAnchors:()=>{for(const a of n){const u=i.get(a);if(typeof u=="object"&&u.anchor&&(kt(u.node)||Wt(u.node)))u.node.anchor=u.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=a,l}}},sourceObjects:i}}function Zi(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0,a=i.length;o<a;++o){const u=i[o],l=Zi(e,i,String(o),u);l===void 0?delete i[o]:l!==u&&(i[o]=l)}else if(i instanceof Map)for(const o of Array.from(i.keys())){const a=i.get(o),u=Zi(e,i,o,a);u===void 0?i.delete(o):u!==a&&i.set(o,u)}else if(i instanceof Set)for(const o of Array.from(i)){const a=Zi(e,i,o,o);a===void 0?i.delete(o):a!==o&&(i.delete(o),i.add(a))}else for(const[o,a]of Object.entries(i)){const u=Zi(e,i,o,a);u===void 0?delete i[o]:u!==a&&(i[o]=u)}return e.call(t,n,i)}function Un(e,t,n){if(Array.isArray(e))return e.map((i,o)=>Un(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!qw(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=a=>{i.res=a,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class wc{constructor(t){Object.defineProperty(this,Mn,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:a}={}){if(!Ks(t))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Un(this,"",u);if(typeof o=="function")for(const{count:f,res:d}of u.anchors.values())o(d,f);return typeof a=="function"?Zi(a,{"":l},"",l):l}}class bc extends wc{constructor(t){super(yc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return yi(t,{Node:(i,o)=>{if(o===this)return yi.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:a}=n,u=this.resolve(o);if(!u){const f=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(f)}let l=i.get(u);if(l||(Un(u,null,n),l=i.get(u)),!l||l.res===void 0){const f="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(f)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=ua(o,u,i)),l.count*l.aliasCount>a)){const f="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(f)}return l.res}toString(t,n,i){const o=`*${this.source}`;if(t){if(wd(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${o} `}return o}}function ua(e,t,n){if(Qi(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(Wt(t)){let i=0;for(const o of t.items){const a=ua(e,o,n);a>i&&(i=a)}return i}else if(qt(t)){const i=ua(e,t.key,n),o=ua(e,t.value,n);return Math.max(i,o)}return 1}const Ad=e=>!e||typeof e!="function"&&typeof e!="object";class qe extends wc{constructor(t){super(yr),this.value=t}toJSON(t,n){return n?.keep?this.value:Un(this.value,t,n)}toString(){return String(this.value)}}qe.BLOCK_FOLDED="BLOCK_FOLDED",qe.BLOCK_LITERAL="BLOCK_LITERAL",qe.PLAIN="PLAIN",qe.QUOTE_DOUBLE="QUOTE_DOUBLE",qe.QUOTE_SINGLE="QUOTE_SINGLE";const Qw="tag:yaml.org,2002:";function Xw(e,t,n){if(t){const i=n.filter(a=>a.tag===t),o=i.find(a=>!a.format)??i[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(i=>i.identify?.(e)&&!i.format)}function Js(e,t,n){if(Ks(e)&&(e=e.contents),Kt(e))return e;if(qt(e)){const p=n.schema[Kr].createNode?.(n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:a,schema:u,sourceObjects:l}=n;let f;if(i&&e&&typeof e=="object"){if(f=l.get(e),f)return f.anchor||(f.anchor=o(e)),new bc(f.anchor);f={anchor:null,node:null},l.set(e,f)}t?.startsWith("!!")&&(t=Qw+t.slice(2));let d=Xw(e,t,u.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new qe(e);return f&&(f.node=p),p}d=e instanceof Map?u[Kr]:Symbol.iterator in Object(e)?u[Yi]:u[Kr]}a&&(a(d),delete n.onTagObj);const g=d?.createNode?d.createNode(n.schema,e,n):typeof d?.nodeClass?.from=="function"?d.nodeClass.from(n.schema,e,n):new qe(e);return t?g.tag=t:d.default||(g.tag=d.tag),f&&(f.node=g),g}function ca(e,t,n){let i=n;for(let o=t.length-1;o>=0;--o){const a=t[o];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const u=[];u[a]=i,i=u}else i=new Map([[a,i]])}return Js(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Ys=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Sd extends wc{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>Kt(i)||qt(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Ys(t))this.add(n);else{const[i,...o]=t,a=this.get(i,!0);if(Wt(a))a.addIn(o,n);else if(a===void 0&&this.schema)this.set(i,ca(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(Wt(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,a=this.get(i,!0);return o.length===0?!n&&kt(a)?a.value:a:Wt(a)?a.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!qt(n))return!1;const i=n.value;return i==null||t&&kt(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return Wt(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(Wt(a))a.setIn(o,n);else if(a===void 0&&this.schema)this.set(i,ca(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const Zw=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function _r(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const mi=(e,t,n)=>e.endsWith(`
251
+ `)?_r(n,t):n.includes(`
252
252
  `)?`
253
- `+xr(n,t):(e.endsWith(" ")?"":" ")+n,fd="flow",yc="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=[],g={};let p=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?d.push(0):p=o-i);let w,_,A=!1,S=-1,v=-1,R=-1;n===yc&&(S=hd(e,S,t.length),S!==-1&&(p=S+f));for(let x;x=e[S+=1];){if(n===aa&&x==="\\"){switch(v=S,e[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}R=S}if(x===`
254
- `)n===yc&&(S=hd(e,S,t.length)),p=S+t.length+f,w=void 0;else{if(x===" "&&_&&_!==" "&&_!==`
255
- `&&_!==" "){const O=e[S+1];O&&O!==" "&&O!==`
256
- `&&O!==" "&&(w=S)}if(S>=p)if(w)d.push(w),p=w+f,w=void 0;else if(n===aa){for(;_===" "||_===" ";)_=x,x=e[S+=1],A=!0;const O=S>R+1?S-2:v-1;if(g[O])return e;d.push(O),g[O]=!0,p=O+f,w=void 0}else A=!0}_=x}if(A&&l&&l(),d.length===0)return e;u&&u();let N=e.slice(0,d[0]);for(let x=0;x<d.length;++x){const O=d[x],F=d[x+1]||e.length;O===0?N=`
257
- ${t}${e.slice(0,F)}`:(n===aa&&g[O]&&(N+=`${e[O]}\\`),N+=`
258
- ${t}${e.slice(O+1,F)}`)}return N}function hd(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 Wv(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 Js(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 g=n.substr(f+2,4);switch(g){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:g.substr(0,2)==="00"?u+="\\x"+g.substr(2):u+=n.substr(f,6)}f+=5,l=f+1}break;case"n":if(i||n[f+2]==='"'||n.length<o)f+=1;else{for(u+=n.slice(l,f)+`
253
+ `+_r(n,t):(e.endsWith(" ")?"":" ")+n,Ed="flow",vc="block",la="quoted";function fa(e,t,n="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:a=20,onFold:u,onOverflow:l}={}){if(!o||o<0)return e;o<a&&(a=0);const f=Math.max(1+a,1+o-t.length);if(e.length<=f)return e;const d=[],g={};let p=o-t.length;typeof i=="number"&&(i>o-Math.max(2,a)?d.push(0):p=o-i);let v,_,S=!1,E=-1,b=-1,D=-1;n===vc&&(E=xd(e,E,t.length),E!==-1&&(p=E+f));for(let C;C=e[E+=1];){if(n===la&&C==="\\"){switch(b=E,e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}D=E}if(C===`
254
+ `)n===vc&&(E=xd(e,E,t.length)),p=E+t.length+f,v=void 0;else{if(C===" "&&_&&_!==" "&&_!==`
255
+ `&&_!==" "){const T=e[E+1];T&&T!==" "&&T!==`
256
+ `&&T!==" "&&(v=E)}if(E>=p)if(v)d.push(v),p=v+f,v=void 0;else if(n===la){for(;_===" "||_===" ";)_=C,C=e[E+=1],S=!0;const T=E>D+1?E-2:b-1;if(g[T])return e;d.push(T),g[T]=!0,p=T+f,v=void 0}else S=!0}_=C}if(S&&l&&l(),d.length===0)return e;u&&u();let j=e.slice(0,d[0]);for(let C=0;C<d.length;++C){const T=d[C],F=d[C+1]||e.length;T===0?j=`
257
+ ${t}${e.slice(0,F)}`:(n===la&&g[T]&&(j+=`${e[T]}\\`),j+=`
258
+ ${t}${e.slice(T+1,F)}`)}return j}function xd(e,t,n){let i=t,o=t+1,a=e[o];for(;a===" "||a===" ";)if(t<o+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
259
+ `);i=t,o=t+1,a=e[o]}return i}const ha=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),da=e=>/^(%|---|\.\.\.)/m.test(e);function eb(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 Qs(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:i}=t,o=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(da(e)?" ":"");let u="",l=0;for(let f=0,d=n[f];d;d=n[++f])if(d===" "&&n[f+1]==="\\"&&n[f+2]==="n"&&(u+=n.slice(l,f)+"\\ ",f+=1,l=f,d="\\"),d==="\\")switch(n[f+1]){case"u":{u+=n.slice(l,f);const g=n.substr(f+2,4);switch(g){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:g.substr(0,2)==="00"?u+="\\x"+g.substr(2):u+=n.substr(f,6)}f+=5,l=f+1}break;case"n":if(i||n[f+2]==='"'||n.length<o)f+=1;else{for(u+=n.slice(l,f)+`
261
261
 
262
262
  `;n[f+2]==="\\"&&n[f+3]==="n"&&n[f+4]!=='"';)u+=`
263
- `,f+=2;u+=a,n[f+2]===" "&&(u+="\\"),f+=1,l=f+1}break;default:f+=1}return u=l?u+n.slice(l):n,i?u:ua(u,a,aa,ca(t,!1))}function mc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
264
- `)||/[ \t]\n|\n[ \t]/.test(e))return Js(e,t);const n=t.indent||(la(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
265
- ${n}`)+"'";return t.implicitKey?i:ua(i,n,fd,ca(t,!1))}function Xi(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=Js;else{const o=e.includes('"'),a=e.includes("'");o&&!a?i=mc:a&&!o?i=Js:i=n?mc:Js}return i(e,t)}let bc;try{bc=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:fa(u,a,la,ha(t,!1))}function Ac(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
264
+ `)||/[ \t]\n|\n[ \t]/.test(e))return Qs(e,t);const n=t.indent||(da(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
265
+ ${n}`)+"'";return t.implicitKey?i:fa(i,n,Ed,ha(t,!1))}function es(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=Qs;else{const o=e.includes('"'),a=e.includes("'");o&&!a?i=Ac:a&&!o?i=Qs:i=n?Ac:Qs}return i(e,t)}let Sc;try{Sc=new RegExp(`(^|(?<!
266
266
  ))
267
267
  +(?!
268
- |$)`,"g")}catch{bc=/\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 Xi(n,i);const d=i.indent||(i.forceBlockIndent||la(n)?" ":""),g=u==="literal"?!0:u==="folded"||t===We.BLOCK_FOLDED?!1:t===We.BLOCK_LITERAL?!0:!Wv(n,f,d.length);if(!n)return g?`|
268
+ |$)`,"g")}catch{Sc=/\n+(?!\n|$)/g}function pa({comment:e,type:t,value:n},i,o,a){const{blockQuote:u,commentString:l,lineWidth:f}=i.options;if(!u||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return es(n,i);const d=i.indent||(i.forceBlockIndent||da(n)?" ":""),g=u==="literal"?!0:u==="folded"||t===qe.BLOCK_FOLDED?!1:t===qe.BLOCK_LITERAL?!0:!eb(n,f,d.length);if(!n)return g?`|
269
269
  `:`>
270
- `;let p,w;for(w=n.length;w>0;--w){const F=n[w-1];if(F!==`
271
- `&&F!==" "&&F!==" ")break}let _=n.substring(w);const A=_.indexOf(`
272
- `);A===-1?p="-":n===_||A!==_.length-1?(p="+",a&&a()):p="",_&&(n=n.slice(0,-_.length),_[_.length-1]===`
273
- `&&(_=_.slice(0,-1)),_=_.replace(bc,`$&${d}`));let S=!1,v,R=-1;for(v=0;v<n.length;++v){const F=n[v];if(F===" ")S=!0;else if(F===`
274
- `)R=v;else break}let N=n.substring(0,R<v?R+1:v);N&&(n=n.substring(N.length),N=N.replace(/\n+/g,`$&${d}`));let O=(S?d?"2":"1":"")+p;if(e&&(O+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!g){const F=n.replace(/\n+/g,`
275
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let k=!1;const D=ca(i,!0);u!=="folded"&&t!==We.BLOCK_FOLDED&&(D.onOverflow=()=>{k=!0});const V=ua(`${N}${F}${_}`,d,yc,D);if(!k)return`>${O}
276
- ${d}${V}`}return n=n.replace(/\n+/g,`$&${d}`),`|${O}
277
- ${d}${N}${n}${_}`}function Kv(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:d,inFlow:g}=t;if(l&&a.includes(`
278
- `)||g&&/[[\]{},]/.test(a))return Xi(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||g||!a.includes(`
279
- `)?Xi(a,t):fa(e,t,n,i);if(!l&&!g&&o!==We.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 Xi(a,t)}const p=a.replace(/\n+/g,`$&
281
- ${f}`);if(u){const w=S=>S.default&&S.tag!=="tag:yaml.org,2002:str"&&S.test?.test(p),{compat:_,tags:A}=t.doc.schema;if(A.some(w)||_?.some(w))return Xi(a,t)}return l?p:ua(p,f,fd,ca(t,!1))}function vc(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!==We.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=We.QUOTE_DOUBLE);const f=g=>{switch(g){case We.BLOCK_FOLDED:case We.BLOCK_LITERAL:return o||a?Xi(u.value,t):fa(u,t,n,i);case We.QUOTE_DOUBLE:return Js(u.value,t);case We.QUOTE_SINGLE:return mc(u.value,t);case We.PLAIN:return Kv(u,t,n,i);default:return null}};let d=f(l);if(d===null){const{defaultKeyType:g,defaultStringType:p}=t.options,w=o&&g||p;if(d=f(w),d===null)throw new Error(`Unsupported default string type ${w}`)}return d}function dd(e,t){const n=Object.assign({blockQuote:!0,commentString:qv,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 Hv(e,t){if(t.tag){const o=e.filter(a=>a.tag===t.tag);if(o.length>0)return o.find(a=>a.format===t.format)??o[0]}let n,i;if(kt(t)){i=t.value;let o=e.filter(a=>a.identify?.(i));if(o.length>1){const a=o.filter(u=>u.test);a.length>0&&(o=a)}n=o.find(a=>a.format===t.format)??o.find(a=>!a.format)}else i=t,n=e.find(o=>o.nodeClass&&i instanceof o.nodeClass);if(!n){const o=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${o} value`)}return n}function zv(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(kt(e)||Ht(e))&&e.anchor;a&&od(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 Qi(e,t,n,i){if(Kt(e))return e.toString(t,n,i);if(Gi(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=zt(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=Hv(t.doc.schema.tags,a));const u=zv(a,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l=typeof o.stringify=="function"?o.stringify(a,t,n,i):kt(a)?vc(a,t,n,i):a.toString(t,n,i);return u?kt(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
282
- ${t.indent}${l}`:l}function Gv({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:d,indentSeq:g,simpleKeys:p}}=n;let w=zt(e)&&e.comment||null;if(p){if(w)throw new Error("With simple keys, key nodes cannot have comments");if(Ht(e)||!zt(e)&&typeof e=="object"){const D="With simple keys, collection cannot be used as a key value";throw new Error(D)}}let _=!p&&(!e||w&&t==null&&!n.inFlow||Ht(e)||(kt(e)?e.type===We.BLOCK_FOLDED||e.type===We.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!_&&(p||!a),indent:l+f});let A=!1,S=!1,v=Qi(e,n,()=>A=!0,()=>S=!0);if(!_&&!n.inFlow&&v.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");_=!0}if(n.inFlow){if(a||t==null)return A&&i&&i(),v===""?"?":_?`? ${v}`:v}else if(a&&!p||t==null&&_)return v=`? ${v}`,w&&!A?v+=pi(v,n.indent,d(w)):S&&o&&o(),v;A&&(w=null),_?(w&&(v+=pi(v,n.indent,d(w))),v=`? ${v}
283
- ${l}:`):(v=`${v}:`,w&&(v+=pi(v,n.indent,d(w))));let R,N,x;zt(t)?(R=!!t.spaceBefore,N=t.commentBefore,x=t.comment):(R=!1,N=null,x=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!_&&!w&&kt(t)&&(n.indentAtStart=v.length+1),S=!1,!g&&f.length>=2&&!n.inFlow&&!_&&Ks(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let O=!1;const F=Qi(t,n,()=>O=!0,()=>S=!0);let k=" ";if(w||R||N){if(k=R?`
284
- `:"",N){const D=d(N);k+=`
285
- ${xr(D,n.indent)}`}F===""&&!n.inFlow?k===`
286
- `&&(k=`
287
-
288
- `):k+=`
289
- ${n.indent}`}else if(!_&&Ht(t)){const D=F[0],V=F.indexOf(`
290
- `),Q=V!==-1,fe=n.inFlow??t.flow??t.items.length===0;if(Q||!fe){let le=!1;if(Q&&(D==="&"||D==="!")){let ge=F.indexOf(" ");D==="&"&&ge!==-1&&ge<V&&F[ge+1]==="!"&&(ge=F.indexOf(" ",ge+1)),(ge===-1||V<ge)&&(le=!0)}le||(k=`
270
+ `;let p,v;for(v=n.length;v>0;--v){const F=n[v-1];if(F!==`
271
+ `&&F!==" "&&F!==" ")break}let _=n.substring(v);const S=_.indexOf(`
272
+ `);S===-1?p="-":n===_||S!==_.length-1?(p="+",a&&a()):p="",_&&(n=n.slice(0,-_.length),_[_.length-1]===`
273
+ `&&(_=_.slice(0,-1)),_=_.replace(Sc,`$&${d}`));let E=!1,b,D=-1;for(b=0;b<n.length;++b){const F=n[b];if(F===" ")E=!0;else if(F===`
274
+ `)D=b;else break}let j=n.substring(0,D<b?D+1:b);j&&(n=n.substring(j.length),j=j.replace(/\n+/g,`$&${d}`));let T=(E?d?"2":"1":"")+p;if(e&&(T+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!g){const F=n.replace(/\n+/g,`
275
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let P=!1;const O=ha(i,!0);u!=="folded"&&t!==qe.BLOCK_FOLDED&&(O.onOverflow=()=>{P=!0});const W=fa(`${j}${F}${_}`,d,vc,O);if(!P)return`>${T}
276
+ ${d}${W}`}return n=n.replace(/\n+/g,`$&${d}`),`|${T}
277
+ ${d}${j}${n}${_}`}function tb(e,t,n,i){const{type:o,value:a}=e,{actualString:u,implicitKey:l,indent:f,indentStep:d,inFlow:g}=t;if(l&&a.includes(`
278
+ `)||g&&/[[\]{},]/.test(a))return es(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||g||!a.includes(`
279
+ `)?es(a,t):pa(e,t,n,i);if(!l&&!g&&o!==qe.PLAIN&&a.includes(`
280
+ `))return pa(e,t,n,i);if(da(a)){if(f==="")return t.forceBlockIndent=!0,pa(e,t,n,i);if(l&&f===d)return es(a,t)}const p=a.replace(/\n+/g,`$&
281
+ ${f}`);if(u){const v=E=>E.default&&E.tag!=="tag:yaml.org,2002:str"&&E.test?.test(p),{compat:_,tags:S}=t.doc.schema;if(S.some(v)||_?.some(v))return es(a,t)}return l?p:fa(p,f,Ed,ha(t,!1))}function Ec(e,t,n,i){const{implicitKey:o,inFlow:a}=t,u=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==qe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(l=qe.QUOTE_DOUBLE);const f=g=>{switch(g){case qe.BLOCK_FOLDED:case qe.BLOCK_LITERAL:return o||a?es(u.value,t):pa(u,t,n,i);case qe.QUOTE_DOUBLE:return Qs(u.value,t);case qe.QUOTE_SINGLE:return Ac(u.value,t);case qe.PLAIN:return tb(u,t,n,i);default:return null}};let d=f(l);if(d===null){const{defaultKeyType:g,defaultStringType:p}=t.options,v=o&&g||p;if(d=f(v),d===null)throw new Error(`Unsupported default string type ${v}`)}return d}function Cd(e,t){const n=Object.assign({blockQuote:!0,commentString: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 nb(e,t){if(t.tag){const o=e.filter(a=>a.tag===t.tag);if(o.length>0)return o.find(a=>a.format===t.format)??o[0]}let n,i;if(kt(t)){i=t.value;let o=e.filter(a=>a.identify?.(i));if(o.length>1){const a=o.filter(u=>u.test);a.length>0&&(o=a)}n=o.find(a=>a.format===t.format)??o.find(a=>!a.format)}else i=t,n=e.find(o=>o.nodeClass&&i instanceof o.nodeClass);if(!n){const o=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${o} value`)}return n}function rb(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(kt(e)||Wt(e))&&e.anchor;a&&wd(a)&&(n.add(a),o.push(`&${a}`));const u=e.tag?e.tag:t.default?null:t.tag;return u&&o.push(i.directives.tagString(u)),o.join(" ")}function ts(e,t,n,i){if(qt(e))return e.toString(t,n,i);if(Qi(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=Kt(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=nb(t.doc.schema.tags,a));const u=rb(a,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l=typeof o.stringify=="function"?o.stringify(a,t,n,i):kt(a)?Ec(a,t,n,i):a.toString(t,n,i);return u?kt(a)||l[0]==="{"||l[0]==="["?`${u} ${l}`:`${u}
282
+ ${t.indent}${l}`:l}function ib({key:e,value:t},n,i,o){const{allNullValues:a,doc:u,indent:l,indentStep:f,options:{commentString:d,indentSeq:g,simpleKeys:p}}=n;let v=Kt(e)&&e.comment||null;if(p){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(Wt(e)||!Kt(e)&&typeof e=="object"){const O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let _=!p&&(!e||v&&t==null&&!n.inFlow||Wt(e)||(kt(e)?e.type===qe.BLOCK_FOLDED||e.type===qe.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!_&&(p||!a),indent:l+f});let S=!1,E=!1,b=ts(e,n,()=>S=!0,()=>E=!0);if(!_&&!n.inFlow&&b.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");_=!0}if(n.inFlow){if(a||t==null)return S&&i&&i(),b===""?"?":_?`? ${b}`:b}else if(a&&!p||t==null&&_)return b=`? ${b}`,v&&!S?b+=mi(b,n.indent,d(v)):E&&o&&o(),b;S&&(v=null),_?(v&&(b+=mi(b,n.indent,d(v))),b=`? ${b}
283
+ ${l}:`):(b=`${b}:`,v&&(b+=mi(b,n.indent,d(v))));let D,j,C;Kt(t)?(D=!!t.spaceBefore,j=t.commentBefore,C=t.comment):(D=!1,j=null,C=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!_&&!v&&kt(t)&&(n.indentAtStart=b.length+1),E=!1,!g&&f.length>=2&&!n.inFlow&&!_&&zs(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let T=!1;const F=ts(t,n,()=>T=!0,()=>E=!0);let P=" ";if(v||D||j){if(P=D?`
284
+ `:"",j){const O=d(j);P+=`
285
+ ${_r(O,n.indent)}`}F===""&&!n.inFlow?P===`
286
+ `&&(P=`
287
+
288
+ `):P+=`
289
+ ${n.indent}`}else if(!_&&Wt(t)){const O=F[0],W=F.indexOf(`
290
+ `),Y=W!==-1,ce=n.inFlow??t.flow??t.items.length===0;if(Y||!ce){let le=!1;if(Y&&(O==="&"||O==="!")){let ge=F.indexOf(" ");O==="&"&&ge!==-1&&ge<W&&F[ge+1]==="!"&&(ge=F.indexOf(" ",ge+1)),(ge===-1||W<ge)&&(le=!0)}le||(P=`
291
291
  ${n.indent}`)}}else(F===""||F[0]===`
292
- `)&&(k="");return v+=k+F,n.inFlow?O&&i&&i():x&&!O?v+=pi(v,n.indent,d(x)):S&&o&&o(),v}function pd(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const ha="<<",Cr={identify:e=>e===ha||typeof e=="symbol"&&e.description===ha,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new We(Symbol(ha)),{addToJSMap:gd}),stringify:()=>ha},Jv=(e,t)=>(Cr.identify(t)||kt(t)&&(!t.type||t.type===We.PLAIN)&&Cr.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===Cr.tag&&n.default);function gd(e,t,n){if(n=e&&Gi(n)?n.resolve(e.doc):n,Ks(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&&Gi(n)?n.resolve(e.doc):n;if(!Ws(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 yd(e,t,{key:n,value:i}){if(zt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Jv(e,n))gd(e,t,i);else{const o=Mn(n,"",e);if(t instanceof Map)t.set(o,Mn(i,o,e));else if(t instanceof Set)t.add(o);else{const a=Yv(n,o,e),u=Mn(i,a,e);a in t?Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[a]=u}}return t}function Yv(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(zt(e)&&n?.doc){const i=dd(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)+'..."'),pd(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 Ac(e,t,n){const i=zs(e,void 0,n),o=zs(t,void 0,n);return new gn(i,o)}class gn{constructor(t,n=null){Object.defineProperty(this,jn,{value:sd}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return zt(n)&&(n=n.clone(t)),zt(i)&&(i=i.clone(t)),new gn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return yd(n,i,this)}toString(t,n,i){return t?.doc?Gv(this,t,n,i):JSON.stringify(this)}}function md(e,t,n){return(t.inFlow??e.flow?Qv:Xv)(e,t,n)}function Xv({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:d}}=n,g=Object.assign({},n,{indent:a,type:null});let p=!1;const w=[];for(let A=0;A<t.length;++A){const S=t[A];let v=null;if(zt(S))!p&&S.spaceBefore&&w.push(""),da(n,w,S.commentBefore,p),S.comment&&(v=S.comment);else if(Kt(S)){const N=zt(S.key)?S.key:null;N&&(!p&&N.spaceBefore&&w.push(""),da(n,w,N.commentBefore,p))}p=!1;let R=Qi(S,g,()=>v=null,()=>p=!0);v&&(R+=pi(R,a,d(v))),p&&v&&(p=!1),w.push(i+R)}let _;if(w.length===0)_=o.start+o.end;else{_=w[0];for(let A=1;A<w.length;++A){const S=w[A];_+=S?`
293
- ${f}${S}`:`
292
+ `)&&(P="");return b+=P+F,n.inFlow?T&&i&&i():C&&!T?b+=mi(b,n.indent,d(C)):E&&o&&o(),b}function _d(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const ga="<<",kr={identify:e=>e===ga||typeof e=="symbol"&&e.description===ga,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new qe(Symbol(ga)),{addToJSMap:kd}),stringify:()=>ga},sb=(e,t)=>(kr.identify(t)||kt(t)&&(!t.type||t.type===qe.PLAIN)&&kr.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===kr.tag&&n.default);function kd(e,t,n){if(n=e&&Qi(n)?n.resolve(e.doc):n,zs(n))for(const i of n.items)xc(e,t,i);else if(Array.isArray(n))for(const i of n)xc(e,t,i);else xc(e,t,n)}function xc(e,t,n){const i=e&&Qi(n)?n.resolve(e.doc):n;if(!Hs(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[a,u]of o)t instanceof Map?t.has(a)||t.set(a,u):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:u,writable:!0,enumerable:!0,configurable:!0});return t}function Td(e,t,{key:n,value:i}){if(Kt(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(sb(e,n))kd(e,t,i);else{const o=Un(n,"",e);if(t instanceof Map)t.set(o,Un(i,o,e));else if(t instanceof Set)t.add(o);else{const a=ob(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 ob(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Kt(e)&&n?.doc){const i=Cd(n.doc,{});i.anchors=new Set;for(const a of n.anchors.keys())i.anchors.add(a.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!n.mapKeyWarned){let a=JSON.stringify(o);a.length>40&&(a=a.substring(0,36)+'..."'),_d(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Cc(e,t,n){const i=Js(e,void 0,n),o=Js(t,void 0,n);return new pn(i,o)}class pn{constructor(t,n=null){Object.defineProperty(this,Mn,{value:md}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return Kt(n)&&(n=n.clone(t)),Kt(i)&&(i=i.clone(t)),new pn(n,i)}toJSON(t,n){const i=n?.mapAsMap?new Map:{};return Td(n,i,this)}toString(t,n,i){return t?.doc?ib(this,t,n,i):JSON.stringify(this)}}function Od(e,t,n){return(t.inFlow??e.flow?ub:ab)(e,t,n)}function ab({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}){const{indent:f,options:{commentString:d}}=n,g=Object.assign({},n,{indent:a,type:null});let p=!1;const v=[];for(let S=0;S<t.length;++S){const E=t[S];let b=null;if(Kt(E))!p&&E.spaceBefore&&v.push(""),ya(n,v,E.commentBefore,p),E.comment&&(b=E.comment);else if(qt(E)){const j=Kt(E.key)?E.key:null;j&&(!p&&j.spaceBefore&&v.push(""),ya(n,v,j.commentBefore,p))}p=!1;let D=ts(E,g,()=>b=null,()=>p=!0);b&&(D+=mi(D,a,d(b))),p&&b&&(p=!1),v.push(i+D)}let _;if(v.length===0)_=o.start+o.end;else{_=v[0];for(let S=1;S<v.length;++S){const E=v[S];_+=E?`
293
+ ${f}${E}`:`
294
294
  `}}return e?(_+=`
295
- `+xr(d(e),f),l&&l()):p&&u&&u(),_}function Qv({items:e},t,{flowChars:n,itemIndent:i}){const{indent:o,indentStep:a,flowCollectionPadding:u,options:{commentString:l}}=t;i+=a;const f=Object.assign({},t,{indent:i,inFlow:!0,type:null});let d=!1,g=0;const p=[];for(let A=0;A<e.length;++A){const S=e[A];let v=null;if(zt(S))S.spaceBefore&&p.push(""),da(t,p,S.commentBefore,!1),S.comment&&(v=S.comment);else if(Kt(S)){const N=zt(S.key)?S.key:null;N&&(N.spaceBefore&&p.push(""),da(t,p,N.commentBefore,!1),N.comment&&(d=!0));const x=zt(S.value)?S.value:null;x?(x.comment&&(v=x.comment),x.commentBefore&&(d=!0)):S.value==null&&N?.comment&&(v=N.comment)}v&&(d=!0);let R=Qi(S,f,()=>v=null);A<e.length-1&&(R+=","),v&&(R+=pi(R,i,l(v))),!d&&(p.length>g||R.includes(`
296
- `))&&(d=!0),p.push(R),g=p.length}const{start:w,end:_}=n;if(p.length===0)return w+_;if(!d){const A=p.reduce((S,v)=>S+v.length+2,2);d=t.options.lineWidth>0&&A>t.options.lineWidth}if(d){let A=w;for(const S of p)A+=S?`
297
- ${a}${o}${S}`:`
298
- `;return`${A}
299
- ${o}${_}`}else return`${w}${u}${p.join(" ")}${u}${_}`}function da({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=xr(t(i),e);n.push(a.trimStart())}}function gi(e,t){const n=kt(t)?t.value:t;for(const i of e)if(Kt(i)&&(i.key===t||i.key===n||kt(i.key)&&i.key.value===n))return i}class Un extends ld{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ur,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(Ac(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;Kt(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=gi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);kt(o.value)&&cd(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=gi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=gi(this.items,t)?.value;return(!n&&kt(o)?o.value:o)??void 0}has(t){return!!gi(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)yd(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Kt(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})),md(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const Zi={collection:"map",default:!0,nodeClass:Un,tag:"tag:yaml.org,2002:map",resolve(e,t){return Ws(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Un.from(e,t,n)};class yi extends ld{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(zi,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&&kt(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];kt(o)&&cd(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(Mn(a,String(o++),n));return i}toString(t,n,i){return t?md(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(zs(l,void 0,i))}}return a}}function pa(e){let t=kt(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const es={collection:"seq",default:!0,nodeClass:yi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Ks(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>yi.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),vc(e,t,n,i)}},ya={identify:e=>e==null,createNode:()=>new We(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new We(null),stringify:({source:e},t)=>typeof e=="string"&&ya.test.test(e)?e:t.options.nullStr},Sc={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new We(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Sc.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 tr({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 bd={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:tr},vd={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():tr(e)}},wd={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 We(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:tr},ma=e=>typeof e=="bigint"||Number.isInteger(e),Ec=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Ad(e,t,n){const{value:i}=e;return ma(i)&&i>=0?n+i.toString(t):tr(e)}const Sd={identify:e=>ma(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Ec(e,2,8,n),stringify:e=>Ad(e,8,"0o")},Ed={identify:ma,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Ec(e,0,10,n),stringify:tr},xd={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)=>Ec(e,2,16,n),stringify:e=>Ad(e,16,"0x")},Zv=[Zi,es,ga,ya,Sc,Sd,Ed,xd,bd,vd,wd];function Cd(e){return typeof e=="bigint"||Number.isInteger(e)}const ba=({value:e})=>JSON.stringify(e),ew=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ba},{identify:e=>e==null,createNode:()=>new We(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ba},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:ba},{identify:Cd,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})=>Cd(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:ba}],tw={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},nw=[Zi,es].concat(ew,tw),xc={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=We.BLOCK_LITERAL),t!==We.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),d=Math.ceil(l.length/f),g=new Array(d);for(let p=0,w=0;p<d;++p,w+=f)g[p]=l.substr(w,f);l=g.join(t===We.BLOCK_LITERAL?`
300
- `:" ")}return vc({comment:e,type:t,value:l},i,o,a)}};function _d(e,t){if(Ks(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!Kt(i)){if(Ws(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new gn(new We(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
295
+ `+_r(d(e),f),l&&l()):p&&u&&u(),_}function ub({items:e},t,{flowChars:n,itemIndent:i}){const{indent:o,indentStep:a,flowCollectionPadding:u,options:{commentString:l}}=t;i+=a;const f=Object.assign({},t,{indent:i,inFlow:!0,type:null});let d=!1,g=0;const p=[];for(let S=0;S<e.length;++S){const E=e[S];let b=null;if(Kt(E))E.spaceBefore&&p.push(""),ya(t,p,E.commentBefore,!1),E.comment&&(b=E.comment);else if(qt(E)){const j=Kt(E.key)?E.key:null;j&&(j.spaceBefore&&p.push(""),ya(t,p,j.commentBefore,!1),j.comment&&(d=!0));const C=Kt(E.value)?E.value:null;C?(C.comment&&(b=C.comment),C.commentBefore&&(d=!0)):E.value==null&&j?.comment&&(b=j.comment)}b&&(d=!0);let D=ts(E,f,()=>b=null);S<e.length-1&&(D+=","),b&&(D+=mi(D,i,l(b))),!d&&(p.length>g||D.includes(`
296
+ `))&&(d=!0),p.push(D),g=p.length}const{start:v,end:_}=n;if(p.length===0)return v+_;if(!d){const S=p.reduce((E,b)=>E+b.length+2,2);d=t.options.lineWidth>0&&S>t.options.lineWidth}if(d){let S=v;for(const E of p)S+=E?`
297
+ ${a}${o}${E}`:`
298
+ `;return`${S}
299
+ ${o}${_}`}else return`${v}${u}${p.join(" ")}${u}${_}`}function ya({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const a=_r(t(i),e);n.push(a.trimStart())}}function wi(e,t){const n=kt(t)?t.value:t;for(const i of e)if(qt(i)&&(i.key===t||i.key===n||kt(i.key)&&i.key.value===n))return i}class Vn extends Sd{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Kr,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:a}=i,u=new this(t),l=(f,d)=>{if(typeof a=="function")d=a.call(n,f,d);else if(Array.isArray(a)&&!a.includes(f))return;(d!==void 0||o)&&u.items.push(Cc(f,d,i))};if(n instanceof Map)for(const[f,d]of n)l(f,d);else if(n&&typeof n=="object")for(const f of Object.keys(n))l(f,n[f]);return typeof t.sortMapEntries=="function"&&u.items.sort(t.sortMapEntries),u}add(t,n){let i;qt(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new pn(t,t?.value):i=new pn(t.key,t.value);const o=wi(this.items,i.key),a=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);kt(o.value)&&Ad(i.value)?o.value.value=i.value:o.value=i.value}else if(a){const u=this.items.findIndex(l=>a(i,l)<0);u===-1?this.items.push(i):this.items.splice(u,0,i)}else this.items.push(i)}delete(t){const n=wi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=wi(this.items,t)?.value;return(!n&&kt(o)?o.value:o)??void 0}has(t){return!!wi(this.items,t)}set(t,n){this.add(new pn(t,n),!0)}toJSON(t,n,i){const o=i?new i:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const a of this.items)Td(n,o,a);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!qt(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})),Od(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const ns={collection:"map",default:!0,nodeClass:Vn,tag:"tag:yaml.org,2002:map",resolve(e,t){return Hs(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Vn.from(e,t,n)};class bi extends Sd{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Yi,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=ma(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=ma(t);if(typeof i!="number")return;const o=this.items[i];return!n&&kt(o)?o.value:o}has(t){const n=ma(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=ma(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];kt(o)&&Ad(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?Od(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n)){let u=0;for(let l of n){if(typeof o=="function"){const f=n instanceof Set?l:String(u++);l=o.call(n,f,l)}a.items.push(Js(l,void 0,i))}}return a}}function ma(e){let t=kt(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const rs={collection:"seq",default:!0,nodeClass:bi,tag:"tag:yaml.org,2002:seq",resolve(e,t){return zs(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>bi.from(e,t,n)},wa={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),Ec(e,t,n,i)}},ba={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"&&ba.test.test(e)?e:t.options.nullStr},_c={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new qe(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&_c.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};function tr({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:tr},Fd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():tr(e)}},Bd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new qe(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:tr},va=e=>typeof e=="bigint"||Number.isInteger(e),kc=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Dd(e,t,n){const{value:i}=e;return va(i)&&i>=0?n+i.toString(t):tr(e)}const Pd={identify:e=>va(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>kc(e,2,8,n),stringify:e=>Dd(e,8,"0o")},Rd={identify:va,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>kc(e,0,10,n),stringify:tr},Ld={identify:e=>va(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>kc(e,2,16,n),stringify:e=>Dd(e,16,"0x")},cb=[ns,rs,wa,ba,_c,Pd,Rd,Ld,Id,Fd,Bd];function jd(e){return typeof e=="bigint"||Number.isInteger(e)}const Aa=({value:e})=>JSON.stringify(e),lb=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Aa},{identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Aa},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Aa},{identify:jd,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>jd(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Aa}],fb={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},hb=[ns,rs].concat(lb,fb),Tc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,o,a){const u=n;let l;if(typeof btoa=="function"){let f="";for(let d=0;d<u.length;++d)f+=String.fromCharCode(u[d]);l=btoa(f)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=qe.BLOCK_LITERAL),t!==qe.QUOTE_DOUBLE){const f=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),d=Math.ceil(l.length/f),g=new Array(d);for(let p=0,v=0;p<d;++p,v+=f)g[p]=l.substr(v,f);l=g.join(t===qe.BLOCK_LITERAL?`
300
+ `:" ")}return Ec({comment:e,type:t,value:l},i,o,a)}};function Nd(e,t){if(zs(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!qt(i)){if(Hs(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new pn(new qe(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
301
301
  ${o.key.commentBefore}`:i.commentBefore),i.comment){const a=o.value??o.key;a.comment=a.comment?`${i.comment}
302
- ${a.comment}`:i.comment}i=o}e.items[n]=Kt(i)?i:new gn(i)}}else t("Expected a sequence for this tag");return e}function kd(e,t,n){const{replacer:i}=n,o=new yi(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(Ac(l,f,n))}return o}const Cc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:_d,createNode:kd};class ts extends yi{constructor(){super(),this.add=Un.prototype.add.bind(this),this.delete=Un.prototype.delete.bind(this),this.get=Un.prototype.get.bind(this),this.has=Un.prototype.has.bind(this),this.set=Un.prototype.set.bind(this),this.tag=ts.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(Kt(o)?(a=Mn(o.key,"",n),u=Mn(o.value,a,n)):a=Mn(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=kd(t,n,i),a=new this;return a.items=o.items,a}}ts.tag="tag:yaml.org,2002:omap";const _c={collection:"seq",identify:e=>e instanceof Map,nodeClass:ts,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=_d(e,t),i=[];for(const{key:o}of n.items)kt(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new ts,n)},createNode:(e,t,n)=>ts.from(e,t,n)};function Td({value:e,source:t},n){return t&&(e?Od:Id).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Od={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 We(!0),stringify:Td},Id={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 We(!1),stringify:Td},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:tr},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():tr(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 We(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:tr},Ys=e=>typeof e=="bigint"||Number.isInteger(e);function va(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 kc(e,t,n){const{value:i}=e;if(Ys(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return tr(e)}const ow={identify:Ys,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>va(e,2,2,n),stringify:e=>kc(e,2,"0b")},aw={identify:Ys,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>va(e,1,8,n),stringify:e=>kc(e,8,"0")},uw={identify:Ys,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>va(e,0,10,n),stringify:tr},cw={identify:Ys,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>va(e,2,16,n),stringify:e=>kc(e,16,"0x")};class ns extends Un{constructor(t){super(t),this.tag=ns.tag}add(t){let n;Kt(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),gi(this.items,n.key)||this.items.push(n)}get(t,n){const i=gi(this.items,t);return!n&&Kt(i)?kt(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=gi(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(Ac(u,null,i));return a}}ns.tag="tag:yaml.org,2002:set";const Tc={collection:"map",identify:e=>e instanceof Set,nodeClass:ns,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>ns.from(e,t,n),resolve(e,t){if(Ws(e)){if(e.hasAllNullValues(!0))return Object.assign(new ns,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Oc(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 Fd(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return tr(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 Bd={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})=>Oc(e,n),stringify:Fd},Dd={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=>Oc(e,!1),stringify:Fd},wa={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(wa.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,a,u,l]=t.map(Number),f=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,i-1,o,a||0,u||0,l||0,f);const g=t[8];if(g&&g!=="Z"){let p=Oc(g,!1);Math.abs(p)<30&&(p*=60),d-=6e4*p}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},Pd=[Zi,es,ga,ya,Od,Id,ow,aw,uw,cw,rw,iw,sw,xc,Cr,_c,Cc,Tc,Bd,Dd,wa],Rd=new Map([["core",Zv],["failsafe",[Zi,es,ga]],["json",nw],["yaml11",Pd],["yaml-1.1",Pd]]),Ld={binary:xc,bool:Sc,float:wd,floatExp:vd,floatNaN:bd,floatTime:Dd,int:Ed,intHex:xd,intOct:Sd,intTime:Bd,map:Zi,merge:Cr,null:ya,omap:_c,pairs:Cc,seq:es,set:Tc,timestamp:wa},lw={"tag:yaml.org,2002:binary":xc,"tag:yaml.org,2002:merge":Cr,"tag:yaml.org,2002:omap":_c,"tag:yaml.org,2002:pairs":Cc,"tag:yaml.org,2002:set":Tc,"tag:yaml.org,2002:timestamp":wa};function Ic(e,t,n){const i=Rd.get(t);if(i&&!e)return n&&!i.includes(Cr)?i.concat(Cr):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(Rd.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(Cr)),o.reduce((a,u)=>{const l=typeof u=="string"?Ld[u]:u;if(!l){const f=JSON.stringify(u),d=Object.keys(Ld).map(g=>JSON.stringify(g)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${d}`)}return a.includes(l)||a.push(l),a},[])}const fw=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Fc{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,Ur,{value:Zi}),Object.defineProperty(this,gr,{value:ga}),Object.defineProperty(this,zi,{value:es}),this.sortMapEntries=typeof u=="function"?u:u===!0?fw:null}clone(){const t=Object.create(Fc.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=dd(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(xr(f,""))}let u=!1,l=null;if(e.contents){if(zt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const g=a(e.contents.commentBefore);n.push(xr(g,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let d=Qi(e.contents,o,()=>l=null,f);l&&(d+=pi(d,"",a(l))),(d[0]==="|"||d[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${d}`:n.push(d)}else n.push(Qi(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
303
- `)?(n.push("..."),n.push(xr(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(xr(a(f),"")))}return n.join(`
302
+ ${a.comment}`:i.comment}i=o}e.items[n]=qt(i)?i:new pn(i)}}else t("Expected a sequence for this tag");return e}function $d(e,t,n){const{replacer:i}=n,o=new bi(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let u of t){typeof i=="function"&&(u=i.call(t,String(a++),u));let l,f;if(Array.isArray(u))if(u.length===2)l=u[0],f=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const d=Object.keys(u);if(d.length===1)l=d[0],f=u[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=u;o.items.push(Cc(l,f,n))}return o}const Oc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Nd,createNode:$d};class is extends bi{constructor(){super(),this.add=Vn.prototype.add.bind(this),this.delete=Vn.prototype.delete.bind(this),this.get=Vn.prototype.get.bind(this),this.has=Vn.prototype.has.bind(this),this.set=Vn.prototype.set.bind(this),this.tag=is.tag}toJSON(t,n){if(!n)return super.toJSON(t);const i=new Map;n?.onCreate&&n.onCreate(i);for(const o of this.items){let a,u;if(qt(o)?(a=Un(o.key,"",n),u=Un(o.value,a,n)):a=Un(o,"",n),i.has(a))throw new Error("Ordered maps must not include duplicate keys");i.set(a,u)}return i}static from(t,n,i){const o=$d(t,n,i),a=new this;return a.items=o.items,a}}is.tag="tag:yaml.org,2002:omap";const Ic={collection:"seq",identify:e=>e instanceof Map,nodeClass:is,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Nd(e,t),i=[];for(const{key:o}of n.items)kt(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new is,n)},createNode:(e,t,n)=>is.from(e,t,n)};function Md({value:e,source:t},n){return t&&(e?Ud:Vd).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Ud={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new qe(!0),stringify:Md},Vd={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new qe(!1),stringify:Md},db={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:tr},pb={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():tr(e)}},gb={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:tr},Xs=e=>typeof e=="bigint"||Number.isInteger(e);function Sa(e,t,n,{intAsBigInt:i}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const u=BigInt(e);return o==="-"?BigInt(-1)*u:u}const a=parseInt(e,n);return o==="-"?-1*a:a}function Fc(e,t,n){const{value:i}=e;if(Xs(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return tr(e)}const yb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Sa(e,2,2,n),stringify:e=>Fc(e,2,"0b")},mb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Sa(e,1,8,n),stringify:e=>Fc(e,8,"0")},wb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Sa(e,0,10,n),stringify:tr},bb={identify:Xs,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Sa(e,2,16,n),stringify:e=>Fc(e,16,"0x")};class ss extends Vn{constructor(t){super(t),this.tag=ss.tag}add(t){let n;qt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new pn(t.key,null):n=new pn(t,null),wi(this.items,n.key)||this.items.push(n)}get(t,n){const i=wi(this.items,t);return!n&&qt(i)?kt(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=wi(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new pn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){const{replacer:o}=i,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let u of n)typeof o=="function"&&(u=o.call(n,u,u)),a.items.push(Cc(u,null,i));return a}}ss.tag="tag:yaml.org,2002:set";const Bc={collection:"map",identify:e=>e instanceof Set,nodeClass:ss,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>ss.from(e,t,n),resolve(e,t){if(Hs(e)){if(e.hasAllNullValues(!0))return Object.assign(new ss,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Dc(e,t){const n=e[0],i=n==="-"||n==="+"?e.substring(1):e,o=u=>t?BigInt(u):Number(u),a=i.replace(/_/g,"").split(":").reduce((u,l)=>u*o(60)+o(l),o(0));return n==="-"?o(-1)*a:a}function qd(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return tr(e);let i="";t<0&&(i="-",t*=n(-1));const o=n(60),a=[t%o];return t<60?a.unshift(0):(t=(t-a[0])/o,a.unshift(t%o),t>=60&&(t=(t-a[0])/o,a.unshift(t))),i+a.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Wd={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Dc(e,n),stringify:qd},Kd={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Dc(e,!1),stringify:qd},Ea={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(Ea.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,a,u,l]=t.map(Number),f=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,i-1,o,a||0,u||0,l||0,f);const g=t[8];if(g&&g!=="Z"){let p=Dc(g,!1);Math.abs(p)<30&&(p*=60),d-=6e4*p}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},Hd=[ns,rs,wa,ba,Ud,Vd,yb,mb,wb,bb,db,pb,gb,Tc,kr,Ic,Oc,Bc,Wd,Kd,Ea],zd=new Map([["core",cb],["failsafe",[ns,rs,wa]],["json",hb],["yaml11",Hd],["yaml-1.1",Hd]]),Gd={binary:Tc,bool:_c,float:Bd,floatExp:Fd,floatNaN:Id,floatTime:Kd,int:Rd,intHex:Ld,intOct:Pd,intTime:Wd,map:ns,merge:kr,null:ba,omap:Ic,pairs:Oc,seq:rs,set:Bc,timestamp:Ea},vb={"tag:yaml.org,2002:binary":Tc,"tag:yaml.org,2002:merge":kr,"tag:yaml.org,2002:omap":Ic,"tag:yaml.org,2002:pairs":Oc,"tag:yaml.org,2002:set":Bc,"tag:yaml.org,2002:timestamp":Ea};function Pc(e,t,n){const i=zd.get(t);if(i&&!e)return n&&!i.includes(kr)?i.concat(kr):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const a=Array.from(zd.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${a} or define customTags array`)}if(Array.isArray(e))for(const a of e)o=o.concat(a);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(kr)),o.reduce((a,u)=>{const l=typeof u=="string"?Gd[u]:u;if(!l){const f=JSON.stringify(u),d=Object.keys(Gd).map(g=>JSON.stringify(g)).join(", ");throw new Error(`Unknown custom tag ${f}; use one of ${d}`)}return a.includes(l)||a.push(l),a},[])}const Ab=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Rc{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:a,sortMapEntries:u,toStringDefaults:l}){this.compat=Array.isArray(t)?Pc(t,"compat"):t?Pc(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=o?vb:{},this.tags=Pc(n,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,Kr,{value:ns}),Object.defineProperty(this,yr,{value:wa}),Object.defineProperty(this,Yi,{value:rs}),this.sortMapEntries=typeof u=="function"?u:u===!0?Ab:null}clone(){const t=Object.create(Rc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Sb(e,t){const n=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const o=Cd(e,t),{commentString:a}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=a(e.commentBefore);n.unshift(_r(f,""))}let u=!1,l=null;if(e.contents){if(Kt(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const g=a(e.contents.commentBefore);n.push(_r(g,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>u=!0;let d=ts(e.contents,o,()=>l=null,f);l&&(d+=mi(d,"",a(l))),(d[0]==="|"||d[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${d}`:n.push(d)}else n.push(ts(e.contents,o));if(e.directives?.docEnd)if(e.comment){const f=a(e.comment);f.includes(`
303
+ `)?(n.push("..."),n.push(_r(f,""))):n.push(`... ${f}`)}else n.push("...");else{let f=e.comment;f&&u&&(f=f.replace(/^\n+/,"")),f&&((!u||l)&&n[n.length-1]!==""&&n.push(""),n.push(_r(a(f),"")))}return n.join(`
304
304
  `)+`
305
- `}class Xs{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,jn,{value:dc});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(Xs.prototype,{[jn]:{value:dc}});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=zt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){rs(this.contents)&&this.contents.add(t)}addIn(t,n){rs(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=ad(this);t.anchor=!n||i.has(n)?ud(n||"a",i):n}return new gc(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 v=N=>typeof N=="number"||N instanceof String||N instanceof Number,R=n.filter(v).map(String);R.length>0&&(n=n.concat(R)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:d,tag:g}=i??{},{onAnchor:p,setAnchors:w,sourceObjects:_}=Mv(this,u||"a"),A={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:p,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:_},S=zs(t,g,A);return l&&Ht(S)&&(S.flow=!0),w(),S}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 rs(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Gs(t)?this.contents==null?!1:(this.contents=null,!0):rs(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Ht(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Gs(t)?!n&&kt(this.contents)?this.contents.value:this.contents:Ht(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Ht(this.contents)?this.contents.has(t):!1}hasIn(t){return Gs(t)?this.contents!==void 0:Ht(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=oa(this.schema,[t],n):rs(this.contents)&&this.contents.set(t,n)}setIn(t,n){Gs(t)?this.contents=n:this.contents==null?this.contents=oa(this.schema,Array.from(t),n):rs(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 Fc(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=Mn(this.contents,n??"",l);if(typeof a=="function")for(const{count:d,res:g}of l.anchors.values())a(g,d);return typeof u=="function"?Yi(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 rs(e){if(Ht(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Nd extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class Qs extends Nd{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class dw extends Nd{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const $d=(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)+`…
305
+ `}class Zs{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mn,{value:mc});let o=null;typeof n=="function"||Array.isArray(n)?o=n:i===void 0&&n&&(i=n,n=void 0);const a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=a;let{version:u}=a;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new dn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(Zs.prototype,{[Mn]:{value:mc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Kt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){os(this.contents)&&this.contents.add(t)}addIn(t,n){os(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=bd(this);t.anchor=!n||i.has(n)?vd(n||"a",i):n}return new bc(t.anchor)}createNode(t,n,i){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const b=j=>typeof j=="number"||j instanceof String||j instanceof Number,D=n.filter(b).map(String);D.length>0&&(n=n.concat(D)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:a,anchorPrefix:u,flow:l,keepUndefined:f,onTagObj:d,tag:g}=i??{},{onAnchor:p,setAnchors:v,sourceObjects:_}=Yw(this,u||"a"),S={aliasDuplicateObjects:a??!0,keepUndefined:f??!1,onAnchor:p,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:_},E=Js(t,g,S);return l&&Wt(E)&&(E.flow=!0),v(),E}createPair(t,n,i={}){const o=this.createNode(t,null,i),a=this.createNode(n,null,i);return new pn(o,a)}delete(t){return os(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Ys(t)?this.contents==null?!1:(this.contents=null,!0):os(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Wt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Ys(t)?!n&&kt(this.contents)?this.contents.value:this.contents:Wt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Wt(this.contents)?this.contents.has(t):!1}hasIn(t){return Ys(t)?this.contents!==void 0:Wt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ca(this.schema,[t],n):os(this.contents)&&this.contents.set(t,n)}setIn(t,n){Ys(t)?this.contents=n:this.contents==null?this.contents=ca(this.schema,Array.from(t),n):os(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new dn({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 dn({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 Rc(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:o,onAnchor:a,reviver:u}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},f=Un(this.contents,n??"",l);if(typeof a=="function")for(const{count:d,res:g}of l.anchors.values())a(g,d);return typeof u=="function"?Zi(u,{"":f},"",f):f}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return Sb(this,t)}}function os(e){if(Wt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Jd extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class eo extends Jd{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class Eb extends Jd{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const Yd=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:i,col:o}=n.linePos[0];n.message+=` at line ${i}, column ${o}`;let a=o-1,u=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(a>=60&&u.length>80){const l=Math.min(a-39,u.length-79);u="…"+u.substring(l),a-=l-1}if(u.length>80&&(u=u.substring(0,79)+"…"),i>1&&/^ *$/.test(u.substring(0,a))){let l=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);l.length>80&&(l=l.substring(0,79)+`…
306
306
  `),u=l+u}if(/[^ ]/.test(u)){let l=1;const f=n.linePos[1];f&&f.line===i&&f.col>o&&(l=Math.max(1,Math.min(f.col-o,80-a)));const d=" ".repeat(a)+"^".repeat(l);n.message+=`:
307
307
 
308
308
  ${u}
309
309
  ${d}
310
- `}};function is(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,d=l,g=l,p="",w="",_=!1,A=!1,S=null,v=null,R=null,N=null,x=null,O=null,F=null;for(const V of e)switch(A&&(V.type!=="space"&&V.type!=="newline"&&V.type!=="comma"&&a(V.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),A=!1),S&&(d&&V.type!=="comment"&&V.type!=="newline"&&a(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),V.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&V.source.includes(" ")&&(S=V),g=!0;break;case"comment":{g||a(V,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Q=V.source.substring(1)||" ";p?p+=w+Q:p=Q,w="",d=!1;break}case"newline":d?p?p+=V.source:(!O||n!=="seq-item-ind")&&(f=!0):w+=V.source,d=!0,_=!0,(v||R)&&(N=V),g=!0;break;case"anchor":v&&a(V,"MULTIPLE_ANCHORS","A node can have at most one anchor"),V.source.endsWith(":")&&a(V.offset+V.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),v=V,F===null&&(F=V.offset),d=!1,g=!1,A=!0;break;case"tag":{R&&a(V,"MULTIPLE_TAGS","A node can have at most one tag"),R=V,F===null&&(F=V.offset),d=!1,g=!1,A=!0;break}case n:(v||R)&&a(V,"BAD_PROP_ORDER",`Anchors and tags must be after the ${V.source} indicator`),O&&a(V,"UNEXPECTED_TOKEN",`Unexpected ${V.source} in ${t??"collection"}`),O=V,d=n==="seq-item-ind"||n==="explicit-key-ind",g=!1;break;case"comma":if(t){x&&a(V,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),x=V,d=!1,g=!1;break}default:a(V,"UNEXPECTED_TOKEN",`Unexpected ${V.type} token`),d=!1,g=!1}const k=e[e.length-1],D=k?k.offset+k.source.length:o;return A&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&a(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),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:x,found:O,spaceBefore:f,comment:p,hasNewline:_,anchor:v,tag:R,newlineAfterProp:N,end:D,start:F??D}}function Zs(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(Zs(t.key)||Zs(t.value))return!0}return!1;default:return!0}}function Bc(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&Zs(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function jd(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||kt(a)&&kt(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const Md="All mapping items must start at the same column";function pw({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??Un,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,d=null;for(const g of i.items){const{start:p,key:w,sep:_,value:A}=g,S=is(p,{indicator:"explicit-key-ind",next:w??_?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),v=!S.found;if(v){if(w&&(w.type==="block-seq"?o(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in w&&w.indent!==i.indent&&o(f,"BAD_INDENT",Md)),!S.anchor&&!S.tag&&!_){d=S.end,S.comment&&(l.comment?l.comment+=`
312
- `+S.comment:l.comment=S.comment);continue}(S.newlineAfterProp||Zs(w))&&o(w??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else S.found?.indent!==i.indent&&o(f,"BAD_INDENT",Md);n.atKey=!0;const R=S.end,N=w?e(n,w,S,o):t(n,R,p,null,S,o);n.schema.compat&&Bc(i.indent,w,o),n.atKey=!1,jd(n,l.items,N)&&o(R,"DUPLICATE_KEY","Map keys must be unique");const x=is(_??[],{indicator:"map-value-ind",next:A,offset:N.range[2],onError:o,parentIndent:i.indent,startOnNewline:!w||w.type==="block-scalar"});if(f=x.end,x.found){v&&(A?.type==="block-map"&&!x.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&S.start<x.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 O=A?e(n,A,x,o):t(n,f,_,null,x,o);n.schema.compat&&Bc(i.indent,A,o),f=O.range[2];const F=new gn(N,O);n.options.keepSourceTokens&&(F.srcToken=g),l.items.push(F)}else{v&&o(N.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),x.comment&&(N.comment?N.comment+=`
313
- `+x.comment:N.comment=x.comment);const O=new gn(N);n.options.keepSourceTokens&&(O.srcToken=g),l.items.push(O)}}return d&&d<f&&o(d,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,d??f],l}function gw({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??yi,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,d=null;for(const{start:g,value:p}of i.items){const w=is(g,{indicator:"seq-item-ind",next:p,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!w.found)if(w.anchor||w.tag||p)p&&p.type==="block-seq"?o(w.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{d=w.end,w.comment&&(l.comment=w.comment);continue}const _=p?e(n,p,w,o):t(n,w.end,g,null,w,o);n.schema.compat&&Bc(i.indent,p,o),f=_.range[2],l.items.push(_)}return l.range=[i.offset,f,d??f],l}function eo(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:d}=l;switch(d){case"space":a=!0;break;case"comment":{n&&!a&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const g=f.substring(1)||" ";o?o+=u+g:o=g,u="";break}case"newline":o&&(u+=f),a=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=f.length}}return{comment:o,offset:t}}const Dc="Block collections are not allowed within flow collections",Pc=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?Un:yi),d=new f(n.schema);d.flow=!0;const g=n.atRoot;g&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let p=i.offset+i.start.source.length;for(let v=0;v<i.items.length;++v){const R=i.items[v],{start:N,key:x,sep:O,value:F}=R,k=is(N,{flow:l,indicator:"explicit-key-ind",next:x??O?.[0],offset:p,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!k.found){if(!k.anchor&&!k.tag&&!O&&!F){v===0&&k.comma?o(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):v<i.items.length-1&&o(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),k.comment&&(d.comment?d.comment+=`
314
- `+k.comment:d.comment=k.comment),p=k.end;continue}!u&&n.options.strict&&Zs(x)&&o(x,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(v===0)k.comma&&o(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(k.comma||o(k.start,"MISSING_CHAR",`Missing , between ${l} items`),k.comment){let D="";e:for(const V of N)switch(V.type){case"comma":case"space":break;case"comment":D=V.source.substring(1);break e;default:break e}if(D){let V=d.items[d.items.length-1];Kt(V)&&(V=V.value??V.key),V.comment?V.comment+=`
315
- `+D:V.comment=D,k.comment=k.comment.substring(D.length+1)}}if(!u&&!O&&!k.found){const D=F?e(n,F,k,o):t(n,k.end,O,null,k,o);d.items.push(D),p=D.range[2],Pc(F)&&o(D.range,"BLOCK_IN_FLOW",Dc)}else{n.atKey=!0;const D=k.end,V=x?e(n,x,k,o):t(n,D,N,null,k,o);Pc(x)&&o(V.range,"BLOCK_IN_FLOW",Dc),n.atKey=!1;const Q=is(O??[],{flow:l,indicator:"map-value-ind",next:F,offset:V.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(Q.found){if(!u&&!k.found&&n.options.strict){if(O)for(const ge of O){if(ge===Q.found)break;if(ge.type==="newline"){o(ge,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<Q.found.offset-1024&&o(Q.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else F&&("source"in F&&F.source&&F.source[0]===":"?o(F,"MISSING_CHAR",`Missing space after : in ${l}`):o(Q.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const fe=F?e(n,F,Q,o):Q.found?t(n,Q.end,O,null,Q,o):null;fe?Pc(F)&&o(fe.range,"BLOCK_IN_FLOW",Dc):Q.comment&&(V.comment?V.comment+=`
316
- `+Q.comment:V.comment=Q.comment);const le=new gn(V,fe);if(n.options.keepSourceTokens&&(le.srcToken=R),u){const ge=d;jd(n,ge.items,V)&&o(D,"DUPLICATE_KEY","Map keys must be unique"),ge.items.push(le)}else{const ge=new Un(n.schema);ge.flow=!0,ge.items.push(le);const me=(fe??V).range;ge.range=[V.range[0],me[1],me[2]],d.items.push(ge)}p=fe?fe.range[2]:Q.end}}const w=u?"}":"]",[_,...A]=i.end;let S=p;if(_&&_.source===w)S=_.offset+_.source.length;else{const v=l[0].toUpperCase()+l.substring(1),R=g?`${v} must end with a ${w}`:`${v} in block collection must be sufficiently indented and end with a ${w}`;o(p,g?"MISSING_CHAR":"BAD_INDENT",R),_&&_.source.length!==1&&A.unshift(_)}if(A.length>0){const v=eo(A,S,n.options.strict,o);v.comment&&(d.comment?d.comment+=`
317
- `+v.comment:d.comment=v.comment),d.range=[i.offset,S,v.offset]}else d.range=[i.offset,S,S];return d}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,w=>o(a,"TAG_RESOLVE_FAILED",w)):null;if(n.type==="block-seq"){const{anchor:w,newlineAfterProp:_}=i,A=w&&a?w.offset>a.offset?w:a:w??a;A&&(!_||_.offset<A.offset)&&o(A,"MISSING_CHAR","Missing newline after block sequence props")}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===Un.tagName&&l==="map"||u===yi.tagName&&l==="seq")return Rc(e,t,n,o,u);let f=t.schema.tags.find(w=>w.tag===u&&w.collection===l);if(!f){const w=t.schema.knownTags[u];if(w&&w.collection===l)t.schema.tags.push(Object.assign({},w,{default:!1})),f=w;else return w?.collection?o(a,"BAD_COLLECTION_TYPE",`${w.tag} used for ${l} collection, but expects ${w.collection}`,!0):o(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),Rc(e,t,n,o,u)}const d=Rc(e,t,n,o,u,f),g=f.resolve?.(d,w=>o(a,"TAG_RESOLVE_FAILED",w),t.options)??d,p=zt(g)?g:new We(g);return p.range=d.range,p.tag=u,f?.format&&(p.format=f.format),p}function bw(e,t,n){const i=t.offset,o=vw(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const a=o.mode===">"?We.BLOCK_FOLDED:We.BLOCK_LITERAL,u=t.source?ww(t.source):[];let l=u.length;for(let S=u.length-1;S>=0;--S){const v=u[S][1];if(v===""||v==="\r")l=S;else break}if(l===0){const S=o.chomp==="+"&&u.length>0?`
318
- `.repeat(Math.max(1,u.length-1)):"";let v=i+o.length;return t.source&&(v+=t.source.length),{value:S,type:a,comment:o.comment,range:[i,v,v]}}let f=t.indent+o.indent,d=t.offset+o.length,g=0;for(let S=0;S<l;++S){const[v,R]=u[S];if(R===""||R==="\r")o.indent===0&&v.length>f&&(f=v.length);else{v.length<f&&n(d+v.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(f=v.length),g=S,f===0&&!e.atRoot&&n(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=v.length+R.length+1}for(let S=u.length-1;S>=l;--S)u[S][0].length>f&&(l=S+1);let p="",w="",_=!1;for(let S=0;S<g;++S)p+=u[S][0].slice(f)+`
319
- `;for(let S=g;S<l;++S){let[v,R]=u[S];d+=v.length+R.length+1;const N=R[R.length-1]==="\r";if(N&&(R=R.slice(0,-1)),R&&v.length<f){const O=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-R.length-(N?2:1),"BAD_INDENT",O),v=""}a===We.BLOCK_LITERAL?(p+=w+v.slice(f)+R,w=`
320
- `):v.length>f||R[0]===" "?(w===" "?w=`
321
- `:!_&&w===`
322
- `&&(w=`
323
-
324
- `),p+=w+v.slice(f)+R,w=`
325
- `,_=!0):R===""?w===`
310
+ `}};function as(e,{flow:t,indicator:n,next:i,offset:o,onError:a,parentIndent:u,startOnNewline:l}){let f=!1,d=l,g=l,p="",v="",_=!1,S=!1,E=null,b=null,D=null,j=null,C=null,T=null,F=null;for(const W of e)switch(S&&(W.type!=="space"&&W.type!=="newline"&&W.type!=="comma"&&a(W.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S=!1),E&&(d&&W.type!=="comment"&&W.type!=="newline"&&a(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),E=null),W.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&W.source.includes(" ")&&(E=W),g=!0;break;case"comment":{g||a(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Y=W.source.substring(1)||" ";p?p+=v+Y:p=Y,v="",d=!1;break}case"newline":d?p?p+=W.source:(!T||n!=="seq-item-ind")&&(f=!0):v+=W.source,d=!0,_=!0,(b||D)&&(j=W),g=!0;break;case"anchor":b&&a(W,"MULTIPLE_ANCHORS","A node can have at most one anchor"),W.source.endsWith(":")&&a(W.offset+W.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=W,F===null&&(F=W.offset),d=!1,g=!1,S=!0;break;case"tag":{D&&a(W,"MULTIPLE_TAGS","A node can have at most one tag"),D=W,F===null&&(F=W.offset),d=!1,g=!1,S=!0;break}case n:(b||D)&&a(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),T&&a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),T=W,d=n==="seq-item-ind"||n==="explicit-key-ind",g=!1;break;case"comma":if(t){C&&a(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),C=W,d=!1,g=!1;break}default:a(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),d=!1,g=!1}const P=e[e.length-1],O=P?P.offset+P.source.length:o;return S&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&a(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),E&&(d&&E.indent<=u||i?.type==="block-map"||i?.type==="block-seq")&&a(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:C,found:T,spaceBefore:f,comment:p,hasNewline:_,anchor:b,tag:D,newlineAfterProp:j,end:O,start:F??O}}function to(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
311
+ `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(to(t.key)||to(t.value))return!0}return!1;default:return!0}}function Lc(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&to(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Qd(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(a,u)=>a===u||kt(a)&&kt(u)&&a.value===u.value;return t.some(a=>o(a.key,n))}const Xd="All mapping items must start at the same column";function xb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??Vn,l=new u(n.schema);n.atRoot&&(n.atRoot=!1);let f=i.offset,d=null;for(const g of i.items){const{start:p,key:v,sep:_,value:S}=g,E=as(p,{indicator:"explicit-key-ind",next:v??_?.[0],offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0}),b=!E.found;if(b){if(v&&(v.type==="block-seq"?o(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in v&&v.indent!==i.indent&&o(f,"BAD_INDENT",Xd)),!E.anchor&&!E.tag&&!_){d=E.end,E.comment&&(l.comment?l.comment+=`
312
+ `+E.comment:l.comment=E.comment);continue}(E.newlineAfterProp||to(v))&&o(v??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else E.found?.indent!==i.indent&&o(f,"BAD_INDENT",Xd);n.atKey=!0;const D=E.end,j=v?e(n,v,E,o):t(n,D,p,null,E,o);n.schema.compat&&Lc(i.indent,v,o),n.atKey=!1,Qd(n,l.items,j)&&o(D,"DUPLICATE_KEY","Map keys must be unique");const C=as(_??[],{indicator:"map-value-ind",next:S,offset:j.range[2],onError:o,parentIndent:i.indent,startOnNewline:!v||v.type==="block-scalar"});if(f=C.end,C.found){b&&(S?.type==="block-map"&&!C.hasNewline&&o(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&E.start<C.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 T=S?e(n,S,C,o):t(n,f,_,null,C,o);n.schema.compat&&Lc(i.indent,S,o),f=T.range[2];const F=new pn(j,T);n.options.keepSourceTokens&&(F.srcToken=g),l.items.push(F)}else{b&&o(j.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),C.comment&&(j.comment?j.comment+=`
313
+ `+C.comment:j.comment=C.comment);const T=new pn(j);n.options.keepSourceTokens&&(T.srcToken=g),l.items.push(T)}}return d&&d<f&&o(d,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,f,d??f],l}function Cb({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=a?.nodeClass??bi,l=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=i.offset,d=null;for(const{start:g,value:p}of i.items){const v=as(g,{indicator:"seq-item-ind",next:p,offset:f,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||p)p&&p.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(f,"MISSING_CHAR","Sequence item without - indicator");else{d=v.end,v.comment&&(l.comment=v.comment);continue}const _=p?e(n,p,v,o):t(n,v.end,g,null,v,o);n.schema.compat&&Lc(i.indent,p,o),f=_.range[2],l.items.push(_)}return l.range=[i.offset,f,d??f],l}function no(e,t,n,i){let o="";if(e){let a=!1,u="";for(const l of e){const{source:f,type:d}=l;switch(d){case"space":a=!0;break;case"comment":{n&&!a&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const g=f.substring(1)||" ";o?o+=u+g:o=g,u="";break}case"newline":o&&(u+=f),a=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=f.length}}return{comment:o,offset:t}}const jc="Block collections are not allowed within flow collections",Nc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function _b({composeNode:e,composeEmptyNode:t},n,i,o,a){const u=i.start.source==="{",l=u?"flow map":"flow sequence",f=a?.nodeClass??(u?Vn:bi),d=new f(n.schema);d.flow=!0;const g=n.atRoot;g&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let p=i.offset+i.start.source.length;for(let b=0;b<i.items.length;++b){const D=i.items[b],{start:j,key:C,sep:T,value:F}=D,P=as(j,{flow:l,indicator:"explicit-key-ind",next:C??T?.[0],offset:p,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!P.found){if(!P.anchor&&!P.tag&&!T&&!F){b===0&&P.comma?o(P.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):b<i.items.length-1&&o(P.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),P.comment&&(d.comment?d.comment+=`
314
+ `+P.comment:d.comment=P.comment),p=P.end;continue}!u&&n.options.strict&&to(C)&&o(C,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)P.comma&&o(P.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(P.comma||o(P.start,"MISSING_CHAR",`Missing , between ${l} items`),P.comment){let O="";e:for(const W of j)switch(W.type){case"comma":case"space":break;case"comment":O=W.source.substring(1);break e;default:break e}if(O){let W=d.items[d.items.length-1];qt(W)&&(W=W.value??W.key),W.comment?W.comment+=`
315
+ `+O:W.comment=O,P.comment=P.comment.substring(O.length+1)}}if(!u&&!T&&!P.found){const O=F?e(n,F,P,o):t(n,P.end,T,null,P,o);d.items.push(O),p=O.range[2],Nc(F)&&o(O.range,"BLOCK_IN_FLOW",jc)}else{n.atKey=!0;const O=P.end,W=C?e(n,C,P,o):t(n,O,j,null,P,o);Nc(C)&&o(W.range,"BLOCK_IN_FLOW",jc),n.atKey=!1;const Y=as(T??[],{flow:l,indicator:"map-value-ind",next:F,offset:W.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(Y.found){if(!u&&!P.found&&n.options.strict){if(T)for(const ge of T){if(ge===Y.found)break;if(ge.type==="newline"){o(ge,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}P.start<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 F&&("source"in F&&F.source&&F.source[0]===":"?o(F,"MISSING_CHAR",`Missing space after : in ${l}`):o(Y.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const ce=F?e(n,F,Y,o):Y.found?t(n,Y.end,T,null,Y,o):null;ce?Nc(F)&&o(ce.range,"BLOCK_IN_FLOW",jc):Y.comment&&(W.comment?W.comment+=`
316
+ `+Y.comment:W.comment=Y.comment);const le=new pn(W,ce);if(n.options.keepSourceTokens&&(le.srcToken=D),u){const ge=d;Qd(n,ge.items,W)&&o(O,"DUPLICATE_KEY","Map keys must be unique"),ge.items.push(le)}else{const ge=new Vn(n.schema);ge.flow=!0,ge.items.push(le);const ye=(ce??W).range;ge.range=[W.range[0],ye[1],ye[2]],d.items.push(ge)}p=ce?ce.range[2]:Y.end}}const v=u?"}":"]",[_,...S]=i.end;let E=p;if(_&&_.source===v)E=_.offset+_.source.length;else{const b=l[0].toUpperCase()+l.substring(1),D=g?`${b} must end with a ${v}`:`${b} in block collection must be sufficiently indented and end with a ${v}`;o(p,g?"MISSING_CHAR":"BAD_INDENT",D),_&&_.source.length!==1&&S.unshift(_)}if(S.length>0){const b=no(S,E,n.options.strict,o);b.comment&&(d.comment?d.comment+=`
317
+ `+b.comment:d.comment=b.comment),d.range=[i.offset,E,b.offset]}else d.range=[i.offset,E,E];return d}function $c(e,t,n,i,o,a){const u=n.type==="block-map"?xb(e,t,n,i,a):n.type==="block-seq"?Cb(e,t,n,i,a):_b(e,t,n,i,a),l=u.constructor;return o==="!"||o===l.tagName?(u.tag=l.tagName,u):(o&&(u.tag=o),u)}function kb(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:_}=i,S=v&&a?v.offset>a.offset?v:a:v??a;S&&(!_||_.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 $c(e,t,n,o,u);let f=t.schema.tags.find(v=>v.tag===u&&v.collection===l);if(!f){const v=t.schema.knownTags[u];if(v&&v.collection===l)t.schema.tags.push(Object.assign({},v,{default:!1})),f=v;else return v?.collection?o(a,"BAD_COLLECTION_TYPE",`${v.tag} used for ${l} collection, but expects ${v.collection}`,!0):o(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),$c(e,t,n,o,u)}const d=$c(e,t,n,o,u,f),g=f.resolve?.(d,v=>o(a,"TAG_RESOLVE_FAILED",v),t.options)??d,p=Kt(g)?g:new qe(g);return p.range=d.range,p.tag=u,f?.format&&(p.format=f.format),p}function Tb(e,t,n){const i=t.offset,o=Ob(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?Ib(t.source):[];let l=u.length;for(let E=u.length-1;E>=0;--E){const b=u[E][1];if(b===""||b==="\r")l=E;else break}if(l===0){const E=o.chomp==="+"&&u.length>0?`
318
+ `.repeat(Math.max(1,u.length-1)):"";let b=i+o.length;return t.source&&(b+=t.source.length),{value:E,type:a,comment:o.comment,range:[i,b,b]}}let f=t.indent+o.indent,d=t.offset+o.length,g=0;for(let E=0;E<l;++E){const[b,D]=u[E];if(D===""||D==="\r")o.indent===0&&b.length>f&&(f=b.length);else{b.length<f&&n(d+b.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(f=b.length),g=E,f===0&&!e.atRoot&&n(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=b.length+D.length+1}for(let E=u.length-1;E>=l;--E)u[E][0].length>f&&(l=E+1);let p="",v="",_=!1;for(let E=0;E<g;++E)p+=u[E][0].slice(f)+`
319
+ `;for(let E=g;E<l;++E){let[b,D]=u[E];d+=b.length+D.length+1;const j=D[D.length-1]==="\r";if(j&&(D=D.slice(0,-1)),D&&b.length<f){const T=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-D.length-(j?2:1),"BAD_INDENT",T),b=""}a===qe.BLOCK_LITERAL?(p+=v+b.slice(f)+D,v=`
320
+ `):b.length>f||D[0]===" "?(v===" "?v=`
321
+ `:!_&&v===`
322
+ `&&(v=`
323
+
324
+ `),p+=v+b.slice(f)+D,v=`
325
+ `,_=!0):D===""?v===`
326
326
  `?p+=`
327
- `:w=`
328
- `:(p+=w+R,w=" ",_=!1)}switch(o.chomp){case"-":break;case"+":for(let S=l;S<u.length;++S)p+=`
329
- `+u[S][0].slice(f);p[p.length-1]!==`
327
+ `:v=`
328
+ `:(p+=v+D,v=" ",_=!1)}switch(o.chomp){case"-":break;case"+":for(let E=l;E<u.length;++E)p+=`
329
+ `+u[E][0].slice(f);p[p.length-1]!==`
330
330
  `&&(p+=`
331
331
  `);break;default:p+=`
332
- `}const A=i+o.length+t.source.length;return{value:p,type:a,comment:o.comment,range:[i,A,A]}}function vw({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 w=1;w<o.length;++w){const _=o[w];if(!l&&(_==="-"||_==="+"))l=_;else{const A=Number(_);!u&&A?u=A:f===-1&&(f=e+w)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,g="",p=o.length;for(let w=1;w<t.length;++w){const _=t[w];switch(_.type){case"space":d=!0;case"newline":p+=_.source.length;break;case"comment":n&&!d&&i(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=_.source.length,g=_.source.substring(1);break;case"error":i(_,"UNEXPECTED_TOKEN",_.message),p+=_.source.length;break;default:{const A=`Unexpected token in block scalar header: ${_.type}`;i(_,"UNEXPECTED_TOKEN",A);const S=_.source;S&&typeof S=="string"&&(p+=S.length)}}}return{mode:a,indent:u,chomp:l,comment:g,length:p}}function ww(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 Aw(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const d=(w,_,A)=>n(i+w,_,A);switch(o){case"scalar":l=We.PLAIN,f=Sw(a,d);break;case"single-quoted-scalar":l=We.QUOTE_SINGLE,f=Ew(a,d);break;case"double-quoted-scalar":l=We.QUOTE_DOUBLE,f=xw(a,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}const g=i+a.length,p=eo(u,g,t,n);return{value:f,type:l,comment:p.comment,range:[i,g,p.offset]}}function Sw(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}`),Ud(e)}function Ew(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Ud(e.slice(1,-1)).replace(/''/g,"'")}function Ud(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
332
+ `}const S=i+o.length+t.source.length;return{value:p,type:a,comment:o.comment,range:[i,S,S]}}function Ob({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 _=o[v];if(!l&&(_==="-"||_==="+"))l=_;else{const S=Number(_);!u&&S?u=S:f===-1&&(f=e+v)}}f!==-1&&i(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,g="",p=o.length;for(let v=1;v<t.length;++v){const _=t[v];switch(_.type){case"space":d=!0;case"newline":p+=_.source.length;break;case"comment":n&&!d&&i(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=_.source.length,g=_.source.substring(1);break;case"error":i(_,"UNEXPECTED_TOKEN",_.message),p+=_.source.length;break;default:{const S=`Unexpected token in block scalar header: ${_.type}`;i(_,"UNEXPECTED_TOKEN",S);const E=_.source;E&&typeof E=="string"&&(p+=E.length)}}}return{mode:a,indent:u,chomp:l,comment:g,length:p}}function Ib(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 Fb(e,t,n){const{offset:i,type:o,source:a,end:u}=e;let l,f;const d=(v,_,S)=>n(i+v,_,S);switch(o){case"scalar":l=qe.PLAIN,f=Bb(a,d);break;case"single-quoted-scalar":l=qe.QUOTE_SINGLE,f=Db(a,d);break;case"double-quoted-scalar":l=qe.QUOTE_DOUBLE,f=Pb(a,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}const g=i+a.length,p=no(u,g,t,n);return{value:f,type:l,comment:p.comment,range:[i,g,p.offset]}}function Bb(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Zd(e)}function Db(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Zd(e.slice(1,-1)).replace(/''/g,"'")}function Zd(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
333
333
  `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
334
334
  `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let o=i[1],a=" ",u=t.lastIndex;for(n.lastIndex=u;i=n.exec(e);)i[1]===""?a===`
335
335
  `?o+=a:a=`
336
- `:(o+=a+i[1],a=" "),u=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=u,i=l.exec(e),o+a+(i?.[1]??"")}function xw(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 Pb(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}=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===`
338
+ `){const{fold:a,offset:u}=Rb(e,i);n+=a,i=u}else if(o==="\\"){let a=e[++i];const u=Lb[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+=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!==`
340
+ `)for(a=e[++i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="x"||a==="u"||a==="U"){const l={x:2,u:4,U:8}[a];n+=jb(e,i+1,l,t),i+=l}else{const l=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(o===" "||o===" "){const a=i;let u=e[i+1];for(;u===" "||u===" ";)u=e[++i+1];u!==`
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 Cw(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 Rb(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 _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 Vd(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?bw(e,t,i):Aw(t,e.options.strict,i),f=n?e.directives.tagName(n.source,p=>i(n,"TAG_RESOLVE_FAILED",p)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[gr]:f?d=Tw(e.schema,o,f,n,i):t.type==="scalar"?d=Ow(e,o,t,i):d=e.schema[gr];let g;try{const p=d.resolve(o,w=>i(n??t,"TAG_RESOLVE_FAILED",w),e.options);g=kt(p)?p:new We(p)}catch(p){const w=p instanceof Error?p.message:String(p);i(n??t,"TAG_RESOLVE_FAILED",w),g=new We(o)}return g.range=l,g.source=o,a&&(g.type=a),f&&(g.tag=f),d.format&&(g.format=d.format),u&&(g.comment=u),g}function Tw(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 Ow({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),g=`Value may be parsed as either ${f} or ${d}`;a(o,"TAG_RESOLVE_FAILED",g,!0)}}return u}function Iw(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:qd,composeEmptyNode:Lc};function qd(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let d,g=!0;switch(t.type){case"alias":d=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":d=Vd(e,t,f,i),l&&(d.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=mw(Fw,e,t,n,i),l&&(d.anchor=l.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",p),d=Lc(e,t.offset,void 0,null,n,i),g=!1}}return l&&d.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!kt(d)||typeof d.value!="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")&&i(f??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(d.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?d.comment=u:d.commentBefore=u),e.options.keepSourceTokens&&g&&(d.srcToken=t),d}function Lc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},d){const g={type:"scalar",offset:Iw(t,n,i),indent:-1,source:""},p=Vd(e,g,l,d);return u&&(p.anchor=u.source.substring(1),p.anchor===""&&d(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),a&&(p.comment=a,p.range[2]=f),p}function Bw({options:e},{offset:t,source:n,end:i},o){const a=new gc(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=eo(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 Xs(void 0,l),d={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},g=is(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});g.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!g.hasNewline&&u(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?qd(d,o,g,u):Lc(d,g.end,i,null,g,u);const p=f.contents.range[2],w=eo(a,p,!1,u);return w.comment&&(f.comment=w.comment),f.range=[n,p,w.offset],f}function to(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 Wd(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 Lb={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
347
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function jb(e,t,n,i){const o=e.substr(t,n),u=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const l=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(u)}function ep(e,t,n,i){const{value:o,type:a,comment:u,range:l}=t.type==="block-scalar"?Tb(e,t,i):Fb(t,e.options.strict,i),f=n?e.directives.tagName(n.source,p=>i(n,"TAG_RESOLVE_FAILED",p)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[yr]:f?d=Nb(e.schema,o,f,n,i):t.type==="scalar"?d=$b(e,o,t,i):d=e.schema[yr];let g;try{const p=d.resolve(o,v=>i(n??t,"TAG_RESOLVE_FAILED",v),e.options);g=kt(p)?p:new qe(p)}catch(p){const v=p instanceof Error?p.message:String(p);i(n??t,"TAG_RESOLVE_FAILED",v),g=new qe(o)}return g.range=l,g.source=o,a&&(g.type=a),f&&(g.tag=f),d.format&&(g.format=d.format),u&&(g.comment=u),g}function Nb(e,t,n,i,o){if(n==="!")return e[yr];const a=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)a.push(l);else return l;for(const l of a)if(l.test?.test(t))return l;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[yr])}function $b({atKey:e,directives:t,schema:n},i,o,a){const u=n.tags.find(l=>(l.default===!0||e&&l.default==="key")&&l.test?.test(i))||n[yr];if(n.compat){const l=n.compat.find(f=>f.default&&f.test?.test(i))??n[yr];if(u.tag!==l.tag){const f=t.tagString(u.tag),d=t.tagString(l.tag),g=`Value may be parsed as either ${f} or ${d}`;a(o,"TAG_RESOLVE_FAILED",g,!0)}}return u}function Mb(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 Ub={composeNode:tp,composeEmptyNode:Mc};function tp(e,t,n,i){const o=e.atKey,{spaceBefore:a,comment:u,anchor:l,tag:f}=n;let d,g=!0;switch(t.type){case"alias":d=Vb(e,t,i),(l||f)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":d=ep(e,t,f,i),l&&(d.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=kb(Ub,e,t,n,i),l&&(d.anchor=l.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",p),d=Mc(e,t.offset,void 0,null,n,i),g=!1}}return l&&d.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!kt(d)||typeof d.value!="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")&&i(f??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(d.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?d.comment=u:d.commentBefore=u),e.options.keepSourceTokens&&g&&(d.srcToken=t),d}function Mc(e,t,n,i,{spaceBefore:o,comment:a,anchor:u,tag:l,end:f},d){const g={type:"scalar",offset:Mb(t,n,i),indent:-1,source:""},p=ep(e,g,l,d);return u&&(p.anchor=u.source.substring(1),p.anchor===""&&d(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),a&&(p.comment=a,p.range[2]=f),p}function Vb({options:e},{offset:t,source:n,end:i},o){const a=new bc(n.substring(1));a.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=t+n.length,l=no(i,u,e.strict,o);return a.range=[t,u,l.offset],l.comment&&(a.comment=l.comment),a}function qb(e,t,{offset:n,start:i,value:o,end:a},u){const l=Object.assign({_directives:t},e),f=new Zs(void 0,l),d={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},g=as(i,{indicator:"doc-start",next:o??a?.[0],offset:n,onError:u,parentIndent:0,startOnNewline:!0});g.found&&(f.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!g.hasNewline&&u(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),f.contents=o?tp(d,o,g,u):Mc(d,g.end,i,null,g,u);const p=f.contents.range[2],v=no(a,p,!1,u);return v.comment&&(f.comment=v.comment),f.range=[n,p,v.offset],f}function ro(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function np(e){let t="",n=!1,i=!1;for(let o=0;o<e.length;++o){const a=e[o];switch(a[0]){case"#":t+=(t===""?"":i?`
348
348
 
349
349
  `:`
350
- `)+(a.substring(1)||" "),n=!0,i=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}class Pw{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=to(n);a?this.warnings.push(new dw(u,i,o)):this.errors.push(new Qs(u,i,o))},this.directives=new pn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=Wd(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(Ht(a)&&!a.flow&&a.items.length>0){let u=a.items[0];Kt(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 Wb{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,a)=>{const u=ro(n);a?this.warnings.push(new Eb(u,i,o)):this.errors.push(new eo(u,i,o))},this.directives=new dn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=np(this.prelude);if(i){const a=t.contents;if(n)t.comment=t.comment?`${t.comment}
351
+ ${i}`:i;else if(o||t.directives.docStart||!a)t.commentBefore=i;else if(Wt(a)&&!a.flow&&a.items.length>0){let u=a.items[0];qt(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:Wd(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=to(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 Qs(to(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 Qs(to(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=eo(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 Qs(to(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 Xs(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 Kd="\uFEFF",Hd="",zd="",Nc="";function Rw(e){switch(e){case Kd:return"byte-order-mark";case Hd:return"doc-mode";case zd:return"flow-error-end";case Nc:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
353
+ ${u}`:i}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:np(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(const o of t)yield*this.next(o);yield*this.end(n,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,i,o)=>{const a=ro(t);a[0]+=n,this.onError(a,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=qb(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new eo(ro(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new eo(ro(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=no(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
354
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new eo(ro(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const i=Object.assign({_directives:this.directives},this.options),o=new Zs(void 0,i);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const rp="\uFEFF",ip="",sp="",Uc="";function Kb(e){switch(e){case rp:return"byte-order-mark";case ip:return"doc-mode";case sp:return"flow-error-end";case Uc:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
355
355
  `:case`\r
356
356
  `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function nr(e){switch(e){case void 0:case" ":case`
357
- `:case"\r":case" ":return!0;default:return!1}}const Gd=new Set("0123456789ABCDEFabcdef"),Lw=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Aa=new Set(",[]{}"),Nw=new Set(` ,[]{}
358
- \r `),$c=e=>!e||Nw.has(e);class $w{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let i=this.next??"stream";for(;i&&(n||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
357
+ `:case"\r":case" ":return!0;default:return!1}}const op=new Set("0123456789ABCDEFabcdef"),Hb=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),xa=new Set(",[]{}"),zb=new Set(` ,[]{}
358
+ \r `),Vc=e=>!e||zb.has(e);class Gb{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==="...")&&nr(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]===Kd&&(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 Hd,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==="...")&&nr(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&&!nr(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===":")&&nr(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($c),"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("..."))&&nr(o[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield zd,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($c),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const u=this.charAt(1);if(this.flowKey||nr(u)||u===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let a=0;for(;this.buffer[n-1-a]==="\\";)a+=1;if(a%2===0)break;n=this.buffer.indexOf('"',n+1)}const i=this.buffer.substring(0,n);let o=i.indexOf(`
363
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===rp&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,i=t.indexOf("#");for(;i!==-1;){const a=t[i-1];if(a===" "||a===" "){n=i-1;break}else i=t.indexOf("#",i+1)}for(;;){const a=t[n-1];if(a===" "||a===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield ip,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&nr(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&&!nr(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===":")&&nr(n)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Vc),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,i=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=i=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&o[0]!=="#"||i===0&&(o.startsWith("---")||o.startsWith("..."))&&nr(o[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield sp,yield*this.parseLineStart();let a=0;for(;o[a]===",";)a+=yield*this.pushCount(1),a+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(a+=yield*this.pushIndicators(),o[a]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-a),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Vc),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const u=this.charAt(1);if(this.flowKey||nr(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=>nr(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 Nc,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(nr(a)||t&&Aa.has(a))break;n=i}else if(nr(o)){let a=this.buffer[i+1];if(o==="\r"&&(a===`
370
+ `&&a>=this.pos&&a+1+n>l)t=a;else break}while(!0);return yield Uc,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,i=this.pos-1,o;for(;o=this.buffer[++i];)if(o===":"){const a=this.buffer[i+1];if(nr(a)||t&&xa.has(a))break;n=i}else if(nr(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 Nc,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($c))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(nr(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(;!nr(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(Lw.has(n))n=this.buffer[++t];else if(n==="%"&&Gd.has(this.buffer[t+1])&&Gd.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&&xa.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&&xa.has(o))break;n=i}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Uc,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Vc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(nr(n)||t&&xa.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(;!nr(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(Hb.has(n))n=this.buffer[++t];else if(n==="%"&&op.has(this.buffer[t+1])&&op.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
374
374
  `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
375
- `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,i;do i=this.buffer[++n];while(i===" "||t&&i===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,i=this.buffer[n];for(;!t(i);)i=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class jw{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 mi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Jd(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 Yd(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 ss(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 Xd(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!mi(t.start,"explicit-key-ind")&&!mi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Yd(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 $w,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=Rw(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"&&Xd(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&&Jd(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":{Jd(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=ss(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 Jb{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,i=this.lineStarts.length;for(;n<i;){const a=n+i>>1;this.lineStarts[a]<t?n=a+1:i=a}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function vi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function ap(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function up(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Ca(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function us(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function cp(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!vi(t.start,"explicit-key-ind")&&!vi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,up(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Yb{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 Gb,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=Kb(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const i=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in i?i.indent:0:n.type==="flow-collection"&&i.type==="document"&&(n.indent=0),n.type==="flow-collection"&&cp(n),i.type){case"document":i.value=n;break;case"block-scalar":i.props.push(n);break;case"block-map":{const o=i.items[i.items.length-1];if(o.value){i.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=i.items[i.items.length-1];o.value?i.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=i.items[i.items.length-1];!o||o.value?i.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&ap(o.start)===-1&&(n.indent===0||o.start.every(a=>a.type!=="comment"||a.indent<n.indent))&&(i.type==="document"?i.end=o.start:i.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{ap(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=Ca(this.peek(2)),i=us(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
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(mi(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(Yd(n.key)&&!mi(n.sep,"newline")){const u=ss(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(mi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=ss(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]}):mi(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||mi(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=ss(o);Xd(t);const u=t.end.splice(1,t.end.length);u.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:a,key:t,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
377
+ `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,o=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let a=[];if(o&&n.sep&&!n.value){const u=[];for(let l=0;l<n.sep.length;++l){const f=n.sep[l];switch(f.type){case"newline":u.push(l);break;case"space":break;case"comment":f.indent>t.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(a=n.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(a.push(this.sourceToken),t.items.push({start:a}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(a.push(this.sourceToken),t.items.push({start:a,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(vi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(up(n.key)&&!vi(n.sep,"newline")){const u=us(n.start),l=n.key,f=n.sep;f.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:l,sep:f}]})}else a.length>0?n.sep=n.sep.concat(a,this.sourceToken):n.sep.push(this.sourceToken);else if(vi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=us(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:a,key:null,sep:[this.sourceToken]}):vi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);o||n.value?(t.items.push({start:a,key:u,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(u):(Object.assign(n,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(t);if(u){i&&u.type!=="block-seq"&&t.items.push({start:a}),this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||vi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const o=Ca(i),a=us(o);cp(t);const u=t.end.splice(1,t.end.length);u.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:a,key:t,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
378
378
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
379
- `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Sa(t),i=ss(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=ss(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 jw||null,prettyErrors:t}}function Vw(e,t={}){const{lineCounter:n,prettyErrors:i}=Uw(t),o=new Mw(n?.addNewLine),a=new Pw(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 Qs(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach($d(e,n)),u.warnings.forEach($d(e,n))),u}function Qd(e,t,n){let i;const o=Vw(e,n);if(!o)return null;if(o.warnings.forEach(a=>pd(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 Zd(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return qs(e)&&!i?e.toString(n):new Xs(e,i,n).toString(n)}const qw={BorderRadiusContainer:Xe.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=Ca(t),i=us(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Ca(t),i=us(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Qb(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Jb||null,prettyErrors:t}}function Xb(e,t={}){const{lineCounter:n,prettyErrors:i}=Qb(t),o=new Yb(n?.addNewLine),a=new Wb(t);let u=null;for(const l of a.compose(o.parse(e),!0,e.length))if(!u)u=l;else if(u.options.logLevel!=="silent"){u.errors.push(new eo(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(Yd(e,n)),u.warnings.forEach(Yd(e,n))),u}function lp(e,t,n){let i;const o=Xb(e,n);if(!o)return null;if(o.warnings.forEach(a=>_d(o.options.logLevel,a)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:i},n))}function fp(e,t,n){let i=null;if(Array.isArray(t)&&(i=t),e===void 0){const{keepUndefined:o}={};if(!o)return}return Ks(e)&&!i?e.toString(n):new Zs(e,i,n).toString(n)}const Zb={BorderRadiusContainer:et.div`
380
380
  height: 100%;
381
381
 
382
382
  .monaco-editor,
383
383
  .overflow-guard {
384
384
  border-radius: 8px;
385
385
  }
386
- `},Ww=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Z.useState("");return Z.useEffect(()=>{o(Zd(t))},[t]),I.jsx(qw.BorderRadiusContainer,{children:I.jsx(fc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(Qd(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},Kw={BorderRadiusContainer:Xe.div`
387
- min-height: 75vh;
386
+ `},ev=({theme:e,currentValues:t,onChange:n})=>{const[i,o]=Z.useState("");return Z.useEffect(()=>{o(fp(t))},[t]),A.jsx(Zb.BorderRadiusContainer,{children:A.jsx(gc,{defaultLanguage:"yaml",width:"100%",height:"100%",value:i,onChange:a=>{n(lp(a||"")),o(a||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})})},tv={BorderRadiusContainer:et.div`
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
- `},Hw=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f})=>{const d=Xn.useNavigate(),[g,p]=Z.useState(""),[w,_]=Z.useState(!1),[A,S]=Z.useState();Z.useEffect(()=>{p(Zd(n))},[n]);const v=()=>{_(!0),S(void 0);const R=Qd(g),{namespace:N}=R.metadata,{name:x}=R.metadata,O=R,F=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${N}`:""}/${l}/${o?"":x}`;o?Jo({endpoint:F,body:O}).then(k=>{console.log(k),f&&d(f)}).catch(k=>{console.log("Form submit error",k),_(!1),S(k)}):Yo({endpoint:F,body:O}).then(k=>{console.log(k),f&&d(f)}).catch(k=>{console.log("Form submit error",k),_(!1),S(k)})};return I.jsxs(I.Fragment,{children:[A&&I.jsx(z.Alert,{message:`An error has occurred: ${A?.response?.data?.message} `,type:"error"}),I.jsx(Kw.BorderRadiusContainer,{children:I.jsx(fc,{defaultLanguage:"yaml",width:"100%",height:"75vh",value:g,onChange:R=>{p(R||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),I.jsx(fr,{$space:12,$samespace:!0}),I.jsx(z.Button,{type:"primary",onClick:v,loading:w,children:"Submit"})]})},Ft=e=>{if(typeof e=="string")return e;if(Array.isArray(e)){const t=e.slice(-1)[0];return typeof t=="string"?t:String(t)}return String(e)},ep=Z.createContext(void 0),zw=({value:e,children:t})=>I.jsx(ep.Provider,{value:e,children:t}),Gw=()=>Z.useContext(ep),Jw=Xe.div`
393
+ `},nv=({theme:e,cluster:t,prefillValuesSchema:n,isNameSpaced:i,isCreate:o,type:a,apiGroupApiVersion:u,typeName:l,backlink:f,designNewLayoutHeight:d})=>{const g=Qn.useNavigate(),[p,v]=Z.useState(""),[_,S]=Z.useState(!1),[E,b]=Z.useState();Z.useEffect(()=>{v(fp(n))},[n]);const D=()=>{S(!0),b(void 0);const j=lp(p),{namespace:C}=j.metadata,{name:T}=j.metadata,F=j,P=`/api/clusters/${t}/k8s/${a==="builtin"?"api":"apis"}/${u}${i?`/namespaces/${C}`:""}/${l}/${o?"":T}`;o?Xo({endpoint:P,body:F}).then(O=>{console.log(O),f&&g(f)}).catch(O=>{console.log("Form submit error",O),S(!1),b(O)}):Zo({endpoint:P,body:F}).then(O=>{console.log(O),f&&g(f)}).catch(O=>{console.log("Form submit error",O),S(!1),b(O)})};return A.jsxs(A.Fragment,{children:[E&&A.jsx(q.Alert,{message:`An error has occurred: ${E?.response?.data?.message} `,type:"error"}),A.jsx(tv.BorderRadiusContainer,{$designNewLayoutHeight:d,children:A.jsx(gc,{defaultLanguage:"yaml",width:"100%",height:d||"75vh",value:p,onChange:j=>{v(j||"")},theme:e==="dark"||e===void 0?"vs-dark":"vs",options:{theme:e==="dark"||e===void 0?"vs-dark":"vs"}})}),A.jsx(hr,{$space:12,$samespace:!0}),A.jsx(q.Button,{type:"primary",onClick:D,loading:_,children:"Submit"})]})},Ft=e=>{if(typeof e=="string")return e;if(Array.isArray(e)){const t=e.slice(-1)[0];return typeof t=="string"?t:String(t)}return String(e)},hp=Z.createContext(void 0),rv=({value:e,children:t})=>A.jsx(hp.Provider,{value:e,children:t}),mr=()=>Z.useContext(hp),iv=et.div`
394
394
  display: flex;
395
395
  flex-direction: column;
396
396
  gap: ${({$designNewLayout:e})=>e?"4px":"8px"};
@@ -404,56 +404,48 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
404
404
  0 6px 16px 0 #00000014,
405
405
  0 3px 6px -4px #0000001f,
406
406
  0 9px 28px 8px #0000000d`:"initial"};
407
- `,Yw=Xe.div`
407
+ `,sv=et.div`
408
408
  display: flex;
409
409
  align-items: center;
410
410
  justify-content: flex-start;
411
+ gap: 4px;
411
412
  cursor: pointer;
412
- `,Xw=Xe.div`
413
+ `,ov=et.div`
413
414
  display: ${({$isOpen:e})=>e?"block":"none"};
414
- padding: 4px;
415
- `,jc={Container:Jw,TitleBar:Yw,Content:Xw},tp=({title:e,formName:t,expandedControls:n,children:i})=>{const{token:o}=z.theme.useToken(),a=n.expandedKeys.some(f=>JSON.stringify(f)===JSON.stringify(t)),u=Gw(),l=()=>{a?n.onExpandClose(t):n.onExpandOpen(t)};return I.jsxs(jc.Container,{$designNewLayout:u,$borderColor:o.colorBorder,$bgColor:o.colorBgContainer,children:[I.jsxs(jc.TitleBar,{onClick:()=>l(),children:[I.jsx("div",{children:a?I.jsx(qt.CaretDownOutlined,{size:14}):I.jsx(qt.CaretRightOutlined,{size:14})}),I.jsx("div",{children:e})]}),I.jsx(jc.Content,{$isOpen:a,children:i})]})},Vn=Xe.div`
415
+ padding: ${({$designNewLayout:e})=>e?"0":"4px"};
416
+ `,qc={Container:iv,TitleBar:sv,Content:ov},av=({title:e,formName:t,expandedControls:n,persistedCheckbox:i,isAdditionalProperties:o,removeField:a,onRemoveByMinus:u,children:l})=>{const{token:f}=q.theme.useToken(),d=n.expandedKeys.some(v=>JSON.stringify(v)===JSON.stringify(t)),g=mr(),p=()=>{d?n.onExpandClose(t):n.onExpandOpen(t)};return A.jsxs(qc.Container,{$designNewLayout:g,$borderColor:f.colorBorder,$bgColor:f.colorBgContainer,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsxs(qc.TitleBar,{onClick:()=>p(),children:[!g&&A.jsx("div",{children:d?A.jsx(Mt.CaretDownOutlined,{size:14}):A.jsx(Mt.CaretRightOutlined,{size:14})}),A.jsx("div",{children:e}),g&&A.jsx("div",{children:d?A.jsx(Fh,{}):A.jsx(Ih,{})})]}),A.jsxs(q.Flex,{gap:4,children:[o&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>a(),children:A.jsx(on,{})}),u&&A.jsx(q.Button,{size:"small",type:"text",onClick:u,children:A.jsx(on,{})}),i]})]}),A.jsx(qc.Content,{$isOpen:d,$designNewLayout:g,children:l})]})},rr=et.div`
416
417
  display: ${({$isHidden:e})=>e?"none":"block"};
417
- `,Qw={PossibleHiddenContainerWidthPadding:Xe(Vn)`
418
- padding-left: 4px;
419
- `},bi=({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 I.jsx(Qw.PossibleHiddenContainerWidthPadding,{$isHidden:t.isPersistedKeysShown===!1,children:I.jsx(z.Checkbox,{onClick:a=>{a.preventDefault(),a.stopPropagation(),o()},checked:i})})},Zw={CursorPointer:Xe.span`
420
- cursor: pointer;
421
- margin-left: 4px;
422
- display: inline;
423
- `},Vr=e=>{const{children:t,...n}=e;return I.jsx(Zw.CursorPointer,{children:I.jsx(z.Typography.Text,{...n,children:t})})},qr=Xe(z.Form.Item)`
418
+ `,Ai=({formName:e,persistedControls:t,type:n})=>{const i=t.persistedKeys.some(a=>JSON.stringify(a)===JSON.stringify(e)),o=()=>{i?t.onPersistUnmark(e):t.onPersistMark(e,n)};return A.jsx(rr,{$isHidden:t.isPersistedKeysShown===!1,children:A.jsx(q.Button,{size:"small",type:"text",onClick:o,children:i?A.jsx(Ph,{}):A.jsx(Rh,{})})})},Hr=et(q.Form.Item)`
424
419
  margin-bottom: 8px;
425
- `,eA=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:w})=>{const{clusterName:_,namespace:A,syntheticProject:S,entryName:v}=w,R=z.Form.useFormInstance(),N=z.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,R),x=Ct({template:p.valueUri,replaceValues:{clusterName:_,namespace:A,syntheticProject:S,entryName:v}}),{data:O,isError:F,isLoading:k}=sn({uri:x,refetchInterval:!1,queryKey:[x||"",JSON.stringify(e)],isEnabled:!!x});if(k)return I.jsx("div",{children:"Loading"});if(F)return I.jsx("div",{children:"Error"});const D=bt.get(O,["items"]),V=p.criteria?D.filter(he=>{const de=bt.get(he,p.criteria?.keysToValue||[]);return p.criteria?.type==="equals"?de===p.criteria?.value:de!==p.criteria?.value}):D,Q=p.criteria?.keepPrefilled!==!1?D.find(he=>bt.get(he,p.keysToValue)===N):void 0,fe=Q?[Q,...V]:V,ge=(Array.isArray(fe)?fe.map(he=>({value:bt.get(he,p.keysToValue),label:p.keysToLabel?bt.get(he,p.keysToLabel):bt.get(he,p.keysToValue)})).map(({value:he,label:de})=>({label:typeof de=="string"?de:JSON.stringify(de),value:typeof he=="string"?he:JSON.stringify(he)})):[]).reduce((he,de)=>(he.some(Re=>Re.value===de.value)||he.push(de),he),[]),me=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return I.jsxs(Vn,{$isHidden:u,children:[I.jsxs(z.Typography.Text,{children:[Ft(e),o?.includes(Ft(e))&&I.jsx(z.Typography.Text,{type:"danger",children:"*"}),l&&I.jsxs(z.Tooltip,{title:l,children:[" ",I.jsx(qt.QuestionCircleOutlined,{})]}),f&&I.jsx(Vr,{type:"secondary",onClick:()=>d({path:e}),children:"Удалить"}),I.jsx(bi,{formName:i||e,persistedControls:g,type:"arr"})]}),I.jsx(qr,{name:n||me,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:I.jsx(z.Select,{mode:p.mode,placeholder:"Select",options:ge,filterOption:nc,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=bt.get(e,t);return n==="cpuLike"?rc(i):ic(i)},np=({value:e})=>Number(e.toFixed(1)),rp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},ip=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},tA=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:d,maxAddSecondValueObj:g,logic:p})=>{let w=0,_=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const A=yr({valueObj:t,keysToValue:e.min.keysToValue,logic:p});w=np({value:A})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const A=yr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:p}),S=yr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:p});w=rp({valueFirst:A,valueSecond:S})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const A=yr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:p}),S=yr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:p});w=ip({valueFirst:A,valueSecond:S})}if(e.min.type==="number"&&(w=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const A=yr({valueObj:u,keysToValue:e.max.keysToValue,logic:p});_=np({value:A})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const A=yr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:p}),S=yr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:p});_=rp({valueFirst:A,valueSecond:S})}if(e.max.type==="addResourceValues"&&typeof d=="object"&&d!==null&&typeof g=="object"&&g!==null){const A=yr({valueObj:d,keysToValue:e.max.firstValuesKeysToValue,logic:p}),S=yr({valueObj:g,keysToValue:e.max.secondValuesKeysToValue,logic:p});_=ip({valueFirst:A,valueSecond:S})}return e.max.type==="number"&&(_=e.max.value),{minValue:w,maxValue:_}},nA=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,persistedControls:l,description:f,initialValue:d,max:g,min:p,step:w=1,..._})=>{const[A,S]=Z.useState(d||p);return Z.useEffect(()=>{(Number.isNaN(A)||A<p)&&S(p),A>g&&S(g),S(A)},[A,p,g]),I.jsxs(Vn,{$isHidden:u,children:[I.jsxs(z.Typography.Text,{children:[Ft(e),o?.includes(Ft(e))&&I.jsx(z.Typography.Text,{type:"danger",children:"*"}),f&&I.jsxs(z.Tooltip,{title:f,children:[" ",I.jsx(qt.QuestionCircleOutlined,{})]}),I.jsx(bi,{formName:i||e,persistedControls:l,type:"number"})]}),I.jsxs(z.Row,{children:[I.jsxs(z.Col,{span:12,children:[I.jsx(qr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:I.jsx(z.Slider,{min:p,max:g,step:w,..._})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),I.jsx(z.Typography.Text,{children:I.jsxs(z.Flex,{justify:"space-between",children:[I.jsx("span",{children:p}),I.jsx("span",{children:g})]})})]}),I.jsx(z.Col,{span:4,children:I.jsx(qr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:I.jsx(z.InputNumber,{min:p,max:g,step:w,value:A,disabled:_.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},rA=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p})=>{const{clusterName:w,namespace:_,syntheticProject:A,entryName:S}=p,v=f?g.edit:g.add,R=v.min.type==="resourceValue"?Ct({template:v.min.valueUri,replaceValues:{clusterName:w,namespace:_,syntheticProject:A,entryName:S}}):void 0,N=v.min.type==="substractResourceValues"?Ct({template:v.min.firstValueUri,replaceValues:{clusterName:w,namespace:_,syntheticProject:A,entryName:S}}):void 0,x=v.min.type==="substractResourceValues"?Ct({template:v.min.secondValueUri,replaceValues:{clusterName:w,namespace:_,syntheticProject:A,entryName:S}}):void 0,O=v.min.type==="addResourceValues"?Ct({template:v.min.firstValueUri,replaceValues:{clusterName:w,namespace:_,syntheticProject:A,entryName:S}}):void 0,F=v.min.type==="addResourceValues"?Ct({template:v.min.secondValueUri,replaceValues:{clusterName:w,namespace:_,syntheticProject:A,entryName:S}}):void 0,k=v.max.type==="resourceValue"?Ct({template:v.max.valueUri,replaceValues:{clusterName:w,namespace:_,syntheticProject:A,entryName:S}}):void 0,D=v.max.type==="substractResourceValues"?Ct({template:v.max.firstValueUri,replaceValues:{clusterName:w,namespace:_,syntheticProject:A,entryName:S}}):void 0,V=v.max.type==="substractResourceValues"?Ct({template:v.max.secondValueUri,replaceValues:{clusterName:w,namespace:_,syntheticProject:A,entryName:S}}):void 0,Q=v.max.type==="addResourceValues"?Ct({template:v.max.firstValueUri,replaceValues:{clusterName:w,namespace:_,syntheticProject:A,entryName:S}}):void 0,fe=v.max.type==="addResourceValues"?Ct({template:v.max.secondValueUri,replaceValues:{clusterName:w,namespace:_,syntheticProject:A,entryName:S}}):void 0,{data:le,isError:ge,isLoading:me}=sn({uri:R||"",refetchInterval:!1,queryKey:[R||"",JSON.stringify(e)],isEnabled:!!R}),{data:he,isError:de,isLoading:Ie}=sn({uri:N||"",refetchInterval:!1,queryKey:[N||"",JSON.stringify(e)],isEnabled:!!N}),{data:Re,isError:Ce,isLoading:ze}=sn({uri:x||"",refetchInterval:!1,queryKey:[x||"",JSON.stringify(e)],isEnabled:!!x}),{data:Se,isError:ye,isLoading:et}=sn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:J,isError:X,isLoading:oe}=sn({uri:F||"",refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F}),{data:Be,isError:Ke,isLoading:we}=sn({uri:k||"",refetchInterval:!1,queryKey:[k||"",JSON.stringify(e)],isEnabled:!!k}),{data:Oe,isError:De,isLoading:Le}=sn({uri:D||"",refetchInterval:!1,queryKey:[D||"",JSON.stringify(e)],isEnabled:!!D}),{data:Tt,isError:on,isLoading:Nt}=sn({uri:V||"",refetchInterval:!1,queryKey:[V||"",JSON.stringify(e)],isEnabled:!!V}),{data:$t,isError:jt,isLoading:St}=sn({uri:Q||"",refetchInterval:!1,queryKey:[Q||"",JSON.stringify(e)],isEnabled:!!Q}),{data:ke,isError:Ve,isLoading:je}=sn({uri:fe||"",refetchInterval:!1,queryKey:[fe||"",JSON.stringify(e)],isEnabled:!!fe}),{minValue:ct,maxValue:Ae}=tA({minMaxAndStep:v,minValueObj:le,minSubstractFirstValueObj:he,minSubstractSecondValueObj:Re,minAddFirstValueObj:Se,minAddSecondValueObj:J,maxValueObj:Be,maxSubstractFirstValueObj:Oe,maxSubstractSecondValueObj:Tt,maxAddFirstValueObj:$t,maxAddSecondValueObj:ke,logic:g.logic}),Mt=f?g.edit.step:g.add.step;return v.min.type==="resourceValue"&&me||v.min.type==="substractResourceValues"&&(Ie||ze)||v.min.type==="addResourceValues"&&(et||oe)||v.max.type==="resourceValue"&&we||v.max.type==="substractResourceValues"&&(Le||Nt)||v.max.type==="addResourceValues"&&(St||je)?I.jsx("div",{children:"Loading"}):v.min.type==="resourceValue"&&ge||v.min.type==="substractResourceValues"&&(de||Ce)||v.min.type==="addResourceValues"&&(ye||X)||v.max.type==="resourceValue"&&Ke||v.max.type==="substractResourceValues"&&(De||on)||v.max.type==="addResourceValues"&&(jt||Ve)?I.jsx("div",{children:"Error"}):I.jsx(nA,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,min:ct,max:Ae,step:Mt,persistedControls:d})},iA=({name:e,isHidden:t,namespaceData:n,isAdditionalProperties:i,removeField:o})=>n?I.jsxs(Vn,{$isHidden:t,children:[I.jsxs(z.Typography.Text,{children:["namespace",I.jsx(z.Typography.Text,{type:"danger",children:"*"}),i&&I.jsx(Vr,{type:"secondary",onClick:()=>o({path:e}),children:"Удалить"})]}),I.jsx(qr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:!0,children:I.jsx(z.Select,{placeholder:"Select namespace",options:n.selectValues,filterOption:n.filterSelectOptions,allowClear:!0,disabled:n.disabled,showSearch:!0})})]}):null,sA=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g})=>{const p=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return I.jsxs(Vn,{$isHidden:u,children:[I.jsxs(z.Typography.Text,{children:[Ft(e),o?.includes(Ft(e))&&I.jsx(z.Typography.Text,{type:"danger",children:"*"}),l&&I.jsxs(z.Tooltip,{title:l,children:[" ",I.jsx(qt.QuestionCircleOutlined,{})]}),f&&I.jsx(Vr,{type:"secondary",onClick:()=>d({path:e}),children:"Удалить"}),I.jsx(bi,{formName:i||e,persistedControls:g,type:"str"})]}),I.jsx(qr,{name:n||p,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:I.jsx(z.Input,{placeholder:Ft(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},oA=Xe.div`
420
+ `,Tr=et.div`
421
+ font-size: ${({$designNewLayout:e})=>e?"16px":"14px"};
422
+ line-height: ${({$designNewLayout:e})=>e?"24px":"22px"};
423
+ `,uv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:_})=>{const S=mr(),{clusterName:E,namespace:b,syntheticProject:D,entryName:j}=v,C=q.Form.useFormInstance(),T=q.Form.useWatch(e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,C),F=Ct({template:p.valueUri,replaceValues:{clusterName:E,namespace:b,syntheticProject:D,entryName:j}}),{data:P,isError:O,isLoading:W}=nn({uri:F,refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F});if(W)return A.jsx("div",{children:"Loading"});if(O)return A.jsx("div",{children:"Error"});const Y=yt.get(P,["items"]),ce=p.criteria?Y.filter(Se=>{const Ee=yt.get(Se,p.criteria?.keysToValue||[]);return p.criteria?.type==="equals"?Ee===p.criteria?.value:Ee!==p.criteria?.value}):Y,le=p.criteria?.keepPrefilled!==!1?Y.find(Se=>yt.get(Se,p.keysToValue)===T):void 0,ge=le?[le,...ce]:ce,Ce=(Array.isArray(ge)?ge.map(Se=>({value:yt.get(Se,p.keysToValue),label:p.keysToLabel?yt.get(Se,p.keysToLabel):yt.get(Se,p.keysToValue)})).map(({value:Se,label:Ee})=>({label:typeof Ee=="string"?Ee:JSON.stringify(Ee),value:typeof Se=="string"?Se:JSON.stringify(Se)})):[]).reduce((Se,Ee)=>(Se.some(Ae=>Ae.value===Ee.value)||Se.push(Ee),Se),[]),pe=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,Re=A.jsxs(A.Fragment,{children:[Ft(e),o?.includes(Ft(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"}),!S&&l&&A.jsxs(q.Tooltip,{title:l,children:[" ",A.jsx(Mt.QuestionCircleOutlined,{})]})]});return A.jsxs(rr,{$isHidden:u,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:S,children:l?A.jsx(q.Tooltip,{title:l,children:Re}):Re}),A.jsxs(q.Flex,{gap:4,children:[f&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>d({path:e}),children:A.jsx(on,{})}),_&&A.jsx(q.Button,{size:"small",type:"text",onClick:_,children:A.jsx(on,{})}),A.jsx(Ai,{formName:i||e,persistedControls:g,type:"arr"})]})]}),A.jsx(Hr,{name:n||pe,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:S?{icons:Vr}:!0,children:A.jsx(q.Select,{mode:p.mode,placeholder:"Select",options:Ce,filterOption:oc,allowClear:!0,showSearch:!0})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},wr=({valueObj:e,keysToValue:t,logic:n})=>{const i=yt.get(e,t);return n==="cpuLike"?ac(i):uc(i)},dp=({value:e})=>Number(e.toFixed(1)),pp=({valueFirst:e,valueSecond:t})=>{const n=e-t;return Number(n.toFixed(1))},gp=({valueFirst:e,valueSecond:t})=>{const n=e+t;return Number(n.toFixed(1))},cv=({minMaxAndStep:e,minValueObj:t,minSubstractFirstValueObj:n,minSubstractSecondValueObj:i,minAddFirstValueObj:o,minAddSecondValueObj:a,maxValueObj:u,maxSubstractFirstValueObj:l,maxSubstractSecondValueObj:f,maxAddFirstValueObj:d,maxAddSecondValueObj:g,logic:p})=>{let v=0,_=0;if(e.min.type==="resourceValue"&&typeof t=="object"&&t!==null){const S=wr({valueObj:t,keysToValue:e.min.keysToValue,logic:p});v=dp({value:S})}if(e.min.type==="substractResourceValues"&&typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){const S=wr({valueObj:n,keysToValue:e.min.firstValuesKeysToValue,logic:p}),E=wr({valueObj:i,keysToValue:e.min.secondValuesKeysToValue,logic:p});v=pp({valueFirst:S,valueSecond:E})}if(e.min.type==="addResourceValues"&&typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null){const S=wr({valueObj:o,keysToValue:e.min.firstValuesKeysToValue,logic:p}),E=wr({valueObj:a,keysToValue:e.min.secondValuesKeysToValue,logic:p});v=gp({valueFirst:S,valueSecond:E})}if(e.min.type==="number"&&(v=e.min.value),e.max.type==="resourceValue"&&typeof u=="object"&&u!==null){const S=wr({valueObj:u,keysToValue:e.max.keysToValue,logic:p});_=dp({value:S})}if(e.max.type==="substractResourceValues"&&typeof l=="object"&&l!==null&&typeof f=="object"&&f!==null){const S=wr({valueObj:l,keysToValue:e.max.firstValuesKeysToValue,logic:p}),E=wr({valueObj:f,keysToValue:e.max.secondValuesKeysToValue,logic:p});_=pp({valueFirst:S,valueSecond:E})}if(e.max.type==="addResourceValues"&&typeof d=="object"&&d!==null&&typeof g=="object"&&g!==null){const S=wr({valueObj:d,keysToValue:e.max.firstValuesKeysToValue,logic:p}),E=wr({valueObj:g,keysToValue:e.max.secondValuesKeysToValue,logic:p});_=gp({valueFirst:S,valueSecond:E})}return e.max.type==="number"&&(_=e.max.value),{minValue:v,maxValue:_}},lv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,persistedControls:l,description:f,onRemoveByMinus:d,initialValue:g,max:p,min:v,step:_=1,...S})=>{const E=mr(),[b,D]=Z.useState(g||v);Z.useEffect(()=>{(Number.isNaN(b)||b<v)&&D(v),b>p&&D(p),D(b)},[b,v,p]);const j=A.jsxs(A.Fragment,{children:[Ft(e),o?.includes(Ft(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"}),!E&&f&&A.jsxs(q.Tooltip,{title:f,children:[" ",A.jsx(Mt.QuestionCircleOutlined,{})]})]});return A.jsxs(rr,{$isHidden:u,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:E,children:f?A.jsx(q.Tooltip,{title:f,children:j}):j}),A.jsxs(q.Flex,{gap:4,children:[d&&A.jsx(q.Button,{size:"small",type:"text",onClick:d,children:A.jsx(on,{})}),A.jsx(Ai,{formName:i||e,persistedControls:l,type:"number"})]})]}),A.jsxs(q.Row,{children:[A.jsxs(q.Col,{span:12,children:[A.jsx(Hr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:E?{icons:Vr}:!0,children:A.jsx(q.Slider,{min:v,max:p,step:_,...S})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),A.jsx(q.Typography.Text,{children:A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx("span",{children:v}),A.jsx("span",{children:p})]})})]}),A.jsx(q.Col,{span:4,children:A.jsx(Hr,{name:n||e,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:E?{icons:Vr}:!0,children:A.jsx(q.InputNumber,{min:v,max:p,step:_,value:b,disabled:S.disabled})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)})]})]})},fv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p,onRemoveByMinus:v})=>{const{clusterName:_,namespace:S,syntheticProject:E,entryName:b}=p,D=f?g.edit:g.add,j=D.min.type==="resourceValue"?Ct({template:D.min.valueUri,replaceValues:{clusterName:_,namespace:S,syntheticProject:E,entryName:b}}):void 0,C=D.min.type==="substractResourceValues"?Ct({template:D.min.firstValueUri,replaceValues:{clusterName:_,namespace:S,syntheticProject:E,entryName:b}}):void 0,T=D.min.type==="substractResourceValues"?Ct({template:D.min.secondValueUri,replaceValues:{clusterName:_,namespace:S,syntheticProject:E,entryName:b}}):void 0,F=D.min.type==="addResourceValues"?Ct({template:D.min.firstValueUri,replaceValues:{clusterName:_,namespace:S,syntheticProject:E,entryName:b}}):void 0,P=D.min.type==="addResourceValues"?Ct({template:D.min.secondValueUri,replaceValues:{clusterName:_,namespace:S,syntheticProject:E,entryName:b}}):void 0,O=D.max.type==="resourceValue"?Ct({template:D.max.valueUri,replaceValues:{clusterName:_,namespace:S,syntheticProject:E,entryName:b}}):void 0,W=D.max.type==="substractResourceValues"?Ct({template:D.max.firstValueUri,replaceValues:{clusterName:_,namespace:S,syntheticProject:E,entryName:b}}):void 0,Y=D.max.type==="substractResourceValues"?Ct({template:D.max.secondValueUri,replaceValues:{clusterName:_,namespace:S,syntheticProject:E,entryName:b}}):void 0,ce=D.max.type==="addResourceValues"?Ct({template:D.max.firstValueUri,replaceValues:{clusterName:_,namespace:S,syntheticProject:E,entryName:b}}):void 0,le=D.max.type==="addResourceValues"?Ct({template:D.max.secondValueUri,replaceValues:{clusterName:_,namespace:S,syntheticProject:E,entryName:b}}):void 0,{data:ge,isError:ye,isLoading:Ce}=nn({uri:j||"",refetchInterval:!1,queryKey:[j||"",JSON.stringify(e)],isEnabled:!!j}),{data:pe,isError:Re,isLoading:Se}=nn({uri:C||"",refetchInterval:!1,queryKey:[C||"",JSON.stringify(e)],isEnabled:!!C}),{data:Ee,isError:He,isLoading:Ae}=nn({uri:T||"",refetchInterval:!1,queryKey:[T||"",JSON.stringify(e)],isEnabled:!!T}),{data:me,isError:Me,isLoading:J}=nn({uri:F||"",refetchInterval:!1,queryKey:[F||"",JSON.stringify(e)],isEnabled:!!F}),{data:X,isError:ae,isLoading:Be}=nn({uri:P||"",refetchInterval:!1,queryKey:[P||"",JSON.stringify(e)],isEnabled:!!P}),{data:We,isError:_e,isLoading:De}=nn({uri:O||"",refetchInterval:!1,queryKey:[O||"",JSON.stringify(e)],isEnabled:!!O}),{data:Oe,isError:Le,isLoading:Tt}=nn({uri:W||"",refetchInterval:!1,queryKey:[W||"",JSON.stringify(e)],isEnabled:!!W}),{data:rn,isError:Lt,isLoading:jt}=nn({uri:Y||"",refetchInterval:!1,queryKey:[Y||"",JSON.stringify(e)],isEnabled:!!Y}),{data:Nt,isError:bt,isLoading:kn}=nn({uri:ce||"",refetchInterval:!1,queryKey:[ce||"",JSON.stringify(e)],isEnabled:!!ce}),{data:An,isError:ke,isLoading:Pe}=nn({uri:le||"",refetchInterval:!1,queryKey:[le||"",JSON.stringify(e)],isEnabled:!!le}),{minValue:he,maxValue:At}=cv({minMaxAndStep:D,minValueObj:ge,minSubstractFirstValueObj:pe,minSubstractSecondValueObj:Ee,minAddFirstValueObj:me,minAddSecondValueObj:X,maxValueObj:We,maxSubstractFirstValueObj:Oe,maxSubstractSecondValueObj:rn,maxAddFirstValueObj:Nt,maxAddSecondValueObj:An,logic:g.logic}),St=f?g.edit.step:g.add.step;return D.min.type==="resourceValue"&&Ce||D.min.type==="substractResourceValues"&&(Se||Ae)||D.min.type==="addResourceValues"&&(J||Be)||D.max.type==="resourceValue"&&De||D.max.type==="substractResourceValues"&&(Tt||jt)||D.max.type==="addResourceValues"&&(kn||Pe)?A.jsx("div",{children:"Loading"}):D.min.type==="resourceValue"&&ye||D.min.type==="substractResourceValues"&&(Re||He)||D.min.type==="addResourceValues"&&(Me||ae)||D.max.type==="resourceValue"&&_e||D.max.type==="substractResourceValues"&&(Le||Lt)||D.max.type==="addResourceValues"&&(bt||ke)?A.jsx("div",{children:"Error"}):A.jsx(lv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,min:he,max:At,step:St,persistedControls:d,onRemoveByMinus:v})},hv=({name:e,isHidden:t,namespaceData:n,isAdditionalProperties:i,removeField:o})=>{const a=mr();return n?A.jsxs(rr,{$isHidden:t,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsxs(Tr,{$designNewLayout:a,children:["namespace",A.jsx(q.Typography.Text,{type:"danger",children:"*"})]}),A.jsx(q.Flex,{gap:4,children:i&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>o({path:e}),children:A.jsx(on,{})})})]}),A.jsx(Hr,{name:e,rules:[{required:!0}],validateTrigger:"onBlur",hasFeedback:a?{icons:Vr}:!0,children:A.jsx(q.Select,{placeholder:"Select namespace",options:n.selectValues,filterOption:n.filterSelectOptions,allowClear:!0,disabled:n.disabled,showSearch:!0})})]}):null},dv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,onRemoveByMinus:p})=>{const v=mr(),_=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,S=A.jsxs(A.Fragment,{children:[Ft(e),o?.includes(Ft(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"}),!v&&l&&A.jsxs(q.Tooltip,{title:l,children:[" ",A.jsx(Mt.QuestionCircleOutlined,{})]})]});return A.jsxs(rr,{$isHidden:u,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:v,children:l?A.jsx(q.Tooltip,{title:l,children:S}):S}),A.jsxs(q.Flex,{gap:4,children:[f&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>d({path:e}),children:A.jsx(on,{})}),p&&A.jsx(q.Button,{size:"small",type:"text",onClick:p,children:A.jsx(on,{})}),A.jsx(Ai,{formName:i||e,persistedControls:g,type:"str"})]})]}),A.jsx(Hr,{name:n||_,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:v?{icons:Vr}:!0,children:A.jsx(q.Input,{placeholder:Ft(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},pv=et.div`
426
424
  display: flex;
427
- `,aA=Xe.div`
428
- margin-left: 8px;
425
+ `,gv=et.div`
426
+ margin-left: 4px;
429
427
  cursor: pointer;
430
- padding-top: 4px;
431
- `,sp={SwitchAndCrossContainer:oA,CrossContainer:aA},uA=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l})=>I.jsxs(Vn,{$isHidden:i,children:[I.jsxs(z.Typography.Text,{children:[Ft(e),o&&I.jsxs(z.Tooltip,{title:o,children:[" ",I.jsx(qt.QuestionCircleOutlined,{})]}),u&&I.jsx(Vr,{type:"secondary",onClick:()=>l({path:e}),children:"Удалить"})]}),I.jsxs(sp.SwitchAndCrossContainer,{children:[I.jsx(qr,{name:n||e,children:I.jsx(z.Switch,{size:"small"})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),I.jsx(sp.CrossContainer,{onClick:()=>{a&&a(e)},children:I.jsx(z.Typography.Text,{type:"secondary",children:"x"})})]})]}),cA=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p})=>{const w=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e;return I.jsxs(Vn,{$isHidden:u,children:[I.jsxs(z.Typography.Text,{children:[Ft(e),o?.includes(Ft(e))&&I.jsx(z.Typography.Text,{type:"danger",children:"*"}),l&&I.jsxs(z.Tooltip,{title:l,children:[" ",I.jsx(qt.QuestionCircleOutlined,{})]}),f&&I.jsx(Vr,{type:"secondary",onClick:()=>d({path:e}),children:"Удалить"}),I.jsx(bi,{formName:i||e,persistedControls:p,type:"str"})]}),I.jsx(qr,{name:n||w,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:!0,children:I.jsx(z.Select,{options:g.map(_=>({value:_,label:_})),placeholder:Ft(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},lA=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p})=>I.jsxs(Vn,{$isHidden:l,children:[I.jsxs(z.Typography.Text,{children:[Ft(t),a?.includes(Ft(t))&&I.jsx(z.Typography.Text,{type:"danger",children:"*"}),f&&I.jsxs(z.Tooltip,{title:f,children:[" ",I.jsx(qt.QuestionCircleOutlined,{})]}),d&&I.jsx(Vr,{type:"secondary",onClick:()=>g({path:t}),children:"Удалить"}),I.jsx(bi,{formName:o||t,persistedControls:p,type:"number"})]}),I.jsx(qr,{name:i||t,rules:[{required:u===!1&&a?.includes(Ft(t))}],validateTrigger:"onBlur",hasFeedback:!0,children:I.jsx(z.InputNumber,{placeholder:Ft(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}),fA=(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},mr=(e,t)=>{if(!e)return!1;for(const n of e)if(fA(n,t))return!0;return!1},hA=Xe.div`
428
+ padding-top: 11px;
429
+ `,yp={SwitchAndCrossContainer:pv,CrossContainer:gv},yv=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f})=>{const d=mr(),g=A.jsxs(A.Fragment,{children:[Ft(e),!d&&o&&A.jsxs(q.Tooltip,{title:o,children:[" ",A.jsx(Mt.QuestionCircleOutlined,{})]})]});return A.jsxs(rr,{$isHidden:i,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:d,children:o?A.jsx(q.Tooltip,{title:o,children:g}):g}),A.jsxs(q.Flex,{gap:4,children:[u&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>l({path:e}),children:A.jsx(on,{})}),f&&A.jsx(q.Button,{size:"small",type:"text",onClick:f,children:A.jsx(on,{})})]})]}),A.jsxs(yp.SwitchAndCrossContainer,{children:[A.jsx(Hr,{name:n||e,children:A.jsx(q.Switch,{size:"small"})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e),A.jsx(yp.CrossContainer,{onClick:()=>{a&&a(e)},children:A.jsx(Bh,{})})]})]})},mv=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p,onRemoveByMinus:v})=>{const _=mr(),S=e==="nodeName"?"nodeNameBecauseOfSuddenBug":e,E=A.jsxs(A.Fragment,{children:[Ft(e),o?.includes(Ft(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"}),!_&&l&&A.jsxs(q.Tooltip,{title:l,children:[" ",A.jsx(Mt.QuestionCircleOutlined,{})]})]});return A.jsxs(rr,{$isHidden:u,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:_,children:l?A.jsx(q.Tooltip,{title:l,children:E}):E}),A.jsxs(q.Flex,{gap:4,children:[f&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>d({path:e}),children:A.jsx(on,{})}),v&&A.jsx(q.Button,{size:"small",type:"text",onClick:v,children:A.jsx(on,{})}),A.jsx(Ai,{formName:i||e,persistedControls:p,type:"str"})]})]}),A.jsx(Hr,{name:n||S,rules:[{required:a===!1&&o?.includes(Ft(e))}],validateTrigger:"onBlur",hasFeedback:_?{icons:Vr}:!0,children:A.jsx(q.Select,{options:g.map(b=>({value:b,label:b})),placeholder:Ft(e)})},t!==void 0?t:Array.isArray(e)?e.slice(-1)[0]:e)]})},wv=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v})=>{const _=mr(),S=A.jsxs(A.Fragment,{children:[Ft(t),a?.includes(Ft(t))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"}),!_&&f&&A.jsxs(q.Tooltip,{title:f,children:[" ",A.jsx(Mt.QuestionCircleOutlined,{})]})]});return A.jsxs(rr,{$isHidden:l,children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(Tr,{$designNewLayout:_,children:f?A.jsx(q.Tooltip,{title:f,children:S}):S}),A.jsxs(q.Flex,{gap:4,children:[d&&A.jsx(q.Button,{size:"small",type:"text",onClick:()=>g({path:t}),children:A.jsx(on,{})}),v&&A.jsx(q.Button,{size:"small",type:"text",onClick:v,children:A.jsx(on,{})}),A.jsx(Ai,{formName:o||t,persistedControls:p,type:"number"})]})]}),A.jsx(Hr,{name:i||t,rules:[{required:u===!1&&a?.includes(Ft(t))}],validateTrigger:"onBlur",hasFeedback:_?{icons:Vr}:!0,children:A.jsx(q.InputNumber,{placeholder:Ft(t),step:e?.1:1})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]})},mp=({name:e,persistName:t,selfRequired:n,isHidden:i,description:o,isAdditionalProperties:a,removeField:u,expandedControls:l,persistedControls:f,collapseTitle:d,collapseFormName:g,data:p,inputProps:v,onRemoveByMinus:_})=>{const S=mr(),[E,b]=Z.useState(),D=()=>{if(E&&E.length>0){const C=v?.additionalProperties;v?.addField({path:Array.isArray(e)?[...e,String(d)]:[e,String(d)],name:E,type:C.type,items:C.items,nestedProperties:C.properties||{},required:C.required}),b(void 0)}},j=A.jsxs(A.Fragment,{children:[Ft(d),n&&A.jsx(q.Typography.Text,{type:"danger",children:"*"}),!S&&o&&A.jsxs(q.Tooltip,{title:o,children:[" ",A.jsx(Mt.QuestionCircleOutlined,{})]})]});return A.jsx(rr,{$isHidden:i,children:A.jsxs(av,{title:A.jsx(Tr,{$designNewLayout:S,children:o?A.jsx(q.Tooltip,{title:o,children:j}):j}),formName:g,expandedControls:l,isAdditionalProperties:a,removeField:()=>u({path:e}),onRemoveByMinus:_,persistedCheckbox:v?void 0:A.jsx(Ai,{formName:t||e,persistedControls:f,type:"obj"}),children:[p,v&&A.jsx(q.Input,{placeholder:"Enter field name",allowClear:!0,value:E,onChange:C=>b(C.target.value),suffix:A.jsx(q.Button,{size:"small",type:"text",onClick:D,children:A.jsx(nc,{})})})]},Array.isArray(e)?e.join("-"):e)})},bv=({name:e,persistName:t,required:n,description:i,isAdditionalProperties:o,removeField:a,persistedControls:u,onRemoveByMinus:l})=>{const f=mr(),d=A.jsxs(A.Fragment,{children:[Ft(e),n?.includes(Ft(e))&&A.jsx(q.Typography.Text,{type:"danger",children:"*"}),!f&&i&&A.jsxs(q.Tooltip,{title:i,children:[" ",A.jsx(Mt.QuestionCircleOutlined,{})]})]});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(on,{})}),l&&A.jsx(q.Button,{size:"small",type:"text",onClick:l,children:A.jsx(on,{})}),A.jsx(Ai,{formName:t||e,persistedControls:u,type:"arr"})]})]})},vv=(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},br=(e,t)=>{if(!e)return!1;for(const n of e)if(vv(n,t))return!0;return!1},Av=et.div`
432
430
  display: grid;
433
431
  grid-template-columns: repeat(2, 1fr);
434
432
  gap: ${({$designNewLayout:e})=>e?"36px":"8px"};
435
- height: 100%;
436
- min-height: 80vh;
437
- `,dA=Xe(z.Form.List)`
433
+ height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
434
+ `,Sv=et.div`
435
+ overflow-x: auto;
436
+ scrollbar-width: thin;
437
+ `,Ev=et(q.Form.List)`
438
438
  margin-bottom: 8px;
439
- `,pA=Xe.div`
440
- display: grid;
441
- grid-template-columns: auto 45px;
442
- margin-left: 8px;
443
- `,gA=Xe.div`
444
- display: flex;
445
- align-items: flex-start;
446
- margin-top: 5px;
447
- `,yA=Xe.div`
439
+ `,xv=et.div`
448
440
  margin-top: 10px;
449
441
  display: flex;
450
442
  align-items: center;
451
443
  background-color: ${({$bgColor:e,$designNewLayout:t})=>t?e:"initial"};
452
444
  border-radius: 8px;
453
445
  padding: 4px;
454
- `,mA=Xe.div`
455
- min-height: 80vh;
456
- `,os={ResetedFormList:dA,ContainerWithRemoveButton:pA,MinusContainer:gA,Container:hA,ControlsRowContainer:yA,DebugContainer:mA},op=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,namespaceData:f,isAdditionalProperties:d,removeField:g,persistedControls:p})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&f?I.jsx(iA,{name:e,isHidden:u,namespaceData:f,isAdditionalProperties:d,removeField:g}):I.jsx(sA,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:d,removeField:g,persistedControls:p}),bA=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p})=>I.jsx(cA,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p}),ap=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p})=>I.jsx(lA,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p}),up=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p})=>I.jsx(rA,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,customProps:g,persistedControls:d,urlParams:p}),cp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:w})=>I.jsx(eA,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:w}),lp=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l})=>I.jsx(uA,{name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l}),fp=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,description:d,makeValueUndefined:g,addField:p,isAdditionalProperties:w,removeField:_,isEdit:A,expandedControls:S,persistedControls:v,urlParams:R})=>e.type==="array"?I.jsxs(Vn,{$isHidden:f,children:[I.jsxs(z.Typography.Text,{children:[Ft(t),u?.includes(Ft(t))&&I.jsx(z.Typography.Text,{type:"danger",children:"*"}),d&&I.jsxs(z.Tooltip,{title:d,children:[" ",I.jsx(qt.QuestionCircleOutlined,{})]}),w&&I.jsx(Vr,{type:"secondary",onClick:()=>_({path:t}),children:"Удалить"}),I.jsx(bi,{formName:a||t,persistedControls:v,type:"arr"})]}),I.jsx(os.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Ft(t))?[{validator:async(N,x)=>{if(!x||x.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(N,{add:x,remove:O},{errors:F})=>I.jsxs(I.Fragment,{children:[N.map(k=>{const D=e.items?.type,V=e.items?.description,Q=e.items;return I.jsxs(os.ContainerWithRemoveButton,{children:[I.jsxs("div",{children:[D!=="object"&&I.jsxs(I.Fragment,{children:[D==="string"&&op({name:Array.isArray(t)?[...t,k.name]:[t,k.name],arrKey:k.key,arrName:[k.name],persistName:a?Array.isArray(a)?[...a,k.name]:[a,k.name]:Array.isArray(t)?[...t,k.name]:[t,k.name],description:V,removeField:_,persistedControls:v}),(D==="number"||D==="integer")&&ap({isNumber:D==="number",name:Array.isArray(t)?[...t,k.name]:[t,k.name],arrKey:k.key,arrName:[k.name],persistName:a?Array.isArray(a)?[...a,k.name]:[a,k.name]:Array.isArray(t)?[...t,k.name]:[t,k.name],description:V,removeField:_,persistedControls:v}),(D==="rangeInputCpu"||D==="rangeInputMemory")&&up({name:Array.isArray(t)?[...t,k.name]:[t,k.name],arrKey:k.key,arrName:[k.name],persistName:a?Array.isArray(a)?[...a,k.name]:[a,k.name]:Array.isArray(t)?[...t,k.name]:[t,k.name],description:V,isEdit:A,persistedControls:v,customProps:e.items.customProps,urlParams:R}),D==="listInput"&&cp({name:Array.isArray(t)?[...t,k.name]:[t,k.name],arrKey:k.key,arrName:[k.name],persistName:a?Array.isArray(a)?[...a,k.name]:[a,k.name]:Array.isArray(t)?[...t,k.name]:[t,k.name],description:V,removeField:_,persistedControls:v,customProps:e.items.customProps,urlParams:R}),D==="boolean"&&lp({name:Array.isArray(t)?[...t,k.name]:[t,k.name],arrKey:k.key,arrName:[k.name],description:V,makeValueUndefined:g,removeField:_}),D==="array"&&fp({schema:e.items,name:Array.isArray(t)?[...t,k.name]:[t,k.name],arrKey:k.key,arrName:[k.name],expandName:o?Array.isArray(o)?[...o,k.name]:[o,k.name]:Array.isArray(t)?[...t,k.name]:[t,k.name],persistName:a?Array.isArray(a)?[...a,k.name]:[a,k.name]:Array.isArray(t)?[...t,k.name]:[t,k.name],description:V,makeValueUndefined:g,addField:p,removeField:_,isEdit:A,expandedControls:S,persistedControls:v,urlParams:R})]}),D==="object"&&Q?.properties&&hp({properties:Q.properties,name:Array.isArray(t)?[...t,k.name]:[t,k.name],arrKey:k.key,arrName:[k.name],expandName:o?Array.isArray(o)?[...o,k.name]:[o,k.name]:Array.isArray(t)?[...t,k.name]:[t,k.name],persistName:a?Array.isArray(a)?[...a,k.name]:[a,k.name]:Array.isArray(t)?[...t,k.name]:[t,k.name],required:Q.required,forceNonRequired:l,description:V,makeValueUndefined:g,addField:p,isAdditionalProperties:w,removeField:_,isEdit:A,expandedControls:S,persistedControls:v,urlParams:R})]}),I.jsx(os.MinusContainer,{children:I.jsx(qt.MinusCircleOutlined,{size:14,onClick:()=>O(k.name)})})]},k.key)}),I.jsxs(z.Form.Item,{children:[I.jsx(z.Button,{type:"dashed",onClick:()=>x(),icon:I.jsx(qt.PlusOutlined,{}),children:"Add"}),I.jsx(z.Form.ErrorList,{errors:F})]})]})},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,isHidden:f,hiddenPaths:d,description:g,namespaceData:p,makeValueUndefined:w,addField:_,removeField:A,isEdit:S,expandedControls:v,persistedControls:R,urlParams:N})=>I.jsx(Vn,{$isHidden:f,children:Object.keys(e).map(x=>{if(e[x].type==="string"&&e[x].enum)return bA({name:Array.isArray(t)?[...t,String(x)]:[t,String(x)],arrKey:n,arrName:Array.isArray(i)?[...i,String(x)]:void 0,persistName:a?Array.isArray(a)?[...a,String(x)]:[a,String(x)]:void 0,required:u?.includes(x)?[String(x)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(x)]:[t,String(x)]),description:e[x].description,isAdditionalProperties:e[x].isAdditionalProperties,removeField:A,persistedControls:R,options:e[x].enum||[]});if(e[x].type==="string"&&!e[x].enum||Object.keys(e[x]).includes("x-kubernetes-int-or-string"))return op({name:Array.isArray(t)?[...t,String(x)]:[t,String(x)],arrKey:n,arrName:Array.isArray(i)?[...i,String(x)]:void 0,persistName:a?Array.isArray(a)?[...a,String(x)]:[a,String(x)]:void 0,required:u?.includes(x)?[String(x)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(x)]:[t,String(x)]),description:e[x].description,namespaceData:p,isAdditionalProperties:e[x].isAdditionalProperties,removeField:A,persistedControls:R});if(e[x].type==="number"||e[x].type==="integer")return ap({isNumber:e[x].type==="number",name:Array.isArray(t)?[...t,String(x)]:[t,String(x)],arrKey:n,arrName:Array.isArray(i)?[...i,String(x)]:void 0,persistName:a?Array.isArray(a)?[...a,String(x)]:[a,String(x)]:void 0,required:u?.includes(x)?[String(x)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(x)]:[t,String(x)]),description:e[x].description,isAdditionalProperties:e[x].isAdditionalProperties,removeField:A,persistedControls:R});if(e[x].type==="rangeInputCpu"||e[x].type==="rangeInputMemory")return up({name:Array.isArray(t)?[...t,String(x)]:[t,String(x)],arrKey:n,arrName:Array.isArray(i)?[...i,String(x)]:void 0,persistName:a?Array.isArray(a)?[...a,String(x)]:[a,String(x)]:void 0,required:u?.includes(x)?[String(x)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(x)]:[t,String(x)]),description:e[x].description,isEdit:S,customProps:e[x].customProps,persistedControls:R,urlParams:N});if(e[x].type==="listInput")return cp({name:Array.isArray(t)?[...t,String(x)]:[t,String(x)],arrKey:n,arrName:Array.isArray(i)?[...i,String(x)]:void 0,persistName:a?Array.isArray(a)?[...a,String(x)]:[a,String(x)]:void 0,required:u?.includes(x)?[String(x)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(x)]:[t,String(x)]),description:e[x].description,customProps:e[x].customProps,removeField:A,persistedControls:R,urlParams:N});if(e[x].type==="boolean")return lp({name:Array.isArray(t)?[...t,String(x)]:[t,String(x)],arrKey:n,arrName:Array.isArray(i)?[...i,String(x)]:void 0,isHidden:mr(d,Array.isArray(t)?[...t,String(x)]:[t,String(x)]),description:e[x].description,makeValueUndefined:w,isAdditionalProperties:e[x].isAdditionalProperties,removeField:A});if(e[x].type==="array")return fp({schema:e[x],name:Array.isArray(t)?[...t,String(x)]:[t,String(x)],arrKey:n,arrName:Array.isArray(i)?[...i,String(x)]:void 0,expandName:o?Array.isArray(o)?[...o,String(x)]:[o,String(x)]:void 0,persistName:a?Array.isArray(a)?[...a,String(x)]:[a,String(x)]:void 0,required:u?.includes(x)?[String(x)]:void 0,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(x)]:[t,String(x)]),description:e[x].description,makeValueUndefined:w,addField:_,isAdditionalProperties:e[x].isAdditionalProperties,removeField:A,isEdit:S,expandedControls:v,persistedControls:R,urlParams:N});if(e[x].additionalProperties){const O=e[x].properties?Ea({properties:e[x].properties,name:Array.isArray(t)?[...t,String(x)]:[t,String(x)],arrKey:n,arrName:Array.isArray(i)?[...i,String(x)]:void 0,expandName:o?Array.isArray(o)?[...o,String(x)]:[o,String(x)]:void 0,persistName:a?Array.isArray(a)?[...a,String(x)]:[a,String(x)]:void 0,required:e[x].required,forceNonRequired:l,isHidden:mr(d,Array.isArray(t)?[...t,String(x)]:[t,String(x)]),hiddenPaths:d,description:e[x].description,namespaceData:p,makeValueUndefined:w,addField:_,removeField:A,isEdit:S,expandedControls:v,persistedControls:R,urlParams:N}):void 0;return I.jsx(Vn,{$isHidden:mr(d,Array.isArray(t)?[...t,String(x)]:[t,String(x)]),children:I.jsxs(tp,{title:I.jsxs(z.Typography.Text,{children:[x,g&&I.jsxs(z.Tooltip,{title:g,children:[" ",I.jsx(qt.QuestionCircleOutlined,{})]})]}),formName:Array.isArray(t)?[...t,String(x)]:[t,String(x)],expandedControls:v,children:[I.jsx(z.Input.Search,{placeholder:"Введите имя поля",allowClear:!0,enterButton:"Добавить",onSearch:F=>{if(F.length>0){const k=e[x]?.additionalProperties;_({path:Array.isArray(t)?[...t,String(x)]:[t,String(x)],name:F,type:k.type,items:k.items,nestedProperties:k.properties||{},required:k.required})}}}),O]})},Array.isArray(t)?[...t,String(x)].join("-"):[t,String(x)].join("-"))}return e[x].type==="object"&&e[x].properties?hp({properties:e[x].properties,name:Array.isArray(t)?[...t,String(x)]:[t,String(x)],arrKey:n,arrName:Array.isArray(i)?[...i,String(x)]:void 0,expandName:o?Array.isArray(o)?[...o,String(x)]:[o,String(x)]:void 0,persistName:a?Array.isArray(a)?[...a,String(x)]:[a,String(x)]:void 0,selfRequired:u?.includes(x),required:e[x].required,forceNonRequired:l||!u?.includes(x),isHidden:mr(d,Array.isArray(t)?[...t,String(x)]:[t,String(x)]),hiddenPaths:d,description:e[x].description,namespaceData:p,makeValueUndefined:w,addField:_,isAdditionalProperties:e[x].isAdditionalProperties,removeField:A,isEdit:S,expandedControls:v,persistedControls:R,urlParams:N}):e[x].type==="object"&&e[x]["x-kubernetes-preserve-unknown-fields"]?I.jsx(z.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(x)):null})}),hp=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:w,makeValueUndefined:_,addField:A,isAdditionalProperties:S,removeField:v,isEdit:R,expandedControls:N,persistedControls:x,urlParams:O})=>{const F=Ea({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:w,makeValueUndefined:_,addField:A,removeField:v,isEdit:R,expandedControls:N,persistedControls:x,urlParams:O});return I.jsx(Vn,{$isHidden:d,children:I.jsx(tp,{title:I.jsxs(z.Typography.Text,{children:[Ft(t),u&&I.jsx(z.Typography.Text,{type:"danger",children:"*"}),p&&I.jsxs(z.Tooltip,{title:p,children:[" ",I.jsx(qt.QuestionCircleOutlined,{})]}),S&&I.jsx(Vr,{type:"secondary",onClick:()=>v({path:t}),children:"Удалить"}),I.jsx(bi,{formName:a||t,persistedControls:x,type:"obj"})]}),formName:o||t,expandedControls:N,children:I.jsx("div",{style:{marginLeft:"20px"},children:F})},Array.isArray(t)?t.join("-"):t)})},dp=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,values:i}=t;return!(typeof n!="string"||!Array.isArray(i))},vA=Z.lazy(()=>Promise.resolve().then(()=>Bv)),pp=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:d,prefillValuesSchema:g,prefillValueNamespaceOnly:p,isNameSpaced:w,isCreate:_,type:A,apiGroupApiVersion:S,kindName:v,typeName:R,backlink:N,designNewLayout:x})=>{const{token:O}=z.theme.useToken(),F=Xn.useNavigate(),[k]=z.Form.useForm(),D=z.Form.useWatch(["metadata","namespace"],k),[V,Q]=Z.useState(a),[fe,le]=Z.useState(),ge=Eb(le,500),[me,he]=Z.useState(!1),[de,Ie]=Z.useState(),[Re,Ce]=Z.useState(!1),[ze,Se]=Z.useState(f||[]),[ye,et]=Z.useState(d||[]),[J,X]=Z.useState(!1),oe=jr({apiGroup:A==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:w?D:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:_===!0}),Be=jr({apiGroup:A==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:w?D:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:_!==!0}),Ke=()=>{k.validateFields().then(()=>{he(!0),Ie(void 0);const ke=k.getFieldsValue(),Ve=Rs(ke,ye),je=Ki(Ve),Ae=ea(je,V),{namespace:Mt}=Ve.metadata,lt=`/api/clusters/${e}/k8s/${A==="builtin"?"":"apis/"}${S}${w?`/namespaces/${Mt}`:""}/${R}/${_?"":Ve.metadata.name}`;_?Jo({endpoint:lt,body:Ae}).then(Me=>{console.log(Me),N&&F(N)}).catch(Me=>{if(console.log("Form submit error",Me),he(!1),Go(Me)&&Me.response?.data.message.includes("Required value")){const xe=(Me.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),Fe=Array.from({length:xe.length},(b,L)=>xe.slice(0,L+1)),Bt=[...ze,...Fe],T=new Set,y=Bt.filter(b=>{const L=Array.isArray(b)?JSON.stringify(b):b;return T.has(L)?!1:(T.add(L),!0)});Se([...y])}Ie(Me)}):Yo({endpoint:lt,body:Ae}).then(Me=>{console.log(Me),N&&F(N)}).catch(Me=>{if(console.log("Form submit error",Me),he(!1),Go(Me)&&Me.response?.data.message.includes("Required value")){const xe=(Me.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),Fe=Array.from({length:xe.length},(b,L)=>xe.slice(0,L+1)),Bt=[...ze,...Fe],T=new Set,y=Bt.filter(b=>{const L=Array.isArray(b)?JSON.stringify(b):b;return T.has(L)?!1:(T.add(L),!0)});Se([...y])}Ie(Me)})}).catch(ke=>{console.log("Validating error",ke);const Ve=ke.errorFields.reduce((vt,xe)=>[...vt,xe.name],[]),ct=Ve.filter(vt=>Array.isArray(vt)).flatMap(vt=>Array.from({length:vt.length},(xe,Fe)=>vt.slice(0,Fe+1))),Ae=Ve.filter(vt=>!Array.isArray(vt)),Mt=[...ze,...Ae,...ct],lt=new Set,Me=Mt.filter(vt=>{const xe=Array.isArray(vt)?JSON.stringify(vt):vt;return lt.has(xe)?!1:(lt.add(xe),!0)});Se([...Me])})},we=Z.useCallback(()=>{const ke=k.getFieldsValue(),Ve=Rs(ke,ye),je=Ki(Ve),Ae=ea(je,V);ge(Ae)},[k,ge,V,ye]),Oe=ke=>{const Ve=Zo(ke),je=sc(Ve,V);Ve&&k.setFieldsValue(je)};if(Z.useEffect(()=>{const ke=A==="apis"?`${S}/${R}`:`v1/${R}`,Ve=o?.items.find(je=>typeof je=="object"&&!Array.isArray(je)&&je!==null&&je.spec&&typeof je.spec=="object"&&!Array.isArray(je.spec)&&je.spec!==null&&typeof je.spec.overrideType=="string"&&je.spec.overrideType===ke);if(dp(Ve)&&Ve.spec.values.forEach(({path:je,value:ct})=>{k.setFieldValue(je,ct)}),g){const je=sc(g,V);k.setFieldsValue(je)}we()},[g,k,o,A,S,R,we,V]),Z.useEffect(()=>{let ke=[];const Ve=A==="apis"?`${S}/${R}`:`v1/${R}`,je=o?.items.find(lt=>typeof lt=="object"&&!Array.isArray(lt)&&lt!==null&&lt.spec&&typeof lt.spec=="object"&&!Array.isArray(lt.spec)&&lt.spec!==null&&typeof lt.spec.overrideType=="string"&&lt.spec.overrideType===Ve);dp(je)&&(ke=je.spec.values.flatMap(({path:lt})=>Kh(lt))),g&&typeof g=="object"&&g!==null&&(ke=[...ke,...oc(g)]);const ct=[...ze,...ke],Ae=new Set,Mt=ct.filter(lt=>{const Me=Array.isArray(lt)?JSON.stringify(lt):lt;return Ae.has(Me)?!1:(Ae.add(Me),!0)});Se([...Mt])},[S,o,g,A,R]),Z.useEffect(()=>{p&&k.setFieldValue(["metadata","namespace"],p),we()},[p,we,k]),Z.useEffect(()=>{_&&k.setFieldsValue({apiVersion:S==="api/v1"?"v1":S,kind:v}),we()},[_,v,S,we,k]),Z.useEffect(()=>{const ke=k.getFieldsValue(),Ve=Rs(ke,ye),je=Ki(Ve),Ae=ea(je,V);ge(Ae)},[ge,V,k,ye]),Z.useEffect(()=>{we()},[V,we]),!V)return null;const De=w?{filterSelectOptions:nc,selectValues:w.map(ke=>({label:ke,value:ke})),disabled:!!p}:void 0,Le=ke=>{k.setFieldValue(ke,void 0),we()},Tt=({path:ke,name:Ve,type:je,items:ct,nestedProperties:Ae,required:Mt})=>{const Me=(Array.isArray(ke)?ke:[ke]).reduceRight((Fe,Bt)=>({[Bt]:{properties:Fe}}),{[Ve]:{type:je,items:ct,properties:Ae,required:Mt,isAdditionalProperties:!0}}),vt=bt.cloneDeep(V),xe=bt.merge(vt,Me);console.log("newObject",Me),console.log("newProperties",xe),Q(xe)},on=({path:ke})=>{const je=(Array.isArray(ke)?ke:[ke]).flatMap(Ae=>[Ae,"properties"]).slice(0,-1),ct=bt.cloneDeep(V);bt.unset(ct,je),Q(ct)},Nt=ke=>{Se([...ze,ke])},$t=ke=>{Se([...ze.filter(Ve=>JSON.stringify(Ve)!==JSON.stringify(ke))])},jt=(ke,Ve)=>{Ve&&k.getFieldValue(ke)===void 0&&(Ve==="str"&&k.setFieldValue(ke,""),Ve==="number"&&k.setFieldValue(ke,0),Ve==="arr"&&k.setFieldValue(ke,[]),Ve==="obj"&&k.setFieldValue(ke,{})),et([...ye,ke])},St=ke=>{console.log(ke),et([...ye.filter(Ve=>JSON.stringify(Ve)!==JSON.stringify(ke))])};return I.jsxs(I.Fragment,{children:[I.jsxs(os.Container,{$designNewLayout:x,children:[I.jsx("div",{children:I.jsxs(z.Form,{form:k,onValuesChange:we,children:[I.jsx(zw,{value:x,children:Ea({properties:V,name:[],required:u,hiddenPaths:l,namespaceData:De,makeValueUndefined:Le,addField:Tt,removeField:on,isEdit:!_,expandedControls:{onExpandOpen:Nt,onExpandClose:$t,expandedKeys:ze},persistedControls:{onPersistMark:jt,onPersistUnmark:St,persistedKeys:ye,isPersistedKeysShown:J},urlParams:n})}),I.jsxs("div",{children:["Show persisted checkboxes:"," ",I.jsx(z.Switch,{value:J,onChange:ke=>X(ke),size:"small"})]}),!x&&I.jsxs(I.Fragment,{children:[I.jsx(fr,{$space:10,$samespace:!0}),I.jsx(z.Alert,{type:"warning",message:"Only the data from the form will be sent. Empty fields will be removed recursively."})]}),_&&oe.data?.status.allowed===!1&&I.jsxs(I.Fragment,{children:[I.jsx(fr,{$space:10,$samespace:!0}),I.jsx(z.Alert,{type:"warning",message:"Insufficient rights to create"})]}),!_&&Be.data?.status.allowed===!1&&I.jsxs(I.Fragment,{children:[I.jsx(fr,{$space:10,$samespace:!0}),I.jsx(z.Alert,{type:"warning",message:"Insufficient rights to edit"})]}),de&&I.jsxs(I.Fragment,{children:[I.jsx(fr,{$space:10,$samespace:!0}),I.jsx(z.Alert,{message:`An error has occurred: ${de?.response?.data?.message} `,type:"error"})]})]})}),I.jsx("div",{children:I.jsx(Ww,{theme:t,currentValues:fe||{},onChange:Oe})})]}),I.jsx(os.ControlsRowContainer,{$bgColor:O.colorPrimaryBg,$designNewLayout:x,children:I.jsxs(z.Flex,{gap:x?10:16,align:"center",children:[I.jsx(z.Button,{type:"primary",onClick:Ke,loading:me,children:"Submit"}),N&&I.jsx(z.Button,{onClick:()=>F(N),children:"Cancel"}),I.jsx(z.Button,{onClick:()=>Ce(!0),icon:I.jsx(qt.BugOutlined,{})}),x&&I.jsx("div",{children:I.jsx(z.Typography.Text,{children:"Only the data from the form will be sent. Empty fields will be removed recursively."})})]})}),Re&&I.jsx(z.Modal,{open:Re,onOk:()=>Ce(!1),onCancel:()=>Ce(!1),onClose:()=>Ce(!1),title:"Debug for properties",width:"90vw",children:I.jsx(os.DebugContainer,{children:I.jsx(Z.Suspense,{fallback:I.jsx("div",{children:"Loading..."}),children:I.jsx(vA,{defaultLanguage:"json",width:"100%",height:"80vh",theme:"vs-dark",value:JSON.stringify(V,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},gp=({properties:e,currentPath:t=[],result:n=[]})=>(e&&Object.keys(e).forEach(i=>{const o=[...t,i];i==="additionalProperties"?n.push(t):typeof e[i]=="object"&&e[i]!==null&&gp({properties:e[i],currentPath:o,result:n})}),n),yp=({path:e,defaultValue:t})=>{if(e.length===0)return{};const[n,...i]=e;return i.length===0?{[n]:t}:{[n]:yp({path:i,defaultValue:t})}},wA=({pathsWithAdditionalProperties:e,prefillValuesSchema:t,bodyParametersSchema:n})=>e.reduce((i,o)=>{const a=o.filter((l,f)=>f%2===0);let u=null;try{u=bt.get(t,a.join("."))}catch{}if(u){const l=bt.get(n.properties,`${o.join(".")}.additionalProperties.type`),f={};Object.keys(u).forEach(p=>{const w={[p]:{type:l,isAdditionalProperties:!0}},_=bt.cloneDeep(f);f.properties=bt.merge(_.properties,w)});const d=yp({path:o,defaultValue:f});return bt.merge(i,d)}return i},{}),mp=(e,t)=>{const n={...e};for(const i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(n[i]=t[i]);return n},bp=({typeName:e,apiGroup:t,apiVersion:n,swagger:i})=>{const o=`/apis/${t}/${n}/${e}`,a=`/apis/${t}/${n}/namespaces/{namespace}/${e}`,u=Object.keys(i.paths||{}).includes(o),l=Object.keys(i.paths||{}).includes(a);return{isClusterWide:u,isNamespaceScoped:l}},Mc=({typeName:e,swagger:t})=>{const n=`/api/v1/${e}`,i=`/api/v1/namespaces/{namespace}/${e}`,o=Object.keys(t.paths||{}).includes(n),a=Object.keys(t.paths||{}).includes(i);return{isClusterWide:o,isNamespaceScoped:a}},vp=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,strategy:i,schema:o,hidden:a,expanded:u,persisted:l}=t;return!(typeof n!="string"||typeof n!="string"||typeof i!="string"||!(typeof o=="object"&&o!==null)||!Array.isArray(a)&&typeof a<"u"||!Array.isArray(u)&&typeof u<"u"||!Array.isArray(l)&&typeof l<"u")},wp=({swagger:e,data:t})=>{let n="",i=!1;if(t.type==="builtin"){const{isNamespaceScoped:o}=Mc({typeName:t.typeName,swagger:e});o&&(i=!0),n=`/api/v1${o?"/namespaces/{namespace}":""}/${t.typeName}`}else{const{isNamespaceScoped:o}=bp({apiGroup:t.apiGroup,apiVersion:t.apiVersion,typeName:t.typeName,swagger:e});o&&(i=!0),n=`/apis/${t.apiGroup}/${t.apiVersion}${o?"/namespaces/{namespace}":""}/${t.typeName}`}return{swaggerPath:n,isNamespaced:i}},Ap=({swagger:e,swaggerPath:t})=>{const n=e?.paths?.[t]?.post;if(!n)return{bodyParametersSchema:void 0,kindName:void 0,error:`No post data for ${t}`};const i=n?.["x-kubernetes-group-version-kind"];if(!i)return{bodyParametersSchema:void 0,kindName:void 0,error:`postData with no x-kubernetes-group-version-kind: ${JSON.stringify(n,null,2)}`};const o=i?.kind;if(!o)return{bodyParametersSchema:void 0,kindName:void 0,error:`x-kubernetes-group-version-kind with no kind: ${JSON.stringify(i,null,2)}`};const a=n?.parameters;if(!a){const f=`postData with no parameters: ${JSON.stringify(n,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}const u=a?.filter(f=>f.in==="body")[0];if(!u){const f=`paremeters with no {in: body}: ${JSON.stringify(a,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}const l=u.schema;if(!l){const f=`bodyParameters with no schema:${JSON.stringify(u,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}return Object.keys(l).includes("$ref")?{bodyParametersSchema:l,kindName:o,error:"Underefed schema"}:{bodyParametersSchema:l,kindName:o,error:void 0}},Sp=({specificCustomOverrides:e,newProperties:t,bodyParametersSchema:n})=>{let i,o,a,u=t,l;if(vp(e))if(e.spec.hidden&&(i=e.spec.hidden),e.spec.expanded&&(o=e.spec.expanded),e.spec.persisted&&(a=e.spec.persisted),e.spec.strategy==="fullReplace")e.spec.schema.properties?u=e.spec.schema.properties:u=t,e.spec.schema.required?l=e.spec.schema.required:l=n.required;else if(e.spec.strategy==="merge"){if(e.spec.schema.properties){const f=bt.cloneDeep(t);u=bt.merge(f,e.spec.schema.properties)}else u=t;e.spec.schema.required?l=[...n.required||[],...e.spec.schema.required]:l=n.required}else if(e.spec.strategy==="replace"){if(e.spec.schema.properties){const f=bt.cloneDeep(t);u=mp(f,e.spec.schema.properties)}else u=t;e.spec.schema.required?l=[...e.spec.schema.required]:l=n.required}else u=t,l=n.required;else u=t,l=n.required;return{hiddenPaths:i,expandedPaths:o,persistedPaths:a,propertiesToApply:u,requiredToApply:l}},AA=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,swagger:a,namespacesData:u,formsOverridesData:l,data:f,isCreate:d,backlink:g,modeData:p,designNewLayout:w})=>{const[_,A]=Z.useState(void 0),[S,v]=Z.useState([]),[R,N]=Z.useState([]),[x,O]=Z.useState([]),[F,k]=Z.useState([]),[D,V]=Z.useState(""),[Q,fe]=Z.useState(!1),[le,ge]=Z.useState(!1),me=Z.useCallback(()=>{p&&(p.onChange("Manual"),p.onDisabled())},[p]);return Z.useEffect(()=>{if(!a)return;const{swaggerPath:he,isNamespaced:de}=wp({swagger:a,data:f});de&&fe(!0);const{bodyParametersSchema:Ie,kindName:Re,error:Ce}=Ap({swagger:a,swaggerPath:he});if(Ce){ge(Ce),console.log(Ce),me();return}Re&&V(Re);const ze=gp({properties:Ie.properties}),Se=wA({pathsWithAdditionalProperties:ze,prefillValuesSchema:f.prefillValuesSchema,bodyParametersSchema:Ie}),ye=bt.cloneDeep(Ie.properties),et=bt.merge(ye,Se),J=f.type==="apis"?`${f.apiGroup}/${f.apiVersion}/${f.typeName}`:`v1/${f.typeName}`,X=l?.items.find(De=>De.spec.overrideType===J),{hiddenPaths:oe,expandedPaths:Be,persistedPaths:Ke,propertiesToApply:we,requiredToApply:Oe}=Sp({specificCustomOverrides:X,newProperties:et,bodyParametersSchema:Ie});oe&&N(oe),Be&&O(Be),Ke&&k(Ke),we&&A(we),Oe&&v(Oe)},[a,f,me,l]),p?.current==="Manual"?I.jsx(Hw,{theme:e,cluster:t,prefillValuesSchema:f.prefillValuesSchema,isCreate:d,type:f.type,isNameSpaced:Q?u?.items.map(he=>he.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,typeName:f.typeName,backlink:g}):!_&&!le?null:le?I.jsx(z.Alert,{message:le,type:"error"}):I.jsx(pp,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:_,required:S,hiddenPaths:R,expandedPaths:x,persistedPaths:F,prefillValuesSchema:f.prefillValuesSchema,prefillValueNamespaceOnly:f.prefillValueNamespaceOnly,isCreate:d,type:f.type,isNameSpaced:Q?u?.items.map(he=>he.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,kindName:D,typeName:f.typeName,backlink:g,designNewLayout:w},JSON.stringify(_)+JSON.stringify(S)+JSON.stringify(R)+JSON.stringify(f))},SA={CustomCard:Xe(z.Card)`
446
+ `,Cv=et.div`
447
+ height: ${({$designNewLayoutHeight:e})=>e?`${e}px`:"75vh"};
448
+ `,io={ResetedFormList:Ev,Container:Av,OverflowContainer:Sv,ControlsRowContainer:xv,DebugContainer:Cv},wp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,namespaceData:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v})=>Array.isArray(e)&&e.length===2&&e[0]==="metadata"&&e[1]==="namespace"&&f?A.jsx(hv,{name:e,isHidden:u,namespaceData:f,isAdditionalProperties:d,removeField:g}):A.jsx(dv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v}),_v=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p,onRemoveByMinus:v})=>A.jsx(mv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,options:g,persistedControls:p,onRemoveByMinus:v}),bp=({isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v})=>A.jsx(wv,{isNumber:e,name:t,arrKey:n,arrName:i,persistName:o,required:a,forceNonRequired:u,isHidden:l,description:f,isAdditionalProperties:d,removeField:g,persistedControls:p,onRemoveByMinus:v}),vp=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,persistedControls:d,customProps:g,urlParams:p,onRemoveByMinus:v})=>A.jsx(fv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isEdit:f,customProps:g,persistedControls:d,urlParams:p,onRemoveByMinus:v}),Ap=({name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:_})=>A.jsx(uv,{name:e,arrKey:t,arrName:n,persistName:i,required:o,forceNonRequired:a,isHidden:u,description:l,isAdditionalProperties:f,removeField:d,persistedControls:g,customProps:p,urlParams:v,onRemoveByMinus:_}),Sp=({name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f})=>A.jsx(yv,{name:e,arrKey:t,arrName:n,isHidden:i,description:o,makeValueUndefined:a,isAdditionalProperties:u,removeField:l,onRemoveByMinus:f}),Ep=({schema:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,description:d,makeValueUndefined:g,addField:p,isAdditionalProperties:v,removeField:_,isEdit:S,expandedControls:E,persistedControls:b,urlParams:D,onRemoveByMinus:j})=>e.type==="array"?A.jsxs(rr,{$isHidden:f,children:[A.jsx(bv,{name:t,persistName:a,required:u,description:d,isAdditionalProperties:v,removeField:_,persistedControls:b,onRemoveByMinus:j}),A.jsx(io.ResetedFormList,{name:i||t,rules:!l&&u?.includes(Ft(t))?[{validator:async(C,T)=>{if(!T||T.length<1)return Promise.reject(new Error("Field is required"))}}]:void 0,children:(C,{add:T,remove:F},{errors:P})=>A.jsxs(A.Fragment,{children:[C.map(O=>{const W=e.items?.type,Y=e.items?.description,ce=e.items;return A.jsxs("div",{children:[W!=="object"&&A.jsxs(A.Fragment,{children:[W==="string"&&wp({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:Y,removeField:_,persistedControls:b,onRemoveByMinus:()=>F(O.name)}),(W==="number"||W==="integer")&&bp({isNumber:W==="number",name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:Y,removeField:_,persistedControls:b,onRemoveByMinus:()=>F(O.name)}),(W==="rangeInputCpu"||W==="rangeInputMemory")&&vp({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:Y,isEdit:S,persistedControls:b,customProps:e.items.customProps,urlParams:D,onRemoveByMinus:()=>F(O.name)}),W==="listInput"&&Ap({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:Y,removeField:_,persistedControls:b,customProps:e.items.customProps,urlParams:D,onRemoveByMinus:()=>F(O.name)}),W==="boolean"&&Sp({name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],description:Y,makeValueUndefined:g,removeField:_,onRemoveByMinus:()=>F(O.name)}),W==="array"&&Ep({schema:e.items,name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],expandName:o?Array.isArray(o)?[...o,O.name]:[o,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],description:Y,makeValueUndefined:g,addField:p,removeField:_,isEdit:S,expandedControls:E,persistedControls:b,urlParams:D,onRemoveByMinus:()=>F(O.name)})]}),W==="object"&&ce?.properties&&xp({properties:ce.properties,name:Array.isArray(t)?[...t,O.name]:[t,O.name],arrKey:O.key,arrName:[O.name],expandName:o?Array.isArray(o)?[...o,O.name]:[o,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],persistName:a?Array.isArray(a)?[...a,O.name]:[a,O.name]:Array.isArray(t)?[...t,O.name]:[t,O.name],required:ce.required,forceNonRequired:l,description:Y,makeValueUndefined:g,addField:p,isAdditionalProperties:v,removeField:_,isEdit:S,expandedControls:E,persistedControls:b,urlParams:D,onRemoveByMinus:()=>F(O.name)})]},O.key)}),A.jsxs(q.Form.Item,{children:[A.jsx(q.Button,{type:"text",size:"small",onClick:()=>T(),children:A.jsx(nc,{})}),A.jsx(q.Form.ErrorList,{errors:P})]})]})},n!==void 0?n:Array.isArray(t)?t.slice(-1)[0]:t)]}):null,_a=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:u,forceNonRequired:l,isHidden:f,hiddenPaths:d,description:g,namespaceData:p,makeValueUndefined:v,addField:_,removeField:S,isEdit:E,expandedControls:b,persistedControls:D,urlParams:j})=>A.jsx(rr,{$isHidden:f,children:Object.keys(e).map(C=>{if(e[C].type==="string"&&e[C].enum)return _v({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:br(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,persistedControls:D,options:e[C].enum||[]});if(e[C].type==="string"&&!e[C].enum||Object.keys(e[C]).includes("x-kubernetes-int-or-string"))return wp({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:br(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,namespaceData:p,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,persistedControls:D});if(e[C].type==="number"||e[C].type==="integer")return bp({isNumber:e[C].type==="number",name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:br(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,persistedControls:D});if(e[C].type==="rangeInputCpu"||e[C].type==="rangeInputMemory")return vp({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:br(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,isEdit:E,customProps:e[C].customProps,persistedControls:D,urlParams:j});if(e[C].type==="listInput")return Ap({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:br(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,customProps:e[C].customProps,removeField:S,persistedControls:D,urlParams:j});if(e[C].type==="boolean")return Sp({name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,isHidden:br(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,makeValueUndefined:v,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S});if(e[C].type==="array")return Ep({schema:e[C],name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,expandName:o?Array.isArray(o)?[...o,String(C)]:[o,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:u?.includes(C)?[String(C)]:void 0,forceNonRequired:l,isHidden:br(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:e[C].description,makeValueUndefined:v,addField:_,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,isEdit:E,expandedControls:b,persistedControls:D,urlParams:j});if(e[C].additionalProperties){const T=e[C].properties?_a({properties:e[C].properties,name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,expandName:o?Array.isArray(o)?[...o,String(C)]:[o,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,required:e[C].required,forceNonRequired:l,isHidden:br(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),hiddenPaths:d,description:e[C].description,namespaceData:p,makeValueUndefined:v,addField:_,removeField:S,isEdit:E,expandedControls:b,persistedControls:D,urlParams:j}):void 0;return A.jsx(mp,{name:t,persistName:a,isHidden:br(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),description:g,removeField:S,expandedControls:b,persistedControls:D,collapseTitle:C,collapseFormName:Array.isArray(t)?[...t,String(C)]:[t,String(C)],data:T,inputProps:{addField:_,additionalProperties:e[C]?.additionalProperties}},Array.isArray(t)?[...t,String(C)].join("-"):[t,String(C)].join("-"))}return e[C].type==="object"&&e[C].properties?xp({properties:e[C].properties,name:Array.isArray(t)?[...t,String(C)]:[t,String(C)],arrKey:n,arrName:Array.isArray(i)?[...i,String(C)]:void 0,expandName:o?Array.isArray(o)?[...o,String(C)]:[o,String(C)]:void 0,persistName:a?Array.isArray(a)?[...a,String(C)]:[a,String(C)]:void 0,selfRequired:u?.includes(C),required:e[C].required,forceNonRequired:l||!u?.includes(C),isHidden:br(d,Array.isArray(t)?[...t,String(C)]:[t,String(C)]),hiddenPaths:d,description:e[C].description,namespaceData:p,makeValueUndefined:v,addField:_,isAdditionalProperties:e[C].isAdditionalProperties,removeField:S,isEdit:E,expandedControls:b,persistedControls:D,urlParams:j}):e[C].type==="object"&&e[C]["x-kubernetes-preserve-unknown-fields"]?A.jsx(q.Alert,{message:"x-kubernetes-preserve-unknown-fields",banner:!0},String(C)):null})}),xp=({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,selfRequired:u,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:v,makeValueUndefined:_,addField:S,isAdditionalProperties:E,removeField:b,isEdit:D,expandedControls:j,persistedControls:C,urlParams:T,onRemoveByMinus:F})=>{const P=_a({properties:e,name:t,arrKey:n,arrName:i,expandName:o,persistName:a,required:l,forceNonRequired:f,isHidden:d,hiddenPaths:g,description:p,namespaceData:v,makeValueUndefined:_,addField:S,removeField:b,isEdit:D,expandedControls:j,persistedControls:C,urlParams:T});return A.jsx(mp,{name:t,persistName:a,selfRequired:u,isHidden:d,description:p,isAdditionalProperties:E,removeField:b,expandedControls:j,persistedControls:C,collapseTitle:t,collapseFormName:o||t,data:P,onRemoveByMinus:F})},Cp=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(()=>Vw)),_p=({cluster:e,theme:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:a,required:u,hiddenPaths:l,expandedPaths:f,persistedPaths:d,prefillValuesSchema:g,prefillValueNamespaceOnly:p,isNameSpaced:v,isCreate:_,type:S,apiGroupApiVersion:E,kindName:b,typeName:D,backlink:j,designNewLayout:C,designNewLayoutHeight:T})=>{const{token:F}=q.theme.useToken(),P=Qn.useNavigate(),[O]=q.Form.useForm(),W=q.Form.useWatch(["metadata","namespace"],O),[Y,ce]=Z.useState(a),[le,ge]=Z.useState(),ye=D2(ge,500),[Ce,pe]=Z.useState(!1),[Re,Se]=Z.useState(),[Ee,He]=Z.useState(!1),[Ae,me]=Z.useState(f||[]),[Me,J]=Z.useState(d||[]),[X,ae]=Z.useState(!0),Be=Z.useRef(null),We=qr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"create",refetchInterval:!1,enabler:_===!0}),_e=qr({apiGroup:S==="builtin"?"":i.apiGroup?i.apiGroup:"",typeName:i.typeName||"",namespace:v?W:"",clusterName:e,verb:"update",refetchInterval:!1,enabler:_!==!0}),De=()=>{if(Be.current){const{scrollHeight:ke,clientHeight:Pe}=Be.current;Be.current.scrollTo({top:ke-Pe,behavior:"smooth"})}O.validateFields().then(()=>{pe(!0),Se(void 0);const ke=O.getFieldsValue(),Pe=js(ke,Me),he=Gi(Pe),St=ra(he,Y),{namespace:Et}=Pe.metadata,rt=`/api/clusters/${e}/k8s/${S==="builtin"?"":"apis/"}${E}${v?`/namespaces/${Et}`:""}/${D}/${_?"":Pe.metadata.name}`;_?Xo({endpoint:rt,body:St}).then(we=>{console.log(we),j&&P(j)}).catch(we=>{if(console.log("Form submit error",we),pe(!1),Qo(we)&&we.response?.data.message.includes("Required value")){const ut=(we.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),I=Array.from({length:ut.length},(V,G)=>ut.slice(0,G+1)),y=[...Ae,...I],w=new Set,L=y.filter(V=>{const G=Array.isArray(V)?JSON.stringify(V):V;return w.has(G)?!1:(w.add(G),!0)});me([...L])}Se(we)}):Zo({endpoint:rt,body:St}).then(we=>{console.log(we),j&&P(j)}).catch(we=>{if(console.log("Form submit error",we),pe(!1),Qo(we)&&we.response?.data.message.includes("Required value")){const ut=(we.response?.data.message.split("is invalid: ")[1]).split(":")[0].trim().split("."),I=Array.from({length:ut.length},(V,G)=>ut.slice(0,G+1)),y=[...Ae,...I],w=new Set,L=y.filter(V=>{const G=Array.isArray(V)?JSON.stringify(V):V;return w.has(G)?!1:(w.add(G),!0)});me([...L])}Se(we)})}).catch(ke=>{console.log("Validating error",ke);const Pe=ke.errorFields.reduce((Te,ut)=>[...Te,ut.name],[]),At=Pe.filter(Te=>Array.isArray(Te)).flatMap(Te=>Array.from({length:Te.length},(ut,I)=>Te.slice(0,I+1))),St=Pe.filter(Te=>!Array.isArray(Te)),Et=[...Ae,...St,...At],rt=new Set,we=Et.filter(Te=>{const ut=Array.isArray(Te)?JSON.stringify(Te):Te;return rt.has(ut)?!1:(rt.add(ut),!0)});me([...we])})},Oe=Z.useCallback(()=>{const ke=O.getFieldsValue(),Pe=js(ke,Me),he=Gi(Pe),St=ra(he,Y);ye(St)},[O,ye,Y,Me]),Le=ke=>{const Pe=na(ke),he=cc(Pe,Y);Pe&&O.setFieldsValue(he)};if(Z.useEffect(()=>{const ke=S==="apis"?`${E}/${D}`:`v1/${D}`,Pe=o?.items.find(he=>typeof he=="object"&&!Array.isArray(he)&&he!==null&&he.spec&&typeof he.spec=="object"&&!Array.isArray(he.spec)&&he.spec!==null&&typeof he.spec.overrideType=="string"&&he.spec.overrideType===ke);if(Cp(Pe)&&Pe.spec.values.forEach(({path:he,value:At})=>{O.setFieldValue(he,At)}),g){const he=cc(g,Y);O.setFieldsValue(he)}Oe()},[g,O,o,S,E,D,Oe,Y]),Z.useEffect(()=>{let ke=[];const Pe=S==="apis"?`${E}/${D}`:`v1/${D}`,he=o?.items.find(rt=>typeof rt=="object"&&!Array.isArray(rt)&&rt!==null&&rt.spec&&typeof rt.spec=="object"&&!Array.isArray(rt.spec)&&rt.spec!==null&&typeof rt.spec.overrideType=="string"&&rt.spec.overrideType===Pe);Cp(he)&&(ke=he.spec.values.flatMap(({path:rt})=>rd(rt))),g&&typeof g=="object"&&g!==null&&(ke=[...ke,...lc(g)]);const At=[...Ae,...ke],St=new Set,Et=At.filter(rt=>{const we=Array.isArray(rt)?JSON.stringify(rt):rt;return St.has(we)?!1:(St.add(we),!0)});me([...Et])},[E,o,g,S,D]),Z.useEffect(()=>{p&&O.setFieldValue(["metadata","namespace"],p),Oe()},[p,Oe,O]),Z.useEffect(()=>{_&&O.setFieldsValue({apiVersion:E==="api/v1"?"v1":E,kind:b}),Oe()},[_,b,E,Oe,O]),Z.useEffect(()=>{const ke=O.getFieldsValue(),Pe=js(ke,Me),he=Gi(Pe),St=ra(he,Y);ye(St)},[ye,Y,O,Me]),Z.useEffect(()=>{Oe()},[Y,Oe]),!Y)return null;const Tt=v?{filterSelectOptions:oc,selectValues:v.map(ke=>({label:ke,value:ke})),disabled:!!p}:void 0,rn=ke=>{O.setFieldValue(ke,void 0),Oe()},Lt=({path:ke,name:Pe,type:he,items:At,nestedProperties:St,required:Et})=>{const we=(Array.isArray(ke)?ke:[ke]).reduceRight((I,y)=>({[y]:{properties:I}}),{[Pe]:{type:he,items:At,properties:St,required:Et,isAdditionalProperties:!0}}),Te=yt.cloneDeep(Y),ut=yt.merge(Te,we);console.log("newObject",we),console.log("newProperties",ut),ce(ut)},jt=({path:ke})=>{const he=(Array.isArray(ke)?ke:[ke]).flatMap(St=>[St,"properties"]).slice(0,-1),At=yt.cloneDeep(Y);yt.unset(At,he),ce(At)},Nt=ke=>{me([...Ae,ke])},bt=ke=>{me([...Ae.filter(Pe=>JSON.stringify(Pe)!==JSON.stringify(ke))])},kn=(ke,Pe)=>{Pe&&O.getFieldValue(ke)===void 0&&(Pe==="str"&&O.setFieldValue(ke,""),Pe==="number"&&O.setFieldValue(ke,0),Pe==="arr"&&O.setFieldValue(ke,[]),Pe==="obj"&&O.setFieldValue(ke,{})),J([...Me,ke])},An=ke=>{console.log(ke),J([...Me.filter(Pe=>JSON.stringify(Pe)!==JSON.stringify(ke))])};return A.jsxs(A.Fragment,{children:[A.jsxs(io.Container,{$designNewLayout:C,$designNewLayoutHeight:T,children:[A.jsx(io.OverflowContainer,{ref:Be,children:A.jsxs(q.Form,{form:O,onValuesChange:Oe,children:[A.jsx(rv,{value:C,children:_a({properties:Y,name:[],required:u,hiddenPaths:l,namespaceData:Tt,makeValueUndefined:rn,addField:Lt,removeField:jt,isEdit:!_,expandedControls:{onExpandOpen:Nt,onExpandClose:bt,expandedKeys:Ae},persistedControls:{onPersistMark:kn,onPersistUnmark:An,persistedKeys:Me,isPersistedKeysShown:X},urlParams:n})}),!C&&A.jsxs(A.Fragment,{children:[A.jsx(hr,{$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."})]}),_&&We.data?.status.allowed===!1&&A.jsxs(A.Fragment,{children:[A.jsx(hr,{$space:10,$samespace:!0}),A.jsx(q.Alert,{type:"warning",message:"Insufficient rights to create"})]}),!_&&_e.data?.status.allowed===!1&&A.jsxs(A.Fragment,{children:[A.jsx(hr,{$space:10,$samespace:!0}),A.jsx(q.Alert,{type:"warning",message:"Insufficient rights to edit"})]}),Re&&A.jsxs(A.Fragment,{children:[A.jsx(hr,{$space:10,$samespace:!0}),A.jsx(q.Alert,{message:`An error has occurred: ${Re?.response?.data?.message} `,type:"error"})]})]})}),A.jsx("div",{children:A.jsx(ev,{theme:t,currentValues:le||{},onChange:Le})})]}),A.jsx(io.ControlsRowContainer,{$bgColor:F.colorPrimaryBg,$designNewLayout:C,children:A.jsxs(q.Flex,{gap:C?10:16,align:"center",children:[A.jsx(q.Button,{type:"primary",onClick:De,loading:Ce,children:"Submit"}),j&&A.jsx(q.Button,{onClick:()=>P(j),children:"Cancel"}),A.jsx(q.Button,{onClick:()=>He(!0),icon:A.jsx(Mt.BugOutlined,{})}),C&&A.jsx("div",{children:A.jsx(q.Typography.Text,{children:"Only the data from the form will be sent. Empty fields will be removed recursively."})})]})}),Ee&&A.jsx(q.Modal,{open:Ee,onOk:()=>He(!1),onCancel:()=>He(!1),onClose:()=>He(!1),title:"Debug for properties",width:"90vw",children:A.jsx(io.DebugContainer,{$designNewLayoutHeight:T,children:A.jsx(Z.Suspense,{fallback:A.jsx("div",{children:"Loading..."}),children:A.jsx(kv,{defaultLanguage:"json",width:"100%",height:T||"75vh",theme:"vs-dark",value:JSON.stringify(Y,null,2),options:{theme:"vs-dark",minimap:{enabled:!1}}})})})})]})},kp=({properties:e,currentPath:t=[],result:n=[]})=>(e&&Object.keys(e).forEach(i=>{const o=[...t,i];i==="additionalProperties"?n.push(t):typeof e[i]=="object"&&e[i]!==null&&kp({properties:e[i],currentPath:o,result:n})}),n),Tp=({path:e,defaultValue:t})=>{if(e.length===0)return{};const[n,...i]=e;return i.length===0?{[n]:t}:{[n]:Tp({path:i,defaultValue:t})}},Tv=({pathsWithAdditionalProperties:e,prefillValuesSchema:t,bodyParametersSchema:n})=>e.reduce((i,o)=>{const a=o.filter((l,f)=>f%2===0);let u=null;try{u=yt.get(t,a.join("."))}catch{}if(u){const l=yt.get(n.properties,`${o.join(".")}.additionalProperties.type`),f={};Object.keys(u).forEach(p=>{const v={[p]:{type:l,isAdditionalProperties:!0}},_=yt.cloneDeep(f);f.properties=yt.merge(_.properties,v)});const d=Tp({path:o,defaultValue:f});return yt.merge(i,d)}return i},{}),Op=(e,t)=>{const n={...e};for(const i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(n[i]=t[i]);return n},Ip=({typeName:e,apiGroup:t,apiVersion:n,swagger:i})=>{const o=`/apis/${t}/${n}/${e}`,a=`/apis/${t}/${n}/namespaces/{namespace}/${e}`,u=Object.keys(i.paths||{}).includes(o),l=Object.keys(i.paths||{}).includes(a);return{isClusterWide:u,isNamespaceScoped:l}},Wc=({typeName:e,swagger:t})=>{const n=`/api/v1/${e}`,i=`/api/v1/namespaces/{namespace}/${e}`,o=Object.keys(t.paths||{}).includes(n),a=Object.keys(t.paths||{}).includes(i);return{isClusterWide:o,isNamespaceScoped:a}},Fp=e=>{if(!(typeof e=="object"&&e!==null))return!1;const{spec:t}=e;if(!(typeof t=="object"&&t!==null))return!1;const{overrideType:n,strategy:i,schema:o,hidden:a,expanded:u,persisted:l}=t;return!(typeof n!="string"||typeof n!="string"||typeof i!="string"||!(typeof o=="object"&&o!==null)||!Array.isArray(a)&&typeof a<"u"||!Array.isArray(u)&&typeof u<"u"||!Array.isArray(l)&&typeof l<"u")},Bp=({swagger:e,data:t})=>{let n="",i=!1;if(t.type==="builtin"){const{isNamespaceScoped:o}=Wc({typeName:t.typeName,swagger:e});o&&(i=!0),n=`/api/v1${o?"/namespaces/{namespace}":""}/${t.typeName}`}else{const{isNamespaceScoped:o}=Ip({apiGroup:t.apiGroup,apiVersion:t.apiVersion,typeName:t.typeName,swagger:e});o&&(i=!0),n=`/apis/${t.apiGroup}/${t.apiVersion}${o?"/namespaces/{namespace}":""}/${t.typeName}`}return{swaggerPath:n,isNamespaced:i}},Dp=({swagger:e,swaggerPath:t})=>{const n=e?.paths?.[t]?.post;if(!n)return{bodyParametersSchema:void 0,kindName:void 0,error:`No post data for ${t}`};const i=n?.["x-kubernetes-group-version-kind"];if(!i)return{bodyParametersSchema:void 0,kindName:void 0,error:`postData with no x-kubernetes-group-version-kind: ${JSON.stringify(n,null,2)}`};const o=i?.kind;if(!o)return{bodyParametersSchema:void 0,kindName:void 0,error:`x-kubernetes-group-version-kind with no kind: ${JSON.stringify(i,null,2)}`};const a=n?.parameters;if(!a){const f=`postData with no parameters: ${JSON.stringify(n,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}const u=a?.filter(f=>f.in==="body")[0];if(!u){const f=`paremeters with no {in: body}: ${JSON.stringify(a,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}const l=u.schema;if(!l){const f=`bodyParameters with no schema:${JSON.stringify(u,null,2)}`;return{bodyParametersSchema:void 0,kindName:o,error:f}}return Object.keys(l).includes("$ref")?{bodyParametersSchema:l,kindName:o,error:"Underefed schema"}:{bodyParametersSchema:l,kindName:o,error:void 0}},Pp=({specificCustomOverrides:e,newProperties:t,bodyParametersSchema:n})=>{let i,o,a,u=t,l;if(Fp(e))if(e.spec.hidden&&(i=e.spec.hidden),e.spec.expanded&&(o=e.spec.expanded),e.spec.persisted&&(a=e.spec.persisted),e.spec.strategy==="fullReplace")e.spec.schema.properties?u=e.spec.schema.properties:u=t,e.spec.schema.required?l=e.spec.schema.required:l=n.required;else if(e.spec.strategy==="merge"){if(e.spec.schema.properties){const f=yt.cloneDeep(t);u=yt.merge(f,e.spec.schema.properties)}else u=t;e.spec.schema.required?l=[...n.required||[],...e.spec.schema.required]:l=n.required}else if(e.spec.strategy==="replace"){if(e.spec.schema.properties){const f=yt.cloneDeep(t);u=Op(f,e.spec.schema.properties)}else u=t;e.spec.schema.required?l=[...e.spec.schema.required]:l=n.required}else u=t,l=n.required;else u=t,l=n.required;return{hiddenPaths:i,expandedPaths:o,persistedPaths:a,propertiesToApply:u,requiredToApply:l}},Ov=({theme:e,cluster:t,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,swagger:a,namespacesData:u,formsOverridesData:l,data:f,isCreate:d,backlink:g,modeData:p,designNewLayout:v,designNewLayoutHeight:_})=>{const[S,E]=Z.useState(void 0),[b,D]=Z.useState([]),[j,C]=Z.useState([]),[T,F]=Z.useState([]),[P,O]=Z.useState([]),[W,Y]=Z.useState(""),[ce,le]=Z.useState(!1),[ge,ye]=Z.useState(!1),Ce=Z.useCallback(()=>{p&&(p.onChange("Manual"),p.onDisabled())},[p]);return Z.useEffect(()=>{if(!a)return;const{swaggerPath:pe,isNamespaced:Re}=Bp({swagger:a,data:f});Re&&le(!0);const{bodyParametersSchema:Se,kindName:Ee,error:He}=Dp({swagger:a,swaggerPath:pe});if(He){ye(He),console.log(He),Ce();return}Ee&&Y(Ee);const Ae=kp({properties:Se.properties}),me=Tv({pathsWithAdditionalProperties:Ae,prefillValuesSchema:f.prefillValuesSchema,bodyParametersSchema:Se}),Me=yt.cloneDeep(Se.properties),J=yt.merge(Me,me),X=f.type==="apis"?`${f.apiGroup}/${f.apiVersion}/${f.typeName}`:`v1/${f.typeName}`,ae=l?.items.find(Le=>Le.spec.overrideType===X),{hiddenPaths:Be,expandedPaths:We,persistedPaths:_e,propertiesToApply:De,requiredToApply:Oe}=Pp({specificCustomOverrides:ae,newProperties:J,bodyParametersSchema:Se});Be&&C(Be),We&&F(We),_e&&O(_e),De&&E(De),Oe&&D(Oe)},[a,f,Ce,l]),p?.current==="Manual"?A.jsx(nv,{theme:e,cluster:t,prefillValuesSchema:f.prefillValuesSchema,isCreate:d,type:f.type,isNameSpaced:ce?u?.items.map(pe=>pe.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,typeName:f.typeName,backlink:g,designNewLayoutHeight:_}):!S&&!ge?null:ge?A.jsx(q.Alert,{message:ge,type:"error"}):A.jsx(_p,{cluster:t,theme:e,urlParams:n,urlParamsForPermissions:i,formsPrefillsData:o,staticProperties:S,required:b,hiddenPaths:j,expandedPaths:T,persistedPaths:P,prefillValuesSchema:f.prefillValuesSchema,prefillValueNamespaceOnly:f.prefillValueNamespaceOnly,isCreate:d,type:f.type,isNameSpaced:ce?u?.items.map(pe=>pe.metadata.name):!1,apiGroupApiVersion:f.type==="builtin"?"api/v1":`${f.apiGroup}/${f.apiVersion}`,kindName:W,typeName:f.typeName,backlink:g,designNewLayout:v,designNewLayoutHeight:_},JSON.stringify(S)+JSON.stringify(b)+JSON.stringify(j)+JSON.stringify(f))},Iv={CustomCard:et(q.Card)`
457
449
  display: flex;
458
450
  justify-content: center;
459
451
  align-items: center;
@@ -472,7 +464,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
472
464
  overflow-x: auto;
473
465
  padding: 8px;
474
466
  }
475
- `},EA=({onAddClick:e})=>I.jsx(SA.CustomCard,{onClick:e,children:I.jsx(qt.PlusOutlined,{})}),un=[];for(let e=0;e<256;++e)un.push((e+256).toString(16).slice(1));function xA(e,t=0){return(un[e[t+0]]+un[e[t+1]]+un[e[t+2]]+un[e[t+3]]+"-"+un[e[t+4]]+un[e[t+5]]+"-"+un[e[t+6]]+un[e[t+7]]+"-"+un[e[t+8]]+un[e[t+9]]+"-"+un[e[t+10]]+un[e[t+11]]+un[e[t+12]]+un[e[t+13]]+un[e[t+14]]+un[e[t+15]]).toLowerCase()}let Uc;const CA=new Uint8Array(16);function _A(){if(!Uc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Uc=crypto.getRandomValues.bind(crypto)}return Uc(CA)}const Ep={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kA(e,t,n){if(Ep.randomUUID&&!e)return Ep.randomUUID();e=e||{};const i=e.random||(e.rng||_A)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,xA(i)}const TA=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:d})=>{const[g]=z.Form.useForm(),p=z.Form.useWatch("type",g),w=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,_=S=>{if(typeof a=="boolean"){Jo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:kA()},spec:{...S}}}).then(()=>{u(!1),f()}).catch(v=>{(Go(v)||v instanceof Error)&&l(v)}).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:{...S}}}).then(()=>{u(!1),d()}).catch(v=>{(Go(v)||v instanceof Error)&&l(v)}).finally(()=>u(!1))},A=()=>{g.validateFields().then(()=>{_(g.getFieldsValue())}).catch(()=>console.log("Validating error"))};return I.jsx(z.Modal,{title:typeof a=="boolean"?"Add card":"Edit плитку",open:a!==!1,onCancel:()=>u(!1),onOk:()=>A,children:I.jsxs(z.Form,{form:g,name:"control-hooks",initialValues:{...w},children:[I.jsx(z.Form.Item,{label:"Name",name:"name",children:I.jsx(z.Input,{required:!0})}),I.jsx(z.Form.Item,{label:"Description",name:"description",children:I.jsx(z.Input,{required:!0})}),I.jsx(z.Form.Item,{label:"Icon",name:"icon",children:I.jsx(z.Input.TextArea,{placeholder:"SVG-иконка, <svg /> -> base64",maxLength:void 0,required:!0})}),I.jsx(z.Form.Item,{label:"Resources type",name:"type",children:I.jsx(z.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"}]})}),I.jsx(z.Form.Item,{label:"Enter API group",name:"apiGroup",children:I.jsx(z.Input,{disabled:p==="direct"||p==="built-in"})}),I.jsx(z.Form.Item,{label:"Enter API version",name:"apiVersion",children:I.jsx(z.Input,{disabled:p==="direct"})}),I.jsx(z.Form.Item,{label:"Enter resource type",name:"typeName",children:I.jsx(z.Input,{disabled:p==="direct"})}),I.jsx(z.Form.Item,{label:"Enter path",name:"pathToNav",children:I.jsx(z.Input,{disabled:p!=="direct"})}),I.jsx(z.Form.Item,{label:"Tags",name:"tags",children:I.jsx(z.Select,{mode:"tags",placeholder:"Enter tags. Separators: comma and space",tokenSeparators:[","," "],dropdownStyle:{display:"none"}})}),I.jsx(z.Form.Item,{label:"Disabled",name:"disabled",children:I.jsx(z.Switch,{})}),I.jsx(z.Form.Item,{label:"Hidden",name:"hidden",children:I.jsx(z.Switch,{})})]})})},OA=({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}`},IA=({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}`,FA=({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}`,BA=Xe(z.Card)`
467
+ `},Fv=({onAddClick:e})=>A.jsx(Iv.CustomCard,{onClick:e,children:A.jsx(Mt.PlusOutlined,{})}),an=[];for(let e=0;e<256;++e)an.push((e+256).toString(16).slice(1));function Bv(e,t=0){return(an[e[t+0]]+an[e[t+1]]+an[e[t+2]]+an[e[t+3]]+"-"+an[e[t+4]]+an[e[t+5]]+"-"+an[e[t+6]]+an[e[t+7]]+"-"+an[e[t+8]]+an[e[t+9]]+"-"+an[e[t+10]]+an[e[t+11]]+an[e[t+12]]+an[e[t+13]]+an[e[t+14]]+an[e[t+15]]).toLowerCase()}let Kc;const Dv=new Uint8Array(16);function Pv(){if(!Kc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Kc=crypto.getRandomValues.bind(crypto)}return Kc(Dv)}const Rp={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Rv(e,t,n){if(Rp.randomUUID&&!e)return Rp.randomUUID();e=e||{};const i=e.random||(e.rng||Pv)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Bv(i)}const Lv=({clusterName:e,baseApiGroup:t,baseApiVersion:n,mpResourceName:i,mpResourceKind:o,isOpen:a,setIsOpen:u,setError:l,onCreateSuccess:f,onUpdateSuccess:d})=>{const[g]=q.Form.useForm(),p=q.Form.useWatch("type",g),v=typeof a=="boolean"?{name:"",description:"",icon:"",type:"direct",apiGroup:"",apiVersion:"",typeName:"",pathToNav:"",tags:[],disabled:!1,hidden:!1}:a.spec,_=E=>{if(typeof a=="boolean"){Xo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:Rv()},spec:{...E}}}).then(()=>{u(!1),f()}).catch(b=>{(Qo(b)||b instanceof Error)&&l(b)}).finally(()=>u(!1));return}Zo({endpoint:`/api/clusters/${e}/k8s/apis/${t}/${n}/${i}/${a.metadata.name}`,body:{apiVersion:`${t}/${n}`,kind:o,metadata:{name:a.metadata.name,resourceVersion:a.metadata.resourceVersion},spec:{...E}}}).then(()=>{u(!1),d()}).catch(b=>{(Qo(b)||b instanceof Error)&&l(b)}).finally(()=>u(!1))},S=()=>{g.validateFields().then(()=>{_(g.getFieldsValue())}).catch(()=>console.log("Validating error"))};return A.jsx(q.Modal,{title:typeof a=="boolean"?"Add card":"Edit плитку",open:a!==!1,onCancel:()=>u(!1),onOk:()=>S,children:A.jsxs(q.Form,{form:g,name:"control-hooks",initialValues:{...v},children:[A.jsx(q.Form.Item,{label:"Name",name:"name",children:A.jsx(q.Input,{required:!0})}),A.jsx(q.Form.Item,{label:"Description",name:"description",children:A.jsx(q.Input,{required:!0})}),A.jsx(q.Form.Item,{label:"Icon",name:"icon",children:A.jsx(q.Input.TextArea,{placeholder:"SVG-иконка, <svg /> -> base64",maxLength:void 0,required:!0})}),A.jsx(q.Form.Item,{label:"Resources type",name:"type",children:A.jsx(q.Select,{placeholder:"Choose resource type",options:[{value:"direct",label:"Direct link"},{value:"crd",label:"CRD"},{value:"nonCrd",label:"API"},{value:"built-in",label:"Built-in"}]})}),A.jsx(q.Form.Item,{label:"Enter API group",name:"apiGroup",children:A.jsx(q.Input,{disabled:p==="direct"||p==="built-in"})}),A.jsx(q.Form.Item,{label:"Enter API version",name:"apiVersion",children:A.jsx(q.Input,{disabled:p==="direct"})}),A.jsx(q.Form.Item,{label:"Enter resource type",name:"typeName",children:A.jsx(q.Input,{disabled:p==="direct"})}),A.jsx(q.Form.Item,{label:"Enter path",name:"pathToNav",children:A.jsx(q.Input,{disabled:p!=="direct"})}),A.jsx(q.Form.Item,{label:"Tags",name:"tags",children:A.jsx(q.Select,{mode:"tags",placeholder:"Enter tags. Separators: comma and space",tokenSeparators:[","," "],dropdownStyle:{display:"none"}})}),A.jsx(q.Form.Item,{label:"Disabled",name:"disabled",children:A.jsx(q.Switch,{})}),A.jsx(q.Form.Item,{label:"Hidden",name:"hidden",children:A.jsx(q.Switch,{})})]})})},jv=({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}`,$v=({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}`,Mv=et(q.Card)`
476
468
  position: relative;
477
469
  width: 238px;
478
470
  overflow-x: auto;
@@ -491,7 +483,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
491
483
  overflow-x: auto;
492
484
  padding: 8px;
493
485
  }
494
- `,DA=Xe.div`
486
+ `,Uv=et.div`
495
487
  min-width: 45px;
496
488
  min-height: 45px;
497
489
  padding: 6px;
@@ -500,11 +492,11 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
500
492
  width: 45px;
501
493
  height: 45px;
502
494
  }
503
- `,PA=Xe.div`
495
+ `,Vv=et.div`
504
496
  overflow-x: auto;
505
497
  scrollbar-width: thin;
506
498
  margin-bottom: 20px;
507
- `,RA=Xe.div`
499
+ `,qv=et.div`
508
500
  padding-left: 6px;
509
501
  padding-right: 6px;
510
502
  font-size: 16px;
@@ -513,7 +505,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
513
505
  span {
514
506
  font-weight: 700;
515
507
  }
516
- `,LA=Xe.div`
508
+ `,Wv=et.div`
517
509
  margin-top: 6px;
518
510
  margin-bottom: 6px;
519
511
  padding-left: 6px;
@@ -521,21 +513,21 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
521
513
  display: flex;
522
514
  flex-flow: row wrap;
523
515
  align-items: flex-start;
524
- `,NA=Xe(z.Tag)`
516
+ `,Kv=et(q.Tag)`
525
517
  margin-right: 4px;
526
518
  margin-bottom: 4px;
527
519
 
528
520
  &:last-child {
529
521
  margin-right: 0;
530
522
  }
531
- `,$A=Xe.div`
523
+ `,Hv=et.div`
532
524
  padding-left: 6px;
533
525
  padding-right: 6px;
534
- `,jA=Xe.div`
526
+ `,zv=et.div`
535
527
  position: absolute;
536
528
  bottom: 6px;
537
529
  right: 6px;
538
- `,Wr={CustomCard:BA,ImageContainer:DA,OverflowContainer:PA,TitleContainer:RA,TagsContainer:LA,CustomTag:NA,DescriptionContainer:$A,EditButtonContainer:jA},Vc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,tags:p,disabled:w,isEditMode:_,onDeleteClick:A,onEditClick:S,addedMode:v})=>{const{useToken:R}=z.theme,{token:N}=R(),x=Xn.useNavigate();let O="";try{O=window.atob(i)}catch{O="Can't decode"}const F=v?OA({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,baseprefix:e}):IA({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,baseprefix:e}),k=v&&u!=="direct"?FA({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:d,apiVersion:g}):void 0,{data:D,error:V}=sn({uri:k||"",queryKey:[k||""],refetchInterval:!1,isEnabled:v&&k!==void 0});return v&&(V||u==="direct")?null:I.jsx(Wr.CustomCard,{$isDisabled:w,$hoverColor:N.colorPrimary,onClick:()=>w?null:x(F),children:I.jsxs(z.Flex,{vertical:!0,style:{width:"100%",height:"100%"},justify:"spaceBetween",children:[I.jsxs(z.Flex,{justify:"space-between",children:[I.jsx(Wr.ImageContainer,{dangerouslySetInnerHTML:{__html:O}}),_&&I.jsx("div",{onClick:Q=>{Q.preventDefault(),Q.stopPropagation(),A&&A()},children:I.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.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"})})})]}),I.jsxs(Wr.OverflowContainer,{children:[I.jsxs(Wr.TitleContainer,{children:[n," ",v&&I.jsxs("span",{children:["x",D?.items?.length]})]}),I.jsx(Wr.TagsContainer,{children:p.map(Q=>I.jsx(Wr.CustomTag,{children:Q},Q))}),I.jsx(Wr.DescriptionContainer,{children:I.jsx(z.Typography.Text,{type:"secondary",children:t})})]}),I.jsx(Wr.EditButtonContainer,{children:_&&I.jsx("div",{onClick:Q=>{Q.preventDefault(),Q.stopPropagation(),S&&S()},children:I.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.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"})})})})]})})},MA=({uniqueTags:e,selectedTags:t,onSelectedTags:n})=>{const i=e.map(o=>({key:o,value:o}));return I.jsx(z.Select,{mode:"tags",placeholder:"Search",tokenSeparators:[","," "," "],allowClear:!0,options:i,onClear:()=>{n([])},value:t,onChange:o=>n(o),style:{width:"240px"}})},UA={BigValue:Xe.div`
530
+ `,zr={CustomCard:Mv,ImageContainer:Uv,OverflowContainer:Vv,TitleContainer:qv,TagsContainer:Wv,CustomTag:Kv,DescriptionContainer:Hv,EditButtonContainer:zv},Hc=({baseprefix:e,description:t,name:n,icon:i,clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,tags:p,disabled:v,isEditMode:_,onDeleteClick:S,onEditClick:E,addedMode:b})=>{const{useToken:D}=q.theme,{token:j}=D(),C=Qn.useNavigate();let T="";try{T=window.atob(i)}catch{T="Can't decode"}const F=b?jv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,baseprefix:e}):Nv({clusterName:o,namespace:a,type:u,pathToNav:l,typeName:f,apiGroup:d,apiVersion:g,baseprefix:e}),P=b&&u!=="direct"?$v({clusterName:o,namespace:a,type:u,typeName:f,apiGroup:d,apiVersion:g}):void 0,{data:O,error:W}=nn({uri:P||"",queryKey:[P||""],refetchInterval:!1,isEnabled:b&&P!==void 0});return b&&(W||u==="direct")?null:A.jsx(zr.CustomCard,{$isDisabled:v,$hoverColor:j.colorPrimary,onClick:()=>v?null:C(F),children:A.jsxs(q.Flex,{vertical:!0,style:{width:"100%",height:"100%"},justify:"spaceBetween",children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx(zr.ImageContainer,{dangerouslySetInnerHTML:{__html:T}}),_&&A.jsx("div",{onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),S&&S()},children:A.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M10.5 0C4.70156 0 0 4.70156 0 10.5C0 16.2984 4.70156 21 10.5 21C16.2984 21 21 16.2984 21 10.5C21 4.70156 16.2984 0 10.5 0ZM15 11.0625C15 11.1656 14.9156 11.25 14.8125 11.25H6.1875C6.08437 11.25 6 11.1656 6 11.0625V9.9375C6 9.83438 6.08437 9.75 6.1875 9.75H14.8125C14.9156 9.75 15 9.83438 15 9.9375V11.0625Z",fill:"currentColor"})})})]}),A.jsxs(zr.OverflowContainer,{children:[A.jsxs(zr.TitleContainer,{children:[n," ",b&&A.jsxs("span",{children:["x",O?.items?.length]})]}),A.jsx(zr.TagsContainer,{children:p.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:_&&A.jsx("div",{onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),E&&E()},children:A.jsx("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M17.28 16.79H0.72C0.32175 16.79 0 17.1117 0 17.51V18.32C0 18.419 0.081 18.5 0.18 18.5H17.82C17.919 18.5 18 18.419 18 18.32V17.51C18 17.1117 17.6783 16.79 17.28 16.79ZM3.27825 14.9C3.32325 14.9 3.36825 14.8955 3.41325 14.8888L7.19775 14.225C7.24275 14.216 7.2855 14.1958 7.317 14.162L16.8547 4.62425C16.8756 4.60343 16.8922 4.57871 16.9034 4.55149C16.9147 4.52427 16.9205 4.49509 16.9205 4.46562C16.9205 4.43616 16.9147 4.40698 16.9034 4.37976C16.8922 4.35254 16.8756 4.32782 16.8547 4.307L13.1153 0.56525C13.0725 0.5225 13.0163 0.5 12.9555 0.5C12.8948 0.5 12.8385 0.5225 12.7958 0.56525L3.258 10.103C3.22425 10.1367 3.204 10.1772 3.195 10.2222L2.53125 14.0067C2.50936 14.1273 2.51718 14.2513 2.55404 14.3682C2.59089 14.485 2.65566 14.5911 2.74275 14.6772C2.89125 14.8212 3.078 14.9 3.27825 14.9Z",fill:"currentColor"})})})})]})})},Gv=({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"}})},Jv={BigValue:et.div`
539
531
  font-size: 36px;
540
532
  line-height: 36px;
541
533
  font-weight: 700;
@@ -548,10 +540,10 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
548
540
  -webkit-box-orient: vertical;
549
541
  line-clamp: 1;
550
542
  word-break: break-all;
551
- `},xp=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=z.notification.useNotification(),[d,g]=Z.useState(!1),[p,w]=Z.useState(!1),[_,A]=Z.useState(!1),[S,v]=Z.useState(),[R,N]=Z.useState(),[x,O]=Z.useState([]),[F,k]=Z.useState([]),[D,V]=Z.useState([]),[Q,fe]=Z.useState([]),{data:le,isLoading:ge,error:me}=sn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),he=jr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),de=jr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),Ie=jr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),Re=()=>l.success({message:"Card created",key:"create-marketplace-success"}),Ce=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Z.useEffect(()=>{le&&(d?(O(le.items.map(({spec:Se})=>Se).sort()),V(le.items.flatMap(({spec:Se})=>Se.tags).filter((Se,ye,et)=>et.indexOf(Se)===ye))):(O(le.items.map(({spec:Se})=>Se).filter(({hidden:Se})=>Se!==!0).sort()),V(le.items.filter(({spec:Se})=>Se.hidden!==!0).flatMap(({spec:Se})=>Se.tags).filter((Se,ye,et)=>et.indexOf(Se)===ye))))},[le,d]),Z.useEffect(()=>{let Se=[];Q&&Q.length>0?Se=x.filter(({name:ye,description:et,tags:J})=>Q.some(X=>ye.toLowerCase().includes(X.toLowerCase()))||Q.some(X=>et.toLowerCase().includes(X.toLowerCase()))||Q.some(X=>J.some(oe=>oe.toLowerCase().includes(X.toLowerCase())))).sort():Se=x.sort(),k(Se)},[Q,x]),me)return I.jsx("div",{children:JSON.stringify(me)});if(ge)return I.jsx(z.Spin,{});if(!le)return I.jsx("div",{children:"No panels"});const ze=()=>{g(!d)};return I.jsxs(I.Fragment,{children:[f,I.jsxs(z.Flex,{justify:"space-between",children:[I.jsx("div",{children:I.jsxs(z.Flex,{gap:12,vertical:!0,children:[I.jsx("div",{children:I.jsx(z.Typography.Text,{type:"secondary",children:"Available Products"})}),I.jsx("div",{children:I.jsx(UA.BigValue,{children:"Marketplace"})})]})}),I.jsx("div",{children:I.jsxs(z.Flex,{gap:12,vertical:!0,children:[I.jsx(MA,{uniqueTags:D,selectedTags:Q,onSelectedTags:fe}),(he.data?.status.allowed||de.data?.status.allowed||Ie.data?.status.allowed)&&I.jsxs(z.Flex,{align:"center",gap:8,children:[I.jsx(z.Switch,{defaultChecked:!0,checked:d,onClick:ze})," Edit Mode"]})]})})]}),I.jsx(fr,{$space:20,$samespace:!0}),S&&I.jsx(z.Alert,{description:JSON.stringify(S),message:"Card was not created",onClose:()=>v(void 0),type:"error"}),R&&I.jsx(z.Alert,{description:JSON.stringify(R),message:"Card was not deleted",onClose:()=>N(void 0),type:"error"}),I.jsxs(z.Flex,{gap:22,wrap:!0,children:[e&&t&&F.map(({name:Se,description:ye,icon:et,type:J,pathToNav:X,typeName:oe,apiGroup:Be,apiVersion:Ke,tags:we,disabled:Oe})=>I.jsx(Vc,{baseprefix:u,description:ye,disabled:Oe,icon:et,isEditMode:d,name:Se,clusterName:e,namespace:t,type:J,pathToNav:X,typeName:oe,apiGroup:Be,apiVersion:Ke,tags:we,onDeleteClick:()=>{const De=le.items.find(({spec:Le})=>Le.name===Se);A(De?{name:De.metadata.name}:!1)},onEditClick:()=>{w(le.items.find(({spec:De})=>De.name===Se)||!1)}},Se)),d&&I.jsx(EA,{onAddClick:()=>{w(!0)}})]}),p&&I.jsx(TA,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:p,setError:v,setIsOpen:w,onCreateSuccess:Re,onUpdateSuccess:Ce}),typeof _!="boolean"&&I.jsx(Qu,{name:_.name,onClose:()=>A(!1),endpoint:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/${_.name}`})]})},VA=({onDelete:e,onUpdate:t})=>{const n=()=>{const i=[];return t&&i.push({key:"update",label:I.jsx("div",{onClick:o=>{o.stopPropagation(),t()},children:I.jsxs(z.Flex,{align:"center",gap:8,children:[I.jsx(xh,{}),"Edit"]})})}),e&&i.push({key:"delete",label:I.jsx("div",{onClick:o=>{o.stopPropagation(),e()},children:I.jsxs(z.Flex,{align:"center",gap:8,children:[I.jsx(Eh,{}),"Delete"]})})}),i};return I.jsx(z.Dropdown,{placement:"bottomRight",menu:{items:n()},trigger:["click"],children:I.jsx(z.Button,{type:"text",onClick:i=>{i.preventDefault(),i.stopPropagation()},children:I.jsx(qt.EllipsisOutlined,{})})})},qA=({accessGroups:e})=>{const t=()=>e.map((n,i)=>({key:`${n}-${i}`,label:I.jsx("div",{onClick:o=>{o.stopPropagation()},children:n})}));return I.jsx(z.Dropdown,{placement:"bottomRight",menu:{items:t()},trigger:["click"],children:I.jsxs(z.Button,{type:"link",onClick:n=>{n.preventDefault(),n.stopPropagation()},children:["Access Groups",I.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I.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"})})]})})},WA=Xe.div`
543
+ `},Lp=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,baseprefix:u})=>{const[l,f]=q.notification.useNotification(),[d,g]=Z.useState(!1),[p,v]=Z.useState(!1),[_,S]=Z.useState(!1),[E,b]=Z.useState(),[D,j]=Z.useState(),[C,T]=Z.useState([]),[F,P]=Z.useState([]),[O,W]=Z.useState([]),[Y,ce]=Z.useState([]),{data:le,isLoading:ge,error:ye}=nn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),Ce=qr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"create",refetchInterval:!1}),pe=qr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),Re=qr({apiGroup:n,typeName:o,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),Se=()=>l.success({message:"Card created",key:"create-marketplace-success"}),Ee=()=>l.success({message:"Card modified",key:"update-marketplace-success"});if(Z.useEffect(()=>{le&&(d?(T(le.items.map(({spec:Ae})=>Ae).sort()),W(le.items.flatMap(({spec:Ae})=>Ae.tags).filter((Ae,me,Me)=>Me.indexOf(Ae)===me))):(T(le.items.map(({spec:Ae})=>Ae).filter(({hidden:Ae})=>Ae!==!0).sort()),W(le.items.filter(({spec:Ae})=>Ae.hidden!==!0).flatMap(({spec:Ae})=>Ae.tags).filter((Ae,me,Me)=>Me.indexOf(Ae)===me))))},[le,d]),Z.useEffect(()=>{let Ae=[];Y&&Y.length>0?Ae=C.filter(({name:me,description:Me,tags:J})=>Y.some(X=>me.toLowerCase().includes(X.toLowerCase()))||Y.some(X=>Me.toLowerCase().includes(X.toLowerCase()))||Y.some(X=>J.some(ae=>ae.toLowerCase().includes(X.toLowerCase())))).sort():Ae=C.sort(),P(Ae)},[Y,C]),ye)return A.jsx("div",{children:JSON.stringify(ye)});if(ge)return A.jsx(q.Spin,{});if(!le)return A.jsx("div",{children:"No panels"});const He=()=>{g(!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(Jv.BigValue,{children:"Marketplace"})})]})}),A.jsx("div",{children:A.jsxs(q.Flex,{gap:12,vertical:!0,children:[A.jsx(Gv,{uniqueTags:O,selectedTags:Y,onSelectedTags:ce}),(Ce.data?.status.allowed||pe.data?.status.allowed||Re.data?.status.allowed)&&A.jsxs(q.Flex,{align:"center",gap:8,children:[A.jsx(q.Switch,{defaultChecked:!0,checked:d,onClick:He})," Edit Mode"]})]})})]}),A.jsx(hr,{$space:20,$samespace:!0}),E&&A.jsx(q.Alert,{description:JSON.stringify(E),message:"Card was not created",onClose:()=>b(void 0),type:"error"}),D&&A.jsx(q.Alert,{description:JSON.stringify(D),message:"Card was not deleted",onClose:()=>j(void 0),type:"error"}),A.jsxs(q.Flex,{gap:22,wrap:!0,children:[e&&t&&F.map(({name:Ae,description:me,icon:Me,type:J,pathToNav:X,typeName:ae,apiGroup:Be,apiVersion:We,tags:_e,disabled:De})=>A.jsx(Hc,{baseprefix:u,description:me,disabled:De,icon:Me,isEditMode:d,name:Ae,clusterName:e,namespace:t,type:J,pathToNav:X,typeName:ae,apiGroup:Be,apiVersion:We,tags:_e,onDeleteClick:()=>{const Oe=le.items.find(({spec:Le})=>Le.name===Ae);S(Oe?{name:Oe.metadata.name}:!1)},onEditClick:()=>{v(le.items.find(({spec:Oe})=>Oe.name===Ae)||!1)}},Ae)),d&&A.jsx(Fv,{onAddClick:()=>{v(!0)}})]}),p&&A.jsx(Lv,{clusterName:e,baseApiGroup:n,baseApiVersion:i,mpResourceName:o,mpResourceKind:a,isOpen:p,setError:b,setIsOpen:v,onCreateSuccess:Se,onUpdateSuccess:Ee}),typeof _!="boolean"&&A.jsx(tc,{name:_.name,onClose:()=>S(!1),endpoint:`/api/clusters/${e}/k8s/apis/${n}/${i}/${o}/${_.name}`})]})},Yv=({onDelete:e,onUpdate:t})=>{const n=()=>{const i=[];return t&&i.push({key:"update",label:A.jsx("div",{onClick:o=>{o.stopPropagation(),t()},children:A.jsxs(q.Flex,{align:"center",gap:8,children:[A.jsx(Oh,{}),"Edit"]})})}),e&&i.push({key:"delete",label:A.jsx("div",{onClick:o=>{o.stopPropagation(),e()},children:A.jsxs(q.Flex,{align:"center",gap:8,children:[A.jsx(Th,{}),"Delete"]})})}),i};return A.jsx(q.Dropdown,{placement:"bottomRight",menu:{items:n()},trigger:["click"],children:A.jsx(q.Button,{type:"text",onClick:i=>{i.preventDefault(),i.stopPropagation()},children:A.jsx(Mt.EllipsisOutlined,{})})})},Qv=({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=et.div`
552
544
  width: 45.33px;
553
545
  height: 1px;
554
- `,KA=Xe.div`
546
+ `;et.div`
555
547
  font-size: 36px;
556
548
  line-height: 36px;
557
549
  font-weight: 700;
@@ -564,5 +556,5 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
564
556
  -webkit-box-orient: vertical;
565
557
  line-clamp: 1;
566
558
  word-break: break-all;
567
- `,Cp={ActionMenuPlaceholder:WA,BigValue:KA},_p=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectApiGroup:o,baseProjectVersion:a,mpResourceName:u,projectResourceName:l,baseprefix:f,accessGroups:d,children:g})=>{const p=Xn.useNavigate(),{data:w,isLoading:_}=sn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${u}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),{data:A,isLoading:S,error:v}=sn({uri:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[R,N]=Z.useState(!1),x=jr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),O=jr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),F=Z.useCallback(()=>{p(`/${f}/${e}/forms/apis/${o}/${a}/${l}/${t}?backlink=${f}/clusters/${e}`)},[f,e,t,o,a,l,p]);if(S)return I.jsx(z.Spin,{});if(!A||v)return null;const k=A.status.conditions.find(({type:D})=>D==="Ready");return I.jsxs(I.Fragment,{children:[I.jsxs(z.Flex,{justify:"space-between",children:[I.jsxs("div",{children:[I.jsxs(z.Flex,{gap:20,vertical:!0,children:[I.jsx("div",{children:I.jsx(z.Typography.Text,{type:"secondary",children:"Project Business Name"})}),I.jsx("div",{children:I.jsxs(z.Flex,{gap:"small",children:[I.jsx(Cp.BigValue,{children:A.spec.businessName||"-"}),k&&I.jsx(z.Flex,{align:"center",gap:"small",children:I.jsx(z.Typography.Text,{type:k.status==="True"?"success":"warning",children:k.reason})})]})})]}),g]}),I.jsx("div",{children:I.jsxs(z.Flex,{gap:24,vertical:!0,children:[I.jsx(z.Flex,{justify:"flex-end",children:k?.status==="True"&&(x.data?.status.allowed||O.data?.status.allowed)?I.jsx(VA,{onDelete:O.data?.status.allowed?()=>{N(!0)}:void 0,onUpdate:x.data?.status.allowed?F:void 0}):I.jsx(Cp.ActionMenuPlaceholder,{})}),I.jsx(qA,{accessGroups:d})]})})]}),I.jsx(fr,{$space:24,$samespace:!0}),I.jsx(z.Typography.Text,{type:"secondary",children:"Added Products"}),I.jsx(fr,{$space:12,$samespace:!0}),I.jsxs(z.Flex,{gap:22,wrap:!0,children:[_&&I.jsx(z.Spin,{}),e&&t&&w?.items.map(({spec:D})=>D).sort().map(({name:D,description:V,icon:Q,type:fe,pathToNav:le,typeName:ge,apiGroup:me,apiVersion:he,tags:de,disabled:Ie})=>I.jsx(Vc,{baseprefix:f,description:V,disabled:Ie,icon:Q,isEditMode:!1,name:D,clusterName:e,namespace:t,type:fe,pathToNav:le,typeName:ge,apiGroup:me,apiVersion:he,tags:de,addedMode:!0},D))]}),R&&I.jsx(Qu,{name:A.metadata.name,onClose:()=>{N(!1),p(`${f}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${A.metadata.name}`})]})},qc=({items:e,components:t})=>I.jsx(I.Fragment,{children:e.map((n,i)=>{const o=t[n.type];if(!o)return I.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)?I.jsx(qc,{items:d.children,components:t}):d.children}))}}const u=n.children?I.jsx(qc,{items:n.children,components:t}):null;return I.jsx(Z.Fragment,{children:I.jsx(o,{data:a,children:u})},i)})}),kp=e=>I.jsx(qc,{...e}),HA=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return I.jsxs(z.Typography.Text,{...o,children:[i,t]})},zA=({data:e,children:t})=>{const{id:n,...i}=e;return I.jsx(z.Card,{...i,children:t})},GA=({data:e,children:t})=>{const{id:n,...i}=e;return I.jsx(z.Flex,{...i,children:t})},JA=({data:e,children:t})=>{const{id:n,...i}=e;return I.jsx(z.Row,{...i,children:t})},YA=({data:e,children:t})=>{const{id:n,...i}=e;return I.jsx(z.Col,{...i,children:t})},XA=({data:e,children:t})=>{const{id:n,...i}=e;return I.jsx(z.Tabs,{...i,children:t})},QA=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return I.jsxs(z.Button,{...o,children:[e.text,t]})},Tp=()=>{const e=Z.createContext(null);return{Provider:({children:i,value:o})=>{const a=Z.useMemo(()=>o,Object.values(o));return I.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=Tp(),ZA=Op.Provider,xa=Op.useTypedContext,eS=({data:e})=>{const n=xa().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=Ct({template:e.text,replaceValues:n});return I.jsx("span",{children:i})},Ip=Z.createContext(void 0),tS=({urls:e,children:t})=>{const n=wn.useQueries({queries:e.map((f,d)=>({queryKey:["multi",d,f],queryFn:async()=>(await it.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 I.jsx(Ip.Provider,{value:l,children:t})},Fp=()=>{const e=Z.useContext(Ip);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},nS={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return I.jsx("div",{...i,children:t})},antdText:HA,antdCard:zA,antdFlex:GA,antdRow:JA,antdCol:YA,antdTabs:XA,antdButton:QA,partsOfUrl:eS,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Fp(),a=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const d=parseInt(l,10),g=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(w=>w[1]),p=fi.get(t[`req${d}`],g);return p!=null?String(p):""}catch{return u}}):"",[e?.text,t]);return n?I.jsx("div",{children:"Loading..."}):i?I.jsxs("div",{children:[I.jsx("h4",{children:"Errors:"}),I.jsx("ul",{children:o.map((u,l)=>u&&I.jsx("li",{children:u.message},l))})]}):I.jsx("span",{children:a})},parsedText:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Fp(),a=xa(),u=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(d,g,p)=>{try{const w=parseInt(g,10),_=Array.from(p.matchAll(/['"]([^'"]+)['"]/g)).map(S=>S[1]),A=fi.get(t[`req${w}`],_);return A!=null?String(A):""}catch{return d}}):"",[e?.text,t]);if(n)return I.jsx("div",{children:"Loading..."});if(i)return I.jsxs("div",{children:[I.jsx("h4",{children:"Errors:"}),I.jsx("ul",{children:o.map((d,g)=>d&&I.jsx("li",{children:d.message},g))})]});const l=a.partsOfUrl.reduce((d,g,p)=>(d[p.toString()]=g,d),{}),f=Ct({template:u,replaceValues:l});return I.jsx("span",{children:f})},ProjectInfoCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=xa().partsOfUrl.reduce((g,p,w)=>(g[w.toString()]=p,g),{}),f=Ct({template:i,replaceValues:l}),d=Ct({template:o,replaceValues:l});return I.jsx(_p,{clusterName:f,namespace:d,...a,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=xa().partsOfUrl.reduce((g,p,w)=>(g[w.toString()]=p,g),{}),f=Ct({template:i,replaceValues:l}),d=Ct({template:o,replaceValues:l});return I.jsx(xp,{clusterName:f,namespace:d,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return I.jsx(Ch,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return I.jsx(fr,{...i})}},Bp=({urls:e,locationPathname:t})=>{const n=t.split("/").reduce((i,o,a)=>(i[a.toString()]=o,i),{});return e.map(i=>Ct({template:i,replaceValues:n}))},rS=e=>{const t=Xn.useLocation(),{urlsToFetch:n}=e,i=Bp({urls:n,locationPathname:t.pathname});return I.jsx(ZA,{value:{partsOfUrl:t.pathname.split("/")},children:I.jsx(tS,{urls:i,children:I.jsx(kp,{...e})})})},iS=e=>typeof e=="object"&&"value"in e&&"highlight"in e,sS=e=>{const t={};e.forEach(({apis:i,highlightString:o})=>{i.forEach(a=>{const[u,l]=a.split("/"),f=u.split(".");if(f.length<2)return;const d=f.slice(-2).join("."),g=f.slice(0,-2).reverse();let p=t[d]=t[d]||{};for(const w of g)p[w]=p[w]||{},p=p[w];p[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(iS(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}))},oS=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),aS=({swagger:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:d})=>d==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:d})=>!o.includes(d)&&!d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),l=t?.groups.filter(({name:d})=>o.includes(d)||d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),f=i&&e?n?.resources?.filter(({name:d})=>Mc({typeName:d,swagger:e}).isNamespaceScoped):n?.resources;return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},uS=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:w,pathname:_})=>e.map(({pathToMatch:S,pathToNavigate:v,keysToParse:R})=>({pathToMatch:S?Ct({template:S,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:w}}):void 0,pathToNavigate:v?Ct({template:v,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:w}}):void 0,keysToParse:R})).find(({pathToMatch:S})=>S?Xn.matchPath(S,_):!1),Dp=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"))),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.additionalPrinterColumnsUndefinedValues)&&e.spec.additionalPrinterColumnsUndefinedValues.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),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.additionalPrinterColumnsTrimLengths)&&e.spec.additionalPrinterColumnsTrimLengths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),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.additionalPrinterColumnsColWidths)&&e.spec.additionalPrinterColumnsColWidths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),cS=({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=Dp(n)?n.spec.additionalPrinterColumns:void 0,o=Pp(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=Rp(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Lp(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},lS=async({clusterName:e})=>it.get(`/api/clusters/${e}/k8s/openapi/v2`),Np=async()=>it.get("/clusterlist"),$p=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},jp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Mp=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return it.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Up=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>it.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),Vp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),qp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>it.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Wp=async({clusterName:e})=>it.get(`/api/clusters/${e}/k8s/apis/`),Kp=async({clusterName:e,apiGroup:t,apiVersion:n})=>it.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),Hp=async({clusterName:e})=>it.get(`/api/clusters/${e}/k8s/api/v1`),zp=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>it.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),fS=({refetchInterval:e})=>wn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await Np()).data,refetchInterval:e!==void 0?e:5e3}),hS=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a,refetchInterval:u})=>wn.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}),dS=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a,refetchInterval:u})=>wn.useQuery({queryKey:["useApiResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await jp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),pS=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>wn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await Mp({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}),gS=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>wn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Up({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),yS=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,refetchInterval:a})=>wn.useQuery({queryKey:["useCrdResources",e,t,n,i,o],queryFn:async()=>{const u=await Vp({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}),mS=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>wn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await qp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),bS=({clusterName:e})=>wn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>{const t=await Wp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),vS=({clusterName:e,apiGroup:t,apiVersion:n})=>wn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await Kp({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),wS=({clusterName:e})=>wn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await Hp({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),AS=({clusterName:e,apiExtensionVersion:t,crdName:n})=>wn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await zp({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.BlackholeForm=pp,ue.BlackholeFormDataProvider=AA,ue.ContentCard=Ch,ue.DeleteIcon=Eh,ue.DeleteModal=Qu,ue.DeleteModalMany=q1,ue.DynamicComponents=nS,ue.DynamicRenderer=kp,ue.DynamicRendererWithProviders=rS,ue.EditIcon=xh,ue.EnrichedTable=$h,ue.EnrichedTableProvider=rb,ue.ManageableBreadcrumbs=Th,ue.ManageableBreadcrumbsWithDataProvider=H1,ue.ManageableSidebar=Fh,ue.ManageableSidebarWithDataProvider=J1,ue.MarketPlace=xp,ue.MarketplaceCard=Vc,ue.ProjectInfoCard=_p,ue.Spacer=fr,ue.TreeWithSearch=Am,ue.checkIfApiInstanceNamespaceScoped=bp,ue.checkIfBuiltInInstanceNamespaceScoped=Mc,ue.checkPermission=Wh,ue.createContextFactory=Tp,ue.createNewEntry=Jo,ue.deleteEntry=Xu,ue.filterSelectOptions=nc,ue.floorToDecimal=Ls,ue.getAllPathsFromObj=oc,ue.getApiResourceSingle=jp,ue.getApiResourceTypes=Wp,ue.getApiResourceTypesByApiGroup=Kp,ue.getApiResources=$p,ue.getBodyParametersSchema=Ap,ue.getBuiltinResourceSingle=Up,ue.getBuiltinResourceTypes=Hp,ue.getBuiltinResources=Mp,ue.getBuiltinTreeData=oS,ue.getClusterList=Np,ue.getCrdData=zp,ue.getCrdResourceSingle=qp,ue.getCrdResources=Vp,ue.getDirectUnknownResource=_h,ue.getEnrichedColumns=Lh,ue.getEnrichedColumnsWithControls=Nh,ue.getGroupsByCategory=aS,ue.getObjectFormItemsDraft=Ea,ue.getPrefixSubarrays=Kh,ue.getStringByName=Ft,ue.getSwagger=lS,ue.getSwaggerPathAndIsNamespaceScoped=wp,ue.groupsToTreeData=sS,ue.isFlatObject=Rh,ue.isFormOverride=vp,ue.isWithAdditionalPrinterColumns=Dp,ue.isWithAdditionalPrinterColumnsColWidths=Lp,ue.isWithAdditionalPrinterColumnsTrimLengths=Rp,ue.isWithAdditionalPrinterColumnsUndefinedValues=Pp,ue.normalizeValuesForQuotas=ea,ue.normalizeValuesForQuotasToNumber=sc,ue.overwriteMatchingKeys=mp,ue.parseCustomOverrides=cS,ue.parseQuotaValue=xb,ue.parseQuotaValueCpu=rc,ue.parseQuotaValueMemoryAndStorage=ic,ue.prepareDataForEnrichedColumns=Mh,ue.prepareDataForManageableBreadcrumbs=kh,ue.prepareDataForManageableSidebar=Ih,ue.prepareTableMappings=uS,ue.prepareTemplate=Ct,ue.prepareUrlsToFetchForDynamicRenderer=Bp,ue.processOverride=Sp,ue.removeEmptyFormValues=Rs,ue.renameBrokenFieldBack=Ki,ue.renameBrokenFieldBackToFormAgain=Zo,ue.updateEntry=Yo,ue.useApiResourceSingle=dS,ue.useApiResourceTypesByGroup=vS,ue.useApiResources=hS,ue.useApisResourceTypes=bS,ue.useBuiltinResourceSingle=gS,ue.useBuiltinResourceTypes=wS,ue.useBuiltinResources=pS,ue.useClusterList=fS,ue.useCrdData=AS,ue.useCrdResourceSingle=mS,ue.useCrdResources=yS,ue.useDirectUnknownResource=sn,ue.usePermissions=jr,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
559
+ `;const Zv={ActionMenuPlaceholder:Xv},jp=({clusterName:e,namespace:t,baseApiGroup:n,baseApiVersion:i,baseProjectApiGroup:o,baseProjectVersion:a,mpResourceName:u,projectResourceName:l,baseprefix:f,accessGroups:d,children:g})=>{const p=Qn.useNavigate(),{data:v,isLoading:_}=nn({uri:`/api/clusters/${e}/k8s/apis/${n}/${i}/${u}/`,refetchInterval:5e3,queryKey:["marketplacePanels",e||"no-cluster"],isEnabled:e!==void 0}),{data:S,isLoading:E,error:b}=nn({uri:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${t}`,refetchInterval:5e3,queryKey:["projects",e||"no-cluster"],isEnabled:e!==void 0}),[D,j]=Z.useState(!1),C=qr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"update",refetchInterval:!1}),T=qr({apiGroup:o,typeName:l,namespace:"",clusterName:e||"",verb:"delete",refetchInterval:!1}),F=Z.useCallback(()=>{p(`/${f}/${e}/forms/apis/${o}/${a}/${l}/${t}?backlink=${f}/clusters/${e}`)},[f,e,t,o,a,l,p]);if(E)return A.jsx(q.Spin,{});if(!S||b)return null;const P=S.status.conditions.find(({type:O})=>O==="Ready");return A.jsxs(A.Fragment,{children:[A.jsxs(q.Flex,{justify:"space-between",children:[A.jsx("div",{children:g}),A.jsx("div",{children:A.jsxs(q.Flex,{gap:24,vertical:!0,children:[A.jsx(q.Flex,{justify:"flex-end",children:P?.status==="True"&&(C.data?.status.allowed||T.data?.status.allowed)?A.jsx(Yv,{onDelete:T.data?.status.allowed?()=>{j(!0)}:void 0,onUpdate:C.data?.status.allowed?F:void 0}):A.jsx(Zv.ActionMenuPlaceholder,{})}),A.jsx(Qv,{accessGroups:d})]})})]}),A.jsx(hr,{$space:24,$samespace:!0}),A.jsx(q.Typography.Text,{type:"secondary",children:"Added Products"}),A.jsx(hr,{$space:12,$samespace:!0}),A.jsxs(q.Flex,{gap:22,wrap:!0,children:[_&&A.jsx(q.Spin,{}),e&&t&&v?.items.map(({spec:O})=>O).sort().map(({name:O,description:W,icon:Y,type:ce,pathToNav:le,typeName:ge,apiGroup:ye,apiVersion:Ce,tags:pe,disabled:Re})=>A.jsx(Hc,{baseprefix:f,description:W,disabled:Re,icon:Y,isEditMode:!1,name:O,clusterName:e,namespace:t,type:ce,pathToNav:le,typeName:ge,apiGroup:ye,apiVersion:Ce,tags:pe,addedMode:!0},O))]}),D&&A.jsx(tc,{name:S.metadata.name,onClose:()=>{j(!1),p(`${f}/clusters/${e}`)},endpoint:`/api/clusters/${e}/k8s/apis/${o}/${a}/${l}/${S.metadata.name}`})]})},zc=({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(zc,{items:d.children,components:t}):d.children}))}}const u=n.children?A.jsx(zc,{items:n.children,components:t}):null;return A.jsx(Z.Fragment,{children:A.jsx(o,{data:a,children:u})},i)})}),Np=e=>A.jsx(zc,{...e}),eA=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return A.jsxs(q.Typography.Text,{...o,children:[i,t]})},tA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Card,{...i,children:t})},nA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Flex,{...i,children:t})},rA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Row,{...i,children:t})},iA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Col,{...i,children:t})},sA=({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(q.Tabs,{...i,children:t})},oA=({data:e,children:t})=>{const{id:n,text:i,...o}=e;return A.jsxs(q.Button,{...o,children:[e.text,t]})},$p=()=>{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}}},Mp=$p(),aA=Mp.Provider,ka=Mp.useTypedContext,uA=({data:e})=>{const n=ka().partsOfUrl.reduce((o,a,u)=>(o[u.toString()]=a,o),{}),i=Ct({template:e.text,replaceValues:n});return A.jsx("span",{children:i})},Up=Z.createContext(void 0),cA=({urls:e,children:t})=>{const n=bn.useQueries({queries:e.map((f,d)=>({queryKey:["multi",d,f],queryFn:async()=>(await nt.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(Up.Provider,{value:l,children:t})},Gc=()=>{const e=Z.useContext(Up);if(!e)throw new Error("useMultiQuery must be used within a MultiQueryProvider");return e},lA={DefaultDiv:({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx("div",{...i,children:t})},antdText:eA,antdCard:tA,antdFlex:nA,antdRow:rA,antdCol:iA,antdTabs:sA,antdButton:oA,partsOfUrl:uA,multiQuery:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Gc(),a=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(u,l,f)=>{try{const d=parseInt(l,10),g=Array.from(f.matchAll(/['"]([^'"]+)['"]/g)).map(v=>v[1]),p=pi.get(t[`req${d}`],g);return p!=null?String(p):""}catch{return u}}):"",[e?.text,t]);return n?A.jsx("div",{children:"Loading..."}):i?A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:o.map((u,l)=>u&&A.jsx("li",{children:u.message},l))})]}):A.jsx("span",{children:a})},parsedText:({data:e})=>{const{data:t,isLoading:n,isError:i,errors:o}=Gc(),a=ka(),u=Z.useMemo(()=>e?.text?e.text.replace(/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\]\}/g,(d,g,p)=>{try{const v=parseInt(g,10),_=Array.from(p.matchAll(/['"]([^'"]+)['"]/g)).map(E=>E[1]),S=pi.get(t[`req${v}`],_);return S!=null?String(S):""}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,g)=>d&&A.jsx("li",{children:d.message},g))})]});const l=a.partsOfUrl.reduce((d,g,p)=>(d[p.toString()]=g,d),{}),f=Ct({template:u,replaceValues:l});return A.jsx("span",{children:f})},ProjectInfoCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=ka().partsOfUrl.reduce((g,p,v)=>(g[v.toString()]=p,g),{}),f=Ct({template:i,replaceValues:l}),d=Ct({template:o,replaceValues:l});return A.jsx(jp,{clusterName:f,namespace:d,...a,children:t})},MarketplaceCard:({data:e,children:t})=>{const{id:n,clusterNamePartOfUrl:i,namespacePartOfUrl:o,...a}=e,l=ka().partsOfUrl.reduce((g,p,v)=>(g[v.toString()]=p,g),{}),f=Ct({template:i,replaceValues:l}),d=Ct({template:o,replaceValues:l});return A.jsx(Lp,{clusterName:f,namespace:d,...a})},ContentCard:({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(Lh,{...i,children:t})},Spacer:({data:e,children:t})=>{const{id:n,...i}=e;return A.jsx(hr,{...i})},StatusText:({data:e,children:t})=>{const{id:n,requestIndex:i,jsonPath:o,criteria:a,valueToCompare:u,successText:l,errorText:f,...d}=e,{data:g,isLoading:p,isError:v,errors:_}=Gc();let S;try{[S]=Qh.query(g[`req${i}`],`$${o}`)}catch(b){return A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:JSON.stringify(b)})]})}const E=a==="equals"?u===S:u!==S;return p?A.jsx("div",{children:"Loading..."}):v?A.jsxs("div",{children:[A.jsx("h4",{children:"Errors:"}),A.jsx("ul",{children:_.map((b,D)=>b&&A.jsx("li",{children:b.message},D))})]}):A.jsxs(q.Typography.Text,{type:E?"success":"danger",...d,children:[E?l:f,t]})}},Vp=({urls:e,locationPathname:t})=>{const n=t.split("/").reduce((i,o,a)=>(i[a.toString()]=o,i),{});return e.map(i=>Ct({template:i,replaceValues:n}))},fA=e=>{const t=Qn.useLocation(),{urlsToFetch:n}=e,i=Vp({urls:n,locationPathname:t.pathname});return A.jsx(aA,{value:{partsOfUrl:t.pathname.split("/")},children:A.jsx(cA,{urls:i,children:A.jsx(Np,{...e})})})},hA=e=>typeof e=="object"&&"value"in e&&"highlight"in e,dA=e=>{const t={};e.forEach(({apis:i,highlightString:o})=>{i.forEach(a=>{const[u,l]=a.split("/"),f=u.split(".");if(f.length<2)return;const d=f.slice(-2).join("."),g=f.slice(0,-2).reverse();let p=t[d]=t[d]||{};for(const v of g)p[v]=p[v]||{},p=p[v];p[l]={value:a,highlight:a===o}})});const n=(i,o="")=>Object.entries(i).map(([a,u])=>{const l=o?`${o}.${a}`:a;if(hA(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}))},pA=e=>e.map(t=>({title:`${t} (pref)`,key:t,isLeaf:!0})),gA=({swagger:e,apiGroupListData:t,builtinResourceTypesData:n,namespace:i,noncrds:o=["apps","autoscaling","batch","policy"]})=>{const a=t?.groups?.find(({name:d})=>d==="apiextensions.k8s.io")?.preferredVersion.version,u=t?.groups.filter(({name:d})=>!o.includes(d)&&!d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),l=t?.groups.filter(({name:d})=>o.includes(d)||d.includes(".k8s.io")).sort((d,g)=>d.name.localeCompare(g.name)),f=i&&e?n?.resources?.filter(({name:d})=>Wc({typeName:d,swagger:e}).isNamespaceScoped):n?.resources;return{crdGroups:u,nonCrdGroups:l,builtinGroups:f,apiExtensionVersion:a}},yA=({data:e,clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:v,pathname:_})=>e.map(({pathToMatch:E,pathToNavigate:b,keysToParse:D})=>({pathToMatch:E?Ct({template:E,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:v}}):void 0,pathToNavigate:b?Ct({template:b,replaceValues:{clusterName:t,projectName:n,instanceName:i,namespace:o,syntheticProject:a,entryType:u,apiGroup:l,apiVersion:f,typeName:d,entryName:g,apiExtensionVersion:p,crdName:v}}):void 0,keysToParse:D})).find(({pathToMatch:E})=>E?Qn.matchPath(E,_):!1),qp=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"))),Wp=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"))),Kp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsTrimLengths)&&e.spec.additionalPrinterColumnsTrimLengths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),Hp=e=>!!(typeof e=="object"&&!Array.isArray(e)&&e!==null&&e.spec&&typeof e.spec=="object"&&!Array.isArray(e.spec)&&e.spec!==null&&Array.isArray(e.spec.additionalPrinterColumnsColWidths)&&e.spec.additionalPrinterColumnsColWidths.every(t=>Object.keys(t).includes("key")&&Object.keys(t).includes("value"))),mA=({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=qp(n)?n.spec.additionalPrinterColumns:void 0,o=Wp(n)?n.spec.additionalPrinterColumnsUndefinedValues:void 0,a=Kp(n)?n.spec.additionalPrinterColumnsTrimLengths:void 0,u=Hp(n)?n.spec.additionalPrinterColumnsColWidths:void 0;return{ensuredCustomOverrides:i,ensuredCustomOverridesUndefinedValues:o,ensuredCustomOverridesTrimLengths:a,ensuredCustomOverridesColWidths:u}},wA=async({clusterName:e})=>nt.get(`/api/clusters/${e}/k8s/openapi/v2`),zp=async()=>nt.get("/clusterlist"),Gp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,limit:a})=>{const u=a!==null?`?limit=${a}`:"";return nt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}${u}`)},Jp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})=>nt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),Yp=async({clusterName:e,namespace:t,typeName:n,limit:i})=>{const o=i!==null?`?limit=${i}`:"";return nt.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}${o}`)},Qp=async({clusterName:e,namespace:t,typeName:n,entryName:i})=>nt.get(`/api/clusters/${e}/k8s/api/v1${t?`/namespaces/${t}`:""}/${n}/${i}`),Xp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o})=>nt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}`),Zp=async({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})=>nt.get(`/api/clusters/${e}/k8s/apis/${n}/${i}${t?`/namespaces/${t}`:""}/${o}/${a}`),e0=async({clusterName:e})=>nt.get(`/api/clusters/${e}/k8s/apis/`),t0=async({clusterName:e,apiGroup:t,apiVersion:n})=>nt.get(`/api/clusters/${e}/k8s/apis/${t}/${n}/`),n0=async({clusterName:e})=>nt.get(`/api/clusters/${e}/k8s/api/v1`),r0=async({clusterName:e,apiExtensionVersion:t,crdName:n})=>nt.get(`/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`),bA=({refetchInterval:e})=>bn.useQuery({queryKey:["useClusterList"],queryFn:async()=>(await zp()).data,refetchInterval:e!==void 0?e:5e3}),vA=({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 Gp({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}),AA=({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 Jp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,typeName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),SA=({clusterName:e,namespace:t,typeName:n,limit:i,refetchInterval:o})=>bn.useQuery({queryKey:["useBuiltinResourceType",e,t,n,i],queryFn:async()=>{const a=await Yp({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}),EA=({clusterName:e,namespace:t,typeName:n,entryName:i,refetchInterval:o})=>bn.useQuery({queryKey:["useBuiltinResourceSingle",e,t,n,i],queryFn:async()=>(await Qp({clusterName:e,namespace:t,typeName:n,entryName:i})).data,refetchInterval:o!==void 0?o:5e3}),xA=({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 Xp({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}),CA=({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a,refetchInterval:u})=>bn.useQuery({queryKey:["useCrdResourceSingle",e,t,n,i,o,a],queryFn:async()=>(await Zp({clusterName:e,namespace:t,apiGroup:n,apiVersion:i,crdName:o,entryName:a})).data,refetchInterval:u!==void 0?u:5e3}),_A=({clusterName:e})=>bn.useQuery({queryKey:["useApisResourceTypes",e],queryFn:async()=>{const t=await e0({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),kA=({clusterName:e,apiGroup:t,apiVersion:n})=>bn.useQuery({queryKey:["useApiResourceTypesByGroup",e,t,n],queryFn:async()=>{const i=await t0({clusterName:e,apiGroup:t,apiVersion:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3}),TA=({clusterName:e})=>bn.useQuery({queryKey:["useBuiltinResourceTypes",e],queryFn:async()=>{const t=await n0({clusterName:e}),n=JSON.parse(JSON.stringify(t.data));return n.metadata?.resourceVersion&&delete n.metadata.resourceVersion,n},refetchInterval:5e3}),OA=({clusterName:e,apiExtensionVersion:t,crdName:n})=>bn.useQuery({queryKey:["useCrdData",e,t,n],queryFn:async()=>{const i=await r0({clusterName:e,apiExtensionVersion:t,crdName:n}),o=JSON.parse(JSON.stringify(i.data));return o.metadata?.resourceVersion&&delete o.metadata.resourceVersion,o},refetchInterval:5e3});oe.BackToDefaultIcon=Bh,oe.BlackholeForm=_p,oe.BlackholeFormDataProvider=Ov,oe.ContentCard=Lh,oe.DeleteIcon=Th,oe.DeleteModal=tc,oe.DeleteModalMany=Zm,oe.DownIcon=Fh,oe.DynamicComponents=lA,oe.DynamicRenderer=Np,oe.DynamicRendererWithProviders=fA,oe.EditIcon=Oh,oe.EnrichedTable=Jh,oe.EnrichedTableProvider=d2,oe.LockedIcon=Ph,oe.ManageableBreadcrumbs=$h,oe.ManageableBreadcrumbsWithDataProvider=r2,oe.ManageableSidebar=Vh,oe.ManageableSidebarWithDataProvider=o2,oe.MarketPlace=Lp,oe.MarketplaceCard=Hc,oe.MinusIcon=on,oe.PlusIcon=nc,oe.ProjectInfoCard=jp,oe.Spacer=hr,oe.SuccessIcon=Dh,oe.TreeWithSearch=Fy,oe.UnlockedIcon=Rh,oe.UpIcon=Ih,oe.checkIfApiInstanceNamespaceScoped=Ip,oe.checkIfBuiltInInstanceNamespaceScoped=Wc,oe.checkPermission=nd,oe.createContextFactory=$p,oe.createNewEntry=Xo,oe.deleteEntry=ec,oe.feedbackIcons=Vr,oe.filterSelectOptions=oc,oe.floorToDecimal=Ns,oe.getAllPathsFromObj=lc,oe.getApiResourceSingle=Jp,oe.getApiResourceTypes=e0,oe.getApiResourceTypesByApiGroup=t0,oe.getApiResources=Gp,oe.getBodyParametersSchema=Dp,oe.getBuiltinResourceSingle=Qp,oe.getBuiltinResourceTypes=n0,oe.getBuiltinResources=Yp,oe.getBuiltinTreeData=pA,oe.getClusterList=zp,oe.getCrdData=r0,oe.getCrdResourceSingle=Zp,oe.getCrdResources=Xp,oe.getDirectUnknownResource=jh,oe.getEnrichedColumns=zh,oe.getEnrichedColumnsWithControls=Gh,oe.getGroupsByCategory=gA,oe.getObjectFormItemsDraft=_a,oe.getPrefixSubarrays=rd,oe.getStringByName=Ft,oe.getSwagger=wA,oe.getSwaggerPathAndIsNamespaceScoped=Bp,oe.groupsToTreeData=dA,oe.isFlatObject=Hh,oe.isFormOverride=Fp,oe.isWithAdditionalPrinterColumns=qp,oe.isWithAdditionalPrinterColumnsColWidths=Hp,oe.isWithAdditionalPrinterColumnsTrimLengths=Kp,oe.isWithAdditionalPrinterColumnsUndefinedValues=Wp,oe.normalizeValuesForQuotas=ra,oe.normalizeValuesForQuotasToNumber=cc,oe.overwriteMatchingKeys=Op,oe.parseCustomOverrides=mA,oe.parseQuotaValue=P2,oe.parseQuotaValueCpu=ac,oe.parseQuotaValueMemoryAndStorage=uc,oe.prepareDataForEnrichedColumns=Xh,oe.prepareDataForManageableBreadcrumbs=Nh,oe.prepareDataForManageableSidebar=Uh,oe.prepareTableMappings=yA,oe.prepareTemplate=Ct,oe.prepareUrlsToFetchForDynamicRenderer=Vp,oe.processOverride=Pp,oe.removeEmptyFormValues=js,oe.renameBrokenFieldBack=Gi,oe.renameBrokenFieldBackToFormAgain=na,oe.updateEntry=Zo,oe.useApiResourceSingle=AA,oe.useApiResourceTypesByGroup=kA,oe.useApiResources=vA,oe.useApisResourceTypes=_A,oe.useBuiltinResourceSingle=EA,oe.useBuiltinResourceTypes=TA,oe.useBuiltinResources=SA,oe.useClusterList=bA,oe.useCrdData=OA,oe.useCrdResourceSingle=CA,oe.useCrdResources=xA,oe.useDirectUnknownResource=nn,oe.usePermissions=qr,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});
568
560
  //# sourceMappingURL=openapi-k8s-toolkit.umd.js.map