builder.io 1.17.2 → 1.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.cjs +12 -12
- package/cli/index.cjs.map +3 -3
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +3 -3
- package/server/index.mjs +3 -3
- package/types/tsconfig.tsbuildinfo +1 -1
package/cli/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Pee=Object.create;var Bh=Object.defineProperty;var Aee=Object.getOwnPropertyDescriptor;var _ee=Object.getOwnPropertyNames;var Fee=Object.getPrototypeOf,kee=Object.prototype.hasOwnProperty;var N=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mh=(t,e)=>{for(var r in e)Bh(t,r,{get:e[r],enumerable:!0})},BF=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _ee(e))!kee.call(t,i)&&i!==r&&Bh(t,i,{get:()=>e[i],enumerable:!(n=Aee(e,i))||n.enumerable});return t};var Y=(t,e,r)=>(r=t!=null?Pee(Fee(t)):{},BF(e||!t||!t.__esModule?Bh(r,"default",{value:t,enumerable:!0}):r,t)),Iee=t=>BF(Bh({},"__esModule",{value:!0}),t);var h=N(()=>{{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"
|
|
1
|
+
var Pee=Object.create;var Bh=Object.defineProperty;var Aee=Object.getOwnPropertyDescriptor;var _ee=Object.getOwnPropertyNames;var Fee=Object.getPrototypeOf,kee=Object.prototype.hasOwnProperty;var N=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mh=(t,e)=>{for(var r in e)Bh(t,r,{get:e[r],enumerable:!0})},BF=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _ee(e))!kee.call(t,i)&&i!==r&&Bh(t,i,{get:()=>e[i],enumerable:!(n=Aee(e,i))||n.enumerable});return t};var Y=(t,e,r)=>(r=t!=null?Pee(Fee(t)):{},BF(e||!t||!t.__esModule?Bh(r,"default",{value:t,enumerable:!0}):r,t)),Iee=t=>BF(Bh({},"__esModule",{value:!0}),t);var h=N(()=>{{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"42c0e2b15848050b00520c02987d36d5adc3c4aa"}}});var LF=S((WRe,MF)=>{h();function d0(t){return t==null?[]:Array.isArray(t)?t:[t]}function Nee(t,e,r,n){var i,s=t[e],o=~n.string.indexOf(e)?r==null||r===!0?"":String(r):typeof r=="boolean"?r:~n.boolean.indexOf(e)?r==="false"?!1:r==="true"||(t._.push((i=+r,i*0===0?i:r)),!!r):(i=+r,i*0===0?i:r);t[e]=s==null?o:Array.isArray(s)?s.concat(o):[s,o]}MF.exports=function(t,e){t=t||[],e=e||{};var r,n,i,s,o,a={_:[]},c=0,u=0,l=0,p=t.length;let d=e.alias!==void 0,f=e.unknown!==void 0,m=e.default!==void 0;if(e.alias=e.alias||{},e.string=d0(e.string),e.boolean=d0(e.boolean),d)for(r in e.alias)for(n=e.alias[r]=d0(e.alias[r]),c=0;c<n.length;c++)(e.alias[n[c]]=n.concat(r)).splice(c,1);for(c=e.boolean.length;c-- >0;)for(n=e.alias[e.boolean[c]]||[],u=n.length;u-- >0;)e.boolean.push(n[u]);for(c=e.string.length;c-- >0;)for(n=e.alias[e.string[c]]||[],u=n.length;u-- >0;)e.string.push(n[u]);if(m){for(r in e.default)if(s=typeof e.default[r],n=e.alias[r]=e.alias[r]||[],e[s]!==void 0)for(e[s].push(r),c=0;c<n.length;c++)e[s].push(n[c])}let g=f?Object.keys(e.alias):[];for(c=0;c<p;c++){if(i=t[c],i==="--"){a._=a._.concat(t.slice(++c));break}for(u=0;u<i.length&&i.charCodeAt(u)===45;u++);if(u===0)a._.push(i);else if(i.substring(u,u+3)==="no-"){if(s=i.substring(u+3),f&&!~g.indexOf(s))return e.unknown(i);a[s]=!1}else{for(l=u+1;l<i.length&&i.charCodeAt(l)!==61;l++);for(s=i.substring(u,l),o=i.substring(++l)||c+1===p||(""+t[c+1]).charCodeAt(0)===45||t[++c],n=u===2?[s]:s,l=0;l<n.length;l++){if(s=n[l],f&&!~g.indexOf(s))return e.unknown("-".repeat(u)+s);Nee(a,s,l+1<n.length||o,e)}}}if(m)for(r in e.default)a[r]===void 0&&(a[r]=e.default[r]);if(d)for(r in a)for(n=e.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a}});function Ree(t){let e=[],r=fc.default.dirname(t);for(;r!==fc.default.dirname(r);){let n=fc.default.join(r,".prettierignore");m0.default.existsSync(n)&&e.push(n);let i=fc.default.join(r,".git");if(m0.default.existsSync(i))break;r=fc.default.dirname(r)}return e}function Oee(t){if(!t)return f0.default;try{let r=(0,$F.createRequire)(t)("prettier");if(!r)throw new Error("Prettier not found");return r}catch{return f0.default}}async function ui(t,e,r,n){try{let i=fc.default.resolve(t,n??"file.tsx"),s=Oee(i);if(n){let a=Ree(i);if((await s.getFileInfo(i,{ignorePath:a.length>0?a:void 0})).ignored)return e}let o=await s.resolveConfig(i);return o?await s.format(e,{...o,filepath:n,parser:r}):await s.format(e,{filepath:n,parser:r})}catch{return e}}var f0,$F,fc,m0,Td=N(()=>{"use strict";h();f0=Y(require("prettier"),1),$F=require("node:module"),fc=Y(require("node:path"),1),m0=Y(require("node:fs"),1)});var h0,rl,Lh,$h,jF,mc,g0,y0,hc,UF,nl=N(()=>{"use strict";h();h0="preview-url",rl="framework",Lh="platform",$h="node",jF="/~builder-connect",mc="/~builder-connected",g0="/~builder-dev-tools",y0="/~builder-dev-tools.js",hc="/~builder-dev-tools-close",UF="/mappings"});var jh=S((eOe,qF)=>{"use strict";h();var v0={to(t,e){return e?`\x1B[${e+1};${t+1}H`:`\x1B[${t+1}G`},move(t,e){let r="";return t<0?r+=`\x1B[${-t}D`:t>0&&(r+=`\x1B[${t}C`),e<0?r+=`\x1B[${-e}A`:e>0&&(r+=`\x1B[${e}B`),r},up:(t=1)=>`\x1B[${t}A`,down:(t=1)=>`\x1B[${t}B`,forward:(t=1)=>`\x1B[${t}C`,backward:(t=1)=>`\x1B[${t}D`,nextLine:(t=1)=>"\x1B[E".repeat(t),prevLine:(t=1)=>"\x1B[F".repeat(t),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Bee={up:(t=1)=>"\x1B[S".repeat(t),down:(t=1)=>"\x1B[T".repeat(t)},Mee={screen:"\x1B[2J",up:(t=1)=>"\x1B[1J".repeat(t),down:(t=1)=>"\x1B[J".repeat(t),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(t){let e="";for(let r=0;r<t;r++)e+=this.line+(r<t-1?v0.up():"");return t&&(e+=v0.left),e}};qF.exports={cursor:v0,scroll:Bee,erase:Mee,beep:"\x07"}});var mr=S((rOe,b0)=>{h();var qh=process||{},zF=qh.argv||[],Uh=qh.env||{},Lee=!(Uh.NO_COLOR||zF.includes("--no-color"))&&(!!Uh.FORCE_COLOR||zF.includes("--color")||qh.platform==="win32"||(qh.stdout||{}).isTTY&&Uh.TERM!=="dumb"||!!Uh.CI),$ee=(t,e,r=t)=>n=>{let i=""+n,s=i.indexOf(e,t.length);return~s?t+jee(i,e,r,s)+e:t+i+e},jee=(t,e,r,n)=>{let i="",s=0;do i+=t.substring(s,n)+r,s=n+e.length,n=t.indexOf(e,s);while(~n);return i+t.substring(s)},GF=(t=Lee)=>{let e=t?$ee:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};b0.exports=GF();b0.exports.createColors=GF});function Uee({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function tk(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(qee,"")}function rk(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Pd(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=tk(t),t.length===0))return 0;t=t.replace(Vee()," ");let r=e.ambiguousIsNarrow?1:2,n=0;for(let i of t){let s=i.codePointAt(0);if(!(s<=31||s>=127&&s<=159||s>=768&&s<=879))switch(Gee.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}function Jee(){let t=new Map;for(let[e,r]of Object.entries(sr)){for(let[n,i]of Object.entries(r))sr[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=sr[n],t.set(i[0],i[1]);Object.defineProperty(sr,e,{value:r,enumerable:!1})}return Object.defineProperty(sr,"codes",{value:t,enumerable:!1}),sr.color.close="\x1B[39m",sr.bgColor.close="\x1B[49m",sr.color.ansi=HF(),sr.color.ansi256=VF(),sr.color.ansi16m=KF(),sr.bgColor.ansi=HF(x0),sr.bgColor.ansi256=VF(x0),sr.bgColor.ansi16m=KF(x0),Object.defineProperties(sr,{rgbToAnsi256:{value:(e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>sr.rgbToAnsi256(...sr.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>sr.ansi256ToAnsi(sr.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>sr.ansi256ToAnsi(sr.hexToAnsi256(e)),enumerable:!1}}),sr}function YF(t,e,r){return String(t).normalize().replace(/\r\n/g,`
|
|
2
2
|
`).split(`
|
|
3
3
|
`).map(n=>tte(n,e,r)).join(`
|
|
4
4
|
`)}function T0(t,e){if(typeof t=="string")return Gh.aliases.get(t)===e;for(let r of t)if(r!==void 0&&T0(r,e))return!0;return!1}function nte(t,e){if(t===e)return;let r=t.split(`
|
|
@@ -65,7 +65,7 @@ ${uk}${n.trimStart()}`),r=3+(0,Jh.stripVTControlCharacters)(n.trimStart()).lengt
|
|
|
65
65
|
`),m(),i()};return{start:E,stop:D,message:(x="")=>{a=y(x??a)}}}});function ht(t,e=""){return t.ts.createSourceFile("module.tsx",typeof e=="string"?e:"",t.ts.ScriptTarget.Latest,void 0)}function eg(t,e=""){let r=ht(t,e?.trim());if(r.statements.length===0)throw new Error(`No statements found in code: ${e}`);return r.statements[0]}function $r(t,e,r){if(e){let n=t.ts.createPrinter({newLine:t.ts.NewLineKind.LineFeed,removeComments:r});return t.ts.isSourceFile(e)?n.printFile(e).trim()+`
|
|
66
66
|
`:n.printNode(t.ts.EmitHint.Unspecified,e,t.ts.createSourceFile("module.tsx","",t.ts.ScriptTarget.Latest)).trim()+`
|
|
67
67
|
`}return""}var dr=N(()=>{"use strict";h()});var yk=S((EOe,gk)=>{"use strict";h();gk.exports=function(){if(process.env.npm_config_user_agent)return yte(process.env.npm_config_user_agent)};function yte(t){let e=t.split(" ")[0],r=e.lastIndexOf("/"),n=e.substring(0,r);return{name:n==="npminstall"?"cnpm":n,version:e.substring(r+1)}}});function cn(t){return t.endsWith(".mapper.tsx")||t.endsWith(".mapper.jsx")||t.endsWith(".mapper.ts")||t.endsWith(".mapper.js")||t.endsWith(".mapper.mjs")}function gt(t,e,r){e=us(e),r=us(r),e=t.dirname(e);let n=t.basename(r,t.extname(r));r=t.dirname(r);let i;return n==="index"?i=t.relative(e,r):i=t.relative(e,t.join(r,n)),i=us(t.normalize(i)),i.startsWith(".")||(i="./"+i),i}function us(t){return t.startsWith("\\\\?\\")?t:t.replace(/\\/g,"/")}function gc(t,e){let r=t.extname(e),n=t.basename(e,r).split(/[\/\\]/),i=n[n.length-1];return vk(i==="index"?t.basename(t.dirname(e)):i)}function vk(t){return Vt(t).replace(/ /g,"")}function Fi(t,e){let r=t.extname(e),n=us(t.basename(e,r)).split("/").pop();return Vt(n==="index"?t.basename(t.dirname(e)):n)}function Kt(t,e){let r=us(t.relative(t.getAppRootDir(),e));r=r.split("/").filter(i=>i!=="."&&i!==".."&&i!=="").join("/"),r.endsWith(".tsx")||r.endsWith(".jsx")?r=r.slice(0,-4):(r.endsWith(".ts")||r.endsWith(".js"))&&(r=r.slice(0,-3));let n=t.getFrameworks();return r.startsWith("src/")&&(r=r.slice(4)),n.some(i=>i.name.includes("next"))?"@/"+r:"~/"+r}function wt(t,e){let r=e,n=[];for(let i=0;i<2;i++){let s=t.basename(r);if(!s||s==="components")break;n.unshift(s),r=t.dirname(r)}return n.join("/")}function Vt(t){for(t=t.replace(/([A-Z])/g," $1").replace(/\./g," ").replace(/_/g," ").replace(/-/g," ").replace(/\s/g," ").trim();t.includes(" ");)t=t.replace(/ /g," ");return t.split(" ").map(e=>e.length>2?e[0].toUpperCase()+e.slice(1):e).join("").trim()}function zn(t){return t.sort((e,r)=>e.name.toLocaleLowerCase().localeCompare(r.name.toLocaleLowerCase()))}async function qt(t,e,r,n){if(typeof r!="string"||r==="")throw new Error(`getComponentId(), exportName must be a non-empty string, received: ${r}, ${e}`);return n&&(e=n),e=t.normalize(e),(await t.hash(e+"#"+r)).substring(0,8)}async function xk(t){return(await t.hash(t.getAppRootDir())).substring(0,8)}function Ad(t){return typeof t=="number"}function ol(t){return typeof t=="boolean"}function Cn(t){return typeof t=="string"}function al(t){return typeof t=="string"?/^[A-Z][A-Za-z0-9]*$/.test(t):!1}function pi(t){return JSON.parse(JSON.stringify(t))}function tg(t,e,r){for(let n of e)if(t.dirname(r).includes(n))return!0;return!1}function Dk(){try{let t=(0,bk.default)();if(t?.name)return t.name}catch{}return"npm"}function vte(){return process.platform.startsWith("win")}function Ar(){return vte()?'"@builder.io/dev-tools"':"builder.io"}function I0(t){return t.replace(/[^a-zA-Z0-9-_]/g,"_")}var bk,ut=N(()=>{"use strict";h();bk=Y(yk(),1)});function wn(t){let e=t.join(t.getAppRootDir(),"tsconfig.json");return t.exists(e)}async function Gn(t,e){async function r(i,s){if(s>10)return;let o=await t.readdir(i);for(let a of o){if(bte.includes(a))continue;let c=t.join(i,a),u=await t.stat(c);if(u){if(u.isFile()&&a.startsWith("builder-registry."))return c;if(u.isDirectory()){let l=await r(c,s+1);if(l)return l}}}}let n=await r(t.getAppRootDir(),0);if(!n){let s=`builder-registry.${await wn(t)?"ts":"js"}`;return t.join(e,s)}return n}async function ls(t,e){let r=t.resolve("/");for(let n=0;n<20;n++){let i=t.join(e,"package.json"),s=await t.readFile(i);if(s)return JSON.parse(s);if(e===r)break;e=t.dirname(e)}return null}async function Ek(t,e){for(let r=0;r<20;r++){let n=t.dirname(e),i=t.join(n,"node_modules");if(await t.exists(i))return i;if(e===t.getAppRootDir())break;e=t.dirname(e)}return t.join(t.getAppRootDir(),"node_modules")}async function _d(t,e,r){let n=await t.readdir(e);return n.includes(r)?t.join(e,r):(await Promise.all(n.map(async s=>{if(s.startsWith(".")||s==="node_modules")return;let o=t.join(e,s);if((await t.stat(o)).isDirectory()){let c=await _d(t,o,r);if(c)return c}}))).find(s=>typeof s=="string")}var bte,un=N(()=>{"use strict";h();bte=["node_modules","dist","build","public"]});async function Rr(t,e,r){if(!Array.isArray(e)||e.length===0)throw new Error(`createTsProgram() Invalid filePaths: ${e}`);let n=await Ek(t,e[0]),i=t.join(n,"typescript","lib"),s=new Map,o={fileExists:a=>{if(a=t.normalize(a),a.includes("node_modules")){let c=Fd.get(a);if(!c){try{t.statSync(a).isFile()?c={exists:!0,content:t.readFileSync(a)}:c={exists:!1}}catch{c={exists:!1}}Fd.set(a,c)}return c.exists}if(!s.has(a))if(t.existsSync(a)){let u=t.statSync(a);s.set(a,u.isFile())}else s.set(a,!1);return s.get(a)},getCanonicalFileName:a=>t.normalize(a),getCurrentDirectory:()=>t.cwd(),getDefaultLibFileName:()=>t.join(i,"lib.d.ts"),getDefaultLibLocation:()=>i,getNewLine:()=>`
|
|
68
|
-
`,getSourceFile:a=>{if(a=t.normalize(a),a.includes("node_modules")){let u=Fd.get(a);if(u)return ht(t,u.content)}let c;try{c=t.readFileSync(a)}catch{console.error(`Could not read: ${a}`),c==null}if(c==null){let u=t.basename(a),l=t.extname(u).toLowerCase();if(a.startsWith(i)&&l===".ts"&&(c=wk.get(u),c==null&&typeof self<"u"&&typeof fetch=="function"))throw new ng(u)}return a.includes("node_modules")&&(c?Fd.set(a,{exists:!0,content:c}):Fd.set(a,{exists:!1})),ht(t,c)},readFile:a=>{let c=t.readFileSync(a);return typeof c=="string"?c:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return xte(t,o,e,r)}catch(a){if(a instanceof ng){await Dte(t,a.libName);continue}throw t.Sentry?.captureException(a),new Error(`createTsProgram() Could not create program for: ${e[0]}`,{cause:a})}}function xte(t,e,r,n){let i={rootNames:[...r],host:e,options:{}},s=t.ts.findConfigFile(t.dirname(r[0]),o=>t.existsSync(o));if(s){let o=Ck.get(s);if(!o){let a=t.ts.readConfigFile(s,c=>{let u=t.readFileSync(c);return typeof u=="string"?u:void 0});a.error?t.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:a.error,tsConfigPath:s}}):(o=t.ts.parseJsonConfigFileContent(a.config,t.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(u,l)=>t.readdirSync(u),fileExists:u=>t.existsSync(u),readFile:u=>t.readFileSync(u)||void 0},t.dirname(s),void 0,s).options,Ck.set(s,o))}o&&(i.options=pi(o))}return i.options.noEmit=!0,i.options.isolatedModules=!1,i.options.strict=!1,i.options.jsx=t.ts.JsxEmit.Preserve,i.options.allowJs=!0,Object.assign(i.options,n),t.ts.createProgram(i)}async function cl(t,e,r){r||(r=await Rr(t,[e]));let n=r.getSourceFile(e);if(!n)throw new Error(`getTypeChecker() Could not find source file: ${e}`);return{typeChecker:r.getTypeChecker(),sourceFile:n}}async function Dte(t,e){let r=`https://cdn.jsdelivr.net/npm/typescript@${t.ts.version}/lib/${e}`;rg.has(e)||rg.set(e,fetch(r).then(n=>n.text()).then(n=>{wk.set(e,n)})),await rg.get(e),rg.delete(e)}async function Sk(t,e){let r=await t.readFile(e.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${e.filePath}`}],code:null,output:null}:N0(t,{code:r,filePath:e.filePath,compilerOptions:e.compilerOptions})}function N0(t,e){let r={diagnostics:[],code:e.code,output:null};try{let n=t.ts.transpileModule(e.code,{compilerOptions:e.compilerOptions,fileName:e.filePath??"module.tsx",reportDiagnostics:!0});n.diagnostics?.forEach(i=>{r.diagnostics.push({messageText:String(i.messageText)})}),r.output=n.outputText}catch(n){console.error("transpileModule",n),r.diagnostics.push({messageText:String(n)})}return r}var ng,wk,rg,Fd,Ck,ki=N(()=>{"use strict";h();dr();ut();un();ng=class{libName;constructor(e){this.libName=e}};wk=new Map,rg=new Map,Fd=new Map,Ck=new Map});var Ete,Xe,_r=N(()=>{"use strict";h();Ete="1.17.
|
|
68
|
+
`,getSourceFile:a=>{if(a=t.normalize(a),a.includes("node_modules")){let u=Fd.get(a);if(u)return ht(t,u.content)}let c;try{c=t.readFileSync(a)}catch{console.error(`Could not read: ${a}`),c==null}if(c==null){let u=t.basename(a),l=t.extname(u).toLowerCase();if(a.startsWith(i)&&l===".ts"&&(c=wk.get(u),c==null&&typeof self<"u"&&typeof fetch=="function"))throw new ng(u)}return a.includes("node_modules")&&(c?Fd.set(a,{exists:!0,content:c}):Fd.set(a,{exists:!1})),ht(t,c)},readFile:a=>{let c=t.readFileSync(a);return typeof c=="string"?c:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return xte(t,o,e,r)}catch(a){if(a instanceof ng){await Dte(t,a.libName);continue}throw t.Sentry?.captureException(a),new Error(`createTsProgram() Could not create program for: ${e[0]}`,{cause:a})}}function xte(t,e,r,n){let i={rootNames:[...r],host:e,options:{}},s=t.ts.findConfigFile(t.dirname(r[0]),o=>t.existsSync(o));if(s){let o=Ck.get(s);if(!o){let a=t.ts.readConfigFile(s,c=>{let u=t.readFileSync(c);return typeof u=="string"?u:void 0});a.error?t.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:a.error,tsConfigPath:s}}):(o=t.ts.parseJsonConfigFileContent(a.config,t.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(u,l)=>t.readdirSync(u),fileExists:u=>t.existsSync(u),readFile:u=>t.readFileSync(u)||void 0},t.dirname(s),void 0,s).options,Ck.set(s,o))}o&&(i.options=pi(o))}return i.options.noEmit=!0,i.options.isolatedModules=!1,i.options.strict=!1,i.options.jsx=t.ts.JsxEmit.Preserve,i.options.allowJs=!0,Object.assign(i.options,n),t.ts.createProgram(i)}async function cl(t,e,r){r||(r=await Rr(t,[e]));let n=r.getSourceFile(e);if(!n)throw new Error(`getTypeChecker() Could not find source file: ${e}`);return{typeChecker:r.getTypeChecker(),sourceFile:n}}async function Dte(t,e){let r=`https://cdn.jsdelivr.net/npm/typescript@${t.ts.version}/lib/${e}`;rg.has(e)||rg.set(e,fetch(r).then(n=>n.text()).then(n=>{wk.set(e,n)})),await rg.get(e),rg.delete(e)}async function Sk(t,e){let r=await t.readFile(e.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${e.filePath}`}],code:null,output:null}:N0(t,{code:r,filePath:e.filePath,compilerOptions:e.compilerOptions})}function N0(t,e){let r={diagnostics:[],code:e.code,output:null};try{let n=t.ts.transpileModule(e.code,{compilerOptions:e.compilerOptions,fileName:e.filePath??"module.tsx",reportDiagnostics:!0});n.diagnostics?.forEach(i=>{r.diagnostics.push({messageText:String(i.messageText)})}),r.output=n.outputText}catch(n){console.error("transpileModule",n),r.diagnostics.push({messageText:String(n)})}return r}var ng,wk,rg,Fd,Ck,ki=N(()=>{"use strict";h();dr();ut();un();ng=class{libName;constructor(e){this.libName=e}};wk=new Map,rg=new Map,Fd=new Map,Ck=new Map});var Ete,Xe,_r=N(()=>{"use strict";h();Ete="1.17.3",Xe=process.env.OVERRIDE_VERSION??Ete});async function yc(t){let e=[],r=await ls(t,t.getRepoRootDir());if(r){let n=await Pk(r,t);e.push(...n)}return e}async function Pk(t,e){let r=[];if(t&&typeof t=="object"){let n=new Set(Object.keys({...t.dependencies,...t.devDependencies}));for(let i of Cte)if(n.has(i)&&!r.some(s=>s.name===i)){let s={name:i};Tk.has(i)&&(s.version=await Tk.get(i)(e)),r.push(s)}}return r}function R0(t){let e=parseInt(t);return Number.isNaN(e)?void 0:e}var Tk,Cte,vc=N(()=>{"use strict";h();un();ut();Tk=new Map([["next",async t=>{if(!t.spawnSync)return;let e=Dk(),r=e==="npm"?"npx":e,{stdout:n}=t.spawnSync(r,["next","-v"],{encoding:"utf8"});if(!n)return;let i=n.match(/(Next.js v)([\d.]+)/g);if(!i)return;let s=i[0].split("Next.js v")[1],[o,a,c]=s.split(".");return{major:R0(o),minor:R0(a),patch:R0(c)}}]]),Cte=["@shopify/remix-oxygen","@shopify/hydrogen","@builder.io/qwik-city","@remix-run/react","@sveltejs/kit","astro","gatsby","next","nuxt","@builder.io/qwik","@angular/core","react","solid-js","svelte","vue"]});async function Ii(t){let e=Ak(t),r=await t.readFile(e);return typeof r=="string"?JSON.parse(r):{}}async function Ni(t,e){e=typeof e=="object"&&e!=null?e:{};let r=Ak(t);await t.writeFile(r,JSON.stringify(e??{},null,2))}function Ak(t){let e=t.getAppRootDir();return t.join(e,"node_modules",".builder","builder-cache.json")}var bc=N(()=>{"use strict";h()});async function Ms(t,e,r){let n={envKey:r,envValue:null,file:""};for(let i of e){let s=t.join(t.getAppRootDir(),i),o=await wte(t,s);if(o){let a=o[r];if(typeof a=="string"&&a.length>0&&a!=="YOUR_API_KEY")return n.envValue=a,n.file=s,n}}return n.file=t.join(t.getAppRootDir(),e[e.length-1]),n}async function wte(t,e){let r=await t.readFile(e);return typeof r=="string"?_k(r):null}function _k(t){let e={},r=t.replace(/\r\n?/gm,`
|
|
69
69
|
`),n;for(;(n=Ste.exec(r))!=null;){let i=n[1],s=n[2]||"";s=s.trim();let o=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),o==='"'&&(s=s.replace(/\\n/g,`
|
|
70
70
|
`),s=s.replace(/\\r/g,"\r")),e[i]=s}return e}async function Ls(t,e,r,n){let i="# https://www.builder.io/c/docs/using-your-api-key",s=await t.readFile(e);try{if(s)if(s.includes(r))if(s.includes(n))t.debug(`"${r}" with "${n}" already set in ${e}`);else return t.debug(`Replace "${r}" in ${e}`),s=s.replace(new RegExp(`${r}=.*`),`${r}=${n}`),await t.writeFile(e,s),"update";else return t.debug(`Append "${r}" to ${e}`),s+=`
|
|
71
71
|
|
|
@@ -1098,7 +1098,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),K=$,j=G),Z===void 0&&(
|
|
|
1098
1098
|
`:`
|
|
1099
1099
|
`)+r,i=n+1,n=t.indexOf(`
|
|
1100
1100
|
`,i)}while(n!==-1);return s+=t.slice(i),s}var UO=N(()=>{h()});function rf(t){return HO(t)}var qO,zO,eE,Al,tf,GO,_l,goe,Lg,HO,tE,yoe,voe,rE,$g,boe,Jje,Yje,VO=N(()=>{h();RO();LO();UO();({stdout:qO,stderr:zO}=MO),eE=Symbol("GENERATOR"),Al=Symbol("STYLER"),tf=Symbol("IS_EMPTY"),GO=["ansi","ansi","ansi256","ansi16m"],_l=Object.create(null),goe=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=qO?qO.level:0;t.level=e.level===void 0?r:e.level},Lg=class{constructor(e){return HO(e)}},HO=t=>{let e=(...r)=>r.join(" ");return goe(e,t),Object.setPrototypeOf(e,rf.prototype),e};Object.setPrototypeOf(rf.prototype,Function.prototype);for(let[t,e]of Object.entries(hs))_l[t]={get(){let r=$g(this,rE(e.open,e.close,this[Al]),this[tf]);return Object.defineProperty(this,t,{value:r}),r}};_l.visible={get(){let t=$g(this,this[Al],!0);return Object.defineProperty(this,"visible",{value:t}),t}};tE=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?hs[r].ansi16m(...n):e==="ansi256"?hs[r].ansi256(hs.rgbToAnsi256(...n)):hs[r].ansi(hs.rgbToAnsi(...n)):t==="hex"?tE("rgb",e,r,...hs.hexToRgb(...n)):hs[r][t](...n),yoe=["rgb","hex","ansi256"];for(let t of yoe){_l[t]={get(){let{level:r}=this;return function(...n){let i=rE(tE(t,GO[r],"color",...n),hs.color.close,this[Al]);return $g(this,i,this[tf])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);_l[e]={get(){let{level:r}=this;return function(...n){let i=rE(tE(t,GO[r],"bgColor",...n),hs.bgColor.close,this[Al]);return $g(this,i,this[tf])}}}}voe=Object.defineProperties(()=>{},{..._l,level:{enumerable:!0,get(){return this[eE].level},set(t){this[eE].level=t}}}),rE=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},$g=(t,e,r)=>{let n=(...i)=>boe(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,voe),n[eE]=t,n[Al]=e,n[tf]=r,n},boe=(t,e)=>{if(t.level<=0||!e)return t[tf]?"":e;let r=t[Al];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=$O(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
1101
|
-
`);return s!==-1&&(e=jO(e,i,n,s)),n+e+i};Object.defineProperties(rf.prototype,_l);Jje=rf(),Yje=rf({level:zO?zO.level:0})});function nf(t){let e=XD(t);return{highlight:r,highlightAuto:n,listLanguages:e.listLanguages,register:e.register,registerAlias:e.registerAlias,registered:e.registered};function r(i,s,o){let a=e.highlight(i,s),c=a.data;return{language:c.language,relevance:c.relevance,value:nE(o||KO,a)}}function n(i,s){let o,a;if(s&&("subset"in s||"sheet"in s)){let l=s;a={subset:l.subset},o=l.sheet}else o=s;let c=e.highlightAuto(i,a),u=c.data;return{language:u.language,relevance:u.relevance,value:nE(o||KO,c)}}}function nE(t,e){let r=new Set(e.type==="element"&&Array.isArray(e.properties.className)?e.properties.className.map(function(a){return String(a).replace(/^hljs-/,"")}):[]),n={},i,s="",o;for(o in t)if(Object.hasOwn(t,o)){let a=o.split(" "),c=t[o];r.has(a[0])?a.length===1?i=c:n[a.slice(1).join(" ")]=c:n[o]=c}return"value"in e?s=e.value:"children"in e&&(s=xoe(n,e.children)),i&&(s=i(s)),s}function xoe(t,e){let r=[],n=-1;for(;++n<e.length;)r.push(nE(t,e[n]));return r.join("")}var pt,KO,WO=N(()=>{h();VO();QD();pt=new Lg({level:2}),KO={comment:pt.gray,quote:pt.gray,keyword:pt.green,"selector-tag":pt.green,addition:pt.green,number:pt.cyan,string:pt.cyan,"meta meta-string":pt.cyan,literal:pt.cyan,doctag:pt.cyan,regexp:pt.cyan,title:pt.blue,section:pt.blue,name:pt.blue,"selector-id":pt.blue,"selector-class":pt.blue,attribute:pt.yellow,attr:pt.yellow,variable:pt.yellow,"template-variable":pt.yellow,"class title":pt.yellow,type:pt.yellow,symbol:pt.magenta,bullet:pt.magenta,subst:pt.magenta,meta:pt.magenta,"meta keyword":pt.magenta,"selector-attr":pt.magenta,"selector-pseudo":pt.magenta,link:pt.magenta,built_in:pt.red,deletion:pt.red,emphasis:pt.italic,strong:pt.bold,formula:pt.inverse}});var iE=N(()=>{h();QD();WO()});async function be(t){if(process.env.NODE_ENV!=="test")try{await Promise.allSettled([JO.flush(2e3),YO.flush().promise])}catch(e){console.error(e)}process.exit(t)}var JO,YO,Mi=N(()=>{"use strict";h();JO=Y(require("@sentry/node"),1),YO=Y(require("@amplitude/analytics-node"),1)});var nt,Pn=N(()=>{"use strict";h();nt=process.env.AIR_HOST||"https://api.builder.io"});var QO,XO=N(()=>{QO="1.17.2"});var eB=S(sE=>{h();var ZO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");sE.encode=function(t){if(0<=t&&t<ZO.length)return ZO[t];throw new TypeError("Must be between 0 and 63: "+t)};sE.decode=function(t){var e=65,r=90,n=97,i=122,s=48,o=57,a=43,c=47,u=26,l=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+u:s<=t&&t<=o?t-s+l:t==a?62:t==c?63:-1}});var cE=S(aE=>{h();var tB=eB(),oE=5,rB=1<<oE,nB=rB-1,iB=rB;function Eoe(t){return t<0?(-t<<1)+1:(t<<1)+0}function Coe(t){var e=(t&1)===1,r=t>>1;return e?-r:r}aE.encode=function(e){var r="",n,i=Eoe(e);do n=i&nB,i>>>=oE,i>0&&(n|=iB),r+=tB.encode(n);while(i>0);return r};aE.decode=function(e,r,n){var i=e.length,s=0,o=0,a,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=tB.decode(e.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(c&iB),c&=nB,s=s+(c<<o),o+=oE}while(a);n.value=Coe(s),n.rest=r}});var kl=S(zr=>{h();function woe(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}zr.getArg=woe;var sB=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Soe=/^data:.+\,.+$/;function sf(t){var e=t.match(sB);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}zr.urlParse=sf;function Fl(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}zr.urlGenerate=Fl;var Toe=32;function Poe(t){var e=[];return function(r){for(var n=0;n<e.length;n++)if(e[n].input===r){var i=e[0];return e[0]=e[n],e[n]=i,e[0].result}var s=t(r);return e.unshift({input:r,result:s}),e.length>Toe&&e.pop(),s}}var uE=Poe(function(e){var r=e,n=sf(e);if(n){if(!n.path)return e;r=n.path}for(var i=zr.isAbsolute(r),s=[],o=0,a=0;;)if(o=a,a=r.indexOf("/",o),a===-1){s.push(r.slice(o));break}else for(s.push(r.slice(o,a));a<r.length&&r[a]==="/";)a++;for(var c,u=0,a=s.length-1;a>=0;a--)c=s[a],c==="."?s.splice(a,1):c===".."?u++:u>0&&(c===""?(s.splice(a+1,u),u=0):(s.splice(a,2),u--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,Fl(n)):r});zr.normalize=uE;function oB(t,e){t===""&&(t="."),e===""&&(e=".");var r=sf(e),n=sf(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Fl(r);if(r||e.match(Soe))return e;if(n&&!n.host&&!n.path)return n.host=e,Fl(n);var i=e.charAt(0)==="/"?e:uE(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,Fl(n)):i}zr.join=oB;zr.isAbsolute=function(t){return t.charAt(0)==="/"||sB.test(t)};function Aoe(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}zr.relative=Aoe;var aB=(function(){var t=Object.create(null);return!("__proto__"in t)})();function cB(t){return t}function _oe(t){return uB(t)?"$"+t:t}zr.toSetString=aB?cB:_oe;function Foe(t){return uB(t)?t.slice(1):t}zr.fromSetString=aB?cB:Foe;function uB(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function koe(t,e,r){var n=Bo(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Bo(t.name,e.name)}zr.compareByOriginalPositions=koe;function Ioe(t,e,r){var n;return n=t.originalLine-e.originalLine,n!==0||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Bo(t.name,e.name)}zr.compareByOriginalPositionsNoSource=Ioe;function Noe(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Bo(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Bo(t.name,e.name)}zr.compareByGeneratedPositionsDeflated=Noe;function Roe(t,e,r){var n=t.generatedColumn-e.generatedColumn;return n!==0||r||(n=Bo(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Bo(t.name,e.name)}zr.compareByGeneratedPositionsDeflatedNoLine=Roe;function Bo(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function Ooe(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Bo(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Bo(t.name,e.name)}zr.compareByGeneratedPositionsInflated=Ooe;function Boe(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}zr.parseSourceMapInput=Boe;function Moe(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=sf(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=oB(Fl(n),e)}return uE(e)}zr.computeSourceURL=Moe});var dE=S(lB=>{h();var lE=kl(),pE=Object.prototype.hasOwnProperty,kc=typeof Map<"u";function Mo(){this._array=[],this._set=kc?new Map:Object.create(null)}Mo.fromArray=function(e,r){for(var n=new Mo,i=0,s=e.length;i<s;i++)n.add(e[i],r);return n};Mo.prototype.size=function(){return kc?this._set.size:Object.getOwnPropertyNames(this._set).length};Mo.prototype.add=function(e,r){var n=kc?e:lE.toSetString(e),i=kc?this.has(e):pE.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(e),i||(kc?this._set.set(e,s):this._set[n]=s)};Mo.prototype.has=function(e){if(kc)return this._set.has(e);var r=lE.toSetString(e);return pE.call(this._set,r)};Mo.prototype.indexOf=function(e){if(kc){var r=this._set.get(e);if(r>=0)return r}else{var n=lE.toSetString(e);if(pE.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};Mo.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Mo.prototype.toArray=function(){return this._array.slice()};lB.ArraySet=Mo});var fB=S(dB=>{h();var pB=kl();function Loe(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||pB.compareByGeneratedPositionsInflated(t,e)<=0}function jg(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}jg.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};jg.prototype.add=function(e){Loe(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};jg.prototype.toArray=function(){return this._sorted||(this._array.sort(pB.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};dB.MappingList=jg});var fE=S(mB=>{h();var of=cE(),Dr=kl(),Ug=dE().ArraySet,$oe=fB().MappingList;function Li(t){t||(t={}),this._file=Dr.getArg(t,"file",null),this._sourceRoot=Dr.getArg(t,"sourceRoot",null),this._skipValidation=Dr.getArg(t,"skipValidation",!1),this._ignoreInvalidMapping=Dr.getArg(t,"ignoreInvalidMapping",!1),this._sources=new Ug,this._names=new Ug,this._mappings=new $oe,this._sourcesContents=null}Li.prototype._version=3;Li.fromSourceMap=function(e,r){var n=e.sourceRoot,i=new Li(Object.assign(r||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,n!=null&&(o.source=Dr.relative(n,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;n!==null&&(o=Dr.relative(n,s)),i._sources.has(o)||i._sources.add(o);var a=e.sourceContentFor(s);a!=null&&i.setSourceContent(s,a)}),i};Li.prototype.addMapping=function(e){var r=Dr.getArg(e,"generated"),n=Dr.getArg(e,"original",null),i=Dr.getArg(e,"source",null),s=Dr.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(r,n,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s}))};Li.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=Dr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Dr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Dr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Li.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=Dr.relative(s,i));var o=new Ug,a=new Ug;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var u=e.originalPositionFor({line:c.originalLine,column:c.originalColumn});u.source!=null&&(c.source=u.source,n!=null&&(c.source=Dr.join(n,c.source)),s!=null&&(c.source=Dr.relative(s,c.source)),c.originalLine=u.line,c.originalColumn=u.column,u.name!=null&&(c.name=u.name))}var l=c.source;l!=null&&!o.has(l)&&o.add(l);var p=c.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=o,this._names=a,e.sources.forEach(function(c){var u=e.sourceContentFor(c);u!=null&&(n!=null&&(c=Dr.join(n,c)),s!=null&&(c=Dr.relative(s,c)),this.setSourceContent(c,u))},this)};Li.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};Li.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,s=0,o=0,a="",c,u,l,p,d=this._mappings.toArray(),f=0,m=d.length;f<m;f++){if(u=d[f],c="",u.generatedLine!==r)for(e=0;u.generatedLine!==r;)c+=";",r++;else if(f>0){if(!Dr.compareByGeneratedPositionsInflated(u,d[f-1]))continue;c+=","}c+=of.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),c+=of.encode(p-o),o=p,c+=of.encode(u.originalLine-1-i),i=u.originalLine-1,c+=of.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(l=this._names.indexOf(u.name),c+=of.encode(l-s),s=l)),a+=c}return a};Li.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Dr.relative(r,n));var i=Dr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Li.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Li.prototype.toString=function(){return JSON.stringify(this.toJSON())};mB.SourceMapGenerator=Li});var hB=S(Ic=>{h();Ic.GREATEST_LOWER_BOUND=1;Ic.LEAST_UPPER_BOUND=2;function mE(t,e,r,n,i,s){var o=Math.floor((e-t)/2)+t,a=i(r,n[o],!0);return a===0?o:a>0?e-o>1?mE(o,e,r,n,i,s):s==Ic.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-t>1?mE(t,o,r,n,i,s):s==Ic.LEAST_UPPER_BOUND?o:t<0?-1:t}Ic.search=function(e,r,n,i){if(r.length===0)return-1;var s=mE(-1,r.length,e,r,n,i||Ic.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var vB=S(yB=>{h();function joe(t){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,o,a){if(o<a){var c=r(o,a),u=o-1;e(i,c,a);for(var l=i[a],p=o;p<a;p++)s(i[p],l,!1)<=0&&(u+=1,e(i,u,p));e(i,u+1,p);var d=u+1;n(i,s,o,d-1),n(i,s,d+1,a)}}return n}function Uoe(t){let e=joe.toString();return new Function(`return ${e}`)()(t)}var gB=new WeakMap;yB.quickSort=function(t,e,r=0){let n=gB.get(e);n===void 0&&(n=Uoe(e),gB.set(e,n)),n(t,e,r,t.length-1)}});var DB=S(qg=>{h();var Te=kl(),gE=hB(),Il=dE().ArraySet,qoe=cE(),af=vB().quickSort;function er(t,e){var r=t;return typeof t=="string"&&(r=Te.parseSourceMapInput(t)),r.sections!=null?new gs(r,e):new tn(r,e)}er.fromSourceMap=function(t,e){return tn.fromSourceMap(t,e)};er.prototype._version=3;er.prototype.__generatedMappings=null;Object.defineProperty(er.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});er.prototype.__originalMappings=null;Object.defineProperty(er.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});er.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};er.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};er.GENERATED_ORDER=1;er.ORIGINAL_ORDER=2;er.GREATEST_LOWER_BOUND=1;er.LEAST_UPPER_BOUND=2;er.prototype.eachMapping=function(e,r,n){var i=r||null,s=n||er.GENERATED_ORDER,o;switch(s){case er.GENERATED_ORDER:o=this._generatedMappings;break;case er.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,c=e.bind(i),u=this._names,l=this._sources,p=this._sourceMapURL,d=0,f=o.length;d<f;d++){var m=o[d],g=m.source===null?null:l.at(m.source);g!==null&&(g=Te.computeSourceURL(a,g,p)),c({source:g,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:u.at(m.name)})}};er.prototype.allGeneratedPositionsFor=function(e){var r=Te.getArg(e,"line"),n={source:Te.getArg(e,"source"),originalLine:r,originalColumn:Te.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Te.compareByOriginalPositions,gE.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:Te.getArg(o,"generatedLine",null),column:Te.getArg(o,"generatedColumn",null),lastColumn:Te.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var c=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==c;)i.push({line:Te.getArg(o,"generatedLine",null),column:Te.getArg(o,"generatedColumn",null),lastColumn:Te.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};qg.SourceMapConsumer=er;function tn(t,e){var r=t;typeof t=="string"&&(r=Te.parseSourceMapInput(t));var n=Te.getArg(r,"version"),i=Te.getArg(r,"sources"),s=Te.getArg(r,"names",[]),o=Te.getArg(r,"sourceRoot",null),a=Te.getArg(r,"sourcesContent",null),c=Te.getArg(r,"mappings"),u=Te.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=Te.normalize(o)),i=i.map(String).map(Te.normalize).map(function(l){return o&&Te.isAbsolute(o)&&Te.isAbsolute(l)?Te.relative(o,l):l}),this._names=Il.fromArray(s.map(String),!0),this._sources=Il.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(l){return Te.computeSourceURL(o,l,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=e,this.file=u}tn.prototype=Object.create(er.prototype);tn.prototype.consumer=er;tn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=Te.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};tn.fromSourceMap=function(e,r){var n=Object.create(tn.prototype),i=n._names=Il.fromArray(e._names.toArray(),!0),s=n._sources=Il.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(f){return Te.computeSourceURL(n.sourceRoot,f,r)});for(var o=e._mappings.toArray().slice(),a=n.__generatedMappings=[],c=n.__originalMappings=[],u=0,l=o.length;u<l;u++){var p=o[u],d=new xB;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),c.push(d)),a.push(d)}return af(n.__originalMappings,Te.compareByOriginalPositions),n};tn.prototype._version=3;Object.defineProperty(tn.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function xB(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var hE=Te.compareByGeneratedPositionsDeflatedNoLine;function bB(t,e){let r=t.length,n=t.length-e;if(!(n<=1))if(n==2){let i=t[e],s=t[e+1];hE(i,s)>0&&(t[e]=s,t[e+1]=i)}else if(n<20)for(let i=e;i<r;i++)for(let s=i;s>e;s--){let o=t[s-1],a=t[s];if(hE(o,a)<=0)break;t[s-1]=a,t[s]=o}else af(t,hE,e)}tn.prototype._parseMappings=function(e,r){var n=1,i=0,s=0,o=0,a=0,c=0,u=e.length,l=0,p={},d={},f=[],m=[],g,y,v,E,D;let x=0;for(;l<u;)if(e.charAt(l)===";")n++,l++,i=0,bB(m,x),x=m.length;else if(e.charAt(l)===",")l++;else{for(g=new xB,g.generatedLine=n,E=l;E<u&&!this._charIsMappingSeparator(e,E);E++);for(y=e.slice(l,E),v=[];l<E;)qoe.decode(e,l,d),D=d.value,l=d.rest,v.push(D);if(v.length===2)throw new Error("Found a source, but no line and column");if(v.length===3)throw new Error("Found a source and line, but no column");if(g.generatedColumn=i+v[0],i=g.generatedColumn,v.length>1&&(g.source=a+v[1],a+=v[1],g.originalLine=s+v[2],s=g.originalLine,g.originalLine+=1,g.originalColumn=o+v[3],o=g.originalColumn,v.length>4&&(g.name=c+v[4],c+=v[4])),m.push(g),typeof g.originalLine=="number"){let C=g.source;for(;f.length<=C;)f.push(null);f[C]===null&&(f[C]=[]),f[C].push(g)}}bB(m,x),this.__generatedMappings=m;for(var b=0;b<f.length;b++)f[b]!=null&&af(f[b],Te.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...f)};tn.prototype._findMapping=function(e,r,n,i,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return gE.search(e,r,s,o)};tn.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};tn.prototype.originalPositionFor=function(e){var r={generatedLine:Te.getArg(e,"line"),generatedColumn:Te.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",Te.compareByGeneratedPositionsDeflated,Te.getArg(e,"bias",er.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=Te.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=Te.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=Te.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:Te.getArg(i,"originalLine",null),column:Te.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};tn.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};tn.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=Te.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=Te.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};tn.prototype.generatedPositionFor=function(e){var r=Te.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:Te.getArg(e,"line"),originalColumn:Te.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Te.compareByOriginalPositions,Te.getArg(e,"bias",er.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:Te.getArg(s,"generatedLine",null),column:Te.getArg(s,"generatedColumn",null),lastColumn:Te.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};qg.BasicSourceMapConsumer=tn;function gs(t,e){var r=t;typeof t=="string"&&(r=Te.parseSourceMapInput(t));var n=Te.getArg(r,"version"),i=Te.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Il,this._names=new Il;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=Te.getArg(o,"offset"),c=Te.getArg(a,"line"),u=Te.getArg(a,"column");if(c<s.line||c===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:c+1,generatedColumn:u+1},consumer:new er(Te.getArg(o,"map"),e)}})}gs.prototype=Object.create(er.prototype);gs.prototype.constructor=er;gs.prototype._version=3;Object.defineProperty(gs.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});gs.prototype.originalPositionFor=function(e){var r={generatedLine:Te.getArg(e,"line"),generatedColumn:Te.getArg(e,"column")},n=gE.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};gs.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};gs.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};gs.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(Te.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};gs.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],c=i.consumer._sources.at(a.source);c!==null&&(c=Te.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL)),this._sources.add(c),c=this._sources.indexOf(c);var u=null;a.name&&(u=i.consumer._names.at(a.name),this._names.add(u),u=this._names.indexOf(u));var l={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(l),typeof l.originalLine=="number"&&this.__originalMappings.push(l)}af(this.__generatedMappings,Te.compareByGeneratedPositionsDeflated),af(this.__originalMappings,Te.compareByOriginalPositions)};qg.IndexedSourceMapConsumer=gs});var CB=S(EB=>{h();var zoe=fE().SourceMapGenerator,zg=kl(),Goe=/(\r?\n)/,Hoe=10,Nl="$$$isSourceNode$$$";function fi(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[Nl]=!0,n!=null&&this.add(n)}fi.fromStringWithSourceMap=function(e,r,n){var i=new fi,s=e.split(Goe),o=0,a=function(){var d=m(),f=m()||"";return d+f;function m(){return o<s.length?s[o++]:void 0}},c=1,u=0,l=null;return r.eachMapping(function(d){if(l!==null)if(c<d.generatedLine)p(l,a()),c++,u=0;else{var f=s[o]||"",m=f.substr(0,d.generatedColumn-u);s[o]=f.substr(d.generatedColumn-u),u=d.generatedColumn,p(l,m),l=d;return}for(;c<d.generatedLine;)i.add(a()),c++;if(u<d.generatedColumn){var f=s[o]||"";i.add(f.substr(0,d.generatedColumn)),s[o]=f.substr(d.generatedColumn),u=d.generatedColumn}l=d},this),o<s.length&&(l&&p(l,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(d){var f=r.sourceContentFor(d);f!=null&&(n!=null&&(d=zg.join(n,d)),i.setSourceContent(d,f))}),i;function p(d,f){if(d===null||d.source===void 0)i.add(f);else{var m=n?zg.join(n,d.source):d.source;i.add(new fi(d.originalLine,d.originalColumn,m,f,d.name))}}};fi.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[Nl]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};fi.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[Nl]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};fi.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Nl]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};fi.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};fi.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[Nl]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};fi.prototype.setSourceContent=function(e,r){this.sourceContents[zg.toSetString(e)]=r};fi.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Nl]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(zg.fromSetString(i[r]),this.sourceContents[i[r]])};fi.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};fi.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new zoe(e),i=!1,s=null,o=null,a=null,c=null;return this.walk(function(u,l){r.code+=u,l.source!==null&&l.line!==null&&l.column!==null?((s!==l.source||o!==l.line||a!==l.column||c!==l.name)&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:r.line,column:r.column},name:l.name}),s=l.source,o=l.line,a=l.column,c=l.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=u.length;p<d;p++)u.charCodeAt(p)===Hoe?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:r.line,column:r.column},name:l.name})):r.column++}),this.walkSourceContents(function(u,l){n.setSourceContent(u,l)}),{code:r.code,map:n}};EB.SourceNode=fi});var wB=S(Gg=>{h();Gg.SourceMapGenerator=fE().SourceMapGenerator;Gg.SourceMapConsumer=DB().SourceMapConsumer;Gg.SourceNode=CB().SourceNode});var tM=S(yf=>{"use strict";h();Object.defineProperty(yf,"__esModule",{value:!0});function Voe(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}var Qs=class{constructor(e,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=r,this.index=n}},Ll=class{constructor(e,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=r}};function _n(t,e){let{line:r,column:n,index:i}=t;return new Qs(r,n+e,i+e)}var SB="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Koe={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:SB},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:SB}},TB={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Kg=t=>t.type==="UpdateExpression"?TB.UpdateExpression[`${t.prefix}`]:TB[t.type],Woe={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
1101
|
+
`);return s!==-1&&(e=jO(e,i,n,s)),n+e+i};Object.defineProperties(rf.prototype,_l);Jje=rf(),Yje=rf({level:zO?zO.level:0})});function nf(t){let e=XD(t);return{highlight:r,highlightAuto:n,listLanguages:e.listLanguages,register:e.register,registerAlias:e.registerAlias,registered:e.registered};function r(i,s,o){let a=e.highlight(i,s),c=a.data;return{language:c.language,relevance:c.relevance,value:nE(o||KO,a)}}function n(i,s){let o,a;if(s&&("subset"in s||"sheet"in s)){let l=s;a={subset:l.subset},o=l.sheet}else o=s;let c=e.highlightAuto(i,a),u=c.data;return{language:u.language,relevance:u.relevance,value:nE(o||KO,c)}}}function nE(t,e){let r=new Set(e.type==="element"&&Array.isArray(e.properties.className)?e.properties.className.map(function(a){return String(a).replace(/^hljs-/,"")}):[]),n={},i,s="",o;for(o in t)if(Object.hasOwn(t,o)){let a=o.split(" "),c=t[o];r.has(a[0])?a.length===1?i=c:n[a.slice(1).join(" ")]=c:n[o]=c}return"value"in e?s=e.value:"children"in e&&(s=xoe(n,e.children)),i&&(s=i(s)),s}function xoe(t,e){let r=[],n=-1;for(;++n<e.length;)r.push(nE(t,e[n]));return r.join("")}var pt,KO,WO=N(()=>{h();VO();QD();pt=new Lg({level:2}),KO={comment:pt.gray,quote:pt.gray,keyword:pt.green,"selector-tag":pt.green,addition:pt.green,number:pt.cyan,string:pt.cyan,"meta meta-string":pt.cyan,literal:pt.cyan,doctag:pt.cyan,regexp:pt.cyan,title:pt.blue,section:pt.blue,name:pt.blue,"selector-id":pt.blue,"selector-class":pt.blue,attribute:pt.yellow,attr:pt.yellow,variable:pt.yellow,"template-variable":pt.yellow,"class title":pt.yellow,type:pt.yellow,symbol:pt.magenta,bullet:pt.magenta,subst:pt.magenta,meta:pt.magenta,"meta keyword":pt.magenta,"selector-attr":pt.magenta,"selector-pseudo":pt.magenta,link:pt.magenta,built_in:pt.red,deletion:pt.red,emphasis:pt.italic,strong:pt.bold,formula:pt.inverse}});var iE=N(()=>{h();QD();WO()});async function be(t){if(process.env.NODE_ENV!=="test")try{await Promise.allSettled([JO.flush(2e3),YO.flush().promise])}catch(e){console.error(e)}process.exit(t)}var JO,YO,Mi=N(()=>{"use strict";h();JO=Y(require("@sentry/node"),1),YO=Y(require("@amplitude/analytics-node"),1)});var nt,Pn=N(()=>{"use strict";h();nt=process.env.AIR_HOST||"https://api.builder.io"});var QO,XO=N(()=>{QO="1.17.3"});var eB=S(sE=>{h();var ZO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");sE.encode=function(t){if(0<=t&&t<ZO.length)return ZO[t];throw new TypeError("Must be between 0 and 63: "+t)};sE.decode=function(t){var e=65,r=90,n=97,i=122,s=48,o=57,a=43,c=47,u=26,l=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+u:s<=t&&t<=o?t-s+l:t==a?62:t==c?63:-1}});var cE=S(aE=>{h();var tB=eB(),oE=5,rB=1<<oE,nB=rB-1,iB=rB;function Eoe(t){return t<0?(-t<<1)+1:(t<<1)+0}function Coe(t){var e=(t&1)===1,r=t>>1;return e?-r:r}aE.encode=function(e){var r="",n,i=Eoe(e);do n=i&nB,i>>>=oE,i>0&&(n|=iB),r+=tB.encode(n);while(i>0);return r};aE.decode=function(e,r,n){var i=e.length,s=0,o=0,a,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=tB.decode(e.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(c&iB),c&=nB,s=s+(c<<o),o+=oE}while(a);n.value=Coe(s),n.rest=r}});var kl=S(zr=>{h();function woe(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}zr.getArg=woe;var sB=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Soe=/^data:.+\,.+$/;function sf(t){var e=t.match(sB);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}zr.urlParse=sf;function Fl(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}zr.urlGenerate=Fl;var Toe=32;function Poe(t){var e=[];return function(r){for(var n=0;n<e.length;n++)if(e[n].input===r){var i=e[0];return e[0]=e[n],e[n]=i,e[0].result}var s=t(r);return e.unshift({input:r,result:s}),e.length>Toe&&e.pop(),s}}var uE=Poe(function(e){var r=e,n=sf(e);if(n){if(!n.path)return e;r=n.path}for(var i=zr.isAbsolute(r),s=[],o=0,a=0;;)if(o=a,a=r.indexOf("/",o),a===-1){s.push(r.slice(o));break}else for(s.push(r.slice(o,a));a<r.length&&r[a]==="/";)a++;for(var c,u=0,a=s.length-1;a>=0;a--)c=s[a],c==="."?s.splice(a,1):c===".."?u++:u>0&&(c===""?(s.splice(a+1,u),u=0):(s.splice(a,2),u--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,Fl(n)):r});zr.normalize=uE;function oB(t,e){t===""&&(t="."),e===""&&(e=".");var r=sf(e),n=sf(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Fl(r);if(r||e.match(Soe))return e;if(n&&!n.host&&!n.path)return n.host=e,Fl(n);var i=e.charAt(0)==="/"?e:uE(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,Fl(n)):i}zr.join=oB;zr.isAbsolute=function(t){return t.charAt(0)==="/"||sB.test(t)};function Aoe(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}zr.relative=Aoe;var aB=(function(){var t=Object.create(null);return!("__proto__"in t)})();function cB(t){return t}function _oe(t){return uB(t)?"$"+t:t}zr.toSetString=aB?cB:_oe;function Foe(t){return uB(t)?t.slice(1):t}zr.fromSetString=aB?cB:Foe;function uB(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function koe(t,e,r){var n=Bo(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Bo(t.name,e.name)}zr.compareByOriginalPositions=koe;function Ioe(t,e,r){var n;return n=t.originalLine-e.originalLine,n!==0||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Bo(t.name,e.name)}zr.compareByOriginalPositionsNoSource=Ioe;function Noe(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Bo(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Bo(t.name,e.name)}zr.compareByGeneratedPositionsDeflated=Noe;function Roe(t,e,r){var n=t.generatedColumn-e.generatedColumn;return n!==0||r||(n=Bo(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Bo(t.name,e.name)}zr.compareByGeneratedPositionsDeflatedNoLine=Roe;function Bo(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function Ooe(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Bo(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Bo(t.name,e.name)}zr.compareByGeneratedPositionsInflated=Ooe;function Boe(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}zr.parseSourceMapInput=Boe;function Moe(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=sf(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=oB(Fl(n),e)}return uE(e)}zr.computeSourceURL=Moe});var dE=S(lB=>{h();var lE=kl(),pE=Object.prototype.hasOwnProperty,kc=typeof Map<"u";function Mo(){this._array=[],this._set=kc?new Map:Object.create(null)}Mo.fromArray=function(e,r){for(var n=new Mo,i=0,s=e.length;i<s;i++)n.add(e[i],r);return n};Mo.prototype.size=function(){return kc?this._set.size:Object.getOwnPropertyNames(this._set).length};Mo.prototype.add=function(e,r){var n=kc?e:lE.toSetString(e),i=kc?this.has(e):pE.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(e),i||(kc?this._set.set(e,s):this._set[n]=s)};Mo.prototype.has=function(e){if(kc)return this._set.has(e);var r=lE.toSetString(e);return pE.call(this._set,r)};Mo.prototype.indexOf=function(e){if(kc){var r=this._set.get(e);if(r>=0)return r}else{var n=lE.toSetString(e);if(pE.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};Mo.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Mo.prototype.toArray=function(){return this._array.slice()};lB.ArraySet=Mo});var fB=S(dB=>{h();var pB=kl();function Loe(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||pB.compareByGeneratedPositionsInflated(t,e)<=0}function jg(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}jg.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};jg.prototype.add=function(e){Loe(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};jg.prototype.toArray=function(){return this._sorted||(this._array.sort(pB.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};dB.MappingList=jg});var fE=S(mB=>{h();var of=cE(),Dr=kl(),Ug=dE().ArraySet,$oe=fB().MappingList;function Li(t){t||(t={}),this._file=Dr.getArg(t,"file",null),this._sourceRoot=Dr.getArg(t,"sourceRoot",null),this._skipValidation=Dr.getArg(t,"skipValidation",!1),this._ignoreInvalidMapping=Dr.getArg(t,"ignoreInvalidMapping",!1),this._sources=new Ug,this._names=new Ug,this._mappings=new $oe,this._sourcesContents=null}Li.prototype._version=3;Li.fromSourceMap=function(e,r){var n=e.sourceRoot,i=new Li(Object.assign(r||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,n!=null&&(o.source=Dr.relative(n,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;n!==null&&(o=Dr.relative(n,s)),i._sources.has(o)||i._sources.add(o);var a=e.sourceContentFor(s);a!=null&&i.setSourceContent(s,a)}),i};Li.prototype.addMapping=function(e){var r=Dr.getArg(e,"generated"),n=Dr.getArg(e,"original",null),i=Dr.getArg(e,"source",null),s=Dr.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(r,n,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s}))};Li.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=Dr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Dr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Dr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Li.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=Dr.relative(s,i));var o=new Ug,a=new Ug;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var u=e.originalPositionFor({line:c.originalLine,column:c.originalColumn});u.source!=null&&(c.source=u.source,n!=null&&(c.source=Dr.join(n,c.source)),s!=null&&(c.source=Dr.relative(s,c.source)),c.originalLine=u.line,c.originalColumn=u.column,u.name!=null&&(c.name=u.name))}var l=c.source;l!=null&&!o.has(l)&&o.add(l);var p=c.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=o,this._names=a,e.sources.forEach(function(c){var u=e.sourceContentFor(c);u!=null&&(n!=null&&(c=Dr.join(n,c)),s!=null&&(c=Dr.relative(s,c)),this.setSourceContent(c,u))},this)};Li.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};Li.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,s=0,o=0,a="",c,u,l,p,d=this._mappings.toArray(),f=0,m=d.length;f<m;f++){if(u=d[f],c="",u.generatedLine!==r)for(e=0;u.generatedLine!==r;)c+=";",r++;else if(f>0){if(!Dr.compareByGeneratedPositionsInflated(u,d[f-1]))continue;c+=","}c+=of.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),c+=of.encode(p-o),o=p,c+=of.encode(u.originalLine-1-i),i=u.originalLine-1,c+=of.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(l=this._names.indexOf(u.name),c+=of.encode(l-s),s=l)),a+=c}return a};Li.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Dr.relative(r,n));var i=Dr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Li.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Li.prototype.toString=function(){return JSON.stringify(this.toJSON())};mB.SourceMapGenerator=Li});var hB=S(Ic=>{h();Ic.GREATEST_LOWER_BOUND=1;Ic.LEAST_UPPER_BOUND=2;function mE(t,e,r,n,i,s){var o=Math.floor((e-t)/2)+t,a=i(r,n[o],!0);return a===0?o:a>0?e-o>1?mE(o,e,r,n,i,s):s==Ic.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-t>1?mE(t,o,r,n,i,s):s==Ic.LEAST_UPPER_BOUND?o:t<0?-1:t}Ic.search=function(e,r,n,i){if(r.length===0)return-1;var s=mE(-1,r.length,e,r,n,i||Ic.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var vB=S(yB=>{h();function joe(t){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,o,a){if(o<a){var c=r(o,a),u=o-1;e(i,c,a);for(var l=i[a],p=o;p<a;p++)s(i[p],l,!1)<=0&&(u+=1,e(i,u,p));e(i,u+1,p);var d=u+1;n(i,s,o,d-1),n(i,s,d+1,a)}}return n}function Uoe(t){let e=joe.toString();return new Function(`return ${e}`)()(t)}var gB=new WeakMap;yB.quickSort=function(t,e,r=0){let n=gB.get(e);n===void 0&&(n=Uoe(e),gB.set(e,n)),n(t,e,r,t.length-1)}});var DB=S(qg=>{h();var Te=kl(),gE=hB(),Il=dE().ArraySet,qoe=cE(),af=vB().quickSort;function er(t,e){var r=t;return typeof t=="string"&&(r=Te.parseSourceMapInput(t)),r.sections!=null?new gs(r,e):new tn(r,e)}er.fromSourceMap=function(t,e){return tn.fromSourceMap(t,e)};er.prototype._version=3;er.prototype.__generatedMappings=null;Object.defineProperty(er.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});er.prototype.__originalMappings=null;Object.defineProperty(er.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});er.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};er.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};er.GENERATED_ORDER=1;er.ORIGINAL_ORDER=2;er.GREATEST_LOWER_BOUND=1;er.LEAST_UPPER_BOUND=2;er.prototype.eachMapping=function(e,r,n){var i=r||null,s=n||er.GENERATED_ORDER,o;switch(s){case er.GENERATED_ORDER:o=this._generatedMappings;break;case er.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,c=e.bind(i),u=this._names,l=this._sources,p=this._sourceMapURL,d=0,f=o.length;d<f;d++){var m=o[d],g=m.source===null?null:l.at(m.source);g!==null&&(g=Te.computeSourceURL(a,g,p)),c({source:g,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:u.at(m.name)})}};er.prototype.allGeneratedPositionsFor=function(e){var r=Te.getArg(e,"line"),n={source:Te.getArg(e,"source"),originalLine:r,originalColumn:Te.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Te.compareByOriginalPositions,gE.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:Te.getArg(o,"generatedLine",null),column:Te.getArg(o,"generatedColumn",null),lastColumn:Te.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var c=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==c;)i.push({line:Te.getArg(o,"generatedLine",null),column:Te.getArg(o,"generatedColumn",null),lastColumn:Te.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};qg.SourceMapConsumer=er;function tn(t,e){var r=t;typeof t=="string"&&(r=Te.parseSourceMapInput(t));var n=Te.getArg(r,"version"),i=Te.getArg(r,"sources"),s=Te.getArg(r,"names",[]),o=Te.getArg(r,"sourceRoot",null),a=Te.getArg(r,"sourcesContent",null),c=Te.getArg(r,"mappings"),u=Te.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=Te.normalize(o)),i=i.map(String).map(Te.normalize).map(function(l){return o&&Te.isAbsolute(o)&&Te.isAbsolute(l)?Te.relative(o,l):l}),this._names=Il.fromArray(s.map(String),!0),this._sources=Il.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(l){return Te.computeSourceURL(o,l,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=e,this.file=u}tn.prototype=Object.create(er.prototype);tn.prototype.consumer=er;tn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=Te.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};tn.fromSourceMap=function(e,r){var n=Object.create(tn.prototype),i=n._names=Il.fromArray(e._names.toArray(),!0),s=n._sources=Il.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(f){return Te.computeSourceURL(n.sourceRoot,f,r)});for(var o=e._mappings.toArray().slice(),a=n.__generatedMappings=[],c=n.__originalMappings=[],u=0,l=o.length;u<l;u++){var p=o[u],d=new xB;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),c.push(d)),a.push(d)}return af(n.__originalMappings,Te.compareByOriginalPositions),n};tn.prototype._version=3;Object.defineProperty(tn.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function xB(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var hE=Te.compareByGeneratedPositionsDeflatedNoLine;function bB(t,e){let r=t.length,n=t.length-e;if(!(n<=1))if(n==2){let i=t[e],s=t[e+1];hE(i,s)>0&&(t[e]=s,t[e+1]=i)}else if(n<20)for(let i=e;i<r;i++)for(let s=i;s>e;s--){let o=t[s-1],a=t[s];if(hE(o,a)<=0)break;t[s-1]=a,t[s]=o}else af(t,hE,e)}tn.prototype._parseMappings=function(e,r){var n=1,i=0,s=0,o=0,a=0,c=0,u=e.length,l=0,p={},d={},f=[],m=[],g,y,v,E,D;let x=0;for(;l<u;)if(e.charAt(l)===";")n++,l++,i=0,bB(m,x),x=m.length;else if(e.charAt(l)===",")l++;else{for(g=new xB,g.generatedLine=n,E=l;E<u&&!this._charIsMappingSeparator(e,E);E++);for(y=e.slice(l,E),v=[];l<E;)qoe.decode(e,l,d),D=d.value,l=d.rest,v.push(D);if(v.length===2)throw new Error("Found a source, but no line and column");if(v.length===3)throw new Error("Found a source and line, but no column");if(g.generatedColumn=i+v[0],i=g.generatedColumn,v.length>1&&(g.source=a+v[1],a+=v[1],g.originalLine=s+v[2],s=g.originalLine,g.originalLine+=1,g.originalColumn=o+v[3],o=g.originalColumn,v.length>4&&(g.name=c+v[4],c+=v[4])),m.push(g),typeof g.originalLine=="number"){let C=g.source;for(;f.length<=C;)f.push(null);f[C]===null&&(f[C]=[]),f[C].push(g)}}bB(m,x),this.__generatedMappings=m;for(var b=0;b<f.length;b++)f[b]!=null&&af(f[b],Te.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...f)};tn.prototype._findMapping=function(e,r,n,i,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return gE.search(e,r,s,o)};tn.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};tn.prototype.originalPositionFor=function(e){var r={generatedLine:Te.getArg(e,"line"),generatedColumn:Te.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",Te.compareByGeneratedPositionsDeflated,Te.getArg(e,"bias",er.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=Te.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=Te.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=Te.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:Te.getArg(i,"originalLine",null),column:Te.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};tn.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};tn.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=Te.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=Te.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};tn.prototype.generatedPositionFor=function(e){var r=Te.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:Te.getArg(e,"line"),originalColumn:Te.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Te.compareByOriginalPositions,Te.getArg(e,"bias",er.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:Te.getArg(s,"generatedLine",null),column:Te.getArg(s,"generatedColumn",null),lastColumn:Te.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};qg.BasicSourceMapConsumer=tn;function gs(t,e){var r=t;typeof t=="string"&&(r=Te.parseSourceMapInput(t));var n=Te.getArg(r,"version"),i=Te.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Il,this._names=new Il;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=Te.getArg(o,"offset"),c=Te.getArg(a,"line"),u=Te.getArg(a,"column");if(c<s.line||c===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:c+1,generatedColumn:u+1},consumer:new er(Te.getArg(o,"map"),e)}})}gs.prototype=Object.create(er.prototype);gs.prototype.constructor=er;gs.prototype._version=3;Object.defineProperty(gs.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});gs.prototype.originalPositionFor=function(e){var r={generatedLine:Te.getArg(e,"line"),generatedColumn:Te.getArg(e,"column")},n=gE.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};gs.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};gs.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};gs.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(Te.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};gs.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],c=i.consumer._sources.at(a.source);c!==null&&(c=Te.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL)),this._sources.add(c),c=this._sources.indexOf(c);var u=null;a.name&&(u=i.consumer._names.at(a.name),this._names.add(u),u=this._names.indexOf(u));var l={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(l),typeof l.originalLine=="number"&&this.__originalMappings.push(l)}af(this.__generatedMappings,Te.compareByGeneratedPositionsDeflated),af(this.__originalMappings,Te.compareByOriginalPositions)};qg.IndexedSourceMapConsumer=gs});var CB=S(EB=>{h();var zoe=fE().SourceMapGenerator,zg=kl(),Goe=/(\r?\n)/,Hoe=10,Nl="$$$isSourceNode$$$";function fi(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[Nl]=!0,n!=null&&this.add(n)}fi.fromStringWithSourceMap=function(e,r,n){var i=new fi,s=e.split(Goe),o=0,a=function(){var d=m(),f=m()||"";return d+f;function m(){return o<s.length?s[o++]:void 0}},c=1,u=0,l=null;return r.eachMapping(function(d){if(l!==null)if(c<d.generatedLine)p(l,a()),c++,u=0;else{var f=s[o]||"",m=f.substr(0,d.generatedColumn-u);s[o]=f.substr(d.generatedColumn-u),u=d.generatedColumn,p(l,m),l=d;return}for(;c<d.generatedLine;)i.add(a()),c++;if(u<d.generatedColumn){var f=s[o]||"";i.add(f.substr(0,d.generatedColumn)),s[o]=f.substr(d.generatedColumn),u=d.generatedColumn}l=d},this),o<s.length&&(l&&p(l,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(d){var f=r.sourceContentFor(d);f!=null&&(n!=null&&(d=zg.join(n,d)),i.setSourceContent(d,f))}),i;function p(d,f){if(d===null||d.source===void 0)i.add(f);else{var m=n?zg.join(n,d.source):d.source;i.add(new fi(d.originalLine,d.originalColumn,m,f,d.name))}}};fi.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[Nl]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};fi.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[Nl]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};fi.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Nl]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};fi.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};fi.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[Nl]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};fi.prototype.setSourceContent=function(e,r){this.sourceContents[zg.toSetString(e)]=r};fi.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Nl]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(zg.fromSetString(i[r]),this.sourceContents[i[r]])};fi.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};fi.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new zoe(e),i=!1,s=null,o=null,a=null,c=null;return this.walk(function(u,l){r.code+=u,l.source!==null&&l.line!==null&&l.column!==null?((s!==l.source||o!==l.line||a!==l.column||c!==l.name)&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:r.line,column:r.column},name:l.name}),s=l.source,o=l.line,a=l.column,c=l.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=u.length;p<d;p++)u.charCodeAt(p)===Hoe?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:r.line,column:r.column},name:l.name})):r.column++}),this.walkSourceContents(function(u,l){n.setSourceContent(u,l)}),{code:r.code,map:n}};EB.SourceNode=fi});var wB=S(Gg=>{h();Gg.SourceMapGenerator=fE().SourceMapGenerator;Gg.SourceMapConsumer=DB().SourceMapConsumer;Gg.SourceNode=CB().SourceNode});var tM=S(yf=>{"use strict";h();Object.defineProperty(yf,"__esModule",{value:!0});function Voe(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}var Qs=class{constructor(e,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=r,this.index=n}},Ll=class{constructor(e,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=r}};function _n(t,e){let{line:r,column:n,index:i}=t;return new Qs(r,n+e,i+e)}var SB="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Koe={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:SB},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:SB}},TB={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Kg=t=>t.type==="UpdateExpression"?TB.UpdateExpression[`${t.prefix}`]:TB[t.type],Woe={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
1102
1102
|
- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${t==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
|
|
1103
1103
|
- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:t})=>`\`import()\` requires exactly ${t===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${Kg(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${Kg(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${Kg(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Joe={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Yoe=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Xoe={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${Kg({type:t})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},Qoe=["message"];function PB(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function Zoe({toMessage:t,code:e,reasonCode:r,syntaxPlugin:n}){let i=r==="MissingPlugin"||r==="MissingOneOfPlugins";{let s={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};s[r]&&(r=s[r])}return function s(o,a){let c=new SyntaxError;return c.code=e,c.reasonCode=r,c.loc=o,c.pos=o.index,c.syntaxPlugin=n,i&&(c.missingPlugin=a.missingPlugin),PB(c,"clone",function(l={}){var p;let{line:d,column:f,index:m}=(p=l.loc)!=null?p:o;return s(new Qs(d,f,m),Object.assign({},a,l.details))}),PB(c,"details",a),Object.defineProperty(c,"message",{configurable:!0,get(){let u=`${t(a)} (${o.line}:${o.column})`;return this.message=u,u},set(u){Object.defineProperty(this,"message",{value:u,writable:!0})}}),c}}function Uo(t,e){if(Array.isArray(t))return n=>Uo(n,t[0]);let r={};for(let n of Object.keys(t)){let i=t[n],s=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:o}=s,a=Voe(s,Qoe),c=typeof o=="string"?()=>o:o;r[n]=Zoe(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:c},e?{syntaxPlugin:e}:{},a))}return r}var B=Object.assign({},Uo(Koe),Uo(Woe),Uo(Joe),Uo`pipelineOperator`(Xoe)),{defineProperty:eae}=Object,AB=(t,e)=>{t&&eae(t,e,{enumerable:!1,value:t[e]})};function cf(t){return AB(t.loc.start,"index"),AB(t.loc.end,"index"),t}var tae=t=>class extends t{parse(){let r=cf(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(cf)),r}parseRegExpLiteral({pattern:r,flags:n}){let i=null;try{i=new RegExp(r,n)}catch{}let s=this.estreeParseLiteral(i);return s.regex={pattern:r,flags:n},s}parseBigIntLiteral(r){let n;try{n=BigInt(r)}catch{n=null}let i=this.estreeParseLiteral(n);return i.bigint=String(i.value||r),i}parseDecimalLiteral(r){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||r),i}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}directiveToStmt(r){let n=r.value;delete r.value,n.type="Literal",n.raw=n.extra.raw,n.value=n.extra.expressionValue;let i=r;return i.type="ExpressionStatement",i.expression=n,i.directive=n.extra.rawValue,delete n.extra,i}initFunction(r,n){super.initFunction(r,n),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var n;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((n=r.expression.extra)!=null&&n.parenthesized)}parseBlockBody(r,n,i,s,o){super.parseBlockBody(r,n,i,s,o);let a=r.directives.map(c=>this.directiveToStmt(c));r.body=a.concat(r.body),delete r.directives}pushClassMethod(r,n,i,s,o,a){this.parseMethod(n,i,s,o,a,"ClassMethod",!0),n.typeParameters&&(n.value.typeParameters=n.typeParameters,delete n.typeParameters),r.body.push(n)}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let n=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=n,r.type="PrivateIdentifier",r}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,n){let i=super.parseLiteral(r,n);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(r,n,i=!1){super.parseFunctionBody(r,n,i),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,n,i,s,o,a,c=!1){let u=this.startNode();return u.kind=r.kind,u=super.parseMethod(u,n,i,s,o,a,c),u.type="FunctionExpression",delete u.kind,r.value=u,a==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let n=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition"),n}parseClassPrivateProperty(...r){let n=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition",n.computed=!1),n}parseObjectMethod(r,n,i,s,o){let a=super.parseObjectMethod(r,n,i,s,o);return a&&(a.type="Property",a.kind==="method"&&(a.kind="init"),a.shorthand=!1),a}parseObjectProperty(r,n,i,s){let o=super.parseObjectProperty(r,n,i,s);return o&&(o.kind="init",o.type="Property"),o}isValidLVal(r,n,i){return r==="Property"?"value":super.isValidLVal(r,n,i)}isAssignable(r,n){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,n):super.isAssignable(r,n)}toAssignable(r,n=!1){if(r!=null&&this.isObjectProperty(r)){let{key:i,value:s}=r;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(s,n)}else super.toAssignable(r,n)}toAssignableObjectExpressionProp(r,n,i){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(B.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(B.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,n,i)}finishCallExpression(r,n){let i=super.finishCallExpression(r,n);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var s,o;i.options=(s=i.arguments[1])!=null?s:null,i.attributes=(o=i.arguments[1])!=null?o:null}delete i.arguments,delete i.callee}return i}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,n){let i=this.state.lastTokStartLoc,s=super.parseExport(r,n);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(s.type="ExportAllDeclaration",s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var o;let{declaration:a}=s;a?.type==="ClassDeclaration"&&((o=a.decorators)==null?void 0:o.length)>0&&a.start===s.start&&this.resetStartLocation(s,i)}break}return s}parseSubscript(r,n,i,s){let o=super.parseSubscript(r,n,i,s);if(s.optionalChainMember){if((o.type==="OptionalMemberExpression"||o.type==="OptionalCallExpression")&&(o.type=o.type.substring(8)),s.stop){let a=this.startNodeAtNode(o);return a.expression=o,this.finishNode(a,"ChainExpression")}}else(o.type==="MemberExpression"||o.type==="CallExpression")&&(o.optional=!1);return o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}finishNodeAt(r,n,i){return cf(super.finishNodeAt(r,n,i))}resetStartLocation(r,n){super.resetStartLocation(r,n),cf(r)}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),cf(r)}},Rc=class{constructor(e,r){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!r}},Rt={brace:new Rc("{"),j_oTag:new Rc("<tag"),j_cTag:new Rc("</tag"),j_expr:new Rc("<tag>...</tag>",!0)};Rt.template=new Rc("`",!0);var tt=!0,me=!0,yE=!0,uf=!0,Ea=!0,rae=!0,Yg=class{constructor(e,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},zE=new Map;function dt(t,e={}){e.keyword=t;let r=_e(t,e);return zE.set(t,r),r}function An(t,e){return _e(t,{beforeExpr:tt,binop:e})}var ff=-1,$o=[],GE=[],HE=[],VE=[],KE=[],WE=[];function _e(t,e={}){var r,n,i,s;return++ff,GE.push(t),HE.push((r=e.binop)!=null?r:-1),VE.push((n=e.beforeExpr)!=null?n:!1),KE.push((i=e.startsExpr)!=null?i:!1),WE.push((s=e.prefix)!=null?s:!1),$o.push(new Yg(t,e)),ff}function et(t,e={}){var r,n,i,s;return++ff,zE.set(t,ff),GE.push(t),HE.push((r=e.binop)!=null?r:-1),VE.push((n=e.beforeExpr)!=null?n:!1),KE.push((i=e.startsExpr)!=null?i:!1),WE.push((s=e.prefix)!=null?s:!1),$o.push(new Yg("name",e)),ff}var nae={bracketL:_e("[",{beforeExpr:tt,startsExpr:me}),bracketHashL:_e("#[",{beforeExpr:tt,startsExpr:me}),bracketBarL:_e("[|",{beforeExpr:tt,startsExpr:me}),bracketR:_e("]"),bracketBarR:_e("|]"),braceL:_e("{",{beforeExpr:tt,startsExpr:me}),braceBarL:_e("{|",{beforeExpr:tt,startsExpr:me}),braceHashL:_e("#{",{beforeExpr:tt,startsExpr:me}),braceR:_e("}"),braceBarR:_e("|}"),parenL:_e("(",{beforeExpr:tt,startsExpr:me}),parenR:_e(")"),comma:_e(",",{beforeExpr:tt}),semi:_e(";",{beforeExpr:tt}),colon:_e(":",{beforeExpr:tt}),doubleColon:_e("::",{beforeExpr:tt}),dot:_e("."),question:_e("?",{beforeExpr:tt}),questionDot:_e("?."),arrow:_e("=>",{beforeExpr:tt}),template:_e("template"),ellipsis:_e("...",{beforeExpr:tt}),backQuote:_e("`",{startsExpr:me}),dollarBraceL:_e("${",{beforeExpr:tt,startsExpr:me}),templateTail:_e("...`",{startsExpr:me}),templateNonTail:_e("...${",{beforeExpr:tt,startsExpr:me}),at:_e("@"),hash:_e("#",{startsExpr:me}),interpreterDirective:_e("#!..."),eq:_e("=",{beforeExpr:tt,isAssign:uf}),assign:_e("_=",{beforeExpr:tt,isAssign:uf}),slashAssign:_e("_=",{beforeExpr:tt,isAssign:uf}),xorAssign:_e("_=",{beforeExpr:tt,isAssign:uf}),moduloAssign:_e("_=",{beforeExpr:tt,isAssign:uf}),incDec:_e("++/--",{prefix:Ea,postfix:rae,startsExpr:me}),bang:_e("!",{beforeExpr:tt,prefix:Ea,startsExpr:me}),tilde:_e("~",{beforeExpr:tt,prefix:Ea,startsExpr:me}),doubleCaret:_e("^^",{startsExpr:me}),doubleAt:_e("@@",{startsExpr:me}),pipeline:An("|>",0),nullishCoalescing:An("??",1),logicalOR:An("||",1),logicalAND:An("&&",2),bitwiseOR:An("|",3),bitwiseXOR:An("^",4),bitwiseAND:An("&",5),equality:An("==/!=/===/!==",6),lt:An("</>/<=/>=",7),gt:An("</>/<=/>=",7),relational:An("</>/<=/>=",7),bitShift:An("<</>>/>>>",8),bitShiftL:An("<</>>/>>>",8),bitShiftR:An("<</>>/>>>",8),plusMin:_e("+/-",{beforeExpr:tt,binop:9,prefix:Ea,startsExpr:me}),modulo:_e("%",{binop:10,startsExpr:me}),star:_e("*",{binop:10}),slash:An("/",10),exponent:_e("**",{beforeExpr:tt,binop:11,rightAssociative:!0}),_in:dt("in",{beforeExpr:tt,binop:7}),_instanceof:dt("instanceof",{beforeExpr:tt,binop:7}),_break:dt("break"),_case:dt("case",{beforeExpr:tt}),_catch:dt("catch"),_continue:dt("continue"),_debugger:dt("debugger"),_default:dt("default",{beforeExpr:tt}),_else:dt("else",{beforeExpr:tt}),_finally:dt("finally"),_function:dt("function",{startsExpr:me}),_if:dt("if"),_return:dt("return",{beforeExpr:tt}),_switch:dt("switch"),_throw:dt("throw",{beforeExpr:tt,prefix:Ea,startsExpr:me}),_try:dt("try"),_var:dt("var"),_const:dt("const"),_with:dt("with"),_new:dt("new",{beforeExpr:tt,startsExpr:me}),_this:dt("this",{startsExpr:me}),_super:dt("super",{startsExpr:me}),_class:dt("class",{startsExpr:me}),_extends:dt("extends",{beforeExpr:tt}),_export:dt("export"),_import:dt("import",{startsExpr:me}),_null:dt("null",{startsExpr:me}),_true:dt("true",{startsExpr:me}),_false:dt("false",{startsExpr:me}),_typeof:dt("typeof",{beforeExpr:tt,prefix:Ea,startsExpr:me}),_void:dt("void",{beforeExpr:tt,prefix:Ea,startsExpr:me}),_delete:dt("delete",{beforeExpr:tt,prefix:Ea,startsExpr:me}),_do:dt("do",{isLoop:yE,beforeExpr:tt}),_for:dt("for",{isLoop:yE}),_while:dt("while",{isLoop:yE}),_as:et("as",{startsExpr:me}),_assert:et("assert",{startsExpr:me}),_async:et("async",{startsExpr:me}),_await:et("await",{startsExpr:me}),_defer:et("defer",{startsExpr:me}),_from:et("from",{startsExpr:me}),_get:et("get",{startsExpr:me}),_let:et("let",{startsExpr:me}),_meta:et("meta",{startsExpr:me}),_of:et("of",{startsExpr:me}),_sent:et("sent",{startsExpr:me}),_set:et("set",{startsExpr:me}),_source:et("source",{startsExpr:me}),_static:et("static",{startsExpr:me}),_using:et("using",{startsExpr:me}),_yield:et("yield",{startsExpr:me}),_asserts:et("asserts",{startsExpr:me}),_checks:et("checks",{startsExpr:me}),_exports:et("exports",{startsExpr:me}),_global:et("global",{startsExpr:me}),_implements:et("implements",{startsExpr:me}),_intrinsic:et("intrinsic",{startsExpr:me}),_infer:et("infer",{startsExpr:me}),_is:et("is",{startsExpr:me}),_mixins:et("mixins",{startsExpr:me}),_proto:et("proto",{startsExpr:me}),_require:et("require",{startsExpr:me}),_satisfies:et("satisfies",{startsExpr:me}),_keyof:et("keyof",{startsExpr:me}),_readonly:et("readonly",{startsExpr:me}),_unique:et("unique",{startsExpr:me}),_abstract:et("abstract",{startsExpr:me}),_declare:et("declare",{startsExpr:me}),_enum:et("enum",{startsExpr:me}),_module:et("module",{startsExpr:me}),_namespace:et("namespace",{startsExpr:me}),_interface:et("interface",{startsExpr:me}),_type:et("type",{startsExpr:me}),_opaque:et("opaque",{startsExpr:me}),name:_e("name",{startsExpr:me}),string:_e("string",{startsExpr:me}),num:_e("num",{startsExpr:me}),bigint:_e("bigint",{startsExpr:me}),decimal:_e("decimal",{startsExpr:me}),regexp:_e("regexp",{startsExpr:me}),privateName:_e("#name",{startsExpr:me}),eof:_e("eof"),jsxName:_e("jsxName"),jsxText:_e("jsxText",{beforeExpr:!0}),jsxTagStart:_e("jsxTagStart",{startsExpr:!0}),jsxTagEnd:_e("jsxTagEnd"),placeholder:_e("%%",{startsExpr:!0})};function Dt(t){return t>=93&&t<=132}function iae(t){return t<=92}function ys(t){return t>=58&&t<=132}function jB(t){return t>=58&&t<=136}function sae(t){return VE[t]}function CE(t){return KE[t]}function oae(t){return t>=29&&t<=33}function _B(t){return t>=129&&t<=131}function aae(t){return t>=90&&t<=92}function JE(t){return t>=58&&t<=92}function cae(t){return t>=39&&t<=59}function uae(t){return t===34}function lae(t){return WE[t]}function pae(t){return t>=121&&t<=123}function dae(t){return t>=124&&t<=130}function wa(t){return GE[t]}function Wg(t){return HE[t]}function fae(t){return t===57}function Xg(t){return t>=24&&t<=25}function Lo(t){return $o[t]}$o[8].updateContext=t=>{t.pop()},$o[5].updateContext=$o[7].updateContext=$o[23].updateContext=t=>{t.push(Rt.brace)},$o[22].updateContext=t=>{t[t.length-1]===Rt.template?t.pop():t.push(Rt.template)},$o[142].updateContext=t=>{t.push(Rt.j_expr,Rt.j_oTag)};var YE="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",UB="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",mae=new RegExp("["+YE+"]"),hae=new RegExp("["+YE+UB+"]");YE=UB=null;var qB=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],gae=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function wE(t,e){let r=65536;for(let n=0,i=e.length;n<i;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function jo(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&mae.test(String.fromCharCode(t)):wE(t,qB)}function Ol(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&hae.test(String.fromCharCode(t)):wE(t,qB)||wE(t,gae)}var XE={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},yae=new Set(XE.keyword),vae=new Set(XE.strict),bae=new Set(XE.strictBind);function zB(t,e){return e&&t==="await"||t==="enum"}function GB(t,e){return zB(t,e)||vae.has(t)}function HB(t){return bae.has(t)}function VB(t,e){return GB(t,e)||HB(t)}function xae(t){return yae.has(t)}function Dae(t,e,r){return t===64&&e===64&&jo(r)}var Eae=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Cae(t){return Eae.has(t)}var mf=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},hf=class{constructor(e,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&128)return!0;if(r&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new mf(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,n){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,e,r,n);let s=i.names.get(e)||0;r&16?s=s|4:(i.firstLexicalName||(i.firstLexicalName=e),s=s|2),i.names.set(e,s),r&8&&this.maybeExportDefined(i,e)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,e,r,n),i.names.set(e,(i.names.get(e)||0)|1),this.maybeExportDefined(i,e),!(i.flags&387));--s);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,n,i){this.isRedeclaredInScope(e,r,n)&&this.parser.raise(B.VarRedeclaration,i,{identifierName:r})}isRedeclaredInScope(e,r,n){if(!(n&1))return!1;if(n&8)return e.names.has(r);let i=e.names.get(r);return n&16?(i&2)>0||!this.treatFunctionsAsVarInScope(e)&&(i&1)>0:(i&2)>0&&!(e.flags&8&&e.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(e)&&(i&4)>0}checkLocalExport(e){let{name:r}=e;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&387)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&451&&!(r&4))return r}}},SE=class extends mf{constructor(...e){super(...e),this.declareFunctions=new Set}},TE=class extends hf{createScope(e){return new SE(e)}declareName(e,r,n){let i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,e,r,n),this.maybeExportDefined(i,e),i.declareFunctions.add(e);return}super.declareName(e,r,n)}isRedeclaredInScope(e,r,n){if(super.isRedeclaredInScope(e,r,n))return!0;if(n&2048&&!e.declareFunctions.has(r)){let i=e.names.get(r);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},PE=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,n]=e;if(!this.hasPlugin(r))return!1;let i=this.plugins.get(r);for(let s of Object.keys(n))if(i?.[s]!==n[s])return!1;return!0}}getPluginOption(e,r){var n;return(n=this.plugins.get(e))==null?void 0:n[r]}};function KB(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function wae(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function gf(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function lf(t,e,r){let n=null,i=e.length;for(;n===null&&i>0;)n=e[--i];n===null||n.start>r.start?gf(t,r.comments):KB(n,r.comments)}var AE=class extends PE{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let i=n-1,s=r[i];s.start===e.end&&(s.leadingNode=e,i--);let{start:o}=e;for(;i>=0;i--){let a=r[i],c=a.end;if(c>o)a.containingNode=e,this.finalizeComment(a),r.splice(i,1);else{c===o&&(a.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&KB(e.leadingNode,r),e.trailingNode!==null&&wae(e.trailingNode,r);else{let{containingNode:n,start:i}=e;if(this.input.charCodeAt(i-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":lf(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":lf(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":lf(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":lf(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":lf(n,n.specifiers,e);break;default:gf(n,r)}else gf(n,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let i=r[n-1];i.leadingNode===e&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:r}=this.state,{length:n}=r;n!==0&&(r[n-1].trailingNode===e?r[n-1].trailingNode=null:n>=2&&r[n-2].trailingNode===e&&(r[n-2].trailingNode=null))}takeSurroundingComments(e,r,n){let{commentStack:i}=this.state,s=i.length;if(s===0)return;let o=s-1;for(;o>=0;o--){let a=i[o],c=a.end;if(a.start===n)a.leadingNode=e;else if(c===r)a.trailingNode=e;else if(c<r)break}}},Sae=/\r\n|[\r\n\u2028\u2029]/,Hg=new RegExp(Sae.source,"g");function Bl(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function FB(t,e,r){for(let n=e;n<r;n++)if(Bl(t.charCodeAt(n)))return!0;return!1}var vE=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,bE=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Tae(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var _E=class t{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[Rt.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:r,startLine:n,startColumn:i}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new Qs(n,i,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new Qs(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let e=new t;return e.flags=this.flags,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},Pae=function(e){return e>=48&&e<=57},kB={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Vg={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function IB(t,e,r,n,i,s){let o=r,a=n,c=i,u="",l=null,p=r,{length:d}=e;for(;;){if(r>=d){s.unterminated(o,a,c),u+=e.slice(p,r);break}let f=e.charCodeAt(r);if(Aae(t,f,e,r)){u+=e.slice(p,r);break}if(f===92){u+=e.slice(p,r);let m=_ae(e,r,n,i,t==="template",s);m.ch===null&&!l?l={pos:r,lineStart:n,curLine:i}:u+=m.ch,{pos:r,lineStart:n,curLine:i}=m,p=r}else f===8232||f===8233?(++r,++i,n=r):f===10||f===13?t==="template"?(u+=e.slice(p,r)+`
|
|
1104
1104
|
`,++r,f===13&&e.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(o,a,c):++r}return{pos:r,str:u,firstInvalidLoc:l,lineStart:n,curLine:i,containsInvalid:!!l}}function Aae(t,e,r,n){return t==="template"?e===96||e===36&&r.charCodeAt(n+1)===123:e===(t==="double"?34:39)}function _ae(t,e,r,n,i,s){let o=!i;e++;let a=u=>({pos:e,ch:u,lineStart:r,curLine:n}),c=t.charCodeAt(e++);switch(c){case 110:return a(`
|
|
@@ -1192,7 +1192,7 @@ while`),i.push(" (",t.call(r,"test"),");"),H(i)}case"DoExpression":{let s=t.call
|
|
|
1192
1192
|
}`):e.objectCurlySpacing?i.push("{ ",u," }"):i.push("{",u,"}")}}else i.push(s?"{ ":"{",ee(", ").join(t.map(r,"specifiers")),s?" }":"}");n.source&&i.push(" from ",t.call(r,"source"),HM(t,e,r))}let o=H(i);return _f(o)!==";"&&!(n.declaration&&(n.declaration.type==="FunctionDeclaration"||n.declaration.type==="ClassDeclaration"||n.declaration.type==="TSModuleDeclaration"||n.declaration.type==="TSInterfaceDeclaration"||n.declaration.type==="TSEnumDeclaration"))&&(o=H([o,";"])),o}function xf(t,e){return AM(t)||e.unshift("declare "),H(e)}function Df(t,e){return t.call(function(r){let n=r.getValue();return n?n==="plus"?ee("+"):n==="minus"?ee("-"):e(r):ee("")},"variance")}function Oc(t,e){return t.length>1?H([" ",t]):H([`
|
|
1193
1193
|
`,cy(t).indent(e.tabWidth)])}function _f(t){let e=t.lastPos();do{let r=t.charAt(e);if(/\S/.test(r))return r}while(t.prevPos(e))}function mM(t){return _f(t)==="}"}function ny(t){return t.replace(/['"]/g,e=>e==='"'?"'":'"')}function Hl(t){let e=zo(t,"value"),r=zo(t,"extra");if(r&&typeof r.raw=="string"&&e==r.rawValue)return r.raw;if(t.type==="Literal"){let n=t.raw;if(typeof n=="string"&&e==n)return n}}function iy(t){return JSON.stringify(t).replace(/[\u2028\u2029]/g,function(e){return"\\u"+e.charCodeAt(0).toString(16)})}function Ef(t,e){switch(mC.assert(t),e.quote){case"auto":{let r=iy(t),n=ny(iy(ny(t)));return r.length>n.length?n:r}case"single":return ny(iy(ny(t)));case"double":default:return iy(t)}}function cy(t){let e=_f(t);return!e||`
|
|
1194
1194
|
};`.indexOf(e)<0?H([t,";"]):t}function vue(t,e){return new mue(e).print(t)}function VM(){if(sy)return sy;let t=bue();return sy={parse(e,r){return gM.parse(e,{...t,...r})}},sy}function bue(){return{sourceType:"module",strictMode:!1,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,startLine:1,tokens:!0,plugins:["asyncGenerators","bigInt","classPrivateMethods","classPrivateProperties","classProperties","classStaticBlock","decimal","decorators-legacy","doExpressions","dynamicImport","exportDefaultFrom","exportExtensions","exportNamespaceFrom","functionBind","functionSent","importAssertions","importMeta","nullishCoalescingOperator","numericSeparator","objectRestSpread","optionalCatchBinding","optionalChaining",["pipelineOperator",{proposal:"minimal"}],["recordAndTuple",{syntaxType:"hash"}],"throwExpressions","topLevelAwait","v8intrinsic","jsx","typescript"]}}function Cue(t){return/^[$A-Z_a-z][\w$]*$/.test(t)}function In(t,e=new Set){if(t===void 0)return kr.identifier("undefined");if(t===null)return kr.literal(null);if(KM.has(typeof t))return kr.literal(t);if(e.has(t))throw new fn("Can not serialize circular reference");if(e.add(t),t[hC])return t.$ast;if(t instanceof RegExp){let r=kr.regExpLiteral(t.source,t.flags);return delete r.extra.raw,r}return t instanceof Set?kr.newExpression(kr.identifier("Set"),[kr.arrayExpression([...t].map(r=>In(r,e)))]):t instanceof Date?kr.newExpression(kr.identifier("Date"),[kr.literal(t.toISOString())]):t instanceof Map?kr.newExpression(kr.identifier("Map"),[kr.arrayExpression([...t].map(([r,n])=>kr.arrayExpression([In(r,e),In(n,e)])))]):Array.isArray(t)?kr.arrayExpression(t.map(r=>In(r,e))):typeof t=="object"?kr.objectExpression(Object.entries(t).map(([r,n])=>kr.property("init",/^[$A-Z_a-z][\w$]*$/g.test(r)?kr.identifier(r):kr.literal(r),In(n,e)))):kr.literal(t)}function wue(t,e={}){let r=e;return r[hC]=!0,r.$ast=t,r.$type||(r.$type="object"),r}function ji(t,e,r){let n=wue(t,e);return new Proxy({},{ownKeys(){return Object.keys(n).filter(i=>i!==hC&&!i.startsWith("$"))},getOwnPropertyDescriptor(){return Sue},has(i,s){return s in n},...r,get(i,s,o){if(s in n)return n[s];if(r.get)return r.get(i,s,o)},set(i,s,o,a){return s in n?(n[s]=o,!0):r.set?r.set(i,s,o,a):!1}})}function Tue(t,e,r){if(eC.has(e))return eC.get(e);let n=ji(e,{get $declaration(){return t},get imported(){return e.type==="ImportDefaultSpecifier"?"default":e.type==="ImportNamespaceSpecifier"?"*":e.imported.type==="Identifier"?e.imported.name:e.imported.value},set imported(i){if(e.type!=="ImportSpecifier")throw new fn("Changing import name is not yet implemented");e.imported.type==="Identifier"?e.imported.name=i:e.imported.value=i},get local(){return e.local.name},set local(i){e.local.name=i},get from(){return t.source.value},set from(i){if(i===t.source.value)return;t.specifiers=t.specifiers.filter(o=>o!==e),t.specifiers.length===0&&(r.body=r.body.filter(o=>o!==t));let s=r.body.find(o=>o.type==="ImportDeclaration"&&o.source.value===i);s?s.specifiers.push(e):r.body.unshift(mi.importDeclaration([e],mi.stringLiteral(i)))},toJSON(){return{imported:this.imported,local:this.local,from:this.from}}},{ownKeys(){return["imported","local","from","toJSON"]}});return eC.set(e,n),n}function Pue(t,e){let r=()=>{let o=[];for(let a of t.body)if(a.type==="ImportDeclaration")for(let c of a.specifiers)o.push(Tue(a,c,t));return o},n=(o,a,c)=>{let u=r(),l=u.find(m=>m.local===o),p=a.local||o;if(l)return l.imported=a.imported,l.local=p,l.from=a.from,!0;let d=a.imported==="default"?mi.importDefaultSpecifier(mi.identifier(p)):a.imported==="*"?mi.importNamespaceSpecifier(mi.identifier(p)):mi.importSpecifier(mi.identifier(a.imported),mi.identifier(p)),f=u.find(m=>m.from===a.from)?.$declaration;if(f)f.specifiers.push(d);else if(c==="prepend"||u.length===0)t.body.unshift(mi.importDeclaration([d],mi.stringLiteral(a.from)));else{let m=u.at(-1).$declaration,g=t.body.indexOf(m);t.body.splice(g+1,0,mi.importDeclaration([d],mi.stringLiteral(a.from)))}return!0},i=o=>{let a=r().find(l=>l.local===o);if(!a)return!1;let c=a.$declaration,u=a.$ast;return c.specifiers=c.specifiers.filter(l=>l!==u),c.specifiers.length===0&&(t.body=t.body.filter(l=>l!==c)),!0};return ji(t,{$type:"imports",$add(o){n(o.local||o.imported,o,"prepend")},$prepend(o){n(o.local||o.imported,o,"prepend")},$append(o){n(o.local||o.imported,o,"append")},get $items(){return r()},toJSON(){return r().reduce((o,a)=>(o[a.local]=a,o),{})}},{get(o,a){return r().find(c=>c.local===a)},set(o,a,c){return n(a,c,"prepend")},deleteProperty(o,a){return i(a)},ownKeys(){return r().map(o=>o.local)},has(o,a){return r().some(c=>c.local===a)}})}function xy(t,e,r){let n=s=>e[s],i=(s,o)=>{e[s]=o};return ji(t,{$type:"array",push(s){e.push(In(s))},pop(){return kn(e.pop(),r)},unshift(s){e.unshift(In(s))},shift(){return kn(e.shift(),r)},splice(s,o,...a){return e.splice(s,o,...a.map(u=>In(u))).map(u=>kn(u,r))},find(s){return e.map(o=>kn(o,r)).find(s)},findIndex(s){return e.map(o=>kn(o,r)).findIndex(s)},includes(s){return e.map(o=>kn(o,r)).includes(s)},toJSON(){return e.map(s=>kn(s,r))}},{get(s,o){if(o==="length")return e.length;if(o===Symbol.iterator)return function*(){for(let u of e)yield kn(u,r)};if(typeof o=="symbol")return;let a=+o;if(Number.isNaN(a))return;let c=n(a);if(c)return kn(c,r)},set(s,o,a){if(typeof o=="symbol")return!1;let c=+o;return Number.isNaN(c)?!1:(i(c,In(a)),!0)},deleteProperty(s,o){if(typeof o=="symbol")return!1;let a=+o;return Number.isNaN(a)?!1:(e[a]=In(void 0),!0)},ownKeys(){return["length",...e.map((s,o)=>o.toString())]}})}function Aue(t,e){if("elements"in t)return xy(t,t.elements,e)}function WM(t,e){if(t.type!=="CallExpression")throw new fn("Not a function call");function r(i){if(i.type==="Identifier")return i.name;if(i.type==="MemberExpression")return`${r(i.object)}.${r(i.property)}`;throw new fn("Not implemented")}let n=xy(t,t.arguments,e);return ji(t,{$type:"function-call",$callee:r(t.callee),$args:n},{})}function _ue(t,e){if(t.type!=="ArrowFunctionExpression")throw new fn("Not an arrow function expression");let r=xy(t,t.params,e);return ji(t,{$type:"arrow-function-expression",$params:r,$body:kn(t.body,e)},{})}function kue(t,e){if(!("properties"in t))return;let r=s=>{for(let o of t.properties){if("key"in o&&"name"in o.key&&o.key.name===s)return o.value;if(o.type==="ObjectProperty"&&(o.key.type==="StringLiteral"||o.key.type==="NumericLiteral"||o.key.type==="BooleanLiteral")&&o.key.value.toString()===s)return o.value.value??o.value}},n=(s,o=!1)=>{if("key"in s&&"name"in s.key)return s.key.name;if(s.type==="ObjectProperty"&&(s.key.type==="StringLiteral"||s.key.type==="NumericLiteral"||s.key.type==="BooleanLiteral"))return s.key.value.toString();if(o)throw new fn(`Casting "${s.type}" is not supported`,{ast:s,code:e?.$code})},i=(s,o)=>{let a=t.properties.find(c=>n(c)===s);a?a.value=o:Cue(s)?t.properties.push({type:"Property",key:{type:"Identifier",name:s},value:o}):t.properties.push({type:"ObjectProperty",key:Fue.stringLiteral(s),value:o})};return ji(t,{$type:"object",toJSON(){return t.properties.reduce((s,o)=>("key"in o&&"name"in o.key&&(s[o.key.name]=kn(o.value,e)),s),{})}},{get(s,o){let a=r(o);if(a)return kn(a,e)},set(s,o,a){return typeof o!="string"&&(o=String(o)),i(o,In(a)),!0},deleteProperty(s,o){typeof o!="string"&&(o=String(o));let a=t.properties.findIndex(c=>"key"in c&&"name"in c.key&&c.key.name===o);return a!==-1&&t.properties.splice(a,1),!0},ownKeys(){return t.properties.map(s=>n(s,!0)).filter(Boolean)}})}function JM(t,e){if(t.type!=="NewExpression")throw new fn("Not a new expression");function r(i){if(i.type==="Identifier")return i.name;if(i.type==="MemberExpression")return`${r(i.object)}.${r(i.property)}`;throw new fn("Not implemented")}let n=xy(t,t.arguments,e);return ji(t,{$type:"new-expression",$callee:r(t.callee),$args:n},{})}function Iue(t){if(t.type!=="Identifier")throw new fn("Not an identifier");return ji(t,{$type:"identifier",$name:t.name},{})}function Nue(t){if(t.type!=="LogicalExpression")throw new fn("Not a logical expression");return ji(t,{$type:"logicalExpression"},{})}function Rue(t){if(t.type!=="MemberExpression")throw new fn("Not a member expression");return ji(t,{$type:"memberExpression"},{})}function kn(t,e){if(KM.has(typeof t))return t;if(Eue.has(t.type))return t.value;if(tC.has(t))return tC.get(t);let r;switch(t.type){case"ObjectExpression":{r=kue(t,e);break}case"ArrayExpression":{r=Aue(t,e);break}case"CallExpression":{r=WM(t,e);break}case"ArrowFunctionExpression":{r=_ue(t,e);break}case"NewExpression":{r=JM(t,e);break}case"Identifier":{r=Iue(t);break}case"LogicalExpression":{r=Nue(t);break}case"MemberExpression":{r=Rue(t);break}case"TSAsExpression":case"TSSatisfiesExpression":{r=kn(t.expression,e);break}default:throw new fn(`Casting "${t.type}" is not supported`,{ast:t,code:e?.$code})}return tC.set(t,r),r}function Oue(t,e){let r=i=>{let s=i==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration";for(let o of t.body)if(o.type===s){if(i==="default")return o.declaration;if(o.declaration&&"declarations"in o.declaration){let a=o.declaration.declarations[0];if("name"in a.id&&a.id.name===i)return a.init}}},n=(i,s)=>{let o=i==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration",a=In(s);for(let c of t.body)if(c.type===o){if(i==="default"){c.declaration=a;return}if(c.declaration&&"declarations"in c.declaration){let u=c.declaration.declarations[0];if("name"in u.id&&u.id.name===i){u.init=a;return}}}t.body.push(i==="default"?Cf.exportDefaultDeclaration(a):Cf.exportNamedDeclaration(Cf.variableDeclaration("const",[Cf.variableDeclarator(Cf.identifier(i),a)])))};return ji(t,{$type:"exports"},{get(i,s){let o=r(s);if(o)return kn(o,e)},set(i,s,o){return n(s,o),!0},ownKeys(){return t.body.flatMap(i=>i.type==="ExportDefaultDeclaration"?["default"]:i.type==="ExportNamedDeclaration"&&i.declaration&&"declarations"in i.declaration?i.declaration.declarations.map(s=>"name"in s.id?s.id.name:""):[]).filter(Boolean)},deleteProperty(i,s){let o=s==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration";for(let a=0;a<t.body.length;a++){let c=t.body[a];if(c.type===o){if(s==="default")return t.body.splice(a,1),!0;if(c.declaration&&"declarations"in c.declaration){let u=c.declaration.declarations[0];if("name"in u.id&&u.id.name===s)return t.body.splice(a,1),!0}}}return!1}})}function Bue(t,e){let r=t.program;if(r.type!=="Program")throw new fn(`Cannot proxify ${t.type} as module`);let n={$code:e,$type:"module"},i=ji(r,n,{ownKeys(){return["imports","exports","generate"]}});return n.exports=Oue(r,i),n.imports=Pue(r),n.generate=s=>gC(i,s),i}function YM(t,e={}){let r={wrapColumn:e.wrapColumn===void 0,indent:e.tabWidth===void 0||e.useTabs===void 0,quote:e.quote===void 0,arrowParens:e.arrowParensAlways===void 0,trailingComma:e.trailingComma===void 0},n=2,i=0,s=0,o=0,a=0,c=/(?<doubleQuote>"[^"]+")|(?<singleQuote>'[^']+')|(?<singleParam>\([^),]+\)\s*=>)|(?<trailingComma>,\s*[\]}])/g,u={doubleQuote:0,singleQuote:0,singleParam:0,trailingComma:0},l=(t||"").split(`
|
|
1195
|
-
`),p=!1;for(let d of l){let f=d.trim();if(f.length!==0){if(r.wrapColumn&&d.length>o&&(o=d.length),r.indent){let m=d.match(/^\s+/)?.[0]||"";m.length>0&&(m.length>0&&m.length<n&&(n=m.length),m[0]===" "?i++:m.length>0&&i--)}if(f.at(-1)===";"?s++:f.length>0&&s--,r.quote||r.arrowParens){let m=f.matchAll(c);for(let g of m)if(g.groups)for(let y in u)g.groups[y]&&u[y]++}r.trailingComma&&((d.startsWith("}")||d.startsWith("]"))&&(p?a++:a--),p=f.endsWith(","))}}return{wrapColumn:o,useTabs:i>0,tabWidth:n,quote:u.singleQuote>u.doubleQuote?"single":"double",arrowParensAlways:u.singleParam>0,trailingComma:a>0||u.trailingComma>0,useSemi:s>0,arrayBracketSpacing:void 0,objectCurlySpacing:void 0,...e}}function XM(t,e){let r=OM(t,{parser:e?.parser||VM(),...e});return Bue(r,t)}function QM(t,e){let r=OM("("+t+")",{parser:e?.parser||VM(),...e}),n=r.program.body[0];n.type==="ExpressionStatement"&&(n=n.expression),n.extra?.parenthesized&&(n.extra.parenthesized=!1);let i={$ast:r,$code:" "+t+" ",$type:"module"};return kn(n,i)}function gC(t,e={}){let r=t.$ast||t,n=e.format===!1||!("$code"in t)?{}:YM(t.$code,e.format),{code:i,map:s}=vue(r,{...e,...n});return{code:i,map:s}}async function Mue(t,e={}){let r=await uy.promises.readFile(t,"utf8");return e.sourceFileName=e.sourceFileName??t,XM(r,e)}async function Lue(t,e,r){let n="$ast"in t?t.$ast:t,{code:i,map:s}=gC(n,r);await uy.promises.writeFile(e,i),s&&await uy.promises.writeFile(e+".map",s)}var uy,yy,gM,lce,pce,Fn,yM,ly,$i,Lc,Tf,py,dy,fy,Mc,wf,my,dce,ey,Ul,ty,bs,
|
|
1195
|
+
`),p=!1;for(let d of l){let f=d.trim();if(f.length!==0){if(r.wrapColumn&&d.length>o&&(o=d.length),r.indent){let m=d.match(/^\s+/)?.[0]||"";m.length>0&&(m.length>0&&m.length<n&&(n=m.length),m[0]===" "?i++:m.length>0&&i--)}if(f.at(-1)===";"?s++:f.length>0&&s--,r.quote||r.arrowParens){let m=f.matchAll(c);for(let g of m)if(g.groups)for(let y in u)g.groups[y]&&u[y]++}r.trailingComma&&((d.startsWith("}")||d.startsWith("]"))&&(p?a++:a--),p=f.endsWith(","))}}return{wrapColumn:o,useTabs:i>0,tabWidth:n,quote:u.singleQuote>u.doubleQuote?"single":"double",arrowParensAlways:u.singleParam>0,trailingComma:a>0||u.trailingComma>0,useSemi:s>0,arrayBracketSpacing:void 0,objectCurlySpacing:void 0,...e}}function XM(t,e){let r=OM(t,{parser:e?.parser||VM(),...e});return Bue(r,t)}function QM(t,e){let r=OM("("+t+")",{parser:e?.parser||VM(),...e}),n=r.program.body[0];n.type==="ExpressionStatement"&&(n=n.expression),n.extra?.parenthesized&&(n.extra.parenthesized=!1);let i={$ast:r,$code:" "+t+" ",$type:"module"};return kn(n,i)}function gC(t,e={}){let r=t.$ast||t,n=e.format===!1||!("$code"in t)?{}:YM(t.$code,e.format),{code:i,map:s}=vue(r,{...e,...n});return{code:i,map:s}}async function Mue(t,e={}){let r=await uy.promises.readFile(t,"utf8");return e.sourceFileName=e.sourceFileName??t,XM(r,e)}async function Lue(t,e,r){let n="$ast"in t?t.$ast:t,{code:i,map:s}=gC(n,r);await uy.promises.writeFile(e,i),s&&await uy.promises.writeFile(e+".map",s)}var uy,yy,gM,lce,pce,Fn,yM,ly,$i,Lc,Tf,py,dy,fy,Mc,wf,my,dce,ey,Ul,ty,bs,zUe,Wl,xs,GUe,HUe,VUe,KUe,Ice,zo,WUe,Nce,Rce,JUe,YUe,Oce,XUe,QUe,ZUe,ry,rM,Bce,TM,nC,qce,iC,Gce,Hce,vf,Vl,ay,sC,Vce,Kce,oC,Bc,Kl,FM,Wce,sM,Zce,eue,tue,BM,MM,tr,rue,nue,aC,vs,mn,Pf,aM,iue,sue,Af,uC,oue,hy,jM,UM,Er,mC,due,gy,fue,uM,lM,mue,sy,xue,Due,hM,fn,Eue,KM,kr,hC,Sue,mi,eC,Fue,tC,Cf,oy,$ue,ZM=N(()=>{h();uy=require("node:fs"),yy=Y(wB(),1),gM=Y(tM(),1);lce=Object.defineProperty,pce=(t,e,r)=>e in t?lce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Fn=(t,e,r)=>(pce(t,typeof e!="symbol"?e+"":e,r),r),yM=Object.prototype,ly=yM.toString,$i=yM.hasOwnProperty,Lc=class{assert(e,r){if(!this.check(e,r)){var n=pC(e);throw new Error(n+" does not match type "+this)}return!0}arrayOf(){let e=this;return new Tf(e)}},Tf=class extends Lc{constructor(e){super(),this.elemType=e,Fn(this,"kind","ArrayType")}toString(){return"["+this.elemType+"]"}check(e,r){return Array.isArray(e)&&e.every(n=>this.elemType.check(n,r))}},py=class extends Lc{constructor(e){super(),this.value=e,Fn(this,"kind","IdentityType")}toString(){return String(this.value)}check(e,r){let n=e===this.value;return!n&&typeof r=="function"&&r(this,e),n}},dy=class extends Lc{constructor(e){super(),this.fields=e,Fn(this,"kind","ObjectType")}toString(){return"{ "+this.fields.join(", ")+" }"}check(e,r){return ly.call(e)===ly.call({})&&this.fields.every(n=>n.type.check(e[n.name],r))}},fy=class extends Lc{constructor(e){super(),this.types=e,Fn(this,"kind","OrType")}toString(){return this.types.join(" | ")}check(e,r){return this.types.some(n=>n.check(e,!!r))?!0:(typeof r=="function"&&r(this,e),!1)}},Mc=class extends Lc{constructor(e,r){super(),this.name=e,this.predicate=r,Fn(this,"kind","PredicateType")}toString(){return this.name}check(e,r){let n=this.predicate(e,r);return!n&&typeof r=="function"&&r(this,e),n}},wf=class t{constructor(e,r){this.type=e,this.typeName=r,Fn(this,"baseNames",[]),Fn(this,"ownFields",Object.create(null)),Fn(this,"allSupertypes",Object.create(null)),Fn(this,"supertypeList",[]),Fn(this,"allFields",Object.create(null)),Fn(this,"fieldNames",[]),Fn(this,"finalized",!1),Fn(this,"buildable",!1),Fn(this,"buildParams",[])}isSupertypeOf(e){if(e instanceof t){if(this.finalized!==!0||e.finalized!==!0)throw new Error("");return $i.call(e.allSupertypes,this.typeName)}else throw new Error(e+" is not a Def")}checkAllFields(e,r){var n=this.allFields;if(this.finalized!==!0)throw new Error(""+this.typeName);function i(s){var o=n[s],a=o.type,c=o.getValue(e);return a.check(c,r)}return e!==null&&typeof e=="object"&&Object.keys(n).every(i)}bases(...e){var r=this.baseNames;if(this.finalized){if(e.length!==r.length)throw new Error("");for(var n=0;n<e.length;n++)if(e[n]!==r[n])throw new Error("");return this}return e.forEach(i=>{r.indexOf(i)<0&&r.push(i)}),this}},my=class{constructor(e,r,n,i){this.name=e,this.type=r,this.defaultFn=n,Fn(this,"hidden"),this.hidden=!!i}toString(){return JSON.stringify(this.name)+": "+this.type}getValue(e){var r=e[this.name];return typeof r<"u"||typeof this.defaultFn=="function"&&(r=this.defaultFn.call(e)),r}};Mt(()=>module);dce=Object.prototype,ey=dce.hasOwnProperty;Mt(()=>module);Ul=Object.prototype.hasOwnProperty;Mt(()=>module);Mt(()=>module);ty=Object.prototype.hasOwnProperty;Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);Mt(()=>module);bs||(bs={});({astNodesAreEquivalent:zUe,builders:Wl,builtInTypes:xs,defineMethod:GUe,eachField:HUe,finalize:VUe,getBuilderName:KUe,getFieldNames:Ice,getFieldValue:zo,getSupertypeNames:WUe,namedTypes:Nce,NodePath:Rce,Path:JUe,PathVisitor:YUe,someField:Oce,Type:XUe,use:QUe,visit:ZUe}=gce([Ff,Ace,wM,_ce,Fce,kce]));Object.assign(bs,Nce);ry=bs,rM=yy.default.SourceMapConsumer,Bce=yy.default.SourceMapGenerator,TM=Object.prototype.hasOwnProperty;nC={tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:Mce(),wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},qce=nC.hasOwnProperty;iC=class t{constructor(e,r,n=r){this.sourceLines=e,this.sourceLoc=r,this.targetLoc=n}slice(e,r,n=e.lastPos()){let i=this.sourceLines,s=this.sourceLoc,o=this.targetLoc;function a(c){let u=s[c],l=o[c],p=r;return c==="end"&&(p=n),zce(i,u,e,l,p)}if(Et(r,o.start)<=0)if(Et(o.end,n)<=0)o={start:Sa(o.start,r.line,r.column),end:Sa(o.end,r.line,r.column)};else{if(Et(n,o.start)<=0)return null;s={start:s.start,end:a("end")},o={start:Sa(o.start,r.line,r.column),end:Sa(n,r.line,r.column)}}else{if(Et(o.end,r)<=0)return null;Et(o.end,n)<=0?(s={start:a("start"),end:s.end},o={start:{line:1,column:0},end:Sa(o.end,r.line,r.column)}):(s={start:a("start"),end:a("end")},o={start:{line:1,column:0},end:Sa(n,r.line,r.column)})}return new t(this.sourceLines,s,o)}add(e,r){return new t(this.sourceLines,this.sourceLoc,{start:iM(this.targetLoc.start,e,r),end:iM(this.targetLoc.end,e,r)})}subtract(e,r){return new t(this.sourceLines,this.sourceLoc,{start:Sa(this.targetLoc.start,e,r),end:Sa(this.targetLoc.end,e,r)})}indent(e,r=!1,n=!1){if(e===0)return this;let i=this.targetLoc,s=i.start.line,o=i.end.line;if(r&&s===1&&o===1)return this;if(i={start:i.start,end:i.end},!r||s>1){let a=i.start.column+e;i.start={line:s,column:n?Math.max(0,a):a}}if(!r||o>1){let a=i.end.column+e;i.end={line:o,column:n?Math.max(0,a):a}}return new t(this.sourceLines,this.sourceLoc,i)}};Gce=Object.defineProperty,Hce=(t,e,r)=>e in t?Gce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,vf=(t,e,r)=>(Hce(t,typeof e!="symbol"?e+"":e,r),r),Vl=class t{constructor(e,r=null){this.infos=e,vf(this,"length"),vf(this,"name"),vf(this,"mappings",[]),vf(this,"cachedSourceMap",null),vf(this,"cachedTabWidth"),this.length=e.length,this.name=r||null,this.name&&this.mappings.push(new iC(this,{start:this.firstPos(),end:this.lastPos()}))}toString(e){return this.sliceString(this.firstPos(),this.lastPos(),e)}getSourceMap(e,r){if(!e)return null;let n=this;function i(a){return a=a||{},a.file=e,r&&(a.sourceRoot=r),a}if(n.cachedSourceMap)return i(n.cachedSourceMap.toJSON());let s=new yy.default.SourceMapGenerator(i()),o={};return n.mappings.forEach(function(a){let c=a.sourceLines.skipSpaces(a.sourceLoc.start)||a.sourceLines.lastPos(),u=n.skipSpaces(a.targetLoc.start)||n.lastPos();for(;Et(c,a.sourceLoc.end)<0&&Et(u,a.targetLoc.end)<0;){a.sourceLines.charAt(c),n.charAt(u);let l=a.sourceLines.name;if(s.addMapping({source:l,original:{line:c.line,column:c.column},generated:{line:u.line,column:u.column}}),!sC.call(o,l)){let p=a.sourceLines.toString();s.setSourceContent(l,p),o[l]=p}n.nextPos(u,!0),a.sourceLines.nextPos(c,!0)}}),n.cachedSourceMap=s,s.toJSON()}bootstrapCharAt(e){let r=e.line,n=e.column,i=this.toString().split(oC),s=i[r-1];return typeof s>"u"?"":n===s.length&&r<i.length?`
|
|
1196
1196
|
`:n>=s.length?"":s.charAt(n)}charAt(e){let r=e.line,n=e.column,i=this,s=i.infos,o=s[r-1],a=n;if(typeof o>"u"||a<0)return"";let c=this.getIndentAt(r);return a<c?" ":(a+=o.sliceStart-c,a===o.sliceEnd&&r<this.length?`
|
|
1197
1197
|
`:a>=o.sliceEnd?"":o.line.charAt(a))}stripMargin(e,r){if(e===0)return this;if(r&&this.length===1)return this;let n=new t(this.infos.map(function(i,s){return i.line&&(s>0||!r)&&(i={...i,indent:Math.max(0,i.indent-e)}),i}));if(this.mappings.length>0){let i=n.mappings;this.mappings.forEach(function(s){i.push(s.indent(e,r,!0))})}return n}indent(e){if(e===0)return this;let r=new t(this.infos.map(function(n){return n.line&&!n.locked&&(n={...n,indent:n.indent+e}),n}));if(this.mappings.length>0){let n=r.mappings;this.mappings.forEach(function(i){n.push(i.indent(e))})}return r}indentTail(e){if(e===0)return this;if(this.length<2)return this;let r=new t(this.infos.map(function(n,i){return i>0&&n.line&&!n.locked&&(n={...n,indent:n.indent+e}),n}));if(this.mappings.length>0){let n=r.mappings;this.mappings.forEach(function(i){n.push(i.indent(e,!0))})}return r}lockIndentTail(){return this.length<2?this:new t(this.infos.map((e,r)=>({...e,locked:r>0})))}getIndentAt(e){return Math.max(this.infos[e-1].indent,0)}guessTabWidth(){if(typeof this.cachedTabWidth=="number")return this.cachedTabWidth;let e=[],r=0;for(let s=1,o=this.length;s<=o;++s){let a=this.infos[s-1],c=a.line.slice(a.sliceStart,a.sliceEnd);if(ql(c))continue;let u=Math.abs(a.indent-r);e[u]=~~e[u]+1,r=a.indent}let n=-1,i=2;for(let s=1;s<e.length;s+=1)sC.call(e,s)&&e[s]>n&&(n=e[s],i=s);return this.cachedTabWidth=i}startsWithComment(){if(this.infos.length===0)return!1;let e=this.infos[0],r=e.sliceStart,n=e.sliceEnd,i=e.line.slice(r,n).trim();return i.length===0||i.slice(0,2)==="//"||i.slice(0,2)==="/*"}isOnlyWhitespace(){return ql(this.toString())}isPrecededOnlyByWhitespace(e){let r=this.infos[e.line-1],n=Math.max(r.indent,0),i=e.column-n;if(i<=0)return!0;let s=r.sliceStart,o=Math.min(s+i,r.sliceEnd),a=r.line.slice(s,o);return ql(a)}getLineLength(e){let r=this.infos[e-1];return this.getIndentAt(e)+r.sliceEnd-r.sliceStart}nextPos(e,r=!1){let n=Math.max(e.line,0);return Math.max(e.column,0)<this.getLineLength(n)?(e.column+=1,r?!!this.skipSpaces(e,!1,!0):!0):n<this.length?(e.line+=1,e.column=0,r?!!this.skipSpaces(e,!1,!0):!0):!1}prevPos(e,r=!1){let n=e.line,i=e.column;if(i<1){if(n-=1,n<1)return!1;i=this.getLineLength(n)}else i=Math.min(i-1,this.getLineLength(n));return e.line=n,e.column=i,r?!!this.skipSpaces(e,!0,!0):!0}firstPos(){return{line:1,column:0}}lastPos(){return{line:this.length,column:this.getLineLength(this.length)}}skipSpaces(e,r=!1,n=!1){if(e?e=n?e:{line:e.line,column:e.column}:r?e=this.lastPos():e=this.firstPos(),r){for(;this.prevPos(e);)if(!ql(this.charAt(e))&&this.nextPos(e))return e;return null}else{for(;ql(this.charAt(e));)if(!this.nextPos(e))return null;return e}}trimLeft(){let e=this.skipSpaces(this.firstPos(),!1,!0);return e?this.slice(e):Bc}trimRight(){let e=this.skipSpaces(this.lastPos(),!0,!0);return e?this.slice(this.firstPos(),e):Bc}trim(){let e=this.skipSpaces(this.firstPos(),!1,!0);if(e===null)return Bc;let r=this.skipSpaces(this.lastPos(),!0,!0);return r===null?Bc:this.slice(e,r)}eachPos(e,r=this.firstPos(),n=!1){let i=this.firstPos();if(r&&(i.line=r.line,i.column=r.column),!(n&&!this.skipSpaces(i,!1,!0)))do e.call(this,i);while(this.nextPos(i,n))}bootstrapSlice(e,r){let n=this.toString().split(oC).slice(e.line-1,r.line);return n.length>0&&(n.push(n.pop().slice(0,r.column)),n[0]=n[0].slice(e.column)),ee(n.join(`
|
|
1198
1198
|
`))}slice(e,r){if(!r){if(!e)return this;r=this.lastPos()}if(!e)throw new Error("cannot slice with end but not start");let n=this.infos.slice(e.line-1,r.line);e.line===r.line?n[0]=zl(n[0],e.column,r.column):(n[0]=zl(n[0],e.column),n.push(zl(n.pop(),0,r.column)));let i=new t(n);if(this.mappings.length>0){let s=i.mappings;this.mappings.forEach(function(o){let a=o.slice(this,e,r);a&&s.push(a)},this)}return i}bootstrapSliceString(e,r,n){return this.slice(e,r).toString(n)}sliceString(e=this.firstPos(),r=this.lastPos(),n){let{tabWidth:i,useTabs:s,reuseWhitespace:o,lineTerminator:a}=by(n),c=[];for(let u=e.line;u<=r.line;++u){let l=this.infos[u-1];u===e.line?u===r.line?l=zl(l,e.column,r.column):l=zl(l,e.column):u===r.line&&(l=zl(l,0,r.column));let p=Math.max(l.indent,0),d=l.line.slice(0,l.sliceStart);if(o&&ql(d)&&_M(d,i)===p){c.push(l.line.slice(0,l.sliceEnd));continue}let f=0,m=p;s&&(f=Math.floor(p/i),m-=f*i);let g="";f>0&&(g+=new Array(f+1).join(" ")),m>0&&(g+=new Array(m+1).join(" ")),g+=l.line.slice(l.sliceStart,l.sliceEnd),c.push(g)}return c.join(a)}isEmpty(){return this.length<2&&this.getLineLength(1)<1}join(e){let r=this,n=[],i=[],s;function o(u){if(u!==null){if(s){let l=u.infos[0],p=new Array(l.indent+1).join(" "),d=n.length,f=Math.max(s.indent,0)+s.sliceEnd-s.sliceStart;s.line=s.line.slice(0,s.sliceEnd)+p+l.line.slice(l.sliceStart,l.sliceEnd),s.locked=s.locked||l.locked,s.sliceEnd=s.line.length,u.mappings.length>0&&u.mappings.forEach(function(m){i.push(m.add(d,f))})}else u.mappings.length>0&&i.push.apply(i,u.mappings);u.infos.forEach(function(l,p){(!s||p>0)&&(s={...l},n.push(s))})}}function a(u,l){l>0&&o(r),o(u)}if(e.map(function(u){let l=ee(u);return l.isEmpty()?null:l}).forEach((u,l)=>{r.isEmpty()?o(u):a(u,l)}),n.length<1)return Bc;let c=new t(n);return c.mappings=i,c}concat(...e){let r=[this];return r.push.apply(r,e),Bc.join(r)}},ay={},sC=ay.hasOwnProperty,Vce=10;Kce=/^\s*/,oC=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;Bc=ee(""),Kl=bs,FM=xs.array,Wce=xs.object,sM=new WeakMap;Zce=Wl,eue=xs.object,tue=xs.array;BM=function(e,r){this.lines=e,this.tokens=r,this.startTokenIndex=0,this.endTokenIndex=r.length,this.indent=0,this.seen=new Map},MM=BM.prototype;MM.copy=function(t){if(this.seen.has(t))return this.seen.get(t);if(tue.check(t)){let u=new Array(t.length);return this.seen.set(t,u),t.forEach(function(l,p){u[p]=this.copy(l)},this),u}if(!eue.check(t))return t;dC(t,this.lines);let e=Object.create(Object.getPrototypeOf(t),{original:{value:t,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(t,e);let r=t.loc,n=this.indent,i=n,s=this.startTokenIndex,o=this.endTokenIndex;r&&((t.type==="Block"||t.type==="Line"||t.type==="CommentBlock"||t.type==="CommentLine"||this.lines.isPrecededOnlyByWhitespace(r.start))&&(i=this.indent=r.start.column),r.lines=this.lines,r.tokens=this.tokens,r.indent=i,this.findTokenRange(r));let a=Object.keys(t),c=a.length;for(let u=0;u<c;++u){let l=a[u];l==="loc"||l==="tokens"&&t.type==="File"?e[l]=t[l]:e[l]=this.copy(t[l])}return this.indent=n,this.startTokenIndex=s,this.endTokenIndex=o,e};MM.findTokenRange=function(t){for(;this.startTokenIndex>0;){let e=t.tokens[this.startTokenIndex];if(Et(t.start,e.loc.start)<0)--this.startTokenIndex;else break}for(;this.endTokenIndex<t.tokens.length;){let e=t.tokens[this.endTokenIndex];if(Et(e.loc.end,t.end)<0)++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){let e=t.tokens[this.startTokenIndex];if(Et(e.loc.start,t.start)<0)++this.startTokenIndex;else break}for(t.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){let e=t.tokens[this.endTokenIndex-1];if(Et(t.end,e.loc.end)<0)--this.endTokenIndex;else break}t.end.token=this.endTokenIndex};tr=bs,rue=xs.array,nue=xs.number,aC={};[["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(t,e){t.forEach(function(r){aC[r]=e})});vs=function(e){this.stack=[e]},mn=vs.prototype;vs.from=function(t){if(t instanceof vs)return t.copy();if(t instanceof Rce){let e=Object.create(vs.prototype),r=[t.value];for(let n;n=t.parentPath;t=n)r.push(t.name,n.value);return e.stack=r.reverse(),e}return new vs(t)};mn.copy=function(){let e=Object.create(vs.prototype);return e.stack=this.stack.slice(0),e};mn.getName=function(){let e=this.stack,r=e.length;return r>1?e[r-2]:null};mn.getValue=function(){let e=this.stack;return e[e.length-1]};mn.valueIsDuplicate=function(){let t=this.stack,e=t.length-1;return t.lastIndexOf(t[e],e-1)>=0};mn.getNode=function(e=0){return LM(this,~~e)};mn.getParentNode=function(e=0){return LM(this,~~e+1)};mn.getRootValue=function(){let e=this.stack;return e.length%2===0?e[1]:e[0]};mn.call=function(e){let r=this.stack,n=r.length,i=r[n-1],s=arguments.length;for(let a=1;a<s;++a){let c=arguments[a];i=i[c],r.push(c,i)}let o=e(this);return r.length=n,o};mn.each=function(e){let r=this.stack,n=r.length,i=r[n-1],s=arguments.length;for(let o=1;o<s;++o){let a=arguments[o];i=i[a],r.push(a,i)}for(let o=0;o<i.length;++o)o in i&&(r.push(o,i[o]),e(this),r.length-=2);r.length=n};mn.map=function(e){let r=this.stack,n=r.length,i=r[n-1],s=arguments.length;for(let a=1;a<s;++a){let c=arguments[a];i=i[c],r.push(c,i)}let o=new Array(i.length);for(let a=0;a<i.length;++a)a in i&&(r.push(a,i[a]),o[a]=e(this,a),r.length-=2);return r.length=n,o};mn.hasParens=function(){let t=this.getNode(),e=this.getPrevToken(t);if(!e)return!1;let r=this.getNextToken(t);return r?!!(e.value==="("&&(r.value===")"||!this.canBeFirstInStatement()&&this.firstInStatement()&&!this.needsParens(!0))):!1};mn.getPrevToken=function(t){t=t||this.getNode();let e=t&&t.loc,r=e&&e.tokens;if(r&&e.start.token>0){let n=r[e.start.token-1];if(n){let i=this.getRootValue().loc;if(Et(i.start,n.loc.start)<=0)return n}}return null};mn.getNextToken=function(t){t=t||this.getNode();let e=t&&t.loc,r=e&&e.tokens;if(r&&e.end.token<r.length){let n=r[e.end.token];if(n){let i=this.getRootValue().loc;if(Et(n.loc.end,i.end)<=0)return n}}return null};mn.needsParens=function(t){let e=this.getNode();if(e.type==="AssignmentExpression"&&e.left.type==="ObjectPattern")return!0;let r=this.getParentNode(),n=this.getName();if(this.getValue()!==e||tr.Statement.check(e)||e.type==="Identifier"||r&&r.type==="ParenthesizedExpression")return!1;if(e.extra&&e.extra.parenthesized)return!0;if(!r)return!1;if(e.type==="UnaryExpression"&&r.type==="BinaryExpression"&&n==="left"&&r.left===e&&r.operator==="**")return!0;switch(e.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return r.type==="MemberExpression"&&n==="object"&&r.object===e;case"BinaryExpression":case"LogicalExpression":switch(r.type){case"CallExpression":return n==="callee"&&r.callee===e;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return n==="object"&&r.object===e;case"BinaryExpression":case"LogicalExpression":{let i=r.operator,s=aC[i],o=e.operator,a=aC[o];if(s>a||s===a&&n==="right")return!0;break}default:return!1}break;case"SequenceExpression":switch(r.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return n!=="expression";default:return!0}case"OptionalIndexedAccessType":return e.optional&&r.type==="IndexedAccessType";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return r.type==="NullableTypeAnnotation";case"Literal":return r.type==="MemberExpression"&&nue.check(e.value)&&n==="object"&&r.object===e;case"NumericLiteral":return r.type==="MemberExpression"&&n==="object"&&r.object===e;case"YieldExpression":case"AwaitExpression":case"AssignmentExpression":case"ConditionalExpression":switch(r.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":case"NewExpression":return n==="callee"&&r.callee===e;case"ConditionalExpression":return n==="test"&&r.test===e;case"MemberExpression":return n==="object"&&r.object===e;default:return!1}case"ArrowFunctionExpression":return tr.CallExpression.check(r)&&n==="callee"&&r.callee===e||tr.MemberExpression.check(r)&&n==="object"&&r.object===e||tr.TSAsExpression&&tr.TSAsExpression.check(r)&&n==="expression"&&r.expression===e?!0:$M(r);case"ObjectExpression":if(r.type==="ArrowFunctionExpression"&&n==="body"&&r.body===e)return!0;break;case"TSAsExpression":if(r.type==="ArrowFunctionExpression"&&n==="body"&&r.body===e&&e.expression.type==="ObjectExpression")return!0;break;case"CallExpression":if(n==="declaration"&&tr.ExportDefaultDeclaration.check(r)&&tr.FunctionExpression.check(e.callee))return!0}return r.type==="NewExpression"&&n==="callee"&&r.callee===e?cC(e):!!(t!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};mn.canBeFirstInStatement=function(){let t=this.getNode();return!(tr.FunctionExpression.check(t)||tr.ObjectExpression.check(t)||tr.ClassExpression.check(t))};mn.firstInStatement=function(){let t=this.stack,e,r,n,i;for(let s=t.length-1;s>=0;s-=2)if(tr.Node.check(t[s])&&(n=e,i=r,e=t[s-1],r=t[s]),!(!r||!i)){if(tr.BlockStatement.check(r)&&e==="body"&&n===0||tr.ExpressionStatement.check(r)&&n==="expression"||tr.AssignmentExpression.check(r)&&n==="left"||tr.ArrowFunctionExpression.check(r)&&n==="body")return!0;if(!(tr.SequenceExpression.check(r)&&t[s+1]==="expressions"&&n===0)&&!(tr.CallExpression.check(r)&&n==="callee")&&!(tr.MemberExpression.check(r)&&n==="object")&&!(tr.ConditionalExpression.check(r)&&n==="test")&&!($M(r)&&n==="left")&&!(tr.UnaryExpression.check(r)&&!r.prefix&&n==="argument"))return!1}return!0};Pf=bs.Printable,aM=bs.Expression,iue=bs.ReturnStatement,sue=bs.SourceLocation,Af=xs.object,uC=xs.array,oue=xs.string,hy=/[0-9a-z_$]/i,jM=function(e){let r=this,n=[];r.replace=function(i,s){oue.check(s)&&(s=ee(s)),n.push({lines:s,start:i.start,end:i.end})},r.get=function(i){i=i||{start:{line:1,column:0},end:{line:e.length,column:e.getLineLength(e.length)}};let s=i.start,o=[];function a(c,u){o.push(e.slice(c,u))}return n.sort((c,u)=>Et(c.start,u.start)).forEach(function(c){Et(s,c.start)>0||(a(s,c.start),o.push(c.lines),s=c.end)}),a(s,i.end),H(o)}},UM=jM.prototype;UM.tryToReprintComments=function(t,e,r){let n=this;if(!t.comments&&!e.comments)return!0;let i=vs.from(t),s=vs.from(e);i.stack.push("comments",cM(t)),s.stack.push("comments",cM(e));let o=[],a=zM(i,s,o);return a&&o.length>0&&o.forEach(function(c){let u=c.oldPath.getValue();n.replace(u.loc,r(c.newPath).indentTail(u.loc.indent))}),a};UM.deleteComments=function(t){if(!t.comments)return;let e=this;t.comments.forEach(function(r){r.leading?e.replace({start:r.loc.start,end:t.loc.lines.skipSpaces(r.loc.end,!1,!1)},""):r.trailing&&e.replace({start:t.loc.lines.skipSpaces(r.loc.start,!0,!1),end:r.loc.end},"")})};Er=bs,mC=xs.string,due=xs.object,gy=function(e,r){mC.assert(e),this.code=e,r&&(due.assert(r),this.map=r)},fue=gy.prototype,uM=!1;fue.toString=function(){return uM||(console.warn("Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged."),uM=!0),this.code};lM=new gy(""),mue=function(e){let r=e&&e.tabWidth;e=by(e),e.sourceFileName=null;function n(s,o){return s=Object.assign({},s,o),a=>i(a,s)}function i(s,o){if(o=o||{},o.includeComments)return oM(s,n(o,{includeComments:!1}));let a=e.tabWidth;if(!r){let l=s.getNode().loc;l&&l.lines&&l.lines.guessTabWidth&&(e.tabWidth=l.lines.guessTabWidth())}let c=aue(s),u=c?c(i):pM(s,e,o,n(o,{includeComments:!0,avoidRootParens:!1}));return e.tabWidth=a,u}this.print=function(s){if(!s)return lM;let o=i(vs.from(s),{includeComments:!0,avoidRootParens:!1});return new gy(o.toString(e),$ce(e.inputSourceMap,o.getSourceMap(e.sourceMapName,e.sourceRoot)))},this.printGenerically=function(s){if(!s)return lM;function o(l){return oM(l,p=>pM(p,e,{includeComments:!0,avoidRootParens:!1},o))}let a=vs.from(s),c=e.reuseWhitespace;e.reuseWhitespace=!1;let u=new gy(o(a).toString(e));return e.reuseWhitespace=c,u}};xue=Object.defineProperty,Due=(t,e,r)=>e in t?xue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,hM=(t,e,r)=>(Due(t,typeof e!="symbol"?e+"":e,r),r),fn=class extends Error{constructor(e,r){if(super(""),hM(this,"rawMessage"),hM(this,"options"),this.name="MagicastError",this.rawMessage=e,this.options=r,r?.ast&&r?.code&&r.ast.loc){let{line:n,column:i}=r.ast.loc.start,s=r.code.split(`
|
|
@@ -1244,7 +1244,7 @@ Restarting server after Builder Devtools update...
|
|
|
1244
1244
|
<h3>How's Devtools working for you?</h3>
|
|
1245
1245
|
<p>We'd love your feedback!</p>
|
|
1246
1246
|
</div>
|
|
1247
|
-
\`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.17.2"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media (max-width: 840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media (max-width: 590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
|
|
1247
|
+
\`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.17.3"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media (max-width: 840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media (max-width: 590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
|
|
1248
1248
|
</style>\`,Dt=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=lo+\`<main>
|
|
1249
1249
|
<aside>
|
|
1250
1250
|
<div class="logo"></div>
|
|
@@ -1283,7 +1283,7 @@ Restarting server after Builder Devtools update...
|
|
|
1283
1283
|
</nav>
|
|
1284
1284
|
</section>
|
|
1285
1285
|
</main>
|
|
1286
|
-
\`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.17.
|
|
1286
|
+
\`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.17.3"),document.body.appendChild(t));let e=document.querySelector("builder-dev-tools-edit");e||(e=document.createElement("builder-dev-tools-edit"),document.body.appendChild(e));let r=document.getElementById("builder-dev-tools-style");r||(r=document.createElement("style"),r.id="builder-dev-tools-style",r.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(r)),li(),Jn()}catch(t){console.error("Builder Devtools:",t)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v1.17.3"),mo());})();`)}async function k6(t){return I6(t,`<!doctype html>
|
|
1287
1287
|
<html lang="en" dir="ltr">
|
|
1288
1288
|
<head>
|
|
1289
1289
|
<meta charset="utf-8" />
|
|
@@ -1850,11 +1850,11 @@ exited with code ${F}`),D({isError:_,toolResult:P.trim(),title:`${d} command "${
|
|
|
1850
1850
|
|
|
1851
1851
|
NEXT UP!
|
|
1852
1852
|
The Agent found important files which content must be read. Use the "Read" tool to look at their content (specially if relevance is high):`;for(let d of o.important_files)p+=`
|
|
1853
|
-
- ${d.file_path}${d.offset?`:${d.offset+1}`:""}${d.offset&&d.limit?`-${d.limit+d.offset+1}`:""}${d.relevance?` (relevance: ${d.relevance})`:""}`}n({isError:!1,toolResult:p,title:"Agent Task Completed"});return}catch{n({isError:!0,toolResult:"Agent task failed",title:"Agent Task Failed"})}finally{await c()}})}function Nv(){let t=new Error("AbortError");return t.name="AbortError",t}var H1,Eye,Cye,p5=N(()=>{"use strict";h();hv();hv();o1();G$();Jc();K$();wy();u1();Iv();Yc();H1=Y(require("@sentry/node"),1);Pv();gi();Eye=["!**/.git/**","!**/.hg/**","!**/.svn/**","!**/.DS_Store","!**/.idea/**","!**/.vscode/**","!**/.cache/**","!**/coverage/**","!**/node_modules/**","!**/dist/**","!**/*.tsbuildinfo","!**/package-lock.json","!**/yarn.lock","!**/pnpm-lock.yaml","!**/*.min.js","!**/*.min.css","!**/*.bundle.js","!**/*.chunk.js","!**/builder-registry.*","!**/*.bundle.css","!**/*.map","!**/vendor/**","!**/target/**","!**/__pycache__/**","!**/*.pyc","!**/*.pyo","!**/*.class","!**/*.jar","!**/build/**/*.gradle","!**/*.lock","!**/*.log","!**/*.o","!**/*.a","!**/*.so","!**/*.dylib","!**/*.dll","!**/*.exe","!**/*.zip","!**/*.tar","!**/*.tar.gz","!**/*.tgz","!**/*.7z","!**/*.rar","!**/*.png","!**/*.jpg","!**/*.jpeg","!**/*.gif","!**/*.svg","!**/*.ico","!**/*.webp","!**/*.mp4","!**/*.mp3"],Cye=t=>{let e=["{","(","["],r=["}",")","]"],n=[],i=[],s=new Map([["{","}"],["(",")"],["[","]"]]);for(let o=0;o<=t.length-1;o++){let a=t[o];t[o-1]==="\\"&&t[o-2]!=="\\"||(e.includes(a)?n.push({location:o,value:a}):r.includes(a)&&i.push({location:o,value:a}))}for(let o of n){let{location:a,value:c}=o,u=i.findIndex(l=>l.location>a&&l.value===s.get(c));if(u>-1)i.splice(u,1);else return!0}return i.length>0}});function Fye(t){if(t.startsWith("ai/")){let e=t.split("/");if(e.length<3)return{sessionId:void 0,featureBranch:t};let r=e.pop();e.shift();let n=e.join("/");return{sessionId:r,featureBranch:n}}else if(t.startsWith("ai_")){let e=t.split("_");if(e.length<3)return{sessionId:void 0,featureBranch:t};let r=e.pop();e.shift();let n=e.join("_");return{sessionId:r,featureBranch:n}}return{sessionId:void 0,featureBranch:t}}function h5(t,e){return`ai_${t}_${e}`.trim()}var d5,f5,m5,Rv,Ov=N(()=>{"use strict";h();d5=Y(require("path"),1),f5=()=>process.env.FLY_APP_NAME!==void 0,m5=t=>d5.default.resolve(process.cwd(),t.workingDirectory??".");Rv=async({sys:t,gitWorkingDirectory:e,strict:r})=>{let n=await t.getRepoInfo(e);if(!n.hasGit)throw new Error("Git is not initialized");let i=n.currentBranch,s=Fye(i);if(r&&s.featureBranch===""&&i.startsWith("ai__"))throw new Error("AI branch is corrupted");return{currentBranch:i,featureBranch:s.featureBranch,sessionId:s.sessionId}}});function g5(t){let{filePath:e,forceWorkspace:r=!1,workspace:n,workingDirectory:i,sys:s,canCollapseWorkspace:o}=t,a=e;if(a.startsWith("/")?a=a.substring(1):a.startsWith("./")&&(a=a.substring(2)),!n?.folders?.length)return{resolvedPath:s.resolve(i,a)};if(n.folders.length===1&&n.folders[0].name==="."||o){let m=n.folders[0],g=s.resolve(i,m.path);return{resolvedPath:s.resolve(g,a),workspaceFolder:m}}let u=a.indexOf("/");if(u===-1){if(r){let m=n.folders[0],g=s.resolve(i,m.path);return{resolvedPath:s.resolve(g,a),workspaceFolder:m}}return{resolvedPath:s.resolve(i,a)}}let l=a.substring(0,u),p=a.substring(u+1),d=n.folders.find(m=>m.name?m.name===l:s.basename(m.path)===l);if(!d){if(!r)return{resolvedPath:s.resolve(i,a)};d=n.folders[0];let m=s.resolve(i,d.path);return{resolvedPath:s.resolve(m,a),workspaceFolder:d}}let f=s.resolve(i,d.path);return{resolvedPath:s.resolve(f,p),workspaceFolder:d}}function y5(t){let{absolutePath:e,workspace:r,workingDirectory:n,sys:i,canCollapseWorkspace:s}=t;if(!r?.folders?.length)return;let o=i.resolve(e);if(r.folders.length===1&&r.folders[0].name==="."){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}if(s&&r.folders.length===1){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}for(let c of r.folders){let u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);l.startsWith("/")&&(l=l.substring(1));let p=c.name||i.basename(c.path);if(p==="."&&r.folders.length>1)continue;return l?`${p}/${l}`:p}}if(s&&r.folders.length>0){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}}var v5=N(()=>{"use strict";h()});var st,V1,ye,uo,cm=N(()=>{h();(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(st||(st={}));(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(V1||(V1={}));ye=st.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),uo=t=>{switch(typeof t){case"undefined":return ye.undefined;case"string":return ye.string;case"number":return Number.isNaN(t)?ye.nan:ye.number;case"boolean":return ye.boolean;case"function":return ye.function;case"bigint":return ye.bigint;case"symbol":return ye.symbol;case"object":return Array.isArray(t)?ye.array:t===null?ye.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ye.promise:typeof Map<"u"&&t instanceof Map?ye.map:typeof Set<"u"&&t instanceof Set?ye.set:typeof Date<"u"&&t instanceof Date?ye.date:ye.object;default:return ye.unknown}}});var ae,kye,ei,Bv=N(()=>{h();cm();ae=st.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),kye=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),ei=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return i(this),n}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,st.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)if(i.path.length>0){let s=i.path[0];r[s]=r[s]||[],r[s].push(e(i))}else n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};ei.create=t=>new ei(t)});var Iye,Wo,K1=N(()=>{h();Bv();cm();Iye=(t,e)=>{let r;switch(t.code){case ae.invalid_type:t.received===ye.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case ae.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,st.jsonStringifyReplacer)}`;break;case ae.unrecognized_keys:r=`Unrecognized key(s) in object: ${st.joinValues(t.keys,", ")}`;break;case ae.invalid_union:r="Invalid input";break;case ae.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${st.joinValues(t.options)}`;break;case ae.invalid_enum_value:r=`Invalid enum value. Expected ${st.joinValues(t.options)}, received '${t.received}'`;break;case ae.invalid_arguments:r="Invalid function arguments";break;case ae.invalid_return_type:r="Invalid function return type";break;case ae.invalid_date:r="Invalid date";break;case ae.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:st.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case ae.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case ae.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case ae.custom:r="Invalid input";break;case ae.invalid_intersection_types:r="Intersection results could not be merged";break;case ae.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ae.not_finite:r="Number must be finite";break;default:r=e.defaultError,st.assertNever(t)}return{message:r}},Wo=Iye});function Nye(t){b5=t}function Ep(){return b5}var b5,Mv=N(()=>{h();K1();b5=Wo});function he(t,e){let r=Ep(),n=um({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Wo?void 0:Wo].filter(i=>!!i)});t.common.issues.push(n)}var um,Rye,on,Oe,iu,xn,Lv,$v,Ua,Cp,W1=N(()=>{h();Mv();K1();um=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:s,message:a}},Rye=[];on=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return Oe;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r){let s=await i.key,o=await i.value;n.push({key:s,value:o})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return Oe;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},Oe=Object.freeze({status:"aborted"}),iu=t=>({status:"dirty",value:t}),xn=t=>({status:"valid",value:t}),Lv=t=>t.status==="aborted",$v=t=>t.status==="dirty",Ua=t=>t.status==="valid",Cp=t=>typeof Promise<"u"&&t instanceof Promise});var x5=N(()=>{h()});var Ae,D5=N(()=>{h();(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Ae||(Ae={}))});function We(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>{let{message:c}=t;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:i}}function S5(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function Xye(t){return new RegExp(`^${S5(t)}$`)}function T5(t){let e=`${w5}T${S5(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function Qye(t,e){return!!((e==="v4"||!e)&&Gye.test(t)||(e==="v6"||!e)&&Vye.test(t))}function Zye(t,e){if(!jye.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||e&&i.alg!==e)}catch{return!1}}function eve(t,e){return!!((e==="v4"||!e)&&Hye.test(t)||(e==="v6"||!e)&&Kye.test(t))}function tve(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),o=Number.parseInt(e.toFixed(i).replace(".",""));return s%o/10**i}function wp(t){if(t instanceof ti){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=Ki.create(wp(n))}return new ti({...t._def,shape:()=>e})}else return t instanceof Xo?new Xo({...t._def,type:wp(t.element)}):t instanceof Ki?Ki.create(wp(t.unwrap())):t instanceof po?po.create(wp(t.unwrap())):t instanceof lo?lo.create(t.items.map(e=>wp(e))):t}function Y1(t,e){let r=uo(t),n=uo(e);if(t===e)return{valid:!0,data:t};if(r===ye.object&&n===ye.object){let i=st.objectKeys(e),s=st.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=Y1(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===ye.array&&n===ye.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],c=Y1(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===ye.date&&n===ye.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}function P5(t,e){return new hu({values:t,typeName:$e.ZodEnum,...We(e)})}function C5(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function A5(t,e={},r){return t?za.create().superRefine((n,i)=>{let s=t(n);if(s instanceof Promise)return s.then(o=>{if(!o){let a=C5(e,n),c=a.fatal??r??!0;i.addIssue({code:"custom",...a,fatal:c})}});if(!s){let o=C5(e,n),a=o.fatal??r??!0;i.addIssue({code:"custom",...o,fatal:a})}}):za.create()}var Wi,E5,Ze,Oye,Bye,Mye,Lye,$ye,jye,Uye,qye,zye,J1,Gye,Hye,Vye,Kye,Wye,Jye,w5,Yye,qa,su,ou,au,cu,Sp,uu,lu,za,Yo,Ps,Tp,Xo,ti,pu,Jo,jv,du,lo,Uv,Pp,Ap,qv,fu,mu,hu,gu,Ga,Ji,Ki,po,yu,vu,_p,rve,lm,pm,bu,nve,$e,ive,_5,F5,sve,ove,k5,ave,cve,uve,lve,pve,dve,fve,mve,hve,gve,yve,vve,bve,xve,Dve,Eve,Cve,wve,Sve,Tve,Pve,Ave,_ve,Fve,kve,Ive,Nve,Rve,Ove,Bve,Mve,Lve,$ve,jve,I5=N(()=>{h();Bv();Mv();D5();W1();cm();Wi=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},E5=(t,e)=>{if(Ua(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new ei(t.common.issues);return this._error=r,this._error}}};Ze=class{get description(){return this._def.description}_getType(e){return uo(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:uo(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new on,ctx:{common:e.parent.common,data:e.data,parsedType:uo(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Cp(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:uo(e)},i=this._parseSync({data:e,path:n.path,parent:n});return E5(n,i)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:uo(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:r});return Ua(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>Ua(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:uo(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(Cp(i)?i:Promise.resolve(i));return E5(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:ae.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new Ji({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Ki.create(this,this._def)}nullable(){return po.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xo.create(this)}promise(){return Ga.create(this,this._def)}or(e){return pu.create([this,e],this._def)}and(e){return du.create(this,e,this._def)}transform(e){return new Ji({...We(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new yu({...We(this._def),innerType:this,defaultValue:r,typeName:$e.ZodDefault})}brand(){return new lm({typeName:$e.ZodBranded,type:this,...We(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new vu({...We(this._def),innerType:this,catchValue:r,typeName:$e.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return pm.create(this,e)}readonly(){return bu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Oye=/^c[^\s-]{8,}$/i,Bye=/^[0-9a-z]+$/,Mye=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Lye=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$ye=/^[a-z0-9_-]{21}$/i,jye=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Uye=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,qye=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,zye="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Gye=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Hye=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Vye=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Kye=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Wye=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Jye=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,w5="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Yye=new RegExp(`^${w5}$`);qa=class t extends Ze{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ye.string){let s=this._getOrReturnCtx(e);return he(s,{code:ae.invalid_type,expected:ye.string,received:s.parsedType}),Oe}let n=new on,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),he(i,{code:ae.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),he(i,{code:ae.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?he(i,{code:ae.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&he(i,{code:ae.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")qye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"email",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")J1||(J1=new RegExp(zye,"u")),J1.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"emoji",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")Lye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"uuid",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")$ye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"nanoid",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")Oye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"cuid",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")Bye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"cuid2",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")Mye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"ulid",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),he(i,{validation:"url",code:ae.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"regex",code:ae.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?T5(s).test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?Yye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?Xye(s).test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?Uye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"duration",code:ae.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?Qye(e.data,s.version)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"ip",code:ae.invalid_string,message:s.message}),n.dirty()):s.kind==="jwt"?Zye(e.data,s.alg)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"jwt",code:ae.invalid_string,message:s.message}),n.dirty()):s.kind==="cidr"?eve(e.data,s.version)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"cidr",code:ae.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?Wye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"base64",code:ae.invalid_string,message:s.message}),n.dirty()):s.kind==="base64url"?Jye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"base64url",code:ae.invalid_string,message:s.message}),n.dirty()):st.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:ae.invalid_string,...Ae.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Ae.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Ae.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Ae.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Ae.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Ae.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Ae.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Ae.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Ae.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Ae.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Ae.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Ae.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Ae.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Ae.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Ae.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...Ae.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Ae.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...Ae.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...Ae.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...Ae.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...Ae.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...Ae.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...Ae.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...Ae.errToObj(r)})}nonempty(e){return this.min(1,Ae.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};qa.create=t=>new qa({checks:[],typeName:$e.ZodString,coerce:t?.coerce??!1,...We(t)});su=class t extends Ze{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ye.number){let s=this._getOrReturnCtx(e);return he(s,{code:ae.invalid_type,expected:ye.number,received:s.parsedType}),Oe}let n,i=new on;for(let s of this._def.checks)s.kind==="int"?st.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),he(n,{code:ae.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?tve(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),he(n,{code:ae.not_finite,message:s.message}),i.dirty()):st.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,Ae.toString(r))}gt(e,r){return this.setLimit("min",e,!1,Ae.toString(r))}lte(e,r){return this.setLimit("max",e,!0,Ae.toString(r))}lt(e,r){return this.setLimit("max",e,!1,Ae.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:Ae.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Ae.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:Ae.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:Ae.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&st.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};su.create=t=>new su({checks:[],typeName:$e.ZodNumber,coerce:t?.coerce||!1,...We(t)});ou=class t extends Ze{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==ye.bigint)return this._getInvalidInput(e);let n,i=new on;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):st.assertNever(s);return{status:i.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return he(r,{code:ae.invalid_type,expected:ye.bigint,received:r.parsedType}),Oe}gte(e,r){return this.setLimit("min",e,!0,Ae.toString(r))}gt(e,r){return this.setLimit("min",e,!1,Ae.toString(r))}lte(e,r){return this.setLimit("max",e,!0,Ae.toString(r))}lt(e,r){return this.setLimit("max",e,!1,Ae.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:Ae.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:Ae.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};ou.create=t=>new ou({checks:[],typeName:$e.ZodBigInt,coerce:t?.coerce??!1,...We(t)});au=class extends Ze{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ye.boolean){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.boolean,received:n.parsedType}),Oe}return xn(e.data)}};au.create=t=>new au({typeName:$e.ZodBoolean,coerce:t?.coerce||!1,...We(t)});cu=class t extends Ze{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ye.date){let s=this._getOrReturnCtx(e);return he(s,{code:ae.invalid_type,expected:ye.date,received:s.parsedType}),Oe}if(Number.isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return he(s,{code:ae.invalid_date}),Oe}let n=new on,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),he(i,{code:ae.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),he(i,{code:ae.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):st.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:Ae.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:Ae.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};cu.create=t=>new cu({checks:[],coerce:t?.coerce||!1,typeName:$e.ZodDate,...We(t)});Sp=class extends Ze{_parse(e){if(this._getType(e)!==ye.symbol){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.symbol,received:n.parsedType}),Oe}return xn(e.data)}};Sp.create=t=>new Sp({typeName:$e.ZodSymbol,...We(t)});uu=class extends Ze{_parse(e){if(this._getType(e)!==ye.undefined){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.undefined,received:n.parsedType}),Oe}return xn(e.data)}};uu.create=t=>new uu({typeName:$e.ZodUndefined,...We(t)});lu=class extends Ze{_parse(e){if(this._getType(e)!==ye.null){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.null,received:n.parsedType}),Oe}return xn(e.data)}};lu.create=t=>new lu({typeName:$e.ZodNull,...We(t)});za=class extends Ze{constructor(){super(...arguments),this._any=!0}_parse(e){return xn(e.data)}};za.create=t=>new za({typeName:$e.ZodAny,...We(t)});Yo=class extends Ze{constructor(){super(...arguments),this._unknown=!0}_parse(e){return xn(e.data)}};Yo.create=t=>new Yo({typeName:$e.ZodUnknown,...We(t)});Ps=class extends Ze{_parse(e){let r=this._getOrReturnCtx(e);return he(r,{code:ae.invalid_type,expected:ye.never,received:r.parsedType}),Oe}};Ps.create=t=>new Ps({typeName:$e.ZodNever,...We(t)});Tp=class extends Ze{_parse(e){if(this._getType(e)!==ye.undefined){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.void,received:n.parsedType}),Oe}return xn(e.data)}};Tp.create=t=>new Tp({typeName:$e.ZodVoid,...We(t)});Xo=class t extends Ze{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==ye.array)return he(r,{code:ae.invalid_type,expected:ye.array,received:r.parsedType}),Oe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(he(r,{code:o?ae.too_big:ae.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(he(r,{code:ae.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(he(r,{code:ae.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new Wi(r,o,r.path,a)))).then(o=>on.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new Wi(r,o,r.path,a)));return on.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:Ae.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:Ae.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:Ae.toString(r)}})}nonempty(e){return this.min(1,e)}};Xo.create=(t,e)=>new Xo({type:t,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...We(e)});ti=class t extends Ze{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=st.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==ye.object){let u=this._getOrReturnCtx(e);return he(u,{code:ae.invalid_type,expected:ye.object,received:u.parsedType}),Oe}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ps&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let l=s[u],p=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Wi(i,p,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Ps){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(u==="strict")a.length>0&&(he(i,{code:ae.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let p=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Wi(i,p,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let p=await l.key,d=await l.value;u.push({key:p,value:d,alwaysSet:l.alwaysSet})}return u}).then(u=>on.mergeObjectSync(n,u)):on.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return Ae.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{let i=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:Ae.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:$e.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let n of st.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let n of st.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}deepPartial(){return wp(this)}partial(e){let r={};for(let n of st.objectKeys(this.shape)){let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let n of st.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Ki;)s=s._def.innerType;r[n]=s}return new t({...this._def,shape:()=>r})}keyof(){return P5(st.objectKeys(this.shape))}};ti.create=(t,e)=>new ti({shape:()=>t,unknownKeys:"strip",catchall:Ps.create(),typeName:$e.ZodObject,...We(e)});ti.strictCreate=(t,e)=>new ti({shape:()=>t,unknownKeys:"strict",catchall:Ps.create(),typeName:$e.ZodObject,...We(e)});ti.lazycreate=(t,e)=>new ti({shape:t,unknownKeys:"strip",catchall:Ps.create(),typeName:$e.ZodObject,...We(e)});pu=class extends Ze{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new ei(a.ctx.common.issues));return he(r,{code:ae.invalid_union,unionErrors:o}),Oe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new ei(c));return he(r,{code:ae.invalid_union,unionErrors:a}),Oe}}get options(){return this._def.options}};pu.create=(t,e)=>new pu({options:t,typeName:$e.ZodUnion,...We(e)});Jo=t=>t instanceof fu?Jo(t.schema):t instanceof Ji?Jo(t.innerType()):t instanceof mu?[t.value]:t instanceof hu?t.options:t instanceof gu?st.objectValues(t.enum):t instanceof yu?Jo(t._def.innerType):t instanceof uu?[void 0]:t instanceof lu?[null]:t instanceof Ki?[void 0,...Jo(t.unwrap())]:t instanceof po?[null,...Jo(t.unwrap())]:t instanceof lm||t instanceof bu?Jo(t.unwrap()):t instanceof vu?Jo(t._def.innerType):[],jv=class t extends Ze{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ye.object)return he(r,{code:ae.invalid_type,expected:ye.object,received:r.parsedType}),Oe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(he(r,{code:ae.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Oe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=Jo(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new t({typeName:$e.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...We(n)})}};du=class extends Ze{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(Lv(s)||Lv(o))return Oe;let a=Y1(s.value,o.value);return a.valid?(($v(s)||$v(o))&&r.dirty(),{status:r.value,value:a.data}):(he(n,{code:ae.invalid_intersection_types}),Oe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};du.create=(t,e,r)=>new du({left:t,right:e,typeName:$e.ZodIntersection,...We(r)});lo=class t extends Ze{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ye.array)return he(n,{code:ae.invalid_type,expected:ye.array,received:n.parsedType}),Oe;if(n.data.length<this._def.items.length)return he(n,{code:ae.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Oe;!this._def.rest&&n.data.length>this._def.items.length&&(he(n,{code:ae.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new Wi(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>on.mergeArray(r,o)):on.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};lo.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new lo({items:t,typeName:$e.ZodTuple,rest:null,...We(e)})};Uv=class t extends Ze{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ye.object)return he(n,{code:ae.invalid_type,expected:ye.object,received:n.parsedType}),Oe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new Wi(n,a,n.path,a)),value:o._parse(new Wi(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?on.mergeObjectAsync(r,i):on.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof Ze?new t({keyType:e,valueType:r,typeName:$e.ZodRecord,...We(n)}):new t({keyType:qa.create(),valueType:e,typeName:$e.ZodRecord,...We(r)})}},Pp=class extends Ze{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ye.map)return he(n,{code:ae.invalid_type,expected:ye.map,received:n.parsedType}),Oe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],u)=>({key:i._parse(new Wi(n,a,n.path,[u,"key"])),value:s._parse(new Wi(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return Oe;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return Oe;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};Pp.create=(t,e,r)=>new Pp({valueType:e,keyType:t,typeName:$e.ZodMap,...We(r)});Ap=class t extends Ze{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ye.set)return he(n,{code:ae.invalid_type,expected:ye.set,received:n.parsedType}),Oe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(he(n,{code:ae.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(he(n,{code:ae.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let l of c){if(l.status==="aborted")return Oe;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new Wi(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:Ae.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:Ae.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Ap.create=(t,e)=>new Ap({valueType:t,minSize:null,maxSize:null,typeName:$e.ZodSet,...We(e)});qv=class t extends Ze{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ye.function)return he(r,{code:ae.invalid_type,expected:ye.function,received:r.parsedType}),Oe;function n(a,c){return um({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ep(),Wo].filter(u=>!!u),issueData:{code:ae.invalid_arguments,argumentsError:c}})}function i(a,c){return um({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ep(),Wo].filter(u=>!!u),issueData:{code:ae.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Ga){let a=this;return xn(async function(...c){let u=new ei([]),l=await a._def.args.parseAsync(c,s).catch(f=>{throw u.addIssue(n(c,f)),u}),p=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(p,s).catch(f=>{throw u.addIssue(i(p,f)),u})})}else{let a=this;return xn(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new ei([n(c,u.error)]);let l=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(l,s);if(!p.success)throw new ei([i(l,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:lo.create(e).rest(Yo.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||lo.create([]).rest(Yo.create()),returns:r||Yo.create(),typeName:$e.ZodFunction,...We(n)})}},fu=class extends Ze{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};fu.create=(t,e)=>new fu({getter:t,typeName:$e.ZodLazy,...We(e)});mu=class extends Ze{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return he(r,{received:r.data,code:ae.invalid_literal,expected:this._def.value}),Oe}return{status:"valid",value:e.data}}get value(){return this._def.value}};mu.create=(t,e)=>new mu({value:t,typeName:$e.ZodLiteral,...We(e)});hu=class t extends Ze{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return he(r,{expected:st.joinValues(n),received:r.parsedType,code:ae.invalid_type}),Oe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return he(r,{received:r.data,code:ae.invalid_enum_value,options:n}),Oe}return xn(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};hu.create=P5;gu=class extends Ze{_parse(e){let r=st.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==ye.string&&n.parsedType!==ye.number){let i=st.objectValues(r);return he(n,{expected:st.joinValues(i),received:n.parsedType,code:ae.invalid_type}),Oe}if(this._cache||(this._cache=new Set(st.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let i=st.objectValues(r);return he(n,{received:n.data,code:ae.invalid_enum_value,options:i}),Oe}return xn(e.data)}get enum(){return this._def.values}};gu.create=(t,e)=>new gu({values:t,typeName:$e.ZodNativeEnum,...We(e)});Ga=class extends Ze{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ye.promise&&r.common.async===!1)return he(r,{code:ae.invalid_type,expected:ye.promise,received:r.parsedType}),Oe;let n=r.parsedType===ye.promise?r.data:Promise.resolve(r.data);return xn(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ga.create=(t,e)=>new Ga({type:t,typeName:$e.ZodPromise,...We(e)});Ji=class extends Ze{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{he(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Oe;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?Oe:c.status==="dirty"?iu(c.value):r.value==="dirty"?iu(c.value):c});{if(r.value==="aborted")return Oe;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?Oe:a.status==="dirty"?iu(a.value):r.value==="dirty"?iu(a.value):a}}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Oe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Oe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ua(o))return Oe;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Ua(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):Oe);st.assertNever(i)}};Ji.create=(t,e,r)=>new Ji({schema:t,typeName:$e.ZodEffects,effect:e,...We(r)});Ji.createWithPreprocess=(t,e,r)=>new Ji({schema:e,effect:{type:"preprocess",transform:t},typeName:$e.ZodEffects,...We(r)});Ki=class extends Ze{_parse(e){return this._getType(e)===ye.undefined?xn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ki.create=(t,e)=>new Ki({innerType:t,typeName:$e.ZodOptional,...We(e)});po=class extends Ze{_parse(e){return this._getType(e)===ye.null?xn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};po.create=(t,e)=>new po({innerType:t,typeName:$e.ZodNullable,...We(e)});yu=class extends Ze{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===ye.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};yu.create=(t,e)=>new yu({innerType:t,typeName:$e.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...We(e)});vu=class extends Ze{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Cp(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ei(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ei(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};vu.create=(t,e)=>new vu({innerType:t,typeName:$e.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...We(e)});_p=class extends Ze{_parse(e){if(this._getType(e)!==ye.nan){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.nan,received:n.parsedType}),Oe}return{status:"valid",value:e.data}}};_p.create=t=>new _p({typeName:$e.ZodNaN,...We(t)});rve=Symbol("zod_brand"),lm=class extends Ze{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},pm=class t extends Ze{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Oe:s.status==="dirty"?(r.dirty(),iu(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Oe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:$e.ZodPipeline})}},bu=class extends Ze{_parse(e){let r=this._def.innerType._parse(e),n=i=>(Ua(i)&&(i.value=Object.freeze(i.value)),i);return Cp(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};bu.create=(t,e)=>new bu({innerType:t,typeName:$e.ZodReadonly,...We(e)});nve={object:ti.lazycreate};(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})($e||($e={}));ive=(t,e={message:`Input not instance of ${t.name}`})=>A5(r=>r instanceof t,e),_5=qa.create,F5=su.create,sve=_p.create,ove=ou.create,k5=au.create,ave=cu.create,cve=Sp.create,uve=uu.create,lve=lu.create,pve=za.create,dve=Yo.create,fve=Ps.create,mve=Tp.create,hve=Xo.create,gve=ti.create,yve=ti.strictCreate,vve=pu.create,bve=jv.create,xve=du.create,Dve=lo.create,Eve=Uv.create,Cve=Pp.create,wve=Ap.create,Sve=qv.create,Tve=fu.create,Pve=mu.create,Ave=hu.create,_ve=gu.create,Fve=Ga.create,kve=Ji.create,Ive=Ki.create,Nve=po.create,Rve=Ji.createWithPreprocess,Ove=pm.create,Bve=()=>_5().optional(),Mve=()=>F5().optional(),Lve=()=>k5().optional(),$ve={string:(t=>qa.create({...t,coerce:!0})),number:(t=>su.create({...t,coerce:!0})),boolean:(t=>au.create({...t,coerce:!0})),bigint:(t=>ou.create({...t,coerce:!0})),date:(t=>cu.create({...t,coerce:!0}))},jve=Oe});var T={};Mh(T,{BRAND:()=>rve,DIRTY:()=>iu,EMPTY_PATH:()=>Rye,INVALID:()=>Oe,NEVER:()=>jve,OK:()=>xn,ParseStatus:()=>on,Schema:()=>Ze,ZodAny:()=>za,ZodArray:()=>Xo,ZodBigInt:()=>ou,ZodBoolean:()=>au,ZodBranded:()=>lm,ZodCatch:()=>vu,ZodDate:()=>cu,ZodDefault:()=>yu,ZodDiscriminatedUnion:()=>jv,ZodEffects:()=>Ji,ZodEnum:()=>hu,ZodError:()=>ei,ZodFirstPartyTypeKind:()=>$e,ZodFunction:()=>qv,ZodIntersection:()=>du,ZodIssueCode:()=>ae,ZodLazy:()=>fu,ZodLiteral:()=>mu,ZodMap:()=>Pp,ZodNaN:()=>_p,ZodNativeEnum:()=>gu,ZodNever:()=>Ps,ZodNull:()=>lu,ZodNullable:()=>po,ZodNumber:()=>su,ZodObject:()=>ti,ZodOptional:()=>Ki,ZodParsedType:()=>ye,ZodPipeline:()=>pm,ZodPromise:()=>Ga,ZodReadonly:()=>bu,ZodRecord:()=>Uv,ZodSchema:()=>Ze,ZodSet:()=>Ap,ZodString:()=>qa,ZodSymbol:()=>Sp,ZodTransformer:()=>Ji,ZodTuple:()=>lo,ZodType:()=>Ze,ZodUndefined:()=>uu,ZodUnion:()=>pu,ZodUnknown:()=>Yo,ZodVoid:()=>Tp,addIssueToContext:()=>he,any:()=>pve,array:()=>hve,bigint:()=>ove,boolean:()=>k5,coerce:()=>$ve,custom:()=>A5,date:()=>ave,datetimeRegex:()=>T5,defaultErrorMap:()=>Wo,discriminatedUnion:()=>bve,effect:()=>kve,enum:()=>Ave,function:()=>Sve,getErrorMap:()=>Ep,getParsedType:()=>uo,instanceof:()=>ive,intersection:()=>xve,isAborted:()=>Lv,isAsync:()=>Cp,isDirty:()=>$v,isValid:()=>Ua,late:()=>nve,lazy:()=>Tve,literal:()=>Pve,makeIssue:()=>um,map:()=>Cve,nan:()=>sve,nativeEnum:()=>_ve,never:()=>fve,null:()=>lve,nullable:()=>Nve,number:()=>F5,object:()=>gve,objectUtil:()=>V1,oboolean:()=>Lve,onumber:()=>Mve,optional:()=>Ive,ostring:()=>Bve,pipeline:()=>Ove,preprocess:()=>Rve,promise:()=>Fve,quotelessJson:()=>kye,record:()=>Eve,set:()=>wve,setErrorMap:()=>Nye,strictObject:()=>yve,string:()=>_5,symbol:()=>cve,transformer:()=>kve,tuple:()=>Dve,undefined:()=>uve,union:()=>vve,unknown:()=>dve,util:()=>st,void:()=>mve});var X1=N(()=>{h();Mv();W1();x5();cm();I5();Bv()});var N5=N(()=>{h();X1();X1()});var Q1,R5,zv,O5,B5,Uve,Qi,ri,dm,fo,Zi,Gv,M5,L5,$5,j5,U5,Z1,Yi,q5,z5,G5,xu,Hv,qve,fm,mm,H5,zve,Gve,Hve,eT,Vve,Vv,Kve,Kv,Wv,Jv,V5,K5,tT,W5,J5,Wve,Jve,rT,Yve,nT,Xve,iT,Qve,Zve,ebe,tbe,rbe,nbe,ibe,sT,sbe,oT,aT,cT,obe,abe,Y5,cbe,uT,ube,lbe,pbe,dbe,lT,Yv,mYe,fbe,mbe,X5,hbe,gbe,ybe,vbe,bbe,xbe,Dbe,Ebe,Cbe,wbe,Sbe,Tbe,Pbe,Abe,_be,Fbe,kbe,pT,Ibe,Nbe,Rbe,Obe,hYe,gYe,yYe,vYe,bYe,xYe,Xi,Xv=N(()=>{h();N5();Q1="2025-06-18",R5=[Q1,"2025-03-26","2024-11-05","2024-10-07"],zv="2.0",O5=T.union([T.string(),T.number().int()]),B5=T.string(),Uve=T.object({progressToken:T.optional(O5)}).passthrough(),Qi=T.object({_meta:T.optional(Uve)}).passthrough(),ri=T.object({method:T.string(),params:T.optional(Qi)}),dm=T.object({_meta:T.optional(T.object({}).passthrough())}).passthrough(),fo=T.object({method:T.string(),params:T.optional(dm)}),Zi=T.object({_meta:T.optional(T.object({}).passthrough())}).passthrough(),Gv=T.union([T.string(),T.number().int()]),M5=T.object({jsonrpc:T.literal(zv),id:Gv}).merge(ri).strict(),L5=t=>M5.safeParse(t).success,$5=T.object({jsonrpc:T.literal(zv)}).merge(fo).strict(),j5=t=>$5.safeParse(t).success,U5=T.object({jsonrpc:T.literal(zv),id:Gv,result:Zi}).strict(),Z1=t=>U5.safeParse(t).success;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError"})(Yi||(Yi={}));q5=T.object({jsonrpc:T.literal(zv),id:Gv,error:T.object({code:T.number().int(),message:T.string(),data:T.optional(T.unknown())})}).strict(),z5=t=>q5.safeParse(t).success,G5=T.union([M5,$5,U5,q5]),xu=Zi.strict(),Hv=fo.extend({method:T.literal("notifications/cancelled"),params:dm.extend({requestId:Gv,reason:T.string().optional()})}),qve=T.object({src:T.string(),mimeType:T.optional(T.string()),sizes:T.optional(T.array(T.string()))}).passthrough(),fm=T.object({icons:T.array(qve).optional()}).passthrough(),mm=T.object({name:T.string(),title:T.optional(T.string())}).passthrough(),H5=mm.extend({version:T.string(),websiteUrl:T.optional(T.string())}).merge(fm),zve=T.object({experimental:T.optional(T.object({}).passthrough()),sampling:T.optional(T.object({}).passthrough()),elicitation:T.optional(T.object({}).passthrough()),roots:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough())}).passthrough(),Gve=ri.extend({method:T.literal("initialize"),params:Qi.extend({protocolVersion:T.string(),capabilities:zve,clientInfo:H5})}),Hve=T.object({experimental:T.optional(T.object({}).passthrough()),logging:T.optional(T.object({}).passthrough()),completions:T.optional(T.object({}).passthrough()),prompts:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough()),resources:T.optional(T.object({subscribe:T.optional(T.boolean()),listChanged:T.optional(T.boolean())}).passthrough()),tools:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough())}).passthrough(),eT=Zi.extend({protocolVersion:T.string(),capabilities:Hve,serverInfo:H5,instructions:T.optional(T.string())}),Vve=fo.extend({method:T.literal("notifications/initialized")}),Vv=ri.extend({method:T.literal("ping")}),Kve=T.object({progress:T.number(),total:T.optional(T.number()),message:T.optional(T.string())}).passthrough(),Kv=fo.extend({method:T.literal("notifications/progress"),params:dm.merge(Kve).extend({progressToken:O5})}),Wv=ri.extend({params:Qi.extend({cursor:T.optional(B5)}).optional()}),Jv=Zi.extend({nextCursor:T.optional(B5)}),V5=T.object({uri:T.string(),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).passthrough(),K5=V5.extend({text:T.string()}),tT=T.string().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),W5=V5.extend({blob:tT}),J5=mm.extend({uri:T.string(),description:T.optional(T.string()),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).merge(fm),Wve=mm.extend({uriTemplate:T.string(),description:T.optional(T.string()),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).merge(fm),Jve=Wv.extend({method:T.literal("resources/list")}),rT=Jv.extend({resources:T.array(J5)}),Yve=Wv.extend({method:T.literal("resources/templates/list")}),nT=Jv.extend({resourceTemplates:T.array(Wve)}),Xve=ri.extend({method:T.literal("resources/read"),params:Qi.extend({uri:T.string()})}),iT=Zi.extend({contents:T.array(T.union([K5,W5]))}),Qve=fo.extend({method:T.literal("notifications/resources/list_changed")}),Zve=ri.extend({method:T.literal("resources/subscribe"),params:Qi.extend({uri:T.string()})}),ebe=ri.extend({method:T.literal("resources/unsubscribe"),params:Qi.extend({uri:T.string()})}),tbe=fo.extend({method:T.literal("notifications/resources/updated"),params:dm.extend({uri:T.string()})}),rbe=T.object({name:T.string(),description:T.optional(T.string()),required:T.optional(T.boolean())}).passthrough(),nbe=mm.extend({description:T.optional(T.string()),arguments:T.optional(T.array(rbe)),_meta:T.optional(T.object({}).passthrough())}).merge(fm),ibe=Wv.extend({method:T.literal("prompts/list")}),sT=Jv.extend({prompts:T.array(nbe)}),sbe=ri.extend({method:T.literal("prompts/get"),params:Qi.extend({name:T.string(),arguments:T.optional(T.record(T.string()))})}),oT=T.object({type:T.literal("text"),text:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),aT=T.object({type:T.literal("image"),data:tT,mimeType:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),cT=T.object({type:T.literal("audio"),data:tT,mimeType:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),obe=T.object({type:T.literal("resource"),resource:T.union([K5,W5]),_meta:T.optional(T.object({}).passthrough())}).passthrough(),abe=J5.extend({type:T.literal("resource_link")}),Y5=T.union([oT,aT,cT,abe,obe]),cbe=T.object({role:T.enum(["user","assistant"]),content:Y5}).passthrough(),uT=Zi.extend({description:T.optional(T.string()),messages:T.array(cbe)}),ube=fo.extend({method:T.literal("notifications/prompts/list_changed")}),lbe=T.object({title:T.optional(T.string()),readOnlyHint:T.optional(T.boolean()),destructiveHint:T.optional(T.boolean()),idempotentHint:T.optional(T.boolean()),openWorldHint:T.optional(T.boolean())}).passthrough(),pbe=mm.extend({description:T.optional(T.string()),inputSchema:T.object({type:T.literal("object"),properties:T.optional(T.object({}).passthrough()),required:T.optional(T.array(T.string()))}).passthrough(),outputSchema:T.optional(T.object({type:T.literal("object"),properties:T.optional(T.object({}).passthrough()),required:T.optional(T.array(T.string()))}).passthrough()),annotations:T.optional(lbe),_meta:T.optional(T.object({}).passthrough())}).merge(fm),dbe=Wv.extend({method:T.literal("tools/list")}),lT=Jv.extend({tools:T.array(pbe)}),Yv=Zi.extend({content:T.array(Y5).default([]),structuredContent:T.object({}).passthrough().optional(),isError:T.optional(T.boolean())}),mYe=Yv.or(Zi.extend({toolResult:T.unknown()})),fbe=ri.extend({method:T.literal("tools/call"),params:Qi.extend({name:T.string(),arguments:T.optional(T.record(T.unknown()))})}),mbe=fo.extend({method:T.literal("notifications/tools/list_changed")}),X5=T.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),hbe=ri.extend({method:T.literal("logging/setLevel"),params:Qi.extend({level:X5})}),gbe=fo.extend({method:T.literal("notifications/message"),params:dm.extend({level:X5,logger:T.optional(T.string()),data:T.unknown()})}),ybe=T.object({name:T.string().optional()}).passthrough(),vbe=T.object({hints:T.optional(T.array(ybe)),costPriority:T.optional(T.number().min(0).max(1)),speedPriority:T.optional(T.number().min(0).max(1)),intelligencePriority:T.optional(T.number().min(0).max(1))}).passthrough(),bbe=T.object({role:T.enum(["user","assistant"]),content:T.union([oT,aT,cT])}).passthrough(),xbe=ri.extend({method:T.literal("sampling/createMessage"),params:Qi.extend({messages:T.array(bbe),systemPrompt:T.optional(T.string()),includeContext:T.optional(T.enum(["none","thisServer","allServers"])),temperature:T.optional(T.number()),maxTokens:T.number().int(),stopSequences:T.optional(T.array(T.string())),metadata:T.optional(T.object({}).passthrough()),modelPreferences:T.optional(vbe)})}),Dbe=Zi.extend({model:T.string(),stopReason:T.optional(T.enum(["endTurn","stopSequence","maxTokens"]).or(T.string())),role:T.enum(["user","assistant"]),content:T.discriminatedUnion("type",[oT,aT,cT])}),Ebe=T.object({type:T.literal("boolean"),title:T.optional(T.string()),description:T.optional(T.string()),default:T.optional(T.boolean())}).passthrough(),Cbe=T.object({type:T.literal("string"),title:T.optional(T.string()),description:T.optional(T.string()),minLength:T.optional(T.number()),maxLength:T.optional(T.number()),format:T.optional(T.enum(["email","uri","date","date-time"]))}).passthrough(),wbe=T.object({type:T.enum(["number","integer"]),title:T.optional(T.string()),description:T.optional(T.string()),minimum:T.optional(T.number()),maximum:T.optional(T.number())}).passthrough(),Sbe=T.object({type:T.literal("string"),title:T.optional(T.string()),description:T.optional(T.string()),enum:T.array(T.string()),enumNames:T.optional(T.array(T.string()))}).passthrough(),Tbe=T.union([Ebe,Cbe,wbe,Sbe]),Pbe=ri.extend({method:T.literal("elicitation/create"),params:Qi.extend({message:T.string(),requestedSchema:T.object({type:T.literal("object"),properties:T.record(T.string(),Tbe),required:T.optional(T.array(T.string()))}).passthrough()})}),Abe=Zi.extend({action:T.enum(["accept","decline","cancel"]),content:T.optional(T.record(T.string(),T.unknown()))}),_be=T.object({type:T.literal("ref/resource"),uri:T.string()}).passthrough(),Fbe=T.object({type:T.literal("ref/prompt"),name:T.string()}).passthrough(),kbe=ri.extend({method:T.literal("completion/complete"),params:Qi.extend({ref:T.union([Fbe,_be]),argument:T.object({name:T.string(),value:T.string()}).passthrough(),context:T.optional(T.object({arguments:T.optional(T.record(T.string(),T.string()))}))})}),pT=Zi.extend({completion:T.object({values:T.array(T.string()).max(100),total:T.optional(T.number().int()),hasMore:T.optional(T.boolean())}).passthrough()}),Ibe=T.object({uri:T.string().startsWith("file://"),name:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).passthrough(),Nbe=ri.extend({method:T.literal("roots/list")}),Rbe=Zi.extend({roots:T.array(Ibe)}),Obe=fo.extend({method:T.literal("notifications/roots/list_changed")}),hYe=T.union([Vv,Gve,kbe,hbe,sbe,ibe,Jve,Yve,Xve,Zve,ebe,fbe,dbe]),gYe=T.union([Hv,Kv,Vve,Obe]),yYe=T.union([xu,Dbe,Abe,Rbe]),vYe=T.union([Vv,xbe,Pbe,Nbe]),bYe=T.union([Hv,Kv,gbe,tbe,Qve,mbe,ube]),xYe=T.union([xu,eT,pT,uT,sT,rT,nT,iT,Yv,lT]),Xi=class extends Error{constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n,this.name="McpError"}}});function Q5(t,e){return Object.entries(e).reduce((r,[n,i])=>(i&&typeof i=="object"?r[n]=r[n]?{...r[n],...i}:i:r[n]=i,r),{...t})}var Bbe,Qv,Z5=N(()=>{h();Xv();Bbe=6e4,Qv=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this.setNotificationHandler(Hv,r=>{let n=this._requestHandlerAbortControllers.get(r.params.requestId);n?.abort(r.params.reason)}),this.setNotificationHandler(Kv,r=>{this._onprogress(r)}),this.setRequestHandler(Vv,r=>({}))}_setupTimeout(e,r,n,i,s=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:s,onTimeout:i})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),new Xi(Yi.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){var r,n,i;this._transport=e;let s=(r=this.transport)===null||r===void 0?void 0:r.onclose;this._transport.onclose=()=>{s?.(),this._onclose()};let o=(n=this.transport)===null||n===void 0?void 0:n.onerror;this._transport.onerror=c=>{o?.(c),this._onerror(c)};let a=(i=this._transport)===null||i===void 0?void 0:i.onmessage;this._transport.onmessage=(c,u)=>{a?.(c,u),Z1(c)||z5(c)?this._onresponse(c):L5(c)?this._onrequest(c,u):j5(c)?this._onnotification(c):this._onerror(new Error(`Unknown message type: ${JSON.stringify(c)}`))},await this._transport.start()}_onclose(){var e;let r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear(),this._transport=void 0,(e=this.onclose)===null||e===void 0||e.call(this);let n=new Xi(Yi.ConnectionClosed,"Connection closed");for(let i of r.values())i(n)}_onerror(e){var r;(r=this.onerror)===null||r===void 0||r.call(this,e)}_onnotification(e){var r;let n=(r=this._notificationHandlers.get(e.method))!==null&&r!==void 0?r:this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(e)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(e,r){var n,i;let s=(n=this._requestHandlers.get(e.method))!==null&&n!==void 0?n:this.fallbackRequestHandler,o=this._transport;if(s===void 0){o?.send({jsonrpc:"2.0",id:e.id,error:{code:Yi.MethodNotFound,message:"Method not found"}}).catch(u=>this._onerror(new Error(`Failed to send an error response: ${u}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let c={signal:a.signal,sessionId:o?.sessionId,_meta:(i=e.params)===null||i===void 0?void 0:i._meta,sendNotification:u=>this.notification(u,{relatedRequestId:e.id}),sendRequest:(u,l,p)=>this.request(u,l,{...p,relatedRequestId:e.id}),authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo};Promise.resolve().then(()=>s(e,c)).then(u=>{if(!a.signal.aborted)return o?.send({result:u,jsonrpc:"2.0",id:e.id})},u=>{var l;if(!a.signal.aborted)return o?.send({jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(u.code)?u.code:Yi.InternalError,message:(l=u.message)!==null&&l!==void 0?l:"Internal error"}})}).catch(u=>this._onerror(new Error(`Failed to send response: ${u}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...n}=e.params,i=Number(r),s=this._progressHandlers.get(i);if(!s){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(c){o(c);return}s(n)}_onresponse(e){let r=Number(e.id),n=this._responseHandlers.get(r);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}if(this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),Z1(e))n(e);else{let i=new Xi(e.error.code,e.error.message,e.error.data);n(i)}}get transport(){return this._transport}async close(){var e;await((e=this._transport)===null||e===void 0?void 0:e.close())}request(e,r,n){let{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}=n??{};return new Promise((a,c)=>{var u,l,p,d,f,m;if(!this._transport){c(new Error("Not connected"));return}((u=this._options)===null||u===void 0?void 0:u.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(e.method),(l=n?.signal)===null||l===void 0||l.throwIfAborted();let g=this._requestMessageId++,y={...e,jsonrpc:"2.0",id:g};n?.onprogress&&(this._progressHandlers.set(g,n.onprogress),y.params={...e.params,_meta:{...((p=e.params)===null||p===void 0?void 0:p._meta)||{},progressToken:g}});let v=x=>{var b;this._responseHandlers.delete(g),this._progressHandlers.delete(g),this._cleanupTimeout(g),(b=this._transport)===null||b===void 0||b.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:g,reason:String(x)}},{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}).catch(C=>this._onerror(new Error(`Failed to send cancellation: ${C}`))),c(x)};this._responseHandlers.set(g,x=>{var b;if(!(!((b=n?.signal)===null||b===void 0)&&b.aborted)){if(x instanceof Error)return c(x);try{let C=r.parse(x.result);a(C)}catch(C){c(C)}}}),(d=n?.signal)===null||d===void 0||d.addEventListener("abort",()=>{var x;v((x=n?.signal)===null||x===void 0?void 0:x.reason)});let E=(f=n?.timeout)!==null&&f!==void 0?f:Bbe,D=()=>v(new Xi(Yi.RequestTimeout,"Request timed out",{timeout:E}));this._setupTimeout(g,E,n?.maxTotalTimeout,D,(m=n?.resetTimeoutOnProgress)!==null&&m!==void 0?m:!1),this._transport.send(y,{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}).catch(x=>{this._cleanupTimeout(g),c(x)})})}async notification(e,r){var n,i;if(!this._transport)throw new Error("Not connected");if(this.assertNotificationCapability(e.method),((i=(n=this._options)===null||n===void 0?void 0:n.debouncedNotificationMethods)!==null&&i!==void 0?i:[]).includes(e.method)&&!e.params&&!r?.relatedRequestId){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{var c;if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let u={...e,jsonrpc:"2.0"};(c=this._transport)===null||c===void 0||c.send(u,r).catch(l=>this._onerror(l))});return}let a={...e,jsonrpc:"2.0"};await this._transport.send(a,r)}setRequestHandler(e,r){let n=e.shape.method.value;this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(i,s)=>Promise.resolve(r(e.parse(i),s)))}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){this._notificationHandlers.set(e.shape.method.value,n=>Promise.resolve(r(e.parse(n))))}removeNotificationHandler(e){this._notificationHandlers.delete(e)}}});var tj=S((Zv,ej)=>{h();(function(t,e){typeof Zv=="object"&&typeof ej<"u"?e(Zv):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(Zv,(function(t){"use strict";function e(){for(var M=arguments.length,I=Array(M),q=0;q<M;q++)I[q]=arguments[q];if(I.length>1){I[0]=I[0].slice(0,-1);for(var W=I.length-1,X=1;X<W;++X)I[X]=I[X].slice(1,-1);return I[W]=I[W].slice(1),I.join("")}else return I[0]}function r(M){return"(?:"+M+")"}function n(M){return M===void 0?"undefined":M===null?"null":Object.prototype.toString.call(M).split(" ").pop().split("]").shift().toLowerCase()}function i(M){return M.toUpperCase()}function s(M){return M!=null?M instanceof Array?M:typeof M.length!="number"||M.split||M.setInterval||M.call?[M]:Array.prototype.slice.call(M):[]}function o(M,I){var q=M;if(I)for(var W in I)q[W]=I[W];return q}function a(M){var I="[A-Za-z]",q="[\\x0D]",W="[0-9]",X="[\\x22]",ve=e(W,"[A-Fa-f]"),Ye="[\\x0A]",yt="[\\x20]",Tt=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),Sr="[\\:\\/\\?\\#\\[\\]\\@]",mt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",lr=e(Sr,mt),Tr=M?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",ir=M?"[\\uE000-\\uF8FF]":"[]",xt=e(I,W,"[\\-\\.\\_\\~]",Tr),pr=r(I+e(I,W,"[\\+\\-\\.]")+"*"),Ot=r(r(Tt+"|"+e(xt,mt,"[\\:]"))+"*"),lc=r(r("25[0-5]")+"|"+r("2[0-4]"+W)+"|"+r("1"+W+W)+"|"+r("[1-9]"+W)+"|"+W),ai=r(r("25[0-5]")+"|"+r("2[0-4]"+W)+"|"+r("1"+W+W)+"|"+r("0?[1-9]"+W)+"|0?0?"+W),Pi=r(ai+"\\."+ai+"\\."+ai+"\\."+ai),jt=r(ve+"{1,4}"),ci=r(r(jt+"\\:"+jt)+"|"+Pi),Ai=r(r(jt+"\\:")+"{6}"+ci),Os=r("\\:\\:"+r(jt+"\\:")+"{5}"+ci),pc=r(r(jt)+"?\\:\\:"+r(jt+"\\:")+"{4}"+ci),To=r(r(r(jt+"\\:")+"{0,1}"+jt)+"?\\:\\:"+r(jt+"\\:")+"{3}"+ci),Dd=r(r(r(jt+"\\:")+"{0,2}"+jt)+"?\\:\\:"+r(jt+"\\:")+"{2}"+ci),Nh=r(r(r(jt+"\\:")+"{0,3}"+jt)+"?\\:\\:"+jt+"\\:"+ci),Rh=r(r(r(jt+"\\:")+"{0,4}"+jt)+"?\\:\\:"+ci),Yu=r(r(r(jt+"\\:")+"{0,5}"+jt)+"?\\:\\:"+jt),Xu=r(r(r(jt+"\\:")+"{0,6}"+jt)+"?\\:\\:"),Po=r([Ai,Os,pc,To,Dd,Nh,Rh,Yu,Xu].join("|")),Qu=r(r(xt+"|"+Tt)+"+"),l0=r(Po+"\\%25"+Qu),dc=r(Po+r("\\%25|\\%(?!"+ve+"{2})")+Qu),xee=r("[vV]"+ve+"+\\."+e(xt,mt,"[\\:]")+"+"),Dee=r("\\["+r(dc+"|"+Po+"|"+xee)+"\\]"),IF=r(r(Tt+"|"+e(xt,mt))+"*"),Ed=r(Dee+"|"+Pi+"(?!"+IF+")|"+IF),Cd=r(W+"*"),NF=r(r(Ot+"@")+"?"+Ed+r("\\:"+Cd)+"?"),wd=r(Tt+"|"+e(xt,mt,"[\\:\\@]")),Eee=r(wd+"*"),RF=r(wd+"+"),Cee=r(r(Tt+"|"+e(xt,mt,"[\\@]"))+"+"),Ao=r(r("\\/"+Eee)+"*"),Zu=r("\\/"+r(RF+Ao)+"?"),p0=r(Cee+Ao),Oh=r(RF+Ao),el="(?!"+wd+")",LRe=r(Ao+"|"+Zu+"|"+p0+"|"+Oh+"|"+el),tl=r(r(wd+"|"+e("[\\/\\?]",ir))+"*"),Sd=r(r(wd+"|[\\/\\?]")+"*"),OF=r(r("\\/\\/"+NF+Ao)+"|"+Zu+"|"+Oh+"|"+el),wee=r(pr+"\\:"+OF+r("\\?"+tl)+"?"+r("\\#"+Sd)+"?"),See=r(r("\\/\\/"+NF+Ao)+"|"+Zu+"|"+p0+"|"+el),Tee=r(See+r("\\?"+tl)+"?"+r("\\#"+Sd)+"?"),$Re=r(wee+"|"+Tee),jRe=r(pr+"\\:"+OF+r("\\?"+tl)+"?"),URe="^("+pr+")\\:"+r(r("\\/\\/("+r("("+Ot+")@")+"?("+Ed+")"+r("\\:("+Cd+")")+"?)")+"?("+Ao+"|"+Zu+"|"+Oh+"|"+el+")")+r("\\?("+tl+")")+"?"+r("\\#("+Sd+")")+"?$",qRe="^(){0}"+r(r("\\/\\/("+r("("+Ot+")@")+"?("+Ed+")"+r("\\:("+Cd+")")+"?)")+"?("+Ao+"|"+Zu+"|"+p0+"|"+el+")")+r("\\?("+tl+")")+"?"+r("\\#("+Sd+")")+"?$",zRe="^("+pr+")\\:"+r(r("\\/\\/("+r("("+Ot+")@")+"?("+Ed+")"+r("\\:("+Cd+")")+"?)")+"?("+Ao+"|"+Zu+"|"+Oh+"|"+el+")")+r("\\?("+tl+")")+"?$",GRe="^"+r("\\#("+Sd+")")+"?$",HRe="^"+r("("+Ot+")@")+"?("+Ed+")"+r("\\:("+Cd+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",I,W,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",xt,mt),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",xt,mt),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",xt,mt),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",xt,mt),"g"),NOT_QUERY:new RegExp(e("[^\\%]",xt,mt,"[\\:\\@\\/\\?]",ir),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",xt,mt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",xt,mt),"g"),UNRESERVED:new RegExp(xt,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",xt,lr),"g"),PCT_ENCODED:new RegExp(Tt,"g"),IPV4ADDRESS:new RegExp("^("+Pi+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Po+")"+r(r("\\%25|\\%(?!"+ve+"{2})")+"("+Qu+")")+"?\\]?$")}}var c=a(!1),u=a(!0),l=(function(){function M(I,q){var W=[],X=!0,ve=!1,Ye=void 0;try{for(var yt=I[Symbol.iterator](),Tt;!(X=(Tt=yt.next()).done)&&(W.push(Tt.value),!(q&&W.length===q));X=!0);}catch(Sr){ve=!0,Ye=Sr}finally{try{!X&&yt.return&&yt.return()}finally{if(ve)throw Ye}}return W}return function(I,q){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return M(I,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p=function(M){if(Array.isArray(M)){for(var I=0,q=Array(M.length);I<M.length;I++)q[I]=M[I];return q}else return Array.from(M)},d=2147483647,f=36,m=1,g=26,y=38,v=700,E=72,D=128,x="-",b=/^xn--/,C=/[^\0-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,F={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=f-m,_=Math.floor,A=String.fromCharCode;function z(M){throw new RangeError(F[M])}function O(M,I){for(var q=[],W=M.length;W--;)q[W]=I(M[W]);return q}function U(M,I){var q=M.split("@"),W="";q.length>1&&(W=q[0]+"@",M=q[1]),M=M.replace(w,".");var X=M.split("."),ve=O(X,I).join(".");return W+ve}function k(M){for(var I=[],q=0,W=M.length;q<W;){var X=M.charCodeAt(q++);if(X>=55296&&X<=56319&&q<W){var ve=M.charCodeAt(q++);(ve&64512)==56320?I.push(((X&1023)<<10)+(ve&1023)+65536):(I.push(X),q--)}else I.push(X)}return I}var R=function(I){return String.fromCodePoint.apply(String,p(I))},$=function(I){return I-48<10?I-22:I-65<26?I-65:I-97<26?I-97:f},G=function(I,q){return I+22+75*(I<26)-((q!=0)<<5)},Z=function(I,q,W){var X=0;for(I=W?_(I/v):I>>1,I+=_(I/q);I>P*g>>1;X+=f)I=_(I/P);return _(X+(P+1)*I/(I+y))},j=function(I){var q=[],W=I.length,X=0,ve=D,Ye=E,yt=I.lastIndexOf(x);yt<0&&(yt=0);for(var Tt=0;Tt<yt;++Tt)I.charCodeAt(Tt)>=128&&z("not-basic"),q.push(I.charCodeAt(Tt));for(var Sr=yt>0?yt+1:0;Sr<W;){for(var mt=X,lr=1,Tr=f;;Tr+=f){Sr>=W&&z("invalid-input");var ir=$(I.charCodeAt(Sr++));(ir>=f||ir>_((d-X)/lr))&&z("overflow"),X+=ir*lr;var xt=Tr<=Ye?m:Tr>=Ye+g?g:Tr-Ye;if(ir<xt)break;var pr=f-xt;lr>_(d/pr)&&z("overflow"),lr*=pr}var Ot=q.length+1;Ye=Z(X-mt,Ot,mt==0),_(X/Ot)>d-ve&&z("overflow"),ve+=_(X/Ot),X%=Ot,q.splice(X++,0,ve)}return String.fromCodePoint.apply(String,q)},K=function(I){var q=[];I=k(I);var W=I.length,X=D,ve=0,Ye=E,yt=!0,Tt=!1,Sr=void 0;try{for(var mt=I[Symbol.iterator](),lr;!(yt=(lr=mt.next()).done);yt=!0){var Tr=lr.value;Tr<128&&q.push(A(Tr))}}catch(dc){Tt=!0,Sr=dc}finally{try{!yt&&mt.return&&mt.return()}finally{if(Tt)throw Sr}}var ir=q.length,xt=ir;for(ir&&q.push(x);xt<W;){var pr=d,Ot=!0,lc=!1,ai=void 0;try{for(var Pi=I[Symbol.iterator](),jt;!(Ot=(jt=Pi.next()).done);Ot=!0){var ci=jt.value;ci>=X&&ci<pr&&(pr=ci)}}catch(dc){lc=!0,ai=dc}finally{try{!Ot&&Pi.return&&Pi.return()}finally{if(lc)throw ai}}var Ai=xt+1;pr-X>_((d-ve)/Ai)&&z("overflow"),ve+=(pr-X)*Ai,X=pr;var Os=!0,pc=!1,To=void 0;try{for(var Dd=I[Symbol.iterator](),Nh;!(Os=(Nh=Dd.next()).done);Os=!0){var Rh=Nh.value;if(Rh<X&&++ve>d&&z("overflow"),Rh==X){for(var Yu=ve,Xu=f;;Xu+=f){var Po=Xu<=Ye?m:Xu>=Ye+g?g:Xu-Ye;if(Yu<Po)break;var Qu=Yu-Po,l0=f-Po;q.push(A(G(Po+Qu%l0,0))),Yu=_(Qu/l0)}q.push(A(G(Yu,0))),Ye=Z(ve,Ai,xt==ir),ve=0,++xt}}}catch(dc){pc=!0,To=dc}finally{try{!Os&&Dd.return&&Dd.return()}finally{if(pc)throw To}}++ve,++X}return q.join("")},Q=function(I){return U(I,function(q){return b.test(q)?j(q.slice(4).toLowerCase()):q})},ue=function(I){return U(I,function(q){return C.test(q)?"xn--"+K(q):q})},de={version:"2.1.0",ucs2:{decode:k,encode:R},decode:j,encode:K,toASCII:ue,toUnicode:Q},fe={};function oe(M){var I=M.charCodeAt(0),q=void 0;return I<16?q="%0"+I.toString(16).toUpperCase():I<128?q="%"+I.toString(16).toUpperCase():I<2048?q="%"+(I>>6|192).toString(16).toUpperCase()+"%"+(I&63|128).toString(16).toUpperCase():q="%"+(I>>12|224).toString(16).toUpperCase()+"%"+(I>>6&63|128).toString(16).toUpperCase()+"%"+(I&63|128).toString(16).toUpperCase(),q}function Ge(M){for(var I="",q=0,W=M.length;q<W;){var X=parseInt(M.substr(q+1,2),16);if(X<128)I+=String.fromCharCode(X),q+=3;else if(X>=194&&X<224){if(W-q>=6){var ve=parseInt(M.substr(q+4,2),16);I+=String.fromCharCode((X&31)<<6|ve&63)}else I+=M.substr(q,6);q+=6}else if(X>=224){if(W-q>=9){var Ye=parseInt(M.substr(q+4,2),16),yt=parseInt(M.substr(q+7,2),16);I+=String.fromCharCode((X&15)<<12|(Ye&63)<<6|yt&63)}else I+=M.substr(q,9);q+=9}else I+=M.substr(q,3),q+=3}return I}function rt(M,I){function q(W){var X=Ge(W);return X.match(I.UNRESERVED)?X:W}return M.scheme&&(M.scheme=String(M.scheme).replace(I.PCT_ENCODED,q).toLowerCase().replace(I.NOT_SCHEME,"")),M.userinfo!==void 0&&(M.userinfo=String(M.userinfo).replace(I.PCT_ENCODED,q).replace(I.NOT_USERINFO,oe).replace(I.PCT_ENCODED,i)),M.host!==void 0&&(M.host=String(M.host).replace(I.PCT_ENCODED,q).toLowerCase().replace(I.NOT_HOST,oe).replace(I.PCT_ENCODED,i)),M.path!==void 0&&(M.path=String(M.path).replace(I.PCT_ENCODED,q).replace(M.scheme?I.NOT_PATH:I.NOT_PATH_NOSCHEME,oe).replace(I.PCT_ENCODED,i)),M.query!==void 0&&(M.query=String(M.query).replace(I.PCT_ENCODED,q).replace(I.NOT_QUERY,oe).replace(I.PCT_ENCODED,i)),M.fragment!==void 0&&(M.fragment=String(M.fragment).replace(I.PCT_ENCODED,q).replace(I.NOT_FRAGMENT,oe).replace(I.PCT_ENCODED,i)),M}function ce(M){return M.replace(/^0*(.*)/,"$1")||"0"}function Se(M,I){var q=M.match(I.IPV4ADDRESS)||[],W=l(q,2),X=W[1];return X?X.split(".").map(ce).join("."):M}function re(M,I){var q=M.match(I.IPV6ADDRESS)||[],W=l(q,3),X=W[1],ve=W[2];if(X){for(var Ye=X.toLowerCase().split("::").reverse(),yt=l(Ye,2),Tt=yt[0],Sr=yt[1],mt=Sr?Sr.split(":").map(ce):[],lr=Tt.split(":").map(ce),Tr=I.IPV4ADDRESS.test(lr[lr.length-1]),ir=Tr?7:8,xt=lr.length-ir,pr=Array(ir),Ot=0;Ot<ir;++Ot)pr[Ot]=mt[Ot]||lr[xt+Ot]||"";Tr&&(pr[ir-1]=Se(pr[ir-1],I));var lc=pr.reduce(function(Ai,Os,pc){if(!Os||Os==="0"){var To=Ai[Ai.length-1];To&&To.index+To.length===pc?To.length++:Ai.push({index:pc,length:1})}return Ai},[]),ai=lc.sort(function(Ai,Os){return Os.length-Ai.length})[0],Pi=void 0;if(ai&&ai.length>1){var jt=pr.slice(0,ai.index),ci=pr.slice(ai.index+ai.length);Pi=jt.join(":")+"::"+ci.join(":")}else Pi=pr.join(":");return ve&&(Pi+="%"+ve),Pi}else return M}var Fe=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,V="".match(/(){0}/)[1]===void 0;function te(M){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q={},W=I.iri!==!1?u:c;I.reference==="suffix"&&(M=(I.scheme?I.scheme+":":"")+"//"+M);var X=M.match(Fe);if(X){V?(q.scheme=X[1],q.userinfo=X[3],q.host=X[4],q.port=parseInt(X[5],10),q.path=X[6]||"",q.query=X[7],q.fragment=X[8],isNaN(q.port)&&(q.port=X[5])):(q.scheme=X[1]||void 0,q.userinfo=M.indexOf("@")!==-1?X[3]:void 0,q.host=M.indexOf("//")!==-1?X[4]:void 0,q.port=parseInt(X[5],10),q.path=X[6]||"",q.query=M.indexOf("?")!==-1?X[7]:void 0,q.fragment=M.indexOf("#")!==-1?X[8]:void 0,isNaN(q.port)&&(q.port=M.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?X[4]:void 0)),q.host&&(q.host=re(Se(q.host,W),W)),q.scheme===void 0&&q.userinfo===void 0&&q.host===void 0&&q.port===void 0&&!q.path&&q.query===void 0?q.reference="same-document":q.scheme===void 0?q.reference="relative":q.fragment===void 0?q.reference="absolute":q.reference="uri",I.reference&&I.reference!=="suffix"&&I.reference!==q.reference&&(q.error=q.error||"URI is not a "+I.reference+" reference.");var ve=fe[(I.scheme||q.scheme||"").toLowerCase()];if(!I.unicodeSupport&&(!ve||!ve.unicodeSupport)){if(q.host&&(I.domainHost||ve&&ve.domainHost))try{q.host=de.toASCII(q.host.replace(W.PCT_ENCODED,Ge).toLowerCase())}catch(Ye){q.error=q.error||"Host's domain name can not be converted to ASCII via punycode: "+Ye}rt(q,c)}else rt(q,W);ve&&ve.parse&&ve.parse(q,I)}else q.error=q.error||"URI can not be parsed.";return q}function pe(M,I){var q=I.iri!==!1?u:c,W=[];return M.userinfo!==void 0&&(W.push(M.userinfo),W.push("@")),M.host!==void 0&&W.push(re(Se(String(M.host),q),q).replace(q.IPV6ADDRESS,function(X,ve,Ye){return"["+ve+(Ye?"%25"+Ye:"")+"]"})),(typeof M.port=="number"||typeof M.port=="string")&&(W.push(":"),W.push(String(M.port))),W.length?W.join(""):void 0}var Ce=/^\.\.?\//,De=/^\/\.(\/|$)/,je=/^\/\.\.(\/|$)/,se=/^\/?(?:.|\n)*?(?=\/|$)/;function Ee(M){for(var I=[];M.length;)if(M.match(Ce))M=M.replace(Ce,"");else if(M.match(De))M=M.replace(De,"/");else if(M.match(je))M=M.replace(je,"/"),I.pop();else if(M==="."||M==="..")M="";else{var q=M.match(se);if(q){var W=q[0];M=M.slice(W.length),I.push(W)}else throw new Error("Unexpected dot segment condition")}return I.join("")}function Pe(M){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=I.iri?u:c,W=[],X=fe[(I.scheme||M.scheme||"").toLowerCase()];if(X&&X.serialize&&X.serialize(M,I),M.host&&!q.IPV6ADDRESS.test(M.host)){if(I.domainHost||X&&X.domainHost)try{M.host=I.iri?de.toUnicode(M.host):de.toASCII(M.host.replace(q.PCT_ENCODED,Ge).toLowerCase())}catch(yt){M.error=M.error||"Host's domain name can not be converted to "+(I.iri?"Unicode":"ASCII")+" via punycode: "+yt}}rt(M,q),I.reference!=="suffix"&&M.scheme&&(W.push(M.scheme),W.push(":"));var ve=pe(M,I);if(ve!==void 0&&(I.reference!=="suffix"&&W.push("//"),W.push(ve),M.path&&M.path.charAt(0)!=="/"&&W.push("/")),M.path!==void 0){var Ye=M.path;!I.absolutePath&&(!X||!X.absolutePath)&&(Ye=Ee(Ye)),ve===void 0&&(Ye=Ye.replace(/^\/\//,"/%2F")),W.push(Ye)}return M.query!==void 0&&(W.push("?"),W.push(M.query)),M.fragment!==void 0&&(W.push("#"),W.push(M.fragment)),W.join("")}function ge(M,I){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=arguments[3],X={};return W||(M=te(Pe(M,q),q),I=te(Pe(I,q),q)),q=q||{},!q.tolerant&&I.scheme?(X.scheme=I.scheme,X.userinfo=I.userinfo,X.host=I.host,X.port=I.port,X.path=Ee(I.path||""),X.query=I.query):(I.userinfo!==void 0||I.host!==void 0||I.port!==void 0?(X.userinfo=I.userinfo,X.host=I.host,X.port=I.port,X.path=Ee(I.path||""),X.query=I.query):(I.path?(I.path.charAt(0)==="/"?X.path=Ee(I.path):((M.userinfo!==void 0||M.host!==void 0||M.port!==void 0)&&!M.path?X.path="/"+I.path:M.path?X.path=M.path.slice(0,M.path.lastIndexOf("/")+1)+I.path:X.path=I.path,X.path=Ee(X.path)),X.query=I.query):(X.path=M.path,I.query!==void 0?X.query=I.query:X.query=M.query),X.userinfo=M.userinfo,X.host=M.host,X.port=M.port),X.scheme=M.scheme),X.fragment=I.fragment,X}function at(M,I,q){var W=o({scheme:"null"},q);return Pe(ge(te(M,W),te(I,W),W,!0),W)}function ke(M,I){return typeof M=="string"?M=Pe(te(M,I),I):n(M)==="object"&&(M=te(Pe(M,I),I)),M}function Yt(M,I,q){return typeof M=="string"?M=Pe(te(M,q),q):n(M)==="object"&&(M=Pe(M,q)),typeof I=="string"?I=Pe(te(I,q),q):n(I)==="object"&&(I=Pe(I,q)),M===I}function So(M,I){return M&&M.toString().replace(!I||!I.iri?c.ESCAPE:u.ESCAPE,oe)}function le(M,I){return M&&M.toString().replace(!I||!I.iri?c.PCT_ENCODED:u.PCT_ENCODED,Ge)}var xe={scheme:"http",domainHost:!0,parse:function(I,q){return I.host||(I.error=I.error||"HTTP URIs must have a host."),I},serialize:function(I,q){var W=String(I.scheme).toLowerCase()==="https";return(I.port===(W?443:80)||I.port==="")&&(I.port=void 0),I.path||(I.path="/"),I}},He={scheme:"https",domainHost:xe.domainHost,parse:xe.parse,serialize:xe.serialize};function Ue(M){return typeof M.secure=="boolean"?M.secure:String(M.scheme).toLowerCase()==="wss"}var ct={scheme:"ws",domainHost:!0,parse:function(I,q){var W=I;return W.secure=Ue(W),W.resourceName=(W.path||"/")+(W.query?"?"+W.query:""),W.path=void 0,W.query=void 0,W},serialize:function(I,q){if((I.port===(Ue(I)?443:80)||I.port==="")&&(I.port=void 0),typeof I.secure=="boolean"&&(I.scheme=I.secure?"wss":"ws",I.secure=void 0),I.resourceName){var W=I.resourceName.split("?"),X=l(W,2),ve=X[0],Ye=X[1];I.path=ve&&ve!=="/"?ve:void 0,I.query=Ye,I.resourceName=void 0}return I.fragment=void 0,I}},qn={scheme:"wss",domainHost:ct.domainHost,parse:ct.parse,serialize:ct.serialize},a0={},c0=!0,PF="[A-Za-z0-9\\-\\.\\_\\~"+(c0?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Rs="[0-9A-Fa-f]",lee=r(r("%[EFef]"+Rs+"%"+Rs+Rs+"%"+Rs+Rs)+"|"+r("%[89A-Fa-f]"+Rs+"%"+Rs+Rs)+"|"+r("%"+Rs+Rs)),pee="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",dee="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",fee=e(dee,'[\\"\\\\]'),mee="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",hee=new RegExp(PF,"g"),Ju=new RegExp(lee,"g"),gee=new RegExp(e("[^]",pee,"[\\.]",'[\\"]',fee),"g"),AF=new RegExp(e("[^]",PF,mee),"g"),yee=AF;function u0(M){var I=Ge(M);return I.match(hee)?I:M}var _F={scheme:"mailto",parse:function(I,q){var W=I,X=W.to=W.path?W.path.split(","):[];if(W.path=void 0,W.query){for(var ve=!1,Ye={},yt=W.query.split("&"),Tt=0,Sr=yt.length;Tt<Sr;++Tt){var mt=yt[Tt].split("=");switch(mt[0]){case"to":for(var lr=mt[1].split(","),Tr=0,ir=lr.length;Tr<ir;++Tr)X.push(lr[Tr]);break;case"subject":W.subject=le(mt[1],q);break;case"body":W.body=le(mt[1],q);break;default:ve=!0,Ye[le(mt[0],q)]=le(mt[1],q);break}}ve&&(W.headers=Ye)}W.query=void 0;for(var xt=0,pr=X.length;xt<pr;++xt){var Ot=X[xt].split("@");if(Ot[0]=le(Ot[0]),q.unicodeSupport)Ot[1]=le(Ot[1],q).toLowerCase();else try{Ot[1]=de.toASCII(le(Ot[1],q).toLowerCase())}catch(lc){W.error=W.error||"Email address's domain name can not be converted to ASCII via punycode: "+lc}X[xt]=Ot.join("@")}return W},serialize:function(I,q){var W=I,X=s(I.to);if(X){for(var ve=0,Ye=X.length;ve<Ye;++ve){var yt=String(X[ve]),Tt=yt.lastIndexOf("@"),Sr=yt.slice(0,Tt).replace(Ju,u0).replace(Ju,i).replace(gee,oe),mt=yt.slice(Tt+1);try{mt=q.iri?de.toUnicode(mt):de.toASCII(le(mt,q).toLowerCase())}catch(xt){W.error=W.error||"Email address's domain name can not be converted to "+(q.iri?"Unicode":"ASCII")+" via punycode: "+xt}X[ve]=Sr+"@"+mt}W.path=X.join(",")}var lr=I.headers=I.headers||{};I.subject&&(lr.subject=I.subject),I.body&&(lr.body=I.body);var Tr=[];for(var ir in lr)lr[ir]!==a0[ir]&&Tr.push(ir.replace(Ju,u0).replace(Ju,i).replace(AF,oe)+"="+lr[ir].replace(Ju,u0).replace(Ju,i).replace(yee,oe));return Tr.length&&(W.query=Tr.join("&")),W}},vee=/^([^\:]+)\:(.*)/,FF={scheme:"urn",parse:function(I,q){var W=I.path&&I.path.match(vee),X=I;if(W){var ve=q.scheme||X.scheme||"urn",Ye=W[1].toLowerCase(),yt=W[2],Tt=ve+":"+(q.nid||Ye),Sr=fe[Tt];X.nid=Ye,X.nss=yt,X.path=void 0,Sr&&(X=Sr.parse(X,q))}else X.error=X.error||"URN can not be parsed.";return X},serialize:function(I,q){var W=q.scheme||I.scheme||"urn",X=I.nid,ve=W+":"+(q.nid||X),Ye=fe[ve];Ye&&(I=Ye.serialize(I,q));var yt=I,Tt=I.nss;return yt.path=(X||q.nid)+":"+Tt,yt}},bee=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,kF={scheme:"urn:uuid",parse:function(I,q){var W=I;return W.uuid=W.nss,W.nss=void 0,!q.tolerant&&(!W.uuid||!W.uuid.match(bee))&&(W.error=W.error||"UUID is not valid."),W},serialize:function(I,q){var W=I;return W.nss=(I.uuid||"").toLowerCase(),W}};fe[xe.scheme]=xe,fe[He.scheme]=He,fe[ct.scheme]=ct,fe[qn.scheme]=qn,fe[_F.scheme]=_F,fe[FF.scheme]=FF,fe[kF.scheme]=kF,t.SCHEMES=fe,t.pctEncChar=oe,t.pctDecChars=Ge,t.parse=te,t.removeDotSegments=Ee,t.serialize=Pe,t.resolveComponents=ge,t.resolve=at,t.normalize=ke,t.equal=Yt,t.escapeComponent=So,t.unescapeComponent=le,Object.defineProperty(t,"__esModule",{value:!0})}))});var eb=S((PYe,rj)=>{"use strict";h();rj.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}});var ij=S((_Ye,nj)=>{"use strict";h();nj.exports=function(e){for(var r=0,n=e.length,i=0,s;i<n;)r++,s=e.charCodeAt(i++),s>=55296&&s<=56319&&i<n&&(s=e.charCodeAt(i),(s&64512)==56320&&i++);return r}});var Du=S((kYe,aj)=>{"use strict";h();aj.exports={copy:Mbe,checkDataType:dT,checkDataTypes:Lbe,coerceToTypes:$be,toHash:mT,getProperty:hT,escapeQuotes:gT,equal:eb(),ucs2length:ij(),varOccurences:qbe,varReplace:zbe,schemaHasRules:Gbe,schemaHasRulesExcept:Hbe,schemaUnknownRules:Vbe,toQuotedString:fT,getPathExpr:Kbe,getPath:Wbe,getData:Xbe,unescapeFragment:Qbe,unescapeJsonPointer:vT,escapeFragment:Zbe,escapeJsonPointer:yT};function Mbe(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function dT(t,e,r,n){var i=n?" !== ":" === ",s=n?" || ":" && ",o=n?"!":"",a=n?"":"!";switch(t){case"null":return e+i+"null";case"array":return o+"Array.isArray("+e+")";case"object":return"("+o+e+s+"typeof "+e+i+'"object"'+s+a+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+i+'"number"'+s+a+"("+e+" % 1)"+s+e+i+e+(r?s+o+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+i+'"'+t+'"'+(r?s+o+"isFinite("+e+")":"")+")";default:return"typeof "+e+i+'"'+t+'"'}}function Lbe(t,e,r){switch(t.length){case 1:return dT(t[0],e,r,!0);default:var n="",i=mT(t);i.array&&i.object&&(n=i.null?"(":"(!"+e+" || ",n+="typeof "+e+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer;for(var s in i)n+=(n?" && ":"")+dT(s,e,r,!0);return n}}var sj=mT(["string","number","integer","boolean","null"]);function $be(t,e){if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++){var i=e[n];(sj[i]||t==="array"&&i==="array")&&(r[r.length]=i)}if(r.length)return r}else{if(sj[e])return[e];if(t==="array"&&e==="array")return["array"]}}function mT(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var jbe=/^[a-z$_][a-z$_0-9]*$/i,Ube=/'|\\/g;function hT(t){return typeof t=="number"?"["+t+"]":jbe.test(t)?"."+t:"['"+gT(t)+"']"}function gT(t){return t.replace(Ube,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function qbe(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function zbe(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function Gbe(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function Hbe(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var n in t)if(n!=r&&e[n])return!0}function Vbe(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function fT(t){return"'"+gT(t)+"'"}function Kbe(t,e,r,n){var i=r?"'/' + "+e+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return oj(t,i)}function Wbe(t,e,r){var n=fT(r?"/"+yT(e):hT(e));return oj(t,n)}var Jbe=/^\/(?:[^~]|~0|~1)*$/,Ybe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Xbe(t,e,r){var n,i,s,o;if(t==="")return"rootData";if(t[0]=="/"){if(!Jbe.test(t))throw new Error("Invalid JSON-pointer: "+t);i=t,s="rootData"}else{if(o=t.match(Ybe),!o)throw new Error("Invalid JSON-pointer: "+t);if(n=+o[1],i=o[2],i=="#"){if(n>=e)throw new Error("Cannot access property/index "+n+" levels up, current level is "+e);return r[e-n]}if(n>e)throw new Error("Cannot access data "+n+" levels up, current level is "+e);if(s="data"+(e-n||""),!i)return s}for(var a=s,c=i.split("/"),u=0;u<c.length;u++){var l=c[u];l&&(s+=hT(vT(l)),a+=" && "+s)}return a}function oj(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function Qbe(t){return vT(decodeURIComponent(t))}function Zbe(t){return encodeURIComponent(yT(t))}function yT(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function vT(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var bT=S((NYe,cj)=>{"use strict";h();var exe=Du();cj.exports=txe;function txe(t){exe.copy(t,this)}});var lj=S((OYe,uj)=>{"use strict";h();var Ha=uj.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};tb(e,n,i,t,"",t)};Ha.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Ha.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ha.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ha.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function tb(t,e,r,n,i,s,o,a,c,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,i,s,o,a,c,u);for(var l in n){var p=n[l];if(Array.isArray(p)){if(l in Ha.arrayKeywords)for(var d=0;d<p.length;d++)tb(t,e,r,p[d],i+"/"+l+"/"+d,s,i,l,n,d)}else if(l in Ha.propsKeywords){if(p&&typeof p=="object")for(var f in p)tb(t,e,r,p[f],i+"/"+l+"/"+rxe(f),s,i,l,n,f)}else(l in Ha.keywords||t.allKeys&&!(l in Ha.skipKeywords))&&tb(t,e,r,p,i+"/"+l,s,i,l,n)}r(n,i,s,o,a,c,u)}}function rxe(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var ab=S((MYe,mj)=>{"use strict";h();var hm=tj(),pj=eb(),sb=Du(),rb=bT(),nxe=lj();mj.exports=Ka;Ka.normalizeId=Va;Ka.fullPath=nb;Ka.url=ib;Ka.ids=cxe;Ka.inlineRef=xT;Ka.schema=ob;function Ka(t,e,r){var n=this._refs[r];if(typeof n=="string")if(this._refs[n])n=this._refs[n];else return Ka.call(this,t,e,n);if(n=n||this._schemas[r],n instanceof rb)return xT(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var i=ob.call(this,e,r),s,o,a;return i&&(s=i.schema,e=i.root,a=i.baseId),s instanceof rb?o=s.validate||t.call(this,s.schema,e,void 0,a):s!==void 0&&(o=xT(s,this._opts.inlineRefs)?s:t.call(this,s,e,void 0,a)),o}function ob(t,e){var r=hm.parse(e),n=fj(r),i=nb(this._getId(t.schema));if(Object.keys(t.schema).length===0||n!==i){var s=Va(n),o=this._refs[s];if(typeof o=="string")return ixe.call(this,t,o,r);if(o instanceof rb)o.validate||this._compile(o),t=o;else if(o=this._schemas[s],o instanceof rb){if(o.validate||this._compile(o),s==Va(e))return{schema:o,root:t,baseId:i};t=o}else return;if(!t.schema)return;i=nb(this._getId(t.schema))}return dj.call(this,r,i,t.schema,t)}function ixe(t,e,r){var n=ob.call(this,t,e);if(n){var i=n.schema,s=n.baseId;t=n.root;var o=this._getId(i);return o&&(s=ib(s,o)),dj.call(this,r,s,i,t)}}var sxe=sb.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function dj(t,e,r,n){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var i=t.fragment.split("/"),s=1;s<i.length;s++){var o=i[s];if(o){if(o=sb.unescapeFragment(o),r=r[o],r===void 0)break;var a;if(!sxe[o]&&(a=this._getId(r),a&&(e=ib(e,a)),r.$ref)){var c=ib(e,r.$ref),u=ob.call(this,n,c);u&&(r=u.schema,n=u.root,e=u.baseId)}}}if(r!==void 0&&r!==n.schema)return{schema:r,root:n,baseId:e}}}var oxe=sb.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function xT(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return DT(t);if(e)return ET(t)<=e}function DT(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!DT(e))return!1}else for(var n in t)if(n=="$ref"||(e=t[n],typeof e=="object"&&!DT(e)))return!1;return!0}function ET(t){var e=0,r;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(r=t[n],typeof r=="object"&&(e+=ET(r)),e==1/0)return 1/0}else for(var i in t){if(i=="$ref")return 1/0;if(oxe[i])e++;else if(r=t[i],typeof r=="object"&&(e+=ET(r)+1),e==1/0)return 1/0}return e}function nb(t,e){e!==!1&&(t=Va(t));var r=hm.parse(t);return fj(r)}function fj(t){return hm.serialize(t).split("#")[0]+"#"}var axe=/#\/?$/;function Va(t){return t?t.replace(axe,""):""}function ib(t,e){return e=Va(e),hm.resolve(t,e)}function cxe(t){var e=Va(this._getId(t)),r={"":e},n={"":nb(e,!1)},i={},s=this;return nxe(t,{allKeys:!0},function(o,a,c,u,l,p,d){if(a!==""){var f=s._getId(o),m=r[u],g=n[u]+"/"+l;if(d!==void 0&&(g+="/"+(typeof d=="number"?d:sb.escapeFragment(d))),typeof f=="string"){f=m=Va(m?hm.resolve(m,f):f);var y=s._refs[f];if(typeof y=="string"&&(y=s._refs[y]),y&&y.schema){if(!pj(o,y.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=Va(g))if(f[0]=="#"){if(i[f]&&!pj(o,i[f]))throw new Error('id "'+f+'" resolves to more than one schema');i[f]=o}else s._refs[f]=g}r[a]=m,n[a]=g}}),i}});var cb=S(($Ye,gj)=>{"use strict";h();var CT=ab();gj.exports={Validation:hj(uxe),MissingRef:hj(wT)};function uxe(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}wT.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function wT(t,e,r){this.message=r||wT.message(t,e),this.missingRef=CT.url(t,e),this.missingSchema=CT.normalizeId(CT.fullPath(this.missingRef))}function hj(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var ST=S((UYe,yj)=>{"use strict";h();yj.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.cmp&&(function(s){return function(o){return function(a,c){var u={key:a,value:o[a]},l={key:c,value:o[c]};return s(u,l)}}})(e.cmp),i=[];return(function s(o){if(o&&o.toJSON&&typeof o.toJSON=="function"&&(o=o.toJSON()),o!==void 0){if(typeof o=="number")return isFinite(o)?""+o:"null";if(typeof o!="object")return JSON.stringify(o);var a,c;if(Array.isArray(o)){for(c="[",a=0;a<o.length;a++)a&&(c+=","),c+=s(o[a])||"null";return c+"]"}if(o===null)return"null";if(i.indexOf(o)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(o)-1,l=Object.keys(o).sort(n&&n(o));for(c="",a=0;a<l.length;a++){var p=l[a],d=s(o[p]);d&&(c&&(c+=","),c+=JSON.stringify(p)+":"+d)}return i.splice(u,1),"{"+c+"}"}})(t)}});var TT=S((zYe,vj)=>{"use strict";h();vj.exports=function(e,r,n){var i="",s=e.schema.$async===!0,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var c=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(c){var u="unknown keyword: "+c;if(e.opts.strictKeywords==="log")e.logger.warn(u);else throw new Error(u)}}if(e.isTop&&(i+=" var validate = ",s&&(e.async=!0,i+="async "),i+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(i+=" "+("/*# sourceURL="+a+" */")+" ")),typeof e.schema=="boolean"||!(o||e.schema.$ref)){var r="false schema",l=e.level,p=e.dataLevel,d=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,b=!e.opts.allErrors,F,g="data"+(p||""),x="valid"+l;if(e.schema===!1){e.isTop?b=!0:i+=" var "+x+" = false; ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(F||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&b?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?s?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+x+" = true; ";return e.isTop&&(i+=" }; return validate; "),i}if(e.isTop){var E=e.isTop,l=e.level=0,p=e.dataLevel=0,g="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var D="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(D);else throw new Error(D)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var l=e.level,p=e.dataLevel,g="data"+(p||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),s&&!e.async)throw new Error("async schema in sync schema");i+=" var errs_"+l+" = errors;"}var x="valid"+l,b=!e.opts.allErrors,C="",w="",F,P=e.schema.type,_=Array.isArray(P);if(P&&e.opts.nullable&&e.schema.nullable===!0&&(_?P.indexOf("null")==-1&&(P=P.concat("null")):P!="null"&&(P=[P,"null"],_=!0)),_&&P.length==1&&(P=P[0],_=!1),e.schema.$ref&&o){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(i+=" "+e.RULES.all.$comment.code(e,"$comment")),P){if(e.opts.coerceTypes)var A=e.util.coerceToTypes(e.opts.coerceTypes,P);var z=e.RULES.types[P];if(A||_||z===!0||z&&!se(z)){var f=e.schemaPath+".type",m=e.errSchemaPath+"/type",f=e.schemaPath+".type",m=e.errSchemaPath+"/type",O=_?"checkDataTypes":"checkDataType";if(i+=" if ("+e.util[O](P,g,e.opts.strictNumbers,!0)+") { ",A){var U="dataType"+l,k="coerced"+l;i+=" var "+U+" = typeof "+g+"; var "+k+" = undefined; ",e.opts.coerceTypes=="array"&&(i+=" if ("+U+" == 'object' && Array.isArray("+g+") && "+g+".length == 1) { "+g+" = "+g+"[0]; "+U+" = typeof "+g+"; if ("+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+") "+k+" = "+g+"; } "),i+=" if ("+k+" !== undefined) ; ";var R=A;if(R)for(var $,G=-1,Z=R.length-1;G<Z;)$=R[G+=1],$=="string"?i+=" else if ("+U+" == 'number' || "+U+" == 'boolean') "+k+" = '' + "+g+"; else if ("+g+" === null) "+k+" = ''; ":$=="number"||$=="integer"?(i+=" else if ("+U+" == 'boolean' || "+g+" === null || ("+U+" == 'string' && "+g+" && "+g+" == +"+g+" ",$=="integer"&&(i+=" && !("+g+" % 1)"),i+=")) "+k+" = +"+g+"; "):$=="boolean"?i+=" else if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+k+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+k+" = true; ":$=="null"?i+=" else if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+k+" = null; ":e.opts.coerceTypes=="array"&&$=="array"&&(i+=" else if ("+U+" == 'string' || "+U+" == 'number' || "+U+" == 'boolean' || "+g+" == null) "+k+" = ["+g+"]; ");i+=" else { ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(F||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",_?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",_?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&b?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+k+" !== undefined) { ";var j=p?"data"+(p-1||""):"parentData",K=p?e.dataPathArr[p]:"parentDataProperty";i+=" "+g+" = "+k+"; ",p||(i+="if ("+j+" !== undefined)"),i+=" "+j+"["+K+"] = "+k+"; } "}else{var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(F||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",_?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",_?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&b?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(e.schema.$ref&&!o)i+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",b&&(i+=" } if (errors === ",E?i+="0":i+="errs_"+l,i+=") { ",w+="}");else{var Q=e.RULES;if(Q){for(var z,ue=-1,de=Q.length-1;ue<de;)if(z=Q[ue+=1],se(z)){if(z.type&&(i+=" if ("+e.util.checkDataType(z.type,g,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(z.type=="object"&&e.schema.properties){var d=e.schema.properties,fe=Object.keys(d),oe=fe;if(oe)for(var Ge,rt=-1,ce=oe.length-1;rt<ce;){Ge=oe[rt+=1];var Se=d[Ge];if(Se.default!==void 0){var re=g+e.util.getProperty(Ge);if(e.compositeRule){if(e.opts.strictDefaults){var D="default is ignored for: "+re;if(e.opts.strictDefaults==="log")e.logger.warn(D);else throw new Error(D)}}else i+=" if ("+re+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+re+" === null || "+re+" === '' "),i+=" ) "+re+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Se.default)+" ":i+=" "+JSON.stringify(Se.default)+" ",i+="; "}}}else if(z.type=="array"&&Array.isArray(e.schema.items)){var Fe=e.schema.items;if(Fe){for(var Se,G=-1,V=Fe.length-1;G<V;)if(Se=Fe[G+=1],Se.default!==void 0){var re=g+"["+G+"]";if(e.compositeRule){if(e.opts.strictDefaults){var D="default is ignored for: "+re;if(e.opts.strictDefaults==="log")e.logger.warn(D);else throw new Error(D)}}else i+=" if ("+re+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+re+" === null || "+re+" === '' "),i+=" ) "+re+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Se.default)+" ":i+=" "+JSON.stringify(Se.default)+" ",i+="; "}}}}var te=z.rules;if(te){for(var pe,Ce=-1,De=te.length-1;Ce<De;)if(pe=te[Ce+=1],Ee(pe)){var je=pe.code(e,pe.keyword,z.type);je&&(i+=" "+je+" ",b&&(C+="}"))}}if(b&&(i+=" "+C+" ",C=""),z.type&&(i+=" } ",P&&P===z.type&&!A)){i+=" else { ";var f=e.schemaPath+".type",m=e.errSchemaPath+"/type",y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(F||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",_?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",_?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&b?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}b&&(i+=" if (errors === ",E?i+="0":i+="errs_"+l,i+=") { ",w+="}")}}}b&&(i+=" "+w+" "),E?(s?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+x+" = errors === errs_"+l+";";function se(ge){for(var at=ge.rules,ke=0;ke<at.length;ke++)if(Ee(at[ke]))return!0}function Ee(ge){return e.schema[ge.keyword]!==void 0||ge.implements&&Pe(ge)}function Pe(ge){for(var at=ge.implements,ke=0;ke<at.length;ke++)if(e.schema[at[ke]]!==void 0)return!0}return i}});var Cj=S((HYe,Ej)=>{"use strict";h();var ub=ab(),pb=Du(),xj=cb(),lxe=ST(),bj=TT(),pxe=pb.ucs2length,dxe=eb(),fxe=xj.Validation;Ej.exports=PT;function PT(t,e,r,n){var i=this,s=this._opts,o=[void 0],a={},c=[],u={},l=[],p={},d=[];e=e||{schema:t,refVal:o,refs:a};var f=mxe.call(this,t,e,n),m=this._compilations[f.index];if(f.compiling)return m.callValidate=D;var g=this._formats,y=this.RULES;try{var v=x(t,e,r,n);m.validate=v;var E=m.callValidate;return E&&(E.schema=v.schema,E.errors=null,E.refs=v.refs,E.refVal=v.refVal,E.root=v.root,E.$async=v.$async,s.sourceCode&&(E.source=v.source)),v}finally{hxe.call(this,t,e,n)}function D(){var O=m.validate,U=O.apply(this,arguments);return D.errors=O.errors,U}function x(O,U,k,R){var $=!U||U&&U.schema==O;if(U.schema!=e.schema)return PT.call(i,O,U,k,R);var G=O.$async===!0,Z=bj({isTop:!0,schema:O,isRoot:$,baseId:R,root:U,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:xj.MissingRef,RULES:y,validate:bj,util:pb,resolve:ub,resolveRef:b,usePattern:_,useDefault:A,useCustomRule:z,opts:s,formats:g,logger:i.logger,self:i});Z=lb(o,vxe)+lb(c,gxe)+lb(l,yxe)+lb(d,bxe)+Z,s.processCode&&(Z=s.processCode(Z,O));var j;try{var K=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",Z);j=K(i,y,g,e,o,l,d,dxe,pxe,fxe),o[0]=j}catch(Q){throw i.logger.error("Error compiling schema, function code:",Z),Q}return j.schema=O,j.errors=null,j.refs=a,j.refVal=o,j.root=$?j:U,G&&(j.$async=!0),s.sourceCode===!0&&(j.source={code:Z,patterns:c,defaults:l}),j}function b(O,U,k){U=ub.url(O,U);var R=a[U],$,G;if(R!==void 0)return $=o[R],G="refVal["+R+"]",P($,G);if(!k&&e.refs){var Z=e.refs[U];if(Z!==void 0)return $=e.refVal[Z],G=C(U,$),P($,G)}G=C(U);var j=ub.call(i,x,e,U);if(j===void 0){var K=r&&r[U];K&&(j=ub.inlineRef(K,s.inlineRefs)?K:PT.call(i,K,e,r,O))}if(j===void 0)w(U);else return F(U,j),P(j,G)}function C(O,U){var k=o.length;return o[k]=U,a[O]=k,"refVal"+k}function w(O){delete a[O]}function F(O,U){var k=a[O];o[k]=U}function P(O,U){return typeof O=="object"||typeof O=="boolean"?{code:U,schema:O,inline:!0}:{code:U,$async:O&&!!O.$async}}function _(O){var U=u[O];return U===void 0&&(U=u[O]=c.length,c[U]=O),"pattern"+U}function A(O){switch(typeof O){case"boolean":case"number":return""+O;case"string":return pb.toQuotedString(O);case"object":if(O===null)return"null";var U=lxe(O),k=p[U];return k===void 0&&(k=p[U]=l.length,l[k]=O),"default"+k}}function z(O,U,k,R){if(i._opts.validateSchema!==!1){var $=O.definition.dependencies;if($&&!$.every(function(oe){return Object.prototype.hasOwnProperty.call(k,oe)}))throw new Error("parent schema must have all required keywords: "+$.join(","));var G=O.definition.validateSchema;if(G){var Z=G(U);if(!Z){var j="keyword schema is invalid: "+i.errorsText(G.errors);if(i._opts.validateSchema=="log")i.logger.error(j);else throw new Error(j)}}}var K=O.definition.compile,Q=O.definition.inline,ue=O.definition.macro,de;if(K)de=K.call(i,U,k,R);else if(ue)de=ue.call(i,U,k,R),s.validateSchema!==!1&&i.validateSchema(de,!0);else if(Q)de=Q.call(i,R,O.keyword,U,k);else if(de=O.definition.validate,!de)return;if(de===void 0)throw new Error('custom keyword "'+O.keyword+'"failed to compile');var fe=d.length;return d[fe]=de,{code:"customRule"+fe,validate:de}}}function mxe(t,e,r){var n=Dj.call(this,t,e,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:t,root:e,baseId:r},{index:n,compiling:!1})}function hxe(t,e,r){var n=Dj.call(this,t,e,r);n>=0&&this._compilations.splice(n,1)}function Dj(t,e,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==t&&i.root==e&&i.baseId==r)return n}return-1}function gxe(t,e){return"var pattern"+t+" = new RegExp("+pb.toQuotedString(e[t])+");"}function yxe(t){return"var default"+t+" = defaults["+t+"];"}function vxe(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function bxe(t){return"var customRule"+t+" = customRules["+t+"];"}function lb(t,e){if(!t.length)return"";for(var r="",n=0;n<t.length;n++)r+=e(n,t);return r}});var Sj=S((KYe,wj)=>{"use strict";h();var db=wj.exports=function(){this._cache={}};db.prototype.put=function(e,r){this._cache[e]=r};db.prototype.get=function(e){return this._cache[e]};db.prototype.del=function(e){delete this._cache[e]};db.prototype.clear=function(){this._cache={}}});var Mj=S((JYe,Bj)=>{"use strict";h();var xxe=Du(),Dxe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Exe=[0,31,28,31,30,31,30,31,31,30,31,30,31],Cxe=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Tj=/^(?=.{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,wxe=/^(?:[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,Sxe=/^(?:[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,Pj=/^(?:(?:[^\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,Aj=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,_j=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Fj=/^(?:\/(?:[^~/]|~0|~1)*)*$/,kj=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Ij=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Bj.exports=fb;function fb(t){return t=t=="full"?"full":"fast",xxe.copy(fb[t])}fb.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\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,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Pj,url:Aj,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,hostname:Tj,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[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}))|:)))(?:%.+)?\s*$/i,regex:Oj,uuid:_j,"json-pointer":Fj,"json-pointer-uri-fragment":kj,"relative-json-pointer":Ij};fb.full={date:Nj,time:Rj,"date-time":Axe,uri:Fxe,"uri-reference":Sxe,"uri-template":Pj,url:Aj,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:Tj,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[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}))|:)))(?:%.+)?\s*$/i,regex:Oj,uuid:_j,"json-pointer":Fj,"json-pointer-uri-fragment":kj,"relative-json-pointer":Ij};function Txe(t){return t%4===0&&(t%100!==0||t%400===0)}function Nj(t){var e=t.match(Dxe);if(!e)return!1;var r=+e[1],n=+e[2],i=+e[3];return n>=1&&n<=12&&i>=1&&i<=(n==2&&Txe(r)?29:Exe[n])}function Rj(t,e){var r=t.match(Cxe);if(!r)return!1;var n=r[1],i=r[2],s=r[3],o=r[5];return(n<=23&&i<=59&&s<=59||n==23&&i==59&&s==60)&&(!e||o)}var Pxe=/t|\s/i;function Axe(t){var e=t.split(Pxe);return e.length==2&&Nj(e[0])&&Rj(e[1],!0)}var _xe=/\/|:/;function Fxe(t){return _xe.test(t)&&wxe.test(t)}var kxe=/[^\\]\\Z/;function Oj(t){if(kxe.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var $j=S((XYe,Lj)=>{"use strict";h();Lj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+s,d,f;if(a=="#"||a=="#/")e.isRoot?(d=e.async,f="validate"):(d=e.root.schema.$async===!0,f="root.refVal[0]");else{var m=e.resolveRef(e.baseId,a,e.isRoot);if(m===void 0){var g=e.MissingRefError.message(e.baseId,a);if(e.opts.missingRefs=="fail"){e.logger.error(g);var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(a)+"' } ",e.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(a)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(a)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(i+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(g),u&&(i+=" if (true) { ");else throw new e.MissingRefError(e.baseId,a,g)}else if(m.inline){var E=e.util.copy(e);E.level++;var D="valid"+E.level;E.schema=m.schema,E.schemaPath="",E.errSchemaPath=a;var x=e.validate(E).replace(/validate\.schema/g,m.code);i+=" "+x+" ",u&&(i+=" if ("+D+") { ")}else d=m.$async===!0||e.async&&m.$async!==!1,f=m.code}if(f){var y=y||[];y.push(i),i="",e.opts.passContext?i+=" "+f+".call(this, ":i+=" "+f+"( ",i+=" "+l+", (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var b=o?"data"+(o-1||""):"parentData",C=o?e.dataPathArr[o]:"parentDataProperty";i+=" , "+b+" , "+C+", rootData) ";var w=i;if(i=y.pop(),d){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(i+=" var "+p+"; "),i+=" try { await "+w+"; ",u&&(i+=" "+p+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(i+=" "+p+" = false; "),i+=" } ",u&&(i+=" if ("+p+") { ")}else i+=" if (!"+w+") { if (vErrors === null) vErrors = "+f+".errors; else vErrors = vErrors.concat("+f+".errors); errors = vErrors.length; } ",u&&(i+=" else { ")}return i}});var Uj=S((ZYe,jj)=>{"use strict";h();jj.exports=function(e,r,n){var i=" ",s=e.schema[r],o=e.schemaPath+e.util.getProperty(r),a=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u=e.util.copy(e),l="";u.level++;var p="valid"+u.level,d=u.baseId,f=!0,m=s;if(m)for(var g,y=-1,v=m.length-1;y<v;)g=m[y+=1],(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all))&&(f=!1,u.schema=g,u.schemaPath=o+"["+y+"]",u.errSchemaPath=a+"/"+y,i+=" "+e.validate(u)+" ",u.baseId=d,c&&(i+=" if ("+p+") { ",l+="}"));return c&&(f?i+=" if (true) { ":i+=" "+l.slice(0,-1)+" "),i}});var zj=S((tXe,qj)=>{"use strict";h();qj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f="errs__"+s,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,v=a.every(function(F){return e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all)});if(v){var E=m.baseId;i+=" var "+f+" = errors; var "+d+" = false; ";var D=e.compositeRule;e.compositeRule=m.compositeRule=!0;var x=a;if(x)for(var b,C=-1,w=x.length-1;C<w;)b=x[C+=1],m.schema=b,m.schemaPath=c+"["+C+"]",m.errSchemaPath=u+"/"+C,i+=" "+e.validate(m)+" ",m.baseId=E,i+=" "+d+" = "+d+" || "+y+"; if (!"+d+") { ",g+="}";e.compositeRule=m.compositeRule=D,i+=" "+g+" if (!"+d+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else l&&(i+=" if (true) { ");return i}});var Hj=S((nXe,Gj)=>{"use strict";h();Gj.exports=function(e,r,n){var i=" ",s=e.schema[r],o=e.errSchemaPath+"/"+r,a=!e.opts.allErrors,c=e.util.toQuotedString(s);return e.opts.$comment===!0?i+=" console.log("+c+");":typeof e.opts.$comment=="function"&&(i+=" self._opts.$comment("+c+", "+e.util.toQuotedString(o)+", validate.root.schema);"),i}});var Kj=S((sXe,Vj)=>{"use strict";h();Vj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f=e.opts.$data&&a&&a.$data,m;f?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",m="schema"+s):m=a,f||(i+=" var schema"+s+" = validate.schema"+c+";"),i+="var "+d+" = equal("+p+", schema"+s+"); if (!"+d+") { ";var g=g||[];g.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+s+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var y=i;return i=g.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",l&&(i+=" else { "),i}});var Jj=S((aXe,Wj)=>{"use strict";h();Wj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f="errs__"+s,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,v="i"+s,E=m.dataLevel=e.dataLevel+1,D="data"+E,x=e.baseId,b=e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all);if(i+="var "+f+" = errors;var "+d+";",b){var C=e.compositeRule;e.compositeRule=m.compositeRule=!0,m.schema=a,m.schemaPath=c,m.errSchemaPath=u,i+=" var "+y+" = false; for (var "+v+" = 0; "+v+" < "+p+".length; "+v+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var w=p+"["+v+"]";m.dataPathArr[E]=v;var F=e.validate(m);m.baseId=x,e.util.varOccurences(F,D)<2?i+=" "+e.util.varReplace(F,D,w)+" ":i+=" var "+D+" = "+w+"; "+F+" ",i+=" if ("+y+") break; } ",e.compositeRule=m.compositeRule=C,i+=" "+g+" if (!"+y+") {"}else i+=" if ("+p+".length == 0) {";var P=P||[];P.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should contain a valid item' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var _=i;return i=P.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",b&&(i+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(i+=" } "),i}});var Xj=S((uXe,Yj)=>{"use strict";h();Yj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="errs__"+s,f=e.util.copy(e),m="";f.level++;var g="valid"+f.level,y={},v={},E=e.opts.ownProperties;for(C in a)if(C!="__proto__"){var D=a[C],x=Array.isArray(D)?v:y;x[C]=D}i+="var "+d+" = errors;";var b=e.errorPath;i+="var missing"+s+";";for(var C in v)if(x=v[C],x.length){if(i+=" if ( "+p+e.util.getProperty(C)+" !== undefined ",E&&(i+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(C)+"') "),l){i+=" && ( ";var w=x;if(w)for(var F,P=-1,_=w.length-1;P<_;){F=w[P+=1],P&&(i+=" || ");var A=e.util.getProperty(F),z=p+A;i+=" ( ( "+z+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(F)+"') "),i+=") && (missing"+s+" = "+e.util.toQuotedString(e.opts.jsonPointers?F:A)+") ) "}i+=")) { ";var O="missing"+s,U="' + "+O+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,O,!0):b+" + "+O);var k=k||[];k.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(C)+"', missingProperty: '"+U+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(C)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var R=i;i=k.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var $=x;if($)for(var F,G=-1,Z=$.length-1;G<Z;){F=$[G+=1];var A=e.util.getProperty(F),U=e.util.escapeQuotes(F),z=p+A;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,F,e.opts.jsonPointers)),i+=" if ( "+z+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(F)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(C)+"', missingProperty: '"+U+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(C)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",l&&(m+="}",i+=" else { ")}e.errorPath=b;var j=f.baseId;for(var C in y){var D=y[C];(e.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:e.util.schemaHasRules(D,e.RULES.all))&&(i+=" "+g+" = true; if ( "+p+e.util.getProperty(C)+" !== undefined ",E&&(i+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(C)+"') "),i+=") { ",f.schema=D,f.schemaPath=c+e.util.getProperty(C),f.errSchemaPath=u+"/"+e.util.escapeFragment(C),i+=" "+e.validate(f)+" ",f.baseId=j,i+=" } ",l&&(i+=" if ("+g+") { ",m+="}"))}return l&&(i+=" "+m+" if ("+d+" == errors) {"),i}});var Zj=S((pXe,Qj)=>{"use strict";h();Qj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f=e.opts.$data&&a&&a.$data,m;f?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",m="schema"+s):m=a;var g="i"+s,y="schema"+s;f||(i+=" var "+y+" = validate.schema"+c+";"),i+="var "+d+";",f&&(i+=" if (schema"+s+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+s+")) "+d+" = false; else {"),i+=""+d+" = false;for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) if (equal("+p+", "+y+"["+g+"])) { "+d+" = true; break; }",f&&(i+=" } "),i+=" if (!"+d+") { ";var v=v||[];v.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+s+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var E=i;return i=v.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+E+"]); ":i+=" validate.errors = ["+E+"]; return false; ":i+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",l&&(i+=" else { "),i}});var t7=S((fXe,e7)=>{"use strict";h();e7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||"");if(e.opts.format===!1)return l&&(i+=" if (true) { "),i;var d=e.opts.$data&&a&&a.$data,f;d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a;var m=e.opts.unknownFormats,g=Array.isArray(m);if(d){var y="format"+s,v="isObject"+s,E="formatType"+s;i+=" var "+y+" = formats["+f+"]; var "+v+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+E+" = "+v+" && "+y+".type || 'string'; if ("+v+") { ",e.async&&(i+=" var async"+s+" = "+y+".async; "),i+=" "+y+" = "+y+".validate; } if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),i+=" (",m!="ignore"&&(i+=" ("+f+" && !"+y+" ",g&&(i+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),i+=") || "),i+=" ("+y+" && "+E+" == '"+n+"' && !(typeof "+y+" == 'function' ? ",e.async?i+=" (async"+s+" ? await "+y+"("+p+") : "+y+"("+p+")) ":i+=" "+y+"("+p+") ",i+=" : "+y+".test("+p+"))))) {"}else{var y=e.formats[a];if(!y){if(m=="ignore")return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(i+=" if (true) { "),i;if(g&&m.indexOf(a)>=0)return l&&(i+=" if (true) { "),i;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var v=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,E=v&&y.type||"string";if(v){var D=y.async===!0;y=y.validate}if(E!=n)return l&&(i+=" if (true) { "),i;if(D){if(!e.async)throw new Error("async format in sync schema");var x="formats"+e.util.getProperty(a)+".validate";i+=" if (!(await "+x+"("+p+"))) { "}else{i+=" if (! ";var x="formats"+e.util.getProperty(a);v&&(x+=".validate"),typeof y=="function"?i+=" "+x+"("+p+") ":i+=" "+x+".test("+p+") ",i+=") { "}}var b=b||[];b.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",d?i+=""+f:i+=""+e.util.toQuotedString(a),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match format "`,d?i+="' + "+f+" + '":i+=""+e.util.escapeQuotes(a),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+e.util.toQuotedString(a),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var C=i;return i=b.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i}});var n7=S((hXe,r7)=>{"use strict";h();r7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f="errs__"+s,m=e.util.copy(e);m.level++;var g="valid"+m.level,y=e.schema.then,v=e.schema.else,E=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),D=v!==void 0&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)),x=m.baseId;if(E||D){var b;m.createErrors=!1,m.schema=a,m.schemaPath=c,m.errSchemaPath=u,i+=" var "+f+" = errors; var "+d+" = true; ";var C=e.compositeRule;e.compositeRule=m.compositeRule=!0,i+=" "+e.validate(m)+" ",m.baseId=x,m.createErrors=!0,i+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=m.compositeRule=C,E?(i+=" if ("+g+") { ",m.schema=e.schema.then,m.schemaPath=e.schemaPath+".then",m.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(m)+" ",m.baseId=x,i+=" "+d+" = "+g+"; ",E&&D?(b="ifClause"+s,i+=" var "+b+" = 'then'; "):b="'then'",i+=" } ",D&&(i+=" else { ")):i+=" if (!"+g+") { ",D&&(m.schema=e.schema.else,m.schemaPath=e.schemaPath+".else",m.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(m)+" ",m.baseId=x,i+=" "+d+" = "+g+"; ",E&&D?(b="ifClause"+s,i+=" var "+b+" = 'else'; "):b="'else'",i+=" } "),i+=" if (!"+d+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+b+" } ",e.opts.messages!==!1&&(i+=` , message: 'should match "' + `+b+` + '" schema' `),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",l&&(i+=" else { ")}else l&&(i+=" if (true) { ");return i}});var s7=S((yXe,i7)=>{"use strict";h();i7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f="errs__"+s,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,v="i"+s,E=m.dataLevel=e.dataLevel+1,D="data"+E,x=e.baseId;if(i+="var "+f+" = errors;var "+d+";",Array.isArray(a)){var b=e.schema.additionalItems;if(b===!1){i+=" "+d+" = "+p+".length <= "+a.length+"; ";var C=u;u=e.errSchemaPath+"/additionalItems",i+=" if (!"+d+") { ";var w=w||[];w.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a.length+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var F=i;i=w.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+F+"]); ":i+=" validate.errors = ["+F+"]; return false; ":i+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u=C,l&&(g+="}",i+=" else { ")}var P=a;if(P){for(var _,A=-1,z=P.length-1;A<z;)if(_=P[A+=1],e.opts.strictKeywords?typeof _=="object"&&Object.keys(_).length>0||_===!1:e.util.schemaHasRules(_,e.RULES.all)){i+=" "+y+" = true; if ("+p+".length > "+A+") { ";var O=p+"["+A+"]";m.schema=_,m.schemaPath=c+"["+A+"]",m.errSchemaPath=u+"/"+A,m.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0),m.dataPathArr[E]=A;var U=e.validate(m);m.baseId=x,e.util.varOccurences(U,D)<2?i+=" "+e.util.varReplace(U,D,O)+" ":i+=" var "+D+" = "+O+"; "+U+" ",i+=" } ",l&&(i+=" if ("+y+") { ",g+="}")}}if(typeof b=="object"&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))){m.schema=b,m.schemaPath=e.schemaPath+".additionalItems",m.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" "+y+" = true; if ("+p+".length > "+a.length+") { for (var "+v+" = "+a.length+"; "+v+" < "+p+".length; "+v+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var O=p+"["+v+"]";m.dataPathArr[E]=v;var U=e.validate(m);m.baseId=x,e.util.varOccurences(U,D)<2?i+=" "+e.util.varReplace(U,D,O)+" ":i+=" var "+D+" = "+O+"; "+U+" ",l&&(i+=" if (!"+y+") break; "),i+=" } } ",l&&(i+=" if ("+y+") { ",g+="}")}}else if(e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all)){m.schema=a,m.schemaPath=c,m.errSchemaPath=u,i+=" for (var "+v+" = 0; "+v+" < "+p+".length; "+v+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var O=p+"["+v+"]";m.dataPathArr[E]=v;var U=e.validate(m);m.baseId=x,e.util.varOccurences(U,D)<2?i+=" "+e.util.varReplace(U,D,O)+" ":i+=" var "+D+" = "+O+"; "+U+" ",l&&(i+=" if (!"+y+") break; "),i+=" }"}return l&&(i+=" "+g+" if ("+f+" == errors) {"),i}});var AT=S((bXe,o7)=>{"use strict";h();o7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,x,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a;var m=r=="maximum",g=m?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[g],v=e.opts.$data&&y&&y.$data,E=m?"<":">",D=m?">":"<",x=void 0;if(!(d||typeof a=="number"||a===void 0))throw new Error(r+" must be number");if(!(v||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(g+" must be number or boolean");if(v){var b=e.util.getData(y.$data,o,e.dataPathArr),C="exclusive"+s,w="exclType"+s,F="exclIsNumber"+s,P="op"+s,_="' + "+P+" + '";i+=" var schemaExcl"+s+" = "+b+"; ",b="schemaExcl"+s,i+=" var "+C+"; var "+w+" = typeof "+b+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var x=g,A=A||[];A.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: '"+g+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var z=i;i=A.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+z+"]); ":i+=" validate.errors = ["+z+"]; return false; ":i+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),i+=" "+w+" == 'number' ? ( ("+C+" = "+f+" === undefined || "+b+" "+E+"= "+f+") ? "+p+" "+D+"= "+b+" : "+p+" "+D+" "+f+" ) : ( ("+C+" = "+b+" === true) ? "+p+" "+D+"= "+f+" : "+p+" "+D+" "+f+" ) || "+p+" !== "+p+") { var op"+s+" = "+C+" ? '"+E+"' : '"+E+"='; ",a===void 0&&(x=g,u=e.errSchemaPath+"/"+g,f=b,d=v)}else{var F=typeof y=="number",_=E;if(F&&d){var P="'"+_+"'";i+=" if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),i+=" ( "+f+" === undefined || "+y+" "+E+"= "+f+" ? "+p+" "+D+"= "+y+" : "+p+" "+D+" "+f+" ) || "+p+" !== "+p+") { "}else{F&&a===void 0?(C=!0,x=g,u=e.errSchemaPath+"/"+g,f=y,D+="="):(F&&(f=Math[m?"min":"max"](y,a)),y===(F?f:!0)?(C=!0,x=g,u=e.errSchemaPath+"/"+g,D+="="):(C=!1,_+="="));var P="'"+_+"'";i+=" if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),i+=" "+p+" "+D+" "+f+" || "+p+" !== "+p+") { "}}x=x||r;var A=A||[];A.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+P+", limit: "+f+", exclusive: "+C+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be "+_+" ",d?i+="' + "+f:i+=""+f+"'"),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var z=i;return i=A.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+z+"]); ":i+=" validate.errors = ["+z+"]; return false; ":i+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i}});var _T=S((DXe,a7)=>{"use strict";h();a7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,g,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;if(d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");var m=r=="maxItems"?">":"<";i+="if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),i+=" "+p+".length "+m+" "+f+") { ";var g=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(g||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxItems"?i+="more":i+="fewer",i+=" than ",d?i+="' + "+f+" + '":i+=""+a,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var v=i;return i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}});var FT=S((CXe,c7)=>{"use strict";h();c7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,g,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;if(d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");var m=r=="maxLength"?">":"<";i+="if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),e.opts.unicode===!1?i+=" "+p+".length ":i+=" ucs2length("+p+") ",i+=" "+m+" "+f+") { ";var g=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(g||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be ",r=="maxLength"?i+="longer":i+="shorter",i+=" than ",d?i+="' + "+f+" + '":i+=""+a,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var v=i;return i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}});var kT=S((SXe,u7)=>{"use strict";h();u7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,g,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;if(d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");var m=r=="maxProperties"?">":"<";i+="if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),i+=" Object.keys("+p+").length "+m+" "+f+") { ";var g=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(g||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxProperties"?i+="more":i+="fewer",i+=" than ",d?i+="' + "+f+" + '":i+=""+a,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var v=i;return i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}});var p7=S((PXe,l7)=>{"use strict";h();l7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;if(d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");i+="var division"+s+";if (",d&&(i+=" "+f+" !== undefined && ( typeof "+f+" != 'number' || "),i+=" (division"+s+" = "+p+" / "+f+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+s+") - division"+s+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+s+" !== parseInt(division"+s+") ",i+=" ) ",d&&(i+=" ) "),i+=" ) { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+f+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",d?i+="' + "+f:i+=""+f+"'"),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}});var f7=S((_Xe,d7)=>{"use strict";h();d7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="errs__"+s,f=e.util.copy(e);f.level++;var m="valid"+f.level;if(e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=c,f.errSchemaPath=u,i+=" var "+d+" = errors; ";var g=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var y;f.opts.allErrors&&(y=f.opts.allErrors,f.opts.allErrors=!1),i+=" "+e.validate(f)+" ",f.createErrors=!0,y&&(f.opts.allErrors=y),e.compositeRule=f.compositeRule=g,i+=" if ("+m+") { ";var v=v||[];v.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var E=i;i=v.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+E+"]); ":i+=" validate.errors = ["+E+"]; return false; ":i+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(i+=" if (false) { ");return i}});var h7=S((kXe,m7)=>{"use strict";h();m7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f="errs__"+s,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,v=m.baseId,E="prevValid"+s,D="passingSchemas"+s;i+="var "+f+" = errors , "+E+" = false , "+d+" = false , "+D+" = null; ";var x=e.compositeRule;e.compositeRule=m.compositeRule=!0;var b=a;if(b)for(var C,w=-1,F=b.length-1;w<F;)C=b[w+=1],(e.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===!1:e.util.schemaHasRules(C,e.RULES.all))?(m.schema=C,m.schemaPath=c+"["+w+"]",m.errSchemaPath=u+"/"+w,i+=" "+e.validate(m)+" ",m.baseId=v):i+=" var "+y+" = true; ",w&&(i+=" if ("+y+" && "+E+") { "+d+" = false; "+D+" = ["+D+", "+w+"]; } else { ",g+="}"),i+=" if ("+y+") { "+d+" = "+E+" = true; "+D+" = "+w+"; }";return e.compositeRule=m.compositeRule=x,i+=""+g+"if (!"+d+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+D+" } ",e.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(i+=" } "),i}});var y7=S((NXe,g7)=>{"use strict";h();g7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a;var m=d?"(new RegExp("+f+"))":e.usePattern(a);i+="if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),i+=" !"+m+".test("+p+") ) { ";var g=g||[];g.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",d?i+=""+f:i+=""+e.util.toQuotedString(a),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,d?i+="' + "+f+" + '":i+=""+e.util.escapeQuotes(a),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+e.util.toQuotedString(a),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var y=i;return i=g.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}});var b7=S((OXe,v7)=>{"use strict";h();v7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="errs__"+s,f=e.util.copy(e),m="";f.level++;var g="valid"+f.level,y="key"+s,v="idx"+s,E=f.dataLevel=e.dataLevel+1,D="data"+E,x="dataProperties"+s,b=Object.keys(a||{}).filter(G),C=e.schema.patternProperties||{},w=Object.keys(C).filter(G),F=e.schema.additionalProperties,P=b.length||w.length,_=F===!1,A=typeof F=="object"&&Object.keys(F).length,z=e.opts.removeAdditional,O=_||A||z,U=e.opts.ownProperties,k=e.baseId,R=e.schema.required;if(R&&!(e.opts.$data&&R.$data)&&R.length<e.opts.loopRequired)var $=e.util.toHash(R);function G(le){return le!=="__proto__"}if(i+="var "+d+" = errors;var "+g+" = true;",U&&(i+=" var "+x+" = undefined;"),O){if(U?i+=" "+x+" = "+x+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+x+".length; "+v+"++) { var "+y+" = "+x+"["+v+"]; ":i+=" for (var "+y+" in "+p+") { ",P){if(i+=" var isAdditional"+s+" = !(false ",b.length)if(b.length>8)i+=" || validate.schema"+c+".hasOwnProperty("+y+") ";else{var Z=b;if(Z)for(var j,K=-1,Q=Z.length-1;K<Q;)j=Z[K+=1],i+=" || "+y+" == "+e.util.toQuotedString(j)+" "}if(w.length){var ue=w;if(ue)for(var de,fe=-1,oe=ue.length-1;fe<oe;)de=ue[fe+=1],i+=" || "+e.usePattern(de)+".test("+y+") "}i+=" ); if (isAdditional"+s+") { "}if(z=="all")i+=" delete "+p+"["+y+"]; ";else{var Ge=e.errorPath,rt="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),_)if(z)i+=" delete "+p+"["+y+"]; ";else{i+=" "+g+" = false; ";var ce=u;u=e.errSchemaPath+"/additionalProperties";var Se=Se||[];Se.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { additionalProperty: '"+rt+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var re=i;i=Se.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+re+"]); ":i+=" validate.errors = ["+re+"]; return false; ":i+=" var err = "+re+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=ce,l&&(i+=" break; ")}else if(A)if(z=="failing"){i+=" var "+d+" = errors; ";var Fe=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=F,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var V=p+"["+y+"]";f.dataPathArr[E]=y;var te=e.validate(f);f.baseId=k,e.util.varOccurences(te,D)<2?i+=" "+e.util.varReplace(te,D,V)+" ":i+=" var "+D+" = "+V+"; "+te+" ",i+=" if (!"+g+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+p+"["+y+"]; } ",e.compositeRule=f.compositeRule=Fe}else{f.schema=F,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var V=p+"["+y+"]";f.dataPathArr[E]=y;var te=e.validate(f);f.baseId=k,e.util.varOccurences(te,D)<2?i+=" "+e.util.varReplace(te,D,V)+" ":i+=" var "+D+" = "+V+"; "+te+" ",l&&(i+=" if (!"+g+") break; ")}e.errorPath=Ge}P&&(i+=" } "),i+=" } ",l&&(i+=" if ("+g+") { ",m+="}")}var pe=e.opts.useDefaults&&!e.compositeRule;if(b.length){var Ce=b;if(Ce)for(var j,De=-1,je=Ce.length-1;De<je;){j=Ce[De+=1];var se=a[j];if(e.opts.strictKeywords?typeof se=="object"&&Object.keys(se).length>0||se===!1:e.util.schemaHasRules(se,e.RULES.all)){var Ee=e.util.getProperty(j),V=p+Ee,Pe=pe&&se.default!==void 0;f.schema=se,f.schemaPath=c+Ee,f.errSchemaPath=u+"/"+e.util.escapeFragment(j),f.errorPath=e.util.getPath(e.errorPath,j,e.opts.jsonPointers),f.dataPathArr[E]=e.util.toQuotedString(j);var te=e.validate(f);if(f.baseId=k,e.util.varOccurences(te,D)<2){te=e.util.varReplace(te,D,V);var ge=V}else{var ge=D;i+=" var "+D+" = "+V+"; "}if(Pe)i+=" "+te+" ";else{if($&&$[j]){i+=" if ( "+ge+" === undefined ",U&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(j)+"') "),i+=") { "+g+" = false; ";var Ge=e.errorPath,ce=u,at=e.util.escapeQuotes(j);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Ge,j,e.opts.jsonPointers)),u=e.errSchemaPath+"/required";var Se=Se||[];Se.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+at+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+at+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var re=i;i=Se.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+re+"]); ":i+=" validate.errors = ["+re+"]; return false; ":i+=" var err = "+re+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=ce,e.errorPath=Ge,i+=" } else { "}else l?(i+=" if ( "+ge+" === undefined ",U&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(j)+"') "),i+=") { "+g+" = true; } else { "):(i+=" if ("+ge+" !== undefined ",U&&(i+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(j)+"') "),i+=" ) { ");i+=" "+te+" } "}}l&&(i+=" if ("+g+") { ",m+="}")}}if(w.length){var ke=w;if(ke)for(var de,Yt=-1,So=ke.length-1;Yt<So;){de=ke[Yt+=1];var se=C[de];if(e.opts.strictKeywords?typeof se=="object"&&Object.keys(se).length>0||se===!1:e.util.schemaHasRules(se,e.RULES.all)){f.schema=se,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(de),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(de),U?i+=" "+x+" = "+x+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+x+".length; "+v+"++) { var "+y+" = "+x+"["+v+"]; ":i+=" for (var "+y+" in "+p+") { ",i+=" if ("+e.usePattern(de)+".test("+y+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var V=p+"["+y+"]";f.dataPathArr[E]=y;var te=e.validate(f);f.baseId=k,e.util.varOccurences(te,D)<2?i+=" "+e.util.varReplace(te,D,V)+" ":i+=" var "+D+" = "+V+"; "+te+" ",l&&(i+=" if (!"+g+") break; "),i+=" } ",l&&(i+=" else "+g+" = true; "),i+=" } ",l&&(i+=" if ("+g+") { ",m+="}")}}}return l&&(i+=" "+m+" if ("+d+" == errors) {"),i}});var D7=S((MXe,x7)=>{"use strict";h();x7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="errs__"+s,f=e.util.copy(e),m="";f.level++;var g="valid"+f.level;if(i+="var "+d+" = errors;",e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=c,f.errSchemaPath=u;var y="key"+s,v="idx"+s,E="i"+s,D="' + "+y+" + '",x=f.dataLevel=e.dataLevel+1,b="data"+x,C="dataProperties"+s,w=e.opts.ownProperties,F=e.baseId;w&&(i+=" var "+C+" = undefined; "),w?i+=" "+C+" = "+C+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+C+".length; "+v+"++) { var "+y+" = "+C+"["+v+"]; ":i+=" for (var "+y+" in "+p+") { ",i+=" var startErrs"+s+" = errors; ";var P=y,_=e.compositeRule;e.compositeRule=f.compositeRule=!0;var A=e.validate(f);f.baseId=F,e.util.varOccurences(A,b)<2?i+=" "+e.util.varReplace(A,b,P)+" ":i+=" var "+b+" = "+P+"; "+A+" ",e.compositeRule=f.compositeRule=_,i+=" if (!"+g+") { for (var "+E+"=startErrs"+s+"; "+E+"<errors; "+E+"++) { vErrors["+E+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { propertyName: '"+D+"' } ",e.opts.messages!==!1&&(i+=" , message: 'property name \\'"+D+"\\' is invalid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),l&&(i+=" break; "),i+=" } }"}return l&&(i+=" "+m+" if ("+d+" == errors) {"),i}});var C7=S(($Xe,E7)=>{"use strict";h();E7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f=e.opts.$data&&a&&a.$data,m;f?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",m="schema"+s):m=a;var g="schema"+s;if(!f)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],v=a;if(v)for(var E,D=-1,x=v.length-1;D<x;){E=v[D+=1];var b=e.schema.properties[E];b&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))||(y[y.length]=E)}}else var y=a;if(f||y.length){var C=e.errorPath,w=f||y.length>=e.opts.loopRequired,F=e.opts.ownProperties;if(l)if(i+=" var missing"+s+"; ",w){f||(i+=" var "+g+" = validate.schema"+c+"; ");var P="i"+s,_="schema"+s+"["+P+"]",A="' + "+_+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(C,_,e.opts.jsonPointers)),i+=" var "+d+" = true; ",f&&(i+=" if (schema"+s+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+s+")) "+d+" = false; else {"),i+=" for (var "+P+" = 0; "+P+" < "+g+".length; "+P+"++) { "+d+" = "+p+"["+g+"["+P+"]] !== undefined ",F&&(i+=" && Object.prototype.hasOwnProperty.call("+p+", "+g+"["+P+"]) "),i+="; if (!"+d+") break; } ",f&&(i+=" } "),i+=" if (!"+d+") { ";var z=z||[];z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+A+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var O=i;i=z.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var U=y;if(U)for(var k,P=-1,R=U.length-1;P<R;){k=U[P+=1],P&&(i+=" || ");var $=e.util.getProperty(k),G=p+$;i+=" ( ( "+G+" === undefined ",F&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(k)+"') "),i+=") && (missing"+s+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:$)+") ) "}i+=") { ";var _="missing"+s,A="' + "+_+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(C,_,!0):C+" + "+_);var z=z||[];z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+A+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var O=i;i=z.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(w){f||(i+=" var "+g+" = validate.schema"+c+"; ");var P="i"+s,_="schema"+s+"["+P+"]",A="' + "+_+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(C,_,e.opts.jsonPointers)),f&&(i+=" if ("+g+" && !Array.isArray("+g+")) { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+A+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+g+" !== undefined) { "),i+=" for (var "+P+" = 0; "+P+" < "+g+".length; "+P+"++) { if ("+p+"["+g+"["+P+"]] === undefined ",F&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", "+g+"["+P+"]) "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+A+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(i+=" } ")}else{var Z=y;if(Z)for(var k,j=-1,K=Z.length-1;j<K;){k=Z[j+=1];var $=e.util.getProperty(k),A=e.util.escapeQuotes(k),G=p+$;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(C,k,e.opts.jsonPointers)),i+=" if ( "+G+" === undefined ",F&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(k)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+A+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=C}else l&&(i+=" if (true) {");return i}});var S7=S((UXe,w7)=>{"use strict";h();w7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f=e.opts.$data&&a&&a.$data,m;if(f?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",m="schema"+s):m=a,(a||f)&&e.opts.uniqueItems!==!1){f&&(i+=" var "+d+"; if ("+m+" === false || "+m+" === undefined) "+d+" = true; else if (typeof "+m+" != 'boolean') "+d+" = false; else { "),i+=" var i = "+p+".length , "+d+" = true , j; if (i > 1) { ";var g=e.schema.items&&e.schema.items.type,y=Array.isArray(g);if(!g||g=="object"||g=="array"||y&&(g.indexOf("object")>=0||g.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+d+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var v="checkDataType"+(y?"s":"");i+=" if ("+e.util[v](g,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",f&&(i+=" } "),i+=" if (!"+d+") { ";var E=E||[];E.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var D=i;i=E.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { ")}else l&&(i+=" if (true) { ");return i}});var P7=S((zXe,T7)=>{"use strict";h();T7.exports={$ref:$j(),allOf:Uj(),anyOf:zj(),$comment:Hj(),const:Kj(),contains:Jj(),dependencies:Xj(),enum:Zj(),format:t7(),if:n7(),items:s7(),maximum:AT(),minimum:AT(),maxItems:_T(),minItems:_T(),maxLength:FT(),minLength:FT(),maxProperties:kT(),minProperties:kT(),multipleOf:p7(),not:f7(),oneOf:h7(),pattern:y7(),properties:b7(),propertyNames:D7(),required:C7(),uniqueItems:S7(),validate:TT()}});var F7=S((HXe,_7)=>{"use strict";h();var A7=P7(),IT=Du().toHash;_7.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],n=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],i=["number","integer","string","array","object","boolean","null"];return e.all=IT(r),e.types=IT(i),e.forEach(function(s){s.rules=s.rules.map(function(o){var a;if(typeof o=="object"){var c=Object.keys(o)[0];a=o[c],o=c,a.forEach(function(l){r.push(l),e.all[l]=!0})}r.push(o);var u=e.all[o]={keyword:o,code:A7[o],implements:a};return u}),e.all.$comment={keyword:"$comment",code:A7.$comment},s.type&&(e.types[s.type]=s)}),e.keywords=IT(r.concat(n)),e.custom={},e}});var N7=S((KXe,I7)=>{"use strict";h();var k7=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];I7.exports=function(t,e){for(var r=0;r<e.length;r++){t=JSON.parse(JSON.stringify(t));var n=e[r].split("/"),i=t,s;for(s=1;s<n.length;s++)i=i[n[s]];for(s=0;s<k7.length;s++){var o=k7[s],a=i[o];a&&(i[o]={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var B7=S((JXe,O7)=>{"use strict";h();var Ixe=cb().MissingRef;O7.exports=R7;function R7(t,e,r){var n=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(r=e,e=void 0);var i=s(t).then(function(){var a=n._addSchema(t,void 0,e);return a.validate||o(a)});return r&&i.then(function(a){r(null,a)},r),i;function s(a){var c=a.$schema;return c&&!n.getSchema(c)?R7.call(n,{$ref:c},!0):Promise.resolve()}function o(a){try{return n._compile(a)}catch(u){if(u instanceof Ixe)return c(u);throw u}function c(u){var l=u.missingSchema;if(f(l))throw new Error("Schema "+l+" is loaded but "+u.missingRef+" cannot be resolved");var p=n._loadingSchemas[l];return p||(p=n._loadingSchemas[l]=n._opts.loadSchema(l),p.then(d,d)),p.then(function(m){if(!f(l))return s(m).then(function(){f(l)||n.addSchema(m,l,void 0,e)})}).then(function(){return o(a)});function d(){delete n._loadingSchemas[l]}function f(m){return n._refs[m]||n._schemas[m]}}}}});var L7=S((XXe,M7)=>{"use strict";h();M7.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p,d="data"+(o||""),f="valid"+s,m="errs__"+s,g=e.opts.$data&&a&&a.$data,y;g?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",y="schema"+s):y=a;var v=this,E="definition"+s,D=v.definition,x="",b,C,w,F,P;if(g&&D.$data){P="keywordValidate"+s;var _=D.validateSchema;i+=" var "+E+" = RULES.custom['"+r+"'].definition; var "+P+" = "+E+".validate;"}else{if(F=e.useCustomRule(v,a,e.schema,e),!F)return;y="validate.schema"+c,P=F.code,b=D.compile,C=D.inline,w=D.macro}var A=P+".errors",z="i"+s,O="ruleErr"+s,U=D.async;if(U&&!e.async)throw new Error("async keyword in sync schema");if(C||w||(i+=""+A+" = null;"),i+="var "+m+" = errors;var "+f+";",g&&D.$data&&(x+="}",i+=" if ("+y+" === undefined) { "+f+" = true; } else { ",_&&(x+="}",i+=" "+f+" = "+E+".validateSchema("+y+"); if ("+f+") { ")),C)D.statements?i+=" "+F.validate+" ":i+=" "+f+" = "+F.validate+"; ";else if(w){var k=e.util.copy(e),x="";k.level++;var R="valid"+k.level;k.schema=F.validate,k.schemaPath="";var $=e.compositeRule;e.compositeRule=k.compositeRule=!0;var G=e.validate(k).replace(/validate\.schema/g,P);e.compositeRule=k.compositeRule=$,i+=" "+G}else{var Z=Z||[];Z.push(i),i="",i+=" "+P+".call( ",e.opts.passContext?i+="this":i+="self",b||D.schema===!1?i+=" , "+d+" ":i+=" , "+y+" , "+d+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var j=o?"data"+(o-1||""):"parentData",K=o?e.dataPathArr[o]:"parentDataProperty";i+=" , "+j+" , "+K+" , rootData ) ";var Q=i;i=Z.pop(),D.errors===!1?(i+=" "+f+" = ",U&&(i+="await "),i+=""+Q+"; "):U?(A="customErrors"+s,i+=" var "+A+" = null; try { "+f+" = await "+Q+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+A+" = e.errors; else throw e; } "):i+=" "+A+" = null; "+f+" = "+Q+"; "}if(D.modifying&&(i+=" if ("+j+") "+d+" = "+j+"["+K+"];"),i+=""+x,D.valid)l&&(i+=" if (true) { ");else{i+=" if ( ",D.valid===void 0?(i+=" !",w?i+=""+R:i+=""+f):i+=" "+!D.valid+" ",i+=") { ",p=v.keyword;var Z=Z||[];Z.push(i),i="";var Z=Z||[];Z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var ue=i;i=Z.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+ue+"]); ":i+=" validate.errors = ["+ue+"]; return false; ":i+=" var err = "+ue+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var de=i;i=Z.pop(),C?D.errors?D.errors!="full"&&(i+=" for (var "+z+"="+m+"; "+z+"<errors; "+z+"++) { var "+O+" = vErrors["+z+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+O+".schemaPath === undefined) { "+O+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+O+".schema = "+y+"; "+O+".data = "+d+"; "),i+=" } "):D.errors===!1?i+=" "+de+" ":(i+=" if ("+m+" == errors) { "+de+" } else { for (var "+z+"="+m+"; "+z+"<errors; "+z+"++) { var "+O+" = vErrors["+z+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+O+".schemaPath === undefined) { "+O+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+O+".schema = "+y+"; "+O+".data = "+d+"; "),i+=" } } "):w?(i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):D.errors===!1?i+=" "+de+" ":(i+=" if (Array.isArray("+A+")) { if (vErrors === null) vErrors = "+A+"; else vErrors = vErrors.concat("+A+"); errors = vErrors.length; for (var "+z+"="+m+"; "+z+"<errors; "+z+"++) { var "+O+" = vErrors["+z+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+e.errorPath+"; "+O+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(i+=" "+O+".schema = "+y+"; "+O+".data = "+d+"; "),i+=" } } else { "+de+" } "),i+=" } ",l&&(i+=" else { ")}return i}});var NT=S((ZXe,Nxe)=>{Nxe.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var U7=S((eQe,j7)=>{"use strict";h();var $7=NT();j7.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:$7.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:$7.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var z7=S((rQe,q7)=>{"use strict";h();var Rxe=/^[a-z_$][a-z0-9_$-]*$/i,Oxe=L7(),Bxe=U7();q7.exports={add:Mxe,get:Lxe,remove:$xe,validate:RT};function Mxe(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!Rxe.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var n=e.type;if(Array.isArray(n))for(var i=0;i<n.length;i++)o(t,n[i],e);else o(t,n,e);var s=e.metaSchema;s&&(e.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(s,!0))}r.keywords[t]=r.all[t]=!0;function o(a,c,u){for(var l,p=0;p<r.length;p++){var d=r[p];if(d.type==c){l=d;break}}l||(l={type:c,rules:[]},r.push(l));var f={keyword:a,definition:u,custom:!0,code:Oxe,implements:u.implements};l.rules.push(f),r.custom[a]=f}return this}function Lxe(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function $xe(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var r=0;r<e.length;r++)for(var n=e[r].rules,i=0;i<n.length;i++)if(n[i].keyword==t){n.splice(i,1);break}return this}function RT(t,e){RT.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(Bxe,!0);if(r(t))return!0;if(RT.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var G7=S((iQe,jxe)=>{jxe.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var eU=S((sQe,Z7)=>{"use strict";h();var V7=Cj(),Eu=ab(),Uxe=Sj(),K7=bT(),qxe=ST(),zxe=Mj(),Gxe=F7(),W7=N7(),J7=Du();Z7.exports=yr;yr.prototype.validate=Vxe;yr.prototype.compile=Kxe;yr.prototype.addSchema=Wxe;yr.prototype.addMetaSchema=Jxe;yr.prototype.validateSchema=Yxe;yr.prototype.getSchema=Qxe;yr.prototype.removeSchema=e0e;yr.prototype.addFormat=c0e;yr.prototype.errorsText=a0e;yr.prototype._addSchema=t0e;yr.prototype._compile=r0e;yr.prototype.compileAsync=B7();var gb=z7();yr.prototype.addKeyword=gb.add;yr.prototype.getKeyword=gb.get;yr.prototype.removeKeyword=gb.remove;yr.prototype.validateKeyword=gb.validate;var Y7=cb();yr.ValidationError=Y7.Validation;yr.MissingRefError=Y7.MissingRef;yr.$dataMetaSchema=W7;var hb="http://json-schema.org/draft-07/schema",H7=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Hxe=["/properties"];function yr(t){if(!(this instanceof yr))return new yr(t);t=this._opts=J7.copy(t)||{},m0e(this),this._schemas={},this._refs={},this._fragments={},this._formats=zxe(t.format),this._cache=t.cache||new Uxe,this._loadingSchemas={},this._compilations=[],this.RULES=Gxe(),this._getId=n0e(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=qxe),this._metaOpts=f0e(this),t.formats&&p0e(this),t.keywords&&d0e(this),u0e(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),l0e(this)}function Vxe(t,e){var r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error('no schema with key or ref "'+t+'"')}else{var n=this._addSchema(t);r=n.validate||this._compile(n)}var i=r(e);return r.$async!==!0&&(this.errors=r.errors),i}function Kxe(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function Wxe(t,e,r,n){if(Array.isArray(t)){for(var i=0;i<t.length;i++)this.addSchema(t[i],void 0,r,n);return this}var s=this._getId(t);if(s!==void 0&&typeof s!="string")throw new Error("schema id must be string");return e=Eu.normalizeId(e||s),Q7(this,e),this._schemas[e]=this._addSchema(t,r,n,!0),this}function Jxe(t,e,r){return this.addSchema(t,e,r,!0),this}function Yxe(t,e){var r=t.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||Xxe(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,t);if(!n&&e){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return n}function Xxe(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(hb)?hb:void 0,t._opts.defaultMeta}function Qxe(t){var e=X7(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return Zxe(this,t)}}function Zxe(t,e){var r=Eu.schema.call(t,{schema:{}},e);if(r){var n=r.schema,i=r.root,s=r.baseId,o=V7.call(t,n,i,void 0,s);return t._fragments[e]=new K7({ref:e,fragment:!0,schema:n,root:i,baseId:s,validate:o}),o}}function X7(t,e){return e=Eu.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function e0e(t){if(t instanceof RegExp)return mb(this,this._schemas,t),mb(this,this._refs,t),this;switch(typeof t){case"undefined":return mb(this,this._schemas),mb(this,this._refs),this._cache.clear(),this;case"string":var e=X7(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var r=this._opts.serialize,n=r?r(t):t;this._cache.del(n);var i=this._getId(t);i&&(i=Eu.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function mb(t,e,r){for(var n in e){var i=e[n];!i.meta&&(!r||r.test(n))&&(t._cache.del(i.cacheKey),delete e[n])}}function t0e(t,e,r,n){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize,s=i?i(t):t,o=this._cache.get(s);if(o)return o;n=n||this._opts.addUsedSchema!==!1;var a=Eu.normalizeId(this._getId(t));a&&n&&Q7(this,a);var c=this._opts.validateSchema!==!1&&!e,u;c&&!(u=a&&a==Eu.normalizeId(t.$schema))&&this.validateSchema(t,!0);var l=Eu.ids.call(this,t),p=new K7({id:a,schema:t,localRefs:l,cacheKey:s,meta:r});return a[0]!="#"&&n&&(this._refs[a]=p),this._cache.put(s,p),c&&u&&this.validateSchema(t,!0),p}function r0e(t,e){if(t.compiling)return t.validate=i,i.schema=t.schema,i.errors=null,i.root=e||i,t.schema.$async===!0&&(i.$async=!0),i;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var n;try{n=V7.call(this,t.schema,e,t.localRefs)}catch(s){throw delete t.validate,s}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=n,t.refs=n.refs,t.refVal=n.refVal,t.root=n.root,n;function i(){var s=t.validate,o=s.apply(this,arguments);return i.errors=s.errors,o}}function n0e(t){switch(t.schemaId){case"auto":return o0e;case"id":return i0e;default:return s0e}}function i0e(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function s0e(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function o0e(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function a0e(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var r=e.separator===void 0?", ":e.separator,n=e.dataVar===void 0?"data":e.dataVar,i="",s=0;s<t.length;s++){var o=t[s];o&&(i+=n+o.dataPath+" "+o.message+r)}return i.slice(0,-r.length)}function c0e(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function u0e(t){var e;if(t._opts.$data&&(e=G7(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=NT();t._opts.$data&&(r=W7(r,Hxe)),t.addMetaSchema(r,hb,!0),t._refs["http://json-schema.org/schema"]=hb}}function l0e(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var r in e)t.addSchema(e[r],r)}function p0e(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function d0e(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function Q7(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function f0e(t){for(var e=J7.copy(t._opts),r=0;r<H7.length;r++)delete e[H7[r]];return e}function m0e(t){var e=t._opts.logger;if(e===!1)t.logger={log:OT,warn:OT,error:OT};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function OT(){}});var tU,yb,rU=N(()=>{h();Z5();Xv();tU=Y(eU(),1),yb=class extends Qv{constructor(e,r){var n;super(r),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._capabilities=(n=r?.capabilities)!==null&&n!==void 0?n:{},this._ajv=new tU.default}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Q5(this._capabilities,e)}assertCapability(e,r){var n;if(!(!((n=this._serverCapabilities)===null||n===void 0)&&n[e]))throw new Error(`Server does not support ${e} (required for ${r})`)}async connect(e,r){if(await super.connect(e),e.sessionId===void 0)try{let n=await this.request({method:"initialize",params:{protocolVersion:Q1,capabilities:this._capabilities,clientInfo:this._clientInfo}},eT,r);if(n===void 0)throw new Error(`Server sent invalid initialize result: ${n}`);if(!R5.includes(n.protocolVersion))throw new Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(n.protocolVersion),this._instructions=n.instructions,await this.notification({method:"notifications/initialized"})}catch(n){throw this.close(),n}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){var r,n,i,s,o;switch(e){case"logging/setLevel":if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r.logging))throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!(!((n=this._serverCapabilities)===null||n===void 0)&&n.prompts))throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!(!((i=this._serverCapabilities)===null||i===void 0)&&i.resources))throw new Error(`Server does not support resources (required for ${e})`);if(e==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${e})`);break;case"tools/call":case"tools/list":if(!(!((s=this._serverCapabilities)===null||s===void 0)&&s.tools))throw new Error(`Server does not support tools (required for ${e})`);break;case"completion/complete":if(!(!((o=this._serverCapabilities)===null||o===void 0)&&o.completions))throw new Error(`Server does not support completions (required for ${e})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(e){var r;switch(e){case"notifications/roots/list_changed":if(!(!((r=this._capabilities.roots)===null||r===void 0)&&r.listChanged))throw new Error(`Client does not support roots list changed notifications (required for ${e})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){switch(e){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${e})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${e})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${e})`);break;case"ping":break}}async ping(e){return this.request({method:"ping"},xu,e)}async complete(e,r){return this.request({method:"completion/complete",params:e},pT,r)}async setLoggingLevel(e,r){return this.request({method:"logging/setLevel",params:{level:e}},xu,r)}async getPrompt(e,r){return this.request({method:"prompts/get",params:e},uT,r)}async listPrompts(e,r){return this.request({method:"prompts/list",params:e},sT,r)}async listResources(e,r){return this.request({method:"resources/list",params:e},rT,r)}async listResourceTemplates(e,r){return this.request({method:"resources/templates/list",params:e},nT,r)}async readResource(e,r){return this.request({method:"resources/read",params:e},iT,r)}async subscribeResource(e,r){return this.request({method:"resources/subscribe",params:e},xu,r)}async unsubscribeResource(e,r){return this.request({method:"resources/unsubscribe",params:e},xu,r)}async callTool(e,r=Yv,n){let i=await this.request({method:"tools/call",params:e},r,n),s=this.getToolOutputValidator(e.name);if(s){if(!i.structuredContent&&!i.isError)throw new Xi(Yi.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(i.structuredContent)try{if(!s(i.structuredContent))throw new Xi(Yi.InvalidParams,`Structured content does not match the tool's output schema: ${this._ajv.errorsText(s.errors)}`)}catch(o){throw o instanceof Xi?o:new Xi(Yi.InvalidParams,`Failed to validate structured content: ${o instanceof Error?o.message:String(o)}`)}}return i}cacheToolOutputSchemas(e){this._cachedToolOutputValidators.clear();for(let r of e)if(r.outputSchema)try{let n=this._ajv.compile(r.outputSchema);this._cachedToolOutputValidators.set(r.name,n)}catch{}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,r){let n=await this.request({method:"tools/list",params:e},lT,r);return this.cacheToolOutputSchemas(n.tools),n}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}});var aU=S((pQe,oU)=>{h();oU.exports=sU;sU.sync=g0e;var nU=require("fs");function h0e(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function iU(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:h0e(e,r)}function sU(t,e,r){nU.stat(t,function(n,i){r(n,n?!1:iU(i,t,e))})}function g0e(t,e){return iU(nU.statSync(t),t,e)}});var dU=S((fQe,pU)=>{h();pU.exports=uU;uU.sync=y0e;var cU=require("fs");function uU(t,e,r){cU.stat(t,function(n,i){r(n,n?!1:lU(i,e))})}function y0e(t,e){return lU(cU.statSync(t),e)}function lU(t,e){return t.isFile()&&v0e(t,e)}function v0e(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),l=a|c,p=r&u||r&c&&i===o||r&a&&n===s||r&l&&s===0;return p}});var mU=S((gQe,fU)=>{h();var hQe=require("fs"),vb;process.platform==="win32"||global.TESTING_WINDOWS?vb=aU():vb=dU();fU.exports=BT;BT.sync=b0e;function BT(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){BT(t,e||{},function(s,o){s?i(s):n(o)})})}vb(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function b0e(t,e){try{return vb.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var DU=S((vQe,xU)=>{h();var Fp=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",hU=require("path"),x0e=Fp?";":":",gU=mU(),yU=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),vU=(t,e)=>{let r=e.colon||x0e,n=t.match(/\//)||Fp&&t.match(/\\/)?[""]:[...Fp?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=Fp?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Fp?i.split(r):[""];return Fp&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},bU=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=vU(t,e),o=[],a=u=>new Promise((l,p)=>{if(u===n.length)return e.all&&o.length?l(o):p(yU(t));let d=n[u],f=/^".*"$/.test(d)?d.slice(1,-1):d,m=hU.join(f,t),g=!f&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;l(c(g,u,0))}),c=(u,l,p)=>new Promise((d,f)=>{if(p===i.length)return d(a(l+1));let m=i[p];gU(u+m,{pathExt:s},(g,y)=>{if(!g&&y)if(e.all)o.push(u+m);else return d(u+m);return d(c(u,l,p+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},D0e=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=vU(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=hU.join(c,t),l=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let p=0;p<n.length;p++){let d=l+n[p];try{if(gU.sync(d,{pathExt:i}))if(e.all)s.push(d);else return d}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw yU(t)};xU.exports=bU;bU.sync=D0e});var CU=S((xQe,MT)=>{"use strict";h();var EU=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};MT.exports=EU;MT.exports.default=EU});var PU=S((EQe,TU)=>{"use strict";h();var wU=require("path"),E0e=DU(),C0e=CU();function SU(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=E0e.sync(t.command,{path:r[C0e({env:r})],pathExt:e?wU.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=wU.resolve(i?t.options.cwd:"",o)),o}function w0e(t){return SU(t)||SU(t,!0)}TU.exports=w0e});var AU=S((wQe,$T)=>{"use strict";h();var LT=/([()\][%!^"`<>&|;, *?])/g;function S0e(t){return t=t.replace(LT,"^$1"),t}function T0e(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(LT,"^$1"),e&&(t=t.replace(LT,"^$1")),t}$T.exports.command=S0e;$T.exports.argument=T0e});var FU=S((TQe,_U)=>{"use strict";h();_U.exports=/^#!(.*)/});var IU=S((AQe,kU)=>{"use strict";h();var P0e=FU();kU.exports=(t="")=>{let e=t.match(P0e);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var RU=S((FQe,NU)=>{"use strict";h();var jT=require("fs"),A0e=IU();function _0e(t){let r=Buffer.alloc(150),n;try{n=jT.openSync(t,"r"),jT.readSync(n,r,0,150,0),jT.closeSync(n)}catch{}return A0e(r.toString())}NU.exports=_0e});var LU=S((IQe,MU)=>{"use strict";h();var F0e=require("path"),OU=PU(),BU=AU(),k0e=RU(),I0e=process.platform==="win32",N0e=/\.(?:com|exe)$/i,R0e=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function O0e(t){t.file=OU(t);let e=t.file&&k0e(t.file);return e?(t.args.unshift(t.file),t.command=e,OU(t)):t.file}function B0e(t){if(!I0e)return t;let e=O0e(t),r=!N0e.test(e);if(t.options.forceShell||r){let n=R0e.test(e);t.command=F0e.normalize(t.command),t.command=BU.command(t.command),t.args=t.args.map(s=>BU.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function M0e(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:B0e(n)}MU.exports=M0e});var UU=S((RQe,jU)=>{"use strict";h();var UT=process.platform==="win32";function qT(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function L0e(t,e){if(!UT)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=$U(i,e);if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function $U(t,e){return UT&&t===1&&!e.file?qT(e.original,"spawn"):null}function $0e(t,e){return UT&&t===1&&!e.file?qT(e.original,"spawnSync"):null}jU.exports={hookChildProcess:L0e,verifyENOENT:$U,verifyENOENTSync:$0e,notFoundError:qT}});var GU=S((BQe,kp)=>{"use strict";h();var qU=require("child_process"),zT=LU(),GT=UU();function zU(t,e,r){let n=zT(t,e,r),i=qU.spawn(n.command,n.args,n.options);return GT.hookChildProcess(i,n),i}function j0e(t,e,r){let n=zT(t,e,r),i=qU.spawnSync(n.command,n.args,n.options);return i.error=i.error||GT.verifyENOENTSync(i.status,n),i}kp.exports=zU;kp.exports.spawn=zU;kp.exports.sync=j0e;kp.exports._parse=zT;kp.exports._enoent=GT});function U0e(t){return G5.parse(JSON.parse(t))}function HU(t){return JSON.stringify(t)+`
|
|
1854
|
-
`}var bb,
|
|
1855
|
-
`);if(e===-1)return null;let r=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),U0e(r)}clear(){this._buffer=void 0}}});function z0e(){let t={};for(let e of q0e){let r=gm.default.env[e];r!==void 0&&(r.startsWith("()")||(t[e]=r))}return t}function G0e(){return"type"in gm.default}var
|
|
1853
|
+
- ${d.file_path}${d.offset?`:${d.offset+1}`:""}${d.offset&&d.limit?`-${d.limit+d.offset+1}`:""}${d.relevance?` (relevance: ${d.relevance})`:""}`}n({isError:!1,toolResult:p,title:"Agent Task Completed"});return}catch{n({isError:!0,toolResult:"Agent task failed",title:"Agent Task Failed"})}finally{await c()}})}function Nv(){let t=new Error("AbortError");return t.name="AbortError",t}var H1,Eye,Cye,p5=N(()=>{"use strict";h();hv();hv();o1();G$();Jc();K$();wy();u1();Iv();Yc();H1=Y(require("@sentry/node"),1);Pv();gi();Eye=["!**/.git/**","!**/.hg/**","!**/.svn/**","!**/.DS_Store","!**/.idea/**","!**/.vscode/**","!**/.cache/**","!**/coverage/**","!**/node_modules/**","!**/dist/**","!**/*.tsbuildinfo","!**/package-lock.json","!**/yarn.lock","!**/pnpm-lock.yaml","!**/*.min.js","!**/*.min.css","!**/*.bundle.js","!**/*.chunk.js","!**/builder-registry.*","!**/*.bundle.css","!**/*.map","!**/vendor/**","!**/target/**","!**/__pycache__/**","!**/*.pyc","!**/*.pyo","!**/*.class","!**/*.jar","!**/build/**/*.gradle","!**/*.lock","!**/*.log","!**/*.o","!**/*.a","!**/*.so","!**/*.dylib","!**/*.dll","!**/*.exe","!**/*.zip","!**/*.tar","!**/*.tar.gz","!**/*.tgz","!**/*.7z","!**/*.rar","!**/*.png","!**/*.jpg","!**/*.jpeg","!**/*.gif","!**/*.svg","!**/*.ico","!**/*.webp","!**/*.mp4","!**/*.mp3"],Cye=t=>{let e=["{","(","["],r=["}",")","]"],n=[],i=[],s=new Map([["{","}"],["(",")"],["[","]"]]);for(let o=0;o<=t.length-1;o++){let a=t[o];t[o-1]==="\\"&&t[o-2]!=="\\"||(e.includes(a)?n.push({location:o,value:a}):r.includes(a)&&i.push({location:o,value:a}))}for(let o of n){let{location:a,value:c}=o,u=i.findIndex(l=>l.location>a&&l.value===s.get(c));if(u>-1)i.splice(u,1);else return!0}return i.length>0}});function Fye(t){if(t.startsWith("ai/")){let e=t.split("/");if(e.length<3)return{sessionId:void 0,featureBranch:t};let r=e.pop();e.shift();let n=e.join("/");return{sessionId:r,featureBranch:n}}else if(t.startsWith("ai_")){let e=t.split("_");if(e.length<3)return{sessionId:void 0,featureBranch:t};let r=e.pop();e.shift();let n=e.join("_");return{sessionId:r,featureBranch:n}}return{sessionId:void 0,featureBranch:t}}function h5(t,e){return`ai_${t}_${e}`.trim()}var d5,f5,m5,Rv,Ov=N(()=>{"use strict";h();d5=Y(require("path"),1),f5=()=>process.env.FLY_APP_NAME!==void 0,m5=t=>d5.default.resolve(process.cwd(),t.workingDirectory??".");Rv=async({sys:t,gitWorkingDirectory:e,strict:r})=>{let n=await t.getRepoInfo(e);if(!n.hasGit)throw new Error("Git is not initialized");let i=n.currentBranch,s=Fye(i);if(r&&s.featureBranch===""&&i.startsWith("ai__"))throw new Error("AI branch is corrupted");return{currentBranch:i,featureBranch:s.featureBranch,sessionId:s.sessionId}}});function g5(t){let{filePath:e,forceWorkspace:r=!1,workspace:n,workingDirectory:i,sys:s,canCollapseWorkspace:o}=t,a=e;if(a.startsWith("/")?a=a.substring(1):a.startsWith("./")&&(a=a.substring(2)),!n?.folders?.length)return{resolvedPath:s.resolve(i,a)};if(n.folders.length===1&&n.folders[0].name==="."||o){let m=n.folders[0],g=s.resolve(i,m.path);return{resolvedPath:s.resolve(g,a),workspaceFolder:m}}let u=a.indexOf("/");if(u===-1){if(r){let m=n.folders[0],g=s.resolve(i,m.path);return{resolvedPath:s.resolve(g,a),workspaceFolder:m}}return{resolvedPath:s.resolve(i,a)}}let l=a.substring(0,u),p=a.substring(u+1),d=n.folders.find(m=>m.name?m.name===l:s.basename(m.path)===l);if(!d){if(!r)return{resolvedPath:s.resolve(i,a)};d=n.folders[0];let m=s.resolve(i,d.path);return{resolvedPath:s.resolve(m,a),workspaceFolder:d}}let f=s.resolve(i,d.path);return{resolvedPath:s.resolve(f,p),workspaceFolder:d}}function y5(t){let{absolutePath:e,workspace:r,workingDirectory:n,sys:i,canCollapseWorkspace:s}=t;if(!r?.folders?.length)return;let o=i.resolve(e);if(r.folders.length===1&&r.folders[0].name==="."){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}if(s&&r.folders.length===1){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}for(let c of r.folders){let u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);l.startsWith("/")&&(l=l.substring(1));let p=c.name||i.basename(c.path);if(p==="."&&r.folders.length>1)continue;return l?`${p}/${l}`:p}}if(s&&r.folders.length>0){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}}var v5=N(()=>{"use strict";h()});var st,V1,ye,uo,cm=N(()=>{h();(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(st||(st={}));(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(V1||(V1={}));ye=st.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),uo=t=>{switch(typeof t){case"undefined":return ye.undefined;case"string":return ye.string;case"number":return Number.isNaN(t)?ye.nan:ye.number;case"boolean":return ye.boolean;case"function":return ye.function;case"bigint":return ye.bigint;case"symbol":return ye.symbol;case"object":return Array.isArray(t)?ye.array:t===null?ye.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ye.promise:typeof Map<"u"&&t instanceof Map?ye.map:typeof Set<"u"&&t instanceof Set?ye.set:typeof Date<"u"&&t instanceof Date?ye.date:ye.object;default:return ye.unknown}}});var ae,kye,ei,Bv=N(()=>{h();cm();ae=st.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),kye=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),ei=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return i(this),n}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,st.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)if(i.path.length>0){let s=i.path[0];r[s]=r[s]||[],r[s].push(e(i))}else n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};ei.create=t=>new ei(t)});var Iye,Wo,K1=N(()=>{h();Bv();cm();Iye=(t,e)=>{let r;switch(t.code){case ae.invalid_type:t.received===ye.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case ae.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,st.jsonStringifyReplacer)}`;break;case ae.unrecognized_keys:r=`Unrecognized key(s) in object: ${st.joinValues(t.keys,", ")}`;break;case ae.invalid_union:r="Invalid input";break;case ae.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${st.joinValues(t.options)}`;break;case ae.invalid_enum_value:r=`Invalid enum value. Expected ${st.joinValues(t.options)}, received '${t.received}'`;break;case ae.invalid_arguments:r="Invalid function arguments";break;case ae.invalid_return_type:r="Invalid function return type";break;case ae.invalid_date:r="Invalid date";break;case ae.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:st.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case ae.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case ae.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case ae.custom:r="Invalid input";break;case ae.invalid_intersection_types:r="Intersection results could not be merged";break;case ae.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ae.not_finite:r="Number must be finite";break;default:r=e.defaultError,st.assertNever(t)}return{message:r}},Wo=Iye});function Nye(t){b5=t}function Ep(){return b5}var b5,Mv=N(()=>{h();K1();b5=Wo});function he(t,e){let r=Ep(),n=um({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Wo?void 0:Wo].filter(i=>!!i)});t.common.issues.push(n)}var um,Rye,on,Oe,iu,xn,Lv,$v,Ua,Cp,W1=N(()=>{h();Mv();K1();um=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:s,message:a}},Rye=[];on=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return Oe;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r){let s=await i.key,o=await i.value;n.push({key:s,value:o})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return Oe;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},Oe=Object.freeze({status:"aborted"}),iu=t=>({status:"dirty",value:t}),xn=t=>({status:"valid",value:t}),Lv=t=>t.status==="aborted",$v=t=>t.status==="dirty",Ua=t=>t.status==="valid",Cp=t=>typeof Promise<"u"&&t instanceof Promise});var x5=N(()=>{h()});var Ae,D5=N(()=>{h();(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Ae||(Ae={}))});function We(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>{let{message:c}=t;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:i}}function S5(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function Xye(t){return new RegExp(`^${S5(t)}$`)}function T5(t){let e=`${w5}T${S5(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function Qye(t,e){return!!((e==="v4"||!e)&&Gye.test(t)||(e==="v6"||!e)&&Vye.test(t))}function Zye(t,e){if(!jye.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||e&&i.alg!==e)}catch{return!1}}function eve(t,e){return!!((e==="v4"||!e)&&Hye.test(t)||(e==="v6"||!e)&&Kye.test(t))}function tve(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),o=Number.parseInt(e.toFixed(i).replace(".",""));return s%o/10**i}function wp(t){if(t instanceof ti){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=Ki.create(wp(n))}return new ti({...t._def,shape:()=>e})}else return t instanceof Xo?new Xo({...t._def,type:wp(t.element)}):t instanceof Ki?Ki.create(wp(t.unwrap())):t instanceof po?po.create(wp(t.unwrap())):t instanceof lo?lo.create(t.items.map(e=>wp(e))):t}function Y1(t,e){let r=uo(t),n=uo(e);if(t===e)return{valid:!0,data:t};if(r===ye.object&&n===ye.object){let i=st.objectKeys(e),s=st.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=Y1(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===ye.array&&n===ye.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],c=Y1(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===ye.date&&n===ye.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}function P5(t,e){return new hu({values:t,typeName:$e.ZodEnum,...We(e)})}function C5(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function A5(t,e={},r){return t?za.create().superRefine((n,i)=>{let s=t(n);if(s instanceof Promise)return s.then(o=>{if(!o){let a=C5(e,n),c=a.fatal??r??!0;i.addIssue({code:"custom",...a,fatal:c})}});if(!s){let o=C5(e,n),a=o.fatal??r??!0;i.addIssue({code:"custom",...o,fatal:a})}}):za.create()}var Wi,E5,Ze,Oye,Bye,Mye,Lye,$ye,jye,Uye,qye,zye,J1,Gye,Hye,Vye,Kye,Wye,Jye,w5,Yye,qa,su,ou,au,cu,Sp,uu,lu,za,Yo,Ps,Tp,Xo,ti,pu,Jo,jv,du,lo,Uv,Pp,Ap,qv,fu,mu,hu,gu,Ga,Ji,Ki,po,yu,vu,_p,rve,lm,pm,bu,nve,$e,ive,_5,F5,sve,ove,k5,ave,cve,uve,lve,pve,dve,fve,mve,hve,gve,yve,vve,bve,xve,Dve,Eve,Cve,wve,Sve,Tve,Pve,Ave,_ve,Fve,kve,Ive,Nve,Rve,Ove,Bve,Mve,Lve,$ve,jve,I5=N(()=>{h();Bv();Mv();D5();W1();cm();Wi=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},E5=(t,e)=>{if(Ua(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new ei(t.common.issues);return this._error=r,this._error}}};Ze=class{get description(){return this._def.description}_getType(e){return uo(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:uo(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new on,ctx:{common:e.parent.common,data:e.data,parsedType:uo(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Cp(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:uo(e)},i=this._parseSync({data:e,path:n.path,parent:n});return E5(n,i)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:uo(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:r});return Ua(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>Ua(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:uo(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(Cp(i)?i:Promise.resolve(i));return E5(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:ae.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new Ji({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Ki.create(this,this._def)}nullable(){return po.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xo.create(this)}promise(){return Ga.create(this,this._def)}or(e){return pu.create([this,e],this._def)}and(e){return du.create(this,e,this._def)}transform(e){return new Ji({...We(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new yu({...We(this._def),innerType:this,defaultValue:r,typeName:$e.ZodDefault})}brand(){return new lm({typeName:$e.ZodBranded,type:this,...We(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new vu({...We(this._def),innerType:this,catchValue:r,typeName:$e.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return pm.create(this,e)}readonly(){return bu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Oye=/^c[^\s-]{8,}$/i,Bye=/^[0-9a-z]+$/,Mye=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Lye=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$ye=/^[a-z0-9_-]{21}$/i,jye=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Uye=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,qye=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,zye="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Gye=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Hye=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Vye=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Kye=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Wye=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Jye=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,w5="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Yye=new RegExp(`^${w5}$`);qa=class t extends Ze{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ye.string){let s=this._getOrReturnCtx(e);return he(s,{code:ae.invalid_type,expected:ye.string,received:s.parsedType}),Oe}let n=new on,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),he(i,{code:ae.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),he(i,{code:ae.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?he(i,{code:ae.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&he(i,{code:ae.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")qye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"email",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")J1||(J1=new RegExp(zye,"u")),J1.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"emoji",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")Lye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"uuid",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")$ye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"nanoid",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")Oye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"cuid",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")Bye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"cuid2",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")Mye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"ulid",code:ae.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),he(i,{validation:"url",code:ae.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"regex",code:ae.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?T5(s).test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?Yye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?Xye(s).test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{code:ae.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?Uye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"duration",code:ae.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?Qye(e.data,s.version)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"ip",code:ae.invalid_string,message:s.message}),n.dirty()):s.kind==="jwt"?Zye(e.data,s.alg)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"jwt",code:ae.invalid_string,message:s.message}),n.dirty()):s.kind==="cidr"?eve(e.data,s.version)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"cidr",code:ae.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?Wye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"base64",code:ae.invalid_string,message:s.message}),n.dirty()):s.kind==="base64url"?Jye.test(e.data)||(i=this._getOrReturnCtx(e,i),he(i,{validation:"base64url",code:ae.invalid_string,message:s.message}),n.dirty()):st.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:ae.invalid_string,...Ae.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Ae.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Ae.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Ae.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Ae.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Ae.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Ae.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Ae.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Ae.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Ae.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Ae.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Ae.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Ae.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Ae.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Ae.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...Ae.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Ae.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...Ae.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...Ae.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...Ae.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...Ae.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...Ae.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...Ae.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...Ae.errToObj(r)})}nonempty(e){return this.min(1,Ae.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};qa.create=t=>new qa({checks:[],typeName:$e.ZodString,coerce:t?.coerce??!1,...We(t)});su=class t extends Ze{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ye.number){let s=this._getOrReturnCtx(e);return he(s,{code:ae.invalid_type,expected:ye.number,received:s.parsedType}),Oe}let n,i=new on;for(let s of this._def.checks)s.kind==="int"?st.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),he(n,{code:ae.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?tve(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),he(n,{code:ae.not_finite,message:s.message}),i.dirty()):st.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,Ae.toString(r))}gt(e,r){return this.setLimit("min",e,!1,Ae.toString(r))}lte(e,r){return this.setLimit("max",e,!0,Ae.toString(r))}lt(e,r){return this.setLimit("max",e,!1,Ae.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:Ae.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Ae.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:Ae.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:Ae.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&st.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};su.create=t=>new su({checks:[],typeName:$e.ZodNumber,coerce:t?.coerce||!1,...We(t)});ou=class t extends Ze{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==ye.bigint)return this._getInvalidInput(e);let n,i=new on;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),he(n,{code:ae.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):st.assertNever(s);return{status:i.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return he(r,{code:ae.invalid_type,expected:ye.bigint,received:r.parsedType}),Oe}gte(e,r){return this.setLimit("min",e,!0,Ae.toString(r))}gt(e,r){return this.setLimit("min",e,!1,Ae.toString(r))}lte(e,r){return this.setLimit("max",e,!0,Ae.toString(r))}lt(e,r){return this.setLimit("max",e,!1,Ae.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:Ae.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:Ae.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};ou.create=t=>new ou({checks:[],typeName:$e.ZodBigInt,coerce:t?.coerce??!1,...We(t)});au=class extends Ze{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ye.boolean){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.boolean,received:n.parsedType}),Oe}return xn(e.data)}};au.create=t=>new au({typeName:$e.ZodBoolean,coerce:t?.coerce||!1,...We(t)});cu=class t extends Ze{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ye.date){let s=this._getOrReturnCtx(e);return he(s,{code:ae.invalid_type,expected:ye.date,received:s.parsedType}),Oe}if(Number.isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return he(s,{code:ae.invalid_date}),Oe}let n=new on,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),he(i,{code:ae.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),he(i,{code:ae.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):st.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:Ae.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:Ae.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};cu.create=t=>new cu({checks:[],coerce:t?.coerce||!1,typeName:$e.ZodDate,...We(t)});Sp=class extends Ze{_parse(e){if(this._getType(e)!==ye.symbol){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.symbol,received:n.parsedType}),Oe}return xn(e.data)}};Sp.create=t=>new Sp({typeName:$e.ZodSymbol,...We(t)});uu=class extends Ze{_parse(e){if(this._getType(e)!==ye.undefined){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.undefined,received:n.parsedType}),Oe}return xn(e.data)}};uu.create=t=>new uu({typeName:$e.ZodUndefined,...We(t)});lu=class extends Ze{_parse(e){if(this._getType(e)!==ye.null){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.null,received:n.parsedType}),Oe}return xn(e.data)}};lu.create=t=>new lu({typeName:$e.ZodNull,...We(t)});za=class extends Ze{constructor(){super(...arguments),this._any=!0}_parse(e){return xn(e.data)}};za.create=t=>new za({typeName:$e.ZodAny,...We(t)});Yo=class extends Ze{constructor(){super(...arguments),this._unknown=!0}_parse(e){return xn(e.data)}};Yo.create=t=>new Yo({typeName:$e.ZodUnknown,...We(t)});Ps=class extends Ze{_parse(e){let r=this._getOrReturnCtx(e);return he(r,{code:ae.invalid_type,expected:ye.never,received:r.parsedType}),Oe}};Ps.create=t=>new Ps({typeName:$e.ZodNever,...We(t)});Tp=class extends Ze{_parse(e){if(this._getType(e)!==ye.undefined){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.void,received:n.parsedType}),Oe}return xn(e.data)}};Tp.create=t=>new Tp({typeName:$e.ZodVoid,...We(t)});Xo=class t extends Ze{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==ye.array)return he(r,{code:ae.invalid_type,expected:ye.array,received:r.parsedType}),Oe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(he(r,{code:o?ae.too_big:ae.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(he(r,{code:ae.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(he(r,{code:ae.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new Wi(r,o,r.path,a)))).then(o=>on.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new Wi(r,o,r.path,a)));return on.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:Ae.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:Ae.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:Ae.toString(r)}})}nonempty(e){return this.min(1,e)}};Xo.create=(t,e)=>new Xo({type:t,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...We(e)});ti=class t extends Ze{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=st.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==ye.object){let u=this._getOrReturnCtx(e);return he(u,{code:ae.invalid_type,expected:ye.object,received:u.parsedType}),Oe}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ps&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let l=s[u],p=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Wi(i,p,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Ps){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(u==="strict")a.length>0&&(he(i,{code:ae.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let p=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Wi(i,p,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let p=await l.key,d=await l.value;u.push({key:p,value:d,alwaysSet:l.alwaysSet})}return u}).then(u=>on.mergeObjectSync(n,u)):on.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return Ae.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{let i=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:Ae.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:$e.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let n of st.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let n of st.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}deepPartial(){return wp(this)}partial(e){let r={};for(let n of st.objectKeys(this.shape)){let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let n of st.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Ki;)s=s._def.innerType;r[n]=s}return new t({...this._def,shape:()=>r})}keyof(){return P5(st.objectKeys(this.shape))}};ti.create=(t,e)=>new ti({shape:()=>t,unknownKeys:"strip",catchall:Ps.create(),typeName:$e.ZodObject,...We(e)});ti.strictCreate=(t,e)=>new ti({shape:()=>t,unknownKeys:"strict",catchall:Ps.create(),typeName:$e.ZodObject,...We(e)});ti.lazycreate=(t,e)=>new ti({shape:t,unknownKeys:"strip",catchall:Ps.create(),typeName:$e.ZodObject,...We(e)});pu=class extends Ze{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new ei(a.ctx.common.issues));return he(r,{code:ae.invalid_union,unionErrors:o}),Oe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new ei(c));return he(r,{code:ae.invalid_union,unionErrors:a}),Oe}}get options(){return this._def.options}};pu.create=(t,e)=>new pu({options:t,typeName:$e.ZodUnion,...We(e)});Jo=t=>t instanceof fu?Jo(t.schema):t instanceof Ji?Jo(t.innerType()):t instanceof mu?[t.value]:t instanceof hu?t.options:t instanceof gu?st.objectValues(t.enum):t instanceof yu?Jo(t._def.innerType):t instanceof uu?[void 0]:t instanceof lu?[null]:t instanceof Ki?[void 0,...Jo(t.unwrap())]:t instanceof po?[null,...Jo(t.unwrap())]:t instanceof lm||t instanceof bu?Jo(t.unwrap()):t instanceof vu?Jo(t._def.innerType):[],jv=class t extends Ze{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ye.object)return he(r,{code:ae.invalid_type,expected:ye.object,received:r.parsedType}),Oe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(he(r,{code:ae.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Oe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=Jo(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new t({typeName:$e.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...We(n)})}};du=class extends Ze{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(Lv(s)||Lv(o))return Oe;let a=Y1(s.value,o.value);return a.valid?(($v(s)||$v(o))&&r.dirty(),{status:r.value,value:a.data}):(he(n,{code:ae.invalid_intersection_types}),Oe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};du.create=(t,e,r)=>new du({left:t,right:e,typeName:$e.ZodIntersection,...We(r)});lo=class t extends Ze{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ye.array)return he(n,{code:ae.invalid_type,expected:ye.array,received:n.parsedType}),Oe;if(n.data.length<this._def.items.length)return he(n,{code:ae.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Oe;!this._def.rest&&n.data.length>this._def.items.length&&(he(n,{code:ae.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new Wi(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>on.mergeArray(r,o)):on.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};lo.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new lo({items:t,typeName:$e.ZodTuple,rest:null,...We(e)})};Uv=class t extends Ze{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ye.object)return he(n,{code:ae.invalid_type,expected:ye.object,received:n.parsedType}),Oe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new Wi(n,a,n.path,a)),value:o._parse(new Wi(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?on.mergeObjectAsync(r,i):on.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof Ze?new t({keyType:e,valueType:r,typeName:$e.ZodRecord,...We(n)}):new t({keyType:qa.create(),valueType:e,typeName:$e.ZodRecord,...We(r)})}},Pp=class extends Ze{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ye.map)return he(n,{code:ae.invalid_type,expected:ye.map,received:n.parsedType}),Oe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],u)=>({key:i._parse(new Wi(n,a,n.path,[u,"key"])),value:s._parse(new Wi(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return Oe;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return Oe;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};Pp.create=(t,e,r)=>new Pp({valueType:e,keyType:t,typeName:$e.ZodMap,...We(r)});Ap=class t extends Ze{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ye.set)return he(n,{code:ae.invalid_type,expected:ye.set,received:n.parsedType}),Oe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(he(n,{code:ae.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(he(n,{code:ae.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let l of c){if(l.status==="aborted")return Oe;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new Wi(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:Ae.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:Ae.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Ap.create=(t,e)=>new Ap({valueType:t,minSize:null,maxSize:null,typeName:$e.ZodSet,...We(e)});qv=class t extends Ze{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ye.function)return he(r,{code:ae.invalid_type,expected:ye.function,received:r.parsedType}),Oe;function n(a,c){return um({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ep(),Wo].filter(u=>!!u),issueData:{code:ae.invalid_arguments,argumentsError:c}})}function i(a,c){return um({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ep(),Wo].filter(u=>!!u),issueData:{code:ae.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Ga){let a=this;return xn(async function(...c){let u=new ei([]),l=await a._def.args.parseAsync(c,s).catch(f=>{throw u.addIssue(n(c,f)),u}),p=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(p,s).catch(f=>{throw u.addIssue(i(p,f)),u})})}else{let a=this;return xn(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new ei([n(c,u.error)]);let l=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(l,s);if(!p.success)throw new ei([i(l,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:lo.create(e).rest(Yo.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||lo.create([]).rest(Yo.create()),returns:r||Yo.create(),typeName:$e.ZodFunction,...We(n)})}},fu=class extends Ze{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};fu.create=(t,e)=>new fu({getter:t,typeName:$e.ZodLazy,...We(e)});mu=class extends Ze{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return he(r,{received:r.data,code:ae.invalid_literal,expected:this._def.value}),Oe}return{status:"valid",value:e.data}}get value(){return this._def.value}};mu.create=(t,e)=>new mu({value:t,typeName:$e.ZodLiteral,...We(e)});hu=class t extends Ze{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return he(r,{expected:st.joinValues(n),received:r.parsedType,code:ae.invalid_type}),Oe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return he(r,{received:r.data,code:ae.invalid_enum_value,options:n}),Oe}return xn(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};hu.create=P5;gu=class extends Ze{_parse(e){let r=st.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==ye.string&&n.parsedType!==ye.number){let i=st.objectValues(r);return he(n,{expected:st.joinValues(i),received:n.parsedType,code:ae.invalid_type}),Oe}if(this._cache||(this._cache=new Set(st.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let i=st.objectValues(r);return he(n,{received:n.data,code:ae.invalid_enum_value,options:i}),Oe}return xn(e.data)}get enum(){return this._def.values}};gu.create=(t,e)=>new gu({values:t,typeName:$e.ZodNativeEnum,...We(e)});Ga=class extends Ze{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ye.promise&&r.common.async===!1)return he(r,{code:ae.invalid_type,expected:ye.promise,received:r.parsedType}),Oe;let n=r.parsedType===ye.promise?r.data:Promise.resolve(r.data);return xn(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ga.create=(t,e)=>new Ga({type:t,typeName:$e.ZodPromise,...We(e)});Ji=class extends Ze{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{he(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Oe;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?Oe:c.status==="dirty"?iu(c.value):r.value==="dirty"?iu(c.value):c});{if(r.value==="aborted")return Oe;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?Oe:a.status==="dirty"?iu(a.value):r.value==="dirty"?iu(a.value):a}}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Oe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Oe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ua(o))return Oe;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Ua(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):Oe);st.assertNever(i)}};Ji.create=(t,e,r)=>new Ji({schema:t,typeName:$e.ZodEffects,effect:e,...We(r)});Ji.createWithPreprocess=(t,e,r)=>new Ji({schema:e,effect:{type:"preprocess",transform:t},typeName:$e.ZodEffects,...We(r)});Ki=class extends Ze{_parse(e){return this._getType(e)===ye.undefined?xn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ki.create=(t,e)=>new Ki({innerType:t,typeName:$e.ZodOptional,...We(e)});po=class extends Ze{_parse(e){return this._getType(e)===ye.null?xn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};po.create=(t,e)=>new po({innerType:t,typeName:$e.ZodNullable,...We(e)});yu=class extends Ze{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===ye.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};yu.create=(t,e)=>new yu({innerType:t,typeName:$e.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...We(e)});vu=class extends Ze{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Cp(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ei(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ei(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};vu.create=(t,e)=>new vu({innerType:t,typeName:$e.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...We(e)});_p=class extends Ze{_parse(e){if(this._getType(e)!==ye.nan){let n=this._getOrReturnCtx(e);return he(n,{code:ae.invalid_type,expected:ye.nan,received:n.parsedType}),Oe}return{status:"valid",value:e.data}}};_p.create=t=>new _p({typeName:$e.ZodNaN,...We(t)});rve=Symbol("zod_brand"),lm=class extends Ze{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},pm=class t extends Ze{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Oe:s.status==="dirty"?(r.dirty(),iu(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Oe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:$e.ZodPipeline})}},bu=class extends Ze{_parse(e){let r=this._def.innerType._parse(e),n=i=>(Ua(i)&&(i.value=Object.freeze(i.value)),i);return Cp(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};bu.create=(t,e)=>new bu({innerType:t,typeName:$e.ZodReadonly,...We(e)});nve={object:ti.lazycreate};(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})($e||($e={}));ive=(t,e={message:`Input not instance of ${t.name}`})=>A5(r=>r instanceof t,e),_5=qa.create,F5=su.create,sve=_p.create,ove=ou.create,k5=au.create,ave=cu.create,cve=Sp.create,uve=uu.create,lve=lu.create,pve=za.create,dve=Yo.create,fve=Ps.create,mve=Tp.create,hve=Xo.create,gve=ti.create,yve=ti.strictCreate,vve=pu.create,bve=jv.create,xve=du.create,Dve=lo.create,Eve=Uv.create,Cve=Pp.create,wve=Ap.create,Sve=qv.create,Tve=fu.create,Pve=mu.create,Ave=hu.create,_ve=gu.create,Fve=Ga.create,kve=Ji.create,Ive=Ki.create,Nve=po.create,Rve=Ji.createWithPreprocess,Ove=pm.create,Bve=()=>_5().optional(),Mve=()=>F5().optional(),Lve=()=>k5().optional(),$ve={string:(t=>qa.create({...t,coerce:!0})),number:(t=>su.create({...t,coerce:!0})),boolean:(t=>au.create({...t,coerce:!0})),bigint:(t=>ou.create({...t,coerce:!0})),date:(t=>cu.create({...t,coerce:!0}))},jve=Oe});var T={};Mh(T,{BRAND:()=>rve,DIRTY:()=>iu,EMPTY_PATH:()=>Rye,INVALID:()=>Oe,NEVER:()=>jve,OK:()=>xn,ParseStatus:()=>on,Schema:()=>Ze,ZodAny:()=>za,ZodArray:()=>Xo,ZodBigInt:()=>ou,ZodBoolean:()=>au,ZodBranded:()=>lm,ZodCatch:()=>vu,ZodDate:()=>cu,ZodDefault:()=>yu,ZodDiscriminatedUnion:()=>jv,ZodEffects:()=>Ji,ZodEnum:()=>hu,ZodError:()=>ei,ZodFirstPartyTypeKind:()=>$e,ZodFunction:()=>qv,ZodIntersection:()=>du,ZodIssueCode:()=>ae,ZodLazy:()=>fu,ZodLiteral:()=>mu,ZodMap:()=>Pp,ZodNaN:()=>_p,ZodNativeEnum:()=>gu,ZodNever:()=>Ps,ZodNull:()=>lu,ZodNullable:()=>po,ZodNumber:()=>su,ZodObject:()=>ti,ZodOptional:()=>Ki,ZodParsedType:()=>ye,ZodPipeline:()=>pm,ZodPromise:()=>Ga,ZodReadonly:()=>bu,ZodRecord:()=>Uv,ZodSchema:()=>Ze,ZodSet:()=>Ap,ZodString:()=>qa,ZodSymbol:()=>Sp,ZodTransformer:()=>Ji,ZodTuple:()=>lo,ZodType:()=>Ze,ZodUndefined:()=>uu,ZodUnion:()=>pu,ZodUnknown:()=>Yo,ZodVoid:()=>Tp,addIssueToContext:()=>he,any:()=>pve,array:()=>hve,bigint:()=>ove,boolean:()=>k5,coerce:()=>$ve,custom:()=>A5,date:()=>ave,datetimeRegex:()=>T5,defaultErrorMap:()=>Wo,discriminatedUnion:()=>bve,effect:()=>kve,enum:()=>Ave,function:()=>Sve,getErrorMap:()=>Ep,getParsedType:()=>uo,instanceof:()=>ive,intersection:()=>xve,isAborted:()=>Lv,isAsync:()=>Cp,isDirty:()=>$v,isValid:()=>Ua,late:()=>nve,lazy:()=>Tve,literal:()=>Pve,makeIssue:()=>um,map:()=>Cve,nan:()=>sve,nativeEnum:()=>_ve,never:()=>fve,null:()=>lve,nullable:()=>Nve,number:()=>F5,object:()=>gve,objectUtil:()=>V1,oboolean:()=>Lve,onumber:()=>Mve,optional:()=>Ive,ostring:()=>Bve,pipeline:()=>Ove,preprocess:()=>Rve,promise:()=>Fve,quotelessJson:()=>kye,record:()=>Eve,set:()=>wve,setErrorMap:()=>Nye,strictObject:()=>yve,string:()=>_5,symbol:()=>cve,transformer:()=>kve,tuple:()=>Dve,undefined:()=>uve,union:()=>vve,unknown:()=>dve,util:()=>st,void:()=>mve});var X1=N(()=>{h();Mv();W1();x5();cm();I5();Bv()});var N5=N(()=>{h();X1();X1()});var Q1,R5,zv,O5,B5,Uve,Qi,ri,dm,fo,Zi,Gv,M5,L5,$5,j5,U5,Z1,Yi,q5,z5,G5,xu,Hv,qve,fm,mm,H5,zve,Gve,Hve,eT,Vve,Vv,Kve,Kv,Wv,Jv,V5,K5,tT,W5,J5,Wve,Jve,rT,Yve,nT,Xve,iT,Qve,Zve,ebe,tbe,rbe,nbe,ibe,sT,sbe,oT,aT,cT,obe,abe,Y5,cbe,uT,ube,lbe,pbe,dbe,lT,Yv,mYe,fbe,mbe,X5,hbe,gbe,ybe,vbe,bbe,xbe,Dbe,Ebe,Cbe,wbe,Sbe,Tbe,Pbe,Abe,_be,Fbe,kbe,pT,Ibe,Nbe,Rbe,Obe,hYe,gYe,yYe,vYe,bYe,xYe,Xi,Xv=N(()=>{h();N5();Q1="2025-06-18",R5=[Q1,"2025-03-26","2024-11-05","2024-10-07"],zv="2.0",O5=T.union([T.string(),T.number().int()]),B5=T.string(),Uve=T.object({progressToken:T.optional(O5)}).passthrough(),Qi=T.object({_meta:T.optional(Uve)}).passthrough(),ri=T.object({method:T.string(),params:T.optional(Qi)}),dm=T.object({_meta:T.optional(T.object({}).passthrough())}).passthrough(),fo=T.object({method:T.string(),params:T.optional(dm)}),Zi=T.object({_meta:T.optional(T.object({}).passthrough())}).passthrough(),Gv=T.union([T.string(),T.number().int()]),M5=T.object({jsonrpc:T.literal(zv),id:Gv}).merge(ri).strict(),L5=t=>M5.safeParse(t).success,$5=T.object({jsonrpc:T.literal(zv)}).merge(fo).strict(),j5=t=>$5.safeParse(t).success,U5=T.object({jsonrpc:T.literal(zv),id:Gv,result:Zi}).strict(),Z1=t=>U5.safeParse(t).success;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError"})(Yi||(Yi={}));q5=T.object({jsonrpc:T.literal(zv),id:Gv,error:T.object({code:T.number().int(),message:T.string(),data:T.optional(T.unknown())})}).strict(),z5=t=>q5.safeParse(t).success,G5=T.union([M5,$5,U5,q5]),xu=Zi.strict(),Hv=fo.extend({method:T.literal("notifications/cancelled"),params:dm.extend({requestId:Gv,reason:T.string().optional()})}),qve=T.object({src:T.string(),mimeType:T.optional(T.string()),sizes:T.optional(T.array(T.string()))}).passthrough(),fm=T.object({icons:T.array(qve).optional()}).passthrough(),mm=T.object({name:T.string(),title:T.optional(T.string())}).passthrough(),H5=mm.extend({version:T.string(),websiteUrl:T.optional(T.string())}).merge(fm),zve=T.object({experimental:T.optional(T.object({}).passthrough()),sampling:T.optional(T.object({}).passthrough()),elicitation:T.optional(T.object({}).passthrough()),roots:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough())}).passthrough(),Gve=ri.extend({method:T.literal("initialize"),params:Qi.extend({protocolVersion:T.string(),capabilities:zve,clientInfo:H5})}),Hve=T.object({experimental:T.optional(T.object({}).passthrough()),logging:T.optional(T.object({}).passthrough()),completions:T.optional(T.object({}).passthrough()),prompts:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough()),resources:T.optional(T.object({subscribe:T.optional(T.boolean()),listChanged:T.optional(T.boolean())}).passthrough()),tools:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough())}).passthrough(),eT=Zi.extend({protocolVersion:T.string(),capabilities:Hve,serverInfo:H5,instructions:T.optional(T.string())}),Vve=fo.extend({method:T.literal("notifications/initialized")}),Vv=ri.extend({method:T.literal("ping")}),Kve=T.object({progress:T.number(),total:T.optional(T.number()),message:T.optional(T.string())}).passthrough(),Kv=fo.extend({method:T.literal("notifications/progress"),params:dm.merge(Kve).extend({progressToken:O5})}),Wv=ri.extend({params:Qi.extend({cursor:T.optional(B5)}).optional()}),Jv=Zi.extend({nextCursor:T.optional(B5)}),V5=T.object({uri:T.string(),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).passthrough(),K5=V5.extend({text:T.string()}),tT=T.string().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),W5=V5.extend({blob:tT}),J5=mm.extend({uri:T.string(),description:T.optional(T.string()),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).merge(fm),Wve=mm.extend({uriTemplate:T.string(),description:T.optional(T.string()),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).merge(fm),Jve=Wv.extend({method:T.literal("resources/list")}),rT=Jv.extend({resources:T.array(J5)}),Yve=Wv.extend({method:T.literal("resources/templates/list")}),nT=Jv.extend({resourceTemplates:T.array(Wve)}),Xve=ri.extend({method:T.literal("resources/read"),params:Qi.extend({uri:T.string()})}),iT=Zi.extend({contents:T.array(T.union([K5,W5]))}),Qve=fo.extend({method:T.literal("notifications/resources/list_changed")}),Zve=ri.extend({method:T.literal("resources/subscribe"),params:Qi.extend({uri:T.string()})}),ebe=ri.extend({method:T.literal("resources/unsubscribe"),params:Qi.extend({uri:T.string()})}),tbe=fo.extend({method:T.literal("notifications/resources/updated"),params:dm.extend({uri:T.string()})}),rbe=T.object({name:T.string(),description:T.optional(T.string()),required:T.optional(T.boolean())}).passthrough(),nbe=mm.extend({description:T.optional(T.string()),arguments:T.optional(T.array(rbe)),_meta:T.optional(T.object({}).passthrough())}).merge(fm),ibe=Wv.extend({method:T.literal("prompts/list")}),sT=Jv.extend({prompts:T.array(nbe)}),sbe=ri.extend({method:T.literal("prompts/get"),params:Qi.extend({name:T.string(),arguments:T.optional(T.record(T.string()))})}),oT=T.object({type:T.literal("text"),text:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),aT=T.object({type:T.literal("image"),data:tT,mimeType:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),cT=T.object({type:T.literal("audio"),data:tT,mimeType:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),obe=T.object({type:T.literal("resource"),resource:T.union([K5,W5]),_meta:T.optional(T.object({}).passthrough())}).passthrough(),abe=J5.extend({type:T.literal("resource_link")}),Y5=T.union([oT,aT,cT,abe,obe]),cbe=T.object({role:T.enum(["user","assistant"]),content:Y5}).passthrough(),uT=Zi.extend({description:T.optional(T.string()),messages:T.array(cbe)}),ube=fo.extend({method:T.literal("notifications/prompts/list_changed")}),lbe=T.object({title:T.optional(T.string()),readOnlyHint:T.optional(T.boolean()),destructiveHint:T.optional(T.boolean()),idempotentHint:T.optional(T.boolean()),openWorldHint:T.optional(T.boolean())}).passthrough(),pbe=mm.extend({description:T.optional(T.string()),inputSchema:T.object({type:T.literal("object"),properties:T.optional(T.object({}).passthrough()),required:T.optional(T.array(T.string()))}).passthrough(),outputSchema:T.optional(T.object({type:T.literal("object"),properties:T.optional(T.object({}).passthrough()),required:T.optional(T.array(T.string()))}).passthrough()),annotations:T.optional(lbe),_meta:T.optional(T.object({}).passthrough())}).merge(fm),dbe=Wv.extend({method:T.literal("tools/list")}),lT=Jv.extend({tools:T.array(pbe)}),Yv=Zi.extend({content:T.array(Y5).default([]),structuredContent:T.object({}).passthrough().optional(),isError:T.optional(T.boolean())}),mYe=Yv.or(Zi.extend({toolResult:T.unknown()})),fbe=ri.extend({method:T.literal("tools/call"),params:Qi.extend({name:T.string(),arguments:T.optional(T.record(T.unknown()))})}),mbe=fo.extend({method:T.literal("notifications/tools/list_changed")}),X5=T.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),hbe=ri.extend({method:T.literal("logging/setLevel"),params:Qi.extend({level:X5})}),gbe=fo.extend({method:T.literal("notifications/message"),params:dm.extend({level:X5,logger:T.optional(T.string()),data:T.unknown()})}),ybe=T.object({name:T.string().optional()}).passthrough(),vbe=T.object({hints:T.optional(T.array(ybe)),costPriority:T.optional(T.number().min(0).max(1)),speedPriority:T.optional(T.number().min(0).max(1)),intelligencePriority:T.optional(T.number().min(0).max(1))}).passthrough(),bbe=T.object({role:T.enum(["user","assistant"]),content:T.union([oT,aT,cT])}).passthrough(),xbe=ri.extend({method:T.literal("sampling/createMessage"),params:Qi.extend({messages:T.array(bbe),systemPrompt:T.optional(T.string()),includeContext:T.optional(T.enum(["none","thisServer","allServers"])),temperature:T.optional(T.number()),maxTokens:T.number().int(),stopSequences:T.optional(T.array(T.string())),metadata:T.optional(T.object({}).passthrough()),modelPreferences:T.optional(vbe)})}),Dbe=Zi.extend({model:T.string(),stopReason:T.optional(T.enum(["endTurn","stopSequence","maxTokens"]).or(T.string())),role:T.enum(["user","assistant"]),content:T.discriminatedUnion("type",[oT,aT,cT])}),Ebe=T.object({type:T.literal("boolean"),title:T.optional(T.string()),description:T.optional(T.string()),default:T.optional(T.boolean())}).passthrough(),Cbe=T.object({type:T.literal("string"),title:T.optional(T.string()),description:T.optional(T.string()),minLength:T.optional(T.number()),maxLength:T.optional(T.number()),format:T.optional(T.enum(["email","uri","date","date-time"]))}).passthrough(),wbe=T.object({type:T.enum(["number","integer"]),title:T.optional(T.string()),description:T.optional(T.string()),minimum:T.optional(T.number()),maximum:T.optional(T.number())}).passthrough(),Sbe=T.object({type:T.literal("string"),title:T.optional(T.string()),description:T.optional(T.string()),enum:T.array(T.string()),enumNames:T.optional(T.array(T.string()))}).passthrough(),Tbe=T.union([Ebe,Cbe,wbe,Sbe]),Pbe=ri.extend({method:T.literal("elicitation/create"),params:Qi.extend({message:T.string(),requestedSchema:T.object({type:T.literal("object"),properties:T.record(T.string(),Tbe),required:T.optional(T.array(T.string()))}).passthrough()})}),Abe=Zi.extend({action:T.enum(["accept","decline","cancel"]),content:T.optional(T.record(T.string(),T.unknown()))}),_be=T.object({type:T.literal("ref/resource"),uri:T.string()}).passthrough(),Fbe=T.object({type:T.literal("ref/prompt"),name:T.string()}).passthrough(),kbe=ri.extend({method:T.literal("completion/complete"),params:Qi.extend({ref:T.union([Fbe,_be]),argument:T.object({name:T.string(),value:T.string()}).passthrough(),context:T.optional(T.object({arguments:T.optional(T.record(T.string(),T.string()))}))})}),pT=Zi.extend({completion:T.object({values:T.array(T.string()).max(100),total:T.optional(T.number().int()),hasMore:T.optional(T.boolean())}).passthrough()}),Ibe=T.object({uri:T.string().startsWith("file://"),name:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).passthrough(),Nbe=ri.extend({method:T.literal("roots/list")}),Rbe=Zi.extend({roots:T.array(Ibe)}),Obe=fo.extend({method:T.literal("notifications/roots/list_changed")}),hYe=T.union([Vv,Gve,kbe,hbe,sbe,ibe,Jve,Yve,Xve,Zve,ebe,fbe,dbe]),gYe=T.union([Hv,Kv,Vve,Obe]),yYe=T.union([xu,Dbe,Abe,Rbe]),vYe=T.union([Vv,xbe,Pbe,Nbe]),bYe=T.union([Hv,Kv,gbe,tbe,Qve,mbe,ube]),xYe=T.union([xu,eT,pT,uT,sT,rT,nT,iT,Yv,lT]),Xi=class extends Error{constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n,this.name="McpError"}}});function Q5(t,e){return Object.entries(e).reduce((r,[n,i])=>(i&&typeof i=="object"?r[n]=r[n]?{...r[n],...i}:i:r[n]=i,r),{...t})}var Bbe,Qv,Z5=N(()=>{h();Xv();Bbe=6e4,Qv=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this.setNotificationHandler(Hv,r=>{let n=this._requestHandlerAbortControllers.get(r.params.requestId);n?.abort(r.params.reason)}),this.setNotificationHandler(Kv,r=>{this._onprogress(r)}),this.setRequestHandler(Vv,r=>({}))}_setupTimeout(e,r,n,i,s=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:s,onTimeout:i})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),new Xi(Yi.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){var r,n,i;this._transport=e;let s=(r=this.transport)===null||r===void 0?void 0:r.onclose;this._transport.onclose=()=>{s?.(),this._onclose()};let o=(n=this.transport)===null||n===void 0?void 0:n.onerror;this._transport.onerror=c=>{o?.(c),this._onerror(c)};let a=(i=this._transport)===null||i===void 0?void 0:i.onmessage;this._transport.onmessage=(c,u)=>{a?.(c,u),Z1(c)||z5(c)?this._onresponse(c):L5(c)?this._onrequest(c,u):j5(c)?this._onnotification(c):this._onerror(new Error(`Unknown message type: ${JSON.stringify(c)}`))},await this._transport.start()}_onclose(){var e;let r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear(),this._transport=void 0,(e=this.onclose)===null||e===void 0||e.call(this);let n=new Xi(Yi.ConnectionClosed,"Connection closed");for(let i of r.values())i(n)}_onerror(e){var r;(r=this.onerror)===null||r===void 0||r.call(this,e)}_onnotification(e){var r;let n=(r=this._notificationHandlers.get(e.method))!==null&&r!==void 0?r:this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(e)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(e,r){var n,i;let s=(n=this._requestHandlers.get(e.method))!==null&&n!==void 0?n:this.fallbackRequestHandler,o=this._transport;if(s===void 0){o?.send({jsonrpc:"2.0",id:e.id,error:{code:Yi.MethodNotFound,message:"Method not found"}}).catch(u=>this._onerror(new Error(`Failed to send an error response: ${u}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let c={signal:a.signal,sessionId:o?.sessionId,_meta:(i=e.params)===null||i===void 0?void 0:i._meta,sendNotification:u=>this.notification(u,{relatedRequestId:e.id}),sendRequest:(u,l,p)=>this.request(u,l,{...p,relatedRequestId:e.id}),authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo};Promise.resolve().then(()=>s(e,c)).then(u=>{if(!a.signal.aborted)return o?.send({result:u,jsonrpc:"2.0",id:e.id})},u=>{var l;if(!a.signal.aborted)return o?.send({jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(u.code)?u.code:Yi.InternalError,message:(l=u.message)!==null&&l!==void 0?l:"Internal error"}})}).catch(u=>this._onerror(new Error(`Failed to send response: ${u}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...n}=e.params,i=Number(r),s=this._progressHandlers.get(i);if(!s){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(c){o(c);return}s(n)}_onresponse(e){let r=Number(e.id),n=this._responseHandlers.get(r);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}if(this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),Z1(e))n(e);else{let i=new Xi(e.error.code,e.error.message,e.error.data);n(i)}}get transport(){return this._transport}async close(){var e;await((e=this._transport)===null||e===void 0?void 0:e.close())}request(e,r,n){let{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}=n??{};return new Promise((a,c)=>{var u,l,p,d,f,m;if(!this._transport){c(new Error("Not connected"));return}((u=this._options)===null||u===void 0?void 0:u.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(e.method),(l=n?.signal)===null||l===void 0||l.throwIfAborted();let g=this._requestMessageId++,y={...e,jsonrpc:"2.0",id:g};n?.onprogress&&(this._progressHandlers.set(g,n.onprogress),y.params={...e.params,_meta:{...((p=e.params)===null||p===void 0?void 0:p._meta)||{},progressToken:g}});let v=x=>{var b;this._responseHandlers.delete(g),this._progressHandlers.delete(g),this._cleanupTimeout(g),(b=this._transport)===null||b===void 0||b.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:g,reason:String(x)}},{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}).catch(C=>this._onerror(new Error(`Failed to send cancellation: ${C}`))),c(x)};this._responseHandlers.set(g,x=>{var b;if(!(!((b=n?.signal)===null||b===void 0)&&b.aborted)){if(x instanceof Error)return c(x);try{let C=r.parse(x.result);a(C)}catch(C){c(C)}}}),(d=n?.signal)===null||d===void 0||d.addEventListener("abort",()=>{var x;v((x=n?.signal)===null||x===void 0?void 0:x.reason)});let E=(f=n?.timeout)!==null&&f!==void 0?f:Bbe,D=()=>v(new Xi(Yi.RequestTimeout,"Request timed out",{timeout:E}));this._setupTimeout(g,E,n?.maxTotalTimeout,D,(m=n?.resetTimeoutOnProgress)!==null&&m!==void 0?m:!1),this._transport.send(y,{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}).catch(x=>{this._cleanupTimeout(g),c(x)})})}async notification(e,r){var n,i;if(!this._transport)throw new Error("Not connected");if(this.assertNotificationCapability(e.method),((i=(n=this._options)===null||n===void 0?void 0:n.debouncedNotificationMethods)!==null&&i!==void 0?i:[]).includes(e.method)&&!e.params&&!r?.relatedRequestId){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{var c;if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let u={...e,jsonrpc:"2.0"};(c=this._transport)===null||c===void 0||c.send(u,r).catch(l=>this._onerror(l))});return}let a={...e,jsonrpc:"2.0"};await this._transport.send(a,r)}setRequestHandler(e,r){let n=e.shape.method.value;this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(i,s)=>Promise.resolve(r(e.parse(i),s)))}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){this._notificationHandlers.set(e.shape.method.value,n=>Promise.resolve(r(e.parse(n))))}removeNotificationHandler(e){this._notificationHandlers.delete(e)}}});var tj=S((Zv,ej)=>{h();(function(t,e){typeof Zv=="object"&&typeof ej<"u"?e(Zv):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(Zv,(function(t){"use strict";function e(){for(var M=arguments.length,I=Array(M),q=0;q<M;q++)I[q]=arguments[q];if(I.length>1){I[0]=I[0].slice(0,-1);for(var W=I.length-1,X=1;X<W;++X)I[X]=I[X].slice(1,-1);return I[W]=I[W].slice(1),I.join("")}else return I[0]}function r(M){return"(?:"+M+")"}function n(M){return M===void 0?"undefined":M===null?"null":Object.prototype.toString.call(M).split(" ").pop().split("]").shift().toLowerCase()}function i(M){return M.toUpperCase()}function s(M){return M!=null?M instanceof Array?M:typeof M.length!="number"||M.split||M.setInterval||M.call?[M]:Array.prototype.slice.call(M):[]}function o(M,I){var q=M;if(I)for(var W in I)q[W]=I[W];return q}function a(M){var I="[A-Za-z]",q="[\\x0D]",W="[0-9]",X="[\\x22]",ve=e(W,"[A-Fa-f]"),Ye="[\\x0A]",yt="[\\x20]",Tt=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),Sr="[\\:\\/\\?\\#\\[\\]\\@]",mt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",lr=e(Sr,mt),Tr=M?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",ir=M?"[\\uE000-\\uF8FF]":"[]",xt=e(I,W,"[\\-\\.\\_\\~]",Tr),pr=r(I+e(I,W,"[\\+\\-\\.]")+"*"),Ot=r(r(Tt+"|"+e(xt,mt,"[\\:]"))+"*"),lc=r(r("25[0-5]")+"|"+r("2[0-4]"+W)+"|"+r("1"+W+W)+"|"+r("[1-9]"+W)+"|"+W),ai=r(r("25[0-5]")+"|"+r("2[0-4]"+W)+"|"+r("1"+W+W)+"|"+r("0?[1-9]"+W)+"|0?0?"+W),Pi=r(ai+"\\."+ai+"\\."+ai+"\\."+ai),jt=r(ve+"{1,4}"),ci=r(r(jt+"\\:"+jt)+"|"+Pi),Ai=r(r(jt+"\\:")+"{6}"+ci),Os=r("\\:\\:"+r(jt+"\\:")+"{5}"+ci),pc=r(r(jt)+"?\\:\\:"+r(jt+"\\:")+"{4}"+ci),To=r(r(r(jt+"\\:")+"{0,1}"+jt)+"?\\:\\:"+r(jt+"\\:")+"{3}"+ci),Dd=r(r(r(jt+"\\:")+"{0,2}"+jt)+"?\\:\\:"+r(jt+"\\:")+"{2}"+ci),Nh=r(r(r(jt+"\\:")+"{0,3}"+jt)+"?\\:\\:"+jt+"\\:"+ci),Rh=r(r(r(jt+"\\:")+"{0,4}"+jt)+"?\\:\\:"+ci),Yu=r(r(r(jt+"\\:")+"{0,5}"+jt)+"?\\:\\:"+jt),Xu=r(r(r(jt+"\\:")+"{0,6}"+jt)+"?\\:\\:"),Po=r([Ai,Os,pc,To,Dd,Nh,Rh,Yu,Xu].join("|")),Qu=r(r(xt+"|"+Tt)+"+"),l0=r(Po+"\\%25"+Qu),dc=r(Po+r("\\%25|\\%(?!"+ve+"{2})")+Qu),xee=r("[vV]"+ve+"+\\."+e(xt,mt,"[\\:]")+"+"),Dee=r("\\["+r(dc+"|"+Po+"|"+xee)+"\\]"),IF=r(r(Tt+"|"+e(xt,mt))+"*"),Ed=r(Dee+"|"+Pi+"(?!"+IF+")|"+IF),Cd=r(W+"*"),NF=r(r(Ot+"@")+"?"+Ed+r("\\:"+Cd)+"?"),wd=r(Tt+"|"+e(xt,mt,"[\\:\\@]")),Eee=r(wd+"*"),RF=r(wd+"+"),Cee=r(r(Tt+"|"+e(xt,mt,"[\\@]"))+"+"),Ao=r(r("\\/"+Eee)+"*"),Zu=r("\\/"+r(RF+Ao)+"?"),p0=r(Cee+Ao),Oh=r(RF+Ao),el="(?!"+wd+")",LRe=r(Ao+"|"+Zu+"|"+p0+"|"+Oh+"|"+el),tl=r(r(wd+"|"+e("[\\/\\?]",ir))+"*"),Sd=r(r(wd+"|[\\/\\?]")+"*"),OF=r(r("\\/\\/"+NF+Ao)+"|"+Zu+"|"+Oh+"|"+el),wee=r(pr+"\\:"+OF+r("\\?"+tl)+"?"+r("\\#"+Sd)+"?"),See=r(r("\\/\\/"+NF+Ao)+"|"+Zu+"|"+p0+"|"+el),Tee=r(See+r("\\?"+tl)+"?"+r("\\#"+Sd)+"?"),$Re=r(wee+"|"+Tee),jRe=r(pr+"\\:"+OF+r("\\?"+tl)+"?"),URe="^("+pr+")\\:"+r(r("\\/\\/("+r("("+Ot+")@")+"?("+Ed+")"+r("\\:("+Cd+")")+"?)")+"?("+Ao+"|"+Zu+"|"+Oh+"|"+el+")")+r("\\?("+tl+")")+"?"+r("\\#("+Sd+")")+"?$",qRe="^(){0}"+r(r("\\/\\/("+r("("+Ot+")@")+"?("+Ed+")"+r("\\:("+Cd+")")+"?)")+"?("+Ao+"|"+Zu+"|"+p0+"|"+el+")")+r("\\?("+tl+")")+"?"+r("\\#("+Sd+")")+"?$",zRe="^("+pr+")\\:"+r(r("\\/\\/("+r("("+Ot+")@")+"?("+Ed+")"+r("\\:("+Cd+")")+"?)")+"?("+Ao+"|"+Zu+"|"+Oh+"|"+el+")")+r("\\?("+tl+")")+"?$",GRe="^"+r("\\#("+Sd+")")+"?$",HRe="^"+r("("+Ot+")@")+"?("+Ed+")"+r("\\:("+Cd+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",I,W,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",xt,mt),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",xt,mt),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",xt,mt),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",xt,mt),"g"),NOT_QUERY:new RegExp(e("[^\\%]",xt,mt,"[\\:\\@\\/\\?]",ir),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",xt,mt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",xt,mt),"g"),UNRESERVED:new RegExp(xt,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",xt,lr),"g"),PCT_ENCODED:new RegExp(Tt,"g"),IPV4ADDRESS:new RegExp("^("+Pi+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Po+")"+r(r("\\%25|\\%(?!"+ve+"{2})")+"("+Qu+")")+"?\\]?$")}}var c=a(!1),u=a(!0),l=(function(){function M(I,q){var W=[],X=!0,ve=!1,Ye=void 0;try{for(var yt=I[Symbol.iterator](),Tt;!(X=(Tt=yt.next()).done)&&(W.push(Tt.value),!(q&&W.length===q));X=!0);}catch(Sr){ve=!0,Ye=Sr}finally{try{!X&&yt.return&&yt.return()}finally{if(ve)throw Ye}}return W}return function(I,q){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return M(I,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p=function(M){if(Array.isArray(M)){for(var I=0,q=Array(M.length);I<M.length;I++)q[I]=M[I];return q}else return Array.from(M)},d=2147483647,f=36,m=1,g=26,y=38,v=700,E=72,D=128,x="-",b=/^xn--/,C=/[^\0-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,F={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=f-m,_=Math.floor,A=String.fromCharCode;function z(M){throw new RangeError(F[M])}function O(M,I){for(var q=[],W=M.length;W--;)q[W]=I(M[W]);return q}function U(M,I){var q=M.split("@"),W="";q.length>1&&(W=q[0]+"@",M=q[1]),M=M.replace(w,".");var X=M.split("."),ve=O(X,I).join(".");return W+ve}function k(M){for(var I=[],q=0,W=M.length;q<W;){var X=M.charCodeAt(q++);if(X>=55296&&X<=56319&&q<W){var ve=M.charCodeAt(q++);(ve&64512)==56320?I.push(((X&1023)<<10)+(ve&1023)+65536):(I.push(X),q--)}else I.push(X)}return I}var R=function(I){return String.fromCodePoint.apply(String,p(I))},$=function(I){return I-48<10?I-22:I-65<26?I-65:I-97<26?I-97:f},G=function(I,q){return I+22+75*(I<26)-((q!=0)<<5)},Z=function(I,q,W){var X=0;for(I=W?_(I/v):I>>1,I+=_(I/q);I>P*g>>1;X+=f)I=_(I/P);return _(X+(P+1)*I/(I+y))},j=function(I){var q=[],W=I.length,X=0,ve=D,Ye=E,yt=I.lastIndexOf(x);yt<0&&(yt=0);for(var Tt=0;Tt<yt;++Tt)I.charCodeAt(Tt)>=128&&z("not-basic"),q.push(I.charCodeAt(Tt));for(var Sr=yt>0?yt+1:0;Sr<W;){for(var mt=X,lr=1,Tr=f;;Tr+=f){Sr>=W&&z("invalid-input");var ir=$(I.charCodeAt(Sr++));(ir>=f||ir>_((d-X)/lr))&&z("overflow"),X+=ir*lr;var xt=Tr<=Ye?m:Tr>=Ye+g?g:Tr-Ye;if(ir<xt)break;var pr=f-xt;lr>_(d/pr)&&z("overflow"),lr*=pr}var Ot=q.length+1;Ye=Z(X-mt,Ot,mt==0),_(X/Ot)>d-ve&&z("overflow"),ve+=_(X/Ot),X%=Ot,q.splice(X++,0,ve)}return String.fromCodePoint.apply(String,q)},K=function(I){var q=[];I=k(I);var W=I.length,X=D,ve=0,Ye=E,yt=!0,Tt=!1,Sr=void 0;try{for(var mt=I[Symbol.iterator](),lr;!(yt=(lr=mt.next()).done);yt=!0){var Tr=lr.value;Tr<128&&q.push(A(Tr))}}catch(dc){Tt=!0,Sr=dc}finally{try{!yt&&mt.return&&mt.return()}finally{if(Tt)throw Sr}}var ir=q.length,xt=ir;for(ir&&q.push(x);xt<W;){var pr=d,Ot=!0,lc=!1,ai=void 0;try{for(var Pi=I[Symbol.iterator](),jt;!(Ot=(jt=Pi.next()).done);Ot=!0){var ci=jt.value;ci>=X&&ci<pr&&(pr=ci)}}catch(dc){lc=!0,ai=dc}finally{try{!Ot&&Pi.return&&Pi.return()}finally{if(lc)throw ai}}var Ai=xt+1;pr-X>_((d-ve)/Ai)&&z("overflow"),ve+=(pr-X)*Ai,X=pr;var Os=!0,pc=!1,To=void 0;try{for(var Dd=I[Symbol.iterator](),Nh;!(Os=(Nh=Dd.next()).done);Os=!0){var Rh=Nh.value;if(Rh<X&&++ve>d&&z("overflow"),Rh==X){for(var Yu=ve,Xu=f;;Xu+=f){var Po=Xu<=Ye?m:Xu>=Ye+g?g:Xu-Ye;if(Yu<Po)break;var Qu=Yu-Po,l0=f-Po;q.push(A(G(Po+Qu%l0,0))),Yu=_(Qu/l0)}q.push(A(G(Yu,0))),Ye=Z(ve,Ai,xt==ir),ve=0,++xt}}}catch(dc){pc=!0,To=dc}finally{try{!Os&&Dd.return&&Dd.return()}finally{if(pc)throw To}}++ve,++X}return q.join("")},Q=function(I){return U(I,function(q){return b.test(q)?j(q.slice(4).toLowerCase()):q})},ue=function(I){return U(I,function(q){return C.test(q)?"xn--"+K(q):q})},de={version:"2.1.0",ucs2:{decode:k,encode:R},decode:j,encode:K,toASCII:ue,toUnicode:Q},fe={};function oe(M){var I=M.charCodeAt(0),q=void 0;return I<16?q="%0"+I.toString(16).toUpperCase():I<128?q="%"+I.toString(16).toUpperCase():I<2048?q="%"+(I>>6|192).toString(16).toUpperCase()+"%"+(I&63|128).toString(16).toUpperCase():q="%"+(I>>12|224).toString(16).toUpperCase()+"%"+(I>>6&63|128).toString(16).toUpperCase()+"%"+(I&63|128).toString(16).toUpperCase(),q}function Ge(M){for(var I="",q=0,W=M.length;q<W;){var X=parseInt(M.substr(q+1,2),16);if(X<128)I+=String.fromCharCode(X),q+=3;else if(X>=194&&X<224){if(W-q>=6){var ve=parseInt(M.substr(q+4,2),16);I+=String.fromCharCode((X&31)<<6|ve&63)}else I+=M.substr(q,6);q+=6}else if(X>=224){if(W-q>=9){var Ye=parseInt(M.substr(q+4,2),16),yt=parseInt(M.substr(q+7,2),16);I+=String.fromCharCode((X&15)<<12|(Ye&63)<<6|yt&63)}else I+=M.substr(q,9);q+=9}else I+=M.substr(q,3),q+=3}return I}function rt(M,I){function q(W){var X=Ge(W);return X.match(I.UNRESERVED)?X:W}return M.scheme&&(M.scheme=String(M.scheme).replace(I.PCT_ENCODED,q).toLowerCase().replace(I.NOT_SCHEME,"")),M.userinfo!==void 0&&(M.userinfo=String(M.userinfo).replace(I.PCT_ENCODED,q).replace(I.NOT_USERINFO,oe).replace(I.PCT_ENCODED,i)),M.host!==void 0&&(M.host=String(M.host).replace(I.PCT_ENCODED,q).toLowerCase().replace(I.NOT_HOST,oe).replace(I.PCT_ENCODED,i)),M.path!==void 0&&(M.path=String(M.path).replace(I.PCT_ENCODED,q).replace(M.scheme?I.NOT_PATH:I.NOT_PATH_NOSCHEME,oe).replace(I.PCT_ENCODED,i)),M.query!==void 0&&(M.query=String(M.query).replace(I.PCT_ENCODED,q).replace(I.NOT_QUERY,oe).replace(I.PCT_ENCODED,i)),M.fragment!==void 0&&(M.fragment=String(M.fragment).replace(I.PCT_ENCODED,q).replace(I.NOT_FRAGMENT,oe).replace(I.PCT_ENCODED,i)),M}function ce(M){return M.replace(/^0*(.*)/,"$1")||"0"}function Se(M,I){var q=M.match(I.IPV4ADDRESS)||[],W=l(q,2),X=W[1];return X?X.split(".").map(ce).join("."):M}function re(M,I){var q=M.match(I.IPV6ADDRESS)||[],W=l(q,3),X=W[1],ve=W[2];if(X){for(var Ye=X.toLowerCase().split("::").reverse(),yt=l(Ye,2),Tt=yt[0],Sr=yt[1],mt=Sr?Sr.split(":").map(ce):[],lr=Tt.split(":").map(ce),Tr=I.IPV4ADDRESS.test(lr[lr.length-1]),ir=Tr?7:8,xt=lr.length-ir,pr=Array(ir),Ot=0;Ot<ir;++Ot)pr[Ot]=mt[Ot]||lr[xt+Ot]||"";Tr&&(pr[ir-1]=Se(pr[ir-1],I));var lc=pr.reduce(function(Ai,Os,pc){if(!Os||Os==="0"){var To=Ai[Ai.length-1];To&&To.index+To.length===pc?To.length++:Ai.push({index:pc,length:1})}return Ai},[]),ai=lc.sort(function(Ai,Os){return Os.length-Ai.length})[0],Pi=void 0;if(ai&&ai.length>1){var jt=pr.slice(0,ai.index),ci=pr.slice(ai.index+ai.length);Pi=jt.join(":")+"::"+ci.join(":")}else Pi=pr.join(":");return ve&&(Pi+="%"+ve),Pi}else return M}var Fe=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,V="".match(/(){0}/)[1]===void 0;function te(M){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q={},W=I.iri!==!1?u:c;I.reference==="suffix"&&(M=(I.scheme?I.scheme+":":"")+"//"+M);var X=M.match(Fe);if(X){V?(q.scheme=X[1],q.userinfo=X[3],q.host=X[4],q.port=parseInt(X[5],10),q.path=X[6]||"",q.query=X[7],q.fragment=X[8],isNaN(q.port)&&(q.port=X[5])):(q.scheme=X[1]||void 0,q.userinfo=M.indexOf("@")!==-1?X[3]:void 0,q.host=M.indexOf("//")!==-1?X[4]:void 0,q.port=parseInt(X[5],10),q.path=X[6]||"",q.query=M.indexOf("?")!==-1?X[7]:void 0,q.fragment=M.indexOf("#")!==-1?X[8]:void 0,isNaN(q.port)&&(q.port=M.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?X[4]:void 0)),q.host&&(q.host=re(Se(q.host,W),W)),q.scheme===void 0&&q.userinfo===void 0&&q.host===void 0&&q.port===void 0&&!q.path&&q.query===void 0?q.reference="same-document":q.scheme===void 0?q.reference="relative":q.fragment===void 0?q.reference="absolute":q.reference="uri",I.reference&&I.reference!=="suffix"&&I.reference!==q.reference&&(q.error=q.error||"URI is not a "+I.reference+" reference.");var ve=fe[(I.scheme||q.scheme||"").toLowerCase()];if(!I.unicodeSupport&&(!ve||!ve.unicodeSupport)){if(q.host&&(I.domainHost||ve&&ve.domainHost))try{q.host=de.toASCII(q.host.replace(W.PCT_ENCODED,Ge).toLowerCase())}catch(Ye){q.error=q.error||"Host's domain name can not be converted to ASCII via punycode: "+Ye}rt(q,c)}else rt(q,W);ve&&ve.parse&&ve.parse(q,I)}else q.error=q.error||"URI can not be parsed.";return q}function pe(M,I){var q=I.iri!==!1?u:c,W=[];return M.userinfo!==void 0&&(W.push(M.userinfo),W.push("@")),M.host!==void 0&&W.push(re(Se(String(M.host),q),q).replace(q.IPV6ADDRESS,function(X,ve,Ye){return"["+ve+(Ye?"%25"+Ye:"")+"]"})),(typeof M.port=="number"||typeof M.port=="string")&&(W.push(":"),W.push(String(M.port))),W.length?W.join(""):void 0}var Ce=/^\.\.?\//,De=/^\/\.(\/|$)/,je=/^\/\.\.(\/|$)/,se=/^\/?(?:.|\n)*?(?=\/|$)/;function Ee(M){for(var I=[];M.length;)if(M.match(Ce))M=M.replace(Ce,"");else if(M.match(De))M=M.replace(De,"/");else if(M.match(je))M=M.replace(je,"/"),I.pop();else if(M==="."||M==="..")M="";else{var q=M.match(se);if(q){var W=q[0];M=M.slice(W.length),I.push(W)}else throw new Error("Unexpected dot segment condition")}return I.join("")}function Pe(M){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=I.iri?u:c,W=[],X=fe[(I.scheme||M.scheme||"").toLowerCase()];if(X&&X.serialize&&X.serialize(M,I),M.host&&!q.IPV6ADDRESS.test(M.host)){if(I.domainHost||X&&X.domainHost)try{M.host=I.iri?de.toUnicode(M.host):de.toASCII(M.host.replace(q.PCT_ENCODED,Ge).toLowerCase())}catch(yt){M.error=M.error||"Host's domain name can not be converted to "+(I.iri?"Unicode":"ASCII")+" via punycode: "+yt}}rt(M,q),I.reference!=="suffix"&&M.scheme&&(W.push(M.scheme),W.push(":"));var ve=pe(M,I);if(ve!==void 0&&(I.reference!=="suffix"&&W.push("//"),W.push(ve),M.path&&M.path.charAt(0)!=="/"&&W.push("/")),M.path!==void 0){var Ye=M.path;!I.absolutePath&&(!X||!X.absolutePath)&&(Ye=Ee(Ye)),ve===void 0&&(Ye=Ye.replace(/^\/\//,"/%2F")),W.push(Ye)}return M.query!==void 0&&(W.push("?"),W.push(M.query)),M.fragment!==void 0&&(W.push("#"),W.push(M.fragment)),W.join("")}function ge(M,I){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=arguments[3],X={};return W||(M=te(Pe(M,q),q),I=te(Pe(I,q),q)),q=q||{},!q.tolerant&&I.scheme?(X.scheme=I.scheme,X.userinfo=I.userinfo,X.host=I.host,X.port=I.port,X.path=Ee(I.path||""),X.query=I.query):(I.userinfo!==void 0||I.host!==void 0||I.port!==void 0?(X.userinfo=I.userinfo,X.host=I.host,X.port=I.port,X.path=Ee(I.path||""),X.query=I.query):(I.path?(I.path.charAt(0)==="/"?X.path=Ee(I.path):((M.userinfo!==void 0||M.host!==void 0||M.port!==void 0)&&!M.path?X.path="/"+I.path:M.path?X.path=M.path.slice(0,M.path.lastIndexOf("/")+1)+I.path:X.path=I.path,X.path=Ee(X.path)),X.query=I.query):(X.path=M.path,I.query!==void 0?X.query=I.query:X.query=M.query),X.userinfo=M.userinfo,X.host=M.host,X.port=M.port),X.scheme=M.scheme),X.fragment=I.fragment,X}function at(M,I,q){var W=o({scheme:"null"},q);return Pe(ge(te(M,W),te(I,W),W,!0),W)}function ke(M,I){return typeof M=="string"?M=Pe(te(M,I),I):n(M)==="object"&&(M=te(Pe(M,I),I)),M}function Yt(M,I,q){return typeof M=="string"?M=Pe(te(M,q),q):n(M)==="object"&&(M=Pe(M,q)),typeof I=="string"?I=Pe(te(I,q),q):n(I)==="object"&&(I=Pe(I,q)),M===I}function So(M,I){return M&&M.toString().replace(!I||!I.iri?c.ESCAPE:u.ESCAPE,oe)}function le(M,I){return M&&M.toString().replace(!I||!I.iri?c.PCT_ENCODED:u.PCT_ENCODED,Ge)}var xe={scheme:"http",domainHost:!0,parse:function(I,q){return I.host||(I.error=I.error||"HTTP URIs must have a host."),I},serialize:function(I,q){var W=String(I.scheme).toLowerCase()==="https";return(I.port===(W?443:80)||I.port==="")&&(I.port=void 0),I.path||(I.path="/"),I}},He={scheme:"https",domainHost:xe.domainHost,parse:xe.parse,serialize:xe.serialize};function Ue(M){return typeof M.secure=="boolean"?M.secure:String(M.scheme).toLowerCase()==="wss"}var ct={scheme:"ws",domainHost:!0,parse:function(I,q){var W=I;return W.secure=Ue(W),W.resourceName=(W.path||"/")+(W.query?"?"+W.query:""),W.path=void 0,W.query=void 0,W},serialize:function(I,q){if((I.port===(Ue(I)?443:80)||I.port==="")&&(I.port=void 0),typeof I.secure=="boolean"&&(I.scheme=I.secure?"wss":"ws",I.secure=void 0),I.resourceName){var W=I.resourceName.split("?"),X=l(W,2),ve=X[0],Ye=X[1];I.path=ve&&ve!=="/"?ve:void 0,I.query=Ye,I.resourceName=void 0}return I.fragment=void 0,I}},qn={scheme:"wss",domainHost:ct.domainHost,parse:ct.parse,serialize:ct.serialize},a0={},c0=!0,PF="[A-Za-z0-9\\-\\.\\_\\~"+(c0?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Rs="[0-9A-Fa-f]",lee=r(r("%[EFef]"+Rs+"%"+Rs+Rs+"%"+Rs+Rs)+"|"+r("%[89A-Fa-f]"+Rs+"%"+Rs+Rs)+"|"+r("%"+Rs+Rs)),pee="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",dee="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",fee=e(dee,'[\\"\\\\]'),mee="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",hee=new RegExp(PF,"g"),Ju=new RegExp(lee,"g"),gee=new RegExp(e("[^]",pee,"[\\.]",'[\\"]',fee),"g"),AF=new RegExp(e("[^]",PF,mee),"g"),yee=AF;function u0(M){var I=Ge(M);return I.match(hee)?I:M}var _F={scheme:"mailto",parse:function(I,q){var W=I,X=W.to=W.path?W.path.split(","):[];if(W.path=void 0,W.query){for(var ve=!1,Ye={},yt=W.query.split("&"),Tt=0,Sr=yt.length;Tt<Sr;++Tt){var mt=yt[Tt].split("=");switch(mt[0]){case"to":for(var lr=mt[1].split(","),Tr=0,ir=lr.length;Tr<ir;++Tr)X.push(lr[Tr]);break;case"subject":W.subject=le(mt[1],q);break;case"body":W.body=le(mt[1],q);break;default:ve=!0,Ye[le(mt[0],q)]=le(mt[1],q);break}}ve&&(W.headers=Ye)}W.query=void 0;for(var xt=0,pr=X.length;xt<pr;++xt){var Ot=X[xt].split("@");if(Ot[0]=le(Ot[0]),q.unicodeSupport)Ot[1]=le(Ot[1],q).toLowerCase();else try{Ot[1]=de.toASCII(le(Ot[1],q).toLowerCase())}catch(lc){W.error=W.error||"Email address's domain name can not be converted to ASCII via punycode: "+lc}X[xt]=Ot.join("@")}return W},serialize:function(I,q){var W=I,X=s(I.to);if(X){for(var ve=0,Ye=X.length;ve<Ye;++ve){var yt=String(X[ve]),Tt=yt.lastIndexOf("@"),Sr=yt.slice(0,Tt).replace(Ju,u0).replace(Ju,i).replace(gee,oe),mt=yt.slice(Tt+1);try{mt=q.iri?de.toUnicode(mt):de.toASCII(le(mt,q).toLowerCase())}catch(xt){W.error=W.error||"Email address's domain name can not be converted to "+(q.iri?"Unicode":"ASCII")+" via punycode: "+xt}X[ve]=Sr+"@"+mt}W.path=X.join(",")}var lr=I.headers=I.headers||{};I.subject&&(lr.subject=I.subject),I.body&&(lr.body=I.body);var Tr=[];for(var ir in lr)lr[ir]!==a0[ir]&&Tr.push(ir.replace(Ju,u0).replace(Ju,i).replace(AF,oe)+"="+lr[ir].replace(Ju,u0).replace(Ju,i).replace(yee,oe));return Tr.length&&(W.query=Tr.join("&")),W}},vee=/^([^\:]+)\:(.*)/,FF={scheme:"urn",parse:function(I,q){var W=I.path&&I.path.match(vee),X=I;if(W){var ve=q.scheme||X.scheme||"urn",Ye=W[1].toLowerCase(),yt=W[2],Tt=ve+":"+(q.nid||Ye),Sr=fe[Tt];X.nid=Ye,X.nss=yt,X.path=void 0,Sr&&(X=Sr.parse(X,q))}else X.error=X.error||"URN can not be parsed.";return X},serialize:function(I,q){var W=q.scheme||I.scheme||"urn",X=I.nid,ve=W+":"+(q.nid||X),Ye=fe[ve];Ye&&(I=Ye.serialize(I,q));var yt=I,Tt=I.nss;return yt.path=(X||q.nid)+":"+Tt,yt}},bee=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,kF={scheme:"urn:uuid",parse:function(I,q){var W=I;return W.uuid=W.nss,W.nss=void 0,!q.tolerant&&(!W.uuid||!W.uuid.match(bee))&&(W.error=W.error||"UUID is not valid."),W},serialize:function(I,q){var W=I;return W.nss=(I.uuid||"").toLowerCase(),W}};fe[xe.scheme]=xe,fe[He.scheme]=He,fe[ct.scheme]=ct,fe[qn.scheme]=qn,fe[_F.scheme]=_F,fe[FF.scheme]=FF,fe[kF.scheme]=kF,t.SCHEMES=fe,t.pctEncChar=oe,t.pctDecChars=Ge,t.parse=te,t.removeDotSegments=Ee,t.serialize=Pe,t.resolveComponents=ge,t.resolve=at,t.normalize=ke,t.equal=Yt,t.escapeComponent=So,t.unescapeComponent=le,Object.defineProperty(t,"__esModule",{value:!0})}))});var eb=S((PYe,rj)=>{"use strict";h();rj.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}});var ij=S((_Ye,nj)=>{"use strict";h();nj.exports=function(e){for(var r=0,n=e.length,i=0,s;i<n;)r++,s=e.charCodeAt(i++),s>=55296&&s<=56319&&i<n&&(s=e.charCodeAt(i),(s&64512)==56320&&i++);return r}});var Du=S((kYe,aj)=>{"use strict";h();aj.exports={copy:Mbe,checkDataType:dT,checkDataTypes:Lbe,coerceToTypes:$be,toHash:mT,getProperty:hT,escapeQuotes:gT,equal:eb(),ucs2length:ij(),varOccurences:qbe,varReplace:zbe,schemaHasRules:Gbe,schemaHasRulesExcept:Hbe,schemaUnknownRules:Vbe,toQuotedString:fT,getPathExpr:Kbe,getPath:Wbe,getData:Xbe,unescapeFragment:Qbe,unescapeJsonPointer:vT,escapeFragment:Zbe,escapeJsonPointer:yT};function Mbe(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function dT(t,e,r,n){var i=n?" !== ":" === ",s=n?" || ":" && ",o=n?"!":"",a=n?"":"!";switch(t){case"null":return e+i+"null";case"array":return o+"Array.isArray("+e+")";case"object":return"("+o+e+s+"typeof "+e+i+'"object"'+s+a+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+i+'"number"'+s+a+"("+e+" % 1)"+s+e+i+e+(r?s+o+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+i+'"'+t+'"'+(r?s+o+"isFinite("+e+")":"")+")";default:return"typeof "+e+i+'"'+t+'"'}}function Lbe(t,e,r){switch(t.length){case 1:return dT(t[0],e,r,!0);default:var n="",i=mT(t);i.array&&i.object&&(n=i.null?"(":"(!"+e+" || ",n+="typeof "+e+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer;for(var s in i)n+=(n?" && ":"")+dT(s,e,r,!0);return n}}var sj=mT(["string","number","integer","boolean","null"]);function $be(t,e){if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++){var i=e[n];(sj[i]||t==="array"&&i==="array")&&(r[r.length]=i)}if(r.length)return r}else{if(sj[e])return[e];if(t==="array"&&e==="array")return["array"]}}function mT(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var jbe=/^[a-z$_][a-z$_0-9]*$/i,Ube=/'|\\/g;function hT(t){return typeof t=="number"?"["+t+"]":jbe.test(t)?"."+t:"['"+gT(t)+"']"}function gT(t){return t.replace(Ube,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function qbe(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function zbe(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function Gbe(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function Hbe(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var n in t)if(n!=r&&e[n])return!0}function Vbe(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function fT(t){return"'"+gT(t)+"'"}function Kbe(t,e,r,n){var i=r?"'/' + "+e+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return oj(t,i)}function Wbe(t,e,r){var n=fT(r?"/"+yT(e):hT(e));return oj(t,n)}var Jbe=/^\/(?:[^~]|~0|~1)*$/,Ybe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Xbe(t,e,r){var n,i,s,o;if(t==="")return"rootData";if(t[0]=="/"){if(!Jbe.test(t))throw new Error("Invalid JSON-pointer: "+t);i=t,s="rootData"}else{if(o=t.match(Ybe),!o)throw new Error("Invalid JSON-pointer: "+t);if(n=+o[1],i=o[2],i=="#"){if(n>=e)throw new Error("Cannot access property/index "+n+" levels up, current level is "+e);return r[e-n]}if(n>e)throw new Error("Cannot access data "+n+" levels up, current level is "+e);if(s="data"+(e-n||""),!i)return s}for(var a=s,c=i.split("/"),u=0;u<c.length;u++){var l=c[u];l&&(s+=hT(vT(l)),a+=" && "+s)}return a}function oj(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function Qbe(t){return vT(decodeURIComponent(t))}function Zbe(t){return encodeURIComponent(yT(t))}function yT(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function vT(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var bT=S((NYe,cj)=>{"use strict";h();var exe=Du();cj.exports=txe;function txe(t){exe.copy(t,this)}});var lj=S((OYe,uj)=>{"use strict";h();var Ha=uj.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};tb(e,n,i,t,"",t)};Ha.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Ha.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ha.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ha.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function tb(t,e,r,n,i,s,o,a,c,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,i,s,o,a,c,u);for(var l in n){var p=n[l];if(Array.isArray(p)){if(l in Ha.arrayKeywords)for(var d=0;d<p.length;d++)tb(t,e,r,p[d],i+"/"+l+"/"+d,s,i,l,n,d)}else if(l in Ha.propsKeywords){if(p&&typeof p=="object")for(var f in p)tb(t,e,r,p[f],i+"/"+l+"/"+rxe(f),s,i,l,n,f)}else(l in Ha.keywords||t.allKeys&&!(l in Ha.skipKeywords))&&tb(t,e,r,p,i+"/"+l,s,i,l,n)}r(n,i,s,o,a,c,u)}}function rxe(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var ab=S((MYe,mj)=>{"use strict";h();var hm=tj(),pj=eb(),sb=Du(),rb=bT(),nxe=lj();mj.exports=Ka;Ka.normalizeId=Va;Ka.fullPath=nb;Ka.url=ib;Ka.ids=cxe;Ka.inlineRef=xT;Ka.schema=ob;function Ka(t,e,r){var n=this._refs[r];if(typeof n=="string")if(this._refs[n])n=this._refs[n];else return Ka.call(this,t,e,n);if(n=n||this._schemas[r],n instanceof rb)return xT(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var i=ob.call(this,e,r),s,o,a;return i&&(s=i.schema,e=i.root,a=i.baseId),s instanceof rb?o=s.validate||t.call(this,s.schema,e,void 0,a):s!==void 0&&(o=xT(s,this._opts.inlineRefs)?s:t.call(this,s,e,void 0,a)),o}function ob(t,e){var r=hm.parse(e),n=fj(r),i=nb(this._getId(t.schema));if(Object.keys(t.schema).length===0||n!==i){var s=Va(n),o=this._refs[s];if(typeof o=="string")return ixe.call(this,t,o,r);if(o instanceof rb)o.validate||this._compile(o),t=o;else if(o=this._schemas[s],o instanceof rb){if(o.validate||this._compile(o),s==Va(e))return{schema:o,root:t,baseId:i};t=o}else return;if(!t.schema)return;i=nb(this._getId(t.schema))}return dj.call(this,r,i,t.schema,t)}function ixe(t,e,r){var n=ob.call(this,t,e);if(n){var i=n.schema,s=n.baseId;t=n.root;var o=this._getId(i);return o&&(s=ib(s,o)),dj.call(this,r,s,i,t)}}var sxe=sb.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function dj(t,e,r,n){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var i=t.fragment.split("/"),s=1;s<i.length;s++){var o=i[s];if(o){if(o=sb.unescapeFragment(o),r=r[o],r===void 0)break;var a;if(!sxe[o]&&(a=this._getId(r),a&&(e=ib(e,a)),r.$ref)){var c=ib(e,r.$ref),u=ob.call(this,n,c);u&&(r=u.schema,n=u.root,e=u.baseId)}}}if(r!==void 0&&r!==n.schema)return{schema:r,root:n,baseId:e}}}var oxe=sb.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function xT(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return DT(t);if(e)return ET(t)<=e}function DT(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!DT(e))return!1}else for(var n in t)if(n=="$ref"||(e=t[n],typeof e=="object"&&!DT(e)))return!1;return!0}function ET(t){var e=0,r;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(r=t[n],typeof r=="object"&&(e+=ET(r)),e==1/0)return 1/0}else for(var i in t){if(i=="$ref")return 1/0;if(oxe[i])e++;else if(r=t[i],typeof r=="object"&&(e+=ET(r)+1),e==1/0)return 1/0}return e}function nb(t,e){e!==!1&&(t=Va(t));var r=hm.parse(t);return fj(r)}function fj(t){return hm.serialize(t).split("#")[0]+"#"}var axe=/#\/?$/;function Va(t){return t?t.replace(axe,""):""}function ib(t,e){return e=Va(e),hm.resolve(t,e)}function cxe(t){var e=Va(this._getId(t)),r={"":e},n={"":nb(e,!1)},i={},s=this;return nxe(t,{allKeys:!0},function(o,a,c,u,l,p,d){if(a!==""){var f=s._getId(o),m=r[u],g=n[u]+"/"+l;if(d!==void 0&&(g+="/"+(typeof d=="number"?d:sb.escapeFragment(d))),typeof f=="string"){f=m=Va(m?hm.resolve(m,f):f);var y=s._refs[f];if(typeof y=="string"&&(y=s._refs[y]),y&&y.schema){if(!pj(o,y.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=Va(g))if(f[0]=="#"){if(i[f]&&!pj(o,i[f]))throw new Error('id "'+f+'" resolves to more than one schema');i[f]=o}else s._refs[f]=g}r[a]=m,n[a]=g}}),i}});var cb=S(($Ye,gj)=>{"use strict";h();var CT=ab();gj.exports={Validation:hj(uxe),MissingRef:hj(wT)};function uxe(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}wT.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function wT(t,e,r){this.message=r||wT.message(t,e),this.missingRef=CT.url(t,e),this.missingSchema=CT.normalizeId(CT.fullPath(this.missingRef))}function hj(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var ST=S((UYe,yj)=>{"use strict";h();yj.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.cmp&&(function(s){return function(o){return function(a,c){var u={key:a,value:o[a]},l={key:c,value:o[c]};return s(u,l)}}})(e.cmp),i=[];return(function s(o){if(o&&o.toJSON&&typeof o.toJSON=="function"&&(o=o.toJSON()),o!==void 0){if(typeof o=="number")return isFinite(o)?""+o:"null";if(typeof o!="object")return JSON.stringify(o);var a,c;if(Array.isArray(o)){for(c="[",a=0;a<o.length;a++)a&&(c+=","),c+=s(o[a])||"null";return c+"]"}if(o===null)return"null";if(i.indexOf(o)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(o)-1,l=Object.keys(o).sort(n&&n(o));for(c="",a=0;a<l.length;a++){var p=l[a],d=s(o[p]);d&&(c&&(c+=","),c+=JSON.stringify(p)+":"+d)}return i.splice(u,1),"{"+c+"}"}})(t)}});var TT=S((zYe,vj)=>{"use strict";h();vj.exports=function(e,r,n){var i="",s=e.schema.$async===!0,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var c=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(c){var u="unknown keyword: "+c;if(e.opts.strictKeywords==="log")e.logger.warn(u);else throw new Error(u)}}if(e.isTop&&(i+=" var validate = ",s&&(e.async=!0,i+="async "),i+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(i+=" "+("/*# sourceURL="+a+" */")+" ")),typeof e.schema=="boolean"||!(o||e.schema.$ref)){var r="false schema",l=e.level,p=e.dataLevel,d=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,b=!e.opts.allErrors,F,g="data"+(p||""),x="valid"+l;if(e.schema===!1){e.isTop?b=!0:i+=" var "+x+" = false; ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(F||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&b?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?s?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+x+" = true; ";return e.isTop&&(i+=" }; return validate; "),i}if(e.isTop){var E=e.isTop,l=e.level=0,p=e.dataLevel=0,g="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var D="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(D);else throw new Error(D)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var l=e.level,p=e.dataLevel,g="data"+(p||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),s&&!e.async)throw new Error("async schema in sync schema");i+=" var errs_"+l+" = errors;"}var x="valid"+l,b=!e.opts.allErrors,C="",w="",F,P=e.schema.type,_=Array.isArray(P);if(P&&e.opts.nullable&&e.schema.nullable===!0&&(_?P.indexOf("null")==-1&&(P=P.concat("null")):P!="null"&&(P=[P,"null"],_=!0)),_&&P.length==1&&(P=P[0],_=!1),e.schema.$ref&&o){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(i+=" "+e.RULES.all.$comment.code(e,"$comment")),P){if(e.opts.coerceTypes)var A=e.util.coerceToTypes(e.opts.coerceTypes,P);var z=e.RULES.types[P];if(A||_||z===!0||z&&!se(z)){var f=e.schemaPath+".type",m=e.errSchemaPath+"/type",f=e.schemaPath+".type",m=e.errSchemaPath+"/type",O=_?"checkDataTypes":"checkDataType";if(i+=" if ("+e.util[O](P,g,e.opts.strictNumbers,!0)+") { ",A){var U="dataType"+l,k="coerced"+l;i+=" var "+U+" = typeof "+g+"; var "+k+" = undefined; ",e.opts.coerceTypes=="array"&&(i+=" if ("+U+" == 'object' && Array.isArray("+g+") && "+g+".length == 1) { "+g+" = "+g+"[0]; "+U+" = typeof "+g+"; if ("+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+") "+k+" = "+g+"; } "),i+=" if ("+k+" !== undefined) ; ";var R=A;if(R)for(var $,G=-1,Z=R.length-1;G<Z;)$=R[G+=1],$=="string"?i+=" else if ("+U+" == 'number' || "+U+" == 'boolean') "+k+" = '' + "+g+"; else if ("+g+" === null) "+k+" = ''; ":$=="number"||$=="integer"?(i+=" else if ("+U+" == 'boolean' || "+g+" === null || ("+U+" == 'string' && "+g+" && "+g+" == +"+g+" ",$=="integer"&&(i+=" && !("+g+" % 1)"),i+=")) "+k+" = +"+g+"; "):$=="boolean"?i+=" else if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+k+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+k+" = true; ":$=="null"?i+=" else if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+k+" = null; ":e.opts.coerceTypes=="array"&&$=="array"&&(i+=" else if ("+U+" == 'string' || "+U+" == 'number' || "+U+" == 'boolean' || "+g+" == null) "+k+" = ["+g+"]; ");i+=" else { ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(F||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",_?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",_?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&b?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+k+" !== undefined) { ";var j=p?"data"+(p-1||""):"parentData",K=p?e.dataPathArr[p]:"parentDataProperty";i+=" "+g+" = "+k+"; ",p||(i+="if ("+j+" !== undefined)"),i+=" "+j+"["+K+"] = "+k+"; } "}else{var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(F||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",_?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",_?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&b?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(e.schema.$ref&&!o)i+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",b&&(i+=" } if (errors === ",E?i+="0":i+="errs_"+l,i+=") { ",w+="}");else{var Q=e.RULES;if(Q){for(var z,ue=-1,de=Q.length-1;ue<de;)if(z=Q[ue+=1],se(z)){if(z.type&&(i+=" if ("+e.util.checkDataType(z.type,g,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(z.type=="object"&&e.schema.properties){var d=e.schema.properties,fe=Object.keys(d),oe=fe;if(oe)for(var Ge,rt=-1,ce=oe.length-1;rt<ce;){Ge=oe[rt+=1];var Se=d[Ge];if(Se.default!==void 0){var re=g+e.util.getProperty(Ge);if(e.compositeRule){if(e.opts.strictDefaults){var D="default is ignored for: "+re;if(e.opts.strictDefaults==="log")e.logger.warn(D);else throw new Error(D)}}else i+=" if ("+re+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+re+" === null || "+re+" === '' "),i+=" ) "+re+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Se.default)+" ":i+=" "+JSON.stringify(Se.default)+" ",i+="; "}}}else if(z.type=="array"&&Array.isArray(e.schema.items)){var Fe=e.schema.items;if(Fe){for(var Se,G=-1,V=Fe.length-1;G<V;)if(Se=Fe[G+=1],Se.default!==void 0){var re=g+"["+G+"]";if(e.compositeRule){if(e.opts.strictDefaults){var D="default is ignored for: "+re;if(e.opts.strictDefaults==="log")e.logger.warn(D);else throw new Error(D)}}else i+=" if ("+re+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+re+" === null || "+re+" === '' "),i+=" ) "+re+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Se.default)+" ":i+=" "+JSON.stringify(Se.default)+" ",i+="; "}}}}var te=z.rules;if(te){for(var pe,Ce=-1,De=te.length-1;Ce<De;)if(pe=te[Ce+=1],Ee(pe)){var je=pe.code(e,pe.keyword,z.type);je&&(i+=" "+je+" ",b&&(C+="}"))}}if(b&&(i+=" "+C+" ",C=""),z.type&&(i+=" } ",P&&P===z.type&&!A)){i+=" else { ";var f=e.schemaPath+".type",m=e.errSchemaPath+"/type",y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(F||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",_?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",_?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&b?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}b&&(i+=" if (errors === ",E?i+="0":i+="errs_"+l,i+=") { ",w+="}")}}}b&&(i+=" "+w+" "),E?(s?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+x+" = errors === errs_"+l+";";function se(ge){for(var at=ge.rules,ke=0;ke<at.length;ke++)if(Ee(at[ke]))return!0}function Ee(ge){return e.schema[ge.keyword]!==void 0||ge.implements&&Pe(ge)}function Pe(ge){for(var at=ge.implements,ke=0;ke<at.length;ke++)if(e.schema[at[ke]]!==void 0)return!0}return i}});var Cj=S((HYe,Ej)=>{"use strict";h();var ub=ab(),pb=Du(),xj=cb(),lxe=ST(),bj=TT(),pxe=pb.ucs2length,dxe=eb(),fxe=xj.Validation;Ej.exports=PT;function PT(t,e,r,n){var i=this,s=this._opts,o=[void 0],a={},c=[],u={},l=[],p={},d=[];e=e||{schema:t,refVal:o,refs:a};var f=mxe.call(this,t,e,n),m=this._compilations[f.index];if(f.compiling)return m.callValidate=D;var g=this._formats,y=this.RULES;try{var v=x(t,e,r,n);m.validate=v;var E=m.callValidate;return E&&(E.schema=v.schema,E.errors=null,E.refs=v.refs,E.refVal=v.refVal,E.root=v.root,E.$async=v.$async,s.sourceCode&&(E.source=v.source)),v}finally{hxe.call(this,t,e,n)}function D(){var O=m.validate,U=O.apply(this,arguments);return D.errors=O.errors,U}function x(O,U,k,R){var $=!U||U&&U.schema==O;if(U.schema!=e.schema)return PT.call(i,O,U,k,R);var G=O.$async===!0,Z=bj({isTop:!0,schema:O,isRoot:$,baseId:R,root:U,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:xj.MissingRef,RULES:y,validate:bj,util:pb,resolve:ub,resolveRef:b,usePattern:_,useDefault:A,useCustomRule:z,opts:s,formats:g,logger:i.logger,self:i});Z=lb(o,vxe)+lb(c,gxe)+lb(l,yxe)+lb(d,bxe)+Z,s.processCode&&(Z=s.processCode(Z,O));var j;try{var K=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",Z);j=K(i,y,g,e,o,l,d,dxe,pxe,fxe),o[0]=j}catch(Q){throw i.logger.error("Error compiling schema, function code:",Z),Q}return j.schema=O,j.errors=null,j.refs=a,j.refVal=o,j.root=$?j:U,G&&(j.$async=!0),s.sourceCode===!0&&(j.source={code:Z,patterns:c,defaults:l}),j}function b(O,U,k){U=ub.url(O,U);var R=a[U],$,G;if(R!==void 0)return $=o[R],G="refVal["+R+"]",P($,G);if(!k&&e.refs){var Z=e.refs[U];if(Z!==void 0)return $=e.refVal[Z],G=C(U,$),P($,G)}G=C(U);var j=ub.call(i,x,e,U);if(j===void 0){var K=r&&r[U];K&&(j=ub.inlineRef(K,s.inlineRefs)?K:PT.call(i,K,e,r,O))}if(j===void 0)w(U);else return F(U,j),P(j,G)}function C(O,U){var k=o.length;return o[k]=U,a[O]=k,"refVal"+k}function w(O){delete a[O]}function F(O,U){var k=a[O];o[k]=U}function P(O,U){return typeof O=="object"||typeof O=="boolean"?{code:U,schema:O,inline:!0}:{code:U,$async:O&&!!O.$async}}function _(O){var U=u[O];return U===void 0&&(U=u[O]=c.length,c[U]=O),"pattern"+U}function A(O){switch(typeof O){case"boolean":case"number":return""+O;case"string":return pb.toQuotedString(O);case"object":if(O===null)return"null";var U=lxe(O),k=p[U];return k===void 0&&(k=p[U]=l.length,l[k]=O),"default"+k}}function z(O,U,k,R){if(i._opts.validateSchema!==!1){var $=O.definition.dependencies;if($&&!$.every(function(oe){return Object.prototype.hasOwnProperty.call(k,oe)}))throw new Error("parent schema must have all required keywords: "+$.join(","));var G=O.definition.validateSchema;if(G){var Z=G(U);if(!Z){var j="keyword schema is invalid: "+i.errorsText(G.errors);if(i._opts.validateSchema=="log")i.logger.error(j);else throw new Error(j)}}}var K=O.definition.compile,Q=O.definition.inline,ue=O.definition.macro,de;if(K)de=K.call(i,U,k,R);else if(ue)de=ue.call(i,U,k,R),s.validateSchema!==!1&&i.validateSchema(de,!0);else if(Q)de=Q.call(i,R,O.keyword,U,k);else if(de=O.definition.validate,!de)return;if(de===void 0)throw new Error('custom keyword "'+O.keyword+'"failed to compile');var fe=d.length;return d[fe]=de,{code:"customRule"+fe,validate:de}}}function mxe(t,e,r){var n=Dj.call(this,t,e,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:t,root:e,baseId:r},{index:n,compiling:!1})}function hxe(t,e,r){var n=Dj.call(this,t,e,r);n>=0&&this._compilations.splice(n,1)}function Dj(t,e,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==t&&i.root==e&&i.baseId==r)return n}return-1}function gxe(t,e){return"var pattern"+t+" = new RegExp("+pb.toQuotedString(e[t])+");"}function yxe(t){return"var default"+t+" = defaults["+t+"];"}function vxe(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function bxe(t){return"var customRule"+t+" = customRules["+t+"];"}function lb(t,e){if(!t.length)return"";for(var r="",n=0;n<t.length;n++)r+=e(n,t);return r}});var Sj=S((KYe,wj)=>{"use strict";h();var db=wj.exports=function(){this._cache={}};db.prototype.put=function(e,r){this._cache[e]=r};db.prototype.get=function(e){return this._cache[e]};db.prototype.del=function(e){delete this._cache[e]};db.prototype.clear=function(){this._cache={}}});var Mj=S((JYe,Bj)=>{"use strict";h();var xxe=Du(),Dxe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Exe=[0,31,28,31,30,31,30,31,31,30,31,30,31],Cxe=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Tj=/^(?=.{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,wxe=/^(?:[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,Sxe=/^(?:[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,Pj=/^(?:(?:[^\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,Aj=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,_j=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Fj=/^(?:\/(?:[^~/]|~0|~1)*)*$/,kj=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Ij=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Bj.exports=fb;function fb(t){return t=t=="full"?"full":"fast",xxe.copy(fb[t])}fb.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\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,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Pj,url:Aj,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,hostname:Tj,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[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}))|:)))(?:%.+)?\s*$/i,regex:Oj,uuid:_j,"json-pointer":Fj,"json-pointer-uri-fragment":kj,"relative-json-pointer":Ij};fb.full={date:Nj,time:Rj,"date-time":Axe,uri:Fxe,"uri-reference":Sxe,"uri-template":Pj,url:Aj,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:Tj,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[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}))|:)))(?:%.+)?\s*$/i,regex:Oj,uuid:_j,"json-pointer":Fj,"json-pointer-uri-fragment":kj,"relative-json-pointer":Ij};function Txe(t){return t%4===0&&(t%100!==0||t%400===0)}function Nj(t){var e=t.match(Dxe);if(!e)return!1;var r=+e[1],n=+e[2],i=+e[3];return n>=1&&n<=12&&i>=1&&i<=(n==2&&Txe(r)?29:Exe[n])}function Rj(t,e){var r=t.match(Cxe);if(!r)return!1;var n=r[1],i=r[2],s=r[3],o=r[5];return(n<=23&&i<=59&&s<=59||n==23&&i==59&&s==60)&&(!e||o)}var Pxe=/t|\s/i;function Axe(t){var e=t.split(Pxe);return e.length==2&&Nj(e[0])&&Rj(e[1],!0)}var _xe=/\/|:/;function Fxe(t){return _xe.test(t)&&wxe.test(t)}var kxe=/[^\\]\\Z/;function Oj(t){if(kxe.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var $j=S((XYe,Lj)=>{"use strict";h();Lj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+s,d,f;if(a=="#"||a=="#/")e.isRoot?(d=e.async,f="validate"):(d=e.root.schema.$async===!0,f="root.refVal[0]");else{var m=e.resolveRef(e.baseId,a,e.isRoot);if(m===void 0){var g=e.MissingRefError.message(e.baseId,a);if(e.opts.missingRefs=="fail"){e.logger.error(g);var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(a)+"' } ",e.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(a)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(a)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),i+=" } "):i+=" {} ";var v=i;i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(i+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(g),u&&(i+=" if (true) { ");else throw new e.MissingRefError(e.baseId,a,g)}else if(m.inline){var E=e.util.copy(e);E.level++;var D="valid"+E.level;E.schema=m.schema,E.schemaPath="",E.errSchemaPath=a;var x=e.validate(E).replace(/validate\.schema/g,m.code);i+=" "+x+" ",u&&(i+=" if ("+D+") { ")}else d=m.$async===!0||e.async&&m.$async!==!1,f=m.code}if(f){var y=y||[];y.push(i),i="",e.opts.passContext?i+=" "+f+".call(this, ":i+=" "+f+"( ",i+=" "+l+", (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var b=o?"data"+(o-1||""):"parentData",C=o?e.dataPathArr[o]:"parentDataProperty";i+=" , "+b+" , "+C+", rootData) ";var w=i;if(i=y.pop(),d){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(i+=" var "+p+"; "),i+=" try { await "+w+"; ",u&&(i+=" "+p+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(i+=" "+p+" = false; "),i+=" } ",u&&(i+=" if ("+p+") { ")}else i+=" if (!"+w+") { if (vErrors === null) vErrors = "+f+".errors; else vErrors = vErrors.concat("+f+".errors); errors = vErrors.length; } ",u&&(i+=" else { ")}return i}});var Uj=S((ZYe,jj)=>{"use strict";h();jj.exports=function(e,r,n){var i=" ",s=e.schema[r],o=e.schemaPath+e.util.getProperty(r),a=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u=e.util.copy(e),l="";u.level++;var p="valid"+u.level,d=u.baseId,f=!0,m=s;if(m)for(var g,y=-1,v=m.length-1;y<v;)g=m[y+=1],(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all))&&(f=!1,u.schema=g,u.schemaPath=o+"["+y+"]",u.errSchemaPath=a+"/"+y,i+=" "+e.validate(u)+" ",u.baseId=d,c&&(i+=" if ("+p+") { ",l+="}"));return c&&(f?i+=" if (true) { ":i+=" "+l.slice(0,-1)+" "),i}});var zj=S((tXe,qj)=>{"use strict";h();qj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f="errs__"+s,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,v=a.every(function(F){return e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all)});if(v){var E=m.baseId;i+=" var "+f+" = errors; var "+d+" = false; ";var D=e.compositeRule;e.compositeRule=m.compositeRule=!0;var x=a;if(x)for(var b,C=-1,w=x.length-1;C<w;)b=x[C+=1],m.schema=b,m.schemaPath=c+"["+C+"]",m.errSchemaPath=u+"/"+C,i+=" "+e.validate(m)+" ",m.baseId=E,i+=" "+d+" = "+d+" || "+y+"; if (!"+d+") { ",g+="}";e.compositeRule=m.compositeRule=D,i+=" "+g+" if (!"+d+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else l&&(i+=" if (true) { ");return i}});var Hj=S((nXe,Gj)=>{"use strict";h();Gj.exports=function(e,r,n){var i=" ",s=e.schema[r],o=e.errSchemaPath+"/"+r,a=!e.opts.allErrors,c=e.util.toQuotedString(s);return e.opts.$comment===!0?i+=" console.log("+c+");":typeof e.opts.$comment=="function"&&(i+=" self._opts.$comment("+c+", "+e.util.toQuotedString(o)+", validate.root.schema);"),i}});var Kj=S((sXe,Vj)=>{"use strict";h();Vj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f=e.opts.$data&&a&&a.$data,m;f?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",m="schema"+s):m=a,f||(i+=" var schema"+s+" = validate.schema"+c+";"),i+="var "+d+" = equal("+p+", schema"+s+"); if (!"+d+") { ";var g=g||[];g.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+s+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var y=i;return i=g.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",l&&(i+=" else { "),i}});var Jj=S((aXe,Wj)=>{"use strict";h();Wj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f="errs__"+s,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,v="i"+s,E=m.dataLevel=e.dataLevel+1,D="data"+E,x=e.baseId,b=e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all);if(i+="var "+f+" = errors;var "+d+";",b){var C=e.compositeRule;e.compositeRule=m.compositeRule=!0,m.schema=a,m.schemaPath=c,m.errSchemaPath=u,i+=" var "+y+" = false; for (var "+v+" = 0; "+v+" < "+p+".length; "+v+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var w=p+"["+v+"]";m.dataPathArr[E]=v;var F=e.validate(m);m.baseId=x,e.util.varOccurences(F,D)<2?i+=" "+e.util.varReplace(F,D,w)+" ":i+=" var "+D+" = "+w+"; "+F+" ",i+=" if ("+y+") break; } ",e.compositeRule=m.compositeRule=C,i+=" "+g+" if (!"+y+") {"}else i+=" if ("+p+".length == 0) {";var P=P||[];P.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should contain a valid item' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var _=i;return i=P.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",b&&(i+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(i+=" } "),i}});var Xj=S((uXe,Yj)=>{"use strict";h();Yj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="errs__"+s,f=e.util.copy(e),m="";f.level++;var g="valid"+f.level,y={},v={},E=e.opts.ownProperties;for(C in a)if(C!="__proto__"){var D=a[C],x=Array.isArray(D)?v:y;x[C]=D}i+="var "+d+" = errors;";var b=e.errorPath;i+="var missing"+s+";";for(var C in v)if(x=v[C],x.length){if(i+=" if ( "+p+e.util.getProperty(C)+" !== undefined ",E&&(i+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(C)+"') "),l){i+=" && ( ";var w=x;if(w)for(var F,P=-1,_=w.length-1;P<_;){F=w[P+=1],P&&(i+=" || ");var A=e.util.getProperty(F),z=p+A;i+=" ( ( "+z+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(F)+"') "),i+=") && (missing"+s+" = "+e.util.toQuotedString(e.opts.jsonPointers?F:A)+") ) "}i+=")) { ";var O="missing"+s,U="' + "+O+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,O,!0):b+" + "+O);var k=k||[];k.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(C)+"', missingProperty: '"+U+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(C)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var R=i;i=k.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var $=x;if($)for(var F,G=-1,Z=$.length-1;G<Z;){F=$[G+=1];var A=e.util.getProperty(F),U=e.util.escapeQuotes(F),z=p+A;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,F,e.opts.jsonPointers)),i+=" if ( "+z+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(F)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(C)+"', missingProperty: '"+U+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(C)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",l&&(m+="}",i+=" else { ")}e.errorPath=b;var j=f.baseId;for(var C in y){var D=y[C];(e.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:e.util.schemaHasRules(D,e.RULES.all))&&(i+=" "+g+" = true; if ( "+p+e.util.getProperty(C)+" !== undefined ",E&&(i+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(C)+"') "),i+=") { ",f.schema=D,f.schemaPath=c+e.util.getProperty(C),f.errSchemaPath=u+"/"+e.util.escapeFragment(C),i+=" "+e.validate(f)+" ",f.baseId=j,i+=" } ",l&&(i+=" if ("+g+") { ",m+="}"))}return l&&(i+=" "+m+" if ("+d+" == errors) {"),i}});var Zj=S((pXe,Qj)=>{"use strict";h();Qj.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f=e.opts.$data&&a&&a.$data,m;f?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",m="schema"+s):m=a;var g="i"+s,y="schema"+s;f||(i+=" var "+y+" = validate.schema"+c+";"),i+="var "+d+";",f&&(i+=" if (schema"+s+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+s+")) "+d+" = false; else {"),i+=""+d+" = false;for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) if (equal("+p+", "+y+"["+g+"])) { "+d+" = true; break; }",f&&(i+=" } "),i+=" if (!"+d+") { ";var v=v||[];v.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+s+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var E=i;return i=v.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+E+"]); ":i+=" validate.errors = ["+E+"]; return false; ":i+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",l&&(i+=" else { "),i}});var tU=S((fXe,eU)=>{"use strict";h();eU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||"");if(e.opts.format===!1)return l&&(i+=" if (true) { "),i;var d=e.opts.$data&&a&&a.$data,f;d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a;var m=e.opts.unknownFormats,g=Array.isArray(m);if(d){var y="format"+s,v="isObject"+s,E="formatType"+s;i+=" var "+y+" = formats["+f+"]; var "+v+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+E+" = "+v+" && "+y+".type || 'string'; if ("+v+") { ",e.async&&(i+=" var async"+s+" = "+y+".async; "),i+=" "+y+" = "+y+".validate; } if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),i+=" (",m!="ignore"&&(i+=" ("+f+" && !"+y+" ",g&&(i+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),i+=") || "),i+=" ("+y+" && "+E+" == '"+n+"' && !(typeof "+y+" == 'function' ? ",e.async?i+=" (async"+s+" ? await "+y+"("+p+") : "+y+"("+p+")) ":i+=" "+y+"("+p+") ",i+=" : "+y+".test("+p+"))))) {"}else{var y=e.formats[a];if(!y){if(m=="ignore")return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(i+=" if (true) { "),i;if(g&&m.indexOf(a)>=0)return l&&(i+=" if (true) { "),i;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var v=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,E=v&&y.type||"string";if(v){var D=y.async===!0;y=y.validate}if(E!=n)return l&&(i+=" if (true) { "),i;if(D){if(!e.async)throw new Error("async format in sync schema");var x="formats"+e.util.getProperty(a)+".validate";i+=" if (!(await "+x+"("+p+"))) { "}else{i+=" if (! ";var x="formats"+e.util.getProperty(a);v&&(x+=".validate"),typeof y=="function"?i+=" "+x+"("+p+") ":i+=" "+x+".test("+p+") ",i+=") { "}}var b=b||[];b.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",d?i+=""+f:i+=""+e.util.toQuotedString(a),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match format "`,d?i+="' + "+f+" + '":i+=""+e.util.escapeQuotes(a),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+e.util.toQuotedString(a),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var C=i;return i=b.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i}});var nU=S((hXe,rU)=>{"use strict";h();rU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f="errs__"+s,m=e.util.copy(e);m.level++;var g="valid"+m.level,y=e.schema.then,v=e.schema.else,E=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),D=v!==void 0&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)),x=m.baseId;if(E||D){var b;m.createErrors=!1,m.schema=a,m.schemaPath=c,m.errSchemaPath=u,i+=" var "+f+" = errors; var "+d+" = true; ";var C=e.compositeRule;e.compositeRule=m.compositeRule=!0,i+=" "+e.validate(m)+" ",m.baseId=x,m.createErrors=!0,i+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=m.compositeRule=C,E?(i+=" if ("+g+") { ",m.schema=e.schema.then,m.schemaPath=e.schemaPath+".then",m.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(m)+" ",m.baseId=x,i+=" "+d+" = "+g+"; ",E&&D?(b="ifClause"+s,i+=" var "+b+" = 'then'; "):b="'then'",i+=" } ",D&&(i+=" else { ")):i+=" if (!"+g+") { ",D&&(m.schema=e.schema.else,m.schemaPath=e.schemaPath+".else",m.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(m)+" ",m.baseId=x,i+=" "+d+" = "+g+"; ",E&&D?(b="ifClause"+s,i+=" var "+b+" = 'else'; "):b="'else'",i+=" } "),i+=" if (!"+d+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+b+" } ",e.opts.messages!==!1&&(i+=` , message: 'should match "' + `+b+` + '" schema' `),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",l&&(i+=" else { ")}else l&&(i+=" if (true) { ");return i}});var sU=S((yXe,iU)=>{"use strict";h();iU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f="errs__"+s,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,v="i"+s,E=m.dataLevel=e.dataLevel+1,D="data"+E,x=e.baseId;if(i+="var "+f+" = errors;var "+d+";",Array.isArray(a)){var b=e.schema.additionalItems;if(b===!1){i+=" "+d+" = "+p+".length <= "+a.length+"; ";var C=u;u=e.errSchemaPath+"/additionalItems",i+=" if (!"+d+") { ";var w=w||[];w.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a.length+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var F=i;i=w.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+F+"]); ":i+=" validate.errors = ["+F+"]; return false; ":i+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u=C,l&&(g+="}",i+=" else { ")}var P=a;if(P){for(var _,A=-1,z=P.length-1;A<z;)if(_=P[A+=1],e.opts.strictKeywords?typeof _=="object"&&Object.keys(_).length>0||_===!1:e.util.schemaHasRules(_,e.RULES.all)){i+=" "+y+" = true; if ("+p+".length > "+A+") { ";var O=p+"["+A+"]";m.schema=_,m.schemaPath=c+"["+A+"]",m.errSchemaPath=u+"/"+A,m.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0),m.dataPathArr[E]=A;var U=e.validate(m);m.baseId=x,e.util.varOccurences(U,D)<2?i+=" "+e.util.varReplace(U,D,O)+" ":i+=" var "+D+" = "+O+"; "+U+" ",i+=" } ",l&&(i+=" if ("+y+") { ",g+="}")}}if(typeof b=="object"&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))){m.schema=b,m.schemaPath=e.schemaPath+".additionalItems",m.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" "+y+" = true; if ("+p+".length > "+a.length+") { for (var "+v+" = "+a.length+"; "+v+" < "+p+".length; "+v+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var O=p+"["+v+"]";m.dataPathArr[E]=v;var U=e.validate(m);m.baseId=x,e.util.varOccurences(U,D)<2?i+=" "+e.util.varReplace(U,D,O)+" ":i+=" var "+D+" = "+O+"; "+U+" ",l&&(i+=" if (!"+y+") break; "),i+=" } } ",l&&(i+=" if ("+y+") { ",g+="}")}}else if(e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all)){m.schema=a,m.schemaPath=c,m.errSchemaPath=u,i+=" for (var "+v+" = 0; "+v+" < "+p+".length; "+v+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var O=p+"["+v+"]";m.dataPathArr[E]=v;var U=e.validate(m);m.baseId=x,e.util.varOccurences(U,D)<2?i+=" "+e.util.varReplace(U,D,O)+" ":i+=" var "+D+" = "+O+"; "+U+" ",l&&(i+=" if (!"+y+") break; "),i+=" }"}return l&&(i+=" "+g+" if ("+f+" == errors) {"),i}});var AT=S((bXe,oU)=>{"use strict";h();oU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,x,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a;var m=r=="maximum",g=m?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[g],v=e.opts.$data&&y&&y.$data,E=m?"<":">",D=m?">":"<",x=void 0;if(!(d||typeof a=="number"||a===void 0))throw new Error(r+" must be number");if(!(v||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(g+" must be number or boolean");if(v){var b=e.util.getData(y.$data,o,e.dataPathArr),C="exclusive"+s,w="exclType"+s,F="exclIsNumber"+s,P="op"+s,_="' + "+P+" + '";i+=" var schemaExcl"+s+" = "+b+"; ",b="schemaExcl"+s,i+=" var "+C+"; var "+w+" = typeof "+b+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var x=g,A=A||[];A.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: '"+g+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var z=i;i=A.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+z+"]); ":i+=" validate.errors = ["+z+"]; return false; ":i+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),i+=" "+w+" == 'number' ? ( ("+C+" = "+f+" === undefined || "+b+" "+E+"= "+f+") ? "+p+" "+D+"= "+b+" : "+p+" "+D+" "+f+" ) : ( ("+C+" = "+b+" === true) ? "+p+" "+D+"= "+f+" : "+p+" "+D+" "+f+" ) || "+p+" !== "+p+") { var op"+s+" = "+C+" ? '"+E+"' : '"+E+"='; ",a===void 0&&(x=g,u=e.errSchemaPath+"/"+g,f=b,d=v)}else{var F=typeof y=="number",_=E;if(F&&d){var P="'"+_+"'";i+=" if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),i+=" ( "+f+" === undefined || "+y+" "+E+"= "+f+" ? "+p+" "+D+"= "+y+" : "+p+" "+D+" "+f+" ) || "+p+" !== "+p+") { "}else{F&&a===void 0?(C=!0,x=g,u=e.errSchemaPath+"/"+g,f=y,D+="="):(F&&(f=Math[m?"min":"max"](y,a)),y===(F?f:!0)?(C=!0,x=g,u=e.errSchemaPath+"/"+g,D+="="):(C=!1,_+="="));var P="'"+_+"'";i+=" if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),i+=" "+p+" "+D+" "+f+" || "+p+" !== "+p+") { "}}x=x||r;var A=A||[];A.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+P+", limit: "+f+", exclusive: "+C+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be "+_+" ",d?i+="' + "+f:i+=""+f+"'"),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var z=i;return i=A.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+z+"]); ":i+=" validate.errors = ["+z+"]; return false; ":i+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i}});var _T=S((DXe,aU)=>{"use strict";h();aU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,g,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;if(d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");var m=r=="maxItems"?">":"<";i+="if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),i+=" "+p+".length "+m+" "+f+") { ";var g=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(g||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxItems"?i+="more":i+="fewer",i+=" than ",d?i+="' + "+f+" + '":i+=""+a,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var v=i;return i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}});var FT=S((CXe,cU)=>{"use strict";h();cU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,g,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;if(d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");var m=r=="maxLength"?">":"<";i+="if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),e.opts.unicode===!1?i+=" "+p+".length ":i+=" ucs2length("+p+") ",i+=" "+m+" "+f+") { ";var g=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(g||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be ",r=="maxLength"?i+="longer":i+="shorter",i+=" than ",d?i+="' + "+f+" + '":i+=""+a,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var v=i;return i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}});var kT=S((SXe,uU)=>{"use strict";h();uU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,g,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;if(d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");var m=r=="maxProperties"?">":"<";i+="if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),i+=" Object.keys("+p+").length "+m+" "+f+") { ";var g=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(g||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxProperties"?i+="more":i+="fewer",i+=" than ",d?i+="' + "+f+" + '":i+=""+a,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var v=i;return i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}});var pU=S((PXe,lU)=>{"use strict";h();lU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;if(d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");i+="var division"+s+";if (",d&&(i+=" "+f+" !== undefined && ( typeof "+f+" != 'number' || "),i+=" (division"+s+" = "+p+" / "+f+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+s+") - division"+s+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+s+" !== parseInt(division"+s+") ",i+=" ) ",d&&(i+=" ) "),i+=" ) { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+f+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",d?i+="' + "+f:i+=""+f+"'"),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}});var fU=S((_Xe,dU)=>{"use strict";h();dU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="errs__"+s,f=e.util.copy(e);f.level++;var m="valid"+f.level;if(e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=c,f.errSchemaPath=u,i+=" var "+d+" = errors; ";var g=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var y;f.opts.allErrors&&(y=f.opts.allErrors,f.opts.allErrors=!1),i+=" "+e.validate(f)+" ",f.createErrors=!0,y&&(f.opts.allErrors=y),e.compositeRule=f.compositeRule=g,i+=" if ("+m+") { ";var v=v||[];v.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var E=i;i=v.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+E+"]); ":i+=" validate.errors = ["+E+"]; return false; ":i+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(i+=" if (false) { ");return i}});var hU=S((kXe,mU)=>{"use strict";h();mU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f="errs__"+s,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,v=m.baseId,E="prevValid"+s,D="passingSchemas"+s;i+="var "+f+" = errors , "+E+" = false , "+d+" = false , "+D+" = null; ";var x=e.compositeRule;e.compositeRule=m.compositeRule=!0;var b=a;if(b)for(var C,w=-1,F=b.length-1;w<F;)C=b[w+=1],(e.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===!1:e.util.schemaHasRules(C,e.RULES.all))?(m.schema=C,m.schemaPath=c+"["+w+"]",m.errSchemaPath=u+"/"+w,i+=" "+e.validate(m)+" ",m.baseId=v):i+=" var "+y+" = true; ",w&&(i+=" if ("+y+" && "+E+") { "+d+" = false; "+D+" = ["+D+", "+w+"]; } else { ",g+="}"),i+=" if ("+y+") { "+d+" = "+E+" = true; "+D+" = "+w+"; }";return e.compositeRule=m.compositeRule=x,i+=""+g+"if (!"+d+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+D+" } ",e.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(i+=" } "),i}});var yU=S((NXe,gU)=>{"use strict";h();gU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d=e.opts.$data&&a&&a.$data,f;d?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+s):f=a;var m=d?"(new RegExp("+f+"))":e.usePattern(a);i+="if ( ",d&&(i+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),i+=" !"+m+".test("+p+") ) { ";var g=g||[];g.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",d?i+=""+f:i+=""+e.util.toQuotedString(a),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,d?i+="' + "+f+" + '":i+=""+e.util.escapeQuotes(a),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",d?i+="validate.schema"+c:i+=""+e.util.toQuotedString(a),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var y=i;return i=g.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}});var bU=S((OXe,vU)=>{"use strict";h();vU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="errs__"+s,f=e.util.copy(e),m="";f.level++;var g="valid"+f.level,y="key"+s,v="idx"+s,E=f.dataLevel=e.dataLevel+1,D="data"+E,x="dataProperties"+s,b=Object.keys(a||{}).filter(G),C=e.schema.patternProperties||{},w=Object.keys(C).filter(G),F=e.schema.additionalProperties,P=b.length||w.length,_=F===!1,A=typeof F=="object"&&Object.keys(F).length,z=e.opts.removeAdditional,O=_||A||z,U=e.opts.ownProperties,k=e.baseId,R=e.schema.required;if(R&&!(e.opts.$data&&R.$data)&&R.length<e.opts.loopRequired)var $=e.util.toHash(R);function G(le){return le!=="__proto__"}if(i+="var "+d+" = errors;var "+g+" = true;",U&&(i+=" var "+x+" = undefined;"),O){if(U?i+=" "+x+" = "+x+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+x+".length; "+v+"++) { var "+y+" = "+x+"["+v+"]; ":i+=" for (var "+y+" in "+p+") { ",P){if(i+=" var isAdditional"+s+" = !(false ",b.length)if(b.length>8)i+=" || validate.schema"+c+".hasOwnProperty("+y+") ";else{var Z=b;if(Z)for(var j,K=-1,Q=Z.length-1;K<Q;)j=Z[K+=1],i+=" || "+y+" == "+e.util.toQuotedString(j)+" "}if(w.length){var ue=w;if(ue)for(var de,fe=-1,oe=ue.length-1;fe<oe;)de=ue[fe+=1],i+=" || "+e.usePattern(de)+".test("+y+") "}i+=" ); if (isAdditional"+s+") { "}if(z=="all")i+=" delete "+p+"["+y+"]; ";else{var Ge=e.errorPath,rt="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),_)if(z)i+=" delete "+p+"["+y+"]; ";else{i+=" "+g+" = false; ";var ce=u;u=e.errSchemaPath+"/additionalProperties";var Se=Se||[];Se.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { additionalProperty: '"+rt+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var re=i;i=Se.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+re+"]); ":i+=" validate.errors = ["+re+"]; return false; ":i+=" var err = "+re+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=ce,l&&(i+=" break; ")}else if(A)if(z=="failing"){i+=" var "+d+" = errors; ";var Fe=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=F,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var V=p+"["+y+"]";f.dataPathArr[E]=y;var te=e.validate(f);f.baseId=k,e.util.varOccurences(te,D)<2?i+=" "+e.util.varReplace(te,D,V)+" ":i+=" var "+D+" = "+V+"; "+te+" ",i+=" if (!"+g+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+p+"["+y+"]; } ",e.compositeRule=f.compositeRule=Fe}else{f.schema=F,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var V=p+"["+y+"]";f.dataPathArr[E]=y;var te=e.validate(f);f.baseId=k,e.util.varOccurences(te,D)<2?i+=" "+e.util.varReplace(te,D,V)+" ":i+=" var "+D+" = "+V+"; "+te+" ",l&&(i+=" if (!"+g+") break; ")}e.errorPath=Ge}P&&(i+=" } "),i+=" } ",l&&(i+=" if ("+g+") { ",m+="}")}var pe=e.opts.useDefaults&&!e.compositeRule;if(b.length){var Ce=b;if(Ce)for(var j,De=-1,je=Ce.length-1;De<je;){j=Ce[De+=1];var se=a[j];if(e.opts.strictKeywords?typeof se=="object"&&Object.keys(se).length>0||se===!1:e.util.schemaHasRules(se,e.RULES.all)){var Ee=e.util.getProperty(j),V=p+Ee,Pe=pe&&se.default!==void 0;f.schema=se,f.schemaPath=c+Ee,f.errSchemaPath=u+"/"+e.util.escapeFragment(j),f.errorPath=e.util.getPath(e.errorPath,j,e.opts.jsonPointers),f.dataPathArr[E]=e.util.toQuotedString(j);var te=e.validate(f);if(f.baseId=k,e.util.varOccurences(te,D)<2){te=e.util.varReplace(te,D,V);var ge=V}else{var ge=D;i+=" var "+D+" = "+V+"; "}if(Pe)i+=" "+te+" ";else{if($&&$[j]){i+=" if ( "+ge+" === undefined ",U&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(j)+"') "),i+=") { "+g+" = false; ";var Ge=e.errorPath,ce=u,at=e.util.escapeQuotes(j);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Ge,j,e.opts.jsonPointers)),u=e.errSchemaPath+"/required";var Se=Se||[];Se.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+at+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+at+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var re=i;i=Se.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+re+"]); ":i+=" validate.errors = ["+re+"]; return false; ":i+=" var err = "+re+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=ce,e.errorPath=Ge,i+=" } else { "}else l?(i+=" if ( "+ge+" === undefined ",U&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(j)+"') "),i+=") { "+g+" = true; } else { "):(i+=" if ("+ge+" !== undefined ",U&&(i+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(j)+"') "),i+=" ) { ");i+=" "+te+" } "}}l&&(i+=" if ("+g+") { ",m+="}")}}if(w.length){var ke=w;if(ke)for(var de,Yt=-1,So=ke.length-1;Yt<So;){de=ke[Yt+=1];var se=C[de];if(e.opts.strictKeywords?typeof se=="object"&&Object.keys(se).length>0||se===!1:e.util.schemaHasRules(se,e.RULES.all)){f.schema=se,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(de),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(de),U?i+=" "+x+" = "+x+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+x+".length; "+v+"++) { var "+y+" = "+x+"["+v+"]; ":i+=" for (var "+y+" in "+p+") { ",i+=" if ("+e.usePattern(de)+".test("+y+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var V=p+"["+y+"]";f.dataPathArr[E]=y;var te=e.validate(f);f.baseId=k,e.util.varOccurences(te,D)<2?i+=" "+e.util.varReplace(te,D,V)+" ":i+=" var "+D+" = "+V+"; "+te+" ",l&&(i+=" if (!"+g+") break; "),i+=" } ",l&&(i+=" else "+g+" = true; "),i+=" } ",l&&(i+=" if ("+g+") { ",m+="}")}}}return l&&(i+=" "+m+" if ("+d+" == errors) {"),i}});var DU=S((MXe,xU)=>{"use strict";h();xU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="errs__"+s,f=e.util.copy(e),m="";f.level++;var g="valid"+f.level;if(i+="var "+d+" = errors;",e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=c,f.errSchemaPath=u;var y="key"+s,v="idx"+s,E="i"+s,D="' + "+y+" + '",x=f.dataLevel=e.dataLevel+1,b="data"+x,C="dataProperties"+s,w=e.opts.ownProperties,F=e.baseId;w&&(i+=" var "+C+" = undefined; "),w?i+=" "+C+" = "+C+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+C+".length; "+v+"++) { var "+y+" = "+C+"["+v+"]; ":i+=" for (var "+y+" in "+p+") { ",i+=" var startErrs"+s+" = errors; ";var P=y,_=e.compositeRule;e.compositeRule=f.compositeRule=!0;var A=e.validate(f);f.baseId=F,e.util.varOccurences(A,b)<2?i+=" "+e.util.varReplace(A,b,P)+" ":i+=" var "+b+" = "+P+"; "+A+" ",e.compositeRule=f.compositeRule=_,i+=" if (!"+g+") { for (var "+E+"=startErrs"+s+"; "+E+"<errors; "+E+"++) { vErrors["+E+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { propertyName: '"+D+"' } ",e.opts.messages!==!1&&(i+=" , message: 'property name \\'"+D+"\\' is invalid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),l&&(i+=" break; "),i+=" } }"}return l&&(i+=" "+m+" if ("+d+" == errors) {"),i}});var CU=S(($Xe,EU)=>{"use strict";h();EU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f=e.opts.$data&&a&&a.$data,m;f?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",m="schema"+s):m=a;var g="schema"+s;if(!f)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],v=a;if(v)for(var E,D=-1,x=v.length-1;D<x;){E=v[D+=1];var b=e.schema.properties[E];b&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))||(y[y.length]=E)}}else var y=a;if(f||y.length){var C=e.errorPath,w=f||y.length>=e.opts.loopRequired,F=e.opts.ownProperties;if(l)if(i+=" var missing"+s+"; ",w){f||(i+=" var "+g+" = validate.schema"+c+"; ");var P="i"+s,_="schema"+s+"["+P+"]",A="' + "+_+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(C,_,e.opts.jsonPointers)),i+=" var "+d+" = true; ",f&&(i+=" if (schema"+s+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+s+")) "+d+" = false; else {"),i+=" for (var "+P+" = 0; "+P+" < "+g+".length; "+P+"++) { "+d+" = "+p+"["+g+"["+P+"]] !== undefined ",F&&(i+=" && Object.prototype.hasOwnProperty.call("+p+", "+g+"["+P+"]) "),i+="; if (!"+d+") break; } ",f&&(i+=" } "),i+=" if (!"+d+") { ";var z=z||[];z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+A+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var O=i;i=z.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var U=y;if(U)for(var k,P=-1,R=U.length-1;P<R;){k=U[P+=1],P&&(i+=" || ");var $=e.util.getProperty(k),G=p+$;i+=" ( ( "+G+" === undefined ",F&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(k)+"') "),i+=") && (missing"+s+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:$)+") ) "}i+=") { ";var _="missing"+s,A="' + "+_+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(C,_,!0):C+" + "+_);var z=z||[];z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+A+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var O=i;i=z.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(w){f||(i+=" var "+g+" = validate.schema"+c+"; ");var P="i"+s,_="schema"+s+"["+P+"]",A="' + "+_+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(C,_,e.opts.jsonPointers)),f&&(i+=" if ("+g+" && !Array.isArray("+g+")) { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+A+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+g+" !== undefined) { "),i+=" for (var "+P+" = 0; "+P+" < "+g+".length; "+P+"++) { if ("+p+"["+g+"["+P+"]] === undefined ",F&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", "+g+"["+P+"]) "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+A+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(i+=" } ")}else{var Z=y;if(Z)for(var k,j=-1,K=Z.length-1;j<K;){k=Z[j+=1];var $=e.util.getProperty(k),A=e.util.escapeQuotes(k),G=p+$;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(C,k,e.opts.jsonPointers)),i+=" if ( "+G+" === undefined ",F&&(i+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(k)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+A+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=C}else l&&(i+=" if (true) {");return i}});var SU=S((UXe,wU)=>{"use strict";h();wU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p="data"+(o||""),d="valid"+s,f=e.opts.$data&&a&&a.$data,m;if(f?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",m="schema"+s):m=a,(a||f)&&e.opts.uniqueItems!==!1){f&&(i+=" var "+d+"; if ("+m+" === false || "+m+" === undefined) "+d+" = true; else if (typeof "+m+" != 'boolean') "+d+" = false; else { "),i+=" var i = "+p+".length , "+d+" = true , j; if (i > 1) { ";var g=e.schema.items&&e.schema.items.type,y=Array.isArray(g);if(!g||g=="object"||g=="array"||y&&(g.indexOf("object")>=0||g.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+d+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var v="checkDataType"+(y?"s":"");i+=" if ("+e.util[v](g,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",f&&(i+=" } "),i+=" if (!"+d+") { ";var E=E||[];E.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+c:i+=""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var D=i;i=E.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { ")}else l&&(i+=" if (true) { ");return i}});var PU=S((zXe,TU)=>{"use strict";h();TU.exports={$ref:$j(),allOf:Uj(),anyOf:zj(),$comment:Hj(),const:Kj(),contains:Jj(),dependencies:Xj(),enum:Zj(),format:tU(),if:nU(),items:sU(),maximum:AT(),minimum:AT(),maxItems:_T(),minItems:_T(),maxLength:FT(),minLength:FT(),maxProperties:kT(),minProperties:kT(),multipleOf:pU(),not:fU(),oneOf:hU(),pattern:yU(),properties:bU(),propertyNames:DU(),required:CU(),uniqueItems:SU(),validate:TT()}});var FU=S((HXe,_U)=>{"use strict";h();var AU=PU(),IT=Du().toHash;_U.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],n=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],i=["number","integer","string","array","object","boolean","null"];return e.all=IT(r),e.types=IT(i),e.forEach(function(s){s.rules=s.rules.map(function(o){var a;if(typeof o=="object"){var c=Object.keys(o)[0];a=o[c],o=c,a.forEach(function(l){r.push(l),e.all[l]=!0})}r.push(o);var u=e.all[o]={keyword:o,code:AU[o],implements:a};return u}),e.all.$comment={keyword:"$comment",code:AU.$comment},s.type&&(e.types[s.type]=s)}),e.keywords=IT(r.concat(n)),e.custom={},e}});var NU=S((KXe,IU)=>{"use strict";h();var kU=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];IU.exports=function(t,e){for(var r=0;r<e.length;r++){t=JSON.parse(JSON.stringify(t));var n=e[r].split("/"),i=t,s;for(s=1;s<n.length;s++)i=i[n[s]];for(s=0;s<kU.length;s++){var o=kU[s],a=i[o];a&&(i[o]={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var BU=S((JXe,OU)=>{"use strict";h();var Ixe=cb().MissingRef;OU.exports=RU;function RU(t,e,r){var n=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(r=e,e=void 0);var i=s(t).then(function(){var a=n._addSchema(t,void 0,e);return a.validate||o(a)});return r&&i.then(function(a){r(null,a)},r),i;function s(a){var c=a.$schema;return c&&!n.getSchema(c)?RU.call(n,{$ref:c},!0):Promise.resolve()}function o(a){try{return n._compile(a)}catch(u){if(u instanceof Ixe)return c(u);throw u}function c(u){var l=u.missingSchema;if(f(l))throw new Error("Schema "+l+" is loaded but "+u.missingRef+" cannot be resolved");var p=n._loadingSchemas[l];return p||(p=n._loadingSchemas[l]=n._opts.loadSchema(l),p.then(d,d)),p.then(function(m){if(!f(l))return s(m).then(function(){f(l)||n.addSchema(m,l,void 0,e)})}).then(function(){return o(a)});function d(){delete n._loadingSchemas[l]}function f(m){return n._refs[m]||n._schemas[m]}}}}});var LU=S((XXe,MU)=>{"use strict";h();MU.exports=function(e,r,n){var i=" ",s=e.level,o=e.dataLevel,a=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,p,d="data"+(o||""),f="valid"+s,m="errs__"+s,g=e.opts.$data&&a&&a.$data,y;g?(i+=" var schema"+s+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",y="schema"+s):y=a;var v=this,E="definition"+s,D=v.definition,x="",b,C,w,F,P;if(g&&D.$data){P="keywordValidate"+s;var _=D.validateSchema;i+=" var "+E+" = RULES.custom['"+r+"'].definition; var "+P+" = "+E+".validate;"}else{if(F=e.useCustomRule(v,a,e.schema,e),!F)return;y="validate.schema"+c,P=F.code,b=D.compile,C=D.inline,w=D.macro}var A=P+".errors",z="i"+s,O="ruleErr"+s,U=D.async;if(U&&!e.async)throw new Error("async keyword in sync schema");if(C||w||(i+=""+A+" = null;"),i+="var "+m+" = errors;var "+f+";",g&&D.$data&&(x+="}",i+=" if ("+y+" === undefined) { "+f+" = true; } else { ",_&&(x+="}",i+=" "+f+" = "+E+".validateSchema("+y+"); if ("+f+") { ")),C)D.statements?i+=" "+F.validate+" ":i+=" "+f+" = "+F.validate+"; ";else if(w){var k=e.util.copy(e),x="";k.level++;var R="valid"+k.level;k.schema=F.validate,k.schemaPath="";var $=e.compositeRule;e.compositeRule=k.compositeRule=!0;var G=e.validate(k).replace(/validate\.schema/g,P);e.compositeRule=k.compositeRule=$,i+=" "+G}else{var Z=Z||[];Z.push(i),i="",i+=" "+P+".call( ",e.opts.passContext?i+="this":i+="self",b||D.schema===!1?i+=" , "+d+" ":i+=" , "+y+" , "+d+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var j=o?"data"+(o-1||""):"parentData",K=o?e.dataPathArr[o]:"parentDataProperty";i+=" , "+j+" , "+K+" , rootData ) ";var Q=i;i=Z.pop(),D.errors===!1?(i+=" "+f+" = ",U&&(i+="await "),i+=""+Q+"; "):U?(A="customErrors"+s,i+=" var "+A+" = null; try { "+f+" = await "+Q+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+A+" = e.errors; else throw e; } "):i+=" "+A+" = null; "+f+" = "+Q+"; "}if(D.modifying&&(i+=" if ("+j+") "+d+" = "+j+"["+K+"];"),i+=""+x,D.valid)l&&(i+=" if (true) { ");else{i+=" if ( ",D.valid===void 0?(i+=" !",w?i+=""+R:i+=""+f):i+=" "+!D.valid+" ",i+=") { ",p=v.keyword;var Z=Z||[];Z.push(i),i="";var Z=Z||[];Z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var ue=i;i=Z.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+ue+"]); ":i+=" validate.errors = ["+ue+"]; return false; ":i+=" var err = "+ue+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var de=i;i=Z.pop(),C?D.errors?D.errors!="full"&&(i+=" for (var "+z+"="+m+"; "+z+"<errors; "+z+"++) { var "+O+" = vErrors["+z+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+O+".schemaPath === undefined) { "+O+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+O+".schema = "+y+"; "+O+".data = "+d+"; "),i+=" } "):D.errors===!1?i+=" "+de+" ":(i+=" if ("+m+" == errors) { "+de+" } else { for (var "+z+"="+m+"; "+z+"<errors; "+z+"++) { var "+O+" = vErrors["+z+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+O+".schemaPath === undefined) { "+O+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+O+".schema = "+y+"; "+O+".data = "+d+"; "),i+=" } } "):w?(i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):D.errors===!1?i+=" "+de+" ":(i+=" if (Array.isArray("+A+")) { if (vErrors === null) vErrors = "+A+"; else vErrors = vErrors.concat("+A+"); errors = vErrors.length; for (var "+z+"="+m+"; "+z+"<errors; "+z+"++) { var "+O+" = vErrors["+z+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+e.errorPath+"; "+O+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(i+=" "+O+".schema = "+y+"; "+O+".data = "+d+"; "),i+=" } } else { "+de+" } "),i+=" } ",l&&(i+=" else { ")}return i}});var NT=S((ZXe,Nxe)=>{Nxe.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var UU=S((eQe,jU)=>{"use strict";h();var $U=NT();jU.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:$U.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:$U.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var zU=S((rQe,qU)=>{"use strict";h();var Rxe=/^[a-z_$][a-z0-9_$-]*$/i,Oxe=LU(),Bxe=UU();qU.exports={add:Mxe,get:Lxe,remove:$xe,validate:RT};function Mxe(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!Rxe.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var n=e.type;if(Array.isArray(n))for(var i=0;i<n.length;i++)o(t,n[i],e);else o(t,n,e);var s=e.metaSchema;s&&(e.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(s,!0))}r.keywords[t]=r.all[t]=!0;function o(a,c,u){for(var l,p=0;p<r.length;p++){var d=r[p];if(d.type==c){l=d;break}}l||(l={type:c,rules:[]},r.push(l));var f={keyword:a,definition:u,custom:!0,code:Oxe,implements:u.implements};l.rules.push(f),r.custom[a]=f}return this}function Lxe(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function $xe(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var r=0;r<e.length;r++)for(var n=e[r].rules,i=0;i<n.length;i++)if(n[i].keyword==t){n.splice(i,1);break}return this}function RT(t,e){RT.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(Bxe,!0);if(r(t))return!0;if(RT.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var GU=S((iQe,jxe)=>{jxe.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var e7=S((sQe,ZU)=>{"use strict";h();var VU=Cj(),Eu=ab(),Uxe=Sj(),KU=bT(),qxe=ST(),zxe=Mj(),Gxe=FU(),WU=NU(),JU=Du();ZU.exports=yr;yr.prototype.validate=Vxe;yr.prototype.compile=Kxe;yr.prototype.addSchema=Wxe;yr.prototype.addMetaSchema=Jxe;yr.prototype.validateSchema=Yxe;yr.prototype.getSchema=Qxe;yr.prototype.removeSchema=e0e;yr.prototype.addFormat=c0e;yr.prototype.errorsText=a0e;yr.prototype._addSchema=t0e;yr.prototype._compile=r0e;yr.prototype.compileAsync=BU();var gb=zU();yr.prototype.addKeyword=gb.add;yr.prototype.getKeyword=gb.get;yr.prototype.removeKeyword=gb.remove;yr.prototype.validateKeyword=gb.validate;var YU=cb();yr.ValidationError=YU.Validation;yr.MissingRefError=YU.MissingRef;yr.$dataMetaSchema=WU;var hb="http://json-schema.org/draft-07/schema",HU=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Hxe=["/properties"];function yr(t){if(!(this instanceof yr))return new yr(t);t=this._opts=JU.copy(t)||{},m0e(this),this._schemas={},this._refs={},this._fragments={},this._formats=zxe(t.format),this._cache=t.cache||new Uxe,this._loadingSchemas={},this._compilations=[],this.RULES=Gxe(),this._getId=n0e(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=qxe),this._metaOpts=f0e(this),t.formats&&p0e(this),t.keywords&&d0e(this),u0e(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),l0e(this)}function Vxe(t,e){var r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error('no schema with key or ref "'+t+'"')}else{var n=this._addSchema(t);r=n.validate||this._compile(n)}var i=r(e);return r.$async!==!0&&(this.errors=r.errors),i}function Kxe(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function Wxe(t,e,r,n){if(Array.isArray(t)){for(var i=0;i<t.length;i++)this.addSchema(t[i],void 0,r,n);return this}var s=this._getId(t);if(s!==void 0&&typeof s!="string")throw new Error("schema id must be string");return e=Eu.normalizeId(e||s),QU(this,e),this._schemas[e]=this._addSchema(t,r,n,!0),this}function Jxe(t,e,r){return this.addSchema(t,e,r,!0),this}function Yxe(t,e){var r=t.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||Xxe(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,t);if(!n&&e){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return n}function Xxe(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(hb)?hb:void 0,t._opts.defaultMeta}function Qxe(t){var e=XU(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return Zxe(this,t)}}function Zxe(t,e){var r=Eu.schema.call(t,{schema:{}},e);if(r){var n=r.schema,i=r.root,s=r.baseId,o=VU.call(t,n,i,void 0,s);return t._fragments[e]=new KU({ref:e,fragment:!0,schema:n,root:i,baseId:s,validate:o}),o}}function XU(t,e){return e=Eu.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function e0e(t){if(t instanceof RegExp)return mb(this,this._schemas,t),mb(this,this._refs,t),this;switch(typeof t){case"undefined":return mb(this,this._schemas),mb(this,this._refs),this._cache.clear(),this;case"string":var e=XU(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var r=this._opts.serialize,n=r?r(t):t;this._cache.del(n);var i=this._getId(t);i&&(i=Eu.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function mb(t,e,r){for(var n in e){var i=e[n];!i.meta&&(!r||r.test(n))&&(t._cache.del(i.cacheKey),delete e[n])}}function t0e(t,e,r,n){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize,s=i?i(t):t,o=this._cache.get(s);if(o)return o;n=n||this._opts.addUsedSchema!==!1;var a=Eu.normalizeId(this._getId(t));a&&n&&QU(this,a);var c=this._opts.validateSchema!==!1&&!e,u;c&&!(u=a&&a==Eu.normalizeId(t.$schema))&&this.validateSchema(t,!0);var l=Eu.ids.call(this,t),p=new KU({id:a,schema:t,localRefs:l,cacheKey:s,meta:r});return a[0]!="#"&&n&&(this._refs[a]=p),this._cache.put(s,p),c&&u&&this.validateSchema(t,!0),p}function r0e(t,e){if(t.compiling)return t.validate=i,i.schema=t.schema,i.errors=null,i.root=e||i,t.schema.$async===!0&&(i.$async=!0),i;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var n;try{n=VU.call(this,t.schema,e,t.localRefs)}catch(s){throw delete t.validate,s}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=n,t.refs=n.refs,t.refVal=n.refVal,t.root=n.root,n;function i(){var s=t.validate,o=s.apply(this,arguments);return i.errors=s.errors,o}}function n0e(t){switch(t.schemaId){case"auto":return o0e;case"id":return i0e;default:return s0e}}function i0e(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function s0e(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function o0e(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function a0e(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var r=e.separator===void 0?", ":e.separator,n=e.dataVar===void 0?"data":e.dataVar,i="",s=0;s<t.length;s++){var o=t[s];o&&(i+=n+o.dataPath+" "+o.message+r)}return i.slice(0,-r.length)}function c0e(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function u0e(t){var e;if(t._opts.$data&&(e=GU(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=NT();t._opts.$data&&(r=WU(r,Hxe)),t.addMetaSchema(r,hb,!0),t._refs["http://json-schema.org/schema"]=hb}}function l0e(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var r in e)t.addSchema(e[r],r)}function p0e(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function d0e(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function QU(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function f0e(t){for(var e=JU.copy(t._opts),r=0;r<HU.length;r++)delete e[HU[r]];return e}function m0e(t){var e=t._opts.logger;if(e===!1)t.logger={log:OT,warn:OT,error:OT};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function OT(){}});var t7,yb,r7=N(()=>{h();Z5();Xv();t7=Y(e7(),1),yb=class extends Qv{constructor(e,r){var n;super(r),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._capabilities=(n=r?.capabilities)!==null&&n!==void 0?n:{},this._ajv=new t7.default}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Q5(this._capabilities,e)}assertCapability(e,r){var n;if(!(!((n=this._serverCapabilities)===null||n===void 0)&&n[e]))throw new Error(`Server does not support ${e} (required for ${r})`)}async connect(e,r){if(await super.connect(e),e.sessionId===void 0)try{let n=await this.request({method:"initialize",params:{protocolVersion:Q1,capabilities:this._capabilities,clientInfo:this._clientInfo}},eT,r);if(n===void 0)throw new Error(`Server sent invalid initialize result: ${n}`);if(!R5.includes(n.protocolVersion))throw new Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(n.protocolVersion),this._instructions=n.instructions,await this.notification({method:"notifications/initialized"})}catch(n){throw this.close(),n}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){var r,n,i,s,o;switch(e){case"logging/setLevel":if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r.logging))throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!(!((n=this._serverCapabilities)===null||n===void 0)&&n.prompts))throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!(!((i=this._serverCapabilities)===null||i===void 0)&&i.resources))throw new Error(`Server does not support resources (required for ${e})`);if(e==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${e})`);break;case"tools/call":case"tools/list":if(!(!((s=this._serverCapabilities)===null||s===void 0)&&s.tools))throw new Error(`Server does not support tools (required for ${e})`);break;case"completion/complete":if(!(!((o=this._serverCapabilities)===null||o===void 0)&&o.completions))throw new Error(`Server does not support completions (required for ${e})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(e){var r;switch(e){case"notifications/roots/list_changed":if(!(!((r=this._capabilities.roots)===null||r===void 0)&&r.listChanged))throw new Error(`Client does not support roots list changed notifications (required for ${e})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){switch(e){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${e})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${e})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${e})`);break;case"ping":break}}async ping(e){return this.request({method:"ping"},xu,e)}async complete(e,r){return this.request({method:"completion/complete",params:e},pT,r)}async setLoggingLevel(e,r){return this.request({method:"logging/setLevel",params:{level:e}},xu,r)}async getPrompt(e,r){return this.request({method:"prompts/get",params:e},uT,r)}async listPrompts(e,r){return this.request({method:"prompts/list",params:e},sT,r)}async listResources(e,r){return this.request({method:"resources/list",params:e},rT,r)}async listResourceTemplates(e,r){return this.request({method:"resources/templates/list",params:e},nT,r)}async readResource(e,r){return this.request({method:"resources/read",params:e},iT,r)}async subscribeResource(e,r){return this.request({method:"resources/subscribe",params:e},xu,r)}async unsubscribeResource(e,r){return this.request({method:"resources/unsubscribe",params:e},xu,r)}async callTool(e,r=Yv,n){let i=await this.request({method:"tools/call",params:e},r,n),s=this.getToolOutputValidator(e.name);if(s){if(!i.structuredContent&&!i.isError)throw new Xi(Yi.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(i.structuredContent)try{if(!s(i.structuredContent))throw new Xi(Yi.InvalidParams,`Structured content does not match the tool's output schema: ${this._ajv.errorsText(s.errors)}`)}catch(o){throw o instanceof Xi?o:new Xi(Yi.InvalidParams,`Failed to validate structured content: ${o instanceof Error?o.message:String(o)}`)}}return i}cacheToolOutputSchemas(e){this._cachedToolOutputValidators.clear();for(let r of e)if(r.outputSchema)try{let n=this._ajv.compile(r.outputSchema);this._cachedToolOutputValidators.set(r.name,n)}catch{}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,r){let n=await this.request({method:"tools/list",params:e},lT,r);return this.cacheToolOutputSchemas(n.tools),n}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}});var a7=S((pQe,o7)=>{h();o7.exports=s7;s7.sync=g0e;var n7=require("fs");function h0e(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function i7(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:h0e(e,r)}function s7(t,e,r){n7.stat(t,function(n,i){r(n,n?!1:i7(i,t,e))})}function g0e(t,e){return i7(n7.statSync(t),t,e)}});var d7=S((fQe,p7)=>{h();p7.exports=u7;u7.sync=y0e;var c7=require("fs");function u7(t,e,r){c7.stat(t,function(n,i){r(n,n?!1:l7(i,e))})}function y0e(t,e){return l7(c7.statSync(t),e)}function l7(t,e){return t.isFile()&&v0e(t,e)}function v0e(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),l=a|c,p=r&u||r&c&&i===o||r&a&&n===s||r&l&&s===0;return p}});var m7=S((gQe,f7)=>{h();var hQe=require("fs"),vb;process.platform==="win32"||global.TESTING_WINDOWS?vb=a7():vb=d7();f7.exports=BT;BT.sync=b0e;function BT(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){BT(t,e||{},function(s,o){s?i(s):n(o)})})}vb(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function b0e(t,e){try{return vb.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var D7=S((vQe,x7)=>{h();var Fp=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",h7=require("path"),x0e=Fp?";":":",g7=m7(),y7=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),v7=(t,e)=>{let r=e.colon||x0e,n=t.match(/\//)||Fp&&t.match(/\\/)?[""]:[...Fp?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=Fp?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Fp?i.split(r):[""];return Fp&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},b7=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=v7(t,e),o=[],a=u=>new Promise((l,p)=>{if(u===n.length)return e.all&&o.length?l(o):p(y7(t));let d=n[u],f=/^".*"$/.test(d)?d.slice(1,-1):d,m=h7.join(f,t),g=!f&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;l(c(g,u,0))}),c=(u,l,p)=>new Promise((d,f)=>{if(p===i.length)return d(a(l+1));let m=i[p];g7(u+m,{pathExt:s},(g,y)=>{if(!g&&y)if(e.all)o.push(u+m);else return d(u+m);return d(c(u,l,p+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},D0e=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=v7(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=h7.join(c,t),l=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let p=0;p<n.length;p++){let d=l+n[p];try{if(g7.sync(d,{pathExt:i}))if(e.all)s.push(d);else return d}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw y7(t)};x7.exports=b7;b7.sync=D0e});var C7=S((xQe,MT)=>{"use strict";h();var E7=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};MT.exports=E7;MT.exports.default=E7});var P7=S((EQe,T7)=>{"use strict";h();var w7=require("path"),E0e=D7(),C0e=C7();function S7(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=E0e.sync(t.command,{path:r[C0e({env:r})],pathExt:e?w7.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=w7.resolve(i?t.options.cwd:"",o)),o}function w0e(t){return S7(t)||S7(t,!0)}T7.exports=w0e});var A7=S((wQe,$T)=>{"use strict";h();var LT=/([()\][%!^"`<>&|;, *?])/g;function S0e(t){return t=t.replace(LT,"^$1"),t}function T0e(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(LT,"^$1"),e&&(t=t.replace(LT,"^$1")),t}$T.exports.command=S0e;$T.exports.argument=T0e});var F7=S((TQe,_7)=>{"use strict";h();_7.exports=/^#!(.*)/});var I7=S((AQe,k7)=>{"use strict";h();var P0e=F7();k7.exports=(t="")=>{let e=t.match(P0e);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var R7=S((FQe,N7)=>{"use strict";h();var jT=require("fs"),A0e=I7();function _0e(t){let r=Buffer.alloc(150),n;try{n=jT.openSync(t,"r"),jT.readSync(n,r,0,150,0),jT.closeSync(n)}catch{}return A0e(r.toString())}N7.exports=_0e});var L7=S((IQe,M7)=>{"use strict";h();var F0e=require("path"),O7=P7(),B7=A7(),k0e=R7(),I0e=process.platform==="win32",N0e=/\.(?:com|exe)$/i,R0e=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function O0e(t){t.file=O7(t);let e=t.file&&k0e(t.file);return e?(t.args.unshift(t.file),t.command=e,O7(t)):t.file}function B0e(t){if(!I0e)return t;let e=O0e(t),r=!N0e.test(e);if(t.options.forceShell||r){let n=R0e.test(e);t.command=F0e.normalize(t.command),t.command=B7.command(t.command),t.args=t.args.map(s=>B7.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function M0e(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:B0e(n)}M7.exports=M0e});var U7=S((RQe,j7)=>{"use strict";h();var UT=process.platform==="win32";function qT(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function L0e(t,e){if(!UT)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=$7(i,e);if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function $7(t,e){return UT&&t===1&&!e.file?qT(e.original,"spawn"):null}function $0e(t,e){return UT&&t===1&&!e.file?qT(e.original,"spawnSync"):null}j7.exports={hookChildProcess:L0e,verifyENOENT:$7,verifyENOENTSync:$0e,notFoundError:qT}});var G7=S((BQe,kp)=>{"use strict";h();var q7=require("child_process"),zT=L7(),GT=U7();function z7(t,e,r){let n=zT(t,e,r),i=q7.spawn(n.command,n.args,n.options);return GT.hookChildProcess(i,n),i}function j0e(t,e,r){let n=zT(t,e,r),i=q7.spawnSync(n.command,n.args,n.options);return i.error=i.error||GT.verifyENOENTSync(i.status,n),i}kp.exports=z7;kp.exports.spawn=z7;kp.exports.sync=j0e;kp.exports._parse=zT;kp.exports._enoent=GT});function U0e(t){return G5.parse(JSON.parse(t))}function H7(t){return JSON.stringify(t)+`
|
|
1854
|
+
`}var bb,V7=N(()=>{h();Xv();bb=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(`
|
|
1855
|
+
`);if(e===-1)return null;let r=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),U0e(r)}clear(){this._buffer=void 0}}});function z0e(){let t={};for(let e of q0e){let r=gm.default.env[e];r!==void 0&&(r.startsWith("()")||(t[e]=r))}return t}function G0e(){return"type"in gm.default}var K7,gm,W7,q0e,xb,J7=N(()=>{h();K7=Y(G7(),1),gm=Y(require("node:process"),1),W7=require("node:stream");V7();q0e=gm.default.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];xb=class{constructor(e){this._abortController=new AbortController,this._readBuffer=new bb,this._stderrStream=null,this._serverParams=e,(e.stderr==="pipe"||e.stderr==="overlapped")&&(this._stderrStream=new W7.PassThrough)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((e,r)=>{var n,i,s,o,a;this._process=(0,K7.default)(this._serverParams.command,(n=this._serverParams.args)!==null&&n!==void 0?n:[],{env:{...z0e(),...this._serverParams.env},stdio:["pipe","pipe",(i=this._serverParams.stderr)!==null&&i!==void 0?i:"inherit"],shell:!1,signal:this._abortController.signal,windowsHide:gm.default.platform==="win32"&&G0e(),cwd:this._serverParams.cwd}),this._process.on("error",c=>{var u,l;if(c.name==="AbortError"){(u=this.onclose)===null||u===void 0||u.call(this);return}r(c),(l=this.onerror)===null||l===void 0||l.call(this,c)}),this._process.on("spawn",()=>{e()}),this._process.on("close",c=>{var u;this._process=void 0,(u=this.onclose)===null||u===void 0||u.call(this)}),(s=this._process.stdin)===null||s===void 0||s.on("error",c=>{var u;(u=this.onerror)===null||u===void 0||u.call(this,c)}),(o=this._process.stdout)===null||o===void 0||o.on("data",c=>{this._readBuffer.append(c),this.processReadBuffer()}),(a=this._process.stdout)===null||a===void 0||a.on("error",c=>{var u;(u=this.onerror)===null||u===void 0||u.call(this,c)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){var e,r;return this._stderrStream?this._stderrStream:(r=(e=this._process)===null||e===void 0?void 0:e.stderr)!==null&&r!==void 0?r:null}get pid(){var e,r;return(r=(e=this._process)===null||e===void 0?void 0:e.pid)!==null&&r!==void 0?r:null}processReadBuffer(){for(var e,r;;)try{let n=this._readBuffer.readMessage();if(n===null)break;(e=this.onmessage)===null||e===void 0||e.call(this,n)}catch(n){(r=this.onerror)===null||r===void 0||r.call(this,n)}}async close(){this._abortController.abort(),this._process=void 0,this._readBuffer.clear()}send(e){return new Promise(r=>{var n;if(!(!((n=this._process)===null||n===void 0)&&n.stdin))throw new Error("Not connected");let i=H7(e);this._process.stdin.write(i)?r():this._process.stdin.once("drain",r)})}}});var Y7=S((GQe,H0e)=>{H0e.exports={name:"dotenv",version:"16.3.2",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://github.com/motdotla/dotenv?sponsor=1",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var eq=S((HQe,Qo)=>{h();var X7=require("fs"),HT=require("path"),V0e=require("os"),K0e=require("crypto"),W0e=Y7(),VT=W0e.version,J0e=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Y0e(t){let e={},r=t.toString();r=r.replace(/\r\n?/mg,`
|
|
1856
1856
|
`);let n;for(;(n=J0e.exec(r))!=null;){let i=n[1],s=n[2]||"";s=s.trim();let o=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(s=s.replace(/\\n/g,`
|
|
1857
|
-
`),s=s.replace(/\\r/g,"\r")),e[i]=s}return e}function X0e(t){let e=
|
|
1857
|
+
`),s=s.replace(/\\r/g,"\r")),e[i]=s}return e}function X0e(t){let e=Z7(t),r=Wr.configDotenv({path:e});if(!r.parsed)throw new Error(`MISSING_DATA: Cannot parse ${e} for an unknown reason`);let n=Q7(t).split(","),i=n.length,s;for(let o=0;o<i;o++)try{let a=n[o].trim(),c=eDe(r,a);s=Wr.decrypt(c.ciphertext,c.key);break}catch(a){if(o+1>=i)throw a}return Wr.parse(s)}function Q0e(t){console.log(`[dotenv@${VT}][INFO] ${t}`)}function Z0e(t){console.log(`[dotenv@${VT}][WARN] ${t}`)}function Db(t){console.log(`[dotenv@${VT}][DEBUG] ${t}`)}function Q7(t){return t&&t.DOTENV_KEY&&t.DOTENV_KEY.length>0?t.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function eDe(t,e){let r;try{r=new URL(e)}catch(a){throw a.code==="ERR_INVALID_URL"?new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development"):a}let n=r.password;if(!n)throw new Error("INVALID_DOTENV_KEY: Missing key part");let i=r.searchParams.get("environment");if(!i)throw new Error("INVALID_DOTENV_KEY: Missing environment part");let s=`DOTENV_VAULT_${i.toUpperCase()}`,o=t.parsed[s];if(!o)throw new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);return{ciphertext:o,key:n}}function Z7(t){let e=HT.resolve(process.cwd(),".env");return t&&t.path&&t.path.length>0&&(e=t.path),e.endsWith(".vault")?e:`${e}.vault`}function tDe(t){return t[0]==="~"?HT.join(V0e.homedir(),t.slice(1)):t}function rDe(t){Q0e("Loading env from encrypted .env.vault");let e=Wr._parseVault(t),r=process.env;return t&&t.processEnv!=null&&(r=t.processEnv),Wr.populate(r,e,t),{parsed:e}}function nDe(t){let e=HT.resolve(process.cwd(),".env"),r="utf8",n=!!(t&&t.debug);t&&(t.path!=null&&(e=tDe(t.path)),t.encoding!=null?r=t.encoding:n&&Db("No encoding is specified. UTF-8 is used by default"));try{let i=Wr.parse(X7.readFileSync(e,{encoding:r})),s=process.env;return t&&t.processEnv!=null&&(s=t.processEnv),Wr.populate(s,i,t),{parsed:i}}catch(i){return n&&Db(`Failed to load ${e} ${i.message}`),{error:i}}}function iDe(t){let e=Z7(t);return Q7(t).length===0?Wr.configDotenv(t):X7.existsSync(e)?Wr._configVault(t):(Z0e(`You set DOTENV_KEY but you are missing a .env.vault file at ${e}. Did you forget to build it?`),Wr.configDotenv(t))}function sDe(t,e){let r=Buffer.from(e.slice(-64),"hex"),n=Buffer.from(t,"base64"),i=n.subarray(0,12),s=n.subarray(-16);n=n.subarray(12,-16);try{let o=K0e.createDecipheriv("aes-256-gcm",r,i);return o.setAuthTag(s),`${o.update(n)}${o.final()}`}catch(o){let a=o instanceof RangeError,c=o.message==="Invalid key length",u=o.message==="Unsupported state or unable to authenticate data";if(a||c){let l="INVALID_DOTENV_KEY: It must be 64 characters long (or more)";throw new Error(l)}else if(u){let l="DECRYPTION_FAILED: Please check your DOTENV_KEY";throw new Error(l)}else throw console.error("Error: ",o.code),console.error("Error: ",o.message),o}}function oDe(t,e,r={}){let n=!!(r&&r.debug),i=!!(r&&r.override);if(typeof e!="object")throw new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");for(let s of Object.keys(e))Object.prototype.hasOwnProperty.call(t,s)?(i===!0&&(t[s]=e[s]),n&&Db(i===!0?`"${s}" is already defined and WAS overwritten`:`"${s}" is already defined and was NOT overwritten`)):t[s]=e[s]}var Wr={configDotenv:nDe,_configVault:rDe,_parseVault:X0e,config:iDe,decrypt:sDe,parse:Y0e,populate:oDe};Qo.exports.configDotenv=Wr.configDotenv;Qo.exports._configVault=Wr._configVault;Qo.exports._parseVault=Wr._parseVault;Qo.exports.config=Wr.config;Qo.exports.decrypt=Wr.decrypt;Qo.exports.parse=Wr.parse;Qo.exports.populate=Wr.populate;Qo.exports=Wr});function ym(t,e){return t.replace(/\$\{([^}]+)\}/g,(r,n)=>e[n]??r)}async function aDe(t,e,r){let n=await import("node:path"),i=n.isAbsolute(e)?e:n.join(r,e);try{if(!t.existsSync(i))return{};let s=(0,nq.config)({path:i});if(s.error)throw s.error;return s.parsed||{}}catch(s){return Wa.captureException(s,{level:"warning",tags:{operation:"load-env-file",envFilePath:i}}),{}}}function cDe(){return new Set}function uDe(t,e){return`mcp__${hn(t).toLowerCase()}__${e}`}async function tq(t,e,r){try{await e.close()}catch(n){Wa.captureException(n,{level:"warning",tags:{operation:"local-mcp-client-cleanup"}})}r&&await vn(t,r)}async function iq(t,e,r,n){let i=cDe(),s=[],o=new Map,a=[],c=[],u=new Set(i);for(let l of t){let p=performance.now(),d,f;try{f=(0,rq.spawn)(l.command,l.args||[],{cwd:r,env:{...process.env,...l.env},stdio:["pipe","pipe","pipe"]}),d=new yb({name:"builderio-devtools",version:"1.0.0"});let m=new xb({command:l.command,args:l.args||[],env:{...process.env,...l.env}}),g=AbortSignal.timeout(5e3),y=n?AbortSignal.any([n,g]):g;await d.connect(m,{signal:y}),s.push({client:d,process:f,status:{status:"ok",protocol:"stdio",connectionDurationMs:performance.now()-p,resolutionDurationMs:0},serverName:l.name,command:l.command})}catch(m){d?await tq(e,d,f):f&&await vn(e,f),s.push({client:void 0,process:void 0,status:{status:"error",message:m instanceof Error?m.message:"Unknown error",connectionDurationMs:performance.now()-p,resolutionDurationMs:0},serverName:l.name,command:l.command}),Wa.captureException(m,{level:"warning",tags:{operation:"local-mcp-connect",serverName:l.name,command:l.command}})}}return await Promise.all(s.map(async l=>{if(!l.client)return;let p=performance.now();try{let d=l.client,f=await d.getServerCapabilities();if(f?.tools){let m=await d.listTools(void 0,{signal:n});if(m.tools)for(let g of m.tools){let y=g.name,v=uDe(l.serverName,y),E=1,D=v;for(;u.has(D);)D=`${v}_${E}`,E++;v=D,u.add(v),o.set(v,{client:l,tool:{...g,name:v},originalName:y}),a.push({...g,name:v,serverName:l.serverName})}}if(f?.resources){let m=await d.listResources(void 0,{signal:n});if(m.resources){let y=(await Promise.all(m.resources.map(async v=>{if(v.mimeType!=="text/plain")return null;let E=await d.readResource(v,{signal:n});return{uri:v.uri,name:v.name,description:v.description,mimeType:v.mimeType,text:E.contents[0]?.text,serverName:l.serverName}}))).filter(v=>v!==null);l.resources=y;for(let v of y)c.push(v)}}}catch(d){l.status.message=d instanceof Error?d.message:"Unknown error",l.status.status="error",Wa.captureException(d,{level:"warning",tags:{operation:"local-mcp-list-tools-resources",serverName:l.serverName}})}finally{l.status.resolutionDurationMs=performance.now()-p}})),a.sort((l,p)=>l.name.localeCompare(p.name)),c.sort((l,p)=>{let d=`${l.serverName}__${l.name}`,f=`${p.serverName}__${p.name}`;return d.localeCompare(f)}),{clients:s,listTools:()=>a,callTool:async(l,p,d)=>{let f=o.get(l);if(!f||!f.client.client)throw new Error(`Tool "${l}" not found in any connected local MCP server`);try{let m=await f.client.client.callTool({name:f.originalName,arguments:p},void 0,{signal:d});return{content:Array.isArray(m.content)?m.content:[],isError:m.isError===!0}}catch(m){throw Wa.captureException(m,{level:"warning",tags:{operation:"local-mcp-call-tool",toolName:l,originalToolName:f.originalName,serverName:f.client.serverName}}),m}},getResources:l=>l?c.filter(p=>p.serverName===l):c,getStatus:()=>{let l={};for(let p of s)l[p.serverName]=p.status;return l},cleanup:async()=>{await Promise.all(s.map(async l=>{l.client?await tq(e,l.client,l.process):l.process&&await vn(e,l.process)}))}}}function lDe(t,e,r,n){let i={...r,...n},s=ym(t.command,i),o=(t.args||[]).map(l=>ym(l,i)),a={};for(let[l,p]of Object.entries(t.env||{}))p!==void 0&&(a[l]=ym(p,i));let c={...n,...a},u=t.envFile?ym(t.envFile,r):void 0;return{name:e,command:s,args:o,env:c,envFile:u}}async function sq(t,e,r){let i=(await import("node:path")).join(e,"mcp.json"),s={...process.env},o=new Map;try{if(t.existsSync(i)){let c=await t.readFile(i);if(c){let u=JSON.parse(c);if(u.mcpServers&&typeof u.mcpServers=="object")for(let[l,p]of Object.entries(u.mcpServers))p.command&&o.set(l,p)}}}catch(c){Wa.captureException(c,{level:"warning",tags:{operation:"load-mcp-config-file",workingDirectory:e}})}if(r?.mcpServers)for(let[c,u]of Object.entries(r.mcpServers))u.command&&o.set(c,u);let a=[];for(let[c,u]of o.entries())try{let l={};if(u.envFile){let d=ym(u.envFile,s);l=await aDe(t,d,e)}let p=lDe(u,c,s,l);a.push(p)}catch(l){Wa.captureException(l,{level:"warning",tags:{operation:"load-mcp-config-server",serverName:c,workingDirectory:e}})}return a}var rq,Wa,nq,oq=N(()=>{"use strict";h();r7();J7();rq=require("child_process"),Wa=Y(require("@sentry/node"),1);jc();nq=Y(eq(),1);Jc()});function pDe(t){return t.replace(/^[ab]\//,"")}function dDe(t){let e=[],r=t.split(`
|
|
1858
1858
|
`).filter(n=>n.trim()!=="");for(let n of r){let i=n.trim();if(i==="")continue;let s=i.split(/\s+/);if(s.length>=2){let o=s[0],a=s.slice(1).join(" "),c;switch(o[0]){case"A":c="create";break;case"D":c="delete";break;case"M":case"R":case"C":case"T":default:c="update";break}e.push({filePath:a,addedLines:0,removedLines:0,action:c,content:void 0,oldContent:void 0})}}return e}function KT(t,e=!1){let r=[],n=t.split(`
|
|
1859
1859
|
`),i=null,s=null,o=null,a=0,c=0,u=[],l=[],p=!1,d=!1;if(e)return dDe(t);for(let f=0;f<n.length;f++){let m=n[f];if(m.startsWith("--- ")||m.startsWith("+++ ")){if(i&&o){let v;p?v="create":d?v="delete":v="update";let E=v==="delete"&&s?s:i;r.push({filePath:E,addedLines:a,removedLines:c,action:v,content:u.length>0?u.join(`
|
|
1860
1860
|
`):void 0,oldContent:l.length>0?l.join(`
|
|
@@ -2292,7 +2292,7 @@ Please see the 3.x to 4.x migration guide for details on how to update your app.
|
|
|
2292
2292
|
`)+`\r
|
|
2293
2293
|
\r
|
|
2294
2294
|
`+r)}function Gu(t,e,r,n,i,s){if(t.listenerCount("wsClientError")){let o=new Error(i);Error.captureStackTrace(o,Gu),t.emit("wsClientError",o,r,e)}else Ah(r,n,i,s)}});var $Q=S((Dut,LQ)=>{h();var uF=class{constructor(e,r,n){this.etaBufferLength=e||100,this.valueBuffer=[n],this.timeBuffer=[r],this.eta="0"}update(e,r,n){this.valueBuffer.push(r),this.timeBuffer.push(e),this.calculate(n-r)}getTime(){return this.eta}calculate(e){let r=this.valueBuffer.length,n=Math.min(this.etaBufferLength,r),i=this.valueBuffer[r-1]-this.valueBuffer[r-n],s=this.timeBuffer[r-1]-this.timeBuffer[r-n],o=i/s;this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);let a=Math.ceil(e/o/1e3);isNaN(a)?this.eta="NULL":isFinite(a)?a>1e7?this.eta="INF":a<0?this.eta=0:this.eta=a:this.eta="INF"}};LQ.exports=uF});var pF=S((Cut,jQ)=>{h();var Vu=require("readline"),lF=class{constructor(e){this.stream=e,this.linewrap=!0,this.dy=0}cursorSave(){this.stream.isTTY&&this.stream.write("\x1B7")}cursorRestore(){this.stream.isTTY&&this.stream.write("\x1B8")}cursor(e){this.stream.isTTY&&(e?this.stream.write("\x1B[?25h"):this.stream.write("\x1B[?25l"))}cursorTo(e=null,r=null){this.stream.isTTY&&Vu.cursorTo(this.stream,e,r)}cursorRelative(e=null,r=null){this.stream.isTTY&&(this.dy=this.dy+r,Vu.moveCursor(this.stream,e,r))}cursorRelativeReset(){this.stream.isTTY&&(Vu.moveCursor(this.stream,0,-this.dy),Vu.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&Vu.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&Vu.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&Vu.clearScreenDown(this.stream)}newline(){this.stream.write(`
|
|
2295
|
-
`),this.dy++}write(e,r=!1){this.linewrap===!0&&r===!1?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("\x1B[?7h"):this.stream.write("\x1B[?7l"))}isTTY(){return this.stream.isTTY===!0}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}};jQ.exports=lF});var qQ=S((Sut,UQ)=>{"use strict";h();UQ.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var GQ=S((Put,zQ)=>{"use strict";h();var jNe=qQ();zQ.exports=t=>typeof t=="string"?t.replace(jNe(),""):t});var VQ=S((_ut,dF)=>{"use strict";h();var HQ=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);dF.exports=HQ;dF.exports.default=HQ});var WQ=S((kut,KQ)=>{"use strict";h();KQ.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var YQ=S((Nut,fF)=>{"use strict";h();var UNe=GQ(),qNe=VQ(),zNe=WQ(),JQ=t=>{if(typeof t!="string"||t.length===0||(t=UNe(t),t.length===0))return 0;t=t.replace(zNe()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=qNe(n)?2:1)}return e};fF.exports=JQ;fF.exports.default=JQ});var mF=S((Out,XQ)=>{h();XQ.exports=function(e,r,n){if(r.autopadding!==!0)return e;function i(s,o){return(r.autopaddingChar+s).slice(-o)}switch(n){case"percentage":return i(e,3);default:return e}}});var hF=S((Mut,QQ)=>{h();QQ.exports=function(e,r){let n=Math.round(e*r.barsize),i=r.barsize-n;return r.barCompleteString.substr(0,n)+r.barGlue+r.barIncompleteString.substr(0,i)}});var gF=S(($ut,ZQ)=>{h();ZQ.exports=function(e,r,n){function i(o){return n?n*Math.round(o/n):o}function s(o){return(r.autopaddingChar+o).slice(-2)}return e>3600?s(Math.floor(e/3600))+"h"+s(i(e%3600/60))+"m":e>60?s(Math.floor(e/60))+"m"+s(i(e%60))+"s":e>10?s(i(e))+"s":s(e)+"s"}});var yF=S((Uut,eZ)=>{h();var GNe=YQ(),HNe=mF(),VNe=hF(),KNe=gF();eZ.exports=function(e,r,n){let i=e.format,s=e.formatTime||KNe,o=e.formatValue||HNe,a=e.formatBar||VNe,c=Math.floor(r.progress*100)+"",u=r.stopTime||Date.now(),l=Math.round((u-r.startTime)/1e3),p=Object.assign({},n,{bar:a(r.progress,e),percentage:o(c,e,"percentage"),total:o(r.total,e,"total"),value:o(r.value,e,"value"),eta:o(r.eta,e,"eta"),eta_formatted:s(r.eta,e,5),duration:o(l,e,"duration"),duration_formatted:s(l,e,1)});i=i.replace(/\{(\w+)\}/g,function(m,g){return typeof p[g]<"u"?p[g]:m});let d=Math.max(0,r.maxWidth-GNe(i)-2),f=Math.floor(d/2);switch(e.align){case"right":i=d>0?" ".repeat(d)+i:i;break;case"center":i=f>0?" ".repeat(f)+i:i;break;case"left":default:break}return i}});var r0=S((zut,tZ)=>{h();function Ht(t,e){return typeof t>"u"||t===null?e:t}tZ.exports={parse:function(e,r){let n={},i=Object.assign({},r,e);return n.throttleTime=1e3/Ht(i.fps,10),n.stream=Ht(i.stream,process.stderr),n.terminal=Ht(i.terminal,null),n.clearOnComplete=Ht(i.clearOnComplete,!1),n.stopOnComplete=Ht(i.stopOnComplete,!1),n.barsize=Ht(i.barsize,40),n.align=Ht(i.align,"left"),n.hideCursor=Ht(i.hideCursor,!1),n.linewrap=Ht(i.linewrap,!1),n.barGlue=Ht(i.barGlue,""),n.barCompleteChar=Ht(i.barCompleteChar,"="),n.barIncompleteChar=Ht(i.barIncompleteChar,"-"),n.format=Ht(i.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),n.formatTime=Ht(i.formatTime,null),n.formatValue=Ht(i.formatValue,null),n.formatBar=Ht(i.formatBar,null),n.etaBufferLength=Ht(i.etaBuffer,10),n.etaAsynchronousUpdate=Ht(i.etaAsynchronousUpdate,!1),n.progressCalculationRelative=Ht(i.progressCalculationRelative,!1),n.synchronousUpdate=Ht(i.synchronousUpdate,!0),n.noTTYOutput=Ht(i.noTTYOutput,!1),n.notTTYSchedule=Ht(i.notTTYSchedule,2e3),n.emptyOnZero=Ht(i.emptyOnZero,!1),n.forceRedraw=Ht(i.forceRedraw,!1),n.autopadding=Ht(i.autopadding,!1),n.gracefulExit=Ht(i.gracefulExit,!1),n},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?Ht(e.autopaddingChar," "):"",e}}});var vF=S((Vut,nZ)=>{h();var rZ=$Q(),WNe=pF(),JNe=yF(),YNe=r0(),XNe=require("events");nZ.exports=class extends XNe{constructor(e){super(),this.options=YNe.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new WNe(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new rZ(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter=typeof this.options.format=="function"?this.options.format:JNe}render(e=!1){let r={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();let n=this.formatter(this.options,r,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=n)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(n),this.terminal.clearRight(),this.lastDrawnString=n,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,r,n){this.value=r||0,this.total=typeof e<"u"&&e>=0?e:100,this.startValue=r||0,this.payload=n||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new rZ(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,r)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,r={}){typeof e=="number"&&(this.value=e,this.eta.update(Date.now(),e,this.total));let n=(typeof e=="object"?e:r)||{};this.emit("update",this.total,this.value);for(let i in n)this.payload[i]=n[i];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,r={}){typeof e=="object"?this.update(this.value+1,e):this.update(this.value+e,r)}getTotal(){return this.total}setTotal(e){typeof e<"u"&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}}});var sZ=S((Jut,iZ)=>{h();var QNe=vF(),ZNe=r0();iZ.exports=class extends QNe{constructor(e,r){super(ZNe.parse(e,r)),this.timer=null,this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,r){this.timer&&(super.update(e,r),this.options.synchronousUpdate&&this.lastRedraw+this.options.throttleTime*2<Date.now()&&this.render())}start(e,r,n){this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),super.start(e,r,n),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}}});var aZ=S((Qut,oZ)=>{h();var eRe=pF(),tRe=vF(),rRe=r0(),nRe=require("events");oZ.exports=class extends nRe{constructor(e,r){super(),this.bars=[],this.options=rRe.parse(e,r),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new eRe(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,r,n,i={}){let s=new tRe(Object.assign({},this.options,{terminal:this.terminal},i));return this.bars.push(s),this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,s.start(e,r,n),this.emit("start")),s}remove(e){let r=this.bars.indexOf(e);return r<0?!1:(this.bars.splice(r,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find(e=>e.isActive)&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}}});var uZ=S((elt,cZ)=>{h();cZ.exports={format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"}});var pZ=S((rlt,lZ)=>{h();lZ.exports={format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var fZ=S((ilt,dZ)=>{h();dZ.exports={format:" \x1B[90m{bar}\x1B[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var hZ=S((olt,mZ)=>{h();mZ.exports={format:" {bar}\u25A0 {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u25A0",barIncompleteChar:" "}});var yZ=S((clt,gZ)=>{h();var iRe=uZ(),sRe=pZ(),oRe=fZ(),aRe=hZ();gZ.exports={legacy:iRe,shades_classic:sRe,shades_grey:oRe,rect:aRe}});var xZ=S((llt,bZ)=>{h();var vZ=sZ(),cRe=aZ(),uRe=yZ(),lRe=yF(),pRe=mF(),dRe=hF(),fRe=gF();bZ.exports={Bar:vZ,SingleBar:vZ,MultiBar:cRe,Presets:uRe,Format:{Formatter:lRe,BarFormat:dRe,ValueFormat:pRe,TimeFormat:fRe}}});var TZ=S((vlt,SZ)=>{h();SZ.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var MRe={};Mh(MRe,{default:()=>BRe});module.exports=Iee(MRe);h();h();try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="daf1236e-c12d-4f78-82ad-ccceb531577f",t._sentryDebugIdIdentifier="sentry-dbid-daf1236e-c12d-4f78-82ad-ccceb531577f")}catch{}h();var see=require("../core/index.cjs"),oee=require("../node/index.cjs"),aee=require("../server/index.cjs"),cee=Y(LF(),1);h();h();var Ib=require("fs/promises");Td();nn();cp();Xt();var ar=Y(mr(),1),Op=require("node:path");Mi();yi();Hr();_r();jc();var mEe="https://cdn.builder.io",Qq=async(t,e)=>{console.log(""),Ct((0,ar.bgCyan)((0,ar.bold)((0,ar.white)(" figma migrate ")))+" "+(0,ar.dim)(Xe));let{builderPrivateKey:r,builderPublicKey:n}=await rr(t,e,{forceSpaceId:e.spaceId,builderPrivateKey:!0,builderPublicKey:!0});await it("figma publish started",{spaceId:n});let i=await Vc(t);if(i.length>0){await it("figma migrate with existing files",{spaceId:n}),L.warning(`${(0,ar.yellow)("This repo already has figma mappings in:")}
|
|
2295
|
+
`),this.dy++}write(e,r=!1){this.linewrap===!0&&r===!1?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("\x1B[?7h"):this.stream.write("\x1B[?7l"))}isTTY(){return this.stream.isTTY===!0}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}};jQ.exports=lF});var qQ=S((Sut,UQ)=>{"use strict";h();UQ.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var GQ=S((Put,zQ)=>{"use strict";h();var jNe=qQ();zQ.exports=t=>typeof t=="string"?t.replace(jNe(),""):t});var VQ=S((_ut,dF)=>{"use strict";h();var HQ=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);dF.exports=HQ;dF.exports.default=HQ});var WQ=S((kut,KQ)=>{"use strict";h();KQ.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var YQ=S((Nut,fF)=>{"use strict";h();var UNe=GQ(),qNe=VQ(),zNe=WQ(),JQ=t=>{if(typeof t!="string"||t.length===0||(t=UNe(t),t.length===0))return 0;t=t.replace(zNe()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=qNe(n)?2:1)}return e};fF.exports=JQ;fF.exports.default=JQ});var mF=S((Out,XQ)=>{h();XQ.exports=function(e,r,n){if(r.autopadding!==!0)return e;function i(s,o){return(r.autopaddingChar+s).slice(-o)}switch(n){case"percentage":return i(e,3);default:return e}}});var hF=S((Mut,QQ)=>{h();QQ.exports=function(e,r){let n=Math.round(e*r.barsize),i=r.barsize-n;return r.barCompleteString.substr(0,n)+r.barGlue+r.barIncompleteString.substr(0,i)}});var gF=S(($ut,ZQ)=>{h();ZQ.exports=function(e,r,n){function i(o){return n?n*Math.round(o/n):o}function s(o){return(r.autopaddingChar+o).slice(-2)}return e>3600?s(Math.floor(e/3600))+"h"+s(i(e%3600/60))+"m":e>60?s(Math.floor(e/60))+"m"+s(i(e%60))+"s":e>10?s(i(e))+"s":s(e)+"s"}});var yF=S((Uut,eZ)=>{h();var GNe=YQ(),HNe=mF(),VNe=hF(),KNe=gF();eZ.exports=function(e,r,n){let i=e.format,s=e.formatTime||KNe,o=e.formatValue||HNe,a=e.formatBar||VNe,c=Math.floor(r.progress*100)+"",u=r.stopTime||Date.now(),l=Math.round((u-r.startTime)/1e3),p=Object.assign({},n,{bar:a(r.progress,e),percentage:o(c,e,"percentage"),total:o(r.total,e,"total"),value:o(r.value,e,"value"),eta:o(r.eta,e,"eta"),eta_formatted:s(r.eta,e,5),duration:o(l,e,"duration"),duration_formatted:s(l,e,1)});i=i.replace(/\{(\w+)\}/g,function(m,g){return typeof p[g]<"u"?p[g]:m});let d=Math.max(0,r.maxWidth-GNe(i)-2),f=Math.floor(d/2);switch(e.align){case"right":i=d>0?" ".repeat(d)+i:i;break;case"center":i=f>0?" ".repeat(f)+i:i;break;case"left":default:break}return i}});var r0=S((zut,tZ)=>{h();function Ht(t,e){return typeof t>"u"||t===null?e:t}tZ.exports={parse:function(e,r){let n={},i=Object.assign({},r,e);return n.throttleTime=1e3/Ht(i.fps,10),n.stream=Ht(i.stream,process.stderr),n.terminal=Ht(i.terminal,null),n.clearOnComplete=Ht(i.clearOnComplete,!1),n.stopOnComplete=Ht(i.stopOnComplete,!1),n.barsize=Ht(i.barsize,40),n.align=Ht(i.align,"left"),n.hideCursor=Ht(i.hideCursor,!1),n.linewrap=Ht(i.linewrap,!1),n.barGlue=Ht(i.barGlue,""),n.barCompleteChar=Ht(i.barCompleteChar,"="),n.barIncompleteChar=Ht(i.barIncompleteChar,"-"),n.format=Ht(i.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),n.formatTime=Ht(i.formatTime,null),n.formatValue=Ht(i.formatValue,null),n.formatBar=Ht(i.formatBar,null),n.etaBufferLength=Ht(i.etaBuffer,10),n.etaAsynchronousUpdate=Ht(i.etaAsynchronousUpdate,!1),n.progressCalculationRelative=Ht(i.progressCalculationRelative,!1),n.synchronousUpdate=Ht(i.synchronousUpdate,!0),n.noTTYOutput=Ht(i.noTTYOutput,!1),n.notTTYSchedule=Ht(i.notTTYSchedule,2e3),n.emptyOnZero=Ht(i.emptyOnZero,!1),n.forceRedraw=Ht(i.forceRedraw,!1),n.autopadding=Ht(i.autopadding,!1),n.gracefulExit=Ht(i.gracefulExit,!1),n},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?Ht(e.autopaddingChar," "):"",e}}});var vF=S((Vut,nZ)=>{h();var rZ=$Q(),WNe=pF(),JNe=yF(),YNe=r0(),XNe=require("events");nZ.exports=class extends XNe{constructor(e){super(),this.options=YNe.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new WNe(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new rZ(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter=typeof this.options.format=="function"?this.options.format:JNe}render(e=!1){let r={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();let n=this.formatter(this.options,r,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=n)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(n),this.terminal.clearRight(),this.lastDrawnString=n,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,r,n){this.value=r||0,this.total=typeof e<"u"&&e>=0?e:100,this.startValue=r||0,this.payload=n||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new rZ(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,r)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,r={}){typeof e=="number"&&(this.value=e,this.eta.update(Date.now(),e,this.total));let n=(typeof e=="object"?e:r)||{};this.emit("update",this.total,this.value);for(let i in n)this.payload[i]=n[i];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,r={}){typeof e=="object"?this.update(this.value+1,e):this.update(this.value+e,r)}getTotal(){return this.total}setTotal(e){typeof e<"u"&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}}});var sZ=S((Jut,iZ)=>{h();var QNe=vF(),ZNe=r0();iZ.exports=class extends QNe{constructor(e,r){super(ZNe.parse(e,r)),this.timer=null,this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,r){this.timer&&(super.update(e,r),this.options.synchronousUpdate&&this.lastRedraw+this.options.throttleTime*2<Date.now()&&this.render())}start(e,r,n){this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),super.start(e,r,n),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}}});var aZ=S((Qut,oZ)=>{h();var eRe=pF(),tRe=vF(),rRe=r0(),nRe=require("events");oZ.exports=class extends nRe{constructor(e,r){super(),this.bars=[],this.options=rRe.parse(e,r),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new eRe(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,r,n,i={}){let s=new tRe(Object.assign({},this.options,{terminal:this.terminal},i));return this.bars.push(s),this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,s.start(e,r,n),this.emit("start")),s}remove(e){let r=this.bars.indexOf(e);return r<0?!1:(this.bars.splice(r,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find(e=>e.isActive)&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}}});var uZ=S((elt,cZ)=>{h();cZ.exports={format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"}});var pZ=S((rlt,lZ)=>{h();lZ.exports={format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var fZ=S((ilt,dZ)=>{h();dZ.exports={format:" \x1B[90m{bar}\x1B[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var hZ=S((olt,mZ)=>{h();mZ.exports={format:" {bar}\u25A0 {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u25A0",barIncompleteChar:" "}});var yZ=S((clt,gZ)=>{h();var iRe=uZ(),sRe=pZ(),oRe=fZ(),aRe=hZ();gZ.exports={legacy:iRe,shades_classic:sRe,shades_grey:oRe,rect:aRe}});var xZ=S((llt,bZ)=>{h();var vZ=sZ(),cRe=aZ(),uRe=yZ(),lRe=yF(),pRe=mF(),dRe=hF(),fRe=gF();bZ.exports={Bar:vZ,SingleBar:vZ,MultiBar:cRe,Presets:uRe,Format:{Formatter:lRe,BarFormat:dRe,ValueFormat:pRe,TimeFormat:fRe}}});var TZ=S((vlt,SZ)=>{h();SZ.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var MRe={};Mh(MRe,{default:()=>BRe});module.exports=Iee(MRe);h();h();try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3607ddfc-5d56-41cd-b672-bda0ffd322ca",t._sentryDebugIdIdentifier="sentry-dbid-3607ddfc-5d56-41cd-b672-bda0ffd322ca")}catch{}h();var see=require("../core/index.cjs"),oee=require("../node/index.cjs"),aee=require("../server/index.cjs"),cee=Y(LF(),1);h();h();var Ib=require("fs/promises");Td();nn();cp();Xt();var ar=Y(mr(),1),Op=require("node:path");Mi();yi();Hr();_r();jc();var mEe="https://cdn.builder.io",Qq=async(t,e)=>{console.log(""),Ct((0,ar.bgCyan)((0,ar.bold)((0,ar.white)(" figma migrate ")))+" "+(0,ar.dim)(Xe));let{builderPrivateKey:r,builderPublicKey:n}=await rr(t,e,{forceSpaceId:e.spaceId,builderPrivateKey:!0,builderPublicKey:!0});await it("figma publish started",{spaceId:n});let i=await Vc(t);if(i.length>0){await it("figma migrate with existing files",{spaceId:n}),L.warning(`${(0,ar.yellow)("This repo already has figma mappings in:")}
|
|
2296
2296
|
|
|
2297
2297
|
${i.map(u=>` - ${(0,Op.relative)(t.getAppRootDir(),u)}`).join(`
|
|
2298
2298
|
`)}
|
|
@@ -4041,7 +4041,7 @@ ${c}`),{success:!1,error:"backup-repo-not-found"};let l=n.repos.find(d=>d.enable
|
|
|
4041
4041
|
${c}`),{success:!1,error:"main-repo-not-found"};if(u.branch!==l.branch)return console.error(`\u274C Backup branch mismatch: ${u.branch} !== ${l.branch}
|
|
4042
4042
|
${c}`),{success:!1,error:"backup-branch-mismatch"};let p=e.workspace?.folders.find(d=>d.backupMetadata)?.backupMetadata;if(p){if(u.branch!==p.check.backup.gitBranchName)return console.error(`\u274C Backup branch mismatch: ${u.branch} !== ${p.check.backup.gitBranchName}
|
|
4043
4043
|
${c}`),{success:!1,error:"backup-branch-mismatch-in-metadata"};if(u.lastCommitHash!==p.check.backup.lastCommitHash)return console.error(`\u274C Backup commit hash mismatch: ${u.lastCommitHash} !== ${p.check.backup.lastCommitHash}
|
|
4044
|
-
${c}`),{success:!1,error:"backup-commit-hash-mismatch-in-metadata"}}return u.lastCommitHash!==l.lastCommitHash?(console.error(`\u274C Backup commit hash mismatch: ${u.lastCommitHash} !== ${l.lastCommitHash}`),{success:!1,error:"backup-commit-hash-mismatch"}):{success:!0}}catch(s){return t.Sentry?.captureException(s,{tags:cF}),{success:!1,error:"error"}}};mv();WT();h();var cs=Y(require("fs"),1),_Q=Y(require("path"),1);Jc();async function FQ(t,e){let r=e.lockFile?.filePath;if(!r)return;let n=e.lockFile?.conflictBehavior;if(!n)return;let i=e.projectId,s=e.branchName,o=e.fusionServerPort;if(cs.existsSync(r)){console.log(`Lock file already exists at: ${r}`);let c=null;try{let u=cs.readFileSync(r,"utf8");c=JSON.parse(u)}catch(u){console.warn("Failed to read existing lock file, treating as corrupted:",u)}switch(n){case"exit":console.error("Another instance may already be running."),c&&(console.error(`Existing process PID: ${c.pid}`),console.error(`Existing process started at: ${new Date(c.createdAt).toISOString()}`)),process.exit(-10);case"replace":console.log("Replacing existing lock file (conflictBehavior: replace)"),c&&console.log(`Previous process PID: ${c.pid}`);break;case"kill":if(console.log("Attempting to kill existing process (conflictBehavior: kill)"),c){if(c.pid===process.pid){console.log("Skipping kill, same process");break}console.log(`Attempting to kill process ${c.pid}...`),await vn(t,c.pid)||(console.error(`Failed to kill process ${c.pid}, exiting...`),process.exit(-10)),console.log(`Process ${c.pid} terminated successfully`)}else console.log("Could not read PID from lock file, replacing lock file anyway");break}}let a={cwd:process.cwd(),projectId:i,branchId:s,pid:process.pid,createdAt:Date.now(),port:o};try{let c=_Q.dirname(r);cs.existsSync(c)||cs.mkdirSync(c,{recursive:!0}),cs.writeFileSync(r,JSON.stringify(a,null,2),"utf8"),console.log(`Lock file created at: ${r}`);let u=!1,l=()=>{if(!u){try{cs.existsSync(r)&&(cs.unlinkSync(r),console.log(`Lock file removed: ${r}`))}catch(p){console.error(`Failed to remove lock file at ${r}:`,p)}u=!0}};process.on("exit",l),process.on("SIGINT",l),process.on("SIGTERM",l),process.on("uncaughtException",l),process.on("unhandledRejection",l)}catch(c){throw console.error(`Failed to create lock file at ${r}:`,c),c}}var FNe=48752;async function kNe(t){return new Promise(e=>{let r=OQ.createServer();r.listen(t,()=>{r.once("close",()=>{e(!0)}),r.close()}),r.on("error",()=>{e(!1)})})}async function kQ(t){let e=t,r=100;for(let n=0;n<r;n++){if(await kNe(e))return e;e=Math.floor(Math.random()*16384)+49152}throw new Error(`Could not find an available port after ${r} attempts`)}async function INe(t,e){let r=parseInt(process.env.FUSION_SERVER_PORT??""),n=isNaN(r)?FNe:r,i,s=t.fusionServerPort;if(s!==void 0)i=s,L.info(`\u{1F50D} Using configured HTTP port: ${i}`);else{let a=e;i=n,a&&(i=await kQ(n),i!==n&&L.info(`\u26A0\uFE0F Port ${n} is in use, using port ${i} instead`))}if(!t.https)return{httpPort:i};let o=t.httpsServerOptions?.port??await kQ(i+1);return{httpPort:i,httpsPort:o}}function IQ(t,e,r){if(t.jsonOutput){let n={type:"server_error",data:{error:e,details:r,timestamp:Date.now()}};console.log(JSON.stringify(n))}}var xd;async function MQ({sys:t,args:e}){let r=process.env.FLY_APP_NAME?{flyAppName:process.env.FLY_APP_NAME,flyMachineId:process.env.FLY_MACHINE_ID,flyRegion:process.env.FLY_REGION,flyPublicIp:process.env.FLY_PUBLIC_IP,flyVmMemoryMb:process.env.FLY_VM_MEMORY_MB,flyPrimaryRegion:process.env.PRIMARY_REGION}:void 0;r&&(t.Sentry?.setContext("flyIo",r),t.Sentry?.getCurrentScope().setContext("flyIo",r)),Ct((0,Ti.bgCyan)((0,Ti.bold)((0,Ti.white)(" fusion ")))+" "+(0,Ti.dim)(Xe));let n=await Tb(t,e);Aq(t,n),await FQ(t,n);let i=await NNe(t,e,n),s=performance.now(),o="initial",a={status:"ok",get state(){return o},set state(b){o!==b&&n.projectId&&n.branchName&&n1(t,i,{projectId:n.projectId,branchName:n.branchName,lastServerVersion:Xe,lastServerState:b}),o=b},isFinalState:!1,editorReady:!1,initState:void 0,setupState:void 0,devState:void 0,httpServerState:void 0,errorMessage:void 0,devToolsVersion:Xe,lastRequestTime:s,startTime:s},c;t.Sentry?.setContext("fusionConfig",{...n}),t.Sentry?.getCurrentScope().setContext("fusionConfig",{...n});let{app:u,proxyUrl:l,server:p,httpsServer:d,httpsProxyUrl:f,customHttpsProxyUrl:m}=await RNe(i,n,a,t,e),g=SQ(t,i,n,a);g&&g.start();let y=$Ne(t,n,r),v=!1,E=!1,D=!1,x=b=>async()=>{if(console.log(`\u{1F50D} Received ${b} signal`),a.state==="init-running"){console.log("\u{1F50D} Init is running, skipping"),D=!0;return}if(v){console.log("\u{1F50D} Server already closing, skipping");return}a.state="closing",v=!0,setTimeout(()=>{v=!1},1e3),console.log("\u{1F50D} Closing server gracefully");try{p.closeAllConnections(),d&&d.closeAllConnections(),y(),g&&(g.stop(),g=null);let C=[new Promise(w=>p.close(w))];if(d&&C.push(new Promise(w=>d.close(w))),await Promise.race([Promise.all(C),new Promise(w=>setTimeout(w,1e3))]),c&&(await c.close(),c=void 0),!E&&a.initState?.success){E=!0;let w=await Hu();a.state="closing",w&&(console.log("\u{1F50D} Closing codeGenServer"),await w.close(!!n.autoBackupGit),xd=void 0)}await t.Sentry?.flush(2e3),await BQ.flush().promise,process.exit(0)}catch(C){t.Sentry?.captureException(C);let w=C instanceof Error?C.message:String(C);L.error(`\u274C FAILED TO CLOSE SERVER: ${w}`),process.exit(1)}};if(wQ(),process.on("SIGTERM",x("SIGTERM")),process.on("SIGINT",x("SIGINT")),e.fusionInit){a.state="init-running";let b={operation:"fusion-init",mode:n.mode??""},C=new bd({sys:t,fusionConfig:n,debug:!0,credentials:i,sentryTags:b});a.initState=C.initState,a.initStatusLogs=C.initStatusLogs;let w=await C.init();if(String(process.env.DEVTOOLS_SKIP_POST_INIT||"").toLowerCase().match(/^(1|true|yes)$/)&&process.exit(0),!w){L.error("\u274C Initialization failed"),t.Sentry?.captureException(new Error("Initialization failed"),{level:"fatal",tags:b,extra:{initState:C.initState}}),a.state="init-error",a.isFinalState=!0,a.errorMessage=C.initState.error,D&&await x("init-end")();return}if(L.success("\u2705 Initialization completed successfully"),a.state="init-complete",D){await x("init-end")();return}if(n.mode==="backup"||n.mode==="backup-force-full"){await x("init-end")();return}n._attemptDryRunBackupGit&&AQ({sys:t,fusionConfig:n,debug:!0,credentials:i},C.initState).then(P=>{P&&(a._attemptDryRunBackupOutcome=P.success?"success":P.error)}).catch(P=>{t.Sentry?.captureException(P,{tags:{operation:"dry-run-backup-git",dryRunBackupGit:"true"}})})}if(c=await ONe(t,n,a,e),e.fusionInit&&c){let b=n.nativeApp?3e5:2e3;await Promise.race([c.ensureSetupCommand(),new Promise(C=>setTimeout(C,b))])}await BNe({sys:t,credentials:i,args:e,fusionConfig:n,proxyUrl:l,httpsProxyUrl:f,customHttpsProxyUrl:m,server:p,httpsServer:d,app:u,devServer:c,sharedState:a}),await it("launch",{...n,dev:!!e.dev})}async function NNe(t,e,r){let n;try{if(n=await rr(t,e,{builderPrivateKey:!0,builderPublicKey:!0}),!n.builderPublicKey||!n.builderPrivateKey){let i="You need to be logged in to use the fusion command.";return IQ(e,i),L.error(i),Be("Please login first with: npx builder.io login"),await be(1)}if(!n.timestamp&&!r.projectId){let i=await t.getDeviceId();if(i)try{let s=new URL(`${nt}/fusion/cli-key`);s.searchParams.set("host",i),s.searchParams.set("apiKey",n.builderPublicKey);let o=await ze(s.toString(),{headers:{"Content-Type":"application/json",Authorization:`Bearer ${n.builderPrivateKey}`},method:"GET"});if(!o.ok){let u=await o.text();throw new Error(`Failed to fetch original private key: ${u}`)}let c=(await o.json())?.key;c&&(n.builderPrivateKey=c,n.timestamp=new Date().toISOString(),kb(t,n))}catch(s){t.Sentry?.captureException(new Error("Failed to fetch original private key, using existing credentials",{cause:s}))}}L.success(`Logged in as space: ${n.spaceName||n.builderPublicKey}`)}catch(i){let s="Authentication failed.";return IQ(e,s,i instanceof Error?i.message:String(i)),L.error(s),Be("Please login first with: npx builder.io login"),await be(1)}return n}async function RNe(t,e,r,n,i){let s=!!e.isLocal||!!i?.local,{httpPort:o,httpsPort:a}=await INe(e,s);e.nativeApp?L.info(`\u{1F50D} Setting up Builder.io API server on port ${o} (Native App Mode)`):L.info(`\u{1F50D} Setting up Builder.io server on port ${o}`);let c=(0,Fh.default)();c.use((D,x,b)=>{s||console.log("HTTP request: ",D.url),D.query._skip_activity!=="true"?r.lastRequestTime=performance.now():L.info(`\u23F0 Request ignored at ${performance.now()}`),b()});let u=t.builderPrivateKey,l=e.authenticateProxy??!1;z9({app:c,validBuilderPrivateKey:u,authenticateProxy:l,isLocal:s,sharedState:r});let p=NQ.createServer(c),d;if(e.https)try{let{port:D,...x}=e.httpsServerOptions??{};d=RQ.createServer(x,c),L.info(`\u{1F50D} Setting up HTTPS server on port ${a}`)}catch(D){L.error(`\u274C Failed to create HTTPS server: ${D instanceof Error?D.message:String(D)}`),d=void 0}let f=e.localHttpsDomain,m=`http://localhost:${o}`,g=a?`https://localhost:${a}`:void 0,y=f&&a?`https://${f}:${a}`:void 0,v=[new Promise((D,x)=>{p.listen(o,async()=>{L.success(`\u{1F680} Builder.io HTTP server running at ${m}`),L.info("Available server URLs:"),L.info(` HTTP (localhost): ${m}`),D(!0)}),p.on("error",b=>{L.error(`\u274C Failed to create HTTP server: ${b instanceof Error?b.message:String(b)}`),x(b)})})];return d&&v.push(new Promise((D,x)=>{d.listen(a,async()=>{L.success(`\u{1F680} Builder.io HTTPS server running at ${g}`),L.info(` HTTPS (localhost): ${g}`),y&&L.info(` HTTPS (custom domain): ${y}`),D(!0)}),d.on("error",b=>{L.error(`\u274C Failed to create HTTPS server: ${b instanceof Error?b.message:String(b)}`),x(b)})})),await Promise.all(v),{app:c,proxyUrl:y||g||m,server:p,httpsServer:d,httpsProxyUrl:g,customHttpsProxyUrl:y}}async function ONe(t,e,r,n){if(e.nativeApp){e.devCommand?L.info(`Running ${(0,Ti.cyan)(e.devCommand)} in native app mode...`):L.info("Native app mode: No dev command specified");let i=await G1(t,e,n.fusionInit&&e.setupCommand?.trim()?"not-installed":"installed");return r.devState=i.devState,r.setupState=i.setupState,r.httpServerState="ok-2xx",i.emitter.on("devState",s=>{r.devState=s}),i.emitter.on("setupState",s=>{r.setupState=s}),i}if(n.serverUrl&&!n.command){L.info(`Proxying to existing dev server at ${(0,Ti.cyan)(e.serverUrl)}...`),r.devState="running",r.setupState="installed",r.httpServerState="ok-2xx";return}else{L.info(`Running ${(0,Ti.cyan)(e.devCommand)} on host ${e.serverUrl?(0,Ti.cyan)(e.serverUrl):"TBD"}...`);let i=await G1(t,e,n.fusionInit?"not-installed":"installed");return r.devState=i.devState,r.setupState=i.setupState,r.httpServerState=i.httpServerState,i.emitter.on("devState",s=>{r.devState=s}),i.emitter.on("setupState",s=>{r.setupState=s}),i.emitter.on("httpServerState",s=>{r.httpServerState=s}),i.emitter.on("urlDetected",s=>{r.detectedServerUrl=s}),i}}async function BNe({sys:t,credentials:e,args:r,fusionConfig:n,app:i,server:s,httpsServer:o,proxyUrl:a,httpsProxyUrl:c,customHttpsProxyUrl:u,devServer:l,sharedState:p}){async function d({force:m=!1}={}){L.info(`\u{1F4E6} Attempting backup${m?" (forced)":""}...`);let g=await Hu();if(!g)if(n.autoBackupGit&&p.initState?.success)g=await _h(t,e,n,l,void 0,p,void 0,n.privacyMode);else return L.info("\u{1F51A} No active session"),{success:!0,message:"No active session",skipped:!0,reason:"no_active_session"};if(!(m||n.autoBackupGit))return L.info("\u{1F51A} Auto backup git is disabled, skipping backup"),{success:!0,message:"Auto backup git is disabled, skipping backup",skipped:!0,reason:"auto_backup_git_disabled"};if(!g.isIdle())return L.info("\u{1F51A} Not idle, skipping backup"),{success:!1,message:"Not idle, skipping backup",skipped:!0,reason:"not_idle"};if(!await g.needsBackup())return L.info("\u2705 Already backed up after last request"),{success:!0,message:"Already backed up",skipped:!0,reason:"already_backed_up"};try{let D=await g.uploadBackup();return D.success&&L.info("\u2705 Backup successful"),D}catch(D){let x=`Backup error: ${D instanceof Error?D.message:String(D)}`;return L.error(`\u274C ${x}`),{success:!1,message:x,error:D instanceof Error?D:new Error(String(D))}}}async function f(m){L.info(`\u{1F504} Attempting graceful shutdown: ${m}`);let g=()=>{n.autoShutdown&&(L.info("\u{1F504} Shutting down process"),process.kill(process.pid,"SIGTERM"))},y=await d({force:!1});return y.success&&g(),y}try{let m=Fh.default.Router();if(m.post("/generate",async(b,C)=>{try{let{prompt:w,userMessage:F,context:{pushChanges:P}}=b.body;if(!w&&!F)return C.status(400).json({error:"No prompt/userMessage provided"});C.setHeader("Content-Type","text/event-stream"),C.setHeader("Cache-Control","no-cache"),C.setHeader("Connection","keep-alive");let _=await _h(t,e,n,l,void 0,p,void 0,n.privacyMode),A=setInterval(async()=>{let O={type:"ping"};C.write(JSON.stringify(O)+`
|
|
4044
|
+
${c}`),{success:!1,error:"backup-commit-hash-mismatch-in-metadata"}}return u.lastCommitHash!==l.lastCommitHash?(console.error(`\u274C Backup commit hash mismatch: ${u.lastCommitHash} !== ${l.lastCommitHash}`),{success:!1,error:"backup-commit-hash-mismatch"}):{success:!0}}catch(s){return t.Sentry?.captureException(s,{tags:cF}),{success:!1,error:"error"}}};mv();WT();h();var cs=Y(require("fs"),1),_Q=Y(require("path"),1);Jc();async function FQ(t,e){let r=e.lockFile?.filePath;if(!r)return;let n=e.lockFile?.conflictBehavior;if(!n)return;let i=e.projectId,s=e.branchName,o=e.fusionServerPort;if(cs.existsSync(r)){console.log(`Lock file already exists at: ${r}`);let c=null;try{let u=cs.readFileSync(r,"utf8");c=JSON.parse(u)}catch(u){console.warn("Failed to read existing lock file, treating as corrupted:",u)}switch(n){case"exit":console.error("Another instance may already be running."),c&&(console.error(`Existing process PID: ${c.pid}`),console.error(`Existing process started at: ${new Date(c.createdAt).toISOString()}`)),process.exit(-10);case"replace":console.log("Replacing existing lock file (conflictBehavior: replace)"),c&&console.log(`Previous process PID: ${c.pid}`);break;case"kill":if(console.log("Attempting to kill existing process (conflictBehavior: kill)"),c){if(c.pid===process.pid){console.log("Skipping kill, same process");break}console.log(`Attempting to kill process ${c.pid}...`),await vn(t,c.pid)||(console.error(`Failed to kill process ${c.pid}, exiting...`),process.exit(-10)),console.log(`Process ${c.pid} terminated successfully`)}else console.log("Could not read PID from lock file, replacing lock file anyway");break}}let a={cwd:process.cwd(),projectId:i,branchId:s,pid:process.pid,createdAt:Date.now(),port:o};try{let c=_Q.dirname(r);cs.existsSync(c)||cs.mkdirSync(c,{recursive:!0}),cs.writeFileSync(r,JSON.stringify(a,null,2),"utf8"),console.log(`Lock file created at: ${r}`);let u=!1,l=()=>{if(!u){try{cs.existsSync(r)&&(cs.unlinkSync(r),console.log(`Lock file removed: ${r}`))}catch(p){console.error(`Failed to remove lock file at ${r}:`,p)}u=!0}};process.on("exit",l),process.on("SIGINT",l),process.on("SIGTERM",l),process.on("uncaughtException",l),process.on("unhandledRejection",l)}catch(c){throw console.error(`Failed to create lock file at ${r}:`,c),c}}var FNe=48752;async function kNe(t){return new Promise(e=>{let r=OQ.createServer();r.listen(t,()=>{r.once("close",()=>{e(!0)}),r.close()}),r.on("error",()=>{e(!1)})})}async function kQ(t){let e=t,r=100;for(let n=0;n<r;n++){if(await kNe(e))return e;e=Math.floor(Math.random()*16384)+49152}throw new Error(`Could not find an available port after ${r} attempts`)}async function INe(t,e){let r=parseInt(process.env.FUSION_SERVER_PORT??""),n=isNaN(r)?FNe:r,i,s=t.fusionServerPort;if(s!==void 0)i=s,L.info(`\u{1F50D} Using configured HTTP port: ${i}`);else{let a=e;i=n,a&&(i=await kQ(n),i!==n&&L.info(`\u26A0\uFE0F Port ${n} is in use, using port ${i} instead`))}if(!t.https)return{httpPort:i};let o=t.httpsServerOptions?.port??await kQ(i+1);return{httpPort:i,httpsPort:o}}function IQ(t,e,r){if(t.jsonOutput){let n={type:"server_error",data:{error:e,details:r,timestamp:Date.now()}};console.log(JSON.stringify(n))}}var xd;async function MQ({sys:t,args:e}){let r=process.env.FLY_APP_NAME?{flyAppName:process.env.FLY_APP_NAME,flyMachineId:process.env.FLY_MACHINE_ID,flyRegion:process.env.FLY_REGION,flyPublicIp:process.env.FLY_PUBLIC_IP,flyVmMemoryMb:process.env.FLY_VM_MEMORY_MB,flyPrimaryRegion:process.env.PRIMARY_REGION}:void 0;r&&(t.Sentry?.setContext("flyIo",r),t.Sentry?.getCurrentScope().setContext("flyIo",r)),Ct((0,Ti.bgCyan)((0,Ti.bold)((0,Ti.white)(" fusion ")))+" "+(0,Ti.dim)(Xe));let n=await Tb(t,e);Aq(t,n),await FQ(t,n);let i=await NNe(t,e,n),s=performance.now(),o="initial",a={status:"ok",get state(){return o},set state(b){o!==b&&n.projectId&&n.branchName&&n1(t,i,{projectId:n.projectId,branchName:n.branchName,lastServerVersion:Xe,lastServerState:b}),o=b},isFinalState:!1,editorReady:!1,initState:void 0,setupState:void 0,devState:void 0,httpServerState:void 0,errorMessage:void 0,devToolsVersion:Xe,lastRequestTime:s,startTime:s,detectedServerUrl:n.autoDetectDevServer?void 0:n.serverUrl},c;t.Sentry?.setContext("fusionConfig",{...n}),t.Sentry?.getCurrentScope().setContext("fusionConfig",{...n});let{app:u,proxyUrl:l,server:p,httpsServer:d,httpsProxyUrl:f,customHttpsProxyUrl:m}=await RNe(i,n,a,t,e),g=SQ(t,i,n,a);g&&g.start();let y=$Ne(t,n,r),v=!1,E=!1,D=!1,x=b=>async()=>{if(console.log(`\u{1F50D} Received ${b} signal`),a.state==="init-running"){console.log("\u{1F50D} Init is running, skipping"),D=!0;return}if(v){console.log("\u{1F50D} Server already closing, skipping");return}a.state="closing",v=!0,setTimeout(()=>{v=!1},1e3),console.log("\u{1F50D} Closing server gracefully");try{p.closeAllConnections(),d&&d.closeAllConnections(),y(),g&&(g.stop(),g=null);let C=[new Promise(w=>p.close(w))];if(d&&C.push(new Promise(w=>d.close(w))),await Promise.race([Promise.all(C),new Promise(w=>setTimeout(w,1e3))]),c&&(await c.close(),c=void 0),!E&&a.initState?.success){E=!0;let w=await Hu();a.state="closing",w&&(console.log("\u{1F50D} Closing codeGenServer"),await w.close(!!n.autoBackupGit),xd=void 0)}await t.Sentry?.flush(2e3),await BQ.flush().promise,process.exit(0)}catch(C){t.Sentry?.captureException(C);let w=C instanceof Error?C.message:String(C);L.error(`\u274C FAILED TO CLOSE SERVER: ${w}`),process.exit(1)}};if(wQ(),process.on("SIGTERM",x("SIGTERM")),process.on("SIGINT",x("SIGINT")),e.fusionInit){a.state="init-running";let b={operation:"fusion-init",mode:n.mode??""},C=new bd({sys:t,fusionConfig:n,debug:!0,credentials:i,sentryTags:b});a.initState=C.initState,a.initStatusLogs=C.initStatusLogs;let w=await C.init();if(String(process.env.DEVTOOLS_SKIP_POST_INIT||"").toLowerCase().match(/^(1|true|yes)$/)&&process.exit(0),!w){L.error("\u274C Initialization failed"),t.Sentry?.captureException(new Error("Initialization failed"),{level:"fatal",tags:b,extra:{initState:C.initState}}),a.state="init-error",a.isFinalState=!0,a.errorMessage=C.initState.error,D&&await x("init-end")();return}if(L.success("\u2705 Initialization completed successfully"),a.state="init-complete",D){await x("init-end")();return}if(n.mode==="backup"||n.mode==="backup-force-full"){await x("init-end")();return}n._attemptDryRunBackupGit&&AQ({sys:t,fusionConfig:n,debug:!0,credentials:i},C.initState).then(P=>{P&&(a._attemptDryRunBackupOutcome=P.success?"success":P.error)}).catch(P=>{t.Sentry?.captureException(P,{tags:{operation:"dry-run-backup-git",dryRunBackupGit:"true"}})})}if(c=await ONe(t,n,a,e),e.fusionInit&&c){let b=n.nativeApp?3e5:2e3;await Promise.race([c.ensureSetupCommand(),new Promise(C=>setTimeout(C,b))])}await BNe({sys:t,credentials:i,args:e,fusionConfig:n,proxyUrl:l,httpsProxyUrl:f,customHttpsProxyUrl:m,server:p,httpsServer:d,app:u,devServer:c,sharedState:a}),await it("launch",{...n,dev:!!e.dev})}async function NNe(t,e,r){let n;try{if(n=await rr(t,e,{builderPrivateKey:!0,builderPublicKey:!0}),!n.builderPublicKey||!n.builderPrivateKey){let i="You need to be logged in to use the fusion command.";return IQ(e,i),L.error(i),Be("Please login first with: npx builder.io login"),await be(1)}if(!n.timestamp&&!r.projectId){let i=await t.getDeviceId();if(i)try{let s=new URL(`${nt}/fusion/cli-key`);s.searchParams.set("host",i),s.searchParams.set("apiKey",n.builderPublicKey);let o=await ze(s.toString(),{headers:{"Content-Type":"application/json",Authorization:`Bearer ${n.builderPrivateKey}`},method:"GET"});if(!o.ok){let u=await o.text();throw new Error(`Failed to fetch original private key: ${u}`)}let c=(await o.json())?.key;c&&(n.builderPrivateKey=c,n.timestamp=new Date().toISOString(),kb(t,n))}catch(s){t.Sentry?.captureException(new Error("Failed to fetch original private key, using existing credentials",{cause:s}))}}L.success(`Logged in as space: ${n.spaceName||n.builderPublicKey}`)}catch(i){let s="Authentication failed.";return IQ(e,s,i instanceof Error?i.message:String(i)),L.error(s),Be("Please login first with: npx builder.io login"),await be(1)}return n}async function RNe(t,e,r,n,i){let s=!!e.isLocal||!!i?.local,{httpPort:o,httpsPort:a}=await INe(e,s);e.nativeApp?L.info(`\u{1F50D} Setting up Builder.io API server on port ${o} (Native App Mode)`):L.info(`\u{1F50D} Setting up Builder.io server on port ${o}`);let c=(0,Fh.default)();c.use((D,x,b)=>{s||console.log("HTTP request: ",D.url),D.query._skip_activity!=="true"?r.lastRequestTime=performance.now():L.info(`\u23F0 Request ignored at ${performance.now()}`),b()});let u=t.builderPrivateKey,l=e.authenticateProxy??!1;z9({app:c,validBuilderPrivateKey:u,authenticateProxy:l,isLocal:s,sharedState:r});let p=NQ.createServer(c),d;if(e.https)try{let{port:D,...x}=e.httpsServerOptions??{};d=RQ.createServer(x,c),L.info(`\u{1F50D} Setting up HTTPS server on port ${a}`)}catch(D){L.error(`\u274C Failed to create HTTPS server: ${D instanceof Error?D.message:String(D)}`),d=void 0}let f=e.localHttpsDomain,m=`http://localhost:${o}`,g=a?`https://localhost:${a}`:void 0,y=f&&a?`https://${f}:${a}`:void 0,v=[new Promise((D,x)=>{p.listen(o,async()=>{L.success(`\u{1F680} Builder.io HTTP server running at ${m}`),L.info("Available server URLs:"),L.info(` HTTP (localhost): ${m}`),D(!0)}),p.on("error",b=>{L.error(`\u274C Failed to create HTTP server: ${b instanceof Error?b.message:String(b)}`),x(b)})})];return d&&v.push(new Promise((D,x)=>{d.listen(a,async()=>{L.success(`\u{1F680} Builder.io HTTPS server running at ${g}`),L.info(` HTTPS (localhost): ${g}`),y&&L.info(` HTTPS (custom domain): ${y}`),D(!0)}),d.on("error",b=>{L.error(`\u274C Failed to create HTTPS server: ${b instanceof Error?b.message:String(b)}`),x(b)})})),await Promise.all(v),{app:c,proxyUrl:y||g||m,server:p,httpsServer:d,httpsProxyUrl:g,customHttpsProxyUrl:y}}async function ONe(t,e,r,n){if(e.nativeApp){e.devCommand?L.info(`Running ${(0,Ti.cyan)(e.devCommand)} in native app mode...`):L.info("Native app mode: No dev command specified");let i=await G1(t,e,n.fusionInit&&e.setupCommand?.trim()?"not-installed":"installed");return r.devState=i.devState,r.setupState=i.setupState,r.httpServerState="ok-2xx",i.emitter.on("devState",s=>{r.devState=s}),i.emitter.on("setupState",s=>{r.setupState=s}),i}if(n.serverUrl&&!n.command){L.info(`Proxying to existing dev server at ${(0,Ti.cyan)(e.serverUrl)}...`),r.devState="running",r.setupState="installed",r.httpServerState="ok-2xx";return}else{L.info(`Running ${(0,Ti.cyan)(e.devCommand)} on host ${e.serverUrl?(0,Ti.cyan)(e.serverUrl):"TBD"}...`);let i=await G1(t,e,n.fusionInit?"not-installed":"installed");return r.devState=i.devState,r.setupState=i.setupState,r.httpServerState=i.httpServerState,i.emitter.on("devState",s=>{r.devState=s}),i.emitter.on("setupState",s=>{r.setupState=s}),i.emitter.on("httpServerState",s=>{r.httpServerState=s}),i.emitter.on("urlDetected",s=>{r.detectedServerUrl=s}),i}}async function BNe({sys:t,credentials:e,args:r,fusionConfig:n,app:i,server:s,httpsServer:o,proxyUrl:a,httpsProxyUrl:c,customHttpsProxyUrl:u,devServer:l,sharedState:p}){async function d({force:m=!1}={}){L.info(`\u{1F4E6} Attempting backup${m?" (forced)":""}...`);let g=await Hu();if(!g)if(n.autoBackupGit&&p.initState?.success)g=await _h(t,e,n,l,void 0,p,void 0,n.privacyMode);else return L.info("\u{1F51A} No active session"),{success:!0,message:"No active session",skipped:!0,reason:"no_active_session"};if(!(m||n.autoBackupGit))return L.info("\u{1F51A} Auto backup git is disabled, skipping backup"),{success:!0,message:"Auto backup git is disabled, skipping backup",skipped:!0,reason:"auto_backup_git_disabled"};if(!g.isIdle())return L.info("\u{1F51A} Not idle, skipping backup"),{success:!1,message:"Not idle, skipping backup",skipped:!0,reason:"not_idle"};if(!await g.needsBackup())return L.info("\u2705 Already backed up after last request"),{success:!0,message:"Already backed up",skipped:!0,reason:"already_backed_up"};try{let D=await g.uploadBackup();return D.success&&L.info("\u2705 Backup successful"),D}catch(D){let x=`Backup error: ${D instanceof Error?D.message:String(D)}`;return L.error(`\u274C ${x}`),{success:!1,message:x,error:D instanceof Error?D:new Error(String(D))}}}async function f(m){L.info(`\u{1F504} Attempting graceful shutdown: ${m}`);let g=()=>{n.autoShutdown&&(L.info("\u{1F504} Shutting down process"),process.kill(process.pid,"SIGTERM"))},y=await d({force:!1});return y.success&&g(),y}try{let m=Fh.default.Router();if(m.post("/generate",async(b,C)=>{try{let{prompt:w,userMessage:F,context:{pushChanges:P}}=b.body;if(!w&&!F)return C.status(400).json({error:"No prompt/userMessage provided"});C.setHeader("Content-Type","text/event-stream"),C.setHeader("Cache-Control","no-cache"),C.setHeader("Connection","keep-alive");let _=await _h(t,e,n,l,void 0,p,void 0,n.privacyMode),A=setInterval(async()=>{let O={type:"ping"};C.write(JSON.stringify(O)+`
|
|
4045
4045
|
`)},5e3),z=_.connectToEventLoop(!1,O=>{C.write(JSON.stringify(O)+`
|
|
4046
4046
|
`)});try{if(await _.pullLatestFromRemote(),await _.sendMessage(w?{userPrompt:w}:F),await new Promise(O=>setTimeout(O,100)),await _.waitUntilIdle(),P)try{await _.pushChanges(!1)}catch(O){C.write(`${JSON.stringify({type:"error",message:`[GIT_PUSH_ERROR]: ${O instanceof Error?O.message:String(O)}`})}
|
|
4047
4047
|
`),t.Sentry?.captureException(O)}}catch(O){t.Sentry?.captureException(O);let U=O instanceof Error?O.message:String(O);C.write(`${JSON.stringify({type:"error",message:`Error: ${U}`})}
|