2&&void 0!==arguments[2]?arguments[2]:1,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=l&&l<=c&&c<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");for(o=l;;o++){const n=8*t.getNumDataCodewords(o,r),a=s.getTotalBits(e,o);if(a<=n){i=a;break}if(o>=c)throw new RangeError("Data too long")}for(const n of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&i<=8*t.getNumDataCodewords(o,n)&&(r=n);let f=[];for(const t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(o),f);for(const e of t.getData())f.push(e)}a(f.length==i);const p=8*t.getNumDataCodewords(o,r);a(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),a(f.length%8==0);for(let t=236;f.lengthh[t>>>3]|=e<<7-(7&t))),new t(o,r,h,u)}getModule(e,t){return 0<=e&&e>>9);const n=21522^(t<<10|r);a(n>>>15==0);for(let a=0;a<=5;a++)this.setFunctionModule(8,a,o(n,a));this.setFunctionModule(8,7,o(n,6)),this.setFunctionModule(8,8,o(n,7)),this.setFunctionModule(7,8,o(n,8));for(let a=9;a<15;a++)this.setFunctionModule(14-a,8,o(n,a));for(let a=0;a<8;a++)this.setFunctionModule(this.size-1-a,8,o(n,a));for(let a=8;a<15;a++)this.setFunctionModule(8,this.size-15+a,o(n,a));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let r=0;r<12;r++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let r=0;r<18;r++){const e=o(t,r),n=this.size-11+r%3,a=Math.floor(r/3);this.setFunctionModule(n,a,e),this.setFunctionModule(a,n,e)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const o=Math.max(Math.abs(n),Math.abs(r)),a=e+n,i=t+r;0<=a&&a{(t!=c-i||r>=l)&&f.push(e[t])}));return a(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let n=0;n>>3],7-(7&r)),r++)}}a(r==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(n,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[a][i],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,o)*t.PENALTY_N3}for(let a=0;a5&&e++):(this.finderPenaltyAddHistory(n,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[i][a],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,o)*t.PENALTY_N3}for(let a=0;ae+(t?1:0)),r);const n=this.size*this.size,o=Math.ceil(Math.abs(20*r-10*n)/n)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return a(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let t=0;t0));for(const o of e){const e=o^n.shift();n.push(0),r.forEach(((r,o)=>n[o]^=t.reedSolomonMultiply(r,e)))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return a(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let r=t;function n(e,t,r){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;const i=class{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(e){let t=[];for(const r of e)n(r,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let r=0;r=1<{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let r=t;r.LOW=new t(0,1),r.MEDIUM=new t(1,0),r.QUARTILE=new t(2,3),r.HIGH=new t(3,2),e.Ecc=r})(t=e.QrCode||(e.QrCode={}))})(gc||(gc={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let r=t;r.NUMERIC=new t(1,[10,12,14]),r.ALPHANUMERIC=new t(2,[9,11,13]),r.BYTE=new t(4,[8,16,16]),r.KANJI=new t(8,[8,10,12]),r.ECI=new t(7,[0,0,0]),e.Mode=r})(t=e.QrSegment||(e.QrSegment={}))})(gc||(gc={}));var kc=gc,Cc={L:kc.QrCode.Ecc.LOW,M:kc.QrCode.Ecc.MEDIUM,Q:kc.QrCode.Ecc.QUARTILE,H:kc.QrCode.Ecc.HIGH},Ec=128,_c="L",Pc="#FFFFFF",jc="#000000",Rc=!1,Oc=4,Nc=.1;function Tc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=[];return e.forEach((function(e,n){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return r.push("M".concat(o+t," ").concat(n+t,"h").concat(i-o,"v1H").concat(o+t,"z")),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?r.push("M".concat(i+t,",").concat(n+t," h1v1H").concat(i+t,"z")):r.push("M".concat(o+t,",").concat(n+t," h").concat(i+1-o,"v1H").concat(o+t,"z"))}}))})),r.join("")}function Ic(e,t){return e.slice().map(((e,r)=>r=t.y+t.h?e:e.map(((e,r)=>(r=t.x+t.w)&&e))))}function Mc(e,t,r,n){if(null==n)return null;const o=r?Oc:0,a=e.length+2*o,i=Math.floor(t*Nc),s=a/t,l=(n.width||i)*s,c=(n.height||i)*s,u=null==n.x?e.length/2-l/2:n.x*s,d=null==n.y?e.length/2-c/2:n.y*s;let f=null;if(n.excavate){let e=Math.floor(u),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:l,excavation:f}}var Fc=function(){try{(new Path2D).addPath(new Path2D)}catch(bh){return!1}return!0}();function Dc(e){const r=e,{value:n,size:o=Ec,level:a=_c,bgColor:i=Pc,fgColor:s=jc,includeMargin:l=Rc,style:c,imageSettings:u}=r,d=Ac(r,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=null==u?void 0:u.src,p=(0,t.useRef)(null),h=(0,t.useRef)(null),[m,g]=(0,t.useState)(!1);(0,t.useEffect)((()=>{if(null!=p.current){const e=p.current,t=e.getContext("2d");if(!t)return;let r=kc.QrCode.encodeText(n,Cc[a]).getModules();const c=l?Oc:0,d=r.length+2*c,f=Mc(r,o,l,u),m=h.current,g=null!=f&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;g&&null!=f.excavation&&(r=Ic(r,f.excavation));const v=window.devicePixelRatio||1;e.height=e.width=o*v;const y=o/d*v;t.scale(y,y),t.fillStyle=i,t.fillRect(0,0,d,d),t.fillStyle=s,Fc?t.fill(new Path2D(Tc(r,c))):r.forEach((function(e,r){e.forEach((function(e,n){e&&t.fillRect(n+c,r+c,1,1)}))})),g&&t.drawImage(m,f.x+c,f.y+c,f.w,f.h)}})),(0,t.useEffect)((()=>{g(!1)}),[f]);const v=Sc({height:o,width:o},c);let y=null;return null!=f&&(y=t.createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{g(!0)},ref:h})),t.createElement(t.Fragment,null,t.createElement("canvas",Sc({style:v,height:o,width:o,ref:p},d)),y)}function zc(e){const r=e,{value:n,size:o=Ec,level:a=_c,bgColor:i=Pc,fgColor:s=jc,includeMargin:l=Rc,imageSettings:c}=r,u=Ac(r,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let d=kc.QrCode.encodeText(n,Cc[a]).getModules();const f=l?Oc:0,p=d.length+2*f,h=Mc(d,o,l,c);let m=null;null!=c&&null!=h&&(null!=h.excavation&&(d=Ic(d,h.excavation)),m=t.createElement("image",{xlinkHref:c.src,height:h.h,width:h.w,x:h.x+f,y:h.y+f,preserveAspectRatio:"none"}));const g=Tc(d,f);return t.createElement("svg",Sc({height:o,width:o,viewBox:"0 0 ".concat(p," ").concat(p)},u),t.createElement("path",{fill:i,d:"M0,0 h".concat(p,"v").concat(p,"H0z"),shapeRendering:"crispEdges"}),t.createElement("path",{fill:s,d:g,shapeRendering:"crispEdges"}),m)}var Lc=e=>{const r=e,{renderAs:n}=r,o=Ac(r,["renderAs"]);return"svg"===n?t.createElement(zc,Sc({},o)):t.createElement(Dc,Sc({},o))};function Bc(e){let{status:t,enabledText:r="Enabled",disabledText:n,tooltipText:o,onClick:a}=e;return void 0===t?(0,Fe.jsx)("div",{style:{margin:"-2.5px"},children:(0,Fe.jsx)("div",{})}):void 0!==o?(0,Fe.jsxs)("div",{className:"tooltip-container",children:[(0,Fe.jsx)("div",{className:t?"status-enabled":"status-disabled",style:{cursor:"default"},onClick:a,children:t?r:null!==n&&void 0!==n?n:r}),(0,Fe.jsx)("span",{className:"tooltip-text",children:o})]}):(0,Fe.jsx)("div",{className:t?"status-enabled":"status-disabled",style:{cursor:"default"},children:t?r:null!==n&&void 0!==n?n:r})}var $c=r(7850);function Wc(e){return(0,Dr.Ay)("MuiIconButton",e)}const Vc=(0,hn.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Uc=["edge","children","className","color","disabled","disableFocusRipple","size"],Hc=(0,$e.Ay)(oo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color".concat((0,Ge.A)(r.color))],r.edge&&t["edge".concat((0,Ge.A)(r.edge))],t["size".concat((0,Ge.A)(r.size))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Me.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(e=>{let{theme:t,ownerState:r}=e;var n;const o=null==(n=(t.vars||t).palette)?void 0:n[r.color];return(0,je.A)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,je.A)({color:null==o?void 0:o.main},!r.disableRipple&&{"&:hover":(0,je.A)({},o&&{backgroundColor:t.vars?"rgba(".concat(o.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Me.X4)(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat(Vc.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),qc=t.forwardRef((function(e,t){const r=(0,qe.A)({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=r,u=(0,Pe.A)(r,Uc),d=(0,je.A)({},r,{edge:n,color:i,disabled:s,disableFocusRipple:l,size:c}),f=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled","default"!==n&&"color".concat((0,Ge.A)(n)),o&&"edge".concat((0,Ge.A)(o)),"size".concat((0,Ge.A)(a))]};return(0,Ie.A)(i,Wc,t)})(d);return(0,Fe.jsx)(Hc,(0,je.A)({className:(0,Re.A)(f.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))}));const Gc=t.createContext(null);function Kc(){return t.useContext(Gc)}const Xc="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const Qc=function(e){const{children:r,theme:n}=e,o=Kc(),a=t.useMemo((()=>{const e=null===o?n:function(e,t){if("function"===typeof t)return t(e);return(0,je.A)({},e,t)}(o,n);return null!=e&&(e[Xc]=null!==o),e}),[n,o]);return(0,Fe.jsx)(Gc.Provider,{value:a,children:r})};var Yc=r(5756),Jc=r(7082);const Zc={};function eu(e,r,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.useMemo((()=>{const t=e&&r[e]||r;if("function"===typeof n){const a=n(t),i=e?(0,je.A)({},r,{[e]:a}):a;return o?()=>i:i}return e?(0,je.A)({},r,{[e]:n}):(0,je.A)({},r,n)}),[e,r,n,o])}const tu=function(e){const{children:t,theme:r,themeId:n}=e,o=(0,Jc.A)(Zc),a=Kc()||Zc,i=eu(n,o,r),s=eu(n,a,r,!0),l="rtl"===i.direction;return(0,Fe.jsx)(Qc,{theme:s,children:(0,Fe.jsx)(Yc.T.Provider,{value:i,children:(0,Fe.jsx)(Be,{value:l,children:t})})})},ru=["theme"];function nu(e){let{theme:t}=e,r=(0,Pe.A)(e,ru);const n=t[Ue.A];return(0,Fe.jsx)(tu,(0,je.A)({},r,{themeId:n?Ue.A:void 0,theme:n||t}))}const ou=function(e,r,n){const[o,a]=(0,t.useState)([]),i=(0,t.useRef)(null);return(0,t.useEffect)((()=>(i.current=new WebSocket(e),i.current.onmessage=e=>{const t=JSON.parse(e.data);if(["debug","info","warn","error"].includes(t.subType)){if("info"===r&&"debug"===t.subType)return;if("warn"===r&&("debug"===t.subType||"info"===t.subType))return;if("error"===r&&("debug"===t.subType||"info"===t.subType||"warn"===t.subType))return}("*"===n||t.message.toLowerCase().includes(n.toLowerCase())||t.type.toLowerCase().includes(n.toLowerCase()))&&a((e=>{const r=new Date,n='['.concat(r.getHours().toString().padStart(2,"0"),":").concat(r.getMinutes().toString().padStart(2,"0"),":").concat(r.getSeconds().toString().padStart(2,"0"),".").concat(r.getMilliseconds().toString().padStart(3,"0"),"]"),o='').concat(t.subType,"");var a;const i=[...e,"".concat(o," - ").concat(n,' [').concat(t.type,"]: ").concat(t.message)];return i.length>500?i.slice(i.length-500):i}))},i.current.onopen=()=>{console.log("connected to WebSocket:",e),i.current.send("Connected to WebSocket: ".concat(e))},i.current.onclose=()=>{console.log("disconnected from WebSocket",e)},i.current.onerror=e=>console.error("WebSocket error: ",e),()=>{i.current.close()})),[e,r,n]),{messages:o,sendMessage:(0,t.useCallback)((e=>{i.current.readyState===WebSocket.OPEN&&(i.current.send(e),a((t=>[...t,"To Server: ".concat(e)])))}),[])}};const au=function(e){const{wssHost:r,debugLevel:n,searchCriteria:o}=e,[a,i]=(0,t.useState)(""),{messages:s,sendMessage:l}=ou(r,n,o),c=(0,t.useRef)(null),[u,d]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{u||c.current.scrollIntoView({behavior:"smooth"})}),[s,u]),(0,Fe.jsx)("div",{children:(0,Fe.jsxs)("ul",{style:{margin:"10px",padding:"10px"},onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[s.map(((e,t)=>(0,Fe.jsx)("li",{dangerouslySetInnerHTML:{__html:e}},t))),(0,Fe.jsx)("div",{ref:c})," "]})})};function iu(e){return e.substring(2).toLowerCase()}function su(e){const{children:r,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:a,touchEvent:i="onTouchEnd"}=e,s=t.useRef(!1),l=t.useRef(null),c=t.useRef(!1),u=t.useRef(!1);t.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=(0,mt.A)(r.ref,l),f=(0,Bs.A)((e=>{const t=u.current;u.current=!1;const r=(0,vt.A)(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),o||!n&&t||a(e)})),p=e=>t=>{u.current=!0;const n=r.props[e];n&&n(t)},h={ref:d};return!1!==i&&(h[i]=p(i)),t.useEffect((()=>{if(!1!==i){const e=iu(i),t=(0,vt.A)(l.current),r=()=>{s.current=!0};return t.addEventListener(e,f),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,f),t.removeEventListener("touchmove",r)}}}),[f,i]),!1!==o&&(h[o]=p(o)),t.useEffect((()=>{if(!1!==o){const e=iu(o),t=(0,vt.A)(l.current);return t.addEventListener(e,f),()=>{t.removeEventListener(e,f)}}}),[f,o]),(0,Fe.jsx)(t.Fragment,{children:t.cloneElement(r,h)})}function lu(e){return(0,Dr.Ay)("MuiSnackbarContent",e)}(0,hn.A)("MuiSnackbarContent",["root","message","action"]);const cu=["action","className","message","role"],uu=(0,$e.Ay)(cl,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?.8:.98,n=(0,Me.tL)(t.palette.background.default,r);return(0,je.A)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),du=(0,$e.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),fu=(0,$e.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),pu=t.forwardRef((function(e,t){const r=(0,qe.A)({props:e,name:"MuiSnackbarContent"}),{action:n,className:o,message:a,role:i="alert"}=r,s=(0,Pe.A)(r,cu),l=r,c=(e=>{const{classes:t}=e;return(0,Ie.A)({root:["root"],action:["action"],message:["message"]},lu,t)})(l);return(0,Fe.jsxs)(uu,(0,je.A)({role:i,square:!0,elevation:6,className:(0,Re.A)(c.root,o),ownerState:l,ref:t},s,{children:[(0,Fe.jsx)(du,{className:c.message,ownerState:l,children:a}),n?(0,Fe.jsx)(fu,{className:c.action,ownerState:l,children:n}):null]}))}));function hu(e){return(0,Dr.Ay)("MuiSnackbar",e)}(0,hn.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mu=["onEnter","onExited"],gu=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],vu=(0,$e.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["anchorOrigin".concat((0,Ge.A)(r.anchorOrigin.vertical)).concat((0,Ge.A)(r.anchorOrigin.horizontal))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,je.A)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),yu=t.forwardRef((function(e,r){const n=(0,qe.A)({props:e,name:"MuiSnackbar"}),o=He(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:p,disableWindowBlurListener:h=!1,message:m,open:g,TransitionComponent:v=ht,transitionDuration:y=a,TransitionProps:{onEnter:b,onExited:w}={}}=n,x=(0,Pe.A)(n.TransitionProps,mu),S=(0,Pe.A)(n,gu),A=(0,je.A)({},n,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:h,TransitionComponent:v,transitionDuration:y}),k=(e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root","anchorOrigin".concat((0,Ge.A)(r.vertical)).concat((0,Ge.A)(r.horizontal))]};return(0,Ie.A)(n,hu,t)})(A),{getRootProps:C,onClickAway:E}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoHideDuration:r=null,disableWindowBlurListener:n=!1,onClose:o,open:a,resumeHideDuration:i}=e,s=(0,Oe.A)();t.useEffect((()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==o||o(e,"escapeKeyDown")}}),[a,o]);const l=(0,Bs.A)(((e,t)=>{null==o||o(e,t)})),c=(0,Bs.A)((e=>{o&&null!=e&&s.start(e,(()=>{l(null,"timeout")}))}));t.useEffect((()=>(a&&c(r),s.clear)),[a,r,c,s]);const u=s.clear,d=t.useCallback((()=>{null!=r&&c(null!=i?i:.5*r)}),[r,i,c]),f=e=>t=>{const r=e.onFocus;null==r||r(t),u()},p=e=>t=>{const r=e.onMouseEnter;null==r||r(t),u()},h=e=>t=>{const r=e.onMouseLeave;null==r||r(t),d()};return t.useEffect((()=>{if(!n&&a)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}}),[n,a,d,u]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,je.A)({},Wr(e),Wr(t));return(0,je.A)({role:"presentation"},t,r,{onBlur:(n=r,e=>{const t=n.onBlur;null==t||t(e),d()}),onFocus:f(r),onMouseEnter:p(r),onMouseLeave:h(r)});var n},onClickAway:e=>{null==o||o(e,"clickaway")}}}((0,je.A)({},A)),[_,P]=t.useState(!0),j=Gr({elementType:vu,getSlotProps:C,externalForwardedProps:S,ownerState:A,additionalProps:{ref:r},className:[k.root,d]});return!g&&_?null:(0,Fe.jsx)(su,(0,je.A)({onClickAway:E},f,{children:(0,Fe.jsx)(vu,(0,je.A)({},j,{children:(0,Fe.jsx)(v,(0,je.A)({appear:!0,in:g,timeout:y,direction:"top"===s?"down":"up",onEnter:(e,t)=>{P(!1),b&&b(e,t)},onExited:e=>{P(!0),w&&w(e)}},x,{children:u||(0,Fe.jsx)(pu,(0,je.A)({message:m,action:i},p))}))}))}))})),bu=yu;const wu=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],xu=["component","slots","slotProps"],Su=["component"];function Au(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,l=(0,Pe.A)(t,wu),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=a,f=(0,Pe.A)(a,xu),p=u[e]||n,h=Hr(d[e],o),m=Ur((0,je.A)({className:r},l,{externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h})),{props:{component:g},internalRef:v}=m,y=(0,Pe.A)(m.props,Su),b=(0,mt.A)(v,null==h?void 0:h.ref,t.ref),w=i?i(y):{},x=(0,je.A)({},o,w),S="root"===e?g||c:g,A=Te(p,(0,je.A)({},"root"===e&&!c&&!u[e]&&s,"root"!==e&&!u[e]&&s,y,S&&{as:S},{ref:b}),x);return Object.keys(w).forEach((e=>{delete A[e]})),[p,A]}function ku(e){return(0,Dr.Ay)("MuiAlert",e)}const Cu=(0,hn.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Eu=(0,oi.A)((0,Fe.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),_u=(0,oi.A)((0,Fe.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Pu=(0,oi.A)((0,Fe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ju=(0,oi.A)((0,Fe.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Ru=(0,oi.A)((0,Fe.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Ou=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Nu=qe.A,Tu=(0,$e.Ay)(cl,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,Ge.A)(r.color||r.severity))]]}})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?Me.e$:Me.a,n="light"===t.palette.mode?Me.a:Me.e$;return(0,je.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[o]=e;return{props:{colorSeverity:o,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:r(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(o,"StandardBg")]:n(t.palette[o].light,.9),["& .".concat(Cu.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[n]=e;return{props:{colorSeverity:n,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert["".concat(n,"Color")]:r(t.palette[n].light,.6),border:"1px solid ".concat((t.vars||t).palette[n].light),["& .".concat(Cu.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(n,"IconColor")]}:{color:t.palette[n].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.dark})).map((e=>{let[r]=e;return{props:{colorSeverity:r,variant:"filled"},style:(0,je.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(r,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(r,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)})}}))]})})),Iu=(0,$e.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Mu=(0,$e.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Fu=(0,$e.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Du={success:(0,Fe.jsx)(Eu,{fontSize:"inherit"}),warning:(0,Fe.jsx)(_u,{fontSize:"inherit"}),error:(0,Fe.jsx)(Pu,{fontSize:"inherit"}),info:(0,Fe.jsx)(ju,{fontSize:"inherit"})},zu=t.forwardRef((function(e,t){const r=Nu({props:e,name:"MuiAlert"}),{action:n,children:o,className:a,closeText:i="Close",color:s,components:l={},componentsProps:c={},icon:u,iconMapping:d=Du,onClose:f,role:p="alert",severity:h="success",slotProps:m={},slots:g={},variant:v="standard"}=r,y=(0,Pe.A)(r,Ou),b=(0,je.A)({},r,{color:s,severity:h,variant:v,colorSeverity:s||h}),w=(e=>{const{variant:t,color:r,severity:n,classes:o}=e,a={root:["root","color".concat((0,Ge.A)(r||n)),"".concat(t).concat((0,Ge.A)(r||n)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,Ie.A)(a,ku,o)})(b),x={slots:(0,je.A)({closeButton:l.CloseButton,closeIcon:l.CloseIcon},g),slotProps:(0,je.A)({},c,m)},[S,A]=Au("closeButton",{elementType:qc,externalForwardedProps:x,ownerState:b}),[k,C]=Au("closeIcon",{elementType:Ru,externalForwardedProps:x,ownerState:b});return(0,Fe.jsxs)(Tu,(0,je.A)({role:p,elevation:0,ownerState:b,className:(0,Re.A)(w.root,a),ref:t},y,{children:[!1!==u?(0,Fe.jsx)(Iu,{ownerState:b,className:w.icon,children:u||d[h]||Du[h]}):null,(0,Fe.jsx)(Mu,{ownerState:b,className:w.message,children:o}),null!=n?(0,Fe.jsx)(Fu,{ownerState:b,className:w.action,children:n}):null,null==n&&f?(0,Fe.jsx)(Fu,{ownerState:b,className:w.action,children:(0,Fe.jsx)(S,(0,je.A)({size:"small","aria-label":i,title:i,color:"inherit",onClick:f},A,{children:(0,Fe.jsx)(k,(0,je.A)({fontSize:"small"},C))}))}):null]}))}));function Lu(e){return(0,Dr.Ay)("MuiDialog",e)}const Bu=(0,hn.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const $u=t.createContext({}),Wu=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Vu=(0,$e.Ay)(Eo,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Uu=(0,$e.Ay)(ol,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Hu=(0,$e.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t["scroll".concat((0,Ge.A)(r.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,je.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),qu=(0,$e.Ay)(cl,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,Ge.A)(r.scroll))],t["paperWidth".concat((0,Ge.A)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(Bu.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(Bu.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(Bu.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),Gu=t.forwardRef((function(e,r){const n=(0,qe.A)({props:e,name:"MuiDialog"}),o=He(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:h=!1,maxWidth:m="sm",onBackdropClick:g,onClose:v,open:y,PaperComponent:b=cl,PaperProps:w={},scroll:x="paper",TransitionComponent:S=So,transitionDuration:A=a,TransitionProps:k}=n,C=(0,Pe.A)(n,Wu),E=(0,je.A)({},n,{disableEscapeKeyDown:f,fullScreen:p,fullWidth:h,maxWidth:m,scroll:x}),_=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container","scroll".concat((0,Ge.A)(r))],paper:["paper","paperScroll".concat((0,Ge.A)(r)),"paperWidth".concat((0,Ge.A)(String(n))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,Ie.A)(i,Lu,t)})(E),P=t.useRef(),j=(0,wi.A)(s),R=t.useMemo((()=>({titleId:j})),[j]);return(0,Fe.jsx)(Uu,(0,je.A)({className:(0,Re.A)(_.root,d),closeAfterTransition:!0,components:{Backdrop:Vu},componentsProps:{backdrop:(0,je.A)({transitionDuration:A,as:l},c)},disableEscapeKeyDown:f,onClose:v,open:y,ref:r,onClick:e=>{P.current&&(P.current=null,g&&g(e),v&&v(e,"backdropClick"))},ownerState:E},C,{children:(0,Fe.jsx)(S,(0,je.A)({appear:!0,in:y,timeout:A,role:"presentation"},k,{children:(0,Fe.jsx)(Hu,{className:(0,Re.A)(_.container),onMouseDown:e=>{P.current=e.target===e.currentTarget},ownerState:E,children:(0,Fe.jsx)(qu,(0,je.A)({as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":j},w,{className:(0,Re.A)(_.paper,w.className),ownerState:E,children:(0,Fe.jsx)($u.Provider,{value:R,children:u})}))})}))}))})),Ku=Gu;function Xu(e){return(0,Dr.Ay)("MuiDialogTitle",e)}const Qu=(0,hn.A)("MuiDialogTitle",["root"]),Yu=["className","id"],Ju=(0,$e.Ay)(qa,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Zu=t.forwardRef((function(e,r){const n=(0,qe.A)({props:e,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=(0,Pe.A)(n,Yu),s=n,l=(e=>{const{classes:t}=e;return(0,Ie.A)({root:["root"]},Xu,t)})(s),{titleId:c=a}=t.useContext($u);return(0,Fe.jsx)(Ju,(0,je.A)({component:"h2",className:(0,Re.A)(l.root,o),ownerState:s,ref:r,variant:"h6",id:null!=a?a:c},i))})),ed=Zu;function td(e){return(0,Dr.Ay)("MuiDialogContent",e)}(0,hn.A)("MuiDialogContent",["root","dividers"]);const rd=["className","dividers"],nd=(0,$e.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(Qu.root," + &")]:{paddingTop:0}})})),od=t.forwardRef((function(e,t){const r=(0,qe.A)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=r,a=(0,Pe.A)(r,rd),i=(0,je.A)({},r,{dividers:o}),s=(e=>{const{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,Ie.A)(n,td,t)})(i);return(0,Fe.jsx)(nd,(0,je.A)({className:(0,Re.A)(s.root,n),ownerState:i,ref:t},a))})),ad=(0,oi.A)((0,Fe.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),id=(0,oi.A)((0,Fe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever"),sd=(0,oi.A)((0,Fe.jsx)("path",{d:"M21.19 21.19 2.81 2.81 1.39 4.22l2.27 2.27C2.61 8.07 2 9.96 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27zm-10.6-4.59-4.24-4.24 1.41-1.41 2.83 2.83.18-.18 1.41 1.41zm3-5.84-7.1-7.1C8.07 2.61 9.96 2 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51L15 12.17l2.65-2.65-1.41-1.41z"}),"Unpublished"),ld=(0,oi.A)((0,Fe.jsx)("path",{d:"m17.66 9.53-7.07 7.07-4.24-4.24 1.41-1.41 2.83 2.83 5.66-5.66zM4 12c0-2.33 1.02-4.42 2.62-5.88L9 8.5v-6H3l2.2 2.2C3.24 6.52 2 9.11 2 12c0 5.19 3.95 9.45 9 9.95v-2.02c-3.94-.49-7-3.86-7-7.93m18 0c0-5.19-3.95-9.45-9-9.95v2.02c3.94.49 7 3.86 7 7.93 0 2.33-1.02 4.42-2.62 5.88L15 15.5v6h6l-2.2-2.2c1.96-1.82 3.2-4.41 3.2-7.3"}),"PublishedWithChanges"),cd=(0,oi.A)((0,Fe.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),ud=(0,oi.A)((0,Fe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),dd=(0,oi.A)((0,Fe.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");function fd(e){return!("undefined"!==typeof File&&e instanceof File)&&(!("undefined"!==typeof Date&&e instanceof Date)&&("object"===typeof e&&null!==e&&!Array.isArray(e)))}function pd(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const t=Number(e);return"number"===typeof t&&!Number.isNaN(t)?t:e}const hd="__additional_property",md="additionalProperties",gd="allOf",vd="anyOf",yd="const",bd="default",wd="dependencies",xd="enum",Sd="__errors",Ad="$id",kd="if",Cd="items",Ed="$name",_d="oneOf",Pd="properties",jd="required",Rd="submitButtonOptions",Od="$ref",Nd="__rjsf_additionalProperties",Td="__rjsf_rootSchema",Id="ui:widget",Md="ui:options";function Fd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((t,r)=>{const n=e[r];return r===Id&&fd(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===Md&&fd(n)?{...t,...n}:{...t,[r.substring(3)]:n}}),{...t})}function Dd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!e.additionalProperties)return!1;const{expandable:n=!0}=Fd(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length({...e,[r]:Bd(t)})),t);if(Ld()(e)){const r=e;return Object.keys(r).reduce(((e,t)=>({...e,[t]:Bd(r[t])})),t)}return t}var $d=r(6641),Wd=r.n($d);function Vd(e,t){return Wd()(e,t,((e,t)=>{if("function"===typeof e&&"function"===typeof t)return!0}))}var Ud=r(3097),Hd=r.n(Ud),qd=r(4320),Gd=r.n(qd),Kd=r(5492),Xd=r(1488),Qd=r.n(Xd);function Yd(e,t){const r=t[e];return[Qd()(t,[e]),r]}function Jd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=e||"";let o;if(!n.startsWith("#"))throw new Error("Could not find a definition for ".concat(e,"."));o=decodeURIComponent(n.substring(1));const a=Kd.get(t,o);if(void 0===a)throw new Error("Could not find a definition for ".concat(e,"."));const i=a[Od];if(i){if(r.includes(i)){if(1===r.length)throw new Error("Definition for ".concat(e," is a circular reference"));const[t,...o]=r,a=[...o,n,t].join(" -> ");throw new Error("Definition for ".concat(t," contains a circular reference through ").concat(a))}const[o,s]=Yd(Od,a),l=Jd(s,t,[...r,n]);return Object.keys(o).length>0?{...o,...l}:l}return a}function Zd(e){return Jd(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[])}var ef=r(2117),tf=r.n(ef),rf=r(9160),nf=r.n(rf),of=r(6686),af=r.n(of),sf=r(620),lf=r.n(sf),cf=r(2759),uf=r.n(cf),df=r(1247),ff=r.n(df);function pf(e,t,r){var n;if(e&&r){const o=Hd()(e,r);if(void 0===o)return;for(let e=0;e({required:[e]})))};let o;if(a.anyOf){const{...e}=a;e.allOf?e.allOf=e.allOf.slice():e.allOf=[],e.allOf.push(r),o=e}else o=Object.assign({},a,r);if(delete o.required,e.isValid(o,t,n))return i}else if(e.isValid(a,t,n))return i}return 0}function mf(e,t,r,n,o){return hf(e,t,r,n,o)}var gf=r(9853),vf=r.n(gf),yf=r(9613),bf=r.n(yf),wf=r(2717),xf=r.n(wf),Sf=r(4677),Af=r.n(Sf),kf=r(3517),Cf=r.n(kf),Ef=r(9376),_f=r.n(Ef),Pf=r(2093),jf=r.n(Pf);function Rf(e){let t;const r=Hd()(e,"discriminator.propertyName",void 0);return lf()(r)?t=r:void 0!==r&&console.warn('Expecting discriminator to be a string, got "'.concat(typeof r,'" instead')),t}function Of(e){return Array.isArray(e)?"array":"string"===typeof e?"string":null==e?"null":"boolean"===typeof e?"boolean":isNaN(e)?"object"===typeof e?"object":"string":"number"}var Nf=r(450),Tf=r.n(Nf);function If(e){let{type:t}=e;return!t&&e.const?Of(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?(Array.isArray(t)&&(t=2===t.length&&t.includes("null")?t.find((e=>"null"!==e)):t[0]),t):"object"}function Mf(e,t){const r=Object.assign({},e);return Object.keys(t).reduce(((r,n)=>{const o=e?e[n]:{},a=t[n];return e&&n in e&&fd(a)?r[n]=Mf(o,a):e&&t&&("object"===If(e)||"object"===If(t))&&n===jd&&Array.isArray(o)&&Array.isArray(a)?r[n]=Tf()(o,a):r[n]=a,r}),r)}function Ff(e,t){return Bf(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},arguments.length>3?arguments[3]:void 0)[0]}function Df(e){const t=e.reduce(((e,t)=>t.length>1?t.flatMap((t=>ff()(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]]);return t}function zf(e,t,r,n,o,a){const i=Lf(t,r,o);return i!==t?Bf(e,i,r,a,n,o):[t]}function Lf(e,t,r){if(!fd(e))return e;let n=e;if(Od in n){const{$ref:e,...o}=n;if(r.includes(e))return n;r.push(e);n={...Zd(e,t),...o}}if(Pd in n){const e=[],o=xf()(n[Pd],((n,o,a)=>{const i=[...r];n[a]=Lf(o,t,i),e.push(i)}),{});Af()(r,_f()(Cf()(e))),n={...n,[Pd]:o}}return Cd in n&&!Array.isArray(n.items)&&"boolean"!==typeof n.items&&(n={...n,items:Lf(n.items,t,r)}),vf()(e,n)?e:n}function Bf(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];if(!fd(t))return[{}];const i=function(e,t,r,n,o,a){const i=zf(e,t,r,n,o,a);if(i.length>1||i[0]!==t)return i;if(wd in t)return $f(e,t,r,n,o,a).flatMap((t=>Bf(e,t,r,a,n,o)));if(gd in t&&Array.isArray(t.allOf))return Df(t.allOf.map((t=>Bf(e,t,r,a,n,o)))).map((e=>({...t,allOf:e})));return[t]}(e,t,r,o,a,n);return i.flatMap((t=>{let i=t;if(kd in i)return function(e,t,r,n,o,a){const{if:i,then:s,else:l,...c}=t,u=e.isValid(i,a||{},r);let d=[c],f=[];if(n)s&&"boolean"!==typeof s&&(f=f.concat(Bf(e,s,r,a,n,o))),l&&"boolean"!==typeof l&&(f=f.concat(Bf(e,l,r,a,n,o)));else{const t=u?s:l;t&&"boolean"!==typeof t&&(f=f.concat(Bf(e,t,r,a,n,o)))}return f.length&&(d=f.map((e=>Mf(c,e)))),d.flatMap((t=>Bf(e,t,r,a,n,o)))}(e,i,r,o,a,n);if(gd in i){if(o){const{allOf:e,...t}=i;return[...e,t]}try{i=jf()(i,{deep:!1})}catch(bh){console.warn("could not merge subschemas in allOf:\n",bh);const{allOf:t,...r}=i;return r}}return md in i&&!1!==i.additionalProperties?function(e,t,r,n){const o={...t,properties:{...t.properties}},a=n&&fd(n)?n:{};return Object.keys(a).forEach((t=>{if(t in o.properties)return;let n={};n="boolean"!==typeof o.additionalProperties?Od in o.additionalProperties?Ff(e,{$ref:Hd()(o.additionalProperties,[Od])},r,a):"type"in o.additionalProperties?{...o.additionalProperties}:vd in o.additionalProperties||_d in o.additionalProperties?{type:"object",...o.additionalProperties}:{type:Of(Hd()(a,[t]))}:{type:Of(Hd()(a,[t]))},o.properties[t]=n,bf()(o.properties,[t,hd],!0)})),o}(e,i,r,n):i}))}function $f(e,t,r,n,o,a){const{dependencies:i,...s}=t,l=function(e,t,r,n,o){let a;const{oneOf:i,anyOf:s,...l}=t;if(Array.isArray(i)?a=i:Array.isArray(s)&&(a=s),a){const i=void 0===o&&n?{}:o,s=Rf(t);a=a.map((e=>Lf(e,r,[])));const c=mf(e,i,a,r,s);if(n)return a.map((e=>Mf(l,e)));t=Mf(l,a[c])}return[t]}(e,s,r,n,a);return l.flatMap((t=>Wf(e,i,t,r,n,o,a)))}function Wf(e,t,r,n,o,a,i){let s=[r];for(const l in t){if(!o&&void 0===Hd()(i,[l]))continue;if(r.properties&&!(l in r.properties))continue;const[c,u]=Yd(l,t);return Array.isArray(u)?s[0]=Vf(r,u):fd(u)&&(s=Uf(e,r,n,l,u,o,a,i)),s.flatMap((t=>Wf(e,c,t,n,o,a,i)))}return s}function Vf(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function Uf(e,t,r,n,o,a,i,s){return Bf(e,o,r,s,a,i).flatMap((o=>{const{oneOf:l,...c}=o;if(t=Mf(t,c),void 0===l)return t;return Df(l.map((t=>"boolean"!==typeof t&&Od in t?zf(e,t,r,a,i,s):[t]))).flatMap((o=>function(e,t,r,n,o,a,i,s){const l=o.filter((t=>{if("boolean"===typeof t||!t||!t.properties)return!1;const{[n]:o}=t.properties;if(o){const t={type:"object",properties:{[n]:o}};return e.isValid(t,s,r)||a}return!1}));if(!a&&1!==l.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t];return l.flatMap((o=>{const l=o,[c]=Yd(n,l.properties),u={...l,properties:c};return Bf(e,u,r,s,a,i).map((e=>Mf(t,e)))}))}(e,t,r,n,o,a,i,s)))}))}const Hf={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function qf(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=0;return r&&(af()(r.properties)?o+=uf()(r.properties,((r,o,a)=>{const i=Hd()(n,a);if("boolean"===typeof o)return r;if(tf()(o,Od)){const n=Ff(e,o,t,i);return r+qf(e,t,n,i||{})}if((tf()(o,_d)||tf()(o,vd))&&i){const n=tf()(o,_d)?_d:vd,a=Rf(o);return r+Gf(e,t,i,Hd()(o,n),-1,a)}if("object"===o.type)return r+qf(e,t,o,i||{});if(o.type===Of(i)){let e=r+1;return o.default?e+=i===o.default?1:-1:o.const&&(e+=i===o.const?1:-1),e}return r}),0):lf()(r.type)&&r.type===Of(n)&&(o+=1)),o}function Gf(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,a=arguments.length>5?arguments[5]:void 0;const i=n.map((e=>Lf(e,t,[]))),s=pf(r,n,a);if(nf()(s))return s;const l=i.reduce(((n,o,i)=>(1===mf(e,r,[Hf,o],t,a)&&n.push(i),n)),[]);if(1===l.length)return l[0];l.length||ff()(i.length,(e=>l.push(e)));const c=new Set,{bestIndex:u}=l.reduce(((n,o)=>{const{bestScore:a}=n,s=i[o],l=qf(e,t,s,r);return c.add(l),l>a?{bestIndex:o,bestScore:l}:n}),{bestIndex:o,bestScore:0});return 1===c.size&&o>=0?o:u}function Kf(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>fd(e)))}function Xf(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Array.isArray(t)){const n=Array.isArray(e)?e:[],o=t.map(((e,t)=>n[t]?Xf(n[t],e,r):e));return r&&o.length(n[o]=Xf(e?Hd()(e,o):{},Hd()(t,o),r),n)),n)}return t}function Qf(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object.keys(t).reduce(((n,o)=>{const a=e?e[o]:{},i=t[o];if(e&&o in e&&fd(i))n[o]=Qf(a,i,r);else if(r&&Array.isArray(a)&&Array.isArray(i)){let e=i;"preventDuplicates"===r&&(e=i.reduce(((e,t)=>(a.includes(t)||e.push(t),e)),[])),n[o]=a.concat(e)}else n[o]=i;return n}),Object.assign({},e))}function Yf(e,t){const r=Ff(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},void 0),n=r.oneOf||r.anyOf;return!!Array.isArray(r.enum)||!!Array.isArray(n)&&n.every((e=>"boolean"!==typeof e&&function(e){return Array.isArray(e.enum)&&1===e.enum.length||yd in e}(e)))}function Jf(e,t,r){return!(!t.uniqueItems||!t.items||"boolean"===typeof t.items)&&Yf(e,t.items,r)}var Zf;function ep(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zf.Ignore,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(r>=0){if(Array.isArray(e.items)&&r5&&void 0!==arguments[5]?arguments[5]:[],i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};const{emptyObjectFields:s="populateAllDefaults"}=i;if(n)e[t]=r;else if("skipDefaults"!==s)if(fd(r)){const n=void 0===o?a.includes(t):o;"skipEmptyDefaults"===s?Gd()(r)||(e[t]=r):Gd()(r)&&!a.includes(t)||!n&&"populateRequiredDefaults"===s||(e[t]=r)}else void 0===r||"populateAllDefaults"!==s&&"skipEmptyDefaults"!==s&&!a.includes(t)||(e[t]=r)}function rp(e,t){let{parentDefaults:r,rawFormData:n,rootSchema:o={},includeUndefinedValues:a=!1,_recurseList:i=[],experimental_defaultFormStateBehavior:s,required:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var c,u,d,f;const p=fd(n)?n:{},h=fd(t)?t:{};let m=r,g=null,v=i;if(fd(m)&&fd(h.default))m=Qf(m,h.default);else if(bd in h)m=h.default;else if(Od in h){const e=h[Od];i.includes(e)||(v=i.concat(e),g=Zd(e,o))}else if(wd in h){g=$f(e,h,o,!1,[],p)[0]}else if(Kf(h))m=h.items.map(((t,n)=>rp(e,t,{rootSchema:o,includeUndefinedValues:a,_recurseList:i,experimental_defaultFormStateBehavior:s,parentDefaults:Array.isArray(r)?r[n]:void 0,rawFormData:p,required:l})));else if(_d in h){const{oneOf:t,...r}=h;if(0===t.length)return;const n=Rf(h);g=t[Gf(e,o,Gd()(p)?void 0:p,t,0,n)],g=Mf(r,g)}else if(vd in h){const{anyOf:t,...r}=h;if(0===t.length)return;const n=Rf(h);g=t[Gf(e,o,Gd()(p)?void 0:p,t,0,n)],g=Mf(r,g)}if(g)return rp(e,g,{rootSchema:o,includeUndefinedValues:a,_recurseList:v,experimental_defaultFormStateBehavior:s,parentDefaults:m,rawFormData:p,required:l});switch(void 0===m&&(m=h.default),If(h)){case"object":{const t="populateDefaults"===(null===s||void 0===s?void 0:s.allOf)&&gd in h?Ff(e,h,o,p):h,r=Object.keys(t.properties||{}).reduce(((r,n)=>{var c;return tp(r,n,rp(e,Hd()(t,[Pd,n]),{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,includeUndefinedValues:!0===a,parentDefaults:Hd()(m,[n]),rawFormData:Hd()(p,[n]),required:null===(c=t.required)||void 0===c?void 0:c.includes(n)}),a,l,t.required,s),r}),{});if(t.additionalProperties){const n=fd(t.additionalProperties)?t.additionalProperties:{},c=new Set;fd(m)&&Object.keys(m).filter((e=>!t.properties||!t.properties[e])).forEach((e=>c.add(e)));const u=[];Object.keys(p).filter((e=>!t.properties||!t.properties[e])).forEach((e=>{c.add(e),u.push(e)})),c.forEach((c=>{var d;const f=rp(e,n,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,includeUndefinedValues:!0===a,parentDefaults:Hd()(m,[c]),rawFormData:Hd()(p,[c]),required:null===(d=t.required)||void 0===d?void 0:d.includes(c)});tp(r,c,f,a,l,u)}))}return r}case"array":{const t="never"===(null===(c=null===s||void 0===s?void 0:s.arrayMinItems)||void 0===c?void 0:c.populate),r="requiredOnly"===(null===(u=null===s||void 0===s?void 0:s.arrayMinItems)||void 0===u?void 0:u.populate),a="skipEmptyDefaults"===(null===s||void 0===s?void 0:s.emptyObjectFields),p=null!==(f=null===(d=null===s||void 0===s?void 0:s.arrayMinItems)||void 0===d?void 0:d.computeSkipPopulate)&&void 0!==f?f:()=>!1,g=a?void 0:[];if(Array.isArray(m)&&(m=m.map(((t,r)=>{const n=ep(h,Zf.Fallback,r);return rp(e,n,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,parentDefaults:t,required:l})}))),Array.isArray(n)){const r=ep(h);m=t?n:n.map(((t,n)=>rp(e,r,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,rawFormData:t,parentDefaults:Hd()(m,[n]),required:l})))}if(t)return null!==m&&void 0!==m?m:g;if(r&&!l)return m||void 0;const v=Array.isArray(m)?m.length:0;if(!h.minItems||Jf(e,h,o)||p(e,h,o)||h.minItems<=v)return m||g;const y=m||[],b=ep(h,Zf.Invert),w=b.default,x=new Array(h.minItems-v).fill(rp(e,b,{parentDefaults:w,rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,required:l}));return y.concat(x)}}return m}function np(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;if(!fd(t))throw new Error("Invalid schema: "+t);const i=rp(e,Ff(e,t,n,r),{rootSchema:n,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,rawFormData:r});if(void 0===r||null===r||"number"===typeof r&&isNaN(r))return i;const{mergeExtraDefaults:s}=(null===a||void 0===a?void 0:a.arrayMinItems)||{};return fd(r)||Array.isArray(r)?Xf(i,r,s):r}function op(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"widget"in Fd(e)&&"hidden"!==Fd(e).widget}function ap(e,t){let r=arguments.length>3?arguments[3]:void 0;if("files"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})[Id])return!0;if(t.items){const n=Ff(e,t.items,r);return"string"===n.type&&"data-url"===n.format}return!1}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(Zf||(Zf={}));const ip=Symbol("no Value");function sp(e,t,r,n){let o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(tf()(r,Pd)){const i={};if(tf()(n,Pd)){const e=Hd()(n,Pd,{});Object.keys(e).forEach((e=>{tf()(a,e)&&(i[e]=void 0)}))}const s=Object.keys(Hd()(r,Pd,{})),l={};s.forEach((o=>{const s=Hd()(a,o);let c=Hd()(n,[Pd,o],{}),u=Hd()(r,[Pd,o],{});tf()(c,Od)&&(c=Ff(e,c,t,s)),tf()(u,Od)&&(u=Ff(e,u,t,s));const d=Hd()(c,"type"),f=Hd()(u,"type");if(!d||d===f)if(tf()(i,o)&&delete i[o],"object"===f||"array"===f&&Array.isArray(s)){const r=sp(e,t,u,c,s);void 0===r&&"array"!==f||(l[o]=r)}else{const e=Hd()(u,"default",ip),t=Hd()(c,"default",ip);e!==ip&&e!==s&&(t===s?i[o]=e:!0===Hd()(u,"readOnly")&&(i[o]=void 0));const r=Hd()(u,"const",ip),n=Hd()(c,"const",ip);r!==ip&&r!==s&&(i[o]=n===s?r:void 0)}})),o={..."string"==typeof a||Array.isArray(a)?void 0:a,...i,...l}}else if("array"===Hd()(n,"type")&&"array"===Hd()(r,"type")&&Array.isArray(a)){let i=Hd()(n,"items"),s=Hd()(r,"items");if("object"!==typeof i||"object"!==typeof s||Array.isArray(i)||Array.isArray(s))"boolean"===typeof i&&"boolean"===typeof s&&i===s&&(o=a);else{tf()(i,Od)&&(i=Ff(e,i,t,a)),tf()(s,Od)&&(s=Ff(e,s,t,a));const n=Hd()(i,"type"),l=Hd()(s,"type");if(!n||n===l){const n=Hd()(r,"maxItems",-1);o="object"===l?a.reduce(((r,o)=>{const a=sp(e,t,s,i,o);return void 0!==a&&(n<0||r.length0&&a.length>n?a.slice(0,n):a}}}return o}function lp(e,t,r,n,o,a,i){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[];if(Od in t||wd in t||gd in t){const l=Ff(e,t,a,i);if(-1===s.findIndex((e=>vf()(e,l))))return lp(e,l,r,n,o,a,i,s.concat(l))}if(Cd in t&&!Hd()(t,[Cd,Od]))return lp(e,Hd()(t,Cd),r,n,o,a,i,s);const l={$id:o||r};if("object"===If(t)&&Pd in t)for(const c in t.properties){const o=Hd()(t,[Pd,c]),u=l[Ad]+n+c;l[c]=lp(e,fd(o)?o:{},r,n,u,a,Hd()(i,[c]),s)}return l}function cp(e,t,r,n,o){return lp(e,t,arguments.length>5&&void 0!==arguments[5]?arguments[5]:"root",arguments.length>6&&void 0!==arguments[6]?arguments[6]:"_",r,n,o)}function up(e,t,r,n,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];if(Od in t||wd in t||gd in t){const i=Ff(e,t,n,o);if(-1===a.findIndex((e=>vf()(e,i))))return up(e,i,r,n,o,a.concat(i))}let i={[Ed]:r.replace(/^\./,"")};if(_d in t||vd in t){const s=_d in t?t.oneOf:t.anyOf,l=Rf(t),c=s[Gf(e,n,o,s,0,l)];i={...i,...up(e,c,r,n,o,a)}}if(md in t&&!1!==t[md]&&bf()(i,Nd,!0),Cd in t&&Array.isArray(o)){const{items:s,additionalItems:l}=t;Array.isArray(s)?o.forEach(((t,o)=>{s[o]?i[o]=up(e,s[o],"".concat(r,".").concat(o),n,t,a):l?i[o]=up(e,l,"".concat(r,".").concat(o),n,t,a):console.warn('Unable to generate path schema for "'.concat(r,".").concat(o,'". No schema defined for it'))})):o.forEach(((t,o)=>{i[o]=up(e,s,"".concat(r,".").concat(o),n,t,a)}))}else if(Pd in t)for(const s in t.properties){const l=Hd()(t,[Pd,s]);i[s]=up(e,l,"".concat(r,".").concat(s),n,Hd()(o,[s]),a)}return i}function dp(e,t){return up(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",arguments.length>3?arguments[3]:void 0,arguments.length>4?arguments[4]:void 0)}class fp{constructor(e,t,r){this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!(!e||!t)&&(this.validator!==e||!Vd(this.rootSchema,t)||!Vd(this.experimental_defaultFormStateBehavior,r))}getDefaultFormState(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return np(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior)}getDisplayLabel(e,t,r){return function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;const o=Fd(r,arguments.length>4?arguments[4]:void 0),{label:a=!0}=o;let i=!!a;const s=If(t);return"array"===s&&(i=Jf(e,t,n)||ap(e,t,r,n)||op(r)),"object"===s&&(i=!1),"boolean"!==s||r[Id]||(i=!1),r["ui:field"]&&(i=!1),i}(this.validator,e,t,this.rootSchema,r)}getClosestMatchingOption(e,t,r,n){return Gf(this.validator,this.rootSchema,e,t,r,n)}getFirstMatchingOption(e,t,r){return mf(this.validator,e,t,this.rootSchema,r)}getMatchingOption(e,t,r){return hf(this.validator,e,t,this.rootSchema,r)}isFilesArray(e,t){return ap(this.validator,e,t,this.rootSchema)}isMultiSelect(e){return Jf(this.validator,e,this.rootSchema)}isSelect(e){return Yf(this.validator,e,this.rootSchema)}mergeValidationData(e,t){return function(e,t,r){if(!r)return t;const{errors:n,errorSchema:o}=t;let a=e.toErrorList(r),i=r;return Gd()(o)||(i=Qf(o,r,!0),a=[...n].concat(a)),{errorSchema:i,errors:a}}(this.validator,e,t)}retrieveSchema(e,t){return Ff(this.validator,e,this.rootSchema,t)}sanitizeDataForNewSchema(e,t,r){return sp(this.validator,this.rootSchema,e,t,r)}toIdSchema(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"root",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"_";return cp(this.validator,e,t,this.rootSchema,r,n,o)}toPathSchema(e,t,r){return dp(this.validator,e,t,this.rootSchema,r)}}function pp(e,t){return function(e,t){let r=e;if(Array.isArray(t)){const e=r.split(/(%\d)/);t.forEach(((t,r)=>{const n=e.findIndex((e=>e==="%".concat(r+1)));n>=0&&(e[n]=t)})),r=e.join("")}return r}(e,t)}function hp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;if(Array.isArray(e))return e.map((e=>hp(e,t))).filter((e=>e!==r));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function mp(e,t){const r=hp(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]);return Array.isArray(t)?t.filter((e=>!vf()(e,r))):vf()(r,t)?void 0:t}function gp(e,t){return Array.isArray(t)?t.some((t=>vf()(t,e))):vf()(t,e)}function vp(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(((t,r)=>gp(t.value,e)?String(r):void 0)).filter((e=>"undefined"!==typeof e));return t?r:r[0]}var yp=r(9686),bp=r.n(yp);function wp(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=hp(e,r);if(!bp()(n)){const e=r.findIndex((e=>n===e.value)),o=r.map((e=>{let{value:t}=e;return t}));return t.slice(0,e).concat(n,t.slice(e)).sort(((e,t)=>Number(o.indexOf(e)>o.indexOf(t))))}return t}var xp=r(6434),Sp=r.n(xp);class Ap{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let t=Array.isArray(e)&&e.length>0||"string"===typeof e?Hd()(this.errorSchema,e):this.errorSchema;return!t&&e&&(t={},bf()(this.errorSchema,e,t)),t}resetAllErrors(e){return this.errorSchema=e?Sp()(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=Hd()(r,Sd);return Array.isArray(n)||(n=[],r[Sd]=n),Array.isArray(e)?n.push(...e):n.push(e),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...e]:[e];return bf()(r,Sd,n),this}clearErrors(e){const t=this.getOrCreateErrorBlock(e);return bf()(t,Sd,[]),this}}function kp(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[1900,(new Date).getFullYear()+2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"YMD";const{day:o,month:a,year:i,hour:s,minute:l,second:c}=e,u={type:"day",range:[1,31],value:o},d={type:"month",range:[1,12],value:a},f={type:"year",range:r,value:i},p=[];switch(n){case"MDY":p.push(d,u,f);break;case"DMY":p.push(u,d,f);break;default:p.push(f,d,u)}return t&&p.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:c}),p}function Cp(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function Ep(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const o={type:t||"text",...Cp(e)};return r.inputType?o.type=r.inputType:t||("number"===e.type?(o.type="number",n&&void 0===o.step&&(o.step="any")):"integer"===e.type&&(o.type="number",void 0===o.step&&(o.step=1))),r.autocomplete&&(o.autoComplete=r.autocomplete),o}const _p={props:{disabled:!1},submitText:"Submit",norender:!1};function Pp(){const e=Fd(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});if(e&&e[Rd]){const t=e[Rd];return{..._p,...t}}return _p}function jp(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{templates:n}=t;return"ButtonTemplates"===e?n[e]:r[e]||n[e]}var Rp=r(1697);const Op={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Np(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=If(e);if("function"===typeof r||r&&Rp.isForwardRef((0,t.createElement)(r))||Rp.isMemo(r))return function(e){let t=Hd()(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=t=>{let{options:n,...o}=t;return(0,Fe.jsx)(e,{options:{...r,...n},...o})},bf()(e,"MergedWidget",t)}return t}(r);if("string"!==typeof r)throw new Error("Unsupported widget definition: ".concat(typeof r));if(r in n){return Np(e,n[r],n)}if("string"===typeof o){if(!(o in Op))throw new Error("No widget for type '".concat(o,"'"));if(r in Op[o]){return Np(e,n[Op[o][r]],n)}}throw new Error("No widget '".concat(r,"' for type '").concat(o,"'"))}function Tp(e,t){const r=lf()(e)?e:e[Ad];return"".concat(r,"__").concat(t)}function Ip(e){return Tp(e,"description")}function Mp(e){return Tp(e,"error")}function Fp(e){return Tp(e,"examples")}function Dp(e){return Tp(e,"help")}function zp(e){return Tp(e,"title")}function Lp(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?" ".concat(Fp(e)):"";return"".concat(Mp(e)," ").concat(Ip(e)," ").concat(Dp(e)).concat(t)}function Bp(e,t){return"".concat(e,"-").concat(t)}function $p(e,t,r){return t?r:e}function Wp(e){const t=e;if(t.enumNames,e.enum)return e.enum.map(((e,r)=>({label:t.enumNames&&t.enumNames[r]||String(e),value:e})));const r=e.oneOf||e.anyOf;return r&&r.map((e=>{const t=e,r=function(e){if(xd in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(yd in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(t);return{schema:t,label:t.title||String(r),value:r}}))}function Vp(e,t){let r=String(e);for(;r.length1&&void 0!==arguments[1])||arguments[1];if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};const r=new Date(e);if(Number.isNaN(r.getTime()))throw new Error("Unable to parse date "+e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function Hp(e){if(e.const)return!0;if(e.enum&&1===e.enum.length&&!0===e.enum[0])return!0;if(e.anyOf&&1===e.anyOf.length)return Hp(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return Hp(e.oneOf[0]);if(e.allOf){const t=e=>Hp(e);return e.allOf.some(t)}return!1}function qp(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{year:r,month:n,day:o,hour:a=0,minute:i=0,second:s=0}=e,l=Date.UTC(r,n-1,o,a,i,s),c=new Date(l).toJSON();return t?c:c.slice(0,10)}function Gp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e)return[];let r=[];return Sd in e&&(r=r.concat(e[Sd].map((e=>{const r=".".concat(t.join("."));return{property:r,message:e,stack:"".concat(r," ").concat(e)}})))),Object.keys(e).reduce(((r,n)=>{if(n!==Sd){const o=e[n];Ld()(o)&&(r=r.concat(Gp(o,[...t,n])))}return r}),r)}var Kp,Xp=r(615),Qp=r.n(Xp);function Yp(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return Ld()(n)?{...t,[r]:Yp(n)}:{...t,[r]:n}}}),{})}function Jp(e){if(!e)return"";const t=new Date(e),r=Vp(t.getFullYear(),4),n=Vp(t.getMonth()+1,2),o=Vp(t.getDate(),2),a=Vp(t.getHours(),2),i=Vp(t.getMinutes(),2),s=Vp(t.getSeconds(),2),l=Vp(t.getMilliseconds(),3);return"".concat(r,"-").concat(n,"-").concat(o,"T").concat(a,":").concat(i,":").concat(s,".").concat(l)}function Zp(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let o=Gp(t),a=t;return Gd()(n)||(a=Qf(n,t,!0),o=[...r].concat(o)),{errorSchema:a,errors:o}}function eh(e){return Array.isArray(e)?function(e){for(let t=0;t%2.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field %1
.",e.UnsupportedFieldWithReason="Unsupported field schema: %1.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field %1
: %2.",e.FilesInfo="**%1** (%2, %3 bytes)"}(Kp||(Kp={}));r(5491);var th=r(2616),rh=r.n(th);let nh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"")};function oh(){return nh()}function ah(e){return Array.isArray(e)?e.map((e=>({key:oh(),item:e}))):[]}function ih(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class sh extends t.Component{constructor(e){super(e),this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return Kf(e)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),fd(e.additionalItems)}(e)&&(n=e.additionalItems),r.getDefaultFormState(n)},this.onAddClick=e=>{this._handleAddClick(e)},this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)},this.onCopyIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<=e?bf()(a,[r],n[t]):r>e&&bf()(a,[r+1],n[t])}}const i={key:oh(),item:Sp()(o[e].item)},s=[...o];void 0!==e?s.splice(e+1,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(ih(s),a)))},this.onDropIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);re&&bf()(a,[r-1],n[t])}}const i=o.filter(((t,r)=>r!==e));this.setState({keyedFormData:i,updatedKeyedFormData:!0},(()=>r(ih(i),a)))},this.onReorderClick=(e,t)=>r=>{r&&(r.preventDefault(),r.currentTarget.blur());const{onChange:n,errorSchema:o}=this.props;let a;if(o){a={};for(const r in o){const n=parseInt(r);n==e?bf()(a,[t],o[e]):n==t?bf()(a,[e],o[t]):bf()(a,[r],o[n])}}const{keyedFormData:i}=this.state;const s=function(){const r=i.slice();return r.splice(e,1),r.splice(t,0,i[e]),r}();this.setState({keyedFormData:s},(()=>n(ih(s),a)))},this.onChangeForIndex=e=>(t,r,n)=>{const{formData:o,onChange:a,errorSchema:i}=this.props,s=(Array.isArray(o)?o:[]).map(((r,n)=>e===n?"undefined"===typeof t?null:t:r));a(s,i&&i&&{...i,[e]:r},n)},this.onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,void 0,r&&r.$id)};const{formData:t=[]}=e,r=ah(t);this.state={keyedFormData:r,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};const r=Array.isArray(e.formData)?e.formData:[],n=t.keyedFormData||[];return{keyedFormData:r.length===n.length?n.map(((e,t)=>({key:e.key,item:r[t]}))):ah(r)}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:r}=t;return Hd()(e,[Cd,"title"],Hd()(e,[Cd,"description"],r(Kp.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}canAddItem(e){const{schema:t,uiSchema:r,registry:n}=this.props;let{addable:o}=Fd(r,n.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||e.length=t&&bf()(a,[r+1],n[e])}}const i={key:oh(),item:this._getNewFormDataRow()},s=[...o];void 0!==t?s.splice(t,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(ih(s),a)))}render(){const{schema:e,uiSchema:t,idSchema:r,registry:n}=this.props,{schemaUtils:o,translateString:a}=n;if(!(Cd in e)){const o=jp("UnsupportedFieldTemplate",n,Fd(t));return(0,Fe.jsx)(o,{schema:e,idSchema:r,reason:a(Kp.MissingItems),registry:n})}return o.isMultiSelect(e)?this.renderMultiSelect():op(t)?this.renderCustomWidget():Kf(e)?this.renderFixedArray():o.isFilesArray(e,t)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:t={},errorSchema:r,idSchema:n,name:o,title:a,disabled:i=!1,readonly:s=!1,autofocus:l=!1,required:c=!1,registry:u,onBlur:d,onFocus:f,idPrefix:p,idSeparator:h="_",rawErrors:m}=this.props,{keyedFormData:g}=this.state,v=e.title||a||o,{schemaUtils:y,formContext:b}=u,w=Fd(t),x=af()(e.items)?e.items:{},S=y.retrieveSchema(x),A=ih(this.state.keyedFormData),k=this.canAddItem(A),C={canAdd:k,items:g.map(((e,a)=>{const{key:i,item:s}=e,c=s,u=y.retrieveSchema(x,c),b=r?r[a]:void 0,w=n.$id+h+a,S=y.toIdSchema(u,w,c,p,h);return this.renderArrayFieldItem({key:i,index:a,name:o&&"".concat(o,"-").concat(a),title:v?"".concat(v,"-").concat(a+1):void 0,canAdd:k,canMoveUp:a>0,canMoveDown:ax.retrieveSchema(e,r[t]))),k=af()(e.additionalItems)?x.retrieveSchema(e.additionalItems,r):null;(!y||y.length{const{key:c,item:u}=r,f=u,p=l>=A.length,w=(p&&af()(e.additionalItems)?x.retrieveSchema(e.additionalItems,f):A[l])||{},S=i.$id+a+l,k=x.toIdSchema(w,S,f,o,a),E=p?t.additionalItems||{}:Array.isArray(t.items)?t.items[l]:t.items||{},_=n?n[l]:void 0;return this.renderArrayFieldItem({key:c,index:l,name:s&&"".concat(s,"-").concat(l),title:b?"".concat(b,"-").concat(l+1):void 0,canAdd:C,canRemove:p,canMoveUp:l>=A.length+1,canMoveDown:p&&lI[e])),{children:(0,Fe.jsx)(R,{name:n,title:y,index:r,schema:l,uiSchema:u,formData:c,formContext:E,errorSchema:f,idPrefix:x,idSeparator:S,idSchema:d,required:this.isItemRequired(l),onChange:this.onChangeForIndex(r),onBlur:h,onFocus:m,registry:C,disabled:b,readonly:A,hideError:w,autofocus:p,rawErrors:g}),className:"array-item",disabled:b,canAdd:o,hasCopy:I.copy,hasToolbar:I.toolbar,hasMoveUp:I.moveUp,hasMoveDown:I.moveDown,hasRemove:I.remove,index:r,totalItems:v,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:A,registry:C,schema:l,uiSchema:u}}}const lh=sh;const ch=function(e){var t,r,n;const{schema:o,name:a,uiSchema:i,idSchema:s,formData:l,registry:c,required:u,disabled:d,readonly:f,hideError:p,autofocus:h,title:m,onChange:g,onFocus:v,onBlur:y,rawErrors:b}=e,{title:w}=o,{widgets:x,formContext:S,translateString:A,globalUiOptions:k}=c,{widget:C="checkbox",title:E,label:_=!0,...P}=Fd(i,k),j=Np(o,C,x),R=A(Kp.YesLabel),O=A(Kp.NoLabel);let N;const T=null!==(r=null!==(t=null!==E&&void 0!==E?E:w)&&void 0!==t?t:m)&&void 0!==r?r:a;if(Array.isArray(o.oneOf))N=Wp({oneOf:o.oneOf.map((e=>{if(af()(e))return{...e,title:e.title||(!0===e.const?R:O)}})).filter((e=>e))});else{const e=o,t=null!==(n=o.enum)&&void 0!==n?n:[!0,!1];N=!e.enumNames&&2===t.length&&t.every((e=>"boolean"===typeof e))?[{value:t[0],label:t[0]?R:O},{value:t[1],label:t[1]?R:O}]:Wp({enum:t,enumNames:e.enumNames})}return(0,Fe.jsx)(j,{options:{...P,enumOptions:N},schema:o,uiSchema:i,id:s.$id,name:a,onChange:g,onFocus:v,onBlur:y,label:T,hideLabel:!_,value:l,required:u,disabled:d,readonly:f,hideError:p,registry:c,formContext:S,autofocus:h,rawErrors:b})};class uh extends t.Component{constructor(e){super(e),this.onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state,{formData:n,onChange:o,registry:a}=this.props,{schemaUtils:i}=a,s=void 0!==e?parseInt(e,10):-1;if(s===t)return;const l=s>=0?r[s]:void 0,c=t>=0?r[t]:void 0;let u=i.sanitizeDataForNewSchema(l,c,n);u&&l&&(u=i.getDefaultFormState(l,u,"excludeObjectChildren")),o(u,void 0,this.getFieldId()),this.setState({selectedOption:s})};const{formData:t,options:r,registry:{schemaUtils:n}}=this.props,o=r.map((e=>n.retrieveSchema(e,t)));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,t,o)}}componentDidUpdate(e,t){const{formData:r,options:n,idSchema:o}=this.props,{selectedOption:a}=this.state;let i=this.state;if(!Vd(e.options,n)){const{registry:{schemaUtils:e}}=this.props;i={selectedOption:a,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!Vd(r,e.formData)&&o.$id===e.idSchema.$id){const{retrievedOptions:e}=i,n=this.getMatchingOption(a,r,e);t&&n!==a&&(i={selectedOption:n,retrievedOptions:e})}i!==this.state&&this.setState(i)}getMatchingOption(e,t,r){const{schema:n,registry:{schemaUtils:o}}=this.props,a=Rf(n);return o.getClosestMatchingOption(t,r,e,a)}getFieldId(){const{idSchema:e,schema:t}=this.props;return"".concat(e.$id).concat(t.oneOf?"__oneof_select":"__anyof_select")}render(){const{name:e,disabled:t=!1,errorSchema:r={},formContext:n,onBlur:o,onFocus:a,registry:i,schema:s,uiSchema:l}=this.props,{widgets:c,fields:u,translateString:d,globalUiOptions:f,schemaUtils:p}=i,{SchemaField:h}=u,{selectedOption:m,retrievedOptions:g}=this.state,{widget:v="select",placeholder:y,autofocus:b,autocomplete:w,title:x=s.title,...S}=Fd(l,f),A=Np({type:"number"},v,c),k=Hd()(r,Sd,[]),C=Qd()(r,[Sd]),E=p.getDisplayLabel(s,l,f),_=m>=0&&g[m]||null;let P;if(_){const{required:e}=s;P=e?Mf({required:e},_):_}let j=[];_d in s&&l&&_d in l?Array.isArray(l[_d])?j=l[_d]:console.warn('uiSchema.oneOf is not an array for "'.concat(x||e,'"')):vd in s&&l&&vd in l&&(Array.isArray(l[vd])?j=l[vd]:console.warn('uiSchema.anyOf is not an array for "'.concat(x||e,'"')));let R=l;m>=0&&j.length>m&&(R=j[m]);const O=x?Kp.TitleOptionPrefix:Kp.OptionPrefix,N=x?[x]:[],T=g.map(((e,t)=>{const{title:r=e.title}=Fd(j[t]);return{label:r||d(O,N.concat(String(t+1))),value:t}}));return(0,Fe.jsxs)("div",{className:"panel panel-default panel-body",children:[(0,Fe.jsx)("div",{className:"form-group",children:(0,Fe.jsx)(A,{id:this.getFieldId(),name:"".concat(e).concat(s.oneOf?"__oneof_select":"__anyof_select"),schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:a,disabled:t||Gd()(T),multiple:!1,rawErrors:k,errorSchema:C,value:m>=0?m:void 0,options:{enumOptions:T,...S},registry:i,formContext:n,placeholder:y,autocomplete:w,autofocus:b,label:null!==x&&void 0!==x?x:e,hideLabel:!E})}),P&&(0,Fe.jsx)(h,{...this.props,schema:P,uiSchema:R})]})}}const dh=uh,fh=/\.([0-9]*0)*$/,ph=/[0.]0*$/;const hh=function(e){const{registry:r,onChange:n,formData:o,value:a}=e,[i,s]=(0,t.useState)(a),{StringField:l}=r.fields;let c=o;const u=(0,t.useCallback)((e=>{s(e),"."==="".concat(e).charAt(0)&&(e="0".concat(e));const t="string"===typeof e&&e.match(fh)?pd(e.replace(ph,"")):pd(e);n(t)}),[n]);if("string"===typeof i&&"number"===typeof c){const e=new RegExp("".concat(c).replace(".","\\.")+"\\.?0*$");i.match(e)&&(c=i)}return(0,Fe.jsx)(l,{...e,formData:c,onChange:u})};function mh(){return mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),xh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"\u201c"},Sh=["style","script"],Ah=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,kh=/mailto:/i,Ch=/\n{2,}$/,Eh=/^(\s*>[\s\S]*?)(?=\n{2,})/,_h=/^ *> ?/gm,Ph=/^ {2,}\n/,jh=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Rh=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Oh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Nh=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,Th=/^(?:\n *)*\n/,Ih=/\r\n?/g,Mh=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Fh=/^\[\^([^\]]+)]/,Dh=/\f/g,zh=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Lh=/^\s*?\[(x|\s)\]/,Bh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$h=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Wh=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Vh=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Uh=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Hh=/^)/,qh=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Gh=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Kh=/^\{.*\}$/,Xh=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Qh=/^<([^ >]+@[^ >]+)>/,Yh=/^<([^ >]+:\/[^ >]+)>/,Jh=/-([a-z])?/gi,Zh=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,em=/^\[([^\]]*)\]:\s+([^\s>]+)>?\s*("([^"]*)")?/,tm=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,rm=/^\[([^\]]*)\] ?\[([^\]]*)\]/,nm=/(\[|\])/g,om=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,am=/\t/g,im=/(^ *\||\| *$)/g,sm=/^ *:-+: *$/,lm=/^ *:-+ *$/,cm=/^ *-+: *$/,um="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",dm=new RegExp("^([*_])\\1".concat(um,"\\1\\1(?!\\1)")),fm=new RegExp("^([*_])".concat(um,"\\1(?!\\1|\\w)")),pm=new RegExp("^==".concat(um,"==")),hm=new RegExp("^~~".concat(um,"~~")),mm=/^\\([^0-9A-Za-z\s])/,gm=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,vm=/^\n+/,ym=/^([ \t]*)/,bm=/\\([^\\])/g,wm=/ *\n+$/,xm=/(?:^|\n)( *)$/,Sm="(?:\\d+\\.)",Am="(?:[*+-])";function km(e){return"( *)("+(1===e?Sm:Am)+") +"}const Cm=km(1),Em=km(2);function _m(e){return new RegExp("^"+(1===e?Cm:Em))}const Pm=_m(1),jm=_m(2);function Rm(e){return new RegExp("^"+(1===e?Cm:Em)+"[^\\n]*(?:\\n(?!\\1"+(1===e?Sm:Am)+" )[^\\n]*)*(\\n|$)","gm")}const Om=Rm(1),Nm=Rm(2);function Tm(e){const t=1===e?Sm:Am;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Im=Tm(1),Mm=Tm(2);function Fm(e,t){const r=1===t,n=r?Im:Mm,o=r?Om:Nm,a=r?Pm:jm;return{match(e,t,r){const o=xm.exec(r);return o&&(t.list||!t.inline&&!t.simple)?n.exec(e=o[1]+e):null},order:1,parse(e,t,n){const i=r?+e[2]:void 0,s=e[0].replace(Ch,"\n").match(o);let l=!1;return{items:s.map((function(e,r){const o=a.exec(e)[0].length,i=new RegExp("^ {1,"+o+"}","gm"),c=e.replace(i,"").replace(a,""),u=r===s.length-1,d=-1!==c.indexOf("\n\n")||u&&l;l=d;const f=n.inline,p=n.list;let h;n.list=!0,d?(n.inline=!1,h=c.replace(wm,"\n\n")):(n.inline=!0,h=c.replace(wm,""));const m=t(h,n);return n.inline=f,n.list=p,m})),ordered:r,start:i}},render:(t,r,n)=>e(t.ordered?"ol":"ul",{key:n.key,start:"20"===t.type?t.start:void 0},t.items.map((function(t,o){return e("li",{key:o},r(t,n))})))}}const Dm=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),zm=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Lm=[Eh,Rh,Oh,Bh,Wh,$h,Hh,Zh,Om,Im,Nm,Mm],Bm=[...Lm,/^[^\n]+(?: \n|\n{2,})/,Vh,Gh];function $m(e){return e.replace(/[\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xc6]/g,"a").replace(/[\xe7\xc7]/g,"c").replace(/[\xf0\xd0]/g,"d").replace(/[\xc8\xc9\xca\xcb\xe9\xe8\xea\xeb]/g,"e").replace(/[\xcf\xef\xce\xee\xcd\xed\xcc\xec]/g,"i").replace(/[\xd1\xf1]/g,"n").replace(/[\xf8\xd8\u0153\u0152\xd5\xf5\xd4\xf4\xd3\xf3\xd2\xf2]/g,"o").replace(/[\xdc\xfc\xdb\xfb\xda\xfa\xd9\xf9]/g,"u").replace(/[\u0178\xff\xdd\xfd]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Wm(e){return cm.test(e)?"right":sm.test(e)?"center":lm.test(e)?"left":null}function Vm(e,t,r,n){const o=r.inTable;r.inTable=!0;let a=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce(((e,o)=>("|"===o.trim()?e.push(n?{type:"26"}:{type:"27",text:o}):""!==o&&e.push.apply(e,t(o,r)),e)),[]);r.inTable=o;let i=[[]];return a.forEach((function(e,t){"26"===e.type?0!==t&&t!==a.length-1&&i.push([]):("27"!==e.type||null!=a[t+1]&&"26"!==a[t+1].type||(e.text=e.text.trimEnd()),i[i.length-1].push(e))})),i}function Um(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(im,"").split("|").map(Wm):[],o=e[3]?function(e,t,r){return e.trim().split("\n").map((function(e){return Vm(e,t,r,!0)}))}(e[3],t,r):[],a=Vm(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function Hm(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function qm(e){return function(t,r){return r.inline?e.exec(t):null}}function Gm(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function Km(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Xm(e){return function(t){return e.exec(t)}}function Qm(e,t,r){if(t.inline||t.simple)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!Lm.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const o=n.trimEnd();return""==o?null:[n,o]}function Ym(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function Jm(e){return e.replace(bm,"$1")}function Zm(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function eg(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function tg(e,t,r){const n=r.inline||!1;r.inline=!1;const o=e(t,r);return r.inline=n,o}const rg=(e,t,r)=>({children:Zm(t,e[1],r)});function ng(){return{}}function og(){return null}function ag(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.overrides=r.overrides||{},r.slugify=r.slugify||$m,r.namedCodesToUnicode=r.namedCodesToUnicode?mh({},xh,r.namedCodesToUnicode):xh;const n=r.createElement||t.createElement;function o(e,t){const o=ig(r.overrides,"".concat(e,".props"),{});for(var a=arguments.length,i=new Array(a>2?a-2:0),s=2;s1||r.forceWrapper)s=a;else{if(1===a.length)return s=a[0],"string"==typeof s?o("span",{key:"outer"},s):s;s=null}return t.createElement(i,{key:"outer"},s)}function i(e){const r=e.match(Ah);return r?r.reduce((function(e,r,n){const o=r.indexOf("=");if(-1!==o){const i=function(e){return-1!==e.indexOf("-")&&null===e.match(qh)&&(e=e.replace(Jh,(function(e,t){return t.toUpperCase()}))),e}(r.slice(0,o)).trim(),s=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(r.slice(o+1).trim()),l=wh[i]||i,c=e[l]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===e||"src"===e?Ym(t):(t.match(Kh)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(i,s);"string"==typeof c&&(Vh.test(c)||Gh.test(c))&&(e[l]=t.cloneElement(a(c.trim()),{key:n}))}else"style"!==r&&(e[wh[r]||r]=!0);return e}),{}):null}const s=[],l={},c={0:{match:Km(Eh),order:1,parse:(e,t,r)=>({children:t(e[0].replace(_h,""),r)}),render:(e,t,r)=>o("blockquote",{key:r.key},t(e.children,r))},1:{match:Xm(Ph),order:1,parse:ng,render:(e,t,r)=>o("br",{key:r.key})},2:{match:Km(jh),order:1,parse:ng,render:(e,t,r)=>o("hr",{key:r.key})},3:{match:Km(Oh),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,r)=>o("pre",{key:r.key},o("code",mh({},e.attrs,{className:e.lang?"lang-".concat(e.lang):""}),e.text))},4:{match:Km(Rh),order:0,parse:e=>({attrs:i(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:Gm(Nh),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>o("code",{key:r.key},e.text)},6:{match:Km(Mh),order:0,parse:e=>(s.push({footnote:e[2],identifier:e[1]}),{}),render:og},7:{match:qm(Fh),order:1,parse:e=>({target:"#".concat(r.slugify(e[1])),text:e[1]}),render:(e,t,r)=>o("a",{key:r.key,href:Ym(e.target)},o("sup",{key:r.key},e.text))},8:{match:qm(Lh),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,r)=>o("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})},9:{match:Km(r.enforceAtxHeadings?$h:Bh),order:1,parse:(e,t,n)=>({children:Zm(t,e[2],n),id:r.slugify(e[2]),level:e[1].length}),render:(e,t,r)=>o("h".concat(e.level),{id:e.id,key:r.key},t(e.children,r))},10:{match:Km(Wh),order:0,parse:(e,t,r)=>({children:Zm(t,e[1],r),level:"="===e[2]?1:2,type:"9"})},11:{match:Xm(Vh),order:1,parse(e,t,r){const[,n]=e[3].match(ym),o=new RegExp("^".concat(n),"gm"),a=e[3].replace(o,""),s=(l=a,Bm.some((e=>e.test(l)))?tg:Zm);var l;const c=e[1].toLowerCase(),u=-1!==Sh.indexOf(c),d={attrs:i(e[2]),noInnerParse:u,tag:(u?c:e[1]).trim()};return r.inAnchor=r.inAnchor||"a"===c,u?d.text=e[3]:d.children=s(t,a,r),r.inAnchor=!1,d},render:(e,t,r)=>o(e.tag,mh({key:r.key},e.attrs),e.text||t(e.children,r))},13:{match:Xm(Gh),order:1,parse:e=>({attrs:i(e[2]||""),tag:e[1].trim()}),render:(e,t,r)=>o(e.tag,mh({},e.attrs,{key:r.key}))},12:{match:Xm(Hh),order:1,parse:()=>({}),render:og},14:{match:Gm(zm),order:1,parse:e=>({alt:e[1],target:Jm(e[2]),title:e[3]}),render:(e,t,r)=>o("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:Ym(e.target)})},15:{match:qm(Dm),order:3,parse:(e,t,r)=>({children:eg(t,e[1],r),target:Jm(e[2]),title:e[3]}),render:(e,t,r)=>o("a",{key:r.key,href:Ym(e.target),title:e.title},t(e.children,r))},16:{match:qm(Yh),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,t)=>t.inAnchor?null:qm(Xh)(e,t),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:qm(Qh),order:0,parse(e){let t=e[1],r=e[1];return kh.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},20:Fm(o,1),33:Fm(o,2),19:{match:Km(Th),order:3,parse:ng,render:()=>"\n"},21:{match:Qm,order:3,parse:rg,render:(e,t,r)=>o("p",{key:r.key},t(e.children,r))},22:{match:qm(em),order:0,parse:e=>(l[e[1]]={target:e[2],title:e[4]},{}),render:og},23:{match:Gm(tm),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,t,r)=>l[e.ref]?o("img",{key:r.key,alt:e.alt,src:Ym(l[e.ref].target),title:l[e.ref].title}):null},24:{match:qm(rm),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:t(e[0].replace(nm,"\\$1"),r),ref:e[2]}),render:(e,t,r)=>l[e.ref]?o("a",{key:r.key,href:Ym(l[e.ref].target),title:l[e.ref].title},t(e.children,r)):o("span",{key:r.key},t(e.fallbackChildren,r))},25:{match:Km(Zh),order:1,parse:Um,render(e,t,r){const n=e;return o("table",{key:r.key},o("thead",null,o("tr",null,n.header.map((function(e,a){return o("th",{key:a,style:Hm(n,a)},t(e,r))})))),o("tbody",null,n.cells.map((function(e,a){return o("tr",{key:a},e.map((function(e,a){return o("td",{key:a,style:Hm(n,a)},t(e,r))})))}))))}},27:{match:Xm(gm),order:4,parse:e=>({text:e[0].replace(Uh,((e,t)=>r.namedCodesToUnicode[t]?r.namedCodesToUnicode[t]:e))}),render:e=>e.text},28:{match:Gm(dm),order:2,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,r)=>o("strong",{key:r.key},t(e.children,r))},29:{match:Gm(fm),order:3,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,r)=>o("em",{key:r.key},t(e.children,r))},30:{match:Gm(mm),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:Gm(pm),order:3,parse:rg,render:(e,t,r)=>o("mark",{key:r.key},t(e.children,r))},32:{match:Gm(hm),order:3,parse:rg,render:(e,t,r)=>o("del",{key:r.key},t(e.children,r))}};!0===r.disableParsingRawHTML&&(delete c[11],delete c[13]);const u=function(e){let t=Object.keys(e);function r(n,o){let a=[],i="";for(;n;){let s=0;for(;sa(r,n,o)),r,n,o):a(r,n,o)}}(c,r.renderRule),function e(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Array.isArray(t)){const n=r.key,o=[];let a=!1;for(let i=0;i{let{children:r="",options:n}=e,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,gh);return t.cloneElement(sg(r,n),o)};var cg=r(6940),ug=r.n(cg);class dg extends t.Component{constructor(){var e;super(...arguments),e=this,this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=function(t){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(n,o,a)=>{const{formData:i,onChange:s,errorSchema:l}=e.props;void 0===n&&r&&(n="");s({...i,[t]:n},l&&l&&{...l,[t]:o},a)}},this.onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props,o={...n};ug()(o,e),r(o)},this.getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props,{duplicateKeySuffixSeparator:o="-"}=Fd(r,n.globalUiOptions);let a=0,i=e;for(;tf()(t,i);)i="".concat(e).concat(o).concat(++a);return i},this.onKeyChange=e=>(t,r)=>{if(e===t)return;const{formData:n,onChange:o,errorSchema:a}=this.props;t=this.getAvailableKey(t,n);const i={...n},s={[e]:t},l=Object.keys(i).map((e=>({[s[e]||e]:i[e]}))),c=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),o(c,a&&a&&{...a,[t]:r})},this.handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:t,onChange:r,registry:n}=this.props,o={...t};let a;if(af()(e.additionalProperties)){a=e.additionalProperties.type;let r=e.additionalProperties;if(Od in r){const{schemaUtils:e}=n;r=e.retrieveSchema({$ref:r[Od]},t),a=r.type}a||!(vd in r)&&!(_d in r)||(a="object")}const i=this.getAvailableKey("newKey",o);bf()(o,i,this.getDefaultValue(a)),r(o)}}isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}getDefaultValue(e){const{registry:{translateString:t}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(Kp.NewStringDefault)}}render(){var e,t,r,n;const{schema:o,uiSchema:a={},formData:i,errorSchema:s,idSchema:l,name:c,required:u=!1,disabled:d=!1,readonly:f=!1,hideError:p,idPrefix:h,idSeparator:m,onBlur:g,onFocus:v,registry:y,title:b}=this.props,{fields:w,formContext:x,schemaUtils:S,translateString:A,globalUiOptions:k}=y,{SchemaField:C}=w,E=S.retrieveSchema(o,i),_=Fd(a,k),{properties:P={}}=E,j=null!==(r=null!==(t=null!==(e=_.title)&&void 0!==e?e:E.title)&&void 0!==t?t:b)&&void 0!==r?r:c,R=null!==(n=_.description)&&void 0!==n?n:E.description;let O;try{O=function(e,t){if(!Array.isArray(t))return e;const r=e=>e.reduce(((e,t)=>(e[t]=!0,e)),{}),n=r(e),o=t.filter((e=>"*"===e||n[e])),a=r(o),i=e.filter((e=>!a[e])),s=o.indexOf("*");if(-1===s){if(i.length)throw new Error("uiSchema order list does not contain ".concat((l=i).length>1?"properties '".concat(l.join("', '"),"'"):"property '".concat(l[0],"'")));return o}var l;if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const c=[...o];return c.splice(s,1,...i),c}(Object.keys(P),_.order)}catch(I){return(0,Fe.jsxs)("div",{children:[(0,Fe.jsx)("p",{className:"config-error",style:{color:"red"},children:(0,Fe.jsx)(lg,{children:A(Kp.InvalidObjectField,[c||"root",I.message])})}),(0,Fe.jsx)("pre",{children:JSON.stringify(E)})]})}const N=jp("ObjectFieldTemplate",y,_),T={title:!1===_.label?"":j,description:!1===_.label?void 0:R,properties:O.map((e=>{const t=tf()(E,[Pd,e,hd]),r=t?a.additionalProperties:a[e],n="hidden"===Fd(r).widget,o=Hd()(l,[e],{});return{content:(0,Fe.jsx)(C,{name:e,required:this.isRequired(e),schema:Hd()(E,[Pd,e],{}),uiSchema:r,errorSchema:Hd()(s,e),idSchema:o,idPrefix:h,idSeparator:m,formData:Hd()(i,e),formContext:x,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,t),onBlur:g,onFocus:v,registry:y,disabled:d,readonly:f,hideError:p,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:f,disabled:d,required:u,hidden:n}})),readonly:f,disabled:d,required:u,idSchema:l,uiSchema:a,errorSchema:s,schema:E,formData:i,formContext:x,registry:y};return(0,Fe.jsx)(N,{...T,onAddClick:this.handleAddClick})}}const fg=dg,pg={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function hg(e){const{schema:r,idSchema:n,uiSchema:o,formData:a,errorSchema:i,idPrefix:s,idSeparator:l,name:c,onChange:u,onKeyChange:d,onDropPropertyClick:f,required:p,registry:h,wasPropertyKeyModified:m=!1}=e,{formContext:g,schemaUtils:v,globalUiOptions:y}=h,b=Fd(o,y),w=jp("FieldTemplate",h,b),x=jp("DescriptionFieldTemplate",h,b),S=jp("FieldHelpTemplate",h,b),A=jp("FieldErrorTemplate",h,b),k=v.retrieveSchema(r,a),C=n[Ad],E=Qf(v.toIdSchema(k,C,a,s,l),n),_=(0,t.useCallback)(((e,t,r)=>u(e,t,r||C)),[C,u]),P=function(e,t,r,n){const o=t.field,{fields:a,translateString:i}=n;if("function"===typeof o)return o;if("string"===typeof o&&o in a)return a[o];const s=If(e),l=Array.isArray(s)?s[0]:s||"",c=e.$id;let u=pg[l];return c&&c in a&&(u=c),u||!e.anyOf&&!e.oneOf?u in a?a[u]:()=>{const o=jp("UnsupportedFieldTemplate",n,t);return(0,Fe.jsx)(o,{schema:e,idSchema:r,reason:i(Kp.UnknownFieldType,[String(e.type)]),registry:n})}:()=>null}(k,b,E,h),j=Boolean(e.disabled||b.disabled),R=Boolean(e.readonly||b.readonly||e.schema.readOnly||k.readOnly),O=b.hideError,N=void 0===O?e.hideError:Boolean(O),T=Boolean(e.autofocus||b.autofocus);if(0===Object.keys(k).length)return null;const I=v.getDisplayLabel(k,o,y),{__errors:M,...F}=i||{},D=Qd()(o,["ui:classNames","classNames","ui:style"]);Md in D&&(D[Md]=Qd()(D[Md],["classNames","style"]));const z=(0,Fe.jsx)(P,{...e,onChange:_,idSchema:E,schema:k,uiSchema:D,disabled:j,readonly:R,hideError:N,autofocus:T,errorSchema:F,formContext:g,rawErrors:M}),L=E[Ad];let B;B=m||hd in k?c:b.title||e.schema.title||k.title||e.title||c;const $=b.description||e.schema.description||k.description||"",W=b.enableMarkdownInDescription?(0,Fe.jsx)(lg,{children:$}):$,V=b.help,U="hidden"===b.widget,H=["form-group","field","field-".concat(If(k))];!N&&M&&M.length>0&&H.push("field-error has-error has-danger"),(null===o||void 0===o?void 0:o.classNames)&&H.push(o.classNames),b.classNames&&H.push(b.classNames);const q=(0,Fe.jsx)(S,{help:V,idSchema:E,schema:k,uiSchema:o,hasErrors:!N&&M&&M.length>0,registry:h}),G=N||(k.anyOf||k.oneOf)&&!v.isSelect(k)?void 0:(0,Fe.jsx)(A,{errors:M,errorSchema:i,idSchema:E,schema:k,uiSchema:o,registry:h}),K={description:(0,Fe.jsx)(x,{id:Ip(L),description:W,schema:k,uiSchema:o,registry:h}),rawDescription:$,help:q,rawHelp:"string"===typeof V?V:void 0,errors:G,rawErrors:N?void 0:M,id:L,label:B,hidden:U,onChange:u,onKeyChange:d,onDropPropertyClick:f,required:p,disabled:j,readonly:R,hideError:N,displayLabel:I,classNames:H.join(" ").trim(),style:b.style,formContext:g,formData:a,schema:k,uiSchema:o,registry:h},X=h.fields.AnyOfField,Q=h.fields.OneOfField,Y=(null===o||void 0===o?void 0:o["ui:field"])&&!0===(null===o||void 0===o?void 0:o["ui:fieldReplacesAnyOrOneOf"]);return(0,Fe.jsx)(w,{...K,children:(0,Fe.jsxs)(Fe.Fragment,{children:[z,k.anyOf&&!Y&&!v.isSelect(k)&&(0,Fe.jsx)(X,{name:c,disabled:j,readonly:R,hideError:N,errorSchema:i,formData:a,formContext:g,idPrefix:s,idSchema:E,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:k.anyOf.map((e=>v.retrieveSchema(af()(e)?e:{},a))),registry:h,schema:k,uiSchema:o}),k.oneOf&&!Y&&!v.isSelect(k)&&(0,Fe.jsx)(Q,{name:c,disabled:j,readonly:R,hideError:N,errorSchema:i,formData:a,formContext:g,idPrefix:s,idSchema:E,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:k.oneOf.map((e=>v.retrieveSchema(af()(e)?e:{},a))),registry:h,schema:k,uiSchema:o})]})})}class mg extends t.Component{shouldComponentUpdate(e){return!Vd(this.props,e)}render(){return(0,Fe.jsx)(hg,{...this.props})}}const gg=mg;const vg=function(e){var t;const{schema:r,name:n,uiSchema:o,idSchema:a,formData:i,required:s,disabled:l=!1,readonly:c=!1,autofocus:u=!1,onChange:d,onBlur:f,onFocus:p,registry:h,rawErrors:m,hideError:g}=e,{title:v,format:y}=r,{widgets:b,formContext:w,schemaUtils:x,globalUiOptions:S}=h,A=x.isSelect(r)?Wp(r):void 0;let k=A?"select":"text";y&&function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return Np(e,t,r),!0}catch(bh){const t=bh;if(t.message&&(t.message.startsWith("No widget")||t.message.startsWith("Unsupported widget")))return!1;throw bh}}(r,y,b)&&(k=y);const{widget:C=k,placeholder:E="",title:_,...P}=Fd(o),j=x.getDisplayLabel(r,o,S),R=null!==(t=null!==_&&void 0!==_?_:v)&&void 0!==t?t:n,O=Np(r,C,b);return(0,Fe.jsx)(O,{options:{...P,enumOptions:A},schema:r,uiSchema:o,id:a.$id,name:n,label:R,hideLabel:!j,hideError:g,value:i,onChange:d,onBlur:f,onFocus:p,required:s,disabled:l,readonly:c,formContext:w,autofocus:u,registry:h,placeholder:E,rawErrors:m})};const yg=function(e){const{formData:r,onChange:n}=e;return(0,t.useEffect)((()=>{void 0===r&&n(null)}),[r,n]),null};const bg=function(){return{AnyOfField:dh,ArrayField:lh,BooleanField:ch,NumberField:hh,ObjectField:fg,OneOfField:dh,SchemaField:gg,StringField:vg,NullField:yg}};function wg(e){const{idSchema:t,description:r,registry:n,schema:o,uiSchema:a}=e,i=Fd(a,n.globalUiOptions),{label:s=!0}=i;if(!r||!s)return null;const l=jp("DescriptionFieldTemplate",n,i);return(0,Fe.jsx)(l,{id:Ip(t),description:r,schema:o,uiSchema:a,registry:n})}function xg(e){const{children:t,className:r,disabled:n,hasToolbar:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,hasCopy:l,index:c,onCopyIndexClick:u,onDropIndexClick:d,onReorderClick:f,readonly:p,registry:h,uiSchema:m}=e,{CopyButton:g,MoveDownButton:v,MoveUpButton:y,RemoveButton:b}=h.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return(0,Fe.jsxs)("div",{className:r,children:[(0,Fe.jsx)("div",{className:o?"col-xs-9":"col-xs-12",children:t}),o&&(0,Fe.jsx)("div",{className:"col-xs-3 array-item-toolbox",children:(0,Fe.jsxs)("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(i||a)&&(0,Fe.jsx)(y,{style:w,disabled:n||p||!i,onClick:f(c,c-1),uiSchema:m,registry:h}),(i||a)&&(0,Fe.jsx)(v,{style:w,disabled:n||p||!a,onClick:f(c,c+1),uiSchema:m,registry:h}),l&&(0,Fe.jsx)(g,{style:w,disabled:n||p,onClick:u(c),uiSchema:m,registry:h}),s&&(0,Fe.jsx)(b,{style:w,disabled:n||p,onClick:d(c),uiSchema:m,registry:h})]})})]})}function Sg(e){const{canAdd:t,className:r,disabled:n,idSchema:o,uiSchema:a,items:i,onAddClick:s,readonly:l,registry:c,required:u,schema:d,title:f}=e,p=Fd(a),h=jp("ArrayFieldDescriptionTemplate",c,p),m=jp("ArrayFieldItemTemplate",c,p),g=jp("ArrayFieldTitleTemplate",c,p),{ButtonTemplates:{AddButton:v}}=c.templates;return(0,Fe.jsxs)("fieldset",{className:r,id:o.$id,children:[(0,Fe.jsx)(g,{idSchema:o,title:p.title||f,required:u,schema:d,uiSchema:a,registry:c}),(0,Fe.jsx)(h,{idSchema:o,description:p.description||d.description,schema:d,uiSchema:a,registry:c}),(0,Fe.jsx)("div",{className:"row array-item-list",children:i&&i.map((e=>{let{key:t,...r}=e;return(0,Fe.jsx)(m,{...r},t)}))}),t&&(0,Fe.jsx)(v,{className:"array-item-add",onClick:s,disabled:n||l,uiSchema:a,registry:c})]})}function Ag(e){const{idSchema:t,title:r,schema:n,uiSchema:o,required:a,registry:i}=e,s=Fd(o,i.globalUiOptions),{label:l=!0}=s;if(!r||!l)return null;const c=jp("TitleFieldTemplate",i,s);return(0,Fe.jsx)(c,{id:zp(t),title:r,required:a,schema:n,uiSchema:o,registry:i})}function kg(e){const{id:r,name:n,value:o,readonly:a,disabled:i,autofocus:s,onBlur:l,onFocus:c,onChange:u,onChangeOverride:d,options:f,schema:p,uiSchema:h,formContext:m,registry:g,rawErrors:v,type:y,hideLabel:b,hideError:w,...x}=e;if(!r)throw console.log("No id for",e),new Error("no id for props ".concat(JSON.stringify(e)));const S={...x,...Ep(p,y,f)};let A;A="number"===S.type||"integer"===S.type?o||0===o?o:"":null==o?"":o;const k=(0,t.useCallback)((e=>{let{target:{value:t}}=e;return u(""===t?f.emptyValue:t)}),[u,f]),C=(0,t.useCallback)((e=>{let{target:{value:t}}=e;return l(r,t)}),[l,r]),E=(0,t.useCallback)((e=>{let{target:{value:t}}=e;return c(r,t)}),[c,r]);return(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)("input",{id:r,name:r,className:"form-control",readOnly:a,disabled:i,autoFocus:s,value:A,...S,list:p.examples?Fp(r):void 0,onChange:d||k,onBlur:C,onFocus:E,"aria-describedby":Lp(r,!!p.examples)}),Array.isArray(p.examples)&&(0,Fe.jsx)("datalist",{id:Fp(r),children:p.examples.concat(p.default&&!p.examples.includes(p.default)?[p.default]:[]).map((e=>(0,Fe.jsx)("option",{value:e},e)))},"datalist_".concat(r))]})}function Cg(e){let{uiSchema:t}=e;const{submitText:r,norender:n,props:o={}}=Pp(t);return n?null:(0,Fe.jsx)("div",{children:(0,Fe.jsx)("button",{type:"submit",...o,className:"btn btn-info ".concat(o.className||""),children:r})})}function Eg(e){const{iconType:t="default",icon:r,className:n,uiSchema:o,registry:a,...i}=e;return(0,Fe.jsx)("button",{type:"button",className:"btn btn-".concat(t," ").concat(n),...i,children:(0,Fe.jsx)("i",{className:"glyphicon glyphicon-".concat(r)})})}function _g(e){const{registry:{translateString:t}}=e;return(0,Fe.jsx)(Eg,{title:t(Kp.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function Pg(e){const{registry:{translateString:t}}=e;return(0,Fe.jsx)(Eg,{title:t(Kp.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function jg(e){const{registry:{translateString:t}}=e;return(0,Fe.jsx)(Eg,{title:t(Kp.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function Rg(e){const{registry:{translateString:t}}=e;return(0,Fe.jsx)(Eg,{title:t(Kp.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function Og(e){let{className:t,onClick:r,disabled:n,registry:o}=e;const{translateString:a}=o;return(0,Fe.jsx)("div",{className:"row",children:(0,Fe.jsx)("p",{className:"col-xs-3 col-xs-offset-9 text-right ".concat(t),children:(0,Fe.jsx)(Eg,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:a(Kp.AddButton),onClick:r,disabled:n,registry:o})})})}const Ng=function(){return{SubmitButton:Cg,AddButton:Og,CopyButton:_g,MoveDownButton:Pg,MoveUpButton:jg,RemoveButton:Rg}};function Tg(e){const{id:t,description:r}=e;return r?"string"===typeof r?(0,Fe.jsx)("p",{id:t,className:"field-description",children:r}):(0,Fe.jsx)("div",{id:t,className:"field-description",children:r}):null}function Ig(e){let{errors:t,registry:r}=e;const{translateString:n}=r;return(0,Fe.jsxs)("div",{className:"panel panel-danger errors",children:[(0,Fe.jsx)("div",{className:"panel-heading",children:(0,Fe.jsx)("h3",{className:"panel-title",children:n(Kp.ErrorsLabel)})}),(0,Fe.jsx)("ul",{className:"list-group",children:t.map(((e,t)=>(0,Fe.jsx)("li",{className:"list-group-item text-danger",children:e.stack},t)))})]})}const Mg="*";function Fg(e){const{label:t,required:r,id:n}=e;return t?(0,Fe.jsxs)("label",{className:"control-label",htmlFor:n,children:[t,r&&(0,Fe.jsx)("span",{className:"required",children:Mg})]}):null}const Dg=function(e){const{id:t,label:r,children:n,errors:o,help:a,description:i,hidden:s,required:l,displayLabel:c,registry:u,uiSchema:d}=e,f=jp("WrapIfAdditionalTemplate",u,Fd(d));return s?(0,Fe.jsx)("div",{className:"hidden",children:n}):(0,Fe.jsxs)(f,{...e,children:[c&&(0,Fe.jsx)(Fg,{label:r,required:l,id:t}),c&&i?i:null,n,o,a]})};function zg(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=Mp(r);return(0,Fe.jsx)("div",{children:(0,Fe.jsx)("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:t.filter((e=>!!e)).map(((e,t)=>(0,Fe.jsx)("li",{className:"text-danger",children:e},t)))})})}function Lg(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=Dp(t);return"string"===typeof r?(0,Fe.jsx)("p",{id:n,className:"help-block",children:r}):(0,Fe.jsx)("div",{id:n,className:"help-block",children:r})}function Bg(e){const{description:t,disabled:r,formData:n,idSchema:o,onAddClick:a,properties:i,readonly:s,registry:l,required:c,schema:u,title:d,uiSchema:f}=e,p=Fd(f),h=jp("TitleFieldTemplate",l,p),m=jp("DescriptionFieldTemplate",l,p),{ButtonTemplates:{AddButton:g}}=l.templates;return(0,Fe.jsxs)("fieldset",{id:o.$id,children:[d&&(0,Fe.jsx)(h,{id:zp(o),title:d,required:c,schema:u,uiSchema:f,registry:l}),t&&(0,Fe.jsx)(m,{id:Ip(o),description:t,schema:u,uiSchema:f,registry:l}),i.map((e=>e.content)),Dd(u,f,n)&&(0,Fe.jsx)(g,{className:"object-property-expand",onClick:a(u),disabled:r||s,uiSchema:f,registry:l})]})}const $g="*";function Wg(e){const{id:t,title:r,required:n}=e;return(0,Fe.jsxs)("legend",{id:t,children:[r,n&&(0,Fe.jsx)("span",{className:"required",children:$g})]})}const Vg=function(e){const{schema:t,idSchema:r,reason:n,registry:o}=e,{translateString:a}=o;let i=Kp.UnsupportedField;const s=[];return r&&r.$id&&(i=Kp.UnsupportedFieldWithId,s.push(r.$id)),n&&(i=i===Kp.UnsupportedField?Kp.UnsupportedFieldWithReason:Kp.UnsupportedFieldWithIdAndReason,s.push(n)),(0,Fe.jsxs)("div",{className:"unsupported-field",children:[(0,Fe.jsx)("p",{children:(0,Fe.jsx)(lg,{children:a(i,s)})}),t&&(0,Fe.jsx)("pre",{children:JSON.stringify(t,null,2)})]})};function Ug(e){const{id:t,classNames:r,style:n,disabled:o,label:a,onKeyChange:i,onDropPropertyClick:s,readonly:l,required:c,schema:u,children:d,uiSchema:f,registry:p}=e,{templates:h,translateString:m}=p,{RemoveButton:g}=h.ButtonTemplates,v=m(Kp.KeyLabel,[a]);return hd in u?(0,Fe.jsx)("div",{className:r,style:n,children:(0,Fe.jsxs)("div",{className:"row",children:[(0,Fe.jsx)("div",{className:"col-xs-5 form-additional",children:(0,Fe.jsxs)("div",{className:"form-group",children:[(0,Fe.jsx)(Fg,{label:v,required:c,id:"".concat(t,"-key")}),(0,Fe.jsx)("input",{className:"form-control",type:"text",id:"".concat(t,"-key"),onBlur:e=>i(e.target.value),defaultValue:a})]})}),(0,Fe.jsx)("div",{className:"form-additional form-group col-xs-5",children:d}),(0,Fe.jsx)("div",{className:"col-xs-2",children:(0,Fe.jsx)(g,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||l,onClick:s(a),uiSchema:f,registry:p})})]})}):(0,Fe.jsx)("div",{className:r,style:n,children:d})}const Hg=function(){return{ArrayFieldDescriptionTemplate:wg,ArrayFieldItemTemplate:xg,ArrayFieldTemplate:Sg,ArrayFieldTitleTemplate:Ag,ButtonTemplates:Ng(),BaseInputTemplate:kg,DescriptionFieldTemplate:Tg,ErrorListTemplate:Ig,FieldTemplate:Dg,FieldErrorTemplate:zg,FieldHelpTemplate:Lg,ObjectFieldTemplate:Bg,TitleFieldTemplate:Wg,UnsupportedFieldTemplate:Vg,WrapIfAdditionalTemplate:Ug}};function qg(e,t){const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:Vp(n,2)});return r}function Gg(e){let{type:t,range:r,value:n,select:o,rootId:a,name:i,disabled:s,readonly:l,autofocus:c,registry:u,onBlur:d,onFocus:f}=e;const p=a+"_"+t,{SelectWidget:h}=u.widgets;return(0,Fe.jsx)(h,{schema:{type:"integer"},id:p,name:i,className:"form-control",options:{enumOptions:qg(r[0],r[1])},placeholder:t,value:n,disabled:s,readonly:l,autofocus:c,onChange:e=>o(t,e),onBlur:d,onFocus:f,registry:u,label:"","aria-describedby":Lp(a)})}const Kg=function(e){let{time:r=!1,disabled:n=!1,readonly:o=!1,autofocus:a=!1,options:i,id:s,name:l,registry:c,onBlur:u,onFocus:d,onChange:f,value:p}=e;const{translateString:h}=c,[m,g]=(0,t.useState)(p),[v,y]=(0,t.useReducer)(((e,t)=>({...e,...t})),Up(p,r));(0,t.useEffect)((()=>{const e=qp(v,r);!function(e){return Object.values(e).every((e=>-1!==e))}(v)||e===p?m!==p&&(g(p),y(Up(p,r))):f(e)}),[r,p,f,v,m]);const b=(0,t.useCallback)(((e,t)=>{y({[e]:t})}),[]),w=(0,t.useCallback)((e=>{if(e.preventDefault(),n||o)return;const t=Up((new Date).toJSON(),r);f(qp(t,r))}),[n,o,r]),x=(0,t.useCallback)((e=>{e.preventDefault(),n||o||f(void 0)}),[n,o,f]);return(0,Fe.jsxs)("ul",{className:"list-inline",children:[kp(v,r,i.yearsRange,i.format).map(((e,t)=>(0,Fe.jsx)("li",{className:"list-inline-item",children:(0,Fe.jsx)(Gg,{rootId:s,name:l,select:b,...e,disabled:n,readonly:o,registry:c,onBlur:u,onFocus:d,autofocus:a&&0===t})},t))),("undefined"===i.hideNowButton||!i.hideNowButton)&&(0,Fe.jsx)("li",{className:"list-inline-item",children:(0,Fe.jsx)("a",{href:"#",className:"btn btn-info btn-now",onClick:w,children:h(Kp.NowLabel)})}),("undefined"===i.hideClearButton||!i.hideClearButton)&&(0,Fe.jsx)("li",{className:"list-inline-item",children:(0,Fe.jsx)("a",{href:"#",className:"btn btn-warning btn-clear",onClick:x,children:h(Kp.ClearLabel)})})]})};const Xg=function(e){let{time:t=!0,...r}=e;const{AltDateWidget:n}=r.registry.widgets;return(0,Fe.jsx)(n,{time:t,...r})};const Qg=function(e){let{schema:r,uiSchema:n,options:o,id:a,value:i,disabled:s,readonly:l,label:c,hideLabel:u,autofocus:d=!1,onBlur:f,onFocus:p,onChange:h,registry:m}=e;var g;const v=jp("DescriptionFieldTemplate",m,o),y=Hp(r),b=(0,t.useCallback)((e=>h(e.target.checked)),[h]),w=(0,t.useCallback)((e=>f(a,e.target.checked)),[f,a]),x=(0,t.useCallback)((e=>p(a,e.target.checked)),[p,a]),S=null!==(g=o.description)&&void 0!==g?g:r.description;return(0,Fe.jsxs)("div",{className:"checkbox ".concat(s||l?"disabled":""),children:[!u&&!!S&&(0,Fe.jsx)(v,{id:Ip(a),description:S,schema:r,uiSchema:n,registry:m}),(0,Fe.jsxs)("label",{children:[(0,Fe.jsx)("input",{type:"checkbox",id:a,name:a,checked:"undefined"!==typeof i&&i,required:y,disabled:s||l,autoFocus:d,onChange:b,onBlur:w,onFocus:x,"aria-describedby":Lp(a)}),$p((0,Fe.jsx)("span",{children:c}),u)]})]})};const Yg=function(e){let{id:r,disabled:n,options:{inline:o=!1,enumOptions:a,enumDisabled:i,emptyValue:s},value:l,autofocus:c=!1,readonly:u,onChange:d,onBlur:f,onFocus:p}=e;const h=Array.isArray(l)?l:[l],m=(0,t.useCallback)((e=>{let{target:{value:t}}=e;return f(r,hp(t,a,s))}),[f,r]),g=(0,t.useCallback)((e=>{let{target:{value:t}}=e;return p(r,hp(t,a,s))}),[p,r]);return(0,Fe.jsx)("div",{className:"checkboxes",id:r,children:Array.isArray(a)&&a.map(((e,t)=>{const s=gp(e.value,h),l=Array.isArray(i)&&-1!==i.indexOf(e.value),f=n||l||u?"disabled":"",p=(0,Fe.jsxs)("span",{children:[(0,Fe.jsx)("input",{type:"checkbox",id:Bp(r,t),name:r,checked:s,value:String(t),disabled:n||l||u,autoFocus:c&&0===t,onChange:e=>{e.target.checked?d(wp(t,h,a)):d(mp(t,h,a))},onBlur:m,onFocus:g,"aria-describedby":Lp(r)}),(0,Fe.jsx)("span",{children:e.label})]});return o?(0,Fe.jsx)("label",{className:"checkbox-inline ".concat(f),children:p},t):(0,Fe.jsx)("div",{className:"checkbox ".concat(f),children:(0,Fe.jsx)("label",{children:p})},t)}))})};function Jg(e){const{disabled:t,readonly:r,options:n,registry:o}=e,a=jp("BaseInputTemplate",o,n);return(0,Fe.jsx)(a,{type:"color",...e,disabled:t||r})}function Zg(e){const{onChange:r,options:n,registry:o}=e,a=jp("BaseInputTemplate",o,n),i=(0,t.useCallback)((e=>r(e||void 0)),[r]);return(0,Fe.jsx)(a,{type:"date",...e,onChange:i})}function ev(e){const{onChange:t,value:r,options:n,registry:o}=e,a=jp("BaseInputTemplate",o,n);return(0,Fe.jsx)(a,{type:"datetime-local",...e,value:Jp(r),onChange:e=>{return t((r=e)?new Date(r).toJSON():void 0);var r}})}function tv(e){const{options:t,registry:r}=e,n=jp("BaseInputTemplate",r,t);return(0,Fe.jsx)(n,{type:"email",...e})}function rv(e,t){return null===e?null:e.replace(";base64",";name=".concat(encodeURIComponent(t),";base64"))}function nv(e){const{name:t,size:r,type:n}=e;return new Promise(((o,a)=>{const i=new window.FileReader;i.onerror=a,i.onload=e=>{var a;"string"===typeof(null===(a=e.target)||void 0===a?void 0:a.result)?o({dataURL:rv(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},i.readAsDataURL(e)}))}function ov(e){let{fileInfo:t,registry:r}=e;const{translateString:n}=r,{dataURL:o,type:a,name:i}=t;return o?["image/jpeg","image/png"].includes(a)?(0,Fe.jsx)("img",{src:o,style:{maxWidth:"100%"},className:"file-preview"}):(0,Fe.jsxs)(Fe.Fragment,{children:[" ",(0,Fe.jsx)("a",{download:"preview-".concat(i),href:o,className:"file-download",children:n(Kp.PreviewLabel)})]}):null}function av(e){let{filesInfo:t,registry:r,preview:n,onRemove:o,options:a}=e;if(0===t.length)return null;const{translateString:i}=r,{RemoveButton:s}=jp("ButtonTemplates",r,a);return(0,Fe.jsx)("ul",{className:"file-info",children:t.map(((e,t)=>{const{name:a,size:l,type:c}=e;return(0,Fe.jsxs)("li",{children:[(0,Fe.jsx)(lg,{children:i(Kp.FilesInfo,[a,c,String(l)])}),n&&(0,Fe.jsx)(ov,{fileInfo:e,registry:r}),(0,Fe.jsx)(s,{onClick:()=>o(t),registry:r})]},t)}))})}function iv(e){return e.reduce(((e,t)=>{if(!t)return e;try{const{blob:r,name:n}=function(e){var t;if(-1===e.indexOf("data:"))throw new Error("File is invalid: URI must be a dataURI");const r=e.slice(5).split(";base64,");if(2!==r.length)throw new Error("File is invalid: dataURI must be base64");const[n,o]=r,[a,...i]=n.split(";"),s=a||"",l=decodeURI((null===(t=i.map((e=>e.split("="))).find((e=>{let[t]=e;return"name"===t})))||void 0===t?void 0:t[1])||"unknown");try{const e=atob(o),t=new Array(e.length);for(let r=0;r{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(nv))).then((e=>{const t=e.map((e=>e.dataURL));i(a?s.concat(t[0]):t[0])}))}),[a,s,i]),f=(0,t.useMemo)((()=>iv(Array.isArray(s)?s:[s])),[s]),p=(0,t.useCallback)((e=>{if(a){const t=s.filter(((t,r)=>r!==e));i(t)}else i(void 0)}),[a,s,i]);return(0,Fe.jsxs)("div",{children:[(0,Fe.jsx)(u,{...e,disabled:r||n,type:"file",required:!s&&o,onChangeOverride:d,value:"",accept:l.accept?String(l.accept):void 0}),(0,Fe.jsx)(av,{filesInfo:f,onRemove:p,registry:c,preview:l.filePreview,options:l})]})};const lv=function(e){let{id:t,value:r}=e;return(0,Fe.jsx)("input",{type:"hidden",id:t,name:t,value:"undefined"===typeof r?"":r})};function cv(e){const{options:t,registry:r}=e,n=jp("BaseInputTemplate",r,t);return(0,Fe.jsx)(n,{type:"password",...e})}const uv=function(e){let{options:r,value:n,required:o,disabled:a,readonly:i,autofocus:s=!1,onBlur:l,onFocus:c,onChange:u,id:d}=e;const{enumOptions:f,enumDisabled:p,inline:h,emptyValue:m}=r,g=(0,t.useCallback)((e=>{let{target:{value:t}}=e;return l(d,hp(t,f,m))}),[l,d]),v=(0,t.useCallback)((e=>{let{target:{value:t}}=e;return c(d,hp(t,f,m))}),[c,d]);return(0,Fe.jsx)("div",{className:"field-radio-group",id:d,children:Array.isArray(f)&&f.map(((e,t)=>{const r=gp(e.value,n),l=Array.isArray(p)&&-1!==p.indexOf(e.value),c=a||l||i?"disabled":"",f=(0,Fe.jsxs)("span",{children:[(0,Fe.jsx)("input",{type:"radio",id:Bp(d,t),checked:r,name:d,required:o,value:String(t),disabled:a||l||i,autoFocus:s&&0===t,onChange:()=>u(e.value),onBlur:g,onFocus:v,"aria-describedby":Lp(d)}),(0,Fe.jsx)("span",{children:e.label})]});return h?(0,Fe.jsx)("label",{className:"radio-inline ".concat(c),children:f},t):(0,Fe.jsx)("div",{className:"radio ".concat(c),children:(0,Fe.jsx)("label",{children:f})},t)}))})};function dv(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return(0,Fe.jsxs)("div",{className:"field-range-wrapper",children:[(0,Fe.jsx)(r,{type:"range",...e}),(0,Fe.jsx)("span",{className:"range-view",children:t})]})}function fv(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}const pv=function(e){let{schema:r,id:n,options:o,value:a,required:i,disabled:s,readonly:l,multiple:c=!1,autofocus:u=!1,onChange:d,onBlur:f,onFocus:p,placeholder:h}=e;const{enumOptions:m,enumDisabled:g,emptyValue:v}=o,y=c?[]:"",b=(0,t.useCallback)((e=>{const t=fv(e,c);return p(n,hp(t,m,v))}),[p,n,r,c,o]),w=(0,t.useCallback)((e=>{const t=fv(e,c);return f(n,hp(t,m,v))}),[f,n,r,c,o]),x=(0,t.useCallback)((e=>{const t=fv(e,c);return d(hp(t,m,v))}),[d,r,c,o]),S=vp(a,m,c);return(0,Fe.jsxs)("select",{id:n,name:n,multiple:c,className:"form-control",value:"undefined"===typeof S?y:S,required:i,disabled:s||l,autoFocus:u,onBlur:w,onFocus:b,onChange:x,"aria-describedby":Lp(n),children:[!c&&void 0===r.default&&(0,Fe.jsx)("option",{value:"",children:h}),Array.isArray(m)&&m.map(((e,t)=>{let{value:r,label:n}=e;const o=g&&-1!==g.indexOf(r);return(0,Fe.jsx)("option",{value:String(t),disabled:o,children:n},t)}))]})};function hv(e){let{id:r,options:n={},placeholder:o,value:a,required:i,disabled:s,readonly:l,autofocus:c=!1,onChange:u,onBlur:d,onFocus:f}=e;const p=(0,t.useCallback)((e=>{let{target:{value:t}}=e;return u(""===t?n.emptyValue:t)}),[u,n.emptyValue]),h=(0,t.useCallback)((e=>{let{target:{value:t}}=e;return d(r,t)}),[d,r]),m=(0,t.useCallback)((e=>{let{target:{value:t}}=e;return f(r,t)}),[r,f]);return(0,Fe.jsx)("textarea",{id:r,name:r,className:"form-control",value:a||"",placeholder:o,required:i,disabled:s,readOnly:l,autoFocus:c,rows:n.rows,onBlur:h,onFocus:m,onChange:p,"aria-describedby":Lp(r)})}hv.defaultProps={autofocus:!1,options:{}};const mv=hv;function gv(e){const{options:t,registry:r}=e,n=jp("BaseInputTemplate",r,t);return(0,Fe.jsx)(n,{...e})}function vv(e){const{onChange:r,options:n,registry:o}=e,a=jp("BaseInputTemplate",o,n),i=(0,t.useCallback)((e=>r(e?"".concat(e,":00"):void 0)),[r]);return(0,Fe.jsx)(a,{type:"time",...e,onChange:i})}function yv(e){const{options:t,registry:r}=e,n=jp("BaseInputTemplate",r,t);return(0,Fe.jsx)(n,{type:"url",...e})}function bv(e){const{options:t,registry:r}=e,n=jp("BaseInputTemplate",r,t);return(0,Fe.jsx)(n,{type:"number",...e})}const wv=function(){return{AltDateWidget:Kg,AltDateTimeWidget:Xg,CheckboxWidget:Qg,CheckboxesWidget:Yg,ColorWidget:Jg,DateWidget:Zg,DateTimeWidget:ev,EmailWidget:tv,FileWidget:sv,HiddenWidget:lv,PasswordWidget:cv,RadioWidget:uv,RangeWidget:dv,SelectWidget:pv,TextWidget:gv,TextareaWidget:mv,TimeWidget:vv,UpDownWidget:bv,URLWidget:yv}};class xv extends t.Component{constructor(e){if(super(e),this.getUsedFormData=(e,t)=>{if(0===t.length&&"object"!==typeof e)return e;const r=rh()(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r},this.getFieldNames=(e,t)=>{const r=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[[]];return Object.keys(e).forEach((a=>{if("object"===typeof e[a]){const t=o.map((e=>[...e,a]));e[a][Nd]&&""!==e[a][Ed]?n.push(e[a][Ed]):r(e[a],n,t)}else a===Ed&&""!==e[a]&&o.forEach((e=>{const r=Hd()(t,e);("object"!==typeof r||Gd()(r)||Array.isArray(r)&&r.every((e=>"object"!==typeof e)))&&n.push(e)}))})),n};return r(e)},this.onChange=(e,t,r)=>{const{extraErrors:n,omitExtraData:o,liveOmit:a,noValidate:i,liveValidate:s,onChange:l}=this.props,{schemaUtils:c,schema:u,retrievedSchema:d}=this.state;if(fd(e)||Array.isArray(e)){e=this.getStateFromProps(this.props,e,d).formData}const f=!i&&s;let p,h={formData:e,schema:u},m=e;if(!0===o&&!0===a){p=c.retrieveSchema(u,e);const t=c.toPathSchema(p,"",e),r=this.getFieldNames(t,e);m=this.getUsedFormData(e,r),h={formData:m}}if(f){const e=this.validate(m,u,c,d);let t=e.errors,r=e.errorSchema;const o=t,a=r;if(n){const o=Zp(e,n);r=o.errorSchema,t=o.errors}h={formData:m,errors:t,errorSchema:r,schemaValidationErrors:o,schemaValidationErrorSchema:a}}else if(!i&&t){const e=n?Qf(t,n,"preventDuplicates"):t;h={formData:m,errorSchema:e,errors:Gp(e)}}p&&(h.retrievedSchema=p),this.setState(h,(()=>l&&l({...this.state,...h},r)))},this.reset=()=>{const{onChange:e}=this.props,t={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(t,(()=>e&&e({...this.state,...t})))},this.onBlur=(e,t)=>{const{onBlur:r}=this.props;r&&r(e,t)},this.onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)},this.onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:t,extraErrors:r,noValidate:n,onSubmit:o}=this.props;let{formData:a}=this.state;const{schema:i,schemaUtils:s}=this.state;if(!0===t){const e=s.retrieveSchema(i,a),t=s.toPathSchema(e,"",a),r=this.getFieldNames(t,a);a=this.getUsedFormData(a,r)}if(n||this.validateForm()){const t=r||{},n=r?Gp(r):[];this.setState({formData:a,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o({...this.state,formData:a,status:"submitted"},e)}))}},this.submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}},!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!Vd(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=(0,t.createRef)()}getSnapshotBeforeUpdate(e,t){if(!Vd(this.props,e)){const r=!Vd(e.schema,this.props.schema),n=!Vd(e.formData,this.props.formData),o=this.getStateFromProps(this.props,this.props.formData,r||n?void 0:this.state.retrievedSchema,r);return{nextState:o,shouldUpdate:!Vd(o,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,r){if(r.shouldUpdate){const{nextState:e}=r;Vd(e.formData,this.props.formData)||Vd(e.formData,t.formData)||!this.props.onChange||this.props.onChange(e),this.setState(e)}}getStateFromProps(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=this.state||{},a="schema"in e?e.schema:this.props.schema,i=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},s="undefined"!==typeof t,l="liveValidate"in e?e.liveValidate:this.props.liveValidate,c=s&&!e.noValidate&&l,u=a,d="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let f=o.schemaUtils;f&&!f.doesSchemaUtilsDiffer(e.validator,u,d)||(f=function(e,t){return new fp(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(e.validator,u,d));const p=f.getDefaultFormState(a,t),h=null!==r&&void 0!==r?r:f.retrieveSchema(a,p);let m,g,v=o.schemaValidationErrors,y=o.schemaValidationErrorSchema;if(c){const e=this.validate(p,a,f,h);m=e.errors,g=e.errorSchema,v=m,y=g}else{const t=e.noValidate||n?{errors:[],errorSchema:{}}:e.liveValidate?{errors:o.errors||[],errorSchema:o.errorSchema||{}}:{errors:o.schemaValidationErrors||[],errorSchema:o.schemaValidationErrorSchema||{}};m=t.errors,g=t.errorSchema}if(e.extraErrors){const t=Zp({errorSchema:g,errors:m},e.extraErrors);g=t.errorSchema,m=t.errors}const b=f.toIdSchema(h,i["ui:rootFieldId"],p,e.idPrefix,e.idSeparator);return{schemaUtils:f,schema:a,uiSchema:i,idSchema:b,formData:p,edit:s,errors:m,errorSchema:g,schemaValidationErrors:v,schemaValidationErrorSchema:y,retrievedSchema:h}}shouldComponentUpdate(e,t){return function(e,t,r){const{props:n,state:o}=e;return!Vd(n,t)||!Vd(o,r)}(this,e,t)}validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.schema,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;const o=r||this.state.schemaUtils,{customValidate:a,transformErrors:i,uiSchema:s}=this.props,l=null!==n&&void 0!==n?n:o.retrieveSchema(t,e);return o.getValidator().validateFormData(e,l,a,i,s)}renderErrors(e){const{errors:t,errorSchema:r,schema:n,uiSchema:o}=this.state,{formContext:a}=this.props,i=jp("ErrorListTemplate",e,Fd(o));return t&&t.length?(0,Fe.jsx)(i,{errors:t,errorSchema:r||{},schema:n,uiSchema:o,formContext:a,registry:e}):null}getRegistry(){var e;const{translateString:t,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:o,templates:a,widgets:i,formContext:s,translateString:l}={fields:bg(),templates:Hg(),widgets:wv(),rootSchema:{},formContext:{},translateString:pp};return{fields:{...o,...this.props.fields},templates:{...a,...this.props.templates,ButtonTemplates:{...a.ButtonTemplates,...null===(e=this.props.templates)||void 0===e?void 0:e.ButtonTemplates}},widgets:{...i,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||s,schemaUtils:n,translateString:t||l,globalUiOptions:r["ui:globalOptions"]}}focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,o=Qp()(n);""===o[0]?o[0]=t:o.unshift(t);const a=o.join(r);let i=this.formElement.current.elements[a];i||(i=this.formElement.current.querySelector("input[id^=".concat(a))),i&&i.length&&(i=i[0]),i&&i.focus()}validateForm(){const{extraErrors:e,extraErrorsBlockSubmit:t,focusOnFirstError:r,onError:n}=this.props,{formData:o,errors:a}=this.state,i=this.validate(o);let s=i.errors,l=i.errorSchema;const c=s,u=l,d=s.length>0||e&&t;if(d){if(e){const t=Zp(i,e);l=t.errorSchema,s=t.errors}r&&("function"===typeof r?r(s[0]):this.focusOnError(s[0])),this.setState({errors:s,errorSchema:l,schemaValidationErrors:c,schemaValidationErrorSchema:u},(()=>{n?n(s):console.error("Form validation failed",s)}))}else a.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!d}render(){const{children:e,id:t,idPrefix:r,idSeparator:n,className:o="",tagName:a,name:i,method:s,target:l,action:c,autoComplete:u,enctype:d,acceptcharset:f,noHtml5Validate:p=!1,disabled:h=!1,readonly:m=!1,formContext:g,showErrorList:v="top",_internalFormWrapper:y}=this.props,{schema:b,uiSchema:w,formData:x,errorSchema:S,idSchema:A}=this.state,k=this.getRegistry(),{SchemaField:C}=k.fields,{SubmitButton:E}=k.templates.ButtonTemplates,_=y?a:void 0,P=y||a||"form";let{[Rd]:j={}}=Fd(w);h&&(j={...j,props:{...j.props,disabled:!0}});const R={[Md]:{[Rd]:j}};return(0,Fe.jsxs)(P,{className:o||"rjsf",id:t,name:i,method:s,target:l,action:c,autoComplete:u,encType:d,acceptCharset:f,noValidate:p,onSubmit:this.onSubmit,as:_,ref:this.formElement,children:["top"===v&&this.renderErrors(k),(0,Fe.jsx)(C,{name:"",schema:b,uiSchema:w,errorSchema:S,idSchema:A,idPrefix:r,idSeparator:n,formContext:g,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:k,disabled:h,readonly:m}),e||(0,Fe.jsx)(E,{uiSchema:R,registry:k}),"bottom"===v&&this.renderErrors(k)]})}}var Sv=r(2505);function Av(e){let{uiSchema:t,registry:r,...n}=e;const{translateString:o}=r;return(0,Fe.jsx)(qc,{title:o(Kp.AddItemButton),...n,color:"primary",children:(0,Fe.jsx)(Sv.A,{})})}const kv=["className","component"];var Cv=r(5430);const Ev=(0,hn.A)("MuiBox",["root"]),_v=(0,_e.A)(),Pv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:a}=e,i=(0,ma.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(va.A),s=t.forwardRef((function(e,t){const s=(0,We.A)(n),l=(0,Ra.A)(e),{className:c,component:u="div"}=l,d=(0,Pe.A)(l,kv);return(0,Fe.jsx)(i,(0,je.A)({as:u,ref:t,className:(0,Re.A)(c,a?a(o):o),theme:r&&s[r]||s},d))}));return s}({themeId:Ue.A,defaultTheme:_v,defaultClassName:Ev.root,generateClassName:Cv.A.generate}),jv=Pv;const Rv=t.createContext();function Ov(e){return(0,Dr.Ay)("MuiGrid",e)}const Nv=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Tv=(0,hn.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>"spacing-xs-".concat(e))),...["column-reverse","column","row-reverse","row"].map((e=>"direction-xs-".concat(e))),...["nowrap","wrap-reverse","wrap"].map((e=>"wrap-xs-".concat(e))),...Nv.map((e=>"grid-xs-".concat(e))),...Nv.map((e=>"grid-sm-".concat(e))),...Nv.map((e=>"grid-md-".concat(e))),...Nv.map((e=>"grid-lg-".concat(e))),...Nv.map((e=>"grid-xl-".concat(e)))]),Iv=Tv,Mv=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Fv(e){const t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function Dv(e){let{breakpoints:t,values:r}=e,n="";Object.keys(r).forEach((e=>{""===n&&0!==r[e]&&(n=e)}));const o=Object.keys(t).sort(((e,r)=>t[e]-t[r]));return o.slice(0,o.indexOf(n))}const zv=(0,$e.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=r;let u=[];n&&(u=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[r["spacing-xs-".concat(String(e))]];const n=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&n.push(r["spacing-".concat(t,"-").concat(String(o))])})),n}(i,c,t));const d=[];return c.forEach((e=>{const n=r[e];n&&d.push(t["grid-".concat(e,"-").concat(String(n))])})),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t["direction-xs-".concat(String(o))],"wrap"!==s&&t["wrap-xs-".concat(String(s))],...d]}})((e=>{let{ownerState:t}=e;return(0,je.A)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:r}=e;const n=(0,Oa.kW)({values:r.direction,breakpoints:t.breakpoints.values});return(0,Oa.NI)({theme:t},n,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(Iv.item)]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:r}=e;const{container:n,rowSpacing:o}=r;let a={};if(n&&0!==o){const e=(0,Oa.kW)({values:o,breakpoints:t.breakpoints.values});let r;"object"===typeof e&&(r=Dv({breakpoints:t.breakpoints.values,values:e})),a=(0,Oa.NI)({theme:t},e,((e,n)=>{var o;const a=t.spacing(e);return"0px"!==a?{marginTop:"-".concat(Fv(a)),["& > .".concat(Iv.item)]:{paddingTop:Fv(a)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,["& > .".concat(Iv.item)]:{paddingTop:0}}}))}return a}),(function(e){let{theme:t,ownerState:r}=e;const{container:n,columnSpacing:o}=r;let a={};if(n&&0!==o){const e=(0,Oa.kW)({values:o,breakpoints:t.breakpoints.values});let r;"object"===typeof e&&(r=Dv({breakpoints:t.breakpoints.values,values:e})),a=(0,Oa.NI)({theme:t},e,((e,n)=>{var o;const a=t.spacing(e);return"0px"!==a?{width:"calc(100% + ".concat(Fv(a),")"),marginLeft:"-".concat(Fv(a)),["& > .".concat(Iv.item)]:{paddingLeft:Fv(a)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,["& > .".concat(Iv.item)]:{paddingLeft:0}}}))}return a}),(function(e){let t,{theme:r,ownerState:n}=e;return r.breakpoints.keys.reduce(((e,o)=>{let a={};if(n[o]&&(t=n[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=(0,Oa.kW)({values:n.columns,breakpoints:r.breakpoints.values}),s="object"===typeof i?i[o]:i;if(void 0===s||null===s)return e;const l="".concat(Math.round(t/s*1e8)/1e6,"%");let c={};if(n.container&&n.item&&0!==n.columnSpacing){const e=r.spacing(n.columnSpacing);if("0px"!==e){const t="calc(".concat(l," + ").concat(Fv(e),")");c={flexBasis:t,maxWidth:t}}}a=(0,je.A)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===r.breakpoints.values[o]?Object.assign(e,a):e[r.breakpoints.up(o)]=a,e}),{})}));const Lv=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];r&&(c=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];const r=[];return t.forEach((t=>{const n=e[t];if(Number(n)>0){const e="spacing-".concat(t,"-").concat(String(n));r.push(e)}})),r}(a,l));const u=[];l.forEach((t=>{const r=e[t];r&&u.push("grid-".concat(t,"-").concat(String(r)))}));const d={root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==n&&"direction-xs-".concat(String(n)),"wrap"!==i&&"wrap-xs-".concat(String(i)),...u]};return(0,Ie.A)(d,Ov,t)},Bv=t.forwardRef((function(e,r){const n=(0,qe.A)({props:e,name:"MuiGrid"}),{breakpoints:o}=He(),a=(0,Ra.A)(n),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:h=0,wrap:m="wrap",zeroMinWidth:g=!1}=a,v=(0,Pe.A)(a,Mv),y=p||h,b=l||h,w=t.useContext(Rv),x=u?s||12:w,S={},A=(0,je.A)({},v);o.keys.forEach((e=>{null!=v[e]&&(S[e]=v[e],delete A[e])}));const k=(0,je.A)({},a,{columns:x,container:u,direction:d,item:f,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:g,spacing:h},S,{breakpoints:o.keys}),C=Lv(k);return(0,Fe.jsx)(Rv.Provider,{value:x,children:(0,Fe.jsx)(zv,(0,je.A)({ownerState:k,className:(0,Re.A)(C.root,i),as:c,ref:r},A))})}));const $v=Bv;function Wv(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,index:l,onCopyIndexClick:c,onDropIndexClick:u,onReorderClick:d,readonly:f,uiSchema:p,registry:h}=e,{CopyButton:m,MoveDownButton:g,MoveUpButton:v,RemoveButton:y}=h.templates.ButtonTemplates,b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return(0,Fe.jsxs)($v,{container:!0,alignItems:"center",children:[(0,Fe.jsx)($v,{item:!0,xs:!0,style:{overflow:"auto"},children:(0,Fe.jsx)(jv,{mb:2,children:(0,Fe.jsx)(cl,{elevation:2,children:(0,Fe.jsx)(jv,{p:2,children:t})})})}),n&&(0,Fe.jsxs)($v,{item:!0,children:[(i||a)&&(0,Fe.jsx)(v,{style:b,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:h}),(i||a)&&(0,Fe.jsx)(g,{style:b,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:h}),o&&(0,Fe.jsx)(m,{style:b,disabled:r||f,onClick:c(l),uiSchema:p,registry:h}),s&&(0,Fe.jsx)(y,{style:b,disabled:r||f,onClick:u(l),uiSchema:p,registry:h})]})]})}function Vv(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:o,items:a,onAddClick:i,readonly:s,registry:l,required:c,schema:u,title:d}=e,f=Fd(o),p=jp("ArrayFieldDescriptionTemplate",l,f),h=jp("ArrayFieldItemTemplate",l,f),m=jp("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:g}}=l.templates;return(0,Fe.jsx)(cl,{elevation:2,children:(0,Fe.jsxs)(jv,{p:2,children:[(0,Fe.jsx)(m,{idSchema:n,title:f.title||d,schema:u,uiSchema:o,required:c,registry:l}),(0,Fe.jsx)(p,{idSchema:n,description:f.description||u.description,schema:u,uiSchema:o,registry:l}),a&&a.map((e=>{let{key:t,...r}=e;return(0,Fe.jsx)(h,{...r},t)})),t&&(0,Fe.jsx)($v,{container:!0,justifyContent:"flex-end",children:(0,Fe.jsx)($v,{item:!0,children:(0,Fe.jsx)(jv,{mt:2,children:(0,Fe.jsx)(g,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})})})})]})})}const Uv=["date","datetime-local","file","time"];function Hv(e){const{id:t,name:r,placeholder:n,required:o,readonly:a,disabled:i,type:s,label:l,hideLabel:c,hideError:u,value:d,onChange:f,onChangeOverride:p,onBlur:h,onFocus:m,autofocus:g,options:v,schema:y,uiSchema:b,rawErrors:w=[],errorSchema:x,formContext:S,registry:A,InputLabelProps:k,...C}=e,E=Ep(y,s,v),{step:_,min:P,max:j,...R}=E,O={inputProps:{step:_,min:P,max:j,...y.examples?{list:Fp(t)}:void 0},...R},N=Uv.includes(s)?{...k,shrink:!0}:k;return(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(cc,{id:t,name:t,placeholder:n,label:$p(l||void 0,c,void 0),autoFocus:g,required:o,disabled:i||a,...O,value:d||0===d?d:"",error:w.length>0,onChange:p||(e=>{let{target:{value:t}}=e;return f(""===t?v.emptyValue:t)}),onBlur:e=>{let{target:{value:r}}=e;return h(t,r)},onFocus:e=>{let{target:{value:r}}=e;return m(t,r)},InputLabelProps:N,...C,"aria-describedby":Lp(t,!!y.examples)}),Array.isArray(y.examples)&&(0,Fe.jsx)("datalist",{id:Fp(t),children:y.examples.concat(y.default&&!y.examples.includes(y.default)?[y.default]:[]).map((e=>(0,Fe.jsx)("option",{value:e},e)))})]})}function qv(e){const{id:t,description:r}=e;return r?(0,Fe.jsx)(qa,{id:t,variant:"subtitle2",style:{marginTop:"5px"},children:r}):null}var Gv=r(1528);function Kv(e){return(0,Dr.Ay)("MuiListItem",e)}const Xv=(0,hn.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);const Qv=(0,hn.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Yv(e){return(0,Dr.Ay)("MuiListItemSecondaryAction",e)}(0,hn.A)("MuiListItemSecondaryAction",["root","disableGutters"]);const Jv=["className"],Zv=(0,$e.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((e=>{let{ownerState:t}=e;return(0,je.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),ey=t.forwardRef((function(e,r){const n=(0,qe.A)({props:e,name:"MuiListItemSecondaryAction"}),{className:o}=n,a=(0,Pe.A)(n,Jv),i=t.useContext(Cs),s=(0,je.A)({},n,{disableGutters:i.disableGutters}),l=(e=>{const{disableGutters:t,classes:r}=e,n={root:["root",t&&"disableGutters"]};return(0,Ie.A)(n,Yv,r)})(s);return(0,Fe.jsx)(Zv,(0,je.A)({className:(0,Re.A)(l.root,o),ownerState:s,ref:r},a))}));ey.muiName="ListItemSecondaryAction";const ty=ey,ry=["className"],ny=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],oy=(0,$e.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!r.disablePadding&&(0,je.A)({paddingTop:8,paddingBottom:8},r.dense&&{paddingTop:4,paddingBottom:4},!r.disableGutters&&{paddingLeft:16,paddingRight:16},!!r.secondaryAction&&{paddingRight:48}),!!r.secondaryAction&&{["& > .".concat(Qv.root)]:{paddingRight:48}},{["&.".concat(Xv.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Xv.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Me.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(Xv.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Me.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(Xv.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===r.alignItems&&{alignItems:"flex-start"},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},r.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(Xv.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Me.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Me.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},r.hasSecondaryAction&&{paddingRight:48})})),ay=(0,$e.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),iy=t.forwardRef((function(e,r){const n=(0,qe.A)({props:e,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:p}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:w,selected:x=!1,slotProps:S={},slots:A={}}=n,k=(0,Pe.A)(n.ContainerProps,ry),C=(0,Pe.A)(n,ny),E=t.useContext(Cs),_=t.useMemo((()=>({dense:h||E.dense||!1,alignItems:o,disableGutters:g})),[o,E.dense,h,g]),P=t.useRef(null);(0,Pi.A)((()=>{a&&P.current&&P.current.focus()}),[a]);const j=t.Children.toArray(s),R=j.length&&(0,Go.A)(j[j.length-1],["ListItemSecondaryAction"]),O=(0,je.A)({},n,{alignItems:o,autoFocus:a,button:i,dense:_.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:R,selected:x}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e,d={root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return(0,Ie.A)(d,Kv,n)})(O),T=(0,lt.A)(P,r),I=A.root||u.Root||oy,M=S.root||d.root||{},F=(0,je.A)({className:(0,Re.A)(N.root,M.className,l),disabled:m},C);let D=c||"li";return i&&(F.component=c||"div",F.focusVisibleClassName=(0,Re.A)(Xv.focusVisible,b),D=oo),R?(D=F.component||c?D:"div","li"===f&&("li"===D?D="div":"li"===F.component&&(F.component="div")),(0,Fe.jsx)(Cs.Provider,{value:_,children:(0,Fe.jsxs)(ay,(0,je.A)({as:f,className:(0,Re.A)(N.container,p),ref:T,ownerState:O},k,{children:[(0,Fe.jsx)(I,(0,je.A)({},M,!Ne(I)&&{as:D,ownerState:(0,je.A)({},O,M.ownerState)},F,{children:j})),j.pop()]}))})):(0,Fe.jsx)(Cs.Provider,{value:_,children:(0,Fe.jsxs)(I,(0,je.A)({},M,{as:D,ref:T},!Ne(I)&&{ownerState:(0,je.A)({},O,M.ownerState)},F,{children:[j,w&&(0,Fe.jsx)(ty,{children:w})]}))})}));function sy(e){return(0,Dr.Ay)("MuiListItemIcon",e)}const ly=(0,hn.A)("MuiListItemIcon",["root","alignItemsFlexStart"]),cy=["className"],uy=(0,$e.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),dy=t.forwardRef((function(e,r){const n=(0,qe.A)({props:e,name:"MuiListItemIcon"}),{className:o}=n,a=(0,Pe.A)(n,cy),i=t.useContext(Cs),s=(0,je.A)({},n,{alignItems:i.alignItems}),l=(e=>{const{alignItems:t,classes:r}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Ie.A)(n,sy,r)})(s);return(0,Fe.jsx)(uy,(0,je.A)({className:(0,Re.A)(l.root,o),ownerState:s,ref:r},a))}));function fy(e){return(0,Dr.Ay)("MuiListItemText",e)}const py=(0,hn.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),hy=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],my=(0,$e.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& .".concat(py.primary)]:t.primary},{["& .".concat(py.secondary)]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,je.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),gy=t.forwardRef((function(e,r){const n=(0,qe.A)({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=n,f=(0,Pe.A)(n,hy),{dense:p}=t.useContext(Cs);let h=null!=l?l:o,m=u;const g=(0,je.A)({},n,{disableTypography:i,inset:s,primary:!!h,secondary:!!m,dense:p}),v=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e,i={root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,Ie.A)(i,fy,t)})(g);return null==h||h.type===qa||i||(h=(0,Fe.jsx)(qa,(0,je.A)({variant:p?"body2":"body1",className:v.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:h}))),null==m||m.type===qa||i||(m=(0,Fe.jsx)(qa,(0,je.A)({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:m}))),(0,Fe.jsxs)(my,(0,je.A)({className:(0,Re.A)(v.root,a),ownerState:g,ref:r},f,{children:[h,m]}))}));function vy(e){let{errors:t,registry:r}=e;const{translateString:n}=r;return(0,Fe.jsx)(cl,{elevation:2,children:(0,Fe.jsxs)(jv,{mb:2,p:2,children:[(0,Fe.jsx)(qa,{variant:"h6",children:n(Kp.ErrorsLabel)}),(0,Fe.jsx)(js,{dense:!0,children:t.map(((e,t)=>(0,Fe.jsxs)(iy,{children:[(0,Fe.jsx)(dy,{children:(0,Fe.jsx)(Gv.A,{color:"error"})}),(0,Fe.jsx)(gy,{primary:e.stack})]},t)))})]})})}var yy=r(977),by=r(3608),wy=r(4914),xy=r(6164);function Sy(e){const{icon:t,color:r,uiSchema:n,registry:o,...a}=e;return(0,Fe.jsx)(qc,{...a,size:"small",color:r,children:t})}function Ay(e){const{registry:{translateString:t}}=e;return(0,Fe.jsx)(Sy,{title:t(Kp.CopyButton),...e,icon:(0,Fe.jsx)(wy.A,{fontSize:"small"})})}function ky(e){const{registry:{translateString:t}}=e;return(0,Fe.jsx)(Sy,{title:t(Kp.MoveDownButton),...e,icon:(0,Fe.jsx)(yy.A,{fontSize:"small"})})}function Cy(e){const{registry:{translateString:t}}=e;return(0,Fe.jsx)(Sy,{title:t(Kp.MoveUpButton),...e,icon:(0,Fe.jsx)(by.A,{fontSize:"small"})})}function Ey(e){const{iconType:t,...r}=e,{registry:{translateString:n}}=r;return(0,Fe.jsx)(Sy,{title:n(Kp.RemoveButton),...r,color:"error",icon:(0,Fe.jsx)(xy.A,{fontSize:"default"===t?void 0:"small"})})}function _y(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=Mp(r);return(0,Fe.jsx)(js,{id:n,dense:!0,disablePadding:!0,children:t.map(((e,t)=>(0,Fe.jsx)(iy,{disableGutters:!0,children:(0,Fe.jsx)(As,{component:"div",id:"".concat(n,"-").concat(t),children:e})},t)))})}function Py(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=Dp(t);return(0,Fe.jsx)(As,{component:"div",id:n,children:r})}function jy(e){const{id:t,children:r,classNames:n,style:o,disabled:a,displayLabel:i,hidden:s,label:l,onDropPropertyClick:c,onKeyChange:u,readonly:d,required:f,rawErrors:p=[],errors:h,help:m,description:g,rawDescription:v,schema:y,uiSchema:b,registry:w}=e,x=jp("WrapIfAdditionalTemplate",w,Fd(b));return s?(0,Fe.jsx)("div",{style:{display:"none"},children:r}):(0,Fe.jsx)(x,{classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:c,onKeyChange:u,readonly:d,required:f,schema:y,uiSchema:b,registry:w,children:(0,Fe.jsxs)(Jo,{fullWidth:!0,error:!!p.length,required:f,children:[r,i&&v?(0,Fe.jsx)(qa,{variant:"caption",color:"textSecondary",children:g}):null,h,m]})})}function Ry(e){const{description:t,title:r,properties:n,required:o,disabled:a,readonly:i,uiSchema:s,idSchema:l,schema:c,formData:u,onAddClick:d,registry:f}=e,p=Fd(s),h=jp("TitleFieldTemplate",f,p),m=jp("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:g}}=f.templates;return(0,Fe.jsxs)(Fe.Fragment,{children:[r&&(0,Fe.jsx)(h,{id:zp(l),title:r,required:o,schema:c,uiSchema:s,registry:f}),t&&(0,Fe.jsx)(m,{id:Ip(l),description:t,schema:c,uiSchema:s,registry:f}),(0,Fe.jsxs)($v,{container:!0,spacing:2,style:{marginTop:"10px"},children:[n.map(((e,t)=>e.hidden?e.content:(0,Fe.jsx)($v,{item:!0,xs:12,style:{marginBottom:"10px"},children:e.content},t))),Dd(c,s,u)&&(0,Fe.jsx)($v,{container:!0,justifyContent:"flex-end",children:(0,Fe.jsx)($v,{item:!0,children:(0,Fe.jsx)(g,{className:"object-property-expand",onClick:d(c),disabled:a||i,uiSchema:s,registry:f})})})]})]})}function Oy(e){let{uiSchema:t}=e;const{submitText:r,norender:n,props:o={}}=Pp(t);return n?null:(0,Fe.jsx)(jv,{marginTop:3,children:(0,Fe.jsx)(mo,{type:"submit",variant:"contained",color:"primary",...o,children:r})})}function Ny(e){return(0,Dr.Ay)("MuiDivider",e)}const Ty=(0,hn.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Iy=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],My=(0,$e.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,Me.X4)(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,je.A)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{let{ownerState:t}=e;return(0,je.A)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),Fy=(0,$e.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===r.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),Dy=t.forwardRef((function(e,t){const r=(0,qe.A)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=r,p=(0,Pe.A)(r,Iy),h=(0,je.A)({},r,{absolute:n,component:i,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]};return(0,Ie.A)(c,Ny,n)})(h);return(0,Fe.jsx)(My,(0,je.A)({as:i,className:(0,Re.A)(m.root,a),role:u,ref:t,ownerState:h},p,{children:o?(0,Fe.jsx)(Fy,{className:m.wrapper,ownerState:h,children:o}):null}))}));Dy.muiSkipListHighlight=!0;const zy=Dy;function Ly(e){let{id:t,title:r}=e;return(0,Fe.jsxs)(jv,{id:t,mb:1,mt:1,children:[(0,Fe.jsx)(qa,{variant:"h5",children:r}),(0,Fe.jsx)(zy,{})]})}function By(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:c,required:u,schema:d,uiSchema:f,registry:p}=e,{templates:h,translateString:m}=p,{RemoveButton:g}=h.ButtonTemplates,v=m(Kp.KeyLabel,[i]);if(!(hd in d))return(0,Fe.jsx)("div",{className:r,style:n,children:t});return(0,Fe.jsxs)($v,{container:!0,alignItems:"center",spacing:2,className:r,style:n,children:[(0,Fe.jsx)($v,{item:!0,xs:!0,children:(0,Fe.jsx)(cc,{fullWidth:!0,required:u,label:v,defaultValue:i,disabled:o||c,id:"".concat(a,"-key"),name:"".concat(a,"-key"),onBlur:c?void 0:e=>{let{target:t}=e;return l(t.value)},type:"text"})}),(0,Fe.jsx)($v,{item:!0,xs:!0,children:t}),(0,Fe.jsx)($v,{item:!0,children:(0,Fe.jsx)(g,{iconType:"default",style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},disabled:o||c,onClick:s(i),uiSchema:f,registry:p})})]},"".concat(a,"-key"))}function $y(){return{ArrayFieldItemTemplate:Wv,ArrayFieldTemplate:Vv,BaseInputTemplate:Hv,ButtonTemplates:{AddButton:Av,CopyButton:Ay,MoveDownButton:ky,MoveUpButton:Cy,RemoveButton:Ey,SubmitButton:Oy},DescriptionFieldTemplate:qv,ErrorListTemplate:vy,FieldErrorTemplate:_y,FieldHelpTemplate:Py,FieldTemplate:jy,ObjectFieldTemplate:Ry,TitleFieldTemplate:Ly,WrapIfAdditionalTemplate:By}}$y();const Wy=(0,oi.A)((0,Fe.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Vy=(0,oi.A)((0,Fe.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Uy=(0,oi.A)((0,Fe.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Hy(e){return(0,Dr.Ay)("MuiCheckbox",e)}const qy=(0,hn.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Gy=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ky=(0,$e.Ay)(ni,{shouldForwardProp:e=>(0,$e.ep)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t["size".concat((0,Ge.A)(r.size))],"default"!==r.color&&t["color".concat((0,Ge.A)(r.color))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Me.X4)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(qy.checked,", &.").concat(qy.indeterminate)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(qy.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),Xy=(0,Fe.jsx)(Vy,{}),Qy=(0,Fe.jsx)(Wy,{}),Yy=(0,Fe.jsx)(Uy,{}),Jy=t.forwardRef((function(e,r){var n,o;const a=(0,qe.A)({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Xy,color:s="primary",icon:l=Qy,indeterminate:c=!1,indeterminateIcon:u=Yy,inputProps:d,size:f="medium",className:p}=a,h=(0,Pe.A)(a,Gy),m=c?u:l,g=c?u:i,v=(0,je.A)({},a,{color:s,indeterminate:c,size:f}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate","color".concat((0,Ge.A)(n)),"size".concat((0,Ge.A)(o))]},i=(0,Ie.A)(a,Hy,t);return(0,je.A)({},t,i)})(v);return(0,Fe.jsx)(Ky,(0,je.A)({type:"checkbox",inputProps:(0,je.A)({"data-indeterminate":c},d),icon:t.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:f}),checkedIcon:t.cloneElement(g,{fontSize:null!=(o=g.props.fontSize)?o:f}),ownerState:v,ref:r,className:(0,Re.A)(y.root,p)},h,{classes:y}))}));function Zy(e){var t;const{schema:r,id:n,value:o,disabled:a,readonly:i,label:s="",hideLabel:l,autofocus:c,onChange:u,onBlur:d,onFocus:f,registry:p,options:h,uiSchema:m}=e,g=jp("DescriptionFieldTemplate",p,h),v=Hp(r),y=null!==(t=h.description)&&void 0!==t?t:r.description;return(0,Fe.jsxs)(Fe.Fragment,{children:[!l&&!!y&&(0,Fe.jsx)(g,{id:Ip(n),description:y,schema:r,uiSchema:m,registry:p}),(0,Fe.jsx)(Ja,{control:(0,Fe.jsx)(Jy,{id:n,name:n,checked:"undefined"!==typeof o&&Boolean(o),required:v,disabled:a||i,autoFocus:c,onChange:(e,t)=>u(t),onBlur:e=>{let{target:{value:t}}=e;return d(n,t)},onFocus:e=>{let{target:{value:t}}=e;return f(n,t)},"aria-describedby":Lp(n)}),label:$p(s,l,!1)})]})}function eb(e){let{label:t,hideLabel:r,id:n,disabled:o,options:a,value:i,autofocus:s,readonly:l,required:c,onChange:u,onBlur:d,onFocus:f}=e;const{enumOptions:p,enumDisabled:h,inline:m,emptyValue:g}=a,v=Array.isArray(i)?i:[i],y=e=>t=>{let{target:{checked:r}}=t;u(r?wp(e,v,p):mp(e,v,p))},b=e=>{let{target:{value:t}}=e;return d(n,hp(t,p,g))},w=e=>{let{target:{value:t}}=e;return f(n,hp(t,p,g))};return(0,Fe.jsxs)(Fe.Fragment,{children:[$p((0,Fe.jsx)(ia,{required:c,htmlFor:n,children:t||void 0}),r),(0,Fe.jsx)(ua,{id:n,row:!!m,children:Array.isArray(p)&&p.map(((e,t)=>{const r=gp(e.value,v),a=Array.isArray(h)&&-1!==h.indexOf(e.value),i=(0,Fe.jsx)(Jy,{id:Bp(n,t),name:n,checked:r,disabled:o||a||l,autoFocus:s&&0===t,onChange:y(t),onBlur:b,onFocus:w,"aria-describedby":Lp(n)});return(0,Fe.jsx)(Ja,{control:i,label:e.label},t)}))})]})}function tb(e){let{id:t,options:r,value:n,required:o,disabled:a,readonly:i,label:s,hideLabel:l,onChange:c,onBlur:u,onFocus:d}=e;var f;const{enumOptions:p,enumDisabled:h,emptyValue:m}=r,g=!!r&&r.inline,v=null!==(f=vp(n,p))&&void 0!==f?f:null;return(0,Fe.jsxs)(Fe.Fragment,{children:[$p((0,Fe.jsx)(ia,{required:o,htmlFor:t,children:s||void 0}),l),(0,Fe.jsx)(pa,{id:t,name:t,value:v,row:g,onChange:(e,t)=>c(hp(t,p,m)),onBlur:e=>{let{target:{value:r}}=e;return u(t,hp(r,p,m))},onFocus:e=>{let{target:{value:r}}=e;return d(t,hp(r,p,m))},"aria-describedby":Lp(t),children:Array.isArray(p)&&p.map(((e,r)=>{const n=Array.isArray(h)&&-1!==h.indexOf(e.value);return(0,Fe.jsx)(Ja,{control:(0,Fe.jsx)(bi,{name:t,id:Bp(t,r),color:"primary"}),label:e.label,value:String(r),disabled:a||n||i},r)}))})]})}var rb=r(1944),nb=r(7040),ob=r(932);const ab={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ib(e,t){return e-t}function sb(e,t){var r;const{index:n}=null!=(r=e.reduce(((e,r,n)=>{const o=Math.abs(t-r);return null===e||o2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;return e.length===t.length&&e.every(((e,n)=>r(e,t[n])))}(e,t)}const hb={horizontal:{offset:e=>({left:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},"horizontal-reverse":{offset:e=>({right:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},vertical:{offset:e=>({bottom:"".concat(e,"%")}),leap:e=>({height:"".concat(e,"%")})}},mb=e=>e;let gb;function vb(){return void 0===gb&&(gb="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),gb}function yb(e){const{"aria-labelledby":r,defaultValue:n,disabled:o=!1,disableSwap:a=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:h,scale:m=mb,step:g=1,shiftStep:v=10,tabIndex:y,value:b}=e,w=t.useRef(),[x,S]=t.useState(-1),[A,k]=t.useState(-1),[C,E]=t.useState(!1),_=t.useRef(0),[P,j]=(0,rb.A)({controlled:b,default:null!=n?n:c,name:"Slider"}),R=d&&((e,t,r)=>{const n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:u}}),d(o,t,r)}),O=Array.isArray(P);let N=O?P.slice().sort(ib):[P];N=N.map((e=>null==e?c:(0,nb.A)(e,c,l)));const T=!0===s&&null!==g?[...Array(Math.floor((l-c)/g)+1)].map(((e,t)=>({value:c+g*t}))):s||[],I=T.map((e=>e.value)),{isFocusVisibleRef:M,onBlur:F,onFocus:D,ref:z}=(0,ob.A)(),[L,B]=t.useState(-1),$=t.useRef(),W=(0,mt.A)(z,$),V=(0,mt.A)(h,W),U=e=>t=>{var r;const n=Number(t.currentTarget.getAttribute("data-index"));D(t),!0===M.current&&B(n),k(n),null==e||null==(r=e.onFocus)||r.call(e,t)},H=e=>t=>{var r;F(t),!1===M.current&&B(-1),k(-1),null==e||null==(r=e.onBlur)||r.call(e,t)},q=(e,t)=>{const r=Number(e.currentTarget.getAttribute("data-index")),n=N[r],o=I.indexOf(n);let i=t;if(T&&null==g){const e=I[I.length-1];i=i>e?e:it=>{var r;if(null!==g){const e=Number(t.currentTarget.getAttribute("data-index")),r=N[e];let n=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?n=Math.max(r-v,c):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(n=Math.min(r+v,l)),null!==n&&(q(t,n),t.preventDefault())}null==e||null==(r=e.onKeyDown)||r.call(e,t)};(0,gt.A)((()=>{var e;o&&$.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[o]),o&&-1!==x&&S(-1),o&&-1!==L&&B(-1);const K=t.useRef();let X=p;i&&"horizontal"===p&&(X+="-reverse");const Q=e=>{let{finger:t,move:r=!1}=e;const{current:n}=$,{width:o,height:i,bottom:s,left:u}=n.getBoundingClientRect();let d,f;if(d=0===X.indexOf("vertical")?(s-t.y)/i:(t.x-u)/o,-1!==X.indexOf("-reverse")&&(d=1-d),f=function(e,t,r){return(r-t)*e+t}(d,c,l),g)f=ub(f,g,c);else{const e=sb(I,f);f=I[e]}f=(0,nb.A)(f,c,l);let p=0;if(O){p=r?K.current:sb(N,f),a&&(f=(0,nb.A)(f,N[p-1]||-1/0,N[p+1]||1/0));const e=f;f=db({values:N,newValue:f,index:p}),a&&r||(p=f.indexOf(e),K.current=p)}return{newValue:f,activeIndex:p}},Y=(0,Bs.A)((e=>{const t=lb(e,w);if(!t)return;if(_.current+=1,"mousemove"===e.type&&0===e.buttons)return void J(e);const{newValue:r,activeIndex:n}=Q({finger:t,move:!0});fb({sliderRef:$,activeIndex:n,setActive:S}),j(r),!C&&_.current>2&&E(!0),R&&!pb(r,P)&&R(e,r,n)})),J=(0,Bs.A)((e=>{const t=lb(e,w);if(E(!1),!t)return;const{newValue:r}=Q({finger:t,move:!0});S(-1),"touchend"===e.type&&k(-1),f&&f(e,r),w.current=void 0,ee()})),Z=(0,Bs.A)((e=>{if(o)return;vb()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(w.current=t.identifier);const r=lb(e,w);if(!1!==r){const{newValue:t,activeIndex:n}=Q({finger:r});fb({sliderRef:$,activeIndex:n,setActive:S}),j(t),R&&!pb(t,P)&&R(e,t,n)}_.current=0;const n=(0,vt.A)($.current);n.addEventListener("touchmove",Y,{passive:!0}),n.addEventListener("touchend",J,{passive:!0})})),ee=t.useCallback((()=>{const e=(0,vt.A)($.current);e.removeEventListener("mousemove",Y),e.removeEventListener("mouseup",J),e.removeEventListener("touchmove",Y),e.removeEventListener("touchend",J)}),[J,Y]);t.useEffect((()=>{const{current:e}=$;return e.addEventListener("touchstart",Z,{passive:vb()}),()=>{e.removeEventListener("touchstart",Z),ee()}}),[ee,Z]),t.useEffect((()=>{o&&ee()}),[o,ee]);const te=cb(O?N[0]:c,c,l),re=cb(N[N.length-1],c,l)-te,ne=e=>t=>{var r;null==(r=e.onMouseLeave)||r.call(e,t),k(-1)};return{active:x,axis:X,axisProps:hb,dragging:C,focusedThumbIndex:L,getHiddenInputProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n;const a=Wr(t),s={onChange:(d=a||{},e=>{var t;null==(t=d.onChange)||t.call(d,e),q(e,e.target.valueAsNumber)}),onFocus:U(a||{}),onBlur:H(a||{}),onKeyDown:G(a||{})};var d;const f=(0,je.A)({},a,s);return(0,je.A)({tabIndex:y,"aria-labelledby":r,"aria-orientation":p,"aria-valuemax":m(l),"aria-valuemin":m(c),name:u,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(n=e.step)?n:void 0,disabled:o},t,f,{style:(0,je.A)({},ab,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Wr(e),r={onMouseDown:(n=t||{},e=>{var t;if(null==(t=n.onMouseDown)||t.call(n,e),o)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const r=lb(e,w);if(!1!==r){const{newValue:t,activeIndex:n}=Q({finger:r});fb({sliderRef:$,activeIndex:n,setActive:S}),j(t),R&&!pb(t,P)&&R(e,t,n)}_.current=0;const a=(0,vt.A)($.current);a.addEventListener("mousemove",Y,{passive:!0}),a.addEventListener("mouseup",J)})};var n;const a=(0,je.A)({},t,r);return(0,je.A)({},e,{ref:V},a)},getThumbProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Wr(e),r={onMouseOver:(n=t||{},e=>{var t;null==(t=n.onMouseOver)||t.call(n,e);const r=Number(e.currentTarget.getAttribute("data-index"));k(r)}),onMouseLeave:ne(t||{})};var n;return(0,je.A)({},e,t,r)},marks:T,open:A,range:O,rootRef:V,trackLeap:re,trackOffset:te,values:N,getThumbStyle:e=>({pointerEvents:-1!==x&&x!==e?"none":void 0})}}const bb=e=>!e||!Ne(e);function wb(e){return(0,Dr.Ay)("MuiSlider",e)}const xb=(0,hn.A)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const Sb=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Ab(e){return e}const kb=(0,$e.Ay)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["color".concat((0,Ge.A)(r.color))],"medium"!==r.size&&t["size".concat((0,Ge.A)(r.size))],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(t.vars||t).palette[r.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===r.orientation&&(0,je.A)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===r.size&&{height:2},r.marked&&{marginBottom:20}),"vertical"===r.orientation&&(0,je.A)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===r.size&&{width:2},r.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},["&.".concat(xb.disabled)]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&.".concat(xb.dragging)]:{["& .".concat(xb.thumb,", & .").concat(xb.track)]:{transition:"none"}}})})),Cb=(0,$e.Ay)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((e=>{let{ownerState:t}=e;return(0,je.A)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})})),Eb=(0,$e.Ay)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode?(0,Me.a)(t.palette[r.color].main,.62):(0,Me.e$)(t.palette[r.color].main,.5);return(0,je.A)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===r.size&&{border:"none"},"horizontal"===r.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===r.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===r.track&&{display:"none"},"inverted"===r.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(r.color,"Track")]:n,borderColor:t.vars?t.vars.palette.Slider["".concat(r.color,"Track")]:n})})),_b=(0,$e.Ay)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t["thumbColor".concat((0,Ge.A)(r.color))],"medium"!==r.size&&t["thumbSize".concat((0,Ge.A)(r.size))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest})},"small"===r.size&&{width:12,height:12},"horizontal"===r.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===r.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":(0,je.A)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"small"===r.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&:hover, &.".concat(xb.focusVisible)]:{boxShadow:"0px 0px 0px 8px ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.16)"):(0,Me.X4)(t.palette[r.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}},["&.".concat(xb.active)]:{boxShadow:"0px 0px 0px 14px ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.16)"):(0,Me.X4)(t.palette[r.color].main,.16))},["&.".concat(xb.disabled)]:{"&:hover":{boxShadow:"none"}}})})),Pb=(0,$e.Ay)((function(e){const{children:r,className:n,value:o}=e,a=(e=>{const{open:t}=e;return{offset:(0,Re.A)(t&&xb.valueLabelOpen),circle:xb.valueLabelCircle,label:xb.valueLabelLabel}})(e);return r?t.cloneElement(r,{className:(0,Re.A)(r.props.className)},(0,Fe.jsxs)(t.Fragment,{children:[r.props.children,(0,Fe.jsx)("span",{className:(0,Re.A)(a.offset,n),"aria-hidden":!0,children:(0,Fe.jsx)("span",{className:a.circle,children:(0,Fe.jsx)("span",{className:a.label,children:o})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({["&.".concat(xb.valueLabelOpen)]:{transform:"".concat("vertical"===r.orientation?"translateY(-50%)":"translateY(-100%)"," scale(1)")},zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),transform:"".concat("vertical"===r.orientation?"translateY(-50%)":"translateY(-100%)"," scale(0)"),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===r.orientation&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===r.orientation&&{right:"small"===r.size?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===r.size&&{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"})})),jb=(0,$e.Ay)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,$e._n)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})((e=>{let{theme:t,ownerState:r,markActive:n}=e;return(0,je.A)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===r.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===r.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})})),Rb=(0,$e.Ay)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,$e._n)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((e=>{let{theme:t,ownerState:r,markLabelActive:n}=e;return(0,je.A)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===r.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===r.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(t.vars||t).palette.text.primary})})),Ob=e=>{let{children:t}=e;return t},Nb=t.forwardRef((function(e,r){var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,S,A,k,C,E;const _=(0,qe.A)({props:e,name:"MuiSlider"}),P=Le(),{"aria-label":j,"aria-valuetext":R,"aria-labelledby":O,component:N="span",components:T={},componentsProps:I={},color:M="primary",classes:F,className:D,disableSwap:z=!1,disabled:L=!1,getAriaLabel:B,getAriaValueText:$,marks:W=!1,max:V=100,min:U=0,orientation:H="horizontal",shiftStep:q=10,size:G="medium",step:K=1,scale:X=Ab,slotProps:Q,slots:Y,track:J="normal",valueLabelDisplay:Z="off",valueLabelFormat:ee=Ab}=_,te=(0,Pe.A)(_,Sb),re=(0,je.A)({},_,{isRtl:P,max:V,min:U,classes:F,disabled:L,disableSwap:z,orientation:H,marks:W,color:M,size:G,step:K,shiftStep:q,scale:X,track:J,valueLabelDisplay:Z,valueLabelFormat:ee}),{axisProps:ne,getRootProps:oe,getHiddenInputProps:ae,getThumbProps:ie,open:se,active:le,axis:ce,focusedThumbIndex:ue,range:de,dragging:fe,marks:pe,values:he,trackOffset:me,trackLeap:ge,getThumbStyle:ve}=yb((0,je.A)({},re,{rootRef:r}));re.marked=pe.length>0&&pe.some((e=>e.label)),re.dragging=fe,re.focusedThumbIndex=ue;const ye=(e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",s&&"color".concat((0,Ge.A)(s)),l&&"size".concat((0,Ge.A)(l))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&"thumbSize".concat((0,Ge.A)(l)),s&&"thumbColor".concat((0,Ge.A)(s))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,Ie.A)(c,wb,i)})(re),be=null!=(n=null!=(o=null==Y?void 0:Y.root)?o:T.Root)?n:kb,we=null!=(a=null!=(i=null==Y?void 0:Y.rail)?i:T.Rail)?a:Cb,xe=null!=(s=null!=(l=null==Y?void 0:Y.track)?l:T.Track)?s:Eb,Se=null!=(c=null!=(u=null==Y?void 0:Y.thumb)?u:T.Thumb)?c:_b,Ae=null!=(d=null!=(f=null==Y?void 0:Y.valueLabel)?f:T.ValueLabel)?d:Pb,ke=null!=(p=null!=(h=null==Y?void 0:Y.mark)?h:T.Mark)?p:jb,Ce=null!=(m=null!=(g=null==Y?void 0:Y.markLabel)?g:T.MarkLabel)?m:Rb,Ee=null!=(v=null!=(y=null==Y?void 0:Y.input)?y:T.Input)?v:"input",_e=null!=(b=null==Q?void 0:Q.root)?b:I.root,Oe=null!=(w=null==Q?void 0:Q.rail)?w:I.rail,Te=null!=(x=null==Q?void 0:Q.track)?x:I.track,Me=null!=(S=null==Q?void 0:Q.thumb)?S:I.thumb,De=null!=(A=null==Q?void 0:Q.valueLabel)?A:I.valueLabel,ze=null!=(k=null==Q?void 0:Q.mark)?k:I.mark,Be=null!=(C=null==Q?void 0:Q.markLabel)?C:I.markLabel,$e=null!=(E=null==Q?void 0:Q.input)?E:I.input,We=Gr({elementType:be,getSlotProps:oe,externalSlotProps:_e,externalForwardedProps:te,additionalProps:(0,je.A)({},bb(be)&&{as:N}),ownerState:(0,je.A)({},re,null==_e?void 0:_e.ownerState),className:[ye.root,D]}),Ve=Gr({elementType:we,externalSlotProps:Oe,ownerState:re,className:ye.rail}),Ue=Gr({elementType:xe,externalSlotProps:Te,additionalProps:{style:(0,je.A)({},ne[ce].offset(me),ne[ce].leap(ge))},ownerState:(0,je.A)({},re,null==Te?void 0:Te.ownerState),className:ye.track}),He=Gr({elementType:Se,getSlotProps:ie,externalSlotProps:Me,ownerState:(0,je.A)({},re,null==Me?void 0:Me.ownerState),className:ye.thumb}),Ke=Gr({elementType:Ae,externalSlotProps:De,ownerState:(0,je.A)({},re,null==De?void 0:De.ownerState),className:ye.valueLabel}),Xe=Gr({elementType:ke,externalSlotProps:ze,ownerState:re,className:ye.mark}),Qe=Gr({elementType:Ce,externalSlotProps:Be,ownerState:re,className:ye.markLabel}),Ye=Gr({elementType:Ee,getSlotProps:ae,externalSlotProps:$e,ownerState:re});return(0,Fe.jsxs)(be,(0,je.A)({},We,{children:[(0,Fe.jsx)(we,(0,je.A)({},Ve)),(0,Fe.jsx)(xe,(0,je.A)({},Ue)),pe.filter((e=>e.value>=U&&e.value<=V)).map(((e,r)=>{const n=cb(e.value,U,V),o=ne[ce].offset(n);let a;return a=!1===J?-1!==he.indexOf(e.value):"normal"===J&&(de?e.value>=he[0]&&e.value<=he[he.length-1]:e.value<=he[0])||"inverted"===J&&(de?e.value<=he[0]||e.value>=he[he.length-1]:e.value>=he[0]),(0,Fe.jsxs)(t.Fragment,{children:[(0,Fe.jsx)(ke,(0,je.A)({"data-index":r},Xe,!Ne(ke)&&{markActive:a},{style:(0,je.A)({},o,Xe.style),className:(0,Re.A)(Xe.className,a&&ye.markActive)})),null!=e.label?(0,Fe.jsx)(Ce,(0,je.A)({"aria-hidden":!0,"data-index":r},Qe,!Ne(Ce)&&{markLabelActive:a},{style:(0,je.A)({},o,Qe.style),className:(0,Re.A)(ye.markLabel,Qe.className,a&&ye.markLabelActive),children:e.label})):null]},r)})),he.map(((e,t)=>{const r=cb(e,U,V),n=ne[ce].offset(r),o="off"===Z?Ob:Ae;return(0,Fe.jsx)(o,(0,je.A)({},!Ne(o)&&{valueLabelFormat:ee,valueLabelDisplay:Z,value:"function"===typeof ee?ee(X(e),t):ee,index:t,open:se===t||le===t||"on"===Z,disabled:L},Ke,{children:(0,Fe.jsx)(Se,(0,je.A)({"data-index":t},He,{className:(0,Re.A)(ye.thumb,He.className,le===t&&ye.active,ue===t&&ye.focusVisible),style:(0,je.A)({},n,ve(t),He.style),children:(0,Fe.jsx)(Ee,(0,je.A)({"data-index":t,"aria-label":B?B(t):j,"aria-valuenow":X(e),"aria-labelledby":O,"aria-valuetext":$?$(X(e),t):R,value:he[t]},Ye))}))}),t)}))]}))})),Tb=Nb;function Ib(e){const{value:t,readonly:r,disabled:n,onBlur:o,onFocus:a,options:i,schema:s,onChange:l,required:c,label:u,hideLabel:d,id:f}=e,p={value:t,label:u,id:f,name:f,...Cp(s)};return(0,Fe.jsxs)(Fe.Fragment,{children:[$p((0,Fe.jsx)(ia,{required:c,htmlFor:f,children:u||void 0}),d),(0,Fe.jsx)(Tb,{disabled:n||r,onChange:(e,t)=>{l(null!==t&&void 0!==t?t:i.emptyValue)},onBlur:e=>{let{target:{value:t}}=e;return o(f,t)},onFocus:e=>{let{target:{value:t}}=e;return a(f,t)},valueLabelDisplay:"auto",...p,"aria-describedby":Lp(f)})]})}function Mb(e){return(0,Dr.Ay)("MuiMenuItem",e)}const Fb=(0,hn.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Db=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],zb=(0,$e.Ay)(oo,{shouldForwardProp:e=>(0,$e.ep)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:r}=e;return(0,je.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(Fb.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Me.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(Fb.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Me.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(Fb.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Me.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Me.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(Fb.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Fb.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(Ty.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(Ty.inset)]:{marginLeft:52},["& .".concat(py.root)]:{marginTop:0,marginBottom:0},["& .".concat(py.inset)]:{paddingLeft:36},["& .".concat(ly.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,je.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(ly.root," svg")]:{fontSize:"1.25rem"}}))})),Lb=t.forwardRef((function(e,r){const n=(0,qe.A)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f}=n,p=(0,Pe.A)(n,Db),h=t.useContext(Cs),m=t.useMemo((()=>({dense:i||h.dense||!1,disableGutters:l})),[h.dense,i,l]),g=t.useRef(null);(0,Pi.A)((()=>{o&&g.current&&g.current.focus()}),[o]);const v=(0,je.A)({},n,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,s={root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},l=(0,Ie.A)(s,Mb,i);return(0,je.A)({},i,l)})(n),b=(0,lt.A)(g,r);let w;return n.disabled||(w=void 0!==d?d:-1),(0,Fe.jsx)(Cs.Provider,{value:m,children:(0,Fe.jsx)(zb,(0,je.A)({ref:b,role:u,tabIndex:w,component:a,focusVisibleClassName:(0,Re.A)(y.focusVisible,c),className:(0,Re.A)(y.root,f)},p,{ownerState:v,classes:y}))})}));function Bb(e){let{schema:t,id:r,name:n,options:o,label:a,hideLabel:i,required:s,disabled:l,placeholder:c,readonly:u,value:d,multiple:f,autofocus:p,onChange:h,onBlur:m,onFocus:g,errorSchema:v,rawErrors:y=[],registry:b,uiSchema:w,hideError:x,formContext:S,...A}=e;const{enumOptions:k,enumDisabled:C,emptyValue:E}=o;f="undefined"!==typeof f&&!!f;const _=f?[]:"",P="undefined"===typeof d||f&&d.length<1||!f&&d===_,j=vp(d,k,f),{InputLabelProps:R,SelectProps:O,autocomplete:N,...T}=A;return(0,Fe.jsx)(cc,{id:r,name:r,label:$p(a||void 0,i,void 0),value:P||"undefined"===typeof j?_:j,required:s,disabled:l||u,autoFocus:p,autoComplete:N,placeholder:c,error:y.length>0,onChange:e=>{let{target:{value:t}}=e;return h(hp(t,k,E))},onBlur:e=>{let{target:{value:t}}=e;return m(r,hp(t,k,E))},onFocus:e=>{let{target:{value:t}}=e;return g(r,hp(t,k,E))},...T,select:!0,InputLabelProps:{...R,shrink:!P},SelectProps:{...O,multiple:f},"aria-describedby":Lp(r),children:Array.isArray(k)&&k.map(((e,t)=>{let{value:r,label:n}=e;const o=Array.isArray(C)&&-1!==C.indexOf(r);return(0,Fe.jsx)(Lb,{value:String(t),disabled:o,children:n},t)}))})}function $b(e){const{options:t,registry:r}=e,n=jp("BaseInputTemplate",r,t);let o=5;return"string"!==typeof t.rows&&"number"!==typeof t.rows||(o=t.rows),(0,Fe.jsx)(n,{...e,multiline:!0,rows:o})}function Wb(){return{CheckboxWidget:Zy,CheckboxesWidget:eb,RadioWidget:tb,RangeWidget:Ib,SelectWidget:Bb,TextareaWidget:$b}}Wb();function Vb(){return{templates:$y(),widgets:Wb()}}Vb();const Ub=function(){return e=Vb(),(0,t.forwardRef)(((t,r)=>{let{fields:n,widgets:o,templates:a,...i}=t;var s;return n={...null===e||void 0===e?void 0:e.fields,...n},o={...null===e||void 0===e?void 0:e.widgets,...o},a={...null===e||void 0===e?void 0:e.templates,...a,ButtonTemplates:{...null===(s=null===e||void 0===e?void 0:e.templates)||void 0===s?void 0:s.ButtonTemplates,...null===a||void 0===a?void 0:a.ButtonTemplates}},(0,Fe.jsx)(xv,{...e,...i,fields:n,widgets:o,templates:a,ref:r})}));var e}(),Hb=Ub;var qb=r(3081),Gb=r.n(qb),Kb=r(483),Xb=r.n(Kb);const Qb={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0},Yb=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,Jb=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Zb(e,t,r,n,o,a,i){const{validationError:s}=t;let l=function(){let e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((t=>{const{instancePath:r,keyword:n,params:o,schemaPath:a,parentSchema:i,...s}=t;let{message:l=""}=s,c=r.replace(/\//g,"."),u="".concat(c," ").concat(l).trim();if("missingProperty"in o){c=c?"".concat(c,".").concat(o.missingProperty):o.missingProperty;const t=o.missingProperty,r=Fd(Hd()(e,"".concat(c.replace(/^\./,"")))).title;if(r)l=l.replace(t,r);else{const e=Hd()(i,[Pd,t,"title"]);e&&(l=l.replace(t,e))}u=l}else{const t=Fd(Hd()(e,"".concat(c.replace(/^\./,"")))).title;if(t)u="'".concat(t,"' ").concat(l).trim();else{const e=null===i||void 0===i?void 0:i.title;e&&(u="'".concat(e,"' ").concat(l).trim())}}return{name:n,property:c,message:l,params:o,stack:u,schemaPath:a}}))}(t.errors,i);s&&(l=[...l,{stack:s.message}]),"function"===typeof a&&(l=a(l,i));let c=function(e){const t=new Ap;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:Qp()(r);o.length>0&&""===o[0]&&o.splice(0,1),n&&t.addErrors(n,o)})),t.ErrorSchema}(l);if(s&&(c={...c,$schema:{__errors:[s.message]}}),"function"!==typeof o)return{errors:l,errorSchema:c};const u=np(e,n,r,n,!0);return Zp({errors:l,errorSchema:c},Yp(o(u,Bd(u),i)))}class ew{constructor(e,t){const{additionalMetaSchemas:r,customFormats:n,ajvOptionsOverrides:o,ajvFormatOptions:a,AjvClass:i}=e;this.ajv=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;const o=new(arguments.length>4&&void 0!==arguments[4]?arguments[4]:Gb())({...Qb,...r});return n?Xb()(o,n):!1!==n&&Xb()(o),o.addFormat("data-url",Jb),o.addFormat("color",Yb),o.addKeyword(hd),o.addKeyword(Nd),Array.isArray(e)&&o.addMetaSchema(e),af()(t)&&Object.keys(t).forEach((e=>{o.addFormat(e,t[e])})),o}(r,n,o,a,i),this.localizer=t}toErrorList(e){return Gp(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[])}rawValidation(e,t){let r,n,o;e[Ad]&&(n=this.ajv.getSchema(e[Ad]));try{void 0===n&&(n=this.ajv.compile(e)),n(t)}catch(a){r=a}return n&&("function"===typeof this.localizer&&this.localizer(n.errors),o=n.errors||void 0,n.errors=null),{errors:o,validationError:r}}validateFormData(e,t,r,n,o){return Zb(this,this.rawValidation(t,e),e,t,r,n,o)}isValid(e,t,r){var n,o;const a=null!==(n=r[Ad])&&void 0!==n?n:Td;try{this.ajv.addSchema(r,a);const n=eh(e),i=null!==(o=n[Ad])&&void 0!==o?o:function(e){const t=new Set;return JSON.stringify(e,((e,r)=>(t.add(e),r))),function(e){let t=0;for(let r=0;r0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}();function rw(e){let{plugins:r}=e;const[n,o]=(0,t.useState)("matterbridge-"),[a,i]=(0,t.useState)(!1),s=()=>{console.log("handleSnackOpen"),i(!0),setTimeout((()=>{window.location.reload()}),5e3)},l=(e,t)=>{console.log("handleSnackClose:",t),"clickaway"!==t&&i(!1)},c=(0,_e.A)({palette:{primary:{main:"#4CAF50"}}});return(0,Fe.jsxs)("div",{className:"MbfWindowDiv",children:[(0,Fe.jsx)("div",{className:"MbfWindowHeader",children:(0,Fe.jsx)("p",{className:"MbfWindowHeaderText",children:"Add remove plugin"})}),(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 auto",alignItems:"center",justifyContent:"space-between",margin:"0px",padding:"10px",gap:"20px"},children:[(0,Fe.jsx)(bu,{anchorOrigin:{vertical:"bottom",horizontal:"right"},open:a,onClose:l,autoHideDuration:5e3,children:(0,Fe.jsx)(zu,{onClose:l,severity:"info",variant:"filled",sx:{width:"100%",bgcolor:"#4CAF50"},children:"Restart required"})}),(0,Fe.jsx)(cc,{value:n,onChange:e=>{o(e.target.value)},size:"small",id:"plugin-name",label:"Plugin name or plugin path",variant:"outlined",fullWidth:!0}),(0,Fe.jsx)(En,{title:"Install or update a plugin from npm",children:(0,Fe.jsx)(mo,{onClick:()=>{s(),console.log("handleInstallPluginClick",n),hc("installplugin",n)},theme:c,color:"primary",variant:"contained",size:"small","aria-label":"install",endIcon:(0,Fe.jsx)(cd,{}),style:{color:"#ffffff",height:"30px"},children:" Install"})}),(0,Fe.jsx)(En,{title:"Add an installed plugin",children:(0,Fe.jsx)(mo,{onClick:()=>{s(),console.log("handleAddPluginClick",n),hc("addplugin",n)},theme:c,color:"primary",variant:"contained",size:"small","aria-label":"add",endIcon:(0,Fe.jsx)(ud,{}),style:{color:"#ffffff",height:"30px"},children:" Add"})}),(0,Fe.jsx)(En,{title:"Remove a registered plugin",children:(0,Fe.jsx)(mo,{onClick:()=>{s(),console.log("handleRemovePluginClick",n),hc("removeplugin",n)},theme:c,color:"primary",variant:"contained",size:"small","aria-label":"remove",endIcon:(0,Fe.jsx)(dd,{}),style:{color:"#ffffff",height:"30px"},children:" Remove"})})]})]})}function nw(e){let{systemInfo:t}=e;return(0,Fe.jsxs)("table",{children:[(0,Fe.jsx)("thead",{children:(0,Fe.jsx)("tr",{children:(0,Fe.jsx)("th",{colSpan:"2",className:"table-header",children:"System Information"})})}),(0,Fe.jsx)("tbody",{children:Object.entries(t).map(((e,t)=>{let[r,n]=e;return(0,Fe.jsxs)("tr",{className:t%2===0?"table-content-even":"table-content-odd",children:[(0,Fe.jsx)("td",{className:"table-content",children:r}),(0,Fe.jsx)("td",{className:"table-content",children:n})]},r)}))})]})}function ow(e){let{qrText:t,pairingText:r,qrWidth:n,topText:o,bottomText:a}=e;return(0,Fe.jsxs)("div",{className:"MbfWindowDiv",style:{alignItems:"center"},minWidth:"360px",children:[(0,Fe.jsx)("div",{className:"MbfWindowHeader",children:(0,Fe.jsx)("p",{className:"MbfWindowHeaderText",style:{textAlign:"center"},children:o})}),(0,Fe.jsx)(Lc,{value:t,size:n,bgColor:"#9e9e9e",style:{margin:"20px"}}),(0,Fe.jsx)("div",{className:"MbfWindowFooter",children:(0,Fe.jsxs)("div",{children:[(0,Fe.jsxs)("p",{style:{margin:0,textAlign:"center"},children:["Use ",r," or scan the QR to pair"]}),(0,Fe.jsx)("p",{className:"text-color-selected",style:{margin:0,textAlign:"center"},children:a})]})})]})}function aw(e){let{config:t,schema:r,handleCloseConfig:n}=e;console.log("DialogConfigPlugin:",t,r);const o=(0,_e.A)({palette:{primary:{main:"#4CAF50"}},components:{MuiPaper:{styleOverrides:{root:{border:"1px solid #ddd",backgroundColor:"#c4c2c2",boxShadow:"5px 5px 10px #888"}}},MuiTextField:{defaultProps:{size:"small"}},MuiButton:{styleOverrides:{root:{color:"#ffffff",backgroundColor:"#4CAF50"}},defaultProps:{color:"primary",variant:"contained",size:"small"}}}});return(0,Fe.jsx)(nu,{theme:o,children:(0,Fe.jsxs)("div",{style:{maxWidth:"800px"},children:[(0,Fe.jsx)(Hb,{schema:r,formData:t,uiSchema:{password:{"ui:widget":"password"},"ui:submitButtonOptions":{props:{variant:"contained",disabled:!1},norender:!1,submitText:"Save the changes to the config file"},"ui:globalOptions":{orderable:!1}},validator:tw,onSubmit:(e,t)=>{let{formData:r}=e;console.log("handleSaveChanges:",r);const o=JSON.stringify(r,null,2);hc("saveconfig",r.name,o),n(),window.location.reload()}}),(0,Fe.jsx)("div",{style:{paddingTop:"10px"},children:"Restart Matterbridge to apply the changes"})]})})}const iw=function(){const[e,r]=(0,t.useState)(null),[n,o]=(0,t.useState)(""),[a,i]=(0,t.useState)(""),[s,l]=(0,t.useState)({}),[c,u]=(0,t.useState)({}),[d,f]=(0,t.useState)([]),[p,h]=(0,t.useState)(-1),[m,g]=(0,t.useState)("none"),[v,y]=(0,t.useState)({}),[b,w]=(0,t.useState)({}),[x,S]=(0,t.useState)(!1),[A,k]=(0,t.useState)(!1),C=(0,t.useRef)(null),E=(0,t.useRef)(null),_=()=>{console.log("handleSnackOpen"),S(!0)},P=(e,t)=>{console.log("handleSnackClose:",t),"clickaway"!==t&&S(!1)},j=()=>{k(!1)},R=t.useMemo((()=>[{Header:"Name",accessor:"name"},{Header:"Description",accessor:"description"},{Header:"Version",accessor:"version"},{Header:"Author",accessor:"author"},{Header:"Type",accessor:"type"},{Header:"Devices",accessor:"devices"},{Header:"Tools",accessor:"qrcode"},{Header:"Status",accessor:"status"}]),[]);(0,t.useEffect)((()=>{fetch("/api/settings").then((e=>e.json())).then((e=>{console.log("/api/settings:",e),r(e.wssHost),o(e.qrPairingCode),i(e.manualPairingCode),l(e.systemInformation),u(e.matterbridgeInformation),localStorage.setItem("wssHost",e.wssHost),localStorage.setItem("manualPairingCode",e.manualPairingCode),localStorage.setItem("qrPairingCode",e.qrPairingCode),localStorage.setItem("systemInformation",e.systemInformation),localStorage.setItem("matterbridgeInformation",e.matterbridgeInformation)})).catch((e=>console.error("Error fetching settings:",e))),fetch("/api/plugins").then((e=>e.json())).then((e=>{f(e),console.log("/api/plugins:",e)})).catch((e=>console.error("Error fetching plugins:",e)))}),[]);const O=e=>{console.log("Selected row:",e,"plugin:",d[e].name,"enabled:",d[e].enabled),!0===d[e].enabled?(d[e].enabled=!1,hc("disableplugin",d[e].name)):(d[e].enabled=!0,hc("enableplugin",d[e].name)),console.log("Updating page"),_(),setTimeout((()=>{}),5e3)},N=e=>{console.log("handleConfigPlugin row:",e,"plugin:",d[e].name),y(d[e].configJson),w(d[e].schemaJson),k(!0)};return null===e?(0,Fe.jsx)("div",{children:"Loading settings..."}):(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"row",height:"calc(100vh - 60px - 40px)",width:"calc(100vw - 40px)",gap:"20px",margin:"0",padding:"0"},children:[(0,Fe.jsxs)(Ku,{open:A,onClose:j,maxWidth:"600px",PaperProps:{style:{border:"2px solid #ddd",backgroundColor:"#c4c2c2",boxShadow:"5px 5px 10px #888"}},children:[(0,Fe.jsx)(ed,{gap:"20px",children:(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"20px"},children:[(0,Fe.jsx)("img",{src:"matterbridge 64x64.png",alt:"Matterbridge Logo",style:{height:"64px",width:"64px"}}),(0,Fe.jsx)("h3",{children:"Matterbridge plugin configuration"})]})}),(0,Fe.jsx)(od,{children:(0,Fe.jsx)(aw,{config:v,schema:b,handleCloseConfig:j})})]}),(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"calc(100vh - 60px - 40px)",flex:"0 1 auto",gap:"20px"},children:[n&&(0,Fe.jsx)(ow,{qrText:n,pairingText:a,qrWidth:256,topText:"QRCode",bottomText:"none"===m?"Matterbridge":m}),s&&(0,Fe.jsx)(nw,{systemInfo:s})]}),(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"calc(100vh - 60px - 40px)",flex:"0 1 auto",width:"100%",gap:"20px"},children:[(0,Fe.jsx)(rw,{ref:C,plugins:d}),(0,Fe.jsxs)("table",{ref:E,children:[(0,Fe.jsxs)("thead",{children:[(0,Fe.jsx)("tr",{children:(0,Fe.jsx)("th",{className:"table-header",colSpan:"8",children:"Registered plugins"})}),(0,Fe.jsx)("tr",{children:R.map(((e,t)=>(0,Fe.jsx)("th",{className:"table-header",children:e.Header},t)))})]}),(0,Fe.jsx)("tbody",{children:d.map(((e,t)=>(0,Fe.jsxs)("tr",{className:p===t?"table-content-selected":t%2===0?"table-content-even":"table-content-odd",children:[(0,Fe.jsx)("td",{className:"table-content",children:(0,Fe.jsx)(En,{title:e.path,children:e.name})}),(0,Fe.jsx)("td",{className:"table-content",children:e.description}),(0,Fe.jsx)("td",{className:"table-content",children:e.latestVersion===e.version?e.version:(0,Fe.jsx)("span",{className:"status-warning",onClick:()=>{return e=t,console.log("handleUpdate row:",e,"plugin:",d[e].name),hc("installplugin",d[e].name),_(),void setTimeout((()=>{}),5e3);var e},children:"".concat(e.version," -> ").concat(e.latestVersion)})}),(0,Fe.jsx)("td",{className:"table-content",children:e.author}),(0,Fe.jsx)("td",{className:"table-content",children:e.type}),(0,Fe.jsx)("td",{className:"table-content",children:e.registeredDevices}),(0,Fe.jsx)("td",{className:"table-content",children:(0,Fe.jsxs)(Fe.Fragment,{children:[e.qrPairingCode?(0,Fe.jsx)(En,{title:"Scan the QRCode",children:(0,Fe.jsx)(qc,{style:{padding:0},className:"PluginsIconButton",onClick:()=>{return p===(e=t)?(h(-1),g("none"),o(localStorage.getItem("qrPairingCode")),i(localStorage.getItem("manualPairingCode"))):(h(e),g(d[e].name),o(d[e].qrPairingCode),i(d[e].manualPairingCode)),void console.log("Selected row:",e,"plugin:",d[e].name,"qrcode:",d[e].qrPairingCode);var e},size:"small",children:(0,Fe.jsx)($c.A,{})})}):(0,Fe.jsx)(Fe.Fragment,{}),(0,Fe.jsx)(En,{title:"Plugin config",children:(0,Fe.jsx)(qc,{style:{padding:0},className:"PluginsIconButton",onClick:()=>N(t),size:"small",children:(0,Fe.jsx)(ad,{})})}),(0,Fe.jsx)(En,{title:"Remove the plugin",children:(0,Fe.jsx)(qc,{style:{padding:0},className:"PluginsIconButton",onClick:()=>{return e=t,console.log("handleRemovePluginClick row:",e,"plugin:",d[e].name),hc("removeplugin",d[e].name),_(),void setTimeout((()=>{}),5e3);var e},size:"small",children:(0,Fe.jsx)(id,{})})}),e.enabled?(0,Fe.jsx)(En,{title:"Disable the plugin",children:(0,Fe.jsx)(qc,{style:{padding:0},className:"PluginsIconButton",onClick:()=>O(t),size:"small",children:(0,Fe.jsx)(sd,{})})}):(0,Fe.jsx)(Fe.Fragment,{}),e.enabled?(0,Fe.jsx)(Fe.Fragment,{}):(0,Fe.jsx)(En,{title:"Enable the plugin",children:(0,Fe.jsx)(qc,{style:{padding:0},className:"PluginsIconButton",onClick:()=>O(t),size:"small",children:(0,Fe.jsx)(ld,{})})})]})}),(0,Fe.jsx)("td",{className:"table-content",children:(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 auto",gap:"5px"},children:[(0,Fe.jsx)(bu,{anchorOrigin:{vertical:"bottom",horizontal:"right"},open:x,onClose:P,autoHideDuration:1e4,children:(0,Fe.jsx)(zu,{onClose:P,severity:"info",variant:"filled",sx:{width:"100%",bgcolor:"#4CAF50"},children:"Restart needed!"})}),e.loaded&&e.started&&e.configured&&e.paired&&e.connected?(0,Fe.jsx)(Fe.Fragment,{children:(0,Fe.jsx)(Bc,{status:e.loaded,enabledText:"Running",tooltipText:"Whether the plugin is running"})}):(0,Fe.jsx)(Fe.Fragment,{children:e.loaded&&e.started&&e.configured&&void 0===e.connected?(0,Fe.jsx)(Fe.Fragment,{children:(0,Fe.jsx)(Bc,{status:e.loaded,enabledText:"Running",tooltipText:"Whether the plugin is running"})}):(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(Bc,{status:e.enabled,enabledText:"Enabled",disabledText:"Disabled",tooltipText:"Whether the plugin is enable or disabled"}),(0,Fe.jsx)(Bc,{status:e.loaded,enabledText:"Loaded",tooltipText:"Whether the plugin has been loaded"}),(0,Fe.jsx)(Bc,{status:e.started,enabledText:"Started",tooltipText:"Whether the plugin started"}),(0,Fe.jsx)(Bc,{status:e.configured,enabledText:"Configured",tooltipText:"Whether the plugin has been configured"}),(0,Fe.jsx)(Bc,{status:e.paired,enabledText:"Paired",tooltipText:"Whether the plugin has been paired"}),(0,Fe.jsx)(Bc,{status:e.connected,enabledText:"Connected",tooltipText:"Whether the controller connected"})]})})]})})]},t)))})]}),(0,Fe.jsxs)("div",{className:"MbfWindowDiv",style:{display:"flex",flexDirection:"column",flex:"0 1 auto"},children:[(0,Fe.jsx)("div",{className:"MbfWindowHeader",children:(0,Fe.jsx)("p",{className:"MbfWindowHeaderText",style:{textAlign:"left"},children:"Logs"})}),(0,Fe.jsx)("div",{style:{flex:"1 1",margin:"5px",padding:"5px",height:"200px",maxHeight:"200px",overflow:"auto"},children:(0,Fe.jsx)(au,{wssHost:e,debugLevel:"debug",searchCriteria:"*"})})]})]})]})};const sw=function(){const[e,r]=(0,t.useState)([]),[n,o]=(0,t.useState)(void 0),[a,i]=(0,t.useState)(void 0),[s,l]=(0,t.useState)(-1),[c,u]=(0,t.useState)("none"),[d,f]=(0,t.useState)("none"),[p,h]=(0,t.useState)([]);(0,t.useEffect)((()=>{fetch("/api/devices").then((e=>e.json())).then((e=>r(e))).catch((e=>console.error("Error fetching devices:",e)))}),[]),(0,t.useEffect)((()=>{fetch("/api/devices_clusters/".concat(c,"/").concat(d)).then((e=>e.json())).then((e=>h(e))).catch((e=>console.error("Error fetching devices_clusters:",e)))}),[d,c]);const m=e=>{n===e?(void 0===a&&i(!0),!0===a&&i(!1),!1===a&&o(void 0),!1===a&&i(void 0)):(o(e),i(!0))},g=[...e].sort(((e,t)=>e[n]t[n]?a?1:-1:0));return(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"calc(100vh - 60px - 40px)",width:"calc(100vw - 40px)",gap:"20px",margin:"0px",padding:"0px"},children:[(0,Fe.jsx)("div",{style:{display:"flex",flexDirection:"column",flex:"0 0 auto",maxHeight:"calc(50vh - 40px)",width:"100%",gap:"5px",overflow:"auto",paddingBottom:"10px",paddingRight:"10px"},children:(0,Fe.jsxs)("table",{children:[(0,Fe.jsxs)("thead",{children:[(0,Fe.jsx)("tr",{children:(0,Fe.jsx)("th",{className:"table-header",colSpan:"7",children:"Registered devices"})}),(0,Fe.jsxs)("tr",{children:[(0,Fe.jsxs)("th",{className:"table-header",onClick:()=>m("pluginName"),children:["Plugin name ","pluginName"===n?a?" \ud83d\udd3c":" \ud83d\udd3d":" \ud83d\udd3c\ud83d\udd3d"]}),(0,Fe.jsxs)("th",{className:"table-header",onClick:()=>m("type"),children:["Device type ","type"===n?a?" \ud83d\udd3c":" \ud83d\udd3d":" \ud83d\udd3c\ud83d\udd3d"]}),(0,Fe.jsxs)("th",{className:"table-header",onClick:()=>m("endpoint"),children:["Endpoint ","endpoint"===n?a?" \ud83d\udd3c":" \ud83d\udd3d":" \ud83d\udd3c\ud83d\udd3d"]}),(0,Fe.jsxs)("th",{className:"table-header",onClick:()=>m("name"),children:["Name ","name"===n?a?" \ud83d\udd3c":" \ud83d\udd3d":" \ud83d\udd3c\ud83d\udd3d"]}),(0,Fe.jsxs)("th",{className:"table-header",onClick:()=>m("serial"),children:["Serial number ","serial"===n?a?" \ud83d\udd3c":" \ud83d\udd3d":" \ud83d\udd3c\ud83d\udd3d"]}),(0,Fe.jsxs)("th",{className:"table-header",onClick:()=>m("uniqueId"),children:["Unique ID ","uniqueId"===n?a?" \ud83d\udd3c":" \ud83d\udd3d":" \ud83d\udd3c\ud83d\udd3d"]}),(0,Fe.jsxs)("th",{className:"table-header",onClick:()=>m("cluster"),children:["Cluster ","cluster"===n?a?" \ud83d\udd3c":" \ud83d\udd3d":" \ud83d\udd3c\ud83d\udd3d"]})]})]}),(0,Fe.jsx)("tbody",{children:g.map(((e,t)=>(0,Fe.jsxs)("tr",{onClick:()=>{return s===(e=t)?(l(-1),u("none"),f("none")):(l(e),u(g[e].pluginName),f(g[e].endpoint)),console.log("Selected row:",e),console.log("Selected plugin:",g[e].pluginName),void console.log("Selected endpoint:",g[e].endpoint);var e},className:s===t?"table-content-selected":t%2===0?"table-content-even":"table-content-odd",children:[(0,Fe.jsx)("td",{className:"table-content",children:e.pluginName}),(0,Fe.jsx)("td",{className:"table-content",children:e.type}),(0,Fe.jsx)("td",{className:"table-content",children:e.endpoint}),(0,Fe.jsx)("td",{className:"table-content",children:e.name}),(0,Fe.jsx)("td",{className:"table-content",children:e.serial}),(0,Fe.jsx)("td",{className:"table-content",children:e.uniqueId}),(0,Fe.jsx)("td",{className:"table-content",children:e.cluster})]},t)))})]})}),(0,Fe.jsx)("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 auto",width:"100%",gap:"5px",overflow:"auto",paddingBottom:"10px",paddingRight:"10px"},children:(0,Fe.jsxs)("table",{children:[(0,Fe.jsxs)("thead",{children:[(0,Fe.jsxs)("tr",{children:[(0,Fe.jsx)("th",{className:"table-header",colSpan:"3",children:s>=0?"Cluster servers of "+g[s].name:"(select a device)"}),(0,Fe.jsx)("th",{className:"table-header",colSpan:"3",children:"Attributes"})]}),(0,Fe.jsxs)("tr",{children:[(0,Fe.jsx)("th",{className:"table-header",children:"Endpoint"}),(0,Fe.jsx)("th",{className:"table-header",children:"Name"}),(0,Fe.jsx)("th",{className:"table-header",children:"Id"}),(0,Fe.jsx)("th",{className:"table-header",children:"Name"}),(0,Fe.jsx)("th",{className:"table-header",children:"Id"}),(0,Fe.jsx)("th",{className:"table-header",children:"Value"})]})]}),(0,Fe.jsx)("tbody",{children:p.map(((e,t)=>(0,Fe.jsxs)("tr",{className:t%2===0?"table-content-even":"table-content-odd",children:[(0,Fe.jsx)("td",{className:"table-content",children:e.endpoint}),(0,Fe.jsx)("td",{className:"table-content",children:e.clusterName}),(0,Fe.jsx)("td",{className:"table-content",children:e.clusterId}),(0,Fe.jsx)("td",{className:"table-content",children:e.attributeName}),(0,Fe.jsx)("td",{className:"table-content",children:e.attributeId}),(0,Fe.jsx)("td",{className:"table-content",children:e.attributeValue})]},t)))})]})})]})};var lw=r(1094);function cw(e){let{columns:t,data:r}=e;const{getTableProps:n,getTableBodyProps:o,headerGroups:a,rows:i,prepareRow:s}=(0,lw.useTable)({columns:t,data:r},lw.useSortBy);return(0,Fe.jsxs)("table",{...n(),children:[(0,Fe.jsx)("thead",{children:a.map((e=>(0,Fe.jsx)("tr",{...e.getHeaderGroupProps(),children:e.headers.map((e=>(0,Fe.jsxs)("th",{className:"table-header",...e.getHeaderProps(e.getSortByToggleProps()),children:[e.render("Header"),(0,Fe.jsx)("span",{children:e.isSorted?e.isSortedDesc?" \ud83d\udd3d":" \ud83d\udd3c":""})]})))})))}),(0,Fe.jsx)("tbody",{...o(),children:i.map(((e,t)=>(s(e),(0,Fe.jsx)("tr",{className:t%2===0?"table-content-even":"table-content-odd",...e.getRowProps(),children:e.cells.map((e=>(0,Fe.jsx)("td",{className:"table-content",...e.getCellProps(),children:e.render("Cell")})))},t))))})]})}const uw=function(){const e=t.useMemo((()=>[{col1:"Hello 1",col2:"World 1"},{col1:"React 2",col2:"Table 2"},{col1:"React 3",col2:"Table 3"},{col1:"React 4",col2:"Table 4"}]),[]),r=t.useMemo((()=>[{Header:"Super Header",columns:[{Header:"Column 1",accessor:"col1"},{Header:"Column 2",accessor:"col2"}]}]),[]);return(0,Fe.jsxs)("div",{style:{flex:1,flexBasis:"auto",flexDirection:"column",height:"calc(100vh - 80px - 20px)",width:"calc(100vw - 40px)",gap:"20px",margin:"0",padding:"20px"},children:[(0,Fe.jsx)(mc,{}),(0,Fe.jsx)(cw,{columns:r,data:e})]})};const dw=function(){var e,r;const[n,o]=(0,t.useState)(null),[a,i]=(0,t.useState)(null!==(e=localStorage.getItem("logFilterLevel"))&&void 0!==e?e:"debug"),[s,l]=(0,t.useState)(null!==(r=localStorage.getItem("logFilterSearch"))&&void 0!==r?r:"*");return(0,t.useEffect)((()=>{fetch("/api/settings").then((e=>e.json())).then((e=>{console.log("/api/settings:",e),o(e.wssHost),localStorage.setItem("wssHost",e.wssHost)})).catch((e=>console.error("Error fetching settings:",e)))}),[]),null===n?(0,Fe.jsx)("div",{children:"Loading settings..."}):(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"calc(100vh - 60px - 40px)",width:"calc(100vw - 40px)",gap:"10px",margin:"0",padding:"0"},children:[(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",margin:"0px",padding:"0px",gap:"10px"},children:[(0,Fe.jsx)("h3",{children:"Logs:"}),(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[(0,Fe.jsx)(vs,{id:"select-level",children:"Filter by debug level"}),(0,Fe.jsxs)(oc,{style:{height:"40px"},labelId:"select-level",id:"debug-level",value:a,onChange:e=>{i(e.target.value),localStorage.setItem("logFilterLevel",e.target.value),console.log("handleChangeLevel called with value:",e.target.value)},children:[(0,Fe.jsx)(Lb,{value:"debug",children:"Debug"}),(0,Fe.jsx)(Lb,{value:"info",children:"Info"}),(0,Fe.jsx)(Lb,{value:"warn",children:"Warn"}),(0,Fe.jsx)(Lb,{value:"error",children:"Error"})]}),(0,Fe.jsx)(vs,{id:"search",children:"Filter by text"}),(0,Fe.jsx)(cc,{style:{height:"40px",width:"300px"},size:"small",id:"logsearch",label:"Enter search criteria",variant:"outlined",value:s,onChange:e=>{l(e.target.value),localStorage.setItem("logFilterSearch",e.target.value),console.log("handleChangeSearch called with value:",e.target.value)}})]})]}),(0,Fe.jsx)("div",{style:{flex:"1",overflow:"auto",margin:"0px",padding:"0px"},children:(0,Fe.jsx)(au,{wssHost:n,debugLevel:a,searchCriteria:s})})]})},fw=(0,t.createContext)();function pw(e){let{children:r}=e;const[n,o]=(0,t.useState)(!1),[a,i]=(0,t.useState)("");return(0,Fe.jsx)(fw.Provider,{value:{loggedIn:n,logIn:async e=>{try{const t=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:e})});if(t.ok){const{valid:e}=await t.json();e?o(!0):i("Incorrect password!")}else console.error("Failed to log in:",t.statusText)}catch(t){console.error("Failed to log in:",t)}},errorMessage:a},children:r})}function hw(){const[e,r]=(0,t.useState)(""),{loggedIn:n,logIn:o,errorMessage:a}=(0,t.useContext)(fw),i=t=>{t.preventDefault(),o(e)},s={display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",backgroundColor:"#c4c2c2"},l={display:"flex",flexDirection:"column",maxWidth:"400px",margin:"0 auto",padding:"20px",gap:"20px",border:"1px solid #ccc",borderRadius:"10px",boxShadow:"2px 2px 5px rgba(0,0,0,0.3)",backgroundColor:"#5f8c9e"},c={margin:"10px 0",padding:"3px 3px",fontSize:"14px",width:"230px"};return n?(0,Fe.jsx)(xe,{children:(0,Fe.jsxs)("div",{className:"main-background",style:{display:"flex",flex:1,flexBasis:"auto",flexDirection:"column",height:"calc(100vh - 40px)",width:"calc(100vw - 40px)",gap:"20px",margin:"0",padding:"20px"},children:[(0,Fe.jsx)(mc,{}),(0,Fe.jsxs)(me,{children:[(0,Fe.jsx)(pe,{path:"/",element:(0,Fe.jsx)(iw,{})}),(0,Fe.jsx)(pe,{path:"/devices",element:(0,Fe.jsx)(sw,{})}),(0,Fe.jsx)(pe,{path:"/log",element:(0,Fe.jsx)(dw,{})}),(0,Fe.jsx)(pe,{path:"/settings",element:(0,Fe.jsx)(fc,{})}),(0,Fe.jsx)(pe,{path:"/test",element:(0,Fe.jsx)(uw,{})})]})]})}):(0,Fe.jsx)("div",{style:s,children:(0,Fe.jsxs)("form",{onSubmit:i,style:l,children:[(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"20px"},children:[(0,Fe.jsx)("img",{src:"matterbridge 64x64.png",alt:"Matterbridge Logo",style:{height:"64px",width:"64px"}}),(0,Fe.jsx)("h3",{children:"Welcome to Matterbridge"})]}),(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:"20px"},children:[(0,Fe.jsx)("input",{type:"password",value:e,onChange:e=>r(e.target.value),style:c,placeholder:"password"}),(0,Fe.jsx)("button",{type:"submit",children:"Log in"})]}),(0,Fe.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",margin:0,height:"30px"},children:a&&(0,Fe.jsx)("p",{style:{color:"red"},children:a})})]})})}const mw=function(){const[e,r]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:""})}).then((e=>{if(e.ok)return e.json();throw new Error("Network response was not ok")})).then((e=>{!0===e.valid&&r(!0)})).catch((e=>console.error("Failed with no password",e)))}),[]),e?(0,Fe.jsx)(xe,{children:(0,Fe.jsxs)("div",{className:"main-background",style:{display:"flex",flex:1,flexBasis:"auto",flexDirection:"column",height:"calc(100vh - 40px)",width:"calc(100vw - 40px)",gap:"20px",margin:"0",padding:"20px"},children:[(0,Fe.jsx)(mc,{}),(0,Fe.jsxs)(me,{children:[(0,Fe.jsx)(pe,{path:"/",element:(0,Fe.jsx)(iw,{})}),(0,Fe.jsx)(pe,{path:"/devices",element:(0,Fe.jsx)(sw,{})}),(0,Fe.jsx)(pe,{path:"/log",element:(0,Fe.jsx)(dw,{})}),(0,Fe.jsx)(pe,{path:"/settings",element:(0,Fe.jsx)(fc,{})}),(0,Fe.jsx)(pe,{path:"/test",element:(0,Fe.jsx)(uw,{})})]})]})}):(0,Fe.jsx)(pw,{children:(0,Fe.jsx)(hw,{})})},gw=e=>{e&&e instanceof Function&&r.e(453).then(r.bind(r,6453)).then((t=>{let{getCLS:r,getFID:n,getFCP:o,getLCP:a,getTTFB:i}=t;r(e),n(e),o(e),a(e),i(e)}))};o.createRoot(document.getElementById("root")).render((0,Fe.jsx)(t.StrictMode,{children:(0,Fe.jsx)(mw,{})})),gw()})()})();
-//# sourceMappingURL=main.ed3f81ca.js.map
\ No newline at end of file
+/*! For license information please see main.5886e61b.js.LICENSE.txt */
+(()=>{var e={5513:(e,t,r)=>{"use strict";r.d(t,{A:()=>oe});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(w,--y):0,g--,10===b&&(g=1,m--),b}function k(){return b=y2||P(b)>3?"":" "}function T(e,t){for(;--t&&k()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return _(e,E()+(t<6&&32==C()&&32==k()))}function I(e){for(;k();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:k()}return y}function M(e,t){for(;k()&&e+b!==57&&(e+b!==84||47!==C()););return"/*"+_(t,y-1)+"*"+a(47===e?e:k())}function F(e){for(;!P(C());)k();return _(e,y)}var D="-ms-",z="-moz-",L="-webkit-",B="comm",$="rule",W="decl",V="@keyframes";function U(e,t){for(var r="",n=p(e),o=0;o0&&f(z)-v&&h(b>32?Q(z+";",n,r,v-1):Q(l(z," ","")+";",n,r,v-2),p);break;case 59:z+=";";default:if(h(D=K(z,t,r,m,g,o,d,j,R=[],I=[],v),i),123===P)if(0===g)G(z,t,D,D,R,i,v,d,I);else switch(99===y&&110===u(z,3)?100:y){case 100:case 108:case 109:case 115:G(e,D,D,n&&h(K(e,D,D,0,0,o,d,j,o,R=[],v),I),o,I,v,d,n?R:I);break;default:G(z,D,D,D,[""],I,0,d,I)}}m=g=b=0,x=_=1,j=z="",v=s;break;case 58:v=1+f(z),b=w;default:if(x<1)if(123==P)--x;else if(125==P&&0==x++&&125==A())continue;switch(z+=a(P),P*x){case 38:_=g>0?1:(z+="\f",-1);break;case 44:d[m++]=(f(z)-1)*_,_=1;break;case 64:45===C()&&(z+=O(k())),y=C(),g=v=f(j=z+=F(E())),P++;break;case 45:45===w&&2==f(z)&&(x=0)}}return i}function K(e,t,r,n,a,i,c,u,f,h,m){for(var g=a-1,v=0===a?i:[""],y=p(v),b=0,w=0,S=0;b0?v[A]+" "+k:l(k,/&\f/g,v[A])))&&(f[S++]=C);return x(e,t,r,0===a?$:u,f,h,m)}function X(e,t,r){return x(e,t,r,B,a(b),d(e,2,-2),0)}function Q(e,t,r,n){return x(e,t,r,W,d(e,0,n),d(e,n+1,-1),n)}var Y=function(e,t,r){for(var n=0,o=0;n=o,o=C(),38===n&&12===o&&(t[r]=1),!P(o);)k();return _(e,y)},J=function(e,t){return R(function(e,t){var r=-1,n=44;do{switch(P(n)){case 0:38===n&&12===C()&&(t[r]=1),e[r]+=Y(y-1,t,r);break;case 2:e[r]+=O(n);break;case 4:if(44===n){e[++r]=58===C()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=a(n)}}while(n=k());return e}(j(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(r))&&!n){Z.set(e,!0);for(var o=[],a=J(t,o),i=r.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+z+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?re(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+L)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===u(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return L+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+D+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case W:e.return=re(e.value,e.length);break;case V:return U([S(e,{value:l(e.value,"@","@"+L)})],n);case $:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([S(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return U([S(e,{props:[l(t,/:(plac\w+)/,":"+L+"input-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],n)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||ne;var a,i,s={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r{"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},5756:(e,t,r)=>{"use strict";r.d(t,{C:()=>s,T:()=>c,i:()=>a,w:()=>l});var n=r(5043),o=r(5513),a=(r(2830),r(9436),!0),i=n.createContext("undefined"!==typeof HTMLElement?(0,o.A)({key:"css"}):null);var s=i.Provider,l=function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(i);return e(t,o,r)}))};a||(l=function(e){return function(t){var r=(0,n.useContext)(i);return null===r?(r=(0,o.A)({key:"css"}),n.createElement(i.Provider,{value:r},e(t,r))):e(t,r)}});var c=n.createContext({})},3290:(e,t,r)=>{"use strict";r.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var n=r(5756),o=r(5043),a=r(1722),i=r(9436),s=r(2830),l=(r(5513),r(219),(0,n.w)((function(e,t){var r=e.styles,l=(0,s.J)([r],void 0,o.useContext(n.T));if(!n.i){for(var c,u=l.name,d=l.styles,f=l.next;void 0!==f;)u+=" "+f.name,d+=f.styles,f=f.next;var p=!0===t.compat,h=t.insert("",{name:u,styles:d},t.sheet,p);return p?null:o.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:h},c.nonce=t.sheet.nonce,c))}var m=o.useRef();return(0,i.i)((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==o&&(n=!0,o.setAttribute("data-emotion",e),r.hydrate([o])),m.current=[r,n],function(){r.flush()}}),[t]),(0,i.i)((function(){var e=m.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,a.sk)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),r=0;r{"use strict";r.d(t,{J:()=>h});var n={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},o=r(918),a=/[A-Z]|^ms/g,i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},c=(0,o.A)((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(i,(function(e,t,r){return f={name:t,styles:r,next:f},t}))}return 1===n[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return f={name:r.name,styles:r.styles,next:f},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)f={name:n.name,styles:n.styles,next:f},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:f}}},9436:(e,t,r)=>{"use strict";var n;r.d(t,{i:()=>s,s:()=>i});var o=r(5043),a=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,i=a||function(e){return e()},s=a||o.useLayoutEffect},1722:(e,t,r)=>{"use strict";r.d(t,{Rk:()=>n,SF:()=>o,sk:()=>a});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},a=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},2505:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},977:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},3608:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward")},4914:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},1528:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},9790:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83"}),"PowerSettingsNew")},7850:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M15 21h-2v-2h2zm-2-7h-2v5h2zm8-2h-2v4h2zm-2-2h-2v2h2zM7 12H5v2h2zm-2-2H3v2h2zm7-5h2V3h-2zm-7.5-.5v3h3v-3zM9 9H3V3h6zm-4.5 7.5v3h3v-3zM9 21H3v-6h6zm7.5-16.5v3h3v-3zM21 9h-6V3h6zm-2 10v-3h-4v2h2v3h4v-2zm-2-7h-4v2h4zm-4-2H7v2h2v2h2v-2h2zm1-1V7h-2V5h-2v4zM6.75 5.25h-1.5v1.5h1.5zm0 12h-1.5v1.5h1.5zm12-12h-1.5v1.5h1.5z"}),"QrCode2")},6164:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove")},6170:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt")},7193:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"m12 16.5 4-4h-3v-9h-2v9H8zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2"}),"SystemUpdateAlt")},39:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(1512)},5881:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case s:case i:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference")},805:(e,t,r)=>{"use strict";r(5881)},8279:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});var n=r(8168),o=r(8587),a=r(6632),i=r(3216),s=r(7758),l=r(8812),c=r(8280);var u=r(7266);const d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function S(e,t,r,n){const o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,a)))}function A(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:s=.2}=e,l=(0,o.A)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),A=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),k=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),C=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),E=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),_=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function P(e){return(0,u.eM)(e,x.text.primary)>=r?x.text.primary:w.text.primary}const j=e=>{let{color:t,name:r,mainShade:o=500,lightShade:i=300,darkShade:l=700}=e;if(t=(0,n.A)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,a.A)(11,r?" (".concat(r,")"):"",o));if("string"!==typeof t.main)throw new Error((0,a.A)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return S(t,"light",i,s),S(t,"dark",l,s),t.contrastText||(t.contrastText=P(t.main)),t},R={dark:x,light:w};return(0,i.A)((0,n.A)({common:(0,n.A)({},d),mode:t,primary:j({color:c,name:"primary"}),secondary:j({color:A,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:j({color:k,name:"error"}),warning:j({color:_,name:"warning"}),info:j({color:C,name:"info"}),success:j({color:E,name:"success"}),grey:f,contrastThreshold:r,getContrastText:P,augmentColor:j,tonalOffset:s},R[t]),l)}const k=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const C={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function _(e,t){const r="function"===typeof t?t(e):t,{fontFamily:a=E,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=r,m=(0,o.A)(r,k);const g=s/14,v=h||(e=>"".concat(e/f*g,"rem")),y=(e,t,r,o,i)=>{return(0,n.A)({fontFamily:a,fontWeight:e,fontSize:v(t),lineHeight:r},a===E?{letterSpacing:"".concat((s=o/t,Math.round(1e5*s)/1e5),"em")}:{},i,p);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,C),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,C),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,i.A)((0,n.A)({htmlFontSize:f,pxToRem:v,fontFamily:a,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}function P(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const j=["none",P(0,2,1,-1,0,1,1,0,0,1,3,0),P(0,3,1,-2,0,2,2,0,0,1,5,0),P(0,3,3,-2,0,3,4,0,0,1,8,0),P(0,2,4,-1,0,4,5,0,0,1,10,0),P(0,3,5,-1,0,5,8,0,0,1,14,0),P(0,3,5,-1,0,6,10,0,0,1,18,0),P(0,4,5,-2,0,7,10,1,0,2,16,1),P(0,5,5,-3,0,8,10,1,0,3,14,2),P(0,5,6,-3,0,9,12,1,0,3,16,2),P(0,6,6,-3,0,10,14,1,0,4,18,3),P(0,6,7,-4,0,11,15,1,0,4,20,3),P(0,7,8,-4,0,12,17,2,0,5,22,4),P(0,7,8,-4,0,13,19,2,0,5,24,4),P(0,7,9,-4,0,14,21,2,0,5,26,4),P(0,8,9,-5,0,15,22,2,0,6,28,5),P(0,8,10,-5,0,16,24,2,0,6,30,5),P(0,8,11,-5,0,17,26,2,0,6,32,5),P(0,9,11,-5,0,18,28,2,0,7,34,6),P(0,9,12,-6,0,19,29,2,0,7,36,6),P(0,10,13,-6,0,20,31,3,0,8,38,7),P(0,10,13,-6,0,21,33,3,0,8,40,7),P(0,10,14,-6,0,22,35,3,0,8,42,7),P(0,11,14,-7,0,23,36,3,0,9,44,8),P(0,11,15,-7,0,24,38,3,0,9,46,8)],R=["duration","easing","delay"],O={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},N={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function T(e){return"".concat(Math.round(e),"ms")}function I(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function M(e){const t=(0,n.A)({},O,e.easing),r=(0,n.A)({},N,e.duration);return(0,n.A)({getAutoHeightDuration:I,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0}=n;(0,o.A)(n,R);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof a?a:T(a)," ").concat(i," ").concat("string"===typeof s?s:T(s)))).join(",")}},e,{easing:t,duration:r})}const F={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},D=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:r={},transitions:u={},typography:d={}}=e,f=(0,o.A)(e,D);if(e.vars)throw new Error((0,a.A)(18));const p=A(r),h=(0,c.A)(e);let m=(0,i.A)(h,{mixins:(g=h.breakpoints,v=t,(0,n.A)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},v)),palette:p,shadows:j.slice(),typography:_(p,d),transitions:M(u),zIndex:(0,n.A)({},F)});var g,v;m=(0,i.A)(m,f);for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w(0,i.A)(e,t)),m),m.unstable_sxConfig=(0,n.A)({},s.A,null==f?void 0:f.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const L=z},5170:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(8279).A)()},3375:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n="$$material"},4535:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,_n:()=>s,ep:()=>i});var n=r(8052),o=r(5170),a=r(3375);const i=e=>(0,n.MC)(e)&&"classes"!==e,s=n.MC,l=(0,n.Ay)({themeId:a.A,defaultTheme:o.A,rootShouldForwardProp:i})},2876:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2919),o=r(5170),a=r(3375);function i(e){let{props:t,name:r}=e;return(0,n.A)({props:t,name:r,defaultTheme:o.A,themeId:a.A})}},6803:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(410).A},6593:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(4708).A},9662:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(8168),o=r(5043),a=r(8587),i=r(8387),s=r(8606),l=r(6803),c=r(2876),u=r(4535),d=r(7056),f=r(2400);function p(e){return(0,f.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=r(579);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t["color".concat((0,l.A)(r.color))],t["fontSize".concat((0,l.A)(r.fontSize))]]}})((e=>{let{theme:t,ownerState:r}=e;var n,o,a,i,s,l,c,u,d,f,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:r.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(o=n.create)?void 0:o.call(n,"fill",{duration:null==(a=t.transitions)||null==(a=a.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=t.typography)||null==(s=i.pxToRem)?void 0:s.call(i,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[r.fontSize],color:null!=(f=null==(p=(t.vars||t).palette)||null==(p=p[r.color])?void 0:p.main)?f:{action:null==(h=(t.vars||t).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[r.color]}})),v=o.forwardRef((function(e,t){const r=(0,c.A)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:f="inherit",component:v="svg",fontSize:y="medium",htmlColor:b,inheritViewBox:w=!1,titleAccess:x,viewBox:S="0 0 24 24"}=r,A=(0,a.A)(r,m),k=o.isValidElement(u)&&"svg"===u.type,C=(0,n.A)({},r,{color:f,component:v,fontSize:y,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:S,hasSvgAsChild:k}),E={};w||(E.viewBox=S);const _=(e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root","inherit"!==t&&"color".concat((0,l.A)(t)),"fontSize".concat((0,l.A)(r))]};return(0,s.A)(o,p,n)})(C);return(0,h.jsxs)(g,(0,n.A)({as:v,className:(0,i.A)(_.root,d),focusable:"false",color:b,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},E,A,k&&u.props,{ownerState:C,children:[k?u.props.children:u,x?(0,h.jsx)("title",{children:x}):null]}))}));v.muiName="SvgIcon";const y=v;function b(e,t){function r(r,o){return(0,h.jsx)(y,(0,n.A)({"data-testid":"".concat(t,"Icon"),ref:o},r,{children:e}))}return r.muiName=y.muiName,o.memo(o.forwardRef(r))}},950:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(6440).A},1512:(e,t,r)=>{"use strict";r.r(t),r.d(t,{capitalize:()=>o.A,createChainedFunction:()=>a.A,createSvgIcon:()=>i.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>f,setRef:()=>p,unstable_ClassNameGenerator:()=>x,unstable_useEnhancedEffect:()=>h.A,unstable_useId:()=>m.A,unsupportedProp:()=>g,useControlled:()=>v.A,useEventCallback:()=>y.A,useForkRef:()=>b.A,useIsFocusVisible:()=>w.A});var n=r(5430),o=r(6803),a=r(6593),i=r(9662),s=r(950);const l=function(e,t){return()=>null};var c=r(154),u=r(2427),d=r(6078);r(8168);const f=function(e,t){return()=>null};const p=r(9184).A;var h=r(5013),m=r(5879);const g=function(e,t,r,n,o){return null};var v=r(4516),y=r(3319),b=r(5849),w=r(7844);const x={configure:e=>{n.A.configure(e)}}},154:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);const o=function(e,t){var r,o;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},2427:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(2144).A},6078:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(6288).A},4516:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(1944).A},5013:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(3844).A},3319:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(4626).A},5849:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(7042).A},5879:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(992).A},7844:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(932).A},869:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(5043);var n=r(3290),o=r(579);function a(e){const{styles:t,defaultTheme:r={}}=e,a="function"===typeof t?e=>{return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,o.jsx)(n.mL,{styles:a})}},3174:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalStyles:()=>A.A,StyledEngineProvider:()=>S,ThemeContext:()=>l.T,css:()=>y.AH,default:()=>k,internal_processStyles:()=>C,keyframes:()=>y.i7});var n=r(8168),o=r(5043),a=r(918),i=/^((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|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)-.*))$/,s=(0,a.A)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(5756),c=r(1722),u=r(2830),d=r(9436),f=s,p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:p},m=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.SF)(t,r,n),(0,d.s)((function(){return(0,c.sk)(t,r,n)})),null},v=function e(t,r){var a,i,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==r&&(a=r.label,i=r.target);var f=m(t,r,s),p=f||h(d),v=!p("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&b.push("label:"+a+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{0,b.push(y[0][0]);for(var w=y.length,x=1;x{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},7266:(e,t,r)=>{"use strict";var n=r(4994);t.X4=p,t.e$=h,t.tL=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?h(e,t):m(e,t)},t.eM=function(e,t){const r=f(e),n=f(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},t.a=m;var o=n(r(7245)),a=n(r(5383));function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,a.default)(e,t,r)}function s(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,o.default)(9,e));let n,a=e.substring(t+1,e.length-1);if("color"===r){if(a=a.split(" "),n=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,o.default)(10,n))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:r,values:a,colorSpace:n}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?"".concat(e,"%"):e)).join(" ")};function u(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function d(e){e=l(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-a*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function f(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,u(e)}function h(e,t){if(e=l(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return u(e)}},8052:(e,t,r)=>{"use strict";var n=r(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r=m,rootShouldForwardProp:n=h,slotShouldForwardProp:l=h}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:v((0,o.default)({},e,{defaultTheme:r,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:m,skipSx:w,overridesResolver:x=y(g(p))}=c,S=(0,a.default)(c,f),A=void 0!==m?m:p&&"Root"!==p&&"root"!==p||!1,k=w||!1;let C=h;"Root"===p||"root"===p?C=n:p?C=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const E=(0,i.default)(e,(0,o.default)({shouldForwardProp:C,label:undefined},S)),_=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?n=>b(e,(0,o.default)({},n,{theme:v({theme:n.theme,defaultTheme:r,themeId:t})})):e,P=function(n){let a=_(n);for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l{const n=v((0,o.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[d]||!n.components[d].styleOverrides)return null;const a=n.components[d].styleOverrides,i={};return Object.entries(a).forEach((t=>{let[r,a]=t;i[r]=b(a,(0,o.default)({},e,{theme:n}))})),x(e,i)})),d&&!A&&c.push((e=>{var n;const a=v((0,o.default)({},e,{defaultTheme:r,themeId:t}));return b({variants:null==a||null==(n=a.components)||null==(n=n[d])?void 0:n.variants},(0,o.default)({},e,{theme:a}))})),k||c.push(u);const f=c.length-s.length;if(Array.isArray(n)&&f>0){const e=new Array(f).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const p=E(a,...c);return e.muiName&&(p.muiName=e.muiName),p};return E.withConfig&&(P.withConfig=E.withConfig),P}},t.MC=h;var o=n(r(4634)),a=n(r(4893)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(3174)),s=r(4534),l=(n(r(578)),n(r(2046)),n(r(4989))),c=n(r(3234));const u=["ownerState"],d=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:r,themeId:n}=e;return o=r,0===Object.keys(o).length?t:r[n]||r;var o}function y(e){return e?(t,r)=>r[e]:null}function b(e,t){let{ownerState:r}=t,n=(0,a.default)(t,u);const i="function"===typeof e?e((0,o.default)({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap((e=>b(e,(0,o.default)({ownerState:r},n))));if(i&&"object"===typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,a.default)(i,d);return e.forEach((e=>{let a=!0;"function"===typeof e.props?a=e.props((0,o.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(a=!1)})),a&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.default)({ownerState:r},n,r)):e.style))})),t}return i}},9751:(e,t,r)=>{"use strict";r.d(t,{EU:()=>s,NI:()=>i,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>o});var n=r(3216);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(o[e],"px)")};function i(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||a;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"===typeof t){const e=n.breakpoints||a;return Object.keys(t).reduce(((n,a)=>{if(-1!==Object.keys(e.values||o).indexOf(a)){n[e.up(a)]=r(t[a],a)}else{const e=a;n[e]=t[e]}return n}),{})}return r(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a(0,n.A)(e,t)),{});return l(Object.keys(t),i)}function u(e){let{values:t,breakpoints:r,base:n}=e;const o=n||function(e,t){if("object"!==typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n{null!=e[t]&&(r[t]=!0)})),r}(t,r),a=Object.keys(o);if(0===a.length)return t;let i;return a.reduce(((e,r,n)=>(Array.isArray(t)?(e[r]=null!=t[n]?t[n]:t[i],i=n):"object"===typeof t?(e[r]=null!=t[r]?t[r]:t[i],i=r):e[r]=t,e)),{})}},9703:(e,t,r)=>{"use strict";function n(e,t){const r=this;if(r.vars&&"function"===typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}r.d(t,{A:()=>n})},4853:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(8587),o=r(8168);const a=["values","unit","step"],i=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,o.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:s=5}=e,l=(0,n.A)(e,a),c=i(t),u=Object.keys(c);function d(e){const n="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(n).concat(r,")")}function f(e){const n="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(n-s/100).concat(r,")")}function p(e,n){const o=u.indexOf(n);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(r,") and ")+"(max-width:".concat((-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:n)-s/100).concat(r,")")}return(0,o.A)({keys:u,values:c,up:d,down:f,between:p,only:function(e){return u.indexOf(e)+1{"use strict";r.d(t,{A:()=>p});var n=r(8168),o=r(8587),a=r(3216),i=r(4853);const s={borderRadius:4};var l=r(8604);var c=r(8812),u=r(7758),d=r(9703);const f=["breakpoints","palette","spacing","shape"];const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:r={},spacing:p,shape:h={}}=e,m=(0,o.A)(e,f),g=(0,i.A)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n{const r=t(e);return"number"===typeof r?"".concat(r,"px"):r})).join(" ")};return r.mui=!0,r}(p);let y=(0,a.A)({breakpoints:g,direction:"ltr",components:{},palette:(0,n.A)({mode:"light"},r),spacing:v,shape:(0,n.A)({},s,h)},m);y.applyStyles=d.A;for(var b=arguments.length,w=new Array(b>1?b-1:0),x=1;x(0,a.A)(e,t)),y),y.unstable_sxConfig=(0,n.A)({},u.A,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},4989:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>a.A});var n=r(8280),o=r(4853),a=r(9703)},3815:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(3216);const o=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},8604:(e,t,r)=>{"use strict";r.d(t,{LX:()=>h,MA:()=>p,_W:()=>m,Lc:()=>y,Ms:()=>b});var n=r(9751),o=r(7162),a=r(3815);const i={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,r]=e.split(""),n=i[t],o=s[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function p(e,t,r,n){var a;const i=null!=(a=(0,o.Yn)(e,t,!1))?a:r;return"number"===typeof i?e=>"string"===typeof e?e:i*e:Array.isArray(i)?e=>"string"===typeof e?e:i[e]:"function"===typeof i?i:()=>{}}function h(e){return p(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"===typeof r?-r:"-".concat(r)}function g(e,t,r,o){if(-1===t.indexOf(r))return null;const a=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=m(t,r),e)),{})}(c(r),o),i=e[r];return(0,n.NI)(e,i,a)}function v(e,t){const r=h(e.theme);return Object.keys(e).map((n=>g(e,t,n,r))).reduce(a.A,{})}function y(e){return v(e,u)}function b(e){return v(e,d)}function w(e){return v(e,f)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=f},7162:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,BO:()=>i,Yn:()=>a});var n=r(410),o=r(9751);function a(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&r){const r="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function i(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"===typeof e?e(r):Array.isArray(e)?e[r]||o:a(e,r)||o,t&&(n=t(n,o,e)),n}const s=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=a(e.theme,s)||{};return(0,o.NI)(e,c,(e=>{let o=i(u,l,e);return e===o&&"string"===typeof e&&(o=i(u,l,"".concat(t).concat("default"===e?"":(0,n.A)(e)),e)),!1===r?o:{[r]:o}}))};return c.propTypes={},c.filterProps=[t],c}},7758:(e,t,r)=>{"use strict";r.d(t,{A:()=>I});var n=r(8604),o=r(7162),a=r(3815);const i=function(){for(var e=arguments.length,t=new Array(e),r=0;r(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,r)=>n[r]?(0,a.A)(t,n[r](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var s=r(9751);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),f=c("borderRight",l),p=c("borderBottom",l),h=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),S=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n._W)(t,e)});return(0,s.NI)(e,e.borderRadius,r)}return null};S.propTypes={},S.filterProps=["borderRadius"];i(u,d,f,p,h,m,g,v,y,b,S,w,x);const A=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,n.MA)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n._W)(t,e)});return(0,s.NI)(e,e.gap,r)}return null};A.propTypes={},A.filterProps=["gap"];const k=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,n.MA)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n._W)(t,e)});return(0,s.NI)(e,e.columnGap,r)}return null};k.propTypes={},k.filterProps=["columnGap"];const C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,n.MA)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n._W)(t,e)});return(0,s.NI)(e,e.rowGap,r)}return null};C.propTypes={},C.filterProps=["rowGap"];i(A,k,C,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function E(e,t){return"grey"===t?t:e}i((0,o.Ay)({prop:"color",themeKey:"palette",transform:E}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:E}));function _(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const P=(0,o.Ay)({prop:"width",transform:_}),j=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.zu[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:_(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};j.filterProps=["maxWidth"];const R=(0,o.Ay)({prop:"minWidth",transform:_}),O=(0,o.Ay)({prop:"height",transform:_}),N=(0,o.Ay)({prop:"maxHeight",transform:_}),T=(0,o.Ay)({prop:"minHeight",transform:_}),I=((0,o.Ay)({prop:"size",cssProperty:"width",transform:_}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:_}),i(P,j,R,O,N,T,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:A},rowGap:{style:C},columnGap:{style:k},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_},maxWidth:{style:j},minWidth:{transform:_},height:{transform:_},maxHeight:{transform:_},minHeight:{transform:_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},8698:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(8168),o=r(8587),a=r(3216),i=r(7758);const s=["sx"],l=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:i.A;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function c(e){const{sx:t}=e,r=(0,o.A)(e,s),{systemProps:i,otherProps:c}=l(r);let u;return u=Array.isArray(t)?[i,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,a.Q)(e)?(0,n.A)({},i,e):i}:(0,n.A)({},i,t),(0,n.A)({},c,{sx:u})}},3234:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>n.k,unstable_defaultSxConfig:()=>a.A});var n=r(8812),o=r(8698),a=r(7758)},8812:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,k:()=>l});var n=r(410),o=r(3815),a=r(7162),i=r(9751),s=r(7758);function l(){function e(e,t,r,o){const s={[e]:t,theme:r},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:f}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,a.Yn)(r,u)||{};if(f)return f(s);return(0,i.NI)(s,t,(t=>{let r=(0,a.BO)(p,d,t);return t===r&&"string"===typeof t&&(r=(0,a.BO)(p,d,"".concat(e).concat("default"===t?"":(0,n.A)(t)),t)),!1===c?r:{[c]:r}}))}return function t(r){var n;const{sx:a,theme:l={}}=r||{};if(!a)return null;const c=null!=(n=l.unstable_sxConfig)?n:s.A;function u(r){let n=r;if("function"===typeof r)n=r(l);else if("object"!==typeof r)return r;if(!n)return null;const a=(0,i.EU)(l.breakpoints),s=Object.keys(a);let u=a;return Object.keys(n).forEach((r=>{const a=(s=n[r],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==a&&void 0!==a)if("object"===typeof a)if(c[r])u=(0,o.A)(u,e(r,a,l,c));else{const e=(0,i.NI)({theme:l},a,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;re.concat(Object.keys(t))),[]),o=new Set(n);return t.every((e=>o.size===Object.keys(e).length))}(e,a)?u=(0,o.A)(u,e):u[r]=t({sx:a,theme:l})}else u=(0,o.A)(u,e(r,a,l,c))})),(0,i.vf)(s,u)}return Array.isArray(a)?a.map(u):u(a)}}const c=l();c.filterProps=["sx"];const u=c},5527:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8280),o=r(7082);const a=(0,n.A)();const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return(0,o.A)(e)}},2919:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(2018);var o=r(5527);function a(e){let{props:t,name:r,defaultTheme:a,themeId:i}=e,s=(0,o.A)(a);i&&(s=s[i]||s);const l=function(e){const{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.A)(t.components[r].defaultProps,o):o}({theme:s,name:r,props:t});return l}},7082:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5043),o=r(5756);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=n.useContext(o.T);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},2374:(e,t,r)=>{"use strict";t.A=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(5043)),o=r(3174);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=n.useContext(o.ThemeContext);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},5430:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n=e=>e,o=(()=>{let e=n;return{configure(t){e=t},generate:t=>e(t),reset(){e=n}}})()},410:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6632);function o(e){if("string"!==typeof e)throw new Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},578:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(410)},7040:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,r))}},5383:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(7040)},8606:(e,t,r)=>{"use strict";function n(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{A:()=>n})},4708:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;rnull==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o{}))}r.d(t,{A:()=>n})},6440:(e,t,r)=>{"use strict";function n(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,o=new Array(n),a=0;a{e.apply(this,o)}),r)}return n.clear=()=>{clearTimeout(t)},n}r.d(t,{A:()=>n})},3216:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,Q:()=>o});var n=r(8168);function o(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function a(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=a(e[r])})),t}function i(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=r.clone?(0,n.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((n=>{"__proto__"!==n&&(o(t[n])&&n in e&&o(e[n])?s[n]=i(e[n],t[n],r):r.clone?s[n]=o(t[n])?a(t[n]):t[n]:s[n]=t[n])})),s}},4534:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,isPlainObject:()=>n.Q});var n=r(3216)},6632:(e,t,r)=>{"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rn})},7245:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(6632)},2400:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,li:()=>o});var n=r(5430);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function a(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const a=o[t];return a?"".concat(r,"-").concat(a):"".concat(n.A.generate(e),"-").concat(t)}},7056:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2400);function o(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,n.Ay)(e,t,r)})),o}},2046:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,getFunctionName:()=>a});var n=r(9565);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function a(e){const t="".concat(e).match(o);return t&&t[1]||""}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||a(e)||t}function s(e,t,r){const n=i(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return i(e,"Component");if("object"===typeof e)switch(e.$$typeof){case n.ForwardRef:return s(e,e.render,"ForwardRef");case n.Memo:return s(e,e.type,"memo");default:return}}}},8609:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case s:case i:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=h},9565:(e,t,r)=>{"use strict";e.exports=r(8609)},2144:(e,t,r)=>{"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{A:()=>n})},6288:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2144);function o(e){return(0,n.A)(e).defaultView||window}},2018:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(8168);function o(e,t){const r=(0,n.A)({},t);return Object.keys(e).forEach((a=>{if(a.toString().match(/^(components|slots)$/))r[a]=(0,n.A)({},e[a],r[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const i=e[a]||{},s=t[a];r[a]={},s&&Object.keys(s)?i&&Object.keys(i)?(r[a]=(0,n.A)({},s),Object.keys(i).forEach((e=>{r[a][e]=o(i[e],s[e])}))):r[a]=s:r[a]=i}else void 0===r[a]&&(r[a]=e[a])})),r}},9184:(e,t,r)=>{"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,{A:()=>n})},1944:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);function o(e){let{controlled:t,default:r,name:o,state:a="value"}=e;const{current:i}=n.useRef(void 0!==t),[s,l]=n.useState(r);return[i?t:s,n.useCallback((e=>{i||l(e)}),[])]}},3844:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);const o="undefined"!==typeof window?n.useLayoutEffect:n.useEffect},4626:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5043),o=r(3844);const a=function(e){const t=n.useRef(e);return(0,o.A)((()=>{t.current=e})),n.useRef((function(){return(0,t.current)(...arguments)})).current}},7042:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5043),o=r(9184);function a(){for(var e=arguments.length,t=new Array(e),r=0;rt.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.A)(t,e)}))}),t)}},992:(e,t,r)=>{"use strict";var n;r.d(t,{A:()=>s});var o=r(5043);let a=0;const i=(n||(n=r.t(o,2)))["useId".toString()];function s(e){if(void 0!==i){const t=i();return null!=e?e:t}return function(e){const[t,r]=o.useState(e),n=e||t;return o.useEffect((()=>{null==t&&(a+=1,r("mui-".concat(a)))}),[t]),n}(e)}},932:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(5043),o=r(1140);let a=!0,i=!1;const s=new o.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function u(){a=!1}function d(){"hidden"===this.visibilityState&&i&&(a=!0)}function f(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return a||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!l[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function p(){const e=n.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!f(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,s.start(100,(()=>{i=!1})),t.current=!1,!0)},ref:e}}},1140:(e,t,r)=>{"use strict";r.d(t,{E:()=>i,A:()=>s});var n=r(5043);const o={};const a=[];class i{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new i}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const r=n.useRef(o);return r.current===o&&(r.current=e(t)),r}(i.create).current;var t;return t=e.disposeEffect,n.useEffect(t,a),e}},3853:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case s:case i:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===d},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===m},t.isMemo=function(e){return v(e)===h},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===f},t.isSuspenseList=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===s||e===i||e===f||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=v},1697:(e,t,r)=>{"use strict";e.exports=r(3853)},3081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(1631),o=r(6423),a=r(8e3),i=r(7805),s=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends n.default{_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,s):i;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=r(8647);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=r(8789);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=r(4639);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=r(1180);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})},2037:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class i{}t._CodeOrName=i,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class s extends i{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=s;class l extends i{constructor(e){super(),this._items="string"===typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>"".concat(e).concat(t)),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof s&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function c(e){const t=[e[0]];let r=0;for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a1?n-1:0),a=1;a{"use strict";var n,o,a,i,s,l,c=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const u=r(2037),d=r(6602);var f=r(2037);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return f.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return f.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return f.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}});var p=r(6602);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return p.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return p.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return p.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return p.varKinds}}),t.operators={GT:new u._Code(">"),GTE:new u._Code(">="),LT:new u._Code("<"),LTE:new u._Code("<="),EQ:new u._Code("==="),NEQ:new u._Code("!=="),NOT:new u._Code("!"),OR:new u._Code("||"),AND:new u._Code("&&"),ADD:new u._Code("+")};class h{optimizeNodes(){return this}optimizeNames(e,t){return this}}class m extends h{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render(e){let{es5:t,_n:r}=e;const n=t?d.varKinds.var:this.varKind,o=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(n," ").concat(this.name).concat(o,";")+r}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,e,t)),this}get names(){return this.rhs instanceof u._CodeOrName?this.rhs.names:{}}}class g extends h{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render(e){let{_n:t}=e;return"".concat(this.lhs," = ").concat(this.rhs,";")+t}optimizeNames(e,t){if(!(this.lhs instanceof u.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=z(this.rhs,e,t),this}get names(){return D(this.lhs instanceof u.Name?{}:{...this.lhs.names},this.rhs)}}class v extends g{constructor(e,t,r,n){super(e,r,n),this.op=t}render(e){let{_n:t}=e;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+t}}class y extends h{constructor(e){super(),this.label=e,this.names={}}render(e){let{_n:t}=e;return"".concat(this.label,":")+t}}class b extends h{constructor(e){super(),this.label=e,this.names={}}render(e){let{_n:t}=e;const r=this.label?" ".concat(this.label):"";return"break".concat(r,";")+t}}class w extends h{constructor(e){super(),this.error=e}render(e){let{_n:t}=e;return"throw ".concat(this.error,";")+t}get names(){return this.error.names}}class x extends h{constructor(e){super(),this.code=e}render(e){let{_n:t}=e;return"".concat(this.code,";")+t}optimizeNodes(){return"".concat(this.code)?this:void 0}optimizeNames(e,t){return this.code=z(this.code,e,t),this}get names(){return this.code instanceof u._CodeOrName?this.code.names:{}}}class S extends h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(L(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>F(e,t.names)),{})}}class A extends S{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class k extends S{}class C extends A{}C.kind="else";class E extends A{constructor(e,t){super(t),this.condition=e}render(e){let t="if(".concat(this.condition,")")+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new C(e):e}return t?!1===e?t instanceof E?t:t.nodes:this.nodes.length?this:new E(B(e),t instanceof E?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=z(this.condition,e,t),this}get names(){const e=super.names;return D(e,this.condition),this.else&&F(e,this.else.names),e}}E.kind="if";class _ extends A{}_.kind="for";class P extends _{constructor(e){super(),this.iteration=e}render(e){return"for(".concat(this.iteration,")")+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=z(this.iteration,e,t),this}get names(){return F(super.names,this.iteration.names)}}class j extends _{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?d.varKinds.var:this.varKind,{name:r,from:n,to:o}=this;return"for(".concat(t," ").concat(r,"=").concat(n,"; ").concat(r,"<").concat(o,"; ").concat(r,"++)")+super.render(e)}get names(){const e=D(super.names,this.from);return D(e,this.to)}}class R extends _{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=z(this.iterable,e,t),this}get names(){return F(super.names,this.iterable.names)}}class O extends A{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){const t=this.async?"async ":"";return"".concat(t,"function ").concat(this.name,"(").concat(this.args,")")+super.render(e)}}O.kind="func";class N extends S{render(e){return"return "+super.render(e)}}N.kind="return";class T extends A{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&F(e,this.catch.names),this.finally&&F(e,this.finally.names),e}}class I extends A{constructor(e){super(),this.error=e}render(e){return"catch(".concat(this.error,")")+super.render(e)}}I.kind="catch";class M extends A{render(e){return"finally"+super.render(e)}}M.kind="finally";function F(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function D(e,t){return t instanceof u._CodeOrName?F(e,t.names):e}function z(e,t,r){return e instanceof u.Name?o(e):(n=e)instanceof u._Code&&n._items.some((e=>e instanceof u.Name&&1===t[e.str]&&void 0!==r[e.str]))?new u._Code(e._items.reduce(((e,t)=>(t instanceof u.Name&&(t=o(t)),t instanceof u._Code?e.push(...t._items):e.push(t),e)),[])):e;var n;function o(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function L(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function B(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,u._)(i||(i=c(["!",""])),U(e))}t.CodeGen=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new d.Scope({parent:e}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new m(e,o,r)),o}const(e,t,r){return this._def(d.varKinds.const,e,t,r)}let(e,t,r){return this._def(d.varKinds.let,e,t,r)}var(e,t,r){return this._def(d.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new g(e,t,r))}add(e,r){return this._leafNode(new v(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==u.nil&&this._leafNode(new x(e)),this}object(){const e=["{"];for(var t=arguments.length,r=new Array(t),n=0;n1&&e.push(","),e.push(o),(o!==a||this.opts.es5)&&(e.push(":"),(0,u.addCodeArg)(e,a));return e.push("}"),new u._Code(e)}if(e,t,r){if(this._blockNode(new E(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new E(e))}else(){return this._elseNode(new C)}endIf(){return this._endBlockNode(E,C)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new P(e),t)}forRange(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?d.varKinds.var:d.varKinds.let;const a=this._scope.toName(e);return this._for(new j(o,a,t,r),(()=>n(a)))}forOf(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.varKinds.const;const i=this._scope.toName(e);if(this.opts.es5){const e=t instanceof u.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,u._)(n||(n=c(["",".length"])),e),(t=>{this.var(i,(0,u._)(o||(o=c(["","[","]"])),e,t)),r(i)}))}return this._for(new R("of",a,i,t),(()=>r(i)))}forIn(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?d.varKinds.var:d.varKinds.const;if(this.opts.ownProperties)return this.forOf(e,(0,u._)(a||(a=c(["Object.keys(",")"])),t),r);const o=this._scope.toName(e);return this._for(new R("in",n,o,t),(()=>r(o)))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new y(e))}break(e){return this._leafNode(new b(e))}return(e){const t=new N;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(N)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new T;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new I(e),t(e)}return r&&(this._currNode=n.finally=new M,this.code(r)),this._endBlockNode(I,M)}throw(e){return this._leafNode(new w(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error("CodeGen: wrong number of nodes: ".concat(r," vs ").concat(e," expected"));return this._nodes.length=t,this}func(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.nil,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;return this._blockNode(new O(e,t,r)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(t?"".concat(e.kind,"/").concat(t.kind):e.kind,'"'))}_elseNode(e){const t=this._currNode;if(!(t instanceof E))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=B;const $=V(t.operators.AND);t.and=function(){for(var e=arguments.length,t=new Array(e),r=0;rt===u.nil?r:r===u.nil?t:(0,u._)(s||(s=c([""," "," ",""])),U(t),e,U(r))}function U(e){return e instanceof u.Name?e:(0,u._)(l||(l=c(["(",")"])),e)}t.or=function(){for(var e=arguments.length,t=new Array(e),r=0;r{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const c=r(2037);class u extends Error{constructor(e){super('CodeGen: "code" for '.concat(e," not defined")),this.value=e.value}}var d;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(d=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new c.Name("const"),let:new c.Name("let"),var:new c.Name("var")};class f{constructor(){let{prefixes:e,parent:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof c.Name?e:this.name(e)}name(e){return new c.Name(this._newName(e))}_newName(e){const t=this._names[e]||this._nameGroup(e);return"".concat(e).concat(t.index++)}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error('CodeGen: prefix "'.concat(e,'" is not allowed in this scope'));return this._names[e]={prefix:e,index:0}}}t.Scope=f;class p extends c.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,t){let{property:r,itemIndex:o}=t;this.value=e,this.scopePath=(0,c._)(n||(n=l([".","[","]"])),new c.Name(r),o)}}t.ValueScopeName=p;const h=(0,c._)(o||(o=l(["\n"],["\\n"])));t.ValueScope=class extends f{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?h:c.nil}}get(){return this._scope}name(e){return new p(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values;return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error('CodeGen: name "'.concat(t,'" has no value'));return(0,c._)(a||(a=l(["","",""])),e,t.scopePath)}))}scopeCode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error('CodeGen: name "'.concat(e,'" has no value'));return e.value.code}),t,r)}_reduceValues(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,a=c.nil;for(const f in e){const p=e[f];if(!p)continue;const h=n[f]=n[f]||new Map;p.forEach((e=>{if(h.has(e))return;h.set(e,d.Started);let n=r(e);if(n){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;a=(0,c._)(i||(i=l(["",""," "," = ",";",""])),a,r,e,n,this.opts._n)}else{if(!(n=null===o||void 0===o?void 0:o(e)))throw new u(e);a=(0,c._)(s||(s=l(["","","",""])),a,n,this.opts._n)}h.set(e,d.Completed)}))}return a}}},5705:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,S,A,k,C,E,_,P=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const j=r(8789),R=r(1410),O=r(9188);function N(e,t){const r=e.const("err",t);e.if((0,j._)(g||(g=P([""," === null"])),O.default.vErrors),(()=>e.assign(O.default.vErrors,(0,j._)(v||(v=P(["[","]"])),r))),(0,j._)(y||(y=P(["",".push(",")"])),O.default.vErrors,r)),e.code((0,j._)(b||(b=P(["","++"])),O.default.errors))}function T(e,t){const{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,j._)(w||(w=P(["new ","(",")"])),e.ValidationError,t)):(r.assign((0,j._)(x||(x=P(["",".errors"])),n),t),r.return(!1))}t.keywordError={message:e=>{let{keyword:t}=e;return(0,j.str)(n||(n=P(['must pass "','" keyword validation'])),t)}},t.keyword$DataError={message:e=>{let{keyword:t,schemaType:r}=e;return r?(0,j.str)(o||(o=P(['"','" keyword must be '," ($data)"])),t,r):(0,j.str)(a||(a=P(['"','" keyword is invalid ($data)'])),t)}},t.reportError=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;const{it:a}=e,{gen:s,compositeRule:l,allErrors:c}=a,u=M(e,r,n);(null!==o&&void 0!==o?o:l||c)?N(s,u):T(a,(0,j._)(i||(i=P(["[","]"])),u))},t.reportExtraError=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,n=arguments.length>2?arguments[2]:void 0;const{it:o}=e,{gen:a,compositeRule:i,allErrors:s}=o;N(a,M(e,r,n)),i||s||T(o,O.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(O.default.errors,t),e.if((0,j._)(s||(s=P([""," !== null"])),O.default.vErrors),(()=>e.if(t,(()=>e.assign((0,j._)(l||(l=P(["",".length"])),O.default.vErrors),t)),(()=>e.assign(O.default.vErrors,null)))))},t.extendErrors=function(e){let{gen:t,keyword:r,schemaValue:n,data:o,errsCount:a,it:i}=e;if(void 0===a)throw new Error("ajv implementation error");const s=t.name("err");t.forRange("i",a,O.default.errors,(e=>{t.const(s,(0,j._)(c||(c=P(["","[","]"])),O.default.vErrors,e)),t.if((0,j._)(u||(u=P(["",".instancePath === undefined"])),s),(()=>t.assign((0,j._)(d||(d=P(["",".instancePath"])),s),(0,j.strConcat)(O.default.instancePath,i.errorPath)))),t.assign((0,j._)(f||(f=P(["",".schemaPath"])),s),(0,j.str)(p||(p=P(["","/",""])),i.errSchemaPath,r)),i.opts.verbose&&(t.assign((0,j._)(h||(h=P(["",".schema"])),s),n),t.assign((0,j._)(m||(m=P(["",".data"])),s),o))}))};const I={keyword:new j.Name("keyword"),schemaPath:new j.Name("schemaPath"),params:new j.Name("params"),propertyName:new j.Name("propertyName"),message:new j.Name("message"),schema:new j.Name("schema"),parentSchema:new j.Name("parentSchema")};function M(e,t,r){const{createErrors:n}=e.it;return!1===n?(0,j._)(S||(S=P(["{}"]))):function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{gen:n,it:o}=e,a=[F(o,r),D(e,r)];return function(e,t,r){let{params:n,message:o}=t;const{keyword:a,data:i,schemaValue:s,it:l}=e,{opts:c,propertyName:u,topSchemaRef:d,schemaPath:f}=l;r.push([I.keyword,a],[I.params,"function"==typeof n?n(e):n||(0,j._)(E||(E=P(["{}"])))]),c.messages&&r.push([I.message,"function"==typeof o?o(e):o]);c.verbose&&r.push([I.schema,s],[I.parentSchema,(0,j._)(_||(_=P(["","",""])),d,f)],[O.default.data,i]);u&&r.push([I.propertyName,u])}(e,t,a),n.object(...a)}(e,t,r)}function F(e,t){let{errorPath:r}=e,{instancePath:n}=t;const o=n?(0,j.str)(A||(A=P(["","",""])),r,(0,R.getErrorPath)(n,R.Type.Str)):r;return[O.default.instancePath,(0,j.strConcat)(O.default.instancePath,o)]}function D(e,t){let{keyword:r,it:{errSchemaPath:n}}=e,{schemaPath:o,parentSchema:a}=t,i=a?n:(0,j.str)(k||(k=P(["","/",""])),n,r);return o&&(i=(0,j.str)(C||(C=P(["","",""])),i,(0,R.getErrorPath)(o,R.Type.Str))),[I.schemaPath,i]}},5787:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const i=r(8789),s=r(4639),l=r(9188),c=r(9936),u=r(1410),d=r(8647);class f{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,c.normalizeId)(null===r||void 0===r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null===r||void 0===r?void 0:r.$async,this.refs={}}}function p(e){const t=m.call(this,e);if(t)return t;const r=(0,c.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:u,lines:f}=this.opts.code,{ownProperties:p}=this.opts,h=new i.CodeGen(this.scope,{es5:u,lines:f,ownProperties:p});let g;e.$async&&(g=h.scopeValue("Error",{ref:s.default,code:(0,i._)(n||(n=a(['require("ajv/dist/runtime/validation_error").default'])))}));const v=h.scopeName("validate");e.validateName=v;const y={gen:h,allErrors:this.opts.allErrors,data:l.default.data,parentData:l.default.parentData,parentDataProperty:l.default.parentDataProperty,dataNames:[l.default.data],dataPathArr:[i.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:h.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,i.stringify)(e.schema)}:{ref:e.schema}),validateName:v,ValidationError:g,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:i.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,i._)(o||(o=a(['""']))),opts:this.opts,self:this};let b;try{this._compilations.add(e),(0,d.validateFunctionCode)(y),h.optimize(this.opts.code.optimize);const t=h.toString();b="".concat(h.scopeRefs(l.default.scope),"return ").concat(t),this.opts.code.process&&(b=this.opts.code.process(b,e));const r=new Function("".concat(l.default.self),"".concat(l.default.scope),b)(this,this.scope.get());if(this.scope.value(v,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:v,validateCode:t,scopeValues:h._values}),this.opts.unevaluated){const{props:e,items:t}=y;r.evaluated={props:e instanceof i.Name?void 0:e,items:t instanceof i.Name?void 0:t,dynamicProps:e instanceof i.Name,dynamicItems:t instanceof i.Name},r.source&&(r.source.evaluated=(0,i.stringify)(r.evaluated))}return e.validate=r,e}catch(w){throw delete e.validate,delete e.validateName,b&&this.logger.error("Error compiling schema, function code:",b),w}finally{this._compilations.delete(e)}}function h(e){return(0,c.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:p.call(this,e)}function m(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function g(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||v.call(this,e,t)}function v(e,t){const r=this.opts.uriResolver.parse(t),n=(0,c._getFullPath)(this.opts.uriResolver,r);let o=(0,c.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return b.call(this,r,e);const a=(0,c.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=v.call(this,e,i);if("object"!==typeof(null===t||void 0===t?void 0:t.schema))return;return b.call(this,r,t)}if("object"===typeof(null===i||void 0===i?void 0:i.schema)){if(i.validate||p.call(this,i),a===(0,c.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,c.resolveUrl)(this.opts.uriResolver,o,n)),new f({schema:t,schemaId:r,root:e,baseId:o})}return b.call(this,r,i)}}t.SchemaEnv=f,t.compileSchema=p,t.resolveRef=function(e,t,r){var n;r=(0,c.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=g.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new f({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=h.call(this,a):void 0},t.getCompilingSchema=m,t.resolveSchema=v;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function b(e,t){let{baseId:r,schema:n,root:o}=t;var a;if("/"!==(null===(a=e.fragment)||void 0===a?void 0:a[0]))return;for(const l of e.fragment.slice(1).split("/")){if("boolean"===typeof n)return;const e=n[(0,u.unescapeFragment)(l)];if(void 0===e)return;n=e;const t="object"===typeof n&&n[this.opts.schemaId];!y.has(l)&&t&&(r=(0,c.resolveUrl)(this.opts.uriResolver,r,t))}let i;if("boolean"!=typeof n&&n.$ref&&!(0,u.schemaHasRulesButRef)(n,this.RULES)){const e=(0,c.resolveUrl)(this.opts.uriResolver,r,n.$ref);i=v.call(this,o,e)}const{schemaId:s}=this.opts;return i=i||new f({schema:n,schemaId:s,root:o,baseId:r}),i.schema!==i.root.schema?i:void 0}},9188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8789),o={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=o},1180:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9936);class o extends Error{constructor(e,t,r,o){super(o||"can't resolve reference ".concat(r," from id ").concat(t)),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=o},9936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(1410),o=r(122),a=r(1125),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof e||(!0===t?!l(e):!!t&&c(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(s.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(l))return!0;if("object"==typeof r&&l(r))return!0}return!1}function c(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!i.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=c(e))),t===1/0))return 1/0}return t}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(t=p(t));const r=e.parse(t);return d(e,r)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=d;const f=/#\/?$/;function p(e){return e?e.replace(f,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,r){return r=p(r),e.resolve(t,r)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,i=p(e[r]||t),s={"":i},l=u(n,i,!1),c={},d=new Set;return a(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const a=l+t;let i=s[o];function u(t){const r=this.opts.uriResolver.resolve;if(t=p(i?r(i,t):t),d.has(t))throw m(t);d.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?f(e,n.schema,t):t!==p(a)&&("#"===t[0]?(f(e,c[t],t),c[t]=e):this.refs[t]=a),t}function g(e){if("string"==typeof e){if(!h.test(e))throw new Error('invalid anchor "'.concat(e,'"'));u.call(this,"#".concat(e))}}"string"==typeof e[r]&&(i=u.call(this,e[r])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),s[t]=i})),c;function f(e,t,r){if(void 0!==t&&!o(e,t))throw m(r)}function m(e){return new Error('reference "'.concat(e,'" resolves to more than one schema'))}}},9447:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},1410:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const S=r(8789),A=r(2037);function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema;const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"===typeof t)return;const o=n.RULES.keywords;for(const a in t)o[a]||T(e,'unknown keyword: "'.concat(a,'"'))}function C(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function E(e){return"number"==typeof e?"".concat(e):e.replace(/~/g,"~0").replace(/\//g,"~1")}function _(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function P(e){let{mergeNames:t,mergeToName:r,mergeValues:n,resultToName:o}=e;return(e,a,i,s)=>{const l=void 0===i?a:i instanceof S.Name?(a instanceof S.Name?t(e,a,i):r(e,a,i),i):a instanceof S.Name?(r(e,i,a),a):n(a,i);return s!==S.Name||l instanceof S.Name?l:o(e,l)}}function j(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",(0,S._)(m||(m=x(["{}"]))));return void 0!==t&&R(e,r,t),r}function R(e,t,r){Object.keys(r).forEach((r=>e.assign((0,S._)(g||(g=x(["","",""])),t,(0,S.getProperty)(r)),!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(k(e,t),!C(t,e.self.RULES.all))},t.checkUnknownRules=k,t.schemaHasRules=C,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function(e,t,r,a){let{topSchemaRef:i,schemaPath:s}=e;if(!a){if("number"==typeof t||"boolean"==typeof t)return t;if("string"==typeof t)return(0,S._)(n||(n=x(["",""])),t)}return(0,S._)(o||(o=x(["","","",""])),i,s,(0,S.getProperty)(r))},t.unescapeFragment=function(e){return _(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(E(e))},t.escapeJsonPointer=E,t.unescapeJsonPointer=_,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:P({mergeNames:(e,t,r)=>e.if((0,S._)(a||(a=x([""," !== true && "," !== undefined"])),r,t),(()=>{e.if((0,S._)(i||(i=x([""," === true"])),t),(()=>e.assign(r,!0)),(()=>e.assign(r,(0,S._)(s||(s=x([""," || {}"])),r)).code((0,S._)(l||(l=x(["Object.assign(",", ",")"])),r,t))))})),mergeToName:(e,t,r)=>e.if((0,S._)(c||(c=x([""," !== true"])),r),(()=>{!0===t?e.assign(r,!0):(e.assign(r,(0,S._)(u||(u=x([""," || {}"])),r)),R(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:j}),items:P({mergeNames:(e,t,r)=>e.if((0,S._)(d||(d=x([""," !== true && "," !== undefined"])),r,t),(()=>e.assign(r,(0,S._)(f||(f=x([""," === true ? true : "," > "," ? "," : ",""])),t,r,t,r,t)))),mergeToName:(e,t,r)=>e.if((0,S._)(p||(p=x([""," !== true"])),r),(()=>e.assign(r,!0===t||(0,S._)(h||(h=x([""," > "," ? "," : ",""])),r,t,r,t)))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=j,t.setEvaluated=R;const O={};var N;function T(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.opts.strictSchema;if(r){if(t="strict mode: ".concat(t),!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:O[t.code]||(O[t.code]=new A._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(N=t.Type||(t.Type={})),t.getErrorPath=function(e,t,r){if(e instanceof S.Name){const n=t===N.Num;return r?n?(0,S._)(v||(v=x(['"[" + ',' + "]"'])),e):(0,S._)(y||(y=x(['"[\'" + ',' + "\']"'])),e):n?(0,S._)(b||(b=x(['"/" + ',""])),e):(0,S._)(w||(w=x(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),e)}return r?(0,S.getProperty)(e).toString():"/"+E(e)},t.checkStrictMode=T},5566:(e,t)=>{"use strict";function r(e,t){return t.rules.some((t=>n(e,t)))}function n(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function(e,t){let{schema:n,self:o}=e;const a=o.RULES.types[t];return a&&!0!==a&&r(n,a)},t.shouldUseGroup=r,t.shouldUseRule=n},6404:(e,t,r)=>{"use strict";var n,o=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const a=r(5705),i=r(8789),s=r(9188),l={message:"boolean schema is false"};function c(e,t){const{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,a.reportError)(o,l,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:a}=e;!1===r?c(e,!1):"object"==typeof r&&!0===r.$async?t.return(s.default.data):(t.assign((0,i._)(n||(n=o(["",".errors"])),a),null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),c(e)):r.var(t,!0)}},9507:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,S,A,k,C,E,_,P,j,R,O,N,T,I,M,F=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const D=r(9447),z=r(5566),L=r(5705),B=r(8789),$=r(1410);var W;function V(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(D.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(W=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=V(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=V,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:C,opts:E}=e,_=function(e,t){return t?e.filter((e=>U.has(e)||"array"===t&&"array"===e)):[]}(t,E.coerceTypes),P=t.length>0&&!(0===_.length&&1===t.length&&(0,z.schemaHasRulesForType)(e,t[0]));if(P){const P=q(t,C,E.strictNumbers,W.Wrong);r.if(P,(()=>{_.length?function(e,t,r){const{gen:C,data:E,opts:_}=e,P=C.let("dataType",(0,B._)(n||(n=F(["typeof ",""])),E)),j=C.let("coerced",(0,B._)(o||(o=F(["undefined"]))));"array"===_.coerceTypes&&C.if((0,B._)(a||(a=F([""," == 'object' && Array.isArray(",") && ",".length == 1"])),P,E,E),(()=>C.assign(E,(0,B._)(i||(i=F(["","[0]"])),E)).assign(P,(0,B._)(s||(s=F(["typeof ",""])),E)).if(q(t,E,_.strictNumbers),(()=>C.assign(j,E)))));C.if((0,B._)(l||(l=F([""," !== undefined"])),j));for(const n of r)(U.has(n)||"array"===n&&"array"===_.coerceTypes)&&R(n);function R(e){switch(e){case"string":return void C.elseIf((0,B._)(u||(u=F(["",' == "number" || ',' == "boolean"'])),P,P)).assign(j,(0,B._)(d||(d=F(['"" + ',""])),E)).elseIf((0,B._)(f||(f=F([""," === null"])),E)).assign(j,(0,B._)(p||(p=F(['""']))));case"number":return void C.elseIf((0,B._)(h||(h=F(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),P,E,P,E,E,E)).assign(j,(0,B._)(m||(m=F(["+",""])),E));case"integer":return void C.elseIf((0,B._)(g||(g=F(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),P,E,P,E,E,E,E)).assign(j,(0,B._)(v||(v=F(["+",""])),E));case"boolean":return void C.elseIf((0,B._)(y||(y=F(["",' === "false" || '," === 0 || "," === null"])),E,E,E)).assign(j,!1).elseIf((0,B._)(b||(b=F(["",' === "true" || '," === 1"])),E,E)).assign(j,!0);case"null":return C.elseIf((0,B._)(w||(w=F(["",' === "" || '," === 0 || "," === false"])),E,E,E)),void C.assign(j,null);case"array":C.elseIf((0,B._)(x||(x=F(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),P,P,P,E)).assign(j,(0,B._)(S||(S=F(["[","]"])),E))}}C.else(),K(e),C.endIf(),C.if((0,B._)(c||(c=F([""," !== undefined"])),j),(()=>{C.assign(E,j),function(e,t){let{gen:r,parentData:n,parentDataProperty:o}=e;r.if((0,B._)(A||(A=F([""," !== undefined"])),n),(()=>r.assign((0,B._)(k||(k=F(["","[","]"])),n,o),t)))}(e,j)}))}(e,t,_):K(e)}))}return P};const U=new Set(["string","number","integer","boolean","null"]);function H(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:W.Correct;const o=n===W.Correct?B.operators.EQ:B.operators.NEQ;let a;switch(e){case"null":return(0,B._)(C||(C=F([""," "," null"])),t,o);case"array":a=(0,B._)(E||(E=F(["Array.isArray(",")"])),t);break;case"object":a=(0,B._)(_||(_=F([""," && typeof ",' == "object" && !Array.isArray(',")"])),t,t,t);break;case"integer":a=i((0,B._)(P||(P=F(["!("," % 1) && !isNaN(",")"])),t,t));break;case"number":a=i();break;default:return(0,B._)(j||(j=F(["typeof "," "," ",""])),t,o,e)}return n===W.Correct?a:(0,B.not)(a);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.nil;return(0,B.and)((0,B._)(R||(R=F(["typeof ",' == "number"'])),t),e,r?(0,B._)(O||(O=F(["isFinite(",")"])),t):B.nil)}}function q(e,t,r,n){if(1===e.length)return H(e[0],t,r,n);let o;const a=(0,$.toHash)(e);if(a.array&&a.object){const e=(0,B._)(N||(N=F(["typeof ",' != "object"'])),t);o=a.null?e:(0,B._)(T||(T=F(["!"," || ",""])),t,e),delete a.null,delete a.array,delete a.object}else o=B.nil;a.number&&delete a.integer;for(const i in a)o=(0,B.and)(o,H(i,t,r,n));return o}t.checkDataType=H,t.checkDataTypes=q;const G={message:e=>{let{schema:t}=e;return"must be ".concat(t)},params:e=>{let{schema:t,schemaValue:r}=e;return"string"==typeof t?(0,B._)(I||(I=F(["{type: ","}"])),t):(0,B._)(M||(M=F(["{type: ","}"])),r)}};function K(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,$.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,L.reportError)(t,G)}t.reportTypeError=K},8929:(e,t,r)=>{"use strict";var n,o,a,i,s=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const l=r(8789),c=r(1410);function u(e,t,r){const{gen:u,compositeRule:d,data:f,opts:p}=e;if(void 0===r)return;const h=(0,l._)(n||(n=s(["","",""])),f,(0,l.getProperty)(t));if(d)return void(0,c.checkStrictMode)(e,"default is ignored for: ".concat(h));let m=(0,l._)(o||(o=s([""," === undefined"])),h);"empty"===p.useDefaults&&(m=(0,l._)(a||(a=s([""," || "," === null || ",' === ""'])),m,h,h)),u.if(m,(0,l._)(i||(i=s([""," = ",""])),h,(0,l.stringify)(r)))}t.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const o in r)u(e,o,r[o].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>u(e,r,t.default)))}},8647:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,S,A,k,C,E,_,P,j,R,O,N,T,I,M,F,D,z,L,B,$,W=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const V=r(6404),U=r(9507),H=r(5566),q=r(9507),G=r(8929),K=r(6223),X=r(4642),Q=r(8789),Y=r(9188),J=r(9936),Z=r(1410),ee=r(5705);function te(e,t){let{gen:r,validateName:v,schema:y,schemaEnv:b,opts:w}=e;w.code.es5?r.func(v,(0,Q._)(n||(n=W(["",", ",""])),Y.default.data,Y.default.valCxt),b.$async,(()=>{r.code((0,Q._)(o||(o=W(['"use strict"; ',""])),re(y,w))),function(e,t){e.if(Y.default.valCxt,(()=>{e.var(Y.default.instancePath,(0,Q._)(l||(l=W(["",".",""])),Y.default.valCxt,Y.default.instancePath)),e.var(Y.default.parentData,(0,Q._)(c||(c=W(["",".",""])),Y.default.valCxt,Y.default.parentData)),e.var(Y.default.parentDataProperty,(0,Q._)(u||(u=W(["",".",""])),Y.default.valCxt,Y.default.parentDataProperty)),e.var(Y.default.rootData,(0,Q._)(d||(d=W(["",".",""])),Y.default.valCxt,Y.default.rootData)),t.dynamicRef&&e.var(Y.default.dynamicAnchors,(0,Q._)(f||(f=W(["",".",""])),Y.default.valCxt,Y.default.dynamicAnchors))}),(()=>{e.var(Y.default.instancePath,(0,Q._)(p||(p=W(['""'])))),e.var(Y.default.parentData,(0,Q._)(h||(h=W(["undefined"])))),e.var(Y.default.parentDataProperty,(0,Q._)(m||(m=W(["undefined"])))),e.var(Y.default.rootData,Y.default.data),t.dynamicRef&&e.var(Y.default.dynamicAnchors,(0,Q._)(g||(g=W(["{}"]))))}))}(r,w),r.code(t)})):r.func(v,(0,Q._)(a||(a=W(["",", ",""])),Y.default.data,function(e){return(0,Q._)(i||(i=W(["{",'="", ',", ",", ","=","","}={}"])),Y.default.instancePath,Y.default.parentData,Y.default.parentDataProperty,Y.default.rootData,Y.default.data,e.dynamicRef?(0,Q._)(s||(s=W([", ","={}"])),Y.default.dynamicAnchors):Q.nil)}(w)),b.$async,(()=>r.code(re(y,w)).code(t)))}function re(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Q._)(k||(k=W(["/*# sourceURL="," */"])),r):Q.nil}function ne(e,t){ae(e)&&(ie(e),oe(e))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&le(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,J.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",Y.default.errors);se(e,a),n.var(t,(0,Q._)(C||(C=W([""," === ",""])),a,Y.default.errors))}(e,t):(0,V.boolOrEmptySchema)(e,t)}function oe(e){let{schema:t,self:r}=e;if("boolean"==typeof t)return!t;for(const n in t)if(r.RULES.all[n])return!0;return!1}function ae(e){return"boolean"!=typeof e.schema}function ie(e){(0,Z.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Z.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn('$ref: keywords ignored in schema at path "'.concat(r,'"'))}(e)}function se(e,t){if(e.opts.jtd)return ce(e,[],!1,t);const r=(0,U.getSchemaTypes)(e.schema);ce(e,r,!(0,U.coerceAndCheckDataType)(e,r),t)}function le(e){let{gen:t,schemaEnv:r,schema:n,errSchemaPath:o,opts:a}=e;const i=n.$comment;if(!0===a.$comment)t.code((0,Q._)(E||(E=W(["",".logger.log(",")"])),Y.default.self,i));else if("function"==typeof a.$comment){const e=(0,Q.str)(_||(_=W(["","/$comment"])),o),n=t.scopeValue("root",{ref:r.root});t.code((0,Q._)(P||(P=W(["",".opts.$comment(",", ",", ",".schema)"])),Y.default.self,i,e,n))}}function ce(e,t,r,n){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;function d(c){(0,H.shouldUseGroup)(a,c)&&(c.type?(o.if((0,q.checkDataType)(c.type,i,l.strictNumbers)),ue(e,c),1===t.length&&t[0]===c.type&&r&&(o.else(),(0,q.reportTypeError)(e)),o.endIf()):ue(e,c),s||o.if((0,Q._)(M||(M=W([""," === ",""])),Y.default.errors,n||0)))}!a.$ref||!l.ignoreKeywordsWithRef&&(0,Z.schemaHasRulesButRef)(a,u)?(l.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{fe(e.dataTypes,t)||pe(e,'type "'.concat(t,'" not allowed by context "').concat(e.dataTypes.join(","),'"'))})),function(e,t){const r=[];for(const n of e.dataTypes)fe(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&pe(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if("object"==typeof o&&(0,H.shouldUseRule)(e.schema,o)){const{type:r}=o.definition;r.length&&!r.some((e=>de(t,e)))&&pe(e,'missing type "'.concat(r.join(","),'" for keyword "').concat(n,'"'))}}}(e,e.dataTypes)}(e,t),o.block((()=>{for(const e of u.rules)d(e);d(u.post)}))):o.block((()=>me(e,"$ref",u.all.$ref.definition)))}function ue(e,t){const{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,G.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,H.shouldUseRule)(n,r)&&me(e,r.keyword,r.definition,t.type)}))}function de(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function fe(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function pe(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=' at "'.concat(r,'" (strictTypes)'),(0,Z.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){ae(e)&&(ie(e),oe(e))?function(e){const{schema:t,opts:r,gen:n}=e;te(e,(()=>{r.$comment&&t.$comment&&le(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,Z.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(Y.default.vErrors,null),n.let(Y.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Q._)(v||(v=W(["",".evaluated"])),r)),t.if((0,Q._)(y||(y=W(["",".dynamicProps"])),e.evaluated),(()=>t.assign((0,Q._)(b||(b=W(["",".props"])),e.evaluated),(0,Q._)(w||(w=W(["undefined"])))))),t.if((0,Q._)(x||(x=W(["",".dynamicItems"])),e.evaluated),(()=>t.assign((0,Q._)(S||(S=W(["",".items"])),e.evaluated),(0,Q._)(A||(A=W(["undefined"]))))))}(e),se(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if((0,Q._)(j||(j=W([""," === 0"])),Y.default.errors),(()=>t.return(Y.default.data)),(()=>t.throw((0,Q._)(R||(R=W(["new ","(",")"])),o,Y.default.vErrors)))):(t.assign((0,Q._)(O||(O=W(["",".errors"])),n),Y.default.vErrors),a.unevaluated&&function(e){let{gen:t,evaluated:r,props:n,items:o}=e;n instanceof Q.Name&&t.assign((0,Q._)(T||(T=W(["",".props"])),r),n);o instanceof Q.Name&&t.assign((0,Q._)(I||(I=W(["",".items"])),r),o)}(e),t.return((0,Q._)(N||(N=W([""," === 0"])),Y.default.errors)))}(e)}))}(e):te(e,(()=>(0,V.topBoolOrEmptySchema)(e)))};class he{constructor(e,t,r){if((0,K.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Z.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",ye(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,K.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error("".concat(r," value must be ").concat(JSON.stringify(t.schemaType)));("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",Y.default.errors))}result(e,t,r){this.failResult((0,Q.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,Q.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,Q._)(F||(F=W([""," !== undefined && (",")"])),t,(0,Q.or)(this.invalid$data(),e)))}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?ee.reportExtraError:ee.reportError)(this,this.def.error,t)}$dataError(){(0,ee.reportError)(this,this.def.$dataError||ee.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,ee.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q.nil;this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q.nil,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q.nil;if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,Q.or)((0,Q._)(D||(D=W([""," === undefined"])),n),t)),e!==Q.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==Q.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return(0,Q.or)(function(){if(r.length){if(!(t instanceof Q.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return(0,Q._)(z||(z=W(["",""])),(0,q.checkDataTypes)(e,t,o.opts.strictNumbers,q.DataType.Wrong))}return Q.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,Q._)(L||(L=W(["!","(",")"])),r,t)}return Q.nil}())}subschema(e,t){const r=(0,X.getSubschema)(this.it,e);(0,X.extendSubschemaData)(r,this.it,e),(0,X.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return ne(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=Z.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=Z.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,Q.Name))),!0}}function me(e,t,r,n){const o=new he(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,K.funcKeywordCode)(o,r):"macro"in r?(0,K.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,K.funcKeywordCode)(o,r)}t.KeywordCxt=he;const ge=/^\/(?:[^~]|~0|~1)*$/,ve=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ye(e,t){let r,n,{dataLevel:o,dataNames:a,dataPathArr:i}=t;if(""===e)return Y.default.rootData;if("/"===e[0]){if(!ge.test(e))throw new Error("Invalid JSON-pointer: ".concat(e));r=e,n=Y.default.rootData}else{const t=ve.exec(e);if(!t)throw new Error("Invalid JSON-pointer: ".concat(e));const s=+t[1];if(r=t[2],"#"===r){if(s>=o)throw new Error(c("property/index",s));return i[o-s]}if(s>o)throw new Error(c("data",s));if(n=a[o-s],!r)return n}let s=n;const l=r.split("/");for(const u of l)u&&(n=(0,Q._)(B||(B=W(["","",""])),n,(0,Q.getProperty)((0,Z.unescapeJsonPointer)(u))),s=(0,Q._)($||($=W([""," && ",""])),s,n));return s;function c(e,t){return"Cannot access ".concat(e," ").concat(t," levels up, current level is ").concat(o)}}t.getData=ye},6223:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const h=r(8789),m=r(9188),g=r(378),v=r(5705);function y(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,(()=>t.assign(r,(0,h._)(c||(c=p(["","[","]"])),n.parentData,n.parentDataProperty))))}function b(e,t,r){if(void 0===r)throw new Error('keyword "'.concat(t,'" failed to compile'));return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,h.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:n,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=b(r,n,s);!1!==i.opts.validateSchema&&i.self.validateSchema(s,!0);const c=r.name("valid");e.subschema({schema:s,schemaPath:h.nil,errSchemaPath:"".concat(i.errSchemaPath,"/").concat(n),topSchemaRef:l,compositeRule:!0},c),e.pass(c,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:c,keyword:w,schema:x,parentSchema:S,$data:A,it:k}=e;!function(e,t){let{schemaEnv:r}=e;if(t.async&&!r.$async)throw new Error("async keyword in sync schema")}(k,t);const C=!A&&t.compile?t.compile.call(k.self,x,S,k):t.validate,E=b(c,w,C),_=c.let("valid");function P(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.async?(0,h._)(s||(s=p(["await "]))):h.nil;const n=k.opts.passContext?m.default.this:m.default.self,o=!("compile"in t&&!A||!1===t.schema);c.assign(_,(0,h._)(l||(l=p(["","",""])),r,(0,g.callValidateCode)(e,E,n,o)),t.modifying)}function j(e){var r;c.if((0,h.not)(null!==(r=t.valid)&&void 0!==r?r:_),e)}e.block$data(_,(function(){if(!1===t.errors)P(),t.modifying&&y(e),j((()=>e.error()));else{const r=t.async?function(){const e=c.let("ruleErrs",null);return c.try((()=>P((0,h._)(n||(n=p(["await "]))))),(t=>c.assign(_,!1).if((0,h._)(o||(o=p([""," instanceof ",""])),t,k.ValidationError),(()=>c.assign(e,(0,h._)(a||(a=p(["",".errors"])),t))),(()=>c.throw(t))))),e}():function(){const e=(0,h._)(i||(i=p(["",".errors"])),E);return c.assign(e,null),P(h.nil),e}();t.modifying&&y(e),j((()=>function(e,t){const{gen:r}=e;r.if((0,h._)(u||(u=p(["Array.isArray(",")"])),t),(()=>{r.assign(m.default.vErrors,(0,h._)(d||(d=p([""," === null ? "," : ",".concat(",")"])),m.default.vErrors,t,m.default.vErrors,t)).assign(m.default.errors,(0,h._)(f||(f=p(["",".length"])),m.default.vErrors)),(0,v.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:_)},t.validSchemaType=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&"undefined"==typeof e))},t.validateKeywordUsage=function(e,t,r){let{schema:n,opts:o,self:a,errSchemaPath:i}=e;if(Array.isArray(t.keyword)?!t.keyword.includes(r):t.keyword!==r)throw new Error("ajv implementation error");const s=t.dependencies;if(null===s||void 0===s?void 0:s.some((e=>!Object.prototype.hasOwnProperty.call(n,e))))throw new Error("parent schema must have dependencies of ".concat(r,": ").concat(s.join(",")));if(t.validateSchema){if(!t.validateSchema(n[r])){const e='keyword "'.concat(r,'" value is invalid at path "').concat(i,'": ')+a.errorsText(t.validateSchema.errors);if("log"!==o.validateSchema)throw new Error(e);a.logger.error(e)}}}},4642:(e,t,r)=>{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const c=r(8789),u=r(1410);t.getSubschema=function(e,t){let{keyword:r,schemaProp:a,schema:i,schemaPath:s,errSchemaPath:d,topSchemaRef:f}=t;if(void 0!==r&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==r){const t=e.schema[r];return void 0===a?{schema:t,schemaPath:(0,c._)(n||(n=l(["","",""])),e.schemaPath,(0,c.getProperty)(r)),errSchemaPath:"".concat(e.errSchemaPath,"/").concat(r)}:{schema:t[a],schemaPath:(0,c._)(o||(o=l(["","","",""])),e.schemaPath,(0,c.getProperty)(r),(0,c.getProperty)(a)),errSchemaPath:"".concat(e.errSchemaPath,"/").concat(r,"/").concat((0,u.escapeFragment)(a))}}if(void 0!==i){if(void 0===s||void 0===d||void 0===f)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:s,topSchemaRef:f,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,r){let{dataProp:n,dataPropType:o,data:d,dataTypes:f,propertyName:p}=r;if(void 0!==d&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=t;if(void 0!==n){const{errorPath:r,dataPathArr:d,opts:f}=t;m(h.let("data",(0,c._)(a||(a=l(["","",""])),t.data,(0,c.getProperty)(n)),!0)),e.errorPath=(0,c.str)(i||(i=l(["","",""])),r,(0,u.getErrorPath)(n,o,f.jsPropertySyntax)),e.parentDataProperty=(0,c._)(s||(s=l(["",""])),n),e.dataPathArr=[...d,e.parentDataProperty]}if(void 0!==d){m(d instanceof c.Name?d:h.let("data",d,!0)),void 0!==p&&(e.propertyName=p)}function m(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}f&&(e.dataTypes=f)},t.extendSubschemaMode=function(e,t){let{jtdDiscriminator:r,jtdMetadata:n,compositeRule:o,createErrors:a,allErrors:i}=t;void 0!==o&&(e.compositeRule=o),void 0!==a&&(e.createErrors=a),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=r,e.jtdMetadata=n}},1631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(8647);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var o=r(8789);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const a=r(4639),i=r(1180),s=r(9447),l=r(5787),c=r(8789),u=r(9936),d=r(9507),f=r(1410),p=r(3983),h=r(3524),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,r,n,o,a,i,s,l,c,u,d,f,p,g,v,y,b,w,x,S,A,k,C,E,_;const P=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,R=!0===j||void 0===j?1:j||0,O=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:m,N=null!==(o=e.uriResolver)&&void 0!==o?o:h.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:P)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:P)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:P)&&void 0!==u?u:"log",strictTuples:null!==(f=null!==(d=e.strictTuples)&&void 0!==d?d:P)&&void 0!==f?f:"log",strictRequired:null!==(g=null!==(p=e.strictRequired)&&void 0!==p?p:P)&&void 0!==g&&g,code:e.code?{...e.code,optimize:R,regExp:O}:{optimize:R,regExp:O},loopRequired:null!==(v=e.loopRequired)&&void 0!==v?v:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(x=e.inlineRefs)||void 0===x||x,schemaId:null!==(S=e.schemaId)&&void 0!==S?S:"$id",addUsedSchema:null===(A=e.addUsedSchema)||void 0===A||A,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(C=e.validateFormats)||void 0===C||C,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(_=e.int32range)||void 0===_||_,uriResolver:N}}class x{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:v,es5:t,lines:r}),this.logger=function(e){if(!1===e)return P;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),S.call(this,y,e,"NOT SUPPORTED"),S.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=_.call(this),e.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),k.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=p;"id"===r&&(n={...p},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error('no schema with key or ref "'.concat(e,'"'))}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await o.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||a.call(this,r)}async function o(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),a.call(this,e)}}function s(e){let{missingSchema:t,missingRef:r}=e;if(this.refs[t])throw new Error("AnySchema ".concat(t," is loaded but ").concat(r," cannot be resolved"))}async function l(e){const r=await c.call(this,e);this.refs[e]||await o.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,o);return this}if("object"===typeof e){const{schemaId:t}=this.opts;if(n=e[t],void 0!==n&&"string"!=typeof n)throw new Error("schema ".concat(t," must be string"))}return t=(0,u.normalizeId)(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,o,!0),this}addMetaSchema(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema;return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=A.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new l.SchemaEnv({schema:{},schemaId:r});if(t=l.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=A.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(R.call(this,r,t),!t)return(0,f.eachItem)(r,(e=>O.call(this,e))),this;T.call(this,t);const n={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(r,0===n.type.length?e=>O.call(this,e,n):e=>n.type.forEach((t=>O.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,{separator:t=", ",dataVar:r="data"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&0!==e.length?e.map((e=>"".concat(r).concat(e.instancePath," ").concat(e.message))).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=M(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema;const{schemaId:i}=this.opts;if("object"==typeof e)n=e[i];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;r=(0,u.normalizeId)(n||r);const c=u.getSchemaRefs.call(this,e,r);return s=new l.SchemaEnv({schema:e,schemaId:i,meta:t,baseId:r,localRefs:c}),this._cache.set(s.schema,s),a&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=s),o&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error('schema with key or id "'.concat(e,'" already exists'))}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function S(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(const o in e){const a=o;a in t&&this.logger[n]("".concat(r,": option ").concat(o,". ").concat(e[a]))}}function A(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function k(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function C(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function _(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=x,x.ValidationError=a.default,x.MissingRefError=i.default;const P={log(){},warn(){},error(){}};const j=/^[a-z_$][a-z0-9_$:-]*$/i;function R(e,t){const{RULES:r}=this;if((0,f.eachItem)(e,(e=>{if(r.keywords[e])throw new Error("Keyword ".concat(e," is already defined"));if(!j.test(e))throw new Error("Keyword ".concat(e," has invalid name"))})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function O(e,t,r){var n;const o=null===t||void 0===t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((e=>{let{type:t}=e;return t===r}));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?N.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function N(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn("rule ".concat(r," is not defined")))}function T(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=M(t)),e.validateSchema=this.compile(t,!0))}const I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function M(e){return{anyOf:[e,I]}}},4877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(122);n.code='require("ajv/dist/runtime/equal").default',t.default=n},8348:(e,t)=>{"use strict";function r(e){const t=e.length;let r,n=0,o=0;for(;o=55296&&r<=56319&&o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9392);n.code='require("ajv/dist/runtime/uri").default',t.default=n},4639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},170:(e,t,r)=>{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const c=r(8789),u=r(1410),d={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:e=>{let{params:{len:t}}=e;return(0,c.str)(n||(n=l(["must NOT have more than "," items"])),t)},params:e=>{let{params:{len:t}}=e;return(0,c._)(o||(o=l(["{limit: ","}"])),t)}},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?f(e,n):(0,u.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function f(e,t){const{gen:r,schema:n,data:o,keyword:d,it:f}=e;f.items=!0;const p=r.const("len",(0,c._)(a||(a=l(["",".length"])),o));if(!1===n)e.setParams({len:t.length}),e.pass((0,c._)(i||(i=l([""," <= ",""])),p,t.length));else if("object"==typeof n&&!(0,u.alwaysValidSchema)(f,n)){const n=r.var("valid",(0,c._)(s||(s=l([""," <= ",""])),p,t.length));r.if((0,c.not)(n),(()=>function(n){r.forRange("i",t.length,p,(t=>{e.subschema({keyword:d,dataProp:t,dataPropType:u.Type.Num},n),f.allErrors||r.if((0,c.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}t.validateAdditionalItems=f,t.default=d},6289:(e,t,r)=>{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const c=r(378),u=r(8789),d=r(9188),f=r(1410),p={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:e=>{let{params:t}=e;return(0,u._)(n||(n=l(["{additionalProperty: ","}"])),t.additionalProperty)}},code(e){const{gen:t,schema:r,parentSchema:n,data:p,errsCount:h,it:m}=e;if(!h)throw new Error("ajv implementation error");const{allErrors:g,opts:v}=m;if(m.props=!0,"all"!==v.removeAdditional&&(0,f.alwaysValidSchema)(m,r))return;const y=(0,c.allSchemaProperties)(n.properties),b=(0,c.allSchemaProperties)(n.patternProperties);function w(e){t.code((0,u._)(s||(s=l(["delete ","[","]"])),p,e))}function x(n){if("all"===v.removeAdditional||v.removeAdditional&&!1===r)w(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(g||t.break());if("object"==typeof r&&!(0,f.alwaysValidSchema)(m,r)){const r=t.name("valid");"failing"===v.removeAdditional?(S(n,r,!1),t.if((0,u.not)(r),(()=>{e.reset(),w(n)}))):(S(n,r),g||t.if((0,u.not)(r),(()=>t.break())))}}}function S(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:f.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",p,(r=>{y.length||b.length?t.if(function(r){let o;if(y.length>8){const e=(0,f.schemaRefOrVal)(m,n.properties,"properties");o=(0,c.isOwnProperty)(t,e,r)}else o=y.length?(0,u.or)(...y.map((e=>(0,u._)(a||(a=l([""," === ",""])),r,e)))):u.nil;return b.length&&(o=(0,u.or)(o,...b.map((t=>(0,u._)(i||(i=l(["",".test(",")"])),(0,c.usePattern)(e,t),r))))),(0,u.not)(o)}(r),(()=>x(r))):x(r)})),e.ok((0,u._)(o||(o=l([""," === ",""])),h,d.default.errors))}};t.default=p},5219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1410),o={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(o,t))return;const i=e.subschema({keyword:"allOf",schemaProp:r},a);e.ok(a),e.mergeEvaluated(i)}))}};t.default=o},1150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(378).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},5540:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const g=r(8789),v=r(1410),y={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:e=>{let{params:{min:t,max:r}}=e;return void 0===r?(0,g.str)(n||(n=m(["must contain at least "," valid item(s)"])),t):(0,g.str)(o||(o=m(["must contain at least "," and no more than "," valid item(s)"])),t,r)},params:e=>{let{params:{min:t,max:r}}=e;return void 0===r?(0,g._)(a||(a=m(["{minContains: ","}"])),t):(0,g._)(i||(i=m(["{minContains: ",", maxContains: ","}"])),t,r)}},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,y;const{minContains:b,maxContains:w}=n;a.opts.next?(i=void 0===b?1:b,y=w):i=1;const x=t.const("len",(0,g._)(s||(s=m(["",".length"])),o));if(e.setParams({min:i,max:y}),void 0===y&&0===i)return void(0,v.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==y&&i>y)return(0,v.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,v.alwaysValidSchema)(a,r)){let t=(0,g._)(l||(l=m([""," >= ",""])),x,i);return void 0!==y&&(t=(0,g._)(c||(c=m([""," && "," <= ",""])),t,x,y)),void e.pass(t)}a.items=!0;const S=t.name("valid");function A(){const e=t.name("_valid"),r=t.let("count",0);k(e,(()=>t.if(e,(()=>function(e){t.code((0,g._)(d||(d=m(["","++"])),e)),void 0===y?t.if((0,g._)(f||(f=m([""," >= ",""])),e,i),(()=>t.assign(S,!0).break())):(t.if((0,g._)(p||(p=m([""," > ",""])),e,y),(()=>t.assign(S,!1).break())),1===i?t.assign(S,!0):t.if((0,g._)(h||(h=m([""," >= ",""])),e,i),(()=>t.assign(S,!0))))}(r)))))}function k(r,n){t.forRange("i",0,x,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:v.Type.Num,compositeRule:!0},r),n()}))}void 0===y&&1===i?k(S,(()=>t.if(S,(()=>t.break())))):0===i?(t.let(S,!0),void 0!==y&&t.if((0,g._)(u||(u=m(["",".length > 0"])),o),A)):(t.let(S,!1),A()),e.result(S,(()=>e.reset()))}};t.default=y},8164:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const s=r(8789),l=r(1410),c=r(378);t.error={message:e=>{let{params:{property:t,depsCount:r,deps:o}}=e;const a=1===r?"property":"properties";return(0,s.str)(n||(n=i(["must have "," "," when property "," is present"])),a,o,t)},params:e=>{let{params:{property:t,depsCount:r,deps:n,missingProperty:a}}=e;return(0,s._)(o||(o=i(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),t,a,r,n)}};const u={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function(e){let{schema:t}=e;const r={},n={};for(const o in t){if("__proto__"===o)continue;(Array.isArray(t[o])?r:n)[o]=t[o]}return[r,n]}(e);d(e,t),f(e,r)}};function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema;const{gen:r,data:n,it:o}=e;if(0===Object.keys(t).length)return;const l=r.let("missing");for(const u in t){const d=t[u];if(0===d.length)continue;const f=(0,c.propertyInData)(r,n,u,o.opts.ownProperties);e.setParams({property:u,depsCount:d.length,deps:d.join(", ")}),o.allErrors?r.if(f,(()=>{for(const t of d)(0,c.checkReportMissingProp)(e,t)})):(r.if((0,s._)(a||(a=i([""," && (",")"])),f,(0,c.checkMissingProp)(e,d,l))),(0,c.reportMissingProp)(e,l),r.else())}}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema;const{gen:r,data:n,keyword:o,it:a}=e,i=r.name("valid");for(const s in t)(0,l.alwaysValidSchema)(a,t[s])||(r.if((0,c.propertyInData)(r,n,s,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:s},i);e.mergeValidEvaluated(t,i)}),(()=>r.var(i,!0))),e.ok(i))}t.validatePropertyDeps=d,t.validateSchemaDeps=f,t.default=u},6854:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8789),l=r(1410),c={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:e=>{let{params:t}=e;return(0,s.str)(n||(n=i(['must match "','" schema'])),t.ifClause)},params:e=>{let{params:t}=e;return(0,s._)(o||(o=i(["{failingKeyword: ","}"])),t.ifClause)}},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,l.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=u(n,"then"),c=u(n,"else");if(!o&&!c)return;const d=t.let("valid",!0),f=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);e.mergeEvaluated(t)}(),e.reset(),o&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(f,p("then",r),p("else",r))}else o?t.if(f,p("then")):t.if((0,s.not)(f),p("else"));function p(r,n){return()=>{const o=e.subschema({keyword:r},f);t.assign(d,f),e.mergeValidEvaluated(o,d),n?t.assign(n,(0,s._)(a||(a=i(["",""])),r)):e.setParams({ifClause:r})}}e.pass(d,(()=>e.error(!0)))}};function u(e,t){const r=e.schema[t];return void 0!==r&&!(0,l.alwaysValidSchema)(e,r)}t.default=c},1913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(170),o=r(4733),a=r(3441),i=r(3617),s=r(5540),l=r(8164),c=r(4966),u=r(6289),d=r(6676),f=r(4414),p=r(2724),h=r(1150),m=r(9176),g=r(5219),v=r(6854),y=r(6812);t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[p.default,h.default,m.default,g.default,v.default,y.default,c.default,u.default,l.default,d.default,f.default];return e?t.push(o.default,i.default):t.push(n.default,a.default),t.push(s.default),t}},3441:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const i=r(8789),s=r(1410),l=r(378),c={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return u(e,"additionalItems",t);r.items=!0,(0,s.alwaysValidSchema)(r,t)||e.ok((0,l.validateArray)(e))}};function u(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.schema;const{gen:l,parentSchema:c,data:u,keyword:d,it:f}=e;!function(e){const{opts:n,errSchemaPath:o}=f,a=r.length,i=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!i){const e='"'.concat(d,'" is ').concat(a,"-tuple, but minItems or maxItems/").concat(t,' are not specified or different at path "').concat(o,'"');(0,s.checkStrictMode)(f,e,n.strictTuples)}}(c),f.opts.unevaluated&&r.length&&!0!==f.items&&(f.items=s.mergeEvaluated.items(l,r.length,f.items));const p=l.name("valid"),h=l.const("len",(0,i._)(n||(n=a(["",".length"])),u));r.forEach(((t,r)=>{(0,s.alwaysValidSchema)(f,t)||(l.if((0,i._)(o||(o=a([""," > ",""])),h,r),(()=>e.subschema({keyword:d,schemaProp:r,dataProp:r},p))),e.ok(p))}))}t.validateTuple=u,t.default=c},3617:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const i=r(8789),s=r(1410),l=r(378),c=r(170),u={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:e=>{let{params:{len:t}}=e;return(0,i.str)(n||(n=a(["must NOT have more than "," items"])),t)},params:e=>{let{params:{len:t}}=e;return(0,i._)(o||(o=a(["{limit: ","}"])),t)}},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,s.alwaysValidSchema)(n,t)||(o?(0,c.validateAdditionalItems)(e,o):e.ok((0,l.validateArray)(e)))}};t.default=u},2724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1410),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:o}=e;if((0,n.alwaysValidSchema)(o,r))return void e.fail();const a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=o},9176:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8789),l=r(1410),c={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:e=>{let{params:t}=e;return(0,s._)(n||(n=i(["{passingSchemas: ","}"])),t.passing)}},code(e){const{gen:t,schema:r,parentSchema:n,it:c}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(c.opts.discriminator&&n.discriminator)return;const u=r,d=t.let("valid",!1),f=t.let("passing",null),p=t.name("_valid");e.setParams({passing:f}),t.block((function(){u.forEach(((r,n)=>{let u;(0,l.alwaysValidSchema)(c,r)?t.var(p,!0):u=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},p),n>0&&t.if((0,s._)(o||(o=i([""," && ",""])),p,d)).assign(d,!1).assign(f,(0,s._)(a||(a=i(["[",", ","]"])),f,n)).else(),t.if(p,(()=>{t.assign(d,!0),t.assign(f,n),u&&e.mergeEvaluated(u,s.Name)}))}))})),e.result(d,(()=>e.reset()),(()=>e.error(!0)))}};t.default=c},4414:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const i=r(378),s=r(8789),l=r(1410),c=r(1410),u={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:u,parentSchema:d,it:f}=e,{opts:p}=f,h=(0,i.allSchemaProperties)(r),m=h.filter((e=>(0,l.alwaysValidSchema)(f,r[e])));if(0===h.length||m.length===h.length&&(!f.opts.unevaluated||!0===f.props))return;const g=p.strictSchema&&!p.allowMatchingProperties&&d.properties,v=t.name("valid");!0===f.props||f.props instanceof s.Name||(f.props=(0,c.evaluatedPropsToName)(t,f.props));const{props:y}=f;function b(e){for(const t in g)new RegExp(e).test(t)&&(0,l.checkStrictMode)(f,"property ".concat(t," matches pattern ").concat(e," (use allowMatchingProperties)"))}function w(r){t.forIn("key",u,(l=>{t.if((0,s._)(n||(n=a(["",".test(",")"])),(0,i.usePattern)(e,r),l),(()=>{const n=m.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:l,dataPropType:c.Type.Str},v),f.opts.unevaluated&&!0!==y?t.assign((0,s._)(o||(o=a(["","[","]"])),y,l),!0):n||f.allErrors||t.if((0,s.not)(v),(()=>t.break()))}))}))}!function(){for(const e of h)g&&b(e),f.allErrors?w(e):(t.var(v,!0),w(e),t.if(v))}()}};t.default=u},4733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3441),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=o},6676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8647),o=r(378),a=r(1410),i=r(6289),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:s,data:l,it:c}=e;"all"===c.opts.removeAdditional&&void 0===s.additionalProperties&&i.default.code(new n.KeywordCxt(c,i.default,"additionalProperties"));const u=(0,o.allSchemaProperties)(r);for(const n of u)c.definedProperties.add(n);c.opts.unevaluated&&u.length&&!0!==c.props&&(c.props=a.mergeEvaluated.props(t,(0,a.toHash)(u),c.props));const d=u.filter((e=>!(0,a.alwaysValidSchema)(c,r[e])));if(0===d.length)return;const f=t.name("valid");for(const n of d)p(n)?h(n):(t.if((0,o.propertyInData)(t,l,n,c.opts.ownProperties)),h(n),c.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function p(e){return c.opts.useDefaults&&!c.compositeRule&&void 0!==r[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=s},4966:(e,t,r)=>{"use strict";var n,o=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const a=r(8789),i=r(1410),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:e=>{let{params:t}=e;return(0,a._)(n||(n=o(["{propertyName: ","}"])),t.propertyName)}},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,i.alwaysValidSchema)(o,r))return;const s=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},s),t.if((0,a.not)(s),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(s)}};t.default=s},6812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1410),o={keyword:["then","else"],schemaType:["object","boolean"],code(e){let{keyword:t,parentSchema:r,it:o}=e;void 0===r.if&&(0,n.checkStrictMode)(o,'"'.concat(t,'" without "if" is ignored'))}};t.default=o},378:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const b=r(8789),w=r(1410),x=r(9188),S=r(1410);function A(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,b._)(a||(a=y(["Object.prototype.hasOwnProperty"])))})}function k(e,t,r){return(0,b._)(i||(i=y(["",".call(",", ",")"])),A(e),t,r)}function C(e,t,r,n){const o=(0,b._)(c||(c=y(["",""," === undefined"])),t,(0,b.getProperty)(r));return n?(0,b.or)(o,(0,b.not)(k(e,t,r))):o}function E(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:o,it:a}=e;r.if(C(r,o,t,a.opts.ownProperties),(()=>{e.setParams({missingProperty:(0,b._)(n||(n=y(["",""])),t)},!0),e.error()}))},t.checkMissingProp=function(e,t,r){let{gen:n,data:a,it:{opts:i}}=e;return(0,b.or)(...t.map((e=>(0,b.and)(C(n,a,e,i.ownProperties),(0,b._)(o||(o=y([""," = ",""])),r,e)))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=A,t.isOwnProperty=k,t.propertyInData=function(e,t,r,n){const o=(0,b._)(s||(s=y(["",""," !== undefined"])),t,(0,b.getProperty)(r));return n?(0,b._)(l||(l=y([""," && ",""])),o,k(e,t,r)):o},t.noPropertyInData=C,t.allSchemaProperties=E,t.schemaProperties=function(e,t){return E(t).filter((r=>!(0,w.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function(e,t,r,n){let{schemaCode:o,data:a,it:{gen:i,topSchemaRef:s,schemaPath:l,errorPath:c},it:h}=e;const m=n?(0,b._)(u||(u=y(["",", ",", ","",""])),o,a,s,l):a,g=[[x.default.instancePath,(0,b.strConcat)(x.default.instancePath,c)],[x.default.parentData,h.parentData],[x.default.parentDataProperty,h.parentDataProperty],[x.default.rootData,x.default.rootData]];h.opts.dynamicRef&&g.push([x.default.dynamicAnchors,x.default.dynamicAnchors]);const v=(0,b._)(d||(d=y(["",", ",""])),m,i.object(...g));return r!==b.nil?(0,b._)(f||(f=y(["",".call(",", ",")"])),t,r,v):(0,b._)(p||(p=y(["","(",")"])),t,v)};const _=(0,b._)(h||(h=y(["new RegExp"])));t.usePattern=function(e,t){let{gen:r,it:{opts:n}}=e;const o=n.unicodeRegExp?"u":"",{regExp:a}=n.code,i=a(t,o);return r.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,b._)(m||(m=y(["","(",", ",")"])),"new RegExp"===a.code?_:(0,S.useFunc)(r,a),t,o)})},t.validateArray=function(e){const{gen:t,data:r,keyword:n,it:o}=e,a=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return i((()=>t.assign(e,!1))),e}return t.var(a,!0),i((()=>t.break())),a;function i(o){const i=t.const("len",(0,b._)(g||(g=y(["",".length"])),r));t.forRange("i",0,i,(r=>{e.subschema({keyword:n,dataProp:r,dataPropType:w.Type.Num},a),t.if((0,b.not)(a),o)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,w.alwaysValidSchema)(o,e)))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),i=t.name("_valid");t.block((()=>r.forEach(((r,o)=>{const s=e.subschema({keyword:n,schemaProp:o,compositeRule:!0},i);t.assign(a,(0,b._)(v||(v=y([""," || ",""])),a,i));e.mergeValidEvaluated(s,i)||t.if((0,b.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},7714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},8535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7714),o=r(7554),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,o.default];t.default=a},7554:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const p=r(1180),h=r(378),m=r(8789),g=r(9188),v=r(5787),y=r(1410),b={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:o}=e,{baseId:a,schemaEnv:i,validateName:s,opts:l,self:c}=o,{root:u}=i;if(("#"===r||"#/"===r)&&a===u.baseId)return function(){if(i===u)return x(e,s,i,i.$async);const r=t.scopeValue("root",{ref:u});return x(e,(0,m._)(n||(n=f(["",".validate"])),r),u,u.$async)}();const d=v.resolveRef.call(c,u,a,r);if(void 0===d)throw new p.default(o.opts.uriResolver,a,r);return d instanceof v.SchemaEnv?function(t){const r=w(e,t);x(e,r,t,t.$async)}(d):function(n){const o=t.scopeValue("schema",!0===l.code.source?{ref:n,code:(0,m.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:m.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(d)}};function w(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,m._)(o||(o=f(["",".validate"])),r.scopeValue("wrapper",{ref:t}))}function x(e,t,r,n){const{gen:o,it:p}=e,{allErrors:v,schemaEnv:b,opts:w}=p,x=w.passContext?g.default.this:m.nil;function S(e){const t=(0,m._)(s||(s=f(["",".errors"])),e);o.assign(g.default.vErrors,(0,m._)(l||(l=f([""," === null ? "," : ",".concat(",")"])),g.default.vErrors,t,g.default.vErrors,t)),o.assign(g.default.errors,(0,m._)(c||(c=f(["",".length"])),g.default.vErrors))}function A(e){var t;if(!p.opts.unevaluated)return;const n=null===(t=null===r||void 0===r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(n&&!n.dynamicProps)void 0!==n.props&&(p.props=y.mergeEvaluated.props(o,n.props,p.props));else{const t=o.var("props",(0,m._)(u||(u=f(["",".evaluated.props"])),e));p.props=y.mergeEvaluated.props(o,t,p.props,m.Name)}if(!0!==p.items)if(n&&!n.dynamicItems)void 0!==n.items&&(p.items=y.mergeEvaluated.items(o,n.items,p.items));else{const t=o.var("items",(0,m._)(d||(d=f(["",".evaluated.items"])),e));p.items=y.mergeEvaluated.items(o,t,p.items,m.Name)}}n?function(){if(!b.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code((0,m._)(a||(a=f(["await ",""])),(0,h.callValidateCode)(e,t,x))),A(t),v||o.assign(r,!0)}),(e=>{o.if((0,m._)(i||(i=f(["!("," instanceof ",")"])),e,p.ValidationError),(()=>o.throw(e))),S(e),v||o.assign(r,!1)})),e.ok(r)}():e.result((0,h.callValidateCode)(e,t,x),(()=>A(t)),(()=>S(t)))}t.getValidate=w,t.callRef=x,t.default=b},8e3:(e,t,r)=>{"use strict";var n,o,a,i,s=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const l=r(8789),c=r(6869),u=r(5787),d=r(1410),f={keyword:"discriminator",type:"object",schemaType:"object",error:{message:e=>{let{params:{discrError:t,tagName:r}}=e;return t===c.DiscrError.Tag?'tag "'.concat(r,'" must be string'):'value of tag "'.concat(r,'" must be in oneOf')},params:e=>{let{params:{discrError:t,tag:r,tagName:o}}=e;return(0,l._)(n||(n=s(["{error: ",", tag: ",", tagValue: ","}"])),t,o,r)}},code(e){const{gen:t,data:r,schema:n,parentSchema:f,it:p}=e,{oneOf:h}=f;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const m=n.propertyName;if("string"!=typeof m)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!h)throw new Error("discriminator: requires oneOf keyword");const g=t.let("valid",!1),v=t.const("tag",(0,l._)(o||(o=s(["","",""])),r,(0,l.getProperty)(m)));function y(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,l.Name),n}t.if((0,l._)(a||(a=s(["typeof ",' == "string"'])),v),(()=>function(){const r=function(){var e;const t={},r=o(f);let n=!0;for(let s=0;se.error(!1,{discrError:c.DiscrError.Tag,tag:v,tagName:m}))),e.ok(g)}};t.default=f},6869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(t.DiscrError||(t.DiscrError={}))},6423:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8535),o=r(5587),a=r(1913),i=r(5187),s=r(9594),l=[n.default,o.default,(0,a.default)(),i.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},5688:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const x=r(8789),S={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:e=>{let{schemaCode:t}=e;return(0,x.str)(n||(n=w(['must match format "','"'])),t)},params:e=>{let{schemaCode:t}=e;return(0,x._)(o||(o=w(["{format: ","}"])),t)}},code(e,t){const{gen:r,data:n,$data:o,schema:S,schemaCode:A,it:k}=e,{opts:C,errSchemaPath:E,schemaEnv:_,self:P}=k;C.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:P.formats,code:C.code.formats}),m=r.const("fDef",(0,x._)(a||(a=w(["","[","]"])),o,A)),g=r.let("fType"),v=r.let("format");r.if((0,x._)(i||(i=w(["typeof ",' == "object" && !('," instanceof RegExp)"])),m,m),(()=>r.assign(g,(0,x._)(s||(s=w(["",'.type || "string"'])),m)).assign(v,(0,x._)(l||(l=w(["",".validate"])),m))),(()=>r.assign(g,(0,x._)(c||(c=w(['"string"'])))).assign(v,m))),e.fail$data((0,x.or)(!1===C.strictSchema?x.nil:(0,x._)(u||(u=w([""," && !",""])),A,v),function(){const e=_.$async?(0,x._)(d||(d=w(["(",".async ? await ","(",") : ","(","))"])),m,v,n,v,n):(0,x._)(f||(f=w(["","(",")"])),v,n),r=(0,x._)(p||(p=w(["(typeof ",' == "function" ? '," : ",".test(","))"])),v,e,v,n);return(0,x._)(h||(h=w([""," && "," !== true && "," === "," && !",""])),v,v,g,t,r)}()))}():function(){const o=P.formats[S];if(!o)return void function(){if(!1===C.strictSchema)return void P.logger.warn(e());throw new Error(e());function e(){return'unknown format "'.concat(S,'" ignored in schema at path "').concat(E,'"')}}();if(!0===o)return;const[a,i,s]=function(e){const t=e instanceof RegExp?(0,x.regexpCode)(e):C.code.formats?(0,x._)(m||(m=w(["","",""])),C.code.formats,(0,x.getProperty)(S)):void 0,n=r.scopeValue("formats",{key:S,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,(0,x._)(g||(g=w(["",".validate"])),n)];return["string",e,n]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!_.$async)throw new Error("async format in sync schema");return(0,x._)(v||(v=w(["await ","(",")"])),s,n)}return"function"==typeof i?(0,x._)(y||(y=w(["","(",")"])),s,n):(0,x._)(b||(b=w(["",".test(",")"])),s,n)}())}())}};t.default=S},5187:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(5688).default];t.default=n},9594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},3704:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8789),l=r(1410),c=r(4877),u={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:e=>{let{schemaCode:t}=e;return(0,s._)(n||(n=i(["{allowedValue: ","}"])),t)}},code(e){const{gen:t,data:r,$data:n,schemaCode:u,schema:d}=e;n||d&&"object"==typeof d?e.fail$data((0,s._)(o||(o=i(["!","(",", ",")"])),(0,l.useFunc)(t,c.default),r,u)):e.fail((0,s._)(a||(a=i([""," !== ",""])),d,r))}};t.default=u},5374:(e,t,r)=>{"use strict";var n,o,a,i,s=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const l=r(8789),c=r(1410),u=r(4877),d={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:e=>{let{schemaCode:t}=e;return(0,l._)(n||(n=s(["{allowedValues: ","}"])),t)}},code(e){const{gen:t,data:r,$data:n,schema:d,schemaCode:f,it:p}=e;if(!n&&0===d.length)throw new Error("enum must have non-empty array");const h=d.length>=p.opts.loopEnum;let m;const g=()=>null!==m&&void 0!==m?m:m=(0,c.useFunc)(t,u.default);let v;if(h||n)v=t.let("valid"),e.block$data(v,(function(){t.assign(v,!1),t.forOf("v",f,(e=>t.if((0,l._)(o||(o=s(["","(",", ",")"])),g(),r,e),(()=>t.assign(v,!0).break()))))}));else{if(!Array.isArray(d))throw new Error("ajv implementation error");const e=t.const("vSchema",f);v=(0,l.or)(...d.map(((t,n)=>function(e,t){const n=d[t];return"object"===typeof n&&null!==n?(0,l._)(a||(a=s(["","(",", ","[","])"])),g(),r,e,t):(0,l._)(i||(i=s([""," === ",""])),r,n)}(e,n))))}e.pass(v)}};t.default=d},5587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3189),o=r(406),a=r(1736),i=r(4101),s=r(2989),l=r(3218),c=r(4233),u=r(8450),d=r(3704),f=r(5374),p=[n.default,o.default,a.default,i.default,s.default,l.default,c.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t.default=p},4233:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8789),l={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message(e){let{keyword:t,schemaCode:r}=e;const o="maxItems"===t?"more":"fewer";return(0,s.str)(n||(n=i(["must NOT have "," than "," items"])),o,r)},params:e=>{let{schemaCode:t}=e;return(0,s._)(o||(o=i(["{limit: ","}"])),t)}},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?s.operators.GT:s.operators.LT;e.fail$data((0,s._)(a||(a=i(["",".length "," ",""])),r,o,n))}};t.default=l},1736:(e,t,r)=>{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const c=r(8789),u=r(1410),d=r(8348),f={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message(e){let{keyword:t,schemaCode:r}=e;const o="maxLength"===t?"more":"fewer";return(0,c.str)(n||(n=l(["must NOT have "," than "," characters"])),o,r)},params:e=>{let{schemaCode:t}=e;return(0,c._)(o||(o=l(["{limit: ","}"])),t)}},code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,f="maxLength"===t?c.operators.GT:c.operators.LT,p=!1===o.opts.unicode?(0,c._)(a||(a=l(["",".length"])),r):(0,c._)(i||(i=l(["","(",")"])),(0,u.useFunc)(e.gen,d.default),r);e.fail$data((0,c._)(s||(s=l([""," "," ",""])),p,f,n))}};t.default=f},3189:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8789),l=s.operators,c={maximum:{okStr:"<=",ok:l.LTE,fail:l.GT},minimum:{okStr:">=",ok:l.GTE,fail:l.LT},exclusiveMaximum:{okStr:"<",ok:l.LT,fail:l.GTE},exclusiveMinimum:{okStr:">",ok:l.GT,fail:l.LTE}},u={message:e=>{let{keyword:t,schemaCode:r}=e;return(0,s.str)(n||(n=i(["must be "," ",""])),c[t].okStr,r)},params:e=>{let{keyword:t,schemaCode:r}=e;return(0,s._)(o||(o=i(["{comparison: ",", limit: ","}"])),c[t].okStr,r)}},d={keyword:Object.keys(c),type:"number",schemaType:"number",$data:!0,error:u,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,s._)(a||(a=i([""," "," "," || isNaN(",")"])),r,c[t].fail,n,r))}};t.default=d},2989:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8789),l={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message(e){let{keyword:t,schemaCode:r}=e;const o="maxProperties"===t?"more":"fewer";return(0,s.str)(n||(n=i(["must NOT have "," than "," properties"])),o,r)},params:e=>{let{schemaCode:t}=e;return(0,s._)(o||(o=i(["{limit: ","}"])),t)}},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?s.operators.GT:s.operators.LT;e.fail$data((0,s._)(a||(a=i(["Object.keys(",").length "," ",""])),r,o,n))}};t.default=l},406:(e,t,r)=>{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const c=r(8789),u={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:e=>{let{schemaCode:t}=e;return(0,c.str)(n||(n=l(["must be multiple of ",""])),t)},params:e=>{let{schemaCode:t}=e;return(0,c._)(o||(o=l(["{multipleOf: ","}"])),t)}},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,u=o.opts.multipleOfPrecision,d=t.let("res"),f=u?(0,c._)(a||(a=l(["Math.abs(Math.round(",") - ",") > 1e-",""])),d,d,u):(0,c._)(i||(i=l([""," !== parseInt(",")"])),d,d);e.fail$data((0,c._)(s||(s=l(["("," === 0 || ("," = ","/",", ","))"])),n,d,r,n,f))}};t.default=u},4101:(e,t,r)=>{"use strict";var n,o,a,i,s=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const l=r(378),c=r(8789),u={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:e=>{let{schemaCode:t}=e;return(0,c.str)(n||(n=s(['must match pattern "','"'])),t)},params:e=>{let{schemaCode:t}=e;return(0,c._)(o||(o=s(["{pattern: ","}"])),t)}},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:u}=e,d=u.opts.unicodeRegExp?"u":"",f=r?(0,c._)(a||(a=s(["(new RegExp(",", ","))"])),o,d):(0,l.usePattern)(e,n);e.fail$data((0,c._)(i||(i=s(["!",".test(",")"])),f,t))}};t.default=u},3218:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const i=r(378),s=r(8789),l=r(1410),c={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:e=>{let{params:{missingProperty:t}}=e;return(0,s.str)(n||(n=a(["must have required property '","'"])),t)},params:e=>{let{params:{missingProperty:t}}=e;return(0,s._)(o||(o=a(["{missingProperty: ","}"])),t)}},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:c}=e,{opts:u}=c;if(!a&&0===r.length)return;const d=r.length>=u.loopRequired;if(c.allErrors?function(){if(d||a)e.block$data(s.nil,f);else for(const t of r)(0,i.checkReportMissingProp)(e,t)}():function(){const l=t.let("missing");if(d||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,i.propertyInData)(t,o,r,u.ownProperties)),t.if((0,s.not)(a),(()=>{e.error(),t.break()}))}),s.nil)}(l,r))),e.ok(r)}else t.if((0,i.checkMissingProp)(e,r,l)),(0,i.reportMissingProp)(e,l),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null===t||void 0===t?void 0:t[e])&&!n.has(e)){const t=c.schemaEnv.baseId+c.errSchemaPath,r='required property "'.concat(e,'" is not defined at "').concat(t,'" (strictRequired)');(0,l.checkStrictMode)(c,r,c.opts.strictRequired)}}function f(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,i.noPropertyInData)(t,o,r,u.ownProperties),(()=>e.error()))}))}}};t.default=c},8450:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const x=r(9507),S=r(8789),A=r(1410),k=r(4877),C={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:e=>{let{params:{i:t,j:r}}=e;return(0,S.str)(n||(n=w(["must NOT have duplicate items (items ## "," and "," are identical)"])),r,t)},params:e=>{let{params:{i:t,j:r}}=e;return(0,S._)(o||(o=w(["{i: ",", j: ","}"])),t,r)}},code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:C,schemaCode:E,it:_}=e;if(!n&&!o)return;const P=t.let("valid"),j=C.items?(0,x.getSchemaTypes)(C.items):[];function R(n,o){const a=t.name("item"),i=(0,x.checkDataTypes)(j,a,_.opts.strictNumbers,x.DataType.Wrong),s=t.const("indices",(0,S._)(l||(l=w(["{}"]))));t.for((0,S._)(c||(c=w([";","--;"])),n),(()=>{t.let(a,(0,S._)(u||(u=w(["","[","]"])),r,n)),t.if(i,(0,S._)(d||(d=w(["continue"])))),j.length>1&&t.if((0,S._)(f||(f=w(["typeof ",' == "string"'])),a),(0,S._)(p||(p=w(["",' += "_"'])),a)),t.if((0,S._)(h||(h=w(["typeof ","[",'] == "number"'])),s,a),(()=>{t.assign(o,(0,S._)(m||(m=w(["","[","]"])),s,a)),e.error(),t.assign(P,!1).break()})).code((0,S._)(g||(g=w(["","[","] = ",""])),s,a,n))}))}function O(n,o){const a=(0,A.useFunc)(t,k.default),i=t.name("outer");t.label(i).for((0,S._)(v||(v=w([";","--;"])),n),(()=>t.for((0,S._)(y||(y=w([""," = ","; ","--;"])),o,n,o),(()=>t.if((0,S._)(b||(b=w(["","(","[","], ","[","])"])),a,r,n,r,o),(()=>{e.error(),t.assign(P,!1).break(i)}))))))}e.block$data(P,(function(){const n=t.let("i",(0,S._)(i||(i=w(["",".length"])),r)),o=t.let("j");e.setParams({i:n,j:o}),t.assign(P,!0),t.if((0,S._)(s||(s=w([""," > 1"])),n),(()=>(j.length>0&&!j.some((e=>"object"===e||"array"===e))?R:O)(n,o)))}),(0,S._)(a||(a=w([""," === false"])),E)),e.ok(P)}};t.default=C},1125:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,o,a,i,s,l,c,u,d){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var f in n(a,i,s,l,c,u,d),a){var p=a[f];if(Array.isArray(p)){if(f in t.arrayKeywords)for(var h=0;h{"use strict";function r(e,t){return{validate:e,compare:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0,t.fullFormats={date:r(a,i),time:r(l,c),"date-time":r((function(e){const t=e.split(u);return 2===t.length&&a(t[0])&&l(t[1],!0)}),d),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return f.test(e)&&p.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(y.test(e))return!1;try{return new RegExp(e),!0}catch(t){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return h.lastIndex=0,h.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=g&&e>=m}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":r(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,d),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(e){const t=n.exec(e);if(!t)return!1;const r=+t[1],a=+t[2],i=+t[3];return a>=1&&a<=12&&i>=1&&i<=(2===a&&function(e){return e%4===0&&(e%100!==0||e%400===0)}(r)?29:o[a])}function i(e,t){if(e&&t)return e>t?1:e(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e{"use strict";var n,o=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const a=r(2215),i=r(7864),s=r(8494),l=new s.Name("fullFormats"),c=new s.Name("fastFormats"),u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{keywords:!0};if(Array.isArray(t))return d(e,t,a.fullFormats,l),e;const[r,n]="fast"===t.mode?[a.fastFormats,c]:[a.fullFormats,l];return d(e,t.formats||a.formatNames,r,n),t.keywords&&i.default(e),e};function d(e,t,r,a){var i,l;null!==(i=(l=e.opts.code).formats)&&void 0!==i||(l.formats=s._(n||(n=o(['require("ajv-formats/dist/formats").',""])),a));for(const n of t)e.addFormat(n,r[n])}u.get=function(e){const t=("fast"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full")?a.fastFormats:a.fullFormats)[e];if(!t)throw new Error('Unknown format "'.concat(e,'"'));return t},e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u},7864:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const f=r(9122),p=r(8494),h=p.operators,m={formatMaximum:{okStr:"<=",ok:h.LTE,fail:h.GT},formatMinimum:{okStr:">=",ok:h.GTE,fail:h.LT},formatExclusiveMaximum:{okStr:"<",ok:h.LT,fail:h.GTE},formatExclusiveMinimum:{okStr:">",ok:h.GT,fail:h.LTE}},g={message:e=>{let{keyword:t,schemaCode:r}=e;return p.str(n||(n=d(["should be "," ",""])),m[t].okStr,r)},params:e=>{let{keyword:t,schemaCode:r}=e;return p._(o||(o=d(["{comparison: ",", limit: ","}"])),m[t].okStr,r)}};t.formatLimitDefinition={keyword:Object.keys(m),type:"string",schemaType:"string",$data:!0,error:g,code(e){const{gen:t,data:r,schemaCode:n,keyword:o,it:h}=e,{opts:g,self:v}=h;if(!g.validateFormats)return;const y=new f.KeywordCxt(h,v.RULES.all.format.definition,"format");function b(e){return p._(u||(u=d(["",".compare(",", ",") "," 0"])),e,r,n,m[o].fail)}y.$data?function(){const r=t.scopeValue("formats",{ref:v.formats,code:g.code.formats}),n=t.const("fmt",p._(a||(a=d(["","[","]"])),r,y.schemaCode));e.fail$data(p.or(p._(i||(i=d(["typeof ",' != "object"'])),n),p._(s||(s=d([""," instanceof RegExp"])),n),p._(l||(l=d(["typeof ",'.compare != "function"'])),n),b(n)))}():function(){const r=y.schema,n=v.formats[r];if(!n||!0===n)return;if("object"!=typeof n||n instanceof RegExp||"function"!=typeof n.compare)throw new Error('"'.concat(o,'": format "').concat(r,'" does not define "compare" function'));const a=t.scopeValue("formats",{key:r,ref:n,code:g.code.formats?p._(c||(c=d(["","",""])),g.code.formats,p.getProperty(r)):void 0});e.fail$data(b(a))}()},dependencies:["format"]};t.default=e=>(e.addKeyword(t.formatLimitDefinition),e)},9122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(9899),o=r(5915),a=r(5012),i=r(2455),s=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends n.default{_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,s):i;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=r(7683);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=r(8494);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=r(2323);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=r(8723);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})},5545:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class i{}t._CodeOrName=i,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class s extends i{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=s;class l extends i{constructor(e){super(),this._items="string"===typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>"".concat(e).concat(t)),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof s&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function c(e){const t=[e[0]];let r=0;for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a1?n-1:0),a=1;a{"use strict";var n,o,a,i,s,l,c=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const u=r(5545),d=r(8094);var f=r(5545);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return f.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return f.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return f.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}});var p=r(8094);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return p.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return p.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return p.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return p.varKinds}}),t.operators={GT:new u._Code(">"),GTE:new u._Code(">="),LT:new u._Code("<"),LTE:new u._Code("<="),EQ:new u._Code("==="),NEQ:new u._Code("!=="),NOT:new u._Code("!"),OR:new u._Code("||"),AND:new u._Code("&&"),ADD:new u._Code("+")};class h{optimizeNodes(){return this}optimizeNames(e,t){return this}}class m extends h{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render(e){let{es5:t,_n:r}=e;const n=t?d.varKinds.var:this.varKind,o=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(n," ").concat(this.name).concat(o,";")+r}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,e,t)),this}get names(){return this.rhs instanceof u._CodeOrName?this.rhs.names:{}}}class g extends h{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render(e){let{_n:t}=e;return"".concat(this.lhs," = ").concat(this.rhs,";")+t}optimizeNames(e,t){if(!(this.lhs instanceof u.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=z(this.rhs,e,t),this}get names(){return D(this.lhs instanceof u.Name?{}:{...this.lhs.names},this.rhs)}}class v extends g{constructor(e,t,r,n){super(e,r,n),this.op=t}render(e){let{_n:t}=e;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+t}}class y extends h{constructor(e){super(),this.label=e,this.names={}}render(e){let{_n:t}=e;return"".concat(this.label,":")+t}}class b extends h{constructor(e){super(),this.label=e,this.names={}}render(e){let{_n:t}=e;const r=this.label?" ".concat(this.label):"";return"break".concat(r,";")+t}}class w extends h{constructor(e){super(),this.error=e}render(e){let{_n:t}=e;return"throw ".concat(this.error,";")+t}get names(){return this.error.names}}class x extends h{constructor(e){super(),this.code=e}render(e){let{_n:t}=e;return"".concat(this.code,";")+t}optimizeNodes(){return"".concat(this.code)?this:void 0}optimizeNames(e,t){return this.code=z(this.code,e,t),this}get names(){return this.code instanceof u._CodeOrName?this.code.names:{}}}class S extends h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(L(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>F(e,t.names)),{})}}class A extends S{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class k extends S{}class C extends A{}C.kind="else";class E extends A{constructor(e,t){super(t),this.condition=e}render(e){let t="if(".concat(this.condition,")")+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new C(e):e}return t?!1===e?t instanceof E?t:t.nodes:this.nodes.length?this:new E(B(e),t instanceof E?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=z(this.condition,e,t),this}get names(){const e=super.names;return D(e,this.condition),this.else&&F(e,this.else.names),e}}E.kind="if";class _ extends A{}_.kind="for";class P extends _{constructor(e){super(),this.iteration=e}render(e){return"for(".concat(this.iteration,")")+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=z(this.iteration,e,t),this}get names(){return F(super.names,this.iteration.names)}}class j extends _{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?d.varKinds.var:this.varKind,{name:r,from:n,to:o}=this;return"for(".concat(t," ").concat(r,"=").concat(n,"; ").concat(r,"<").concat(o,"; ").concat(r,"++)")+super.render(e)}get names(){const e=D(super.names,this.from);return D(e,this.to)}}class R extends _{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=z(this.iterable,e,t),this}get names(){return F(super.names,this.iterable.names)}}class O extends A{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){const t=this.async?"async ":"";return"".concat(t,"function ").concat(this.name,"(").concat(this.args,")")+super.render(e)}}O.kind="func";class N extends S{render(e){return"return "+super.render(e)}}N.kind="return";class T extends A{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&F(e,this.catch.names),this.finally&&F(e,this.finally.names),e}}class I extends A{constructor(e){super(),this.error=e}render(e){return"catch(".concat(this.error,")")+super.render(e)}}I.kind="catch";class M extends A{render(e){return"finally"+super.render(e)}}M.kind="finally";function F(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function D(e,t){return t instanceof u._CodeOrName?F(e,t.names):e}function z(e,t,r){return e instanceof u.Name?o(e):(n=e)instanceof u._Code&&n._items.some((e=>e instanceof u.Name&&1===t[e.str]&&void 0!==r[e.str]))?new u._Code(e._items.reduce(((e,t)=>(t instanceof u.Name&&(t=o(t)),t instanceof u._Code?e.push(...t._items):e.push(t),e)),[])):e;var n;function o(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function L(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function B(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,u._)(i||(i=c(["!",""])),U(e))}t.CodeGen=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new d.Scope({parent:e}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new m(e,o,r)),o}const(e,t,r){return this._def(d.varKinds.const,e,t,r)}let(e,t,r){return this._def(d.varKinds.let,e,t,r)}var(e,t,r){return this._def(d.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new g(e,t,r))}add(e,r){return this._leafNode(new v(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==u.nil&&this._leafNode(new x(e)),this}object(){const e=["{"];for(var t=arguments.length,r=new Array(t),n=0;n1&&e.push(","),e.push(o),(o!==a||this.opts.es5)&&(e.push(":"),(0,u.addCodeArg)(e,a));return e.push("}"),new u._Code(e)}if(e,t,r){if(this._blockNode(new E(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new E(e))}else(){return this._elseNode(new C)}endIf(){return this._endBlockNode(E,C)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new P(e),t)}forRange(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?d.varKinds.var:d.varKinds.let;const a=this._scope.toName(e);return this._for(new j(o,a,t,r),(()=>n(a)))}forOf(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.varKinds.const;const i=this._scope.toName(e);if(this.opts.es5){const e=t instanceof u.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,u._)(n||(n=c(["",".length"])),e),(t=>{this.var(i,(0,u._)(o||(o=c(["","[","]"])),e,t)),r(i)}))}return this._for(new R("of",a,i,t),(()=>r(i)))}forIn(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?d.varKinds.var:d.varKinds.const;if(this.opts.ownProperties)return this.forOf(e,(0,u._)(a||(a=c(["Object.keys(",")"])),t),r);const o=this._scope.toName(e);return this._for(new R("in",n,o,t),(()=>r(o)))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new y(e))}break(e){return this._leafNode(new b(e))}return(e){const t=new N;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(N)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new T;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new I(e),t(e)}return r&&(this._currNode=n.finally=new M,this.code(r)),this._endBlockNode(I,M)}throw(e){return this._leafNode(new w(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error("CodeGen: wrong number of nodes: ".concat(r," vs ").concat(e," expected"));return this._nodes.length=t,this}func(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.nil,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;return this._blockNode(new O(e,t,r)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(t?"".concat(e.kind,"/").concat(t.kind):e.kind,'"'))}_elseNode(e){const t=this._currNode;if(!(t instanceof E))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=B;const $=V(t.operators.AND);t.and=function(){for(var e=arguments.length,t=new Array(e),r=0;rt===u.nil?r:r===u.nil?t:(0,u._)(s||(s=c([""," "," ",""])),U(t),e,U(r))}function U(e){return e instanceof u.Name?e:(0,u._)(l||(l=c(["(",")"])),e)}t.or=function(){for(var e=arguments.length,t=new Array(e),r=0;r{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const c=r(5545);class u extends Error{constructor(e){super('CodeGen: "code" for '.concat(e," not defined")),this.value=e.value}}var d;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(d=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new c.Name("const"),let:new c.Name("let"),var:new c.Name("var")};class f{constructor(){let{prefixes:e,parent:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof c.Name?e:this.name(e)}name(e){return new c.Name(this._newName(e))}_newName(e){const t=this._names[e]||this._nameGroup(e);return"".concat(e).concat(t.index++)}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error('CodeGen: prefix "'.concat(e,'" is not allowed in this scope'));return this._names[e]={prefix:e,index:0}}}t.Scope=f;class p extends c.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,t){let{property:r,itemIndex:o}=t;this.value=e,this.scopePath=(0,c._)(n||(n=l([".","[","]"])),new c.Name(r),o)}}t.ValueScopeName=p;const h=(0,c._)(o||(o=l(["\n"],["\\n"])));t.ValueScope=class extends f{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?h:c.nil}}get(){return this._scope}name(e){return new p(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values;return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error('CodeGen: name "'.concat(t,'" has no value'));return(0,c._)(a||(a=l(["","",""])),e,t.scopePath)}))}scopeCode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error('CodeGen: name "'.concat(e,'" has no value'));return e.value.code}),t,r)}_reduceValues(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,a=c.nil;for(const f in e){const p=e[f];if(!p)continue;const h=n[f]=n[f]||new Map;p.forEach((e=>{if(h.has(e))return;h.set(e,d.Started);let n=r(e);if(n){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;a=(0,c._)(i||(i=l(["",""," "," = ",";",""])),a,r,e,n,this.opts._n)}else{if(!(n=null===o||void 0===o?void 0:o(e)))throw new u(e);a=(0,c._)(s||(s=l(["","","",""])),a,n,this.opts._n)}h.set(e,d.Completed)}))}return a}}},9773:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,S,A,k,C,E,_,P=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const j=r(8494),R=r(1646),O=r(1e3);function N(e,t){const r=e.const("err",t);e.if((0,j._)(g||(g=P([""," === null"])),O.default.vErrors),(()=>e.assign(O.default.vErrors,(0,j._)(v||(v=P(["[","]"])),r))),(0,j._)(y||(y=P(["",".push(",")"])),O.default.vErrors,r)),e.code((0,j._)(b||(b=P(["","++"])),O.default.errors))}function T(e,t){const{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,j._)(w||(w=P(["new ","(",")"])),e.ValidationError,t)):(r.assign((0,j._)(x||(x=P(["",".errors"])),n),t),r.return(!1))}t.keywordError={message:e=>{let{keyword:t}=e;return(0,j.str)(n||(n=P(['must pass "','" keyword validation'])),t)}},t.keyword$DataError={message:e=>{let{keyword:t,schemaType:r}=e;return r?(0,j.str)(o||(o=P(['"','" keyword must be '," ($data)"])),t,r):(0,j.str)(a||(a=P(['"','" keyword is invalid ($data)'])),t)}},t.reportError=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;const{it:a}=e,{gen:s,compositeRule:l,allErrors:c}=a,u=M(e,r,n);(null!==o&&void 0!==o?o:l||c)?N(s,u):T(a,(0,j._)(i||(i=P(["[","]"])),u))},t.reportExtraError=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,n=arguments.length>2?arguments[2]:void 0;const{it:o}=e,{gen:a,compositeRule:i,allErrors:s}=o;N(a,M(e,r,n)),i||s||T(o,O.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(O.default.errors,t),e.if((0,j._)(s||(s=P([""," !== null"])),O.default.vErrors),(()=>e.if(t,(()=>e.assign((0,j._)(l||(l=P(["",".length"])),O.default.vErrors),t)),(()=>e.assign(O.default.vErrors,null)))))},t.extendErrors=function(e){let{gen:t,keyword:r,schemaValue:n,data:o,errsCount:a,it:i}=e;if(void 0===a)throw new Error("ajv implementation error");const s=t.name("err");t.forRange("i",a,O.default.errors,(e=>{t.const(s,(0,j._)(c||(c=P(["","[","]"])),O.default.vErrors,e)),t.if((0,j._)(u||(u=P(["",".instancePath === undefined"])),s),(()=>t.assign((0,j._)(d||(d=P(["",".instancePath"])),s),(0,j.strConcat)(O.default.instancePath,i.errorPath)))),t.assign((0,j._)(f||(f=P(["",".schemaPath"])),s),(0,j.str)(p||(p=P(["","/",""])),i.errSchemaPath,r)),i.opts.verbose&&(t.assign((0,j._)(h||(h=P(["",".schema"])),s),n),t.assign((0,j._)(m||(m=P(["",".data"])),s),o))}))};const I={keyword:new j.Name("keyword"),schemaPath:new j.Name("schemaPath"),params:new j.Name("params"),propertyName:new j.Name("propertyName"),message:new j.Name("message"),schema:new j.Name("schema"),parentSchema:new j.Name("parentSchema")};function M(e,t,r){const{createErrors:n}=e.it;return!1===n?(0,j._)(S||(S=P(["{}"]))):function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{gen:n,it:o}=e,a=[F(o,r),D(e,r)];return function(e,t,r){let{params:n,message:o}=t;const{keyword:a,data:i,schemaValue:s,it:l}=e,{opts:c,propertyName:u,topSchemaRef:d,schemaPath:f}=l;r.push([I.keyword,a],[I.params,"function"==typeof n?n(e):n||(0,j._)(E||(E=P(["{}"])))]),c.messages&&r.push([I.message,"function"==typeof o?o(e):o]);c.verbose&&r.push([I.schema,s],[I.parentSchema,(0,j._)(_||(_=P(["","",""])),d,f)],[O.default.data,i]);u&&r.push([I.propertyName,u])}(e,t,a),n.object(...a)}(e,t,r)}function F(e,t){let{errorPath:r}=e,{instancePath:n}=t;const o=n?(0,j.str)(A||(A=P(["","",""])),r,(0,R.getErrorPath)(n,R.Type.Str)):r;return[O.default.instancePath,(0,j.strConcat)(O.default.instancePath,o)]}function D(e,t){let{keyword:r,it:{errSchemaPath:n}}=e,{schemaPath:o,parentSchema:a}=t,i=a?n:(0,j.str)(k||(k=P(["","/",""])),n,r);return o&&(i=(0,j.str)(C||(C=P(["","",""])),i,(0,R.getErrorPath)(o,R.Type.Str))),[I.schemaPath,i]}},7804:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const i=r(8494),s=r(2323),l=r(1e3),c=r(2228),u=r(1646),d=r(7683);class f{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,c.normalizeId)(null===r||void 0===r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null===r||void 0===r?void 0:r.$async,this.refs={}}}function p(e){const t=m.call(this,e);if(t)return t;const r=(0,c.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:u,lines:f}=this.opts.code,{ownProperties:p}=this.opts,h=new i.CodeGen(this.scope,{es5:u,lines:f,ownProperties:p});let g;e.$async&&(g=h.scopeValue("Error",{ref:s.default,code:(0,i._)(n||(n=a(['require("ajv/dist/runtime/validation_error").default'])))}));const v=h.scopeName("validate");e.validateName=v;const y={gen:h,allErrors:this.opts.allErrors,data:l.default.data,parentData:l.default.parentData,parentDataProperty:l.default.parentDataProperty,dataNames:[l.default.data],dataPathArr:[i.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:h.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,i.stringify)(e.schema)}:{ref:e.schema}),validateName:v,ValidationError:g,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:i.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,i._)(o||(o=a(['""']))),opts:this.opts,self:this};let b;try{this._compilations.add(e),(0,d.validateFunctionCode)(y),h.optimize(this.opts.code.optimize);const t=h.toString();b="".concat(h.scopeRefs(l.default.scope),"return ").concat(t),this.opts.code.process&&(b=this.opts.code.process(b,e));const r=new Function("".concat(l.default.self),"".concat(l.default.scope),b)(this,this.scope.get());if(this.scope.value(v,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:v,validateCode:t,scopeValues:h._values}),this.opts.unevaluated){const{props:e,items:t}=y;r.evaluated={props:e instanceof i.Name?void 0:e,items:t instanceof i.Name?void 0:t,dynamicProps:e instanceof i.Name,dynamicItems:t instanceof i.Name},r.source&&(r.source.evaluated=(0,i.stringify)(r.evaluated))}return e.validate=r,e}catch(w){throw delete e.validate,delete e.validateName,b&&this.logger.error("Error compiling schema, function code:",b),w}finally{this._compilations.delete(e)}}function h(e){return(0,c.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:p.call(this,e)}function m(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function g(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||v.call(this,e,t)}function v(e,t){const r=this.opts.uriResolver.parse(t),n=(0,c._getFullPath)(this.opts.uriResolver,r);let o=(0,c.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return b.call(this,r,e);const a=(0,c.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=v.call(this,e,i);if("object"!==typeof(null===t||void 0===t?void 0:t.schema))return;return b.call(this,r,t)}if("object"===typeof(null===i||void 0===i?void 0:i.schema)){if(i.validate||p.call(this,i),a===(0,c.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,c.resolveUrl)(this.opts.uriResolver,o,n)),new f({schema:t,schemaId:r,root:e,baseId:o})}return b.call(this,r,i)}}t.SchemaEnv=f,t.compileSchema=p,t.resolveRef=function(e,t,r){var n;r=(0,c.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=g.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new f({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=h.call(this,a):void 0},t.getCompilingSchema=m,t.resolveSchema=v;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function b(e,t){let{baseId:r,schema:n,root:o}=t;var a;if("/"!==(null===(a=e.fragment)||void 0===a?void 0:a[0]))return;for(const l of e.fragment.slice(1).split("/")){if("boolean"===typeof n)return;const e=n[(0,u.unescapeFragment)(l)];if(void 0===e)return;n=e;const t="object"===typeof n&&n[this.opts.schemaId];!y.has(l)&&t&&(r=(0,c.resolveUrl)(this.opts.uriResolver,r,t))}let i;if("boolean"!=typeof n&&n.$ref&&!(0,u.schemaHasRulesButRef)(n,this.RULES)){const e=(0,c.resolveUrl)(this.opts.uriResolver,r,n.$ref);i=v.call(this,o,e)}const{schemaId:s}=this.opts;return i=i||new f({schema:n,schemaId:s,root:o,baseId:r}),i.schema!==i.root.schema?i:void 0}},1e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8494),o={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=o},8723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2228);class o extends Error{constructor(e,t,r,o){super(o||"can't resolve reference ".concat(r," from id ").concat(t)),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=o},2228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(1646),o=r(122),a=r(9569),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof e||(!0===t?!l(e):!!t&&c(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(s.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(l))return!0;if("object"==typeof r&&l(r))return!0}return!1}function c(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!i.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=c(e))),t===1/0))return 1/0}return t}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(t=p(t));const r=e.parse(t);return d(e,r)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=d;const f=/#\/?$/;function p(e){return e?e.replace(f,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,r){return r=p(r),e.resolve(t,r)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,i=p(e[r]||t),s={"":i},l=u(n,i,!1),c={},d=new Set;return a(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const a=l+t;let i=s[o];function u(t){const r=this.opts.uriResolver.resolve;if(t=p(i?r(i,t):t),d.has(t))throw m(t);d.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?f(e,n.schema,t):t!==p(a)&&("#"===t[0]?(f(e,c[t],t),c[t]=e):this.refs[t]=a),t}function g(e){if("string"==typeof e){if(!h.test(e))throw new Error('invalid anchor "'.concat(e,'"'));u.call(this,"#".concat(e))}}"string"==typeof e[r]&&(i=u.call(this,e[r])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),s[t]=i})),c;function f(e,t,r){if(void 0!==t&&!o(e,t))throw m(r)}function m(e){return new Error('reference "'.concat(e,'" resolves to more than one schema'))}}},9675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},1646:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const S=r(8494),A=r(5545);function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema;const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"===typeof t)return;const o=n.RULES.keywords;for(const a in t)o[a]||T(e,'unknown keyword: "'.concat(a,'"'))}function C(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function E(e){return"number"==typeof e?"".concat(e):e.replace(/~/g,"~0").replace(/\//g,"~1")}function _(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function P(e){let{mergeNames:t,mergeToName:r,mergeValues:n,resultToName:o}=e;return(e,a,i,s)=>{const l=void 0===i?a:i instanceof S.Name?(a instanceof S.Name?t(e,a,i):r(e,a,i),i):a instanceof S.Name?(r(e,i,a),a):n(a,i);return s!==S.Name||l instanceof S.Name?l:o(e,l)}}function j(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",(0,S._)(m||(m=x(["{}"]))));return void 0!==t&&R(e,r,t),r}function R(e,t,r){Object.keys(r).forEach((r=>e.assign((0,S._)(g||(g=x(["","",""])),t,(0,S.getProperty)(r)),!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(k(e,t),!C(t,e.self.RULES.all))},t.checkUnknownRules=k,t.schemaHasRules=C,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function(e,t,r,a){let{topSchemaRef:i,schemaPath:s}=e;if(!a){if("number"==typeof t||"boolean"==typeof t)return t;if("string"==typeof t)return(0,S._)(n||(n=x(["",""])),t)}return(0,S._)(o||(o=x(["","","",""])),i,s,(0,S.getProperty)(r))},t.unescapeFragment=function(e){return _(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(E(e))},t.escapeJsonPointer=E,t.unescapeJsonPointer=_,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:P({mergeNames:(e,t,r)=>e.if((0,S._)(a||(a=x([""," !== true && "," !== undefined"])),r,t),(()=>{e.if((0,S._)(i||(i=x([""," === true"])),t),(()=>e.assign(r,!0)),(()=>e.assign(r,(0,S._)(s||(s=x([""," || {}"])),r)).code((0,S._)(l||(l=x(["Object.assign(",", ",")"])),r,t))))})),mergeToName:(e,t,r)=>e.if((0,S._)(c||(c=x([""," !== true"])),r),(()=>{!0===t?e.assign(r,!0):(e.assign(r,(0,S._)(u||(u=x([""," || {}"])),r)),R(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:j}),items:P({mergeNames:(e,t,r)=>e.if((0,S._)(d||(d=x([""," !== true && "," !== undefined"])),r,t),(()=>e.assign(r,(0,S._)(f||(f=x([""," === true ? true : "," > "," ? "," : ",""])),t,r,t,r,t)))),mergeToName:(e,t,r)=>e.if((0,S._)(p||(p=x([""," !== true"])),r),(()=>e.assign(r,!0===t||(0,S._)(h||(h=x([""," > "," ? "," : ",""])),r,t,r,t)))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=j,t.setEvaluated=R;const O={};var N;function T(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.opts.strictSchema;if(r){if(t="strict mode: ".concat(t),!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:O[t.code]||(O[t.code]=new A._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(N=t.Type||(t.Type={})),t.getErrorPath=function(e,t,r){if(e instanceof S.Name){const n=t===N.Num;return r?n?(0,S._)(v||(v=x(['"[" + ',' + "]"'])),e):(0,S._)(y||(y=x(['"[\'" + ',' + "\']"'])),e):n?(0,S._)(b||(b=x(['"/" + ',""])),e):(0,S._)(w||(w=x(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),e)}return r?(0,S.getProperty)(e).toString():"/"+E(e)},t.checkStrictMode=T},5706:(e,t)=>{"use strict";function r(e,t){return t.rules.some((t=>n(e,t)))}function n(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function(e,t){let{schema:n,self:o}=e;const a=o.RULES.types[t];return a&&!0!==a&&r(n,a)},t.shouldUseGroup=r,t.shouldUseRule=n},9544:(e,t,r)=>{"use strict";var n,o=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const a=r(9773),i=r(8494),s=r(1e3),l={message:"boolean schema is false"};function c(e,t){const{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,a.reportError)(o,l,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:a}=e;!1===r?c(e,!1):"object"==typeof r&&!0===r.$async?t.return(s.default.data):(t.assign((0,i._)(n||(n=o(["",".errors"])),a),null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),c(e)):r.var(t,!0)}},7839:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,S,A,k,C,E,_,P,j,R,O,N,T,I,M,F=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const D=r(9675),z=r(5706),L=r(9773),B=r(8494),$=r(1646);var W;function V(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(D.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(W=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=V(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=V,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:C,opts:E}=e,_=function(e,t){return t?e.filter((e=>U.has(e)||"array"===t&&"array"===e)):[]}(t,E.coerceTypes),P=t.length>0&&!(0===_.length&&1===t.length&&(0,z.schemaHasRulesForType)(e,t[0]));if(P){const P=q(t,C,E.strictNumbers,W.Wrong);r.if(P,(()=>{_.length?function(e,t,r){const{gen:C,data:E,opts:_}=e,P=C.let("dataType",(0,B._)(n||(n=F(["typeof ",""])),E)),j=C.let("coerced",(0,B._)(o||(o=F(["undefined"]))));"array"===_.coerceTypes&&C.if((0,B._)(a||(a=F([""," == 'object' && Array.isArray(",") && ",".length == 1"])),P,E,E),(()=>C.assign(E,(0,B._)(i||(i=F(["","[0]"])),E)).assign(P,(0,B._)(s||(s=F(["typeof ",""])),E)).if(q(t,E,_.strictNumbers),(()=>C.assign(j,E)))));C.if((0,B._)(l||(l=F([""," !== undefined"])),j));for(const n of r)(U.has(n)||"array"===n&&"array"===_.coerceTypes)&&R(n);function R(e){switch(e){case"string":return void C.elseIf((0,B._)(u||(u=F(["",' == "number" || ',' == "boolean"'])),P,P)).assign(j,(0,B._)(d||(d=F(['"" + ',""])),E)).elseIf((0,B._)(f||(f=F([""," === null"])),E)).assign(j,(0,B._)(p||(p=F(['""']))));case"number":return void C.elseIf((0,B._)(h||(h=F(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),P,E,P,E,E,E)).assign(j,(0,B._)(m||(m=F(["+",""])),E));case"integer":return void C.elseIf((0,B._)(g||(g=F(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),P,E,P,E,E,E,E)).assign(j,(0,B._)(v||(v=F(["+",""])),E));case"boolean":return void C.elseIf((0,B._)(y||(y=F(["",' === "false" || '," === 0 || "," === null"])),E,E,E)).assign(j,!1).elseIf((0,B._)(b||(b=F(["",' === "true" || '," === 1"])),E,E)).assign(j,!0);case"null":return C.elseIf((0,B._)(w||(w=F(["",' === "" || '," === 0 || "," === false"])),E,E,E)),void C.assign(j,null);case"array":C.elseIf((0,B._)(x||(x=F(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),P,P,P,E)).assign(j,(0,B._)(S||(S=F(["[","]"])),E))}}C.else(),K(e),C.endIf(),C.if((0,B._)(c||(c=F([""," !== undefined"])),j),(()=>{C.assign(E,j),function(e,t){let{gen:r,parentData:n,parentDataProperty:o}=e;r.if((0,B._)(A||(A=F([""," !== undefined"])),n),(()=>r.assign((0,B._)(k||(k=F(["","[","]"])),n,o),t)))}(e,j)}))}(e,t,_):K(e)}))}return P};const U=new Set(["string","number","integer","boolean","null"]);function H(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:W.Correct;const o=n===W.Correct?B.operators.EQ:B.operators.NEQ;let a;switch(e){case"null":return(0,B._)(C||(C=F([""," "," null"])),t,o);case"array":a=(0,B._)(E||(E=F(["Array.isArray(",")"])),t);break;case"object":a=(0,B._)(_||(_=F([""," && typeof ",' == "object" && !Array.isArray(',")"])),t,t,t);break;case"integer":a=i((0,B._)(P||(P=F(["!("," % 1) && !isNaN(",")"])),t,t));break;case"number":a=i();break;default:return(0,B._)(j||(j=F(["typeof "," "," ",""])),t,o,e)}return n===W.Correct?a:(0,B.not)(a);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.nil;return(0,B.and)((0,B._)(R||(R=F(["typeof ",' == "number"'])),t),e,r?(0,B._)(O||(O=F(["isFinite(",")"])),t):B.nil)}}function q(e,t,r,n){if(1===e.length)return H(e[0],t,r,n);let o;const a=(0,$.toHash)(e);if(a.array&&a.object){const e=(0,B._)(N||(N=F(["typeof ",' != "object"'])),t);o=a.null?e:(0,B._)(T||(T=F(["!"," || ",""])),t,e),delete a.null,delete a.array,delete a.object}else o=B.nil;a.number&&delete a.integer;for(const i in a)o=(0,B.and)(o,H(i,t,r,n));return o}t.checkDataType=H,t.checkDataTypes=q;const G={message:e=>{let{schema:t}=e;return"must be ".concat(t)},params:e=>{let{schema:t,schemaValue:r}=e;return"string"==typeof t?(0,B._)(I||(I=F(["{type: ","}"])),t):(0,B._)(M||(M=F(["{type: ","}"])),r)}};function K(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,$.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,L.reportError)(t,G)}t.reportTypeError=K},1677:(e,t,r)=>{"use strict";var n,o,a,i,s=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const l=r(8494),c=r(1646);function u(e,t,r){const{gen:u,compositeRule:d,data:f,opts:p}=e;if(void 0===r)return;const h=(0,l._)(n||(n=s(["","",""])),f,(0,l.getProperty)(t));if(d)return void(0,c.checkStrictMode)(e,"default is ignored for: ".concat(h));let m=(0,l._)(o||(o=s([""," === undefined"])),h);"empty"===p.useDefaults&&(m=(0,l._)(a||(a=s([""," || "," === null || ",' === ""'])),m,h,h)),u.if(m,(0,l._)(i||(i=s([""," = ",""])),h,(0,l.stringify)(r)))}t.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const o in r)u(e,o,r[o].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>u(e,r,t.default)))}},7683:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,S,A,k,C,E,_,P,j,R,O,N,T,I,M,F,D,z,L,B,$,W=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const V=r(9544),U=r(7839),H=r(5706),q=r(7839),G=r(1677),K=r(5264),X=r(8414),Q=r(8494),Y=r(1e3),J=r(2228),Z=r(1646),ee=r(9773);function te(e,t){let{gen:r,validateName:v,schema:y,schemaEnv:b,opts:w}=e;w.code.es5?r.func(v,(0,Q._)(n||(n=W(["",", ",""])),Y.default.data,Y.default.valCxt),b.$async,(()=>{r.code((0,Q._)(o||(o=W(['"use strict"; ',""])),re(y,w))),function(e,t){e.if(Y.default.valCxt,(()=>{e.var(Y.default.instancePath,(0,Q._)(l||(l=W(["",".",""])),Y.default.valCxt,Y.default.instancePath)),e.var(Y.default.parentData,(0,Q._)(c||(c=W(["",".",""])),Y.default.valCxt,Y.default.parentData)),e.var(Y.default.parentDataProperty,(0,Q._)(u||(u=W(["",".",""])),Y.default.valCxt,Y.default.parentDataProperty)),e.var(Y.default.rootData,(0,Q._)(d||(d=W(["",".",""])),Y.default.valCxt,Y.default.rootData)),t.dynamicRef&&e.var(Y.default.dynamicAnchors,(0,Q._)(f||(f=W(["",".",""])),Y.default.valCxt,Y.default.dynamicAnchors))}),(()=>{e.var(Y.default.instancePath,(0,Q._)(p||(p=W(['""'])))),e.var(Y.default.parentData,(0,Q._)(h||(h=W(["undefined"])))),e.var(Y.default.parentDataProperty,(0,Q._)(m||(m=W(["undefined"])))),e.var(Y.default.rootData,Y.default.data),t.dynamicRef&&e.var(Y.default.dynamicAnchors,(0,Q._)(g||(g=W(["{}"]))))}))}(r,w),r.code(t)})):r.func(v,(0,Q._)(a||(a=W(["",", ",""])),Y.default.data,function(e){return(0,Q._)(i||(i=W(["{",'="", ',", ",", ","=","","}={}"])),Y.default.instancePath,Y.default.parentData,Y.default.parentDataProperty,Y.default.rootData,Y.default.data,e.dynamicRef?(0,Q._)(s||(s=W([", ","={}"])),Y.default.dynamicAnchors):Q.nil)}(w)),b.$async,(()=>r.code(re(y,w)).code(t)))}function re(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Q._)(k||(k=W(["/*# sourceURL="," */"])),r):Q.nil}function ne(e,t){ae(e)&&(ie(e),oe(e))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&le(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,J.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",Y.default.errors);se(e,a),n.var(t,(0,Q._)(C||(C=W([""," === ",""])),a,Y.default.errors))}(e,t):(0,V.boolOrEmptySchema)(e,t)}function oe(e){let{schema:t,self:r}=e;if("boolean"==typeof t)return!t;for(const n in t)if(r.RULES.all[n])return!0;return!1}function ae(e){return"boolean"!=typeof e.schema}function ie(e){(0,Z.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Z.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn('$ref: keywords ignored in schema at path "'.concat(r,'"'))}(e)}function se(e,t){if(e.opts.jtd)return ce(e,[],!1,t);const r=(0,U.getSchemaTypes)(e.schema);ce(e,r,!(0,U.coerceAndCheckDataType)(e,r),t)}function le(e){let{gen:t,schemaEnv:r,schema:n,errSchemaPath:o,opts:a}=e;const i=n.$comment;if(!0===a.$comment)t.code((0,Q._)(E||(E=W(["",".logger.log(",")"])),Y.default.self,i));else if("function"==typeof a.$comment){const e=(0,Q.str)(_||(_=W(["","/$comment"])),o),n=t.scopeValue("root",{ref:r.root});t.code((0,Q._)(P||(P=W(["",".opts.$comment(",", ",", ",".schema)"])),Y.default.self,i,e,n))}}function ce(e,t,r,n){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;function d(c){(0,H.shouldUseGroup)(a,c)&&(c.type?(o.if((0,q.checkDataType)(c.type,i,l.strictNumbers)),ue(e,c),1===t.length&&t[0]===c.type&&r&&(o.else(),(0,q.reportTypeError)(e)),o.endIf()):ue(e,c),s||o.if((0,Q._)(M||(M=W([""," === ",""])),Y.default.errors,n||0)))}!a.$ref||!l.ignoreKeywordsWithRef&&(0,Z.schemaHasRulesButRef)(a,u)?(l.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{fe(e.dataTypes,t)||pe(e,'type "'.concat(t,'" not allowed by context "').concat(e.dataTypes.join(","),'"'))})),function(e,t){const r=[];for(const n of e.dataTypes)fe(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&pe(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if("object"==typeof o&&(0,H.shouldUseRule)(e.schema,o)){const{type:r}=o.definition;r.length&&!r.some((e=>de(t,e)))&&pe(e,'missing type "'.concat(r.join(","),'" for keyword "').concat(n,'"'))}}}(e,e.dataTypes)}(e,t),o.block((()=>{for(const e of u.rules)d(e);d(u.post)}))):o.block((()=>me(e,"$ref",u.all.$ref.definition)))}function ue(e,t){const{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,G.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,H.shouldUseRule)(n,r)&&me(e,r.keyword,r.definition,t.type)}))}function de(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function fe(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function pe(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=' at "'.concat(r,'" (strictTypes)'),(0,Z.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){ae(e)&&(ie(e),oe(e))?function(e){const{schema:t,opts:r,gen:n}=e;te(e,(()=>{r.$comment&&t.$comment&&le(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,Z.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(Y.default.vErrors,null),n.let(Y.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Q._)(v||(v=W(["",".evaluated"])),r)),t.if((0,Q._)(y||(y=W(["",".dynamicProps"])),e.evaluated),(()=>t.assign((0,Q._)(b||(b=W(["",".props"])),e.evaluated),(0,Q._)(w||(w=W(["undefined"])))))),t.if((0,Q._)(x||(x=W(["",".dynamicItems"])),e.evaluated),(()=>t.assign((0,Q._)(S||(S=W(["",".items"])),e.evaluated),(0,Q._)(A||(A=W(["undefined"]))))))}(e),se(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if((0,Q._)(j||(j=W([""," === 0"])),Y.default.errors),(()=>t.return(Y.default.data)),(()=>t.throw((0,Q._)(R||(R=W(["new ","(",")"])),o,Y.default.vErrors)))):(t.assign((0,Q._)(O||(O=W(["",".errors"])),n),Y.default.vErrors),a.unevaluated&&function(e){let{gen:t,evaluated:r,props:n,items:o}=e;n instanceof Q.Name&&t.assign((0,Q._)(T||(T=W(["",".props"])),r),n);o instanceof Q.Name&&t.assign((0,Q._)(I||(I=W(["",".items"])),r),o)}(e),t.return((0,Q._)(N||(N=W([""," === 0"])),Y.default.errors)))}(e)}))}(e):te(e,(()=>(0,V.topBoolOrEmptySchema)(e)))};class he{constructor(e,t,r){if((0,K.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Z.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",ye(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,K.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error("".concat(r," value must be ").concat(JSON.stringify(t.schemaType)));("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",Y.default.errors))}result(e,t,r){this.failResult((0,Q.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,Q.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,Q._)(F||(F=W([""," !== undefined && (",")"])),t,(0,Q.or)(this.invalid$data(),e)))}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?ee.reportExtraError:ee.reportError)(this,this.def.error,t)}$dataError(){(0,ee.reportError)(this,this.def.$dataError||ee.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,ee.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q.nil;this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q.nil,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q.nil;if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,Q.or)((0,Q._)(D||(D=W([""," === undefined"])),n),t)),e!==Q.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==Q.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return(0,Q.or)(function(){if(r.length){if(!(t instanceof Q.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return(0,Q._)(z||(z=W(["",""])),(0,q.checkDataTypes)(e,t,o.opts.strictNumbers,q.DataType.Wrong))}return Q.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,Q._)(L||(L=W(["!","(",")"])),r,t)}return Q.nil}())}subschema(e,t){const r=(0,X.getSubschema)(this.it,e);(0,X.extendSubschemaData)(r,this.it,e),(0,X.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return ne(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=Z.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=Z.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,Q.Name))),!0}}function me(e,t,r,n){const o=new he(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,K.funcKeywordCode)(o,r):"macro"in r?(0,K.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,K.funcKeywordCode)(o,r)}t.KeywordCxt=he;const ge=/^\/(?:[^~]|~0|~1)*$/,ve=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ye(e,t){let r,n,{dataLevel:o,dataNames:a,dataPathArr:i}=t;if(""===e)return Y.default.rootData;if("/"===e[0]){if(!ge.test(e))throw new Error("Invalid JSON-pointer: ".concat(e));r=e,n=Y.default.rootData}else{const t=ve.exec(e);if(!t)throw new Error("Invalid JSON-pointer: ".concat(e));const s=+t[1];if(r=t[2],"#"===r){if(s>=o)throw new Error(c("property/index",s));return i[o-s]}if(s>o)throw new Error(c("data",s));if(n=a[o-s],!r)return n}let s=n;const l=r.split("/");for(const u of l)u&&(n=(0,Q._)(B||(B=W(["","",""])),n,(0,Q.getProperty)((0,Z.unescapeJsonPointer)(u))),s=(0,Q._)($||($=W([""," && ",""])),s,n));return s;function c(e,t){return"Cannot access ".concat(e," ").concat(t," levels up, current level is ").concat(o)}}t.getData=ye},5264:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const h=r(8494),m=r(1e3),g=r(8518),v=r(9773);function y(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,(()=>t.assign(r,(0,h._)(c||(c=p(["","[","]"])),n.parentData,n.parentDataProperty))))}function b(e,t,r){if(void 0===r)throw new Error('keyword "'.concat(t,'" failed to compile'));return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,h.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:n,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=b(r,n,s);!1!==i.opts.validateSchema&&i.self.validateSchema(s,!0);const c=r.name("valid");e.subschema({schema:s,schemaPath:h.nil,errSchemaPath:"".concat(i.errSchemaPath,"/").concat(n),topSchemaRef:l,compositeRule:!0},c),e.pass(c,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:c,keyword:w,schema:x,parentSchema:S,$data:A,it:k}=e;!function(e,t){let{schemaEnv:r}=e;if(t.async&&!r.$async)throw new Error("async keyword in sync schema")}(k,t);const C=!A&&t.compile?t.compile.call(k.self,x,S,k):t.validate,E=b(c,w,C),_=c.let("valid");function P(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.async?(0,h._)(s||(s=p(["await "]))):h.nil;const n=k.opts.passContext?m.default.this:m.default.self,o=!("compile"in t&&!A||!1===t.schema);c.assign(_,(0,h._)(l||(l=p(["","",""])),r,(0,g.callValidateCode)(e,E,n,o)),t.modifying)}function j(e){var r;c.if((0,h.not)(null!==(r=t.valid)&&void 0!==r?r:_),e)}e.block$data(_,(function(){if(!1===t.errors)P(),t.modifying&&y(e),j((()=>e.error()));else{const r=t.async?function(){const e=c.let("ruleErrs",null);return c.try((()=>P((0,h._)(n||(n=p(["await "]))))),(t=>c.assign(_,!1).if((0,h._)(o||(o=p([""," instanceof ",""])),t,k.ValidationError),(()=>c.assign(e,(0,h._)(a||(a=p(["",".errors"])),t))),(()=>c.throw(t))))),e}():function(){const e=(0,h._)(i||(i=p(["",".errors"])),E);return c.assign(e,null),P(h.nil),e}();t.modifying&&y(e),j((()=>function(e,t){const{gen:r}=e;r.if((0,h._)(u||(u=p(["Array.isArray(",")"])),t),(()=>{r.assign(m.default.vErrors,(0,h._)(d||(d=p([""," === null ? "," : ",".concat(",")"])),m.default.vErrors,t,m.default.vErrors,t)).assign(m.default.errors,(0,h._)(f||(f=p(["",".length"])),m.default.vErrors)),(0,v.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:_)},t.validSchemaType=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&"undefined"==typeof e))},t.validateKeywordUsage=function(e,t,r){let{schema:n,opts:o,self:a,errSchemaPath:i}=e;if(Array.isArray(t.keyword)?!t.keyword.includes(r):t.keyword!==r)throw new Error("ajv implementation error");const s=t.dependencies;if(null===s||void 0===s?void 0:s.some((e=>!Object.prototype.hasOwnProperty.call(n,e))))throw new Error("parent schema must have dependencies of ".concat(r,": ").concat(s.join(",")));if(t.validateSchema){if(!t.validateSchema(n[r])){const e='keyword "'.concat(r,'" value is invalid at path "').concat(i,'": ')+a.errorsText(t.validateSchema.errors);if("log"!==o.validateSchema)throw new Error(e);a.logger.error(e)}}}},8414:(e,t,r)=>{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const c=r(8494),u=r(1646);t.getSubschema=function(e,t){let{keyword:r,schemaProp:a,schema:i,schemaPath:s,errSchemaPath:d,topSchemaRef:f}=t;if(void 0!==r&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==r){const t=e.schema[r];return void 0===a?{schema:t,schemaPath:(0,c._)(n||(n=l(["","",""])),e.schemaPath,(0,c.getProperty)(r)),errSchemaPath:"".concat(e.errSchemaPath,"/").concat(r)}:{schema:t[a],schemaPath:(0,c._)(o||(o=l(["","","",""])),e.schemaPath,(0,c.getProperty)(r),(0,c.getProperty)(a)),errSchemaPath:"".concat(e.errSchemaPath,"/").concat(r,"/").concat((0,u.escapeFragment)(a))}}if(void 0!==i){if(void 0===s||void 0===d||void 0===f)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:s,topSchemaRef:f,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,r){let{dataProp:n,dataPropType:o,data:d,dataTypes:f,propertyName:p}=r;if(void 0!==d&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=t;if(void 0!==n){const{errorPath:r,dataPathArr:d,opts:f}=t;m(h.let("data",(0,c._)(a||(a=l(["","",""])),t.data,(0,c.getProperty)(n)),!0)),e.errorPath=(0,c.str)(i||(i=l(["","",""])),r,(0,u.getErrorPath)(n,o,f.jsPropertySyntax)),e.parentDataProperty=(0,c._)(s||(s=l(["",""])),n),e.dataPathArr=[...d,e.parentDataProperty]}if(void 0!==d){m(d instanceof c.Name?d:h.let("data",d,!0)),void 0!==p&&(e.propertyName=p)}function m(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}f&&(e.dataTypes=f)},t.extendSubschemaMode=function(e,t){let{jtdDiscriminator:r,jtdMetadata:n,compositeRule:o,createErrors:a,allErrors:i}=t;void 0!==o&&(e.compositeRule=o),void 0!==a&&(e.createErrors=a),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=r,e.jtdMetadata=n}},9899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(7683);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var o=r(8494);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const a=r(2323),i=r(8723),s=r(9675),l=r(7804),c=r(8494),u=r(2228),d=r(7839),f=r(1646),p=r(7301),h=r(2707),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,r,n,o,a,i,s,l,c,u,d,f,p,g,v,y,b,w,x,S,A,k,C,E,_;const P=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,R=!0===j||void 0===j?1:j||0,O=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:m,N=null!==(o=e.uriResolver)&&void 0!==o?o:h.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:P)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:P)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:P)&&void 0!==u?u:"log",strictTuples:null!==(f=null!==(d=e.strictTuples)&&void 0!==d?d:P)&&void 0!==f?f:"log",strictRequired:null!==(g=null!==(p=e.strictRequired)&&void 0!==p?p:P)&&void 0!==g&&g,code:e.code?{...e.code,optimize:R,regExp:O}:{optimize:R,regExp:O},loopRequired:null!==(v=e.loopRequired)&&void 0!==v?v:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(x=e.inlineRefs)||void 0===x||x,schemaId:null!==(S=e.schemaId)&&void 0!==S?S:"$id",addUsedSchema:null===(A=e.addUsedSchema)||void 0===A||A,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(C=e.validateFormats)||void 0===C||C,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(_=e.int32range)||void 0===_||_,uriResolver:N}}class x{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:v,es5:t,lines:r}),this.logger=function(e){if(!1===e)return P;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),S.call(this,y,e,"NOT SUPPORTED"),S.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=_.call(this),e.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),k.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=p;"id"===r&&(n={...p},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error('no schema with key or ref "'.concat(e,'"'))}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await o.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||a.call(this,r)}async function o(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),a.call(this,e)}}function s(e){let{missingSchema:t,missingRef:r}=e;if(this.refs[t])throw new Error("AnySchema ".concat(t," is loaded but ").concat(r," cannot be resolved"))}async function l(e){const r=await c.call(this,e);this.refs[e]||await o.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,o);return this}if("object"===typeof e){const{schemaId:t}=this.opts;if(n=e[t],void 0!==n&&"string"!=typeof n)throw new Error("schema ".concat(t," must be string"))}return t=(0,u.normalizeId)(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,o,!0),this}addMetaSchema(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema;return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=A.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new l.SchemaEnv({schema:{},schemaId:r});if(t=l.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=A.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(R.call(this,r,t),!t)return(0,f.eachItem)(r,(e=>O.call(this,e))),this;T.call(this,t);const n={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(r,0===n.type.length?e=>O.call(this,e,n):e=>n.type.forEach((t=>O.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,{separator:t=", ",dataVar:r="data"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&0!==e.length?e.map((e=>"".concat(r).concat(e.instancePath," ").concat(e.message))).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=M(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema;const{schemaId:i}=this.opts;if("object"==typeof e)n=e[i];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;r=(0,u.normalizeId)(n||r);const c=u.getSchemaRefs.call(this,e,r);return s=new l.SchemaEnv({schema:e,schemaId:i,meta:t,baseId:r,localRefs:c}),this._cache.set(s.schema,s),a&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=s),o&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error('schema with key or id "'.concat(e,'" already exists'))}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function S(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(const o in e){const a=o;a in t&&this.logger[n]("".concat(r,": option ").concat(o,". ").concat(e[a]))}}function A(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function k(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function C(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function _(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=x,x.ValidationError=a.default,x.MissingRefError=i.default;const P={log(){},warn(){},error(){}};const j=/^[a-z_$][a-z0-9_$:-]*$/i;function R(e,t){const{RULES:r}=this;if((0,f.eachItem)(e,(e=>{if(r.keywords[e])throw new Error("Keyword ".concat(e," is already defined"));if(!j.test(e))throw new Error("Keyword ".concat(e," has invalid name"))})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function O(e,t,r){var n;const o=null===t||void 0===t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((e=>{let{type:t}=e;return t===r}));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?N.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function N(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn("rule ".concat(r," is not defined")))}function T(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=M(t)),e.validateSchema=this.compile(t,!0))}const I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function M(e){return{anyOf:[e,I]}}},4281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(122);n.code='require("ajv/dist/runtime/equal").default',t.default=n},5784:(e,t)=>{"use strict";function r(e){const t=e.length;let r,n=0,o=0;for(;o=55296&&r<=56319&&o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9392);n.code='require("ajv/dist/runtime/uri").default',t.default=n},2323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},2182:(e,t,r)=>{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const c=r(8494),u=r(1646),d={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:e=>{let{params:{len:t}}=e;return(0,c.str)(n||(n=l(["must NOT have more than "," items"])),t)},params:e=>{let{params:{len:t}}=e;return(0,c._)(o||(o=l(["{limit: ","}"])),t)}},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?f(e,n):(0,u.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function f(e,t){const{gen:r,schema:n,data:o,keyword:d,it:f}=e;f.items=!0;const p=r.const("len",(0,c._)(a||(a=l(["",".length"])),o));if(!1===n)e.setParams({len:t.length}),e.pass((0,c._)(i||(i=l([""," <= ",""])),p,t.length));else if("object"==typeof n&&!(0,u.alwaysValidSchema)(f,n)){const n=r.var("valid",(0,c._)(s||(s=l([""," <= ",""])),p,t.length));r.if((0,c.not)(n),(()=>function(n){r.forRange("i",t.length,p,(t=>{e.subschema({keyword:d,dataProp:t,dataPropType:u.Type.Num},n),f.allErrors||r.if((0,c.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}t.validateAdditionalItems=f,t.default=d},5341:(e,t,r)=>{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const c=r(8518),u=r(8494),d=r(1e3),f=r(1646),p={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:e=>{let{params:t}=e;return(0,u._)(n||(n=l(["{additionalProperty: ","}"])),t.additionalProperty)}},code(e){const{gen:t,schema:r,parentSchema:n,data:p,errsCount:h,it:m}=e;if(!h)throw new Error("ajv implementation error");const{allErrors:g,opts:v}=m;if(m.props=!0,"all"!==v.removeAdditional&&(0,f.alwaysValidSchema)(m,r))return;const y=(0,c.allSchemaProperties)(n.properties),b=(0,c.allSchemaProperties)(n.patternProperties);function w(e){t.code((0,u._)(s||(s=l(["delete ","[","]"])),p,e))}function x(n){if("all"===v.removeAdditional||v.removeAdditional&&!1===r)w(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(g||t.break());if("object"==typeof r&&!(0,f.alwaysValidSchema)(m,r)){const r=t.name("valid");"failing"===v.removeAdditional?(S(n,r,!1),t.if((0,u.not)(r),(()=>{e.reset(),w(n)}))):(S(n,r),g||t.if((0,u.not)(r),(()=>t.break())))}}}function S(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:f.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",p,(r=>{y.length||b.length?t.if(function(r){let o;if(y.length>8){const e=(0,f.schemaRefOrVal)(m,n.properties,"properties");o=(0,c.isOwnProperty)(t,e,r)}else o=y.length?(0,u.or)(...y.map((e=>(0,u._)(a||(a=l([""," === ",""])),r,e)))):u.nil;return b.length&&(o=(0,u.or)(o,...b.map((t=>(0,u._)(i||(i=l(["",".test(",")"])),(0,c.usePattern)(e,t),r))))),(0,u.not)(o)}(r),(()=>x(r))):x(r)})),e.ok((0,u._)(o||(o=l([""," === ",""])),h,d.default.errors))}};t.default=p},3943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1646),o={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(o,t))return;const i=e.subschema({keyword:"allOf",schemaProp:r},a);e.ok(a),e.mergeEvaluated(i)}))}};t.default=o},7066:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(8518).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},2064:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const g=r(8494),v=r(1646),y={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:e=>{let{params:{min:t,max:r}}=e;return void 0===r?(0,g.str)(n||(n=m(["must contain at least "," valid item(s)"])),t):(0,g.str)(o||(o=m(["must contain at least "," and no more than "," valid item(s)"])),t,r)},params:e=>{let{params:{min:t,max:r}}=e;return void 0===r?(0,g._)(a||(a=m(["{minContains: ","}"])),t):(0,g._)(i||(i=m(["{minContains: ",", maxContains: ","}"])),t,r)}},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,y;const{minContains:b,maxContains:w}=n;a.opts.next?(i=void 0===b?1:b,y=w):i=1;const x=t.const("len",(0,g._)(s||(s=m(["",".length"])),o));if(e.setParams({min:i,max:y}),void 0===y&&0===i)return void(0,v.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==y&&i>y)return(0,v.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,v.alwaysValidSchema)(a,r)){let t=(0,g._)(l||(l=m([""," >= ",""])),x,i);return void 0!==y&&(t=(0,g._)(c||(c=m([""," && "," <= ",""])),t,x,y)),void e.pass(t)}a.items=!0;const S=t.name("valid");function A(){const e=t.name("_valid"),r=t.let("count",0);k(e,(()=>t.if(e,(()=>function(e){t.code((0,g._)(d||(d=m(["","++"])),e)),void 0===y?t.if((0,g._)(f||(f=m([""," >= ",""])),e,i),(()=>t.assign(S,!0).break())):(t.if((0,g._)(p||(p=m([""," > ",""])),e,y),(()=>t.assign(S,!1).break())),1===i?t.assign(S,!0):t.if((0,g._)(h||(h=m([""," >= ",""])),e,i),(()=>t.assign(S,!0))))}(r)))))}function k(r,n){t.forRange("i",0,x,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:v.Type.Num,compositeRule:!0},r),n()}))}void 0===y&&1===i?k(S,(()=>t.if(S,(()=>t.break())))):0===i?(t.let(S,!0),void 0!==y&&t.if((0,g._)(u||(u=m(["",".length > 0"])),o),A)):(t.let(S,!1),A()),e.result(S,(()=>e.reset()))}};t.default=y},9344:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const s=r(8494),l=r(1646),c=r(8518);t.error={message:e=>{let{params:{property:t,depsCount:r,deps:o}}=e;const a=1===r?"property":"properties";return(0,s.str)(n||(n=i(["must have "," "," when property "," is present"])),a,o,t)},params:e=>{let{params:{property:t,depsCount:r,deps:n,missingProperty:a}}=e;return(0,s._)(o||(o=i(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),t,a,r,n)}};const u={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function(e){let{schema:t}=e;const r={},n={};for(const o in t){if("__proto__"===o)continue;(Array.isArray(t[o])?r:n)[o]=t[o]}return[r,n]}(e);d(e,t),f(e,r)}};function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema;const{gen:r,data:n,it:o}=e;if(0===Object.keys(t).length)return;const l=r.let("missing");for(const u in t){const d=t[u];if(0===d.length)continue;const f=(0,c.propertyInData)(r,n,u,o.opts.ownProperties);e.setParams({property:u,depsCount:d.length,deps:d.join(", ")}),o.allErrors?r.if(f,(()=>{for(const t of d)(0,c.checkReportMissingProp)(e,t)})):(r.if((0,s._)(a||(a=i([""," && (",")"])),f,(0,c.checkMissingProp)(e,d,l))),(0,c.reportMissingProp)(e,l),r.else())}}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema;const{gen:r,data:n,keyword:o,it:a}=e,i=r.name("valid");for(const s in t)(0,l.alwaysValidSchema)(a,t[s])||(r.if((0,c.propertyInData)(r,n,s,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:s},i);e.mergeValidEvaluated(t,i)}),(()=>r.var(i,!0))),e.ok(i))}t.validatePropertyDeps=d,t.validateSchemaDeps=f,t.default=u},7866:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8494),l=r(1646),c={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:e=>{let{params:t}=e;return(0,s.str)(n||(n=i(['must match "','" schema'])),t.ifClause)},params:e=>{let{params:t}=e;return(0,s._)(o||(o=i(["{failingKeyword: ","}"])),t.ifClause)}},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,l.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=u(n,"then"),c=u(n,"else");if(!o&&!c)return;const d=t.let("valid",!0),f=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);e.mergeEvaluated(t)}(),e.reset(),o&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(f,p("then",r),p("else",r))}else o?t.if(f,p("then")):t.if((0,s.not)(f),p("else"));function p(r,n){return()=>{const o=e.subschema({keyword:r},f);t.assign(d,f),e.mergeValidEvaluated(o,d),n?t.assign(n,(0,s._)(a||(a=i(["",""])),r)):e.setParams({ifClause:r})}}e.pass(d,(()=>e.error(!0)))}};function u(e,t){const r=e.schema[t];return void 0!==r&&!(0,l.alwaysValidSchema)(e,r)}t.default=c},2021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2182),o=r(9721),a=r(4253),i=r(9213),s=r(2064),l=r(9344),c=r(7482),u=r(5341),d=r(2480),f=r(5522),p=r(8144),h=r(7066),m=r(2324),g=r(3943),v=r(7866),y=r(6747);t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[p.default,h.default,m.default,g.default,v.default,y.default,c.default,u.default,l.default,d.default,f.default];return e?t.push(o.default,i.default):t.push(n.default,a.default),t.push(s.default),t}},4253:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const i=r(8494),s=r(1646),l=r(8518),c={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return u(e,"additionalItems",t);r.items=!0,(0,s.alwaysValidSchema)(r,t)||e.ok((0,l.validateArray)(e))}};function u(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.schema;const{gen:l,parentSchema:c,data:u,keyword:d,it:f}=e;!function(e){const{opts:n,errSchemaPath:o}=f,a=r.length,i=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!i){const e='"'.concat(d,'" is ').concat(a,"-tuple, but minItems or maxItems/").concat(t,' are not specified or different at path "').concat(o,'"');(0,s.checkStrictMode)(f,e,n.strictTuples)}}(c),f.opts.unevaluated&&r.length&&!0!==f.items&&(f.items=s.mergeEvaluated.items(l,r.length,f.items));const p=l.name("valid"),h=l.const("len",(0,i._)(n||(n=a(["",".length"])),u));r.forEach(((t,r)=>{(0,s.alwaysValidSchema)(f,t)||(l.if((0,i._)(o||(o=a([""," > ",""])),h,r),(()=>e.subschema({keyword:d,schemaProp:r,dataProp:r},p))),e.ok(p))}))}t.validateTuple=u,t.default=c},9213:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const i=r(8494),s=r(1646),l=r(8518),c=r(2182),u={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:e=>{let{params:{len:t}}=e;return(0,i.str)(n||(n=a(["must NOT have more than "," items"])),t)},params:e=>{let{params:{len:t}}=e;return(0,i._)(o||(o=a(["{limit: ","}"])),t)}},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,s.alwaysValidSchema)(n,t)||(o?(0,c.validateAdditionalItems)(e,o):e.ok((0,l.validateArray)(e)))}};t.default=u},8144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1646),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:o}=e;if((0,n.alwaysValidSchema)(o,r))return void e.fail();const a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=o},2324:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8494),l=r(1646),c={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:e=>{let{params:t}=e;return(0,s._)(n||(n=i(["{passingSchemas: ","}"])),t.passing)}},code(e){const{gen:t,schema:r,parentSchema:n,it:c}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(c.opts.discriminator&&n.discriminator)return;const u=r,d=t.let("valid",!1),f=t.let("passing",null),p=t.name("_valid");e.setParams({passing:f}),t.block((function(){u.forEach(((r,n)=>{let u;(0,l.alwaysValidSchema)(c,r)?t.var(p,!0):u=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},p),n>0&&t.if((0,s._)(o||(o=i([""," && ",""])),p,d)).assign(d,!1).assign(f,(0,s._)(a||(a=i(["[",", ","]"])),f,n)).else(),t.if(p,(()=>{t.assign(d,!0),t.assign(f,n),u&&e.mergeEvaluated(u,s.Name)}))}))})),e.result(d,(()=>e.reset()),(()=>e.error(!0)))}};t.default=c},5522:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const i=r(8518),s=r(8494),l=r(1646),c=r(1646),u={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:u,parentSchema:d,it:f}=e,{opts:p}=f,h=(0,i.allSchemaProperties)(r),m=h.filter((e=>(0,l.alwaysValidSchema)(f,r[e])));if(0===h.length||m.length===h.length&&(!f.opts.unevaluated||!0===f.props))return;const g=p.strictSchema&&!p.allowMatchingProperties&&d.properties,v=t.name("valid");!0===f.props||f.props instanceof s.Name||(f.props=(0,c.evaluatedPropsToName)(t,f.props));const{props:y}=f;function b(e){for(const t in g)new RegExp(e).test(t)&&(0,l.checkStrictMode)(f,"property ".concat(t," matches pattern ").concat(e," (use allowMatchingProperties)"))}function w(r){t.forIn("key",u,(l=>{t.if((0,s._)(n||(n=a(["",".test(",")"])),(0,i.usePattern)(e,r),l),(()=>{const n=m.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:l,dataPropType:c.Type.Str},v),f.opts.unevaluated&&!0!==y?t.assign((0,s._)(o||(o=a(["","[","]"])),y,l),!0):n||f.allErrors||t.if((0,s.not)(v),(()=>t.break()))}))}))}!function(){for(const e of h)g&&b(e),f.allErrors?w(e):(t.var(v,!0),w(e),t.if(v))}()}};t.default=u},9721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4253),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=o},2480:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7683),o=r(8518),a=r(1646),i=r(5341),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:s,data:l,it:c}=e;"all"===c.opts.removeAdditional&&void 0===s.additionalProperties&&i.default.code(new n.KeywordCxt(c,i.default,"additionalProperties"));const u=(0,o.allSchemaProperties)(r);for(const n of u)c.definedProperties.add(n);c.opts.unevaluated&&u.length&&!0!==c.props&&(c.props=a.mergeEvaluated.props(t,(0,a.toHash)(u),c.props));const d=u.filter((e=>!(0,a.alwaysValidSchema)(c,r[e])));if(0===d.length)return;const f=t.name("valid");for(const n of d)p(n)?h(n):(t.if((0,o.propertyInData)(t,l,n,c.opts.ownProperties)),h(n),c.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function p(e){return c.opts.useDefaults&&!c.compositeRule&&void 0!==r[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=s},7482:(e,t,r)=>{"use strict";var n,o=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const a=r(8494),i=r(1646),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:e=>{let{params:t}=e;return(0,a._)(n||(n=o(["{propertyName: ","}"])),t.propertyName)}},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,i.alwaysValidSchema)(o,r))return;const s=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},s),t.if((0,a.not)(s),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(s)}};t.default=s},6747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1646),o={keyword:["then","else"],schemaType:["object","boolean"],code(e){let{keyword:t,parentSchema:r,it:o}=e;void 0===r.if&&(0,n.checkStrictMode)(o,'"'.concat(t,'" without "if" is ignored'))}};t.default=o},8518:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const b=r(8494),w=r(1646),x=r(1e3),S=r(1646);function A(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,b._)(a||(a=y(["Object.prototype.hasOwnProperty"])))})}function k(e,t,r){return(0,b._)(i||(i=y(["",".call(",", ",")"])),A(e),t,r)}function C(e,t,r,n){const o=(0,b._)(c||(c=y(["",""," === undefined"])),t,(0,b.getProperty)(r));return n?(0,b.or)(o,(0,b.not)(k(e,t,r))):o}function E(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:o,it:a}=e;r.if(C(r,o,t,a.opts.ownProperties),(()=>{e.setParams({missingProperty:(0,b._)(n||(n=y(["",""])),t)},!0),e.error()}))},t.checkMissingProp=function(e,t,r){let{gen:n,data:a,it:{opts:i}}=e;return(0,b.or)(...t.map((e=>(0,b.and)(C(n,a,e,i.ownProperties),(0,b._)(o||(o=y([""," = ",""])),r,e)))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=A,t.isOwnProperty=k,t.propertyInData=function(e,t,r,n){const o=(0,b._)(s||(s=y(["",""," !== undefined"])),t,(0,b.getProperty)(r));return n?(0,b._)(l||(l=y([""," && ",""])),o,k(e,t,r)):o},t.noPropertyInData=C,t.allSchemaProperties=E,t.schemaProperties=function(e,t){return E(t).filter((r=>!(0,w.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function(e,t,r,n){let{schemaCode:o,data:a,it:{gen:i,topSchemaRef:s,schemaPath:l,errorPath:c},it:h}=e;const m=n?(0,b._)(u||(u=y(["",", ",", ","",""])),o,a,s,l):a,g=[[x.default.instancePath,(0,b.strConcat)(x.default.instancePath,c)],[x.default.parentData,h.parentData],[x.default.parentDataProperty,h.parentDataProperty],[x.default.rootData,x.default.rootData]];h.opts.dynamicRef&&g.push([x.default.dynamicAnchors,x.default.dynamicAnchors]);const v=(0,b._)(d||(d=y(["",", ",""])),m,i.object(...g));return r!==b.nil?(0,b._)(f||(f=y(["",".call(",", ",")"])),t,r,v):(0,b._)(p||(p=y(["","(",")"])),t,v)};const _=(0,b._)(h||(h=y(["new RegExp"])));t.usePattern=function(e,t){let{gen:r,it:{opts:n}}=e;const o=n.unicodeRegExp?"u":"",{regExp:a}=n.code,i=a(t,o);return r.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,b._)(m||(m=y(["","(",", ",")"])),"new RegExp"===a.code?_:(0,S.useFunc)(r,a),t,o)})},t.validateArray=function(e){const{gen:t,data:r,keyword:n,it:o}=e,a=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return i((()=>t.assign(e,!1))),e}return t.var(a,!0),i((()=>t.break())),a;function i(o){const i=t.const("len",(0,b._)(g||(g=y(["",".length"])),r));t.forRange("i",0,i,(r=>{e.subschema({keyword:n,dataProp:r,dataPropType:w.Type.Num},a),t.if((0,b.not)(a),o)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,w.alwaysValidSchema)(o,e)))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),i=t.name("_valid");t.block((()=>r.forEach(((r,o)=>{const s=e.subschema({keyword:n,schemaProp:o,compositeRule:!0},i);t.assign(a,(0,b._)(v||(v=y([""," || ",""])),a,i));e.mergeValidEvaluated(s,i)||t.if((0,b.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},1406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},6891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1406),o=r(3902),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,o.default];t.default=a},3902:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f=r(166).default;Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const p=r(8723),h=r(8518),m=r(8494),g=r(1e3),v=r(7804),y=r(1646),b={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:o}=e,{baseId:a,schemaEnv:i,validateName:s,opts:l,self:c}=o,{root:u}=i;if(("#"===r||"#/"===r)&&a===u.baseId)return function(){if(i===u)return x(e,s,i,i.$async);const r=t.scopeValue("root",{ref:u});return x(e,(0,m._)(n||(n=f(["",".validate"])),r),u,u.$async)}();const d=v.resolveRef.call(c,u,a,r);if(void 0===d)throw new p.default(o.opts.uriResolver,a,r);return d instanceof v.SchemaEnv?function(t){const r=w(e,t);x(e,r,t,t.$async)}(d):function(n){const o=t.scopeValue("schema",!0===l.code.source?{ref:n,code:(0,m.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:m.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(d)}};function w(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,m._)(o||(o=f(["",".validate"])),r.scopeValue("wrapper",{ref:t}))}function x(e,t,r,n){const{gen:o,it:p}=e,{allErrors:v,schemaEnv:b,opts:w}=p,x=w.passContext?g.default.this:m.nil;function S(e){const t=(0,m._)(s||(s=f(["",".errors"])),e);o.assign(g.default.vErrors,(0,m._)(l||(l=f([""," === null ? "," : ",".concat(",")"])),g.default.vErrors,t,g.default.vErrors,t)),o.assign(g.default.errors,(0,m._)(c||(c=f(["",".length"])),g.default.vErrors))}function A(e){var t;if(!p.opts.unevaluated)return;const n=null===(t=null===r||void 0===r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(n&&!n.dynamicProps)void 0!==n.props&&(p.props=y.mergeEvaluated.props(o,n.props,p.props));else{const t=o.var("props",(0,m._)(u||(u=f(["",".evaluated.props"])),e));p.props=y.mergeEvaluated.props(o,t,p.props,m.Name)}if(!0!==p.items)if(n&&!n.dynamicItems)void 0!==n.items&&(p.items=y.mergeEvaluated.items(o,n.items,p.items));else{const t=o.var("items",(0,m._)(d||(d=f(["",".evaluated.items"])),e));p.items=y.mergeEvaluated.items(o,t,p.items,m.Name)}}n?function(){if(!b.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code((0,m._)(a||(a=f(["await ",""])),(0,h.callValidateCode)(e,t,x))),A(t),v||o.assign(r,!0)}),(e=>{o.if((0,m._)(i||(i=f(["!("," instanceof ",")"])),e,p.ValidationError),(()=>o.throw(e))),S(e),v||o.assign(r,!1)})),e.ok(r)}():e.result((0,h.callValidateCode)(e,t,x),(()=>A(t)),(()=>S(t)))}t.getValidate=w,t.callRef=x,t.default=b},5012:(e,t,r)=>{"use strict";var n,o,a,i,s=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const l=r(8494),c=r(3633),u=r(7804),d=r(1646),f={keyword:"discriminator",type:"object",schemaType:"object",error:{message:e=>{let{params:{discrError:t,tagName:r}}=e;return t===c.DiscrError.Tag?'tag "'.concat(r,'" must be string'):'value of tag "'.concat(r,'" must be in oneOf')},params:e=>{let{params:{discrError:t,tag:r,tagName:o}}=e;return(0,l._)(n||(n=s(["{error: ",", tag: ",", tagValue: ","}"])),t,o,r)}},code(e){const{gen:t,data:r,schema:n,parentSchema:f,it:p}=e,{oneOf:h}=f;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const m=n.propertyName;if("string"!=typeof m)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!h)throw new Error("discriminator: requires oneOf keyword");const g=t.let("valid",!1),v=t.const("tag",(0,l._)(o||(o=s(["","",""])),r,(0,l.getProperty)(m)));function y(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,l.Name),n}t.if((0,l._)(a||(a=s(["typeof ",' == "string"'])),v),(()=>function(){const r=function(){var e;const t={},r=o(f);let n=!0;for(let s=0;se.error(!1,{discrError:c.DiscrError.Tag,tag:v,tagName:m}))),e.ok(g)}};t.default=f},3633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(t.DiscrError||(t.DiscrError={}))},5915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6891),o=r(1335),a=r(2021),i=r(4999),s=r(2854),l=[n.default,o.default,(0,a.default)(),i.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},3004:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const x=r(8494),S={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:e=>{let{schemaCode:t}=e;return(0,x.str)(n||(n=w(['must match format "','"'])),t)},params:e=>{let{schemaCode:t}=e;return(0,x._)(o||(o=w(["{format: ","}"])),t)}},code(e,t){const{gen:r,data:n,$data:o,schema:S,schemaCode:A,it:k}=e,{opts:C,errSchemaPath:E,schemaEnv:_,self:P}=k;C.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:P.formats,code:C.code.formats}),m=r.const("fDef",(0,x._)(a||(a=w(["","[","]"])),o,A)),g=r.let("fType"),v=r.let("format");r.if((0,x._)(i||(i=w(["typeof ",' == "object" && !('," instanceof RegExp)"])),m,m),(()=>r.assign(g,(0,x._)(s||(s=w(["",'.type || "string"'])),m)).assign(v,(0,x._)(l||(l=w(["",".validate"])),m))),(()=>r.assign(g,(0,x._)(c||(c=w(['"string"'])))).assign(v,m))),e.fail$data((0,x.or)(!1===C.strictSchema?x.nil:(0,x._)(u||(u=w([""," && !",""])),A,v),function(){const e=_.$async?(0,x._)(d||(d=w(["(",".async ? await ","(",") : ","(","))"])),m,v,n,v,n):(0,x._)(f||(f=w(["","(",")"])),v,n),r=(0,x._)(p||(p=w(["(typeof ",' == "function" ? '," : ",".test(","))"])),v,e,v,n);return(0,x._)(h||(h=w([""," && "," !== true && "," === "," && !",""])),v,v,g,t,r)}()))}():function(){const o=P.formats[S];if(!o)return void function(){if(!1===C.strictSchema)return void P.logger.warn(e());throw new Error(e());function e(){return'unknown format "'.concat(S,'" ignored in schema at path "').concat(E,'"')}}();if(!0===o)return;const[a,i,s]=function(e){const t=e instanceof RegExp?(0,x.regexpCode)(e):C.code.formats?(0,x._)(m||(m=w(["","",""])),C.code.formats,(0,x.getProperty)(S)):void 0,n=r.scopeValue("formats",{key:S,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,(0,x._)(g||(g=w(["",".validate"])),n)];return["string",e,n]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!_.$async)throw new Error("async format in sync schema");return(0,x._)(v||(v=w(["await ","(",")"])),s,n)}return"function"==typeof i?(0,x._)(y||(y=w(["","(",")"])),s,n):(0,x._)(b||(b=w(["",".test(",")"])),s,n)}())}())}};t.default=S},4999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(3004).default];t.default=n},2854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},716:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8494),l=r(1646),c=r(4281),u={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:e=>{let{schemaCode:t}=e;return(0,s._)(n||(n=i(["{allowedValue: ","}"])),t)}},code(e){const{gen:t,data:r,$data:n,schemaCode:u,schema:d}=e;n||d&&"object"==typeof d?e.fail$data((0,s._)(o||(o=i(["!","(",", ",")"])),(0,l.useFunc)(t,c.default),r,u)):e.fail((0,s._)(a||(a=i([""," !== ",""])),d,r))}};t.default=u},5218:(e,t,r)=>{"use strict";var n,o,a,i,s=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const l=r(8494),c=r(1646),u=r(4281),d={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:e=>{let{schemaCode:t}=e;return(0,l._)(n||(n=s(["{allowedValues: ","}"])),t)}},code(e){const{gen:t,data:r,$data:n,schema:d,schemaCode:f,it:p}=e;if(!n&&0===d.length)throw new Error("enum must have non-empty array");const h=d.length>=p.opts.loopEnum;let m;const g=()=>null!==m&&void 0!==m?m:m=(0,c.useFunc)(t,u.default);let v;if(h||n)v=t.let("valid"),e.block$data(v,(function(){t.assign(v,!1),t.forOf("v",f,(e=>t.if((0,l._)(o||(o=s(["","(",", ",")"])),g(),r,e),(()=>t.assign(v,!0).break()))))}));else{if(!Array.isArray(d))throw new Error("ajv implementation error");const e=t.const("vSchema",f);v=(0,l.or)(...d.map(((t,n)=>function(e,t){const n=d[t];return"object"===typeof n&&null!==n?(0,l._)(a||(a=s(["","(",", ","[","])"])),g(),r,e,t):(0,l._)(i||(i=s([""," === ",""])),r,n)}(e,n))))}e.pass(v)}};t.default=d},1335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(297),o=r(3642),a=r(4388),i=r(2465),s=r(5937),l=r(662),c=r(5741),u=r(2102),d=r(716),f=r(5218),p=[n.default,o.default,a.default,i.default,s.default,l.default,c.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t.default=p},5741:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8494),l={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message(e){let{keyword:t,schemaCode:r}=e;const o="maxItems"===t?"more":"fewer";return(0,s.str)(n||(n=i(["must NOT have "," than "," items"])),o,r)},params:e=>{let{schemaCode:t}=e;return(0,s._)(o||(o=i(["{limit: ","}"])),t)}},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?s.operators.GT:s.operators.LT;e.fail$data((0,s._)(a||(a=i(["",".length "," ",""])),r,o,n))}};t.default=l},4388:(e,t,r)=>{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const c=r(8494),u=r(1646),d=r(5784),f={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message(e){let{keyword:t,schemaCode:r}=e;const o="maxLength"===t?"more":"fewer";return(0,c.str)(n||(n=l(["must NOT have "," than "," characters"])),o,r)},params:e=>{let{schemaCode:t}=e;return(0,c._)(o||(o=l(["{limit: ","}"])),t)}},code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,f="maxLength"===t?c.operators.GT:c.operators.LT,p=!1===o.opts.unicode?(0,c._)(a||(a=l(["",".length"])),r):(0,c._)(i||(i=l(["","(",")"])),(0,u.useFunc)(e.gen,d.default),r);e.fail$data((0,c._)(s||(s=l([""," "," ",""])),p,f,n))}};t.default=f},297:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8494),l=s.operators,c={maximum:{okStr:"<=",ok:l.LTE,fail:l.GT},minimum:{okStr:">=",ok:l.GTE,fail:l.LT},exclusiveMaximum:{okStr:"<",ok:l.LT,fail:l.GTE},exclusiveMinimum:{okStr:">",ok:l.GT,fail:l.LTE}},u={message:e=>{let{keyword:t,schemaCode:r}=e;return(0,s.str)(n||(n=i(["must be "," ",""])),c[t].okStr,r)},params:e=>{let{keyword:t,schemaCode:r}=e;return(0,s._)(o||(o=i(["{comparison: ",", limit: ","}"])),c[t].okStr,r)}},d={keyword:Object.keys(c),type:"number",schemaType:"number",$data:!0,error:u,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,s._)(a||(a=i([""," "," "," || isNaN(",")"])),r,c[t].fail,n,r))}};t.default=d},5937:(e,t,r)=>{"use strict";var n,o,a,i=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const s=r(8494),l={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message(e){let{keyword:t,schemaCode:r}=e;const o="maxProperties"===t?"more":"fewer";return(0,s.str)(n||(n=i(["must NOT have "," than "," properties"])),o,r)},params:e=>{let{schemaCode:t}=e;return(0,s._)(o||(o=i(["{limit: ","}"])),t)}},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?s.operators.GT:s.operators.LT;e.fail$data((0,s._)(a||(a=i(["Object.keys(",").length "," ",""])),r,o,n))}};t.default=l},3642:(e,t,r)=>{"use strict";var n,o,a,i,s,l=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const c=r(8494),u={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:e=>{let{schemaCode:t}=e;return(0,c.str)(n||(n=l(["must be multiple of ",""])),t)},params:e=>{let{schemaCode:t}=e;return(0,c._)(o||(o=l(["{multipleOf: ","}"])),t)}},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,u=o.opts.multipleOfPrecision,d=t.let("res"),f=u?(0,c._)(a||(a=l(["Math.abs(Math.round(",") - ",") > 1e-",""])),d,d,u):(0,c._)(i||(i=l([""," !== parseInt(",")"])),d,d);e.fail$data((0,c._)(s||(s=l(["("," === 0 || ("," = ","/",", ","))"])),n,d,r,n,f))}};t.default=u},2465:(e,t,r)=>{"use strict";var n,o,a,i,s=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const l=r(8518),c=r(8494),u={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:e=>{let{schemaCode:t}=e;return(0,c.str)(n||(n=s(['must match pattern "','"'])),t)},params:e=>{let{schemaCode:t}=e;return(0,c._)(o||(o=s(["{pattern: ","}"])),t)}},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:u}=e,d=u.opts.unicodeRegExp?"u":"",f=r?(0,c._)(a||(a=s(["(new RegExp(",", ","))"])),o,d):(0,l.usePattern)(e,n);e.fail$data((0,c._)(i||(i=s(["!",".test(",")"])),f,t))}};t.default=u},662:(e,t,r)=>{"use strict";var n,o,a=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const i=r(8518),s=r(8494),l=r(1646),c={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:e=>{let{params:{missingProperty:t}}=e;return(0,s.str)(n||(n=a(["must have required property '","'"])),t)},params:e=>{let{params:{missingProperty:t}}=e;return(0,s._)(o||(o=a(["{missingProperty: ","}"])),t)}},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:c}=e,{opts:u}=c;if(!a&&0===r.length)return;const d=r.length>=u.loopRequired;if(c.allErrors?function(){if(d||a)e.block$data(s.nil,f);else for(const t of r)(0,i.checkReportMissingProp)(e,t)}():function(){const l=t.let("missing");if(d||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,i.propertyInData)(t,o,r,u.ownProperties)),t.if((0,s.not)(a),(()=>{e.error(),t.break()}))}),s.nil)}(l,r))),e.ok(r)}else t.if((0,i.checkMissingProp)(e,r,l)),(0,i.reportMissingProp)(e,l),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null===t||void 0===t?void 0:t[e])&&!n.has(e)){const t=c.schemaEnv.baseId+c.errSchemaPath,r='required property "'.concat(e,'" is not defined at "').concat(t,'" (strictRequired)');(0,l.checkStrictMode)(c,r,c.opts.strictRequired)}}function f(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,i.noPropertyInData)(t,o,r,u.ownProperties),(()=>e.error()))}))}}};t.default=c},2102:(e,t,r)=>{"use strict";var n,o,a,i,s,l,c,u,d,f,p,h,m,g,v,y,b,w=r(166).default;Object.defineProperty(t,"__esModule",{value:!0});const x=r(7839),S=r(8494),A=r(1646),k=r(4281),C={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:e=>{let{params:{i:t,j:r}}=e;return(0,S.str)(n||(n=w(["must NOT have duplicate items (items ## "," and "," are identical)"])),r,t)},params:e=>{let{params:{i:t,j:r}}=e;return(0,S._)(o||(o=w(["{i: ",", j: ","}"])),t,r)}},code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:C,schemaCode:E,it:_}=e;if(!n&&!o)return;const P=t.let("valid"),j=C.items?(0,x.getSchemaTypes)(C.items):[];function R(n,o){const a=t.name("item"),i=(0,x.checkDataTypes)(j,a,_.opts.strictNumbers,x.DataType.Wrong),s=t.const("indices",(0,S._)(l||(l=w(["{}"]))));t.for((0,S._)(c||(c=w([";","--;"])),n),(()=>{t.let(a,(0,S._)(u||(u=w(["","[","]"])),r,n)),t.if(i,(0,S._)(d||(d=w(["continue"])))),j.length>1&&t.if((0,S._)(f||(f=w(["typeof ",' == "string"'])),a),(0,S._)(p||(p=w(["",' += "_"'])),a)),t.if((0,S._)(h||(h=w(["typeof ","[",'] == "number"'])),s,a),(()=>{t.assign(o,(0,S._)(m||(m=w(["","[","]"])),s,a)),e.error(),t.assign(P,!1).break()})).code((0,S._)(g||(g=w(["","[","] = ",""])),s,a,n))}))}function O(n,o){const a=(0,A.useFunc)(t,k.default),i=t.name("outer");t.label(i).for((0,S._)(v||(v=w([";","--;"])),n),(()=>t.for((0,S._)(y||(y=w([""," = ","; ","--;"])),o,n,o),(()=>t.if((0,S._)(b||(b=w(["","(","[","], ","[","])"])),a,r,n,r,o),(()=>{e.error(),t.assign(P,!1).break(i)}))))))}e.block$data(P,(function(){const n=t.let("i",(0,S._)(i||(i=w(["",".length"])),r)),o=t.let("j");e.setParams({i:n,j:o}),t.assign(P,!0),t.if((0,S._)(s||(s=w([""," > 1"])),n),(()=>(j.length>0&&!j.some((e=>"object"===e||"array"===e))?R:O)(n,o)))}),(0,S._)(a||(a=w([""," === false"])),E)),e.ok(P)}};t.default=C},9569:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,o,a,i,s,l,c,u,d){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var f in n(a,i,s,l,c,u,d),a){var p=a[f];if(Array.isArray(p)){if(f in t.arrayKeywords)for(var h=0;h{"use strict";var n=r(6596),o=r(7151),a=r(4431),i=Math.pow(2,31)-1;function s(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2===0&&t%2===0;)e/=2,t/=2,n*=2;for(;e%2===0;)e/=2;for(;t;){for(;t%2===0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function l(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;0===(1&e)&&0===(1&t);)e>>>=1,t>>>=1,n++;for(;0===(1&e);)e>>>=1;for(;t;){for(;0===(1&t);)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<1){if(r=e[0],t=e[1],!a(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((c=r.length)<2)return null;if(t){for(u=new Array(c),f=0;f{"use strict";var n=r(6270),o=r(6596),a=r(7151),i=r(4431);e.exports=function(){var e,t,r,s,l,c,u,d=arguments.length;for(e=new Array(d),u=0;u1){if(r=e[0],t=e[1],!i(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((s=r.length)<2)return null;if(t){for(l=new Array(s),u=0;u{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!==o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!==o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}},219:(e,t,r)=>{"use strict";var n=r(3763),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var s=l(t),m=l(r),g=0;g{"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function S(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||x(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===s||e===i||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},3763:(e,t,r)=>{"use strict";e.exports=r(4983)},7841:(e,t,r)=>{var n=r(9853),o=r(7424),a=r(9376),i=r(312),s=r(1163),l=r(2636),c=r(2322),u=r(6361),d=e=>Array.isArray(e)?e:[e],f=e=>void 0===e,p=e=>c(e)||Array.isArray(e)?Object.keys(e):[],h=(e,t)=>e.hasOwnProperty(t),m=e=>o(a(e)),g=e=>f(e)||Array.isArray(e)&&0===e.length,v=(e,t,r,n)=>t&&h(t,r)&&e&&h(e,r)&&n(e[r],t[r]),y=(e,t)=>f(e)&&0===t||f(t)&&0===e||n(e,t),b=e=>f(e)||n(e,{})||!0===e,w=e=>f(e)||n(e,{}),x=e=>f(e)||c(e)||!0===e||!1===e;function S(e,t){return!(!g(e)||!g(t))||n(m(e),m(t))}function A(e,t,r,o){var i=a(p(e).concat(p(t)));return!(!w(e)||!w(t))||(!w(e)||!p(t).length)&&((!w(t)||!p(e).length)&&i.every((function(r){var a=e[r],i=t[r];return Array.isArray(a)&&Array.isArray(i)?n(m(e),m(t)):!(Array.isArray(a)&&!Array.isArray(i))&&(!(Array.isArray(i)&&!Array.isArray(a))&&v(e,t,r,o))})))}function k(e,t,r,n){var o=i(e,n),a=i(t,n);return l(o,a,n).length===Math.max(o.length,a.length)}var C={title:n,uniqueItems:(e,t)=>f(e)&&!1===t||f(t)&&!1===e||n(e,t),minLength:y,minItems:y,minProperties:y,required:S,enum:S,type:function(e,t){return e=d(e),t=d(t),n(m(e),m(t))},items:function(e,t,r,o){return c(e)&&c(t)?o(e,t):Array.isArray(e)&&Array.isArray(t)?A(e,t,0,o):n(e,t)},anyOf:k,allOf:k,oneOf:k,properties:A,patternProperties:A,dependencies:A},E=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],_=["additionalProperties","additionalItems","contains","propertyNames","not"];e.exports=function e(t,r,o){if(o=s(o,{ignore:[]}),b(t)&&b(r))return!0;if(!x(t)||!x(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(u(t)&&u(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(f(t)&&!f(r)||!f(t)&&f(r))return!1;var i=a(Object.keys(t).concat(Object.keys(r)));if(o.ignore.length&&(i=i.filter((e=>-1===o.ignore.indexOf(e)))),!i.length)return!0;function l(t,r){return e(t,r,o)}return i.every((function(a){var i=t[a],s=r[a];if(-1!==_.indexOf(a))return e(i,s,o);var c=C[a];if(c||(c=n),n(i,s))return!0;if(-1===E.indexOf(a)&&(!h(t,a)&&h(r,a)||h(t,a)&&!h(r,a)))return i===s;var d=c(i,s,a,l);if(!u(d))throw new Error("Comparer must return true or false");return d}))}},6988:(e,t,r)=>{const n=r(819),o=r(3517),a=r(2322),i=r(9376),s=r(312),l=r(6757);const c=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u=e=>a(e)||Array.isArray(e)?Object.keys(e):[],d=e=>!u(e).length&&!1!==e&&!0!==e;e.exports={allUniqueKeys:e=>i(o(e.map(u))),deleteUndefinedProps:function(e){for(const t in e)c(e,t)&&d(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:c,isEmptySchema:d,isSchema:e=>a(e)||!0===e||!1===e,keys:u,notUndefined:e=>void 0!==e,uniqWith:s,withoutArr:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o{const n=r(7841),o=r(5491),{allUniqueKeys:a,deleteUndefinedProps:i,has:s,isSchema:l,notUndefined:c,uniqWith:u}=r(6988);function d(e,t,r){return a(r).reduce((function(r,o){const a=function(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const r=e.items[t];if(l(r))return r;if(s(e,"additionalItems"))return e.additionalItems}}}))}(e,o),i=u(a.filter(c),n);return r[o]=t(i,o),r}),[])}e.exports={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map((e=>e.items)),a=n.filter(c),s={};let u;var f;return a.every(l)?s.items=r.items(n):s.items=d(e,r.items,n),a.every(Array.isArray)?u=e.map((e=>e.additionalItems)):a.some(Array.isArray)&&(u=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),u&&(s.additionalItems=r.additionalItems(u)),!1===s.additionalItems&&Array.isArray(s.items)&&(f=s.items,o(f,(function(e,t){!1===e&&f.splice(t,1)}))),i(s)}}},4503:(e,t,r)=>{const n=r(7841),o=r(5491),{allUniqueKeys:a,deleteUndefinedProps:i,getValues:s,keys:l,notUndefined:c,uniqWith:u,withoutArr:d}=r(6988);function f(e,t){return a(e).reduce((function(r,o){const a=s(e,o),i=u(a.filter(c),n);return r[o]=t(i,o),r}),{})}e.exports={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),o=l(t.properties),a=l(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=l(e.properties),i=n.filter((e=>a.some((t=>t.test(e)))));d(n,o,i).forEach((function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){const r=e.filter((e=>e!==t)),n=l(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){const t=l(e.patternProperties);d(t,n).forEach((t=>delete e.patternProperties[t]))}))})));const a={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:f(e.map((e=>e.patternProperties)),r.patternProperties),properties:f(e.map((e=>e.properties)),r.properties)};var s;return!1===a.additionalProperties&&o(s=a.properties,(function(e,t){!1===e&&delete s[t]})),i(a)}}},2093:(e,t,r)=>{const n=r(6434),o=r(7841),a=r(3192),i=r(7797),s=r(819),l=r(3517),c=r(1460),u=r(2636),d=r(9853),f=r(2322),p=r(3535),h=r(7424),m=r(9376),g=r(312),v=r(4503),y=r(6768),b=(e,t)=>-1!==e.indexOf(t),w=e=>f(e)||!0===e||!1===e,x=e=>!1===e,S=e=>!0===e,A=(e,t,r)=>r(e),k=e=>h(m(l(e))),C=e=>void 0!==e,E=e=>m(l(e.map(N))),_=e=>e[0],P=e=>Math.max.apply(Math,e),j=e=>Math.min.apply(Math,e);function R(e){let{allOf:t=[],...r}=e;return r=f(e)?r:e,[r,...t.map(R)]}function O(e,t){return e.map((e=>e&&e[t]))}function N(e){return f(e)||Array.isArray(e)?Object.keys(e):[]}function T(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?T(n,s(t.map((e=>r.map((t=>[t].concat(e))))))):T(n,r.map((e=>e)))}function I(e,t){let r;try{r=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(n){r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function M(e,t,r,n,a,i){if(e.length){const s=a.complexResolvers[t];if(!s||!s.resolver)throw new Error("No resolver found for "+t);const l=r.map((t=>e.reduce(((e,r)=>(void 0!==t[r]&&(e[r]=t[r]),e)),{}))),c=g(l,o),u=s.keywords.reduce(((e,t)=>({...e,[t]:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n(e,null,i.concat(t,r))}})),{}),d=s.resolver(c,i.concat(t),u,a);return f(d)||I(c,i.concat(t)),d}}function F(e){return{required:e}}const D=["properties","patternProperties","definitions","dependencies"],z=["anyOf","oneOf"],L=["additionalProperties","additionalItems","contains","propertyNames","not","items"],B={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=c.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return m(r)}},dependencies:(e,t,r)=>E(e).reduce((function(t,n){const a=O(e,n);let i=g(a.filter(C),d);const s=i.filter(Array.isArray);if(s.length){if(s.length===i.length)t[n]=k(i);else{const e=i.filter(w),o=s.map(F);t[n]=r(e.concat(o),n)}return t}return i=g(i,o),t[n]=r(i,n),t}),{}),oneOf(e,t,r){const a=function(e,t){return e.map((function(e,r){try{return t(e,r)}catch(n){return}})).filter(C)}(T(n(e)),r),i=g(a,o);if(i.length)return i},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let t=e.slice(0),r=1;for(;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return a(t)/r},enum(e){const t=u.apply(null,e.concat(d));if(t.length)return h(t)}};B.$id=_,B.$ref=_,B.$schema=_,B.additionalItems=A,B.additionalProperties=A,B.anyOf=B.oneOf,B.contains=A,B.default=_,B.definitions=B.dependencies,B.description=_,B.examples=e=>g(s(e),d),B.exclusiveMaximum=j,B.exclusiveMinimum=P,B.items=y,B.maximum=j,B.maxItems=j,B.maxLength=j,B.maxProperties=j,B.minimum=P,B.minItems=P,B.minLength=P,B.minProperties=P,B.properties=v,B.propertyNames=A,B.required=e=>k(e),B.title=_,B.uniqueItems=e=>e.some(S);const $={properties:v,items:y};function W(e,t,r){r=r||[],t=i(t,{ignoreAdditionalProperties:!1,resolvers:B,complexResolvers:$,deep:!0});const a=Object.entries(t.complexResolvers);const s=function e(i,s,l){i=n(i.filter(C)),l=l||[];const c=f(s)?s:{};if(!i.length)return;if(i.some(x))return!1;if(i.every(S))return!0;i=i.filter(f);const u=E(i);if(t.deep&&b(u,"allOf"))return W({allOf:i},t,r);const d=a.map((e=>{let[t,r]=e;return u.filter((e=>r.keywords.includes(e)))}));return d.forEach((e=>p(u,e))),u.forEach((function(r){const n=O(i,r),a=g(n.filter(C),function(e){return function(t,r){return o({[e]:t},{[e]:r})}}(r));if(1===a.length&&b(z,r))c[r]=a[0].map((t=>e([t],t)));else if(1!==a.length||b(D,r)||b(L,r)){const n=t.resolvers[r]||t.resolvers.defaultResolver;if(!n)throw new Error("No resolver found for key "+r+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const o=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e(t,null,l.concat(r,n))};c[r]=n(a,l.concat(r),o,t),void 0===c[r]?I(a,l.concat(r)):void 0===c[r]&&delete c[r]}else c[r]=a[0]})),a.reduce(((r,n,o)=>{let[a,s]=n;return{...r,...M(d[o],a,i,e,t,l)}}),c)}(l(R(e)));return s}W.options={resolvers:B},e.exports=W},5492:(e,t)=>{var r=/~/,n=/~[01]/g;function o(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function a(e){return r.test(e)?e.replace(n,o):e}function i(e){if("string"===typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!==typeof t&&"number"!==typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function s(e,t){if("object"!==typeof e)throw new Error("Invalid input object.");var r=(t=i(t)).length;if(1===r)return e;for(var n=1;ni,"undefined"===typeof e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==t[i]&&t[i]<1/0||"-"===t[i]?e[n]=[]:e[n]={})),!o)break;e=e[n]}var l=e[n];return void 0===r?delete e[n]:e[n]=r,l}(e,t,r)}t.get=s,t.set=l,t.compile=function(e){var t=i(e);return{get:function(e){return s(e,t)},set:function(e,r){return l(e,t,r)}}}},7685:(e,t,r)=>{var n=r(7937)(r(6552),"DataView");e.exports=n},8724:(e,t,r)=>{var n=r(7615),o=r(5051),a=r(2154),i=r(8734),s=r(2662);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7563),o=r(9935),a=r(4190),i=r(1946),s=r(1714);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7937)(r(6552),"Map");e.exports=n},4816:(e,t,r)=>{var n=r(7251),o=r(7159),a=r(438),i=r(9394),s=r(6874);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7937)(r(6552),"Promise");e.exports=n},2070:(e,t,r)=>{var n=r(7937)(r(6552),"Set");e.exports=n},8902:(e,t,r)=>{var n=r(4816),o=r(6179),a=r(6704);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(7160),o=r(4545),a=r(793),i=r(7760),s=r(3892),l=r(6788);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},9812:(e,t,r)=>{var n=r(6552).Symbol;e.exports=n},2929:(e,t,r)=>{var n=r(6552).Uint8Array;e.exports=n},6600:(e,t,r)=>{var n=r(7937)(r(6552),"WeakMap");e.exports=n},1170:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},726:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r