fjall 0.94.0 → 0.94.1
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/bin/.bundled
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
bundled at 2026-04-21T02:
|
|
1
|
+
bundled at 2026-04-21T02:31:53.141Z
|
|
2
2
|
bundle size: 2943755 bytes
|
|
3
|
-
cli version: 0.94.
|
|
3
|
+
cli version: 0.94.1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "<%= packageName %>",
|
|
3
|
-
"version": "0.94.
|
|
3
|
+
"version": "0.94.1",
|
|
4
4
|
"scripts": {},
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@types/node": "20.4.9",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"typescript": "~5.1.6"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@fjall/components-infrastructure": "^0.94.
|
|
11
|
+
"@fjall/components-infrastructure": "^0.94.1",
|
|
12
12
|
"aws-cdk-lib": "^2.239.0",
|
|
13
13
|
"constructs": "^10.0.0"
|
|
14
14
|
}
|
package/bin/fjall.bundle.js
CHANGED
|
@@ -33,7 +33,7 @@ Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._life
|
|
|
33
33
|
`),this.outputHelp({error:!0}));let n=r||{},a=n.exitCode||1,i=n.code||"commander.error";this._exit(a,i,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in $r.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,$r.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new h2e(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(a=>!r(a)).forEach(a=>{this.setOptionValueWithSource(a,n.implied[a],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=s=>{let o=s.attributeName(),c=this.getOptionValue(o),l=this.options.find(p=>p.negate&&o===p.attributeName()),u=this.options.find(p=>!p.negate&&o===p.attributeName());return l&&(l.presetArg===void 0&&c===!1||l.presetArg!==void 0&&c===l.presetArg)?l:u||s},a=s=>{let o=n(s),c=o.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${o.envVar}'`:`option '${o.flags}'`},i=`error: ${a(e)} cannot be used with ${a(r)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let a=[],i=this;do{let s=i.createHelp().visibleOptions(i).filter(o=>o.long).map(o=>o.long);a=a.concat(s),i=i.parent}while(i&&!i._enablePositionalOptions);r=cte(e,a)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let a=[];this.createHelp().visibleCommands(this).forEach(i=>{a.push(i.name()),i.alias()&&a.push(i.alias())}),r=cte(e,a)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let a=this.createOption(r,n);return this._versionOptionName=a.attributeName(),this._registerOption(a),this.on("option:"+a.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
34
34
|
`),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");let n=this.parent?._findCommand(e);if(n){let a=[n.name()].concat(n.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${a}'`)}return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>d2e(n));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Rp.basename(e,Rp.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp(),n=this._getOutputContext(e);r.prepareContext({error:n.error,helpWidth:n.helpWidth,outputHasColors:n.hasColors});let a=r.formatHelp(this,r);return n.hasColors?a:this._outputConfiguration.stripColor(a)}_getOutputContext(e){e=e||{};let r=!!e.error,n,a,i;return r?(n=o=>this._outputConfiguration.writeErr(o),a=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(n=o=>this._outputConfiguration.writeOut(o),a=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:r,write:o=>(a||(o=this._outputConfiguration.stripColor(o)),n(o)),hasColors:a,helpWidth:i}}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getOutputContext(e),a={error:n.error,write:n.write,command:this};this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",a)),this.emit("beforeHelp",a);let i=this.helpInformation({error:n.error});if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",a),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",a))}helpOption(e,r){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",r=r??"display help for command",this._helpOption=this.createOption(e,r),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let r=Number($r.exitCode??0);r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
35
35
|
Expecting one of '${n.join("', '")}'`);let a=`${e}Help`;return this.on(a,i=>{let s;typeof r=="function"?s=r({error:i.error,command:i.command}):s=r,s&&i.write(`${s}
|
|
36
|
-
`)}),this}_outputHelpIfRequested(e){let r=this._getHelpOption();r&&e.find(a=>r.is(a))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function lte(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",a="9229",i;return(i=e.match(/^(--inspect(-brk)?)$/))!==null?r=i[1]:(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=i[1],/^\d+$/.test(i[3])?a=i[3]:n=i[3]):(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=i[1],n=i[3],a=i[4]),r&&a!=="0"?`${r}=${n}:${parseInt(a)+1}`:e})}function eU(){if($r.env.NO_COLOR||$r.env.FORCE_COLOR==="0"||$r.env.FORCE_COLOR==="false")return!1;if($r.env.FORCE_COLOR||$r.env.CLICOLOR_FORCE!==void 0)return!0}tU.Command=QB;tU.useColor=eU});var fte=H(Sc=>{var{Argument:pte}=nP(),{Command:rU}=ute(),{CommanderError:g2e,InvalidArgumentError:dte}=VA(),{Help:y2e}=qB(),{Option:mte}=ZB();Sc.program=new rU;Sc.createCommand=t=>new rU(t);Sc.createOption=(t,e)=>new mte(t,e);Sc.createArgument=(t,e)=>new pte(t,e);Sc.Command=rU;Sc.Option=mte;Sc.Argument=pte;Sc.Help=y2e;Sc.CommanderError=g2e;Sc.InvalidArgumentError=dte;Sc.InvalidOptionArgumentError=dte});var WA,nU=x(()=>{WA={name:"@fjall/cli",version:"0.94.0",description:"Fjall CLI helper",type:"module",bin:{fjall:"dist/src/cli.js"},files:["dist/"],scripts:{clean:"rm -rf ./dist ./sourcemaps","clean:node":"rm -rf ./node_modules","copy-files":'find generators -type d -name files | while read dir; do mkdir -p "dist/$dir" && cp -R "$dir/"* "dist/$dir/"; done && cp -R src/proto ./dist/src/proto',build:"npm run clean && npx tsc && npm run copy-files && node ../scripts/minify-dist.mjs dist && chmod +x ./dist/src/cli.js",watch:"npm run build && npx tsc-watch","watch:only":'npx tsc-watch --onSuccess "npm run copy-files"',"fjall-cli":"node ./dist/src/cli.js",version:"npx tsx scripts/updateTemplateVersions.ts",format:'prettier --write "src/**/*.{ts,tsx,js,jsx,json}" "generators/**/*.{ts,tsx,js,jsx,json}"',"format:check":'prettier --check "src/**/*.{ts,tsx,js,jsx,json}" "generators/**/*.{ts,tsx,js,jsx,json}"',lint:"eslint src/ generators/","lint:fix":"eslint src/ generators/ --fix",typecheck:"tsc --noEmit","typecheck:tests":"tsc --noEmit --project tsconfig.test.json","typecheck:scripts":"tsc --noEmit --project tsconfig.scripts.json","typecheck:all":"npm run typecheck && npm run typecheck:tests && npm run typecheck:scripts",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","test:integration":"vitest run --config vitest.config.integration.ts","test:integration:watch":"vitest --config vitest.config.integration.ts","test:e2e":"vitest run --config vitest.e2e.config.ts","test:all":"npm run test && npm run test:integration && npm run test:e2e","test:setup":"node scripts/setupTestFixtures.mjs","test:payload-compat":"npx tsx scripts/testPayloadCompatibility.ts","test:payload-compat:e2e":"npx tsx scripts/testPayloadCompatibility.ts --e2e"},engines:{node:">=22.0.0"},author:"",license:"SEE LICENSE IN LICENSE",devDependencies:{"@eslint/js":"^9.39.1","@playwright/test":"^1.58.2","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.1","@types/dockerode":"^4.0.0","@types/ejs":"^3.1.5","@types/js-yaml":"^4.0.9","@types/keychain":"^1.4.4","@types/mime-types":"^3.0.1","@types/picomatch":"^4.0.2","@types/prompts":"^2.4.9","@types/proper-lockfile":"^4.0.0","@types/react":"^19.0.0","@types/tar-fs":"^2.0.4","@types/tar-stream":"^3.1.4","@typescript-eslint/eslint-plugin":"^8.32.1","@typescript-eslint/parser":"^8.32.1","@vitest/coverage-v8":"^4.0.14",eslint:"^9.39.1","eslint-plugin-fjall":"file:./eslint-rules","ink-testing-library":"^4.0.0",jsdom:"^28.0.0",prettier:"^3.2.5","react-dom":"^19.2.3","tsc-watch":"^7.0.0",tsx:"^4.7.0","typescript-eslint":"^8.53.1",vitest:"^4.0.14"},dependencies:{"@aws-sdk/client-auto-scaling":"^3.997.0","@aws-sdk/client-backup":"^3.997.0","@aws-sdk/client-cloudformation":"^3.997.0","@aws-sdk/client-cost-explorer":"^3.997.0","@aws-sdk/client-ec2":"^3.997.0","@aws-sdk/client-ecr":"^3.997.0","@aws-sdk/client-ecs":"^3.997.0","@aws-sdk/client-elasticache":"^3.997.0","@aws-sdk/client-iam":"^3.997.0","@aws-sdk/client-identitystore":"^3.997.0","@aws-sdk/client-lambda":"^3.997.0","@aws-sdk/client-organizations":"^3.997.0","@aws-sdk/client-ram":"^3.997.0","@aws-sdk/client-rds":"^3.997.0","@aws-sdk/client-route-53":"^3.1004.0","@aws-sdk/client-s3":"^3.997.0","@aws-sdk/client-secrets-manager":"^3.997.0","@aws-sdk/client-ssm":"^3.997.0","@aws-sdk/client-sso":"^3.997.0","@aws-sdk/client-sso-admin":"^3.997.0","@aws-sdk/client-sso-oidc":"^3.997.0","@aws-sdk/client-sts":"^3.997.0","@fjall/deploy-core":"^0.94.0","@fjall/generator":"^0.94.0","@fjall/util":"^0.94.0","@nx/devkit":"^20.6.1","@opennextjs/aws":"^3.9.16","@smithy/node-http-handler":"^4.5.0","@toon-format/toon":"^2.1.0","aws-cdk":"^2.1105.0",axios:"^1.13.2",chalk:"^5.6.0","cli-cursor":"^5.0.0",commander:"^14.0.0",dockerode:"^4.0.9",ejs:"^4.0.0",ink:"^6.6.0","js-yaml":"^4.1.1",keychain:"^1.5.0","mime-types":"^3.0.2",open:"^11.0.0",ora:"^9.3.0",picomatch:"^4.0.3",prompts:"^2.4.2","proper-lockfile":"^4.1.2",protobufjs:"^8.0.0",react:"^19.2.0","tar-fs":"^3.1.1",typescript:"^5.8.2","update-check":"^1.5.4",zod:"^4.3.6"},gitHead:"8e075d68ec034e0b9c2256f80ac2baf25a0f5645"}});function x2e(){let t=new Map;for(let[e,r]of Object.entries(Un)){for(let[n,a]of Object.entries(r))Un[n]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},r[n]=Un[n],t.set(a[0],a[1]);Object.defineProperty(Un,e,{value:r,enumerable:!1})}return Object.defineProperty(Un,"codes",{value:t,enumerable:!1}),Un.color.close="\x1B[39m",Un.bgColor.close="\x1B[49m",Un.color.ansi=yte(),Un.color.ansi256=vte(),Un.color.ansi16m=Ste(),Un.bgColor.ansi=yte(10),Un.bgColor.ansi256=vte(10),Un.bgColor.ansi16m=Ste(10),Object.defineProperties(Un,{rgbToAnsi256:{value(e,r,n){return 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(i=>i+i).join(""));let a=Number.parseInt(n,16);return[a>>16&255,a>>8&255,a&255]},enumerable:!1},hexToAnsi256:{value:e=>Un.rgbToAnsi256(...Un.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,a;if(e>=232)r=((e-232)*10+8)/255,n=r,a=r;else{e-=16;let o=e%36;r=Math.floor(e/36)/5,n=Math.floor(o/6)/5,a=o%6/5}let i=Math.max(r,n,a)*2;if(i===0)return 30;let s=30+(Math.round(a)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>Un.ansi256ToAnsi(Un.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>Un.ansi256ToAnsi(Un.hexToAnsi256(e)),enumerable:!1}}),Un}var yte,vte,Ste,Un,aCt,S2e,E2e,iCt,b2e,Il,Ete=x(()=>{yte=(t=0)=>e=>`\x1B[${e+t}m`,vte=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Ste=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,Un={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},aCt=Object.keys(Un.modifier),S2e=Object.keys(Un.color),E2e=Object.keys(Un.bgColor),iCt=[...S2e,...E2e];b2e=x2e(),Il=b2e});import aU from"node:process";import A2e from"node:os";import xte from"node:tty";function Ec(t,e=globalThis.Deno?globalThis.Deno.args:aU.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),a=e.indexOf("--");return n!==-1&&(a===-1||n<a)}function C2e(){if("FORCE_COLOR"in jn)return jn.FORCE_COLOR==="true"?1:jn.FORCE_COLOR==="false"?0:jn.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(jn.FORCE_COLOR,10),3)}function w2e(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function T2e(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=C2e();n!==void 0&&(iP=n);let a=r?iP:n;if(a===0)return 0;if(r){if(Ec("color=16m")||Ec("color=full")||Ec("color=truecolor"))return 3;if(Ec("color=256"))return 2}if("TF_BUILD"in jn&&"AGENT_NAME"in jn)return 1;if(t&&!e&&a===void 0)return 0;let i=a||0;if(jn.TERM==="dumb")return i;if(aU.platform==="win32"){let s=A2e.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in jn)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in jn)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in jn)||jn.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in jn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(jn.TEAMCITY_VERSION)?1:0;if(jn.COLORTERM==="truecolor"||jn.TERM==="xterm-kitty"||jn.TERM==="xterm-ghostty"||jn.TERM==="wezterm")return 3;if("TERM_PROGRAM"in jn){let s=Number.parseInt((jn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(jn.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(jn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(jn.TERM)||"COLORTERM"in jn?1:i}function bte(t,e={}){let r=T2e(t,{streamIsTTY:t&&t.isTTY,...e});return w2e(r)}var jn,iP,I2e,Ate,Cte=x(()=>{({env:jn}=aU);Ec("no-color")||Ec("no-colors")||Ec("color=false")||Ec("color=never")?iP=0:(Ec("color")||Ec("colors")||Ec("color=true")||Ec("color=always"))&&(iP=1);I2e={stdout:bte({isTTY:xte.isatty(1)}),stderr:bte({isTTY:xte.isatty(2)})},Ate=I2e});function wte(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let a=e.length,i=0,s="";do s+=t.slice(i,n)+e+r,i=n+a,n=t.indexOf(e,i);while(n!==-1);return s+=t.slice(i),s}function Tte(t,e,r,n){let a=0,i="";do{let s=t[n-1]==="\r";i+=t.slice(a,s?n-1:n)+e+(s?`\r
|
|
36
|
+
`)}),this}_outputHelpIfRequested(e){let r=this._getHelpOption();r&&e.find(a=>r.is(a))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function lte(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",a="9229",i;return(i=e.match(/^(--inspect(-brk)?)$/))!==null?r=i[1]:(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=i[1],/^\d+$/.test(i[3])?a=i[3]:n=i[3]):(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=i[1],n=i[3],a=i[4]),r&&a!=="0"?`${r}=${n}:${parseInt(a)+1}`:e})}function eU(){if($r.env.NO_COLOR||$r.env.FORCE_COLOR==="0"||$r.env.FORCE_COLOR==="false")return!1;if($r.env.FORCE_COLOR||$r.env.CLICOLOR_FORCE!==void 0)return!0}tU.Command=QB;tU.useColor=eU});var fte=H(Sc=>{var{Argument:pte}=nP(),{Command:rU}=ute(),{CommanderError:g2e,InvalidArgumentError:dte}=VA(),{Help:y2e}=qB(),{Option:mte}=ZB();Sc.program=new rU;Sc.createCommand=t=>new rU(t);Sc.createOption=(t,e)=>new mte(t,e);Sc.createArgument=(t,e)=>new pte(t,e);Sc.Command=rU;Sc.Option=mte;Sc.Argument=pte;Sc.Help=y2e;Sc.CommanderError=g2e;Sc.InvalidArgumentError=dte;Sc.InvalidOptionArgumentError=dte});var WA,nU=x(()=>{WA={name:"@fjall/cli",version:"0.94.1",description:"Fjall CLI helper",type:"module",bin:{fjall:"dist/src/cli.js"},files:["dist/"],scripts:{clean:"rm -rf ./dist ./sourcemaps","clean:node":"rm -rf ./node_modules","copy-files":'find generators -type d -name files | while read dir; do mkdir -p "dist/$dir" && cp -R "$dir/"* "dist/$dir/"; done && cp -R src/proto ./dist/src/proto',build:"npm run clean && npx tsc && npm run copy-files && node ../scripts/minify-dist.mjs dist && chmod +x ./dist/src/cli.js",watch:"npm run build && npx tsc-watch","watch:only":'npx tsc-watch --onSuccess "npm run copy-files"',"fjall-cli":"node ./dist/src/cli.js",version:"npx tsx scripts/updateTemplateVersions.ts",format:'prettier --write "src/**/*.{ts,tsx,js,jsx,json}" "generators/**/*.{ts,tsx,js,jsx,json}"',"format:check":'prettier --check "src/**/*.{ts,tsx,js,jsx,json}" "generators/**/*.{ts,tsx,js,jsx,json}"',lint:"eslint src/ generators/","lint:fix":"eslint src/ generators/ --fix",typecheck:"tsc --noEmit","typecheck:tests":"tsc --noEmit --project tsconfig.test.json","typecheck:scripts":"tsc --noEmit --project tsconfig.scripts.json","typecheck:all":"npm run typecheck && npm run typecheck:tests && npm run typecheck:scripts",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","test:integration":"vitest run --config vitest.config.integration.ts","test:integration:watch":"vitest --config vitest.config.integration.ts","test:e2e":"vitest run --config vitest.e2e.config.ts","test:all":"npm run test && npm run test:integration && npm run test:e2e","test:setup":"node scripts/setupTestFixtures.mjs","test:payload-compat":"npx tsx scripts/testPayloadCompatibility.ts","test:payload-compat:e2e":"npx tsx scripts/testPayloadCompatibility.ts --e2e"},engines:{node:">=22.0.0"},author:"",license:"SEE LICENSE IN LICENSE",devDependencies:{"@eslint/js":"^9.39.1","@playwright/test":"^1.58.2","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.1","@types/dockerode":"^4.0.0","@types/ejs":"^3.1.5","@types/js-yaml":"^4.0.9","@types/keychain":"^1.4.4","@types/mime-types":"^3.0.1","@types/picomatch":"^4.0.2","@types/prompts":"^2.4.9","@types/proper-lockfile":"^4.0.0","@types/react":"^19.0.0","@types/tar-fs":"^2.0.4","@types/tar-stream":"^3.1.4","@typescript-eslint/eslint-plugin":"^8.32.1","@typescript-eslint/parser":"^8.32.1","@vitest/coverage-v8":"^4.0.14",eslint:"^9.39.1","eslint-plugin-fjall":"file:./eslint-rules","ink-testing-library":"^4.0.0",jsdom:"^28.0.0",prettier:"^3.2.5","react-dom":"^19.2.3","tsc-watch":"^7.0.0",tsx:"^4.7.0","typescript-eslint":"^8.53.1",vitest:"^4.0.14"},dependencies:{"@aws-sdk/client-auto-scaling":"^3.997.0","@aws-sdk/client-backup":"^3.997.0","@aws-sdk/client-cloudformation":"^3.997.0","@aws-sdk/client-cost-explorer":"^3.997.0","@aws-sdk/client-ec2":"^3.997.0","@aws-sdk/client-ecr":"^3.997.0","@aws-sdk/client-ecs":"^3.997.0","@aws-sdk/client-elasticache":"^3.997.0","@aws-sdk/client-iam":"^3.997.0","@aws-sdk/client-identitystore":"^3.997.0","@aws-sdk/client-lambda":"^3.997.0","@aws-sdk/client-organizations":"^3.997.0","@aws-sdk/client-ram":"^3.997.0","@aws-sdk/client-rds":"^3.997.0","@aws-sdk/client-route-53":"^3.1004.0","@aws-sdk/client-s3":"^3.997.0","@aws-sdk/client-secrets-manager":"^3.997.0","@aws-sdk/client-ssm":"^3.997.0","@aws-sdk/client-sso":"^3.997.0","@aws-sdk/client-sso-admin":"^3.997.0","@aws-sdk/client-sso-oidc":"^3.997.0","@aws-sdk/client-sts":"^3.997.0","@fjall/deploy-core":"^0.94.1","@fjall/generator":"^0.94.1","@fjall/util":"^0.94.1","@nx/devkit":"^20.6.1","@opennextjs/aws":"^3.9.16","@smithy/node-http-handler":"^4.5.0","@toon-format/toon":"^2.1.0","aws-cdk":"^2.1105.0",axios:"^1.13.2",chalk:"^5.6.0","cli-cursor":"^5.0.0",commander:"^14.0.0",dockerode:"^4.0.9",ejs:"^4.0.0",ink:"^6.6.0","js-yaml":"^4.1.1",keychain:"^1.5.0","mime-types":"^3.0.2",open:"^11.0.0",ora:"^9.3.0",picomatch:"^4.0.3",prompts:"^2.4.2","proper-lockfile":"^4.1.2",protobufjs:"^8.0.0",react:"^19.2.0","tar-fs":"^3.1.1",typescript:"^5.8.2","update-check":"^1.5.4",zod:"^4.3.6"},gitHead:"8e075d68ec034e0b9c2256f80ac2baf25a0f5645"}});function x2e(){let t=new Map;for(let[e,r]of Object.entries(Un)){for(let[n,a]of Object.entries(r))Un[n]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},r[n]=Un[n],t.set(a[0],a[1]);Object.defineProperty(Un,e,{value:r,enumerable:!1})}return Object.defineProperty(Un,"codes",{value:t,enumerable:!1}),Un.color.close="\x1B[39m",Un.bgColor.close="\x1B[49m",Un.color.ansi=yte(),Un.color.ansi256=vte(),Un.color.ansi16m=Ste(),Un.bgColor.ansi=yte(10),Un.bgColor.ansi256=vte(10),Un.bgColor.ansi16m=Ste(10),Object.defineProperties(Un,{rgbToAnsi256:{value(e,r,n){return 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(i=>i+i).join(""));let a=Number.parseInt(n,16);return[a>>16&255,a>>8&255,a&255]},enumerable:!1},hexToAnsi256:{value:e=>Un.rgbToAnsi256(...Un.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,a;if(e>=232)r=((e-232)*10+8)/255,n=r,a=r;else{e-=16;let o=e%36;r=Math.floor(e/36)/5,n=Math.floor(o/6)/5,a=o%6/5}let i=Math.max(r,n,a)*2;if(i===0)return 30;let s=30+(Math.round(a)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>Un.ansi256ToAnsi(Un.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>Un.ansi256ToAnsi(Un.hexToAnsi256(e)),enumerable:!1}}),Un}var yte,vte,Ste,Un,aCt,S2e,E2e,iCt,b2e,Il,Ete=x(()=>{yte=(t=0)=>e=>`\x1B[${e+t}m`,vte=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Ste=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,Un={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},aCt=Object.keys(Un.modifier),S2e=Object.keys(Un.color),E2e=Object.keys(Un.bgColor),iCt=[...S2e,...E2e];b2e=x2e(),Il=b2e});import aU from"node:process";import A2e from"node:os";import xte from"node:tty";function Ec(t,e=globalThis.Deno?globalThis.Deno.args:aU.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),a=e.indexOf("--");return n!==-1&&(a===-1||n<a)}function C2e(){if("FORCE_COLOR"in jn)return jn.FORCE_COLOR==="true"?1:jn.FORCE_COLOR==="false"?0:jn.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(jn.FORCE_COLOR,10),3)}function w2e(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function T2e(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=C2e();n!==void 0&&(iP=n);let a=r?iP:n;if(a===0)return 0;if(r){if(Ec("color=16m")||Ec("color=full")||Ec("color=truecolor"))return 3;if(Ec("color=256"))return 2}if("TF_BUILD"in jn&&"AGENT_NAME"in jn)return 1;if(t&&!e&&a===void 0)return 0;let i=a||0;if(jn.TERM==="dumb")return i;if(aU.platform==="win32"){let s=A2e.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in jn)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in jn)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in jn)||jn.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in jn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(jn.TEAMCITY_VERSION)?1:0;if(jn.COLORTERM==="truecolor"||jn.TERM==="xterm-kitty"||jn.TERM==="xterm-ghostty"||jn.TERM==="wezterm")return 3;if("TERM_PROGRAM"in jn){let s=Number.parseInt((jn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(jn.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(jn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(jn.TERM)||"COLORTERM"in jn?1:i}function bte(t,e={}){let r=T2e(t,{streamIsTTY:t&&t.isTTY,...e});return w2e(r)}var jn,iP,I2e,Ate,Cte=x(()=>{({env:jn}=aU);Ec("no-color")||Ec("no-colors")||Ec("color=false")||Ec("color=never")?iP=0:(Ec("color")||Ec("colors")||Ec("color=true")||Ec("color=always"))&&(iP=1);I2e={stdout:bte({isTTY:xte.isatty(1)}),stderr:bte({isTTY:xte.isatty(2)})},Ate=I2e});function wte(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let a=e.length,i=0,s="";do s+=t.slice(i,n)+e+r,i=n+a,n=t.indexOf(e,i);while(n!==-1);return s+=t.slice(i),s}function Tte(t,e,r,n){let a=0,i="";do{let s=t[n-1]==="\r";i+=t.slice(a,s?n-1:n)+e+(s?`\r
|
|
37
37
|
`:`
|
|
38
38
|
`)+r,a=n+1,n=t.indexOf(`
|
|
39
39
|
`,a)}while(n!==-1);return i+=t.slice(a),i}var Ite=x(()=>{});function qA(t){return k2e(t)}var _te,kte,iU,mv,GA,Pte,fv,_2e,k2e,sU,P2e,D2e,oU,sP,R2e,O2e,hCt,K,Rn=x(()=>{Ete();Cte();Ite();({stdout:_te,stderr:kte}=Ate),iU=Symbol("GENERATOR"),mv=Symbol("STYLER"),GA=Symbol("IS_EMPTY"),Pte=["ansi","ansi","ansi256","ansi16m"],fv=Object.create(null),_2e=(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=_te?_te.level:0;t.level=e.level===void 0?r:e.level},k2e=t=>{let e=(...r)=>r.join(" ");return _2e(e,t),Object.setPrototypeOf(e,qA.prototype),e};Object.setPrototypeOf(qA.prototype,Function.prototype);for(let[t,e]of Object.entries(Il))fv[t]={get(){let r=sP(this,oU(e.open,e.close,this[mv]),this[GA]);return Object.defineProperty(this,t,{value:r}),r}};fv.visible={get(){let t=sP(this,this[mv],!0);return Object.defineProperty(this,"visible",{value:t}),t}};sU=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?Il[r].ansi16m(...n):e==="ansi256"?Il[r].ansi256(Il.rgbToAnsi256(...n)):Il[r].ansi(Il.rgbToAnsi(...n)):t==="hex"?sU("rgb",e,r,...Il.hexToRgb(...n)):Il[r][t](...n),P2e=["rgb","hex","ansi256"];for(let t of P2e){fv[t]={get(){let{level:r}=this;return function(...n){let a=oU(sU(t,Pte[r],"color",...n),Il.color.close,this[mv]);return sP(this,a,this[GA])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);fv[e]={get(){let{level:r}=this;return function(...n){let a=oU(sU(t,Pte[r],"bgColor",...n),Il.bgColor.close,this[mv]);return sP(this,a,this[GA])}}}}D2e=Object.defineProperties(()=>{},{...fv,level:{enumerable:!0,get(){return this[iU].level},set(t){this[iU].level=t}}}),oU=(t,e,r)=>{let n,a;return r===void 0?(n=t,a=e):(n=r.openAll+t,a=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:a,parent:r}},sP=(t,e,r)=>{let n=(...a)=>R2e(n,a.length===1?""+a[0]:a.join(" "));return Object.setPrototypeOf(n,D2e),n[iU]=t,n[mv]=e,n[GA]=r,n},R2e=(t,e)=>{if(t.level<=0||!e)return t[GA]?"":e;let r=t[mv];if(r===void 0)return e;let{openAll:n,closeAll:a}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=wte(e,r.close,r.open),r=r.parent;let i=e.indexOf(`
|
|
@@ -50,7 +50,7 @@ ${e}`,L2e=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),B2e=Obj
|
|
|
50
50
|
`);return{buffer:[],stream:a}}flush(){let e=this.flushBuffer(this.buffer,this.mainLogStream,this.mainLogPath);this.buffer=e.buffer,this.mainLogStream=e.stream;let r=this.flushBuffer(this.debugBuffer,this.debugLogStream,this.debugLogPath);this.debugBuffer=r.buffer,this.debugLogStream=r.stream}close(){this.isClosing=!0,this.flush(),this.flushInterval&&(clearInterval(this.flushInterval),this.flushInterval=null),this.mainLogStream&&(this.mainLogStream.end(),this.mainLogStream=null),this.debugLogStream&&(this.debugLogStream.end(),this.debugLogStream=null),this.buffer=[],this.debugBuffer=[],this.initialised=!1,this.isClosing=!1}}});var wh,_l,XA=x(()=>{"use strict";wh={trace:0,debug:1,info:2,warn:3,error:4},_l={MAX_FILE_SIZE:10*1024*1024,MAX_FILES:5,MAX_BUFFER_SIZE:100,FLUSH_INTERVAL_MS:500,LOG_FILENAME:"fjall.jsonl",DEBUG_LOG_FILENAME:"fjall-debug.jsonl"}});import{join as hBe}from"path";import{homedir as gBe}from"os";function vv(){return process.env.FJALL_LOG_DIR??hBe(gBe(),".fjall","logs")}var QA=x(()=>{"use strict"});import{createWriteStream as yBe,existsSync as vBe,mkdirSync as SBe}from"fs";import{join as vre}from"path";var eC,kU=x(()=>{"use strict";XA();QA();eC=class{mainLogger;appName;operationType;logStream=null;logPath;deploymentId;buffer=[];flushInterval=null;isClosing=!1;maxBufferSize=_l.MAX_BUFFER_SIZE;constructor(e,r,n){this.mainLogger=e,this.appName=r,this.operationType=n,this.deploymentId=`${n}-${Date.now()}`;let a=vv(),i=vre(a,"deployments",r);vBe(i)||SBe(i,{recursive:!0});let s=new Date().toISOString().replace(/[:.]/g,"-"),o=`${n}-${s}.jsonl`;this.logPath=vre(i,o);try{this.logStream=yBe(this.logPath,{flags:"a"}),this.flushInterval=setInterval(()=>this.flush(),_l.FLUSH_INTERVAL_MS),this.info("DeploymentLogger","Deployment logging initialised",{appName:r,operationType:n,deploymentId:this.deploymentId,logPath:this.logPath})}catch{}}log(e,r,n,a,i,s){if(this.isClosing)return;let o={timestamp:new Date().toISOString(),level:e,component:r,message:n,correlationId:this.deploymentId,...a&&Object.keys(a).length>0&&{data:a},...i&&{stackName:i},...s&&{phase:s}};this.buffer.push(o),this.mainLogger.logWithCorrelation(e,r,n,this.deploymentId,a,i,s),this.buffer.length>=this.maxBufferSize&&this.flush()}flush(){if(!(this.buffer.length===0||!this.logStream)){for(let e of this.buffer)this.logStream.write(JSON.stringify(e)+`
|
|
51
51
|
`);this.buffer=[]}}info(e,r,n){this.log("info",e,r,n)}warn(e,r,n){this.log("warn",e,r,n)}error(e,r,n){this.log("error",e,r,n)}debug(e,r,n){this.log("debug",e,r,n)}stackEvent(e,r,n,a){this.log("info","StackDeployment",n,a,e,r)}dockerEvent(e,r){this.log("info","DockerOperation",e,{percentage:r})}ecsEvent(e,r,n){this.log("info","ECSDeployment",e,{percentage:r,taskCount:n})}close(){this.isClosing=!0,this.flush(),this.flushInterval&&(clearInterval(this.flushInterval),this.flushInterval=null),this.logStream&&(this.logStream.end(),this.logStream=null),this.buffer=[],this.isClosing=!1}getLogPath(){return this.logPath}getDeploymentId(){return this.deploymentId}}});import{join as PU}from"path";var yP,Sre=x(()=>{"use strict";nm();TU();yre();kU();XA();QA();TU();yP=class t{static instance=null;config;debugEnabled;traceEnabled;minLevel;fileWriter;mainLogPath;debugLogPath;constructor(){let e=vv(),r=PU(e,"debug"),n=this.parseEnvInt("FJALL_LOG_MAX_SIZE",_l.MAX_FILE_SIZE),a=this.parseEnvInt("FJALL_LOG_MAX_FILES",_l.MAX_FILES);this.config={logDir:e,debugLogDir:r,maxFileSize:n,maxFiles:a,maxBufferSize:_l.MAX_BUFFER_SIZE,flushIntervalMs:_l.FLUSH_INTERVAL_MS},this.mainLogPath=PU(e,_l.LOG_FILENAME),this.debugLogPath=PU(r,_l.DEBUG_LOG_FILENAME),this.debugEnabled=process.env.FJALL_DEBUG==="true"||process.env.FJALL_TRACE==="true"||process.argv.includes("--verbose")||process.argv.includes("-v"),this.traceEnabled=process.env.FJALL_TRACE==="true";let i=process.env.FJALL_LOG_LEVEL?.toLowerCase();i&&i in wh?this.minLevel=i:this.traceEnabled?this.minLevel="trace":this.debugEnabled?this.minLevel="debug":this.minLevel="info",this.fileWriter=new gP(this.config,this.mainLogPath,this.debugLogPath,this.debugEnabled)}parseEnvInt(e,r){let n=process.env[e];if(n){let a=parseInt(n,10);if(!isNaN(a)&&a>0)return a}return r}static getInstance(){return t.instance||(t.instance=new t),t.instance}shouldLog(e){return wh[e]>=wh[this.minLevel]}createEntry(e,r,n,a,i,s,o){return{timestamp:new Date().toISOString(),level:e,component:r,message:n,...i&&{correlationId:i},...a&&Object.keys(a).length>0&&{data:a},...s&&{stackName:s},...o&&{phase:o}}}log(e,r,n,a,i,s,o){if(!this.shouldLog(e))return;let c=this.createEntry(e,r,n,a,i,s,o),l=e==="debug"||e==="trace";this.fileWriter.write(c,l),this.writeConsole(c)}writeConsole(e){if(xr.shouldSuppressOutput||xr.isNonInteractive)return;let r=this.getConsolePrefix(e.level),n=`[${e.component}]`,a=`${r} ${n} ${e.message}`;e.level==="error"?console.error(a):e.level==="warn"?console.warn(a):console.log(a)}getConsolePrefix(e){switch(e){case"error":return"[ERROR]";case"warn":return"[WARN]";case"info":return"[INFO]";case"debug":return"[DEBUG]";case"trace":return"[TRACE]"}}error(e,r,n){this.log("error",e,r,n)}warn(e,r,n){this.log("warn",e,r,n)}info(e,r,n){this.log("info",e,r,n)}debug(e,r,n){this.log("debug",e,r,n)}trace(e,r,n){this.log("trace",e,r,n)}isDebugEnabled(){return this.debugEnabled}isTraceEnabled(){return this.traceEnabled}enableDebug(){this.debugEnabled=!0,wh[this.minLevel]>wh.debug&&(this.minLevel="debug"),this.fileWriter.setDebugEnabled(!0),this.fileWriter.isInitialised&&this.fileWriter.initialiseDebugStream()}withCorrelation(e){return new yv(this,e)}forDeployment(e,r="deploy"){return new eC(this,e,r)}close(){this.fileWriter.close()}getLogPath(){return this.mainLogPath}getDebugLogPath(){return this.debugLogPath}getLogDir(){return this.config.logDir}logWithCorrelation(e,r,n,a,i,s,o){this.log(e,r,n,i,a,s,o)}static reset(){t.instance&&(t.instance.close(),t.instance=null)}}});var w,ne=x(()=>{"use strict";Sre();IU();XA();QA();QA();kU();XA();w=yP.getInstance()});var DU,tC,RU=x(()=>{"use strict";ne();nC();DU=class{info(e){vP(e)}error(e){SP(e)}warning(e){xre(e)}success(e){Ere(e)}debug(e){w.debug("CLI",e)}startSpinner(e){return bre(e)}stopSpinner(){Th()}updateSpinner(e){rC(e)}},tC=class{mode="cli";suppressOutput=!1;isNonInteractive;clearCacheOnAuthFailure=!1;logger;constructor(e={}){this.isNonInteractive=e.noPrompt??!1,this.logger=new DU}}});var OU,aC,NU=x(()=>{"use strict";OU=class{info(e){}error(e){}warning(e){}success(e){}debug(e){}startSpinner(e){return null}stopSpinner(){}updateSpinner(e){}},aC=class{mode="ink";suppressOutput=!0;isNonInteractive=!1;clearCacheOnAuthFailure=!0;logger;constructor(){this.logger=new OU}}});var xr,Are=x(()=>{"use strict";RU();NU();xr=class{static stack=[];static _isNonInteractive=!1;static get current(){return this.stack.length===0?new tC({noPrompt:!1}):this.stack[this.stack.length-1]}static get isNonInteractive(){return this._isNonInteractive}static enterNonInteractiveMode(){this._isNonInteractive=!0}static exitNonInteractiveMode(){this._isNonInteractive=!1}static getContext(){return this.stack.length>0?this.stack[this.stack.length-1]:void 0}static push(e){this.stack.push(e)}static pop(){this.stack.length>0&&this.stack.pop()}static enterUIMode(){this.push(new aC)}static exitUIMode(){this.pop()}static async withContext(e,r){this.push(e);try{return await r()}finally{this.pop()}}static get isUIMode(){return this.current.mode==="ink"}static get shouldSuppressOutput(){return this.current.suppressOutput}static reset(){this.stack=[]}}});var nm=x(()=>{"use strict";lre();RU();NU();Are()});function vP(t,...e){xr.shouldSuppressOutput||(On&&On.stop(),console.log(t,...e),On&&On.start())}function Ere(t,...e){xr.shouldSuppressOutput||(On?(On.succeed(K.hex("#A4C2A5")(`\u2705 ${t}`)),On=null):console.log(K.hex("#A4C2A5")(`\u2705 ${t}`),...e))}function xre(t,...e){xr.shouldSuppressOutput||(On?(On.warn(`\u26A0\uFE0F ${t}`),On=null):console.log(K.yellow(`\u26A0\uFE0F ${t}`),...e))}function SP(t,...e){xr.shouldSuppressOutput||(On?(On.fail(K.red.bold(`\u274C Error: ${t}`)),On=null):console.error(K.red.bold(`\u274C Error: ${t}`),...e))}function FU(){return xr.shouldSuppressOutput||xr.isNonInteractive}function bre(t){if(FU())return null;if(On)return On.text=t,On;let e=K.hex("#FF7BFF")(t);return On=hP({text:e,spinner:Cre,color:"magenta"}).start(),On}function rC(t){if(FU())return null;if(On)On.text=K.hex("#FF7BFF")(t);else{let e=K.hex("#FF7BFF")(t);On=hP({text:e,spinner:Cre,color:"magenta"}).start()}return On}function Th(){FU()||On&&(On.stop(),On=null)}var Cre,On,nC=x(()=>{"use strict";Rn();cre();nm();Cre={interval:150,frames:["\u2726","\u2727","\u2736","\u2737","\u2738","\u2739","\u273A","\u273B"]},On=null});var Tre=x(()=>{});var Ire=x(()=>{Tre()});var _re=x(()=>{});var kre=x(()=>{});var Pre=x(()=>{});var Dre=x(()=>{});var EP,Rre=x(()=>{EP=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var Ore=x(()=>{});var Nre=x(()=>{});var Fre=x(()=>{Ire();_re();kre();Pre();Dre();Rre();Ore();Nre()});var xP,EBe,Mre=x(()=>{xP=t=>encodeURIComponent(t).replace(/[!'()*]/g,EBe),EBe=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`});var $re=x(()=>{});var Lre=x(()=>{Mre();$re()});function Bre(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=xP(r),Array.isArray(n))for(let a=0,i=n.length;a<i;a++)e.push(`${r}=${xP(n[a])}`);else{let a=r;(n||typeof n=="string")&&(a+=`=${xP(n)}`),e.push(a)}}return e.join("&")}var Ure=x(()=>{Lre()});function MU(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let a=new Error("Request aborted");return a.name="AbortError",a.cause=e,a}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}var jre=x(()=>{});var zre,Vre=x(()=>{zre=["ECONNRESET","EPIPE","ETIMEDOUT"]});var Wre,Gre=x(()=>{Wre=t=>{let e={};for(let r of Object.keys(t)){let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e}});var Ca,Ih=x(()=>{Ca={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)}});var qre,Hre,Kre=x(()=>{Ih();qre=1e3,Hre=(t,e,r=0)=>{if(!r)return-1;let n=a=>{let i=Ca.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-a),s=o=>{o?.connecting?o.on("connect",()=>{Ca.clearTimeout(i)}):Ca.clearTimeout(i)};t.socket?s(t.socket):t.on("socket",s)};return r<2e3?(n(0),0):Ca.setTimeout(n.bind(null,qre),qre)}});var Yre,Zre=x(()=>{Ih();Yre=(t,e,r=0,n,a)=>r?Ca.setTimeout(()=>{let i=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let s=Object.assign(new Error(i),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(s),e(s)}else i+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",a?.warn?.(i)},r):-1});var xBe,Jre,Xre=x(()=>{Ih();xBe=3e3,Jre=(t,{keepAlive:e,keepAliveMsecs:r},n=xBe)=>{if(e!==!0)return-1;let a=()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",i=>{i.setKeepAlive(e,r||0)})};return n===0?(a(),0):Ca.setTimeout(a,n)}});var Qre,ene,tne=x(()=>{Ih();Qre=3e3,ene=(t,e,r=0)=>{let n=a=>{let i=r-a,s=()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};t.socket?(t.socket.setTimeout(i,s),t.on("close",()=>t.socket?.removeListener("timeout",s))):t.setTimeout(i,s)};return 0<r&&r<6e3?(n(0),0):Ca.setTimeout(n.bind(null,r===0?0:Qre),Qre)}});import{Readable as bBe}from"node:stream";async function nne(t,e,r=rne,n=!1){let a=e.headers??{},i=a.Expect||a.expect,s=-1,o=!0;!n&&i==="100-continue"&&(o=await Promise.race([new Promise(c=>{s=Number(Ca.setTimeout(()=>c(!0),Math.max(rne,r)))}),new Promise(c=>{t.on("continue",()=>{Ca.clearTimeout(s),c(!0)}),t.on("response",()=>{Ca.clearTimeout(s),c(!1)}),t.on("error",()=>{Ca.clearTimeout(s),c(!1)})})])),o&&ABe(t,e.body)}function ABe(t,e){if(e instanceof bBe){e.pipe(t);return}if(e){let r=Buffer.isBuffer(e);if(r||typeof e=="string"){r&&e.byteLength===0?t.end():t.end(e);return}let a=e;if(typeof a=="object"&&a.buffer&&typeof a.byteOffset=="number"&&typeof a.byteLength=="number"){t.end(Buffer.from(a.buffer,a.byteOffset,a.byteLength));return}t.end(Buffer.from(e));return}t.end()}var rne,ane=x(()=>{Ih();rne=6e3});import{Agent as $U,request as CBe}from"node:https";var bP,ine,Ga,sne=x(()=>{Fre();Ure();jre();Vre();Gre();Kre();Zre();Xre();tne();Ih();ane();Ga=class t{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new t(e)}static checkSocketUsage(e,r,n=console){let{sockets:a,requests:i,maxSockets:s}=e;if(typeof s!="number"||s===1/0||Date.now()-15e3<r)return r;if(a&&i)for(let c in a){let l=a[c]?.length??0,u=i[c]?.length??0;if(l>=s&&u>=2*s)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${l} and ${u} additional requests are enqueued.
|
|
52
52
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
53
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(a=>{r(this.resolveDefaultConfig(a))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let a=this.config,i=e.protocol==="https:";return!i&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((s,o)=>{let c,l=[],u=async O=>{await c,l.forEach(Ca.clearTimeout),s(O)},p=async O=>{await c,l.forEach(Ca.clearTimeout),o(O)};if(r?.aborted){let O=MU(r);p(O);return}let d=e.headers??{},m=(d.Expect??d.expect)==="100-continue",f=i?a.httpsAgent:a.httpAgent;m&&!this.externalAgent&&(f=new(i?$U:bP)({keepAlive:!1,maxSockets:1/0})),l.push(Ca.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(f,this.socketWarningTimestamp,a.logger)},a.socketAcquisitionWarningTimeout??(a.requestTimeout??2e3)+(a.connectionTimeout??1e3)));let h=Bre(e.query||{}),g;if(e.username!=null||e.password!=null){let O=e.username??"",R=e.password??"";g=`${O}:${R}`}let S=e.path;h&&(S+=`?${h}`),e.fragment&&(S+=`#${e.fragment}`);let E=e.hostname??"";E[0]==="["&&E.endsWith("]")?E=e.hostname.slice(1,-1):E=e.hostname;let A={headers:e.headers,host:E,method:e.method,path:S,port:e.port,agent:f,auth:g},I=(i?CBe:ine)(A,O=>{let R=new EP({statusCode:O.statusCode||-1,reason:O.statusMessage,headers:Wre(O.headers),body:O});u({response:R})});if(I.on("error",O=>{zre.includes(O.code)?p(Object.assign(O,{name:"TimeoutError"})):p(O)}),r){let O=()=>{I.destroy();let R=MU(r);p(R)};if(typeof r.addEventListener=="function"){let R=r;R.addEventListener("abort",O,{once:!0}),I.once("close",()=>R.removeEventListener("abort",O))}else r.onabort=O}let P=n??a.requestTimeout;l.push(Hre(I,p,a.connectionTimeout)),l.push(Yre(I,p,P,a.throwOnRequestTimeout,a.logger??console)),l.push(ene(I,p,a.socketTimeout));let D=A.agent;typeof D=="object"&&"keepAlive"in D&&l.push(Jre(I,{keepAlive:D.keepAlive,keepAliveMsecs:D.keepAliveMsecs})),c=nne(I,e,P,this.externalAgent).catch(O=>(l.forEach(Ca.clearTimeout),o(O)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:a,socketAcquisitionWarningTimeout:i,httpAgent:s,httpsAgent:o,throwOnRequestTimeout:c,logger:l}=e||{},u=!0,p=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:a,socketAcquisitionWarningTimeout:i,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let{Agent:d,request:m}=await import("node:http");return ine=m,bP=d,s instanceof bP||typeof s?.destroy=="function"?(this.externalAgent=!0,s):new bP({keepAlive:u,maxSockets:p,...s})},httpsAgent:o instanceof $U||typeof o?.destroy=="function"?(this.externalAgent=!0,o):new $U({keepAlive:u,maxSockets:p,...o}),logger:l}}}});var one=x(()=>{});var cne=x(()=>{});var am=x(()=>{sne();one();cne()});function Wi(t){let e=t.replace(/\./g,"-");return{hostedZoneId:`${e}-hosted-zone-id`,certificateArn:`${e}-certificate-arn`,delegationRoleArn:`${e}-delegation-role-arn`,nameservers:`${e}-nameservers`}}var AP,lne=x(()=>{"use strict";AP="@"});function Vt(t){return t.replace(/[-_](.)/g,(e,r)=>r.toUpperCase()).replace(/^./,e=>e.toUpperCase())}function Uo(t){return t.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z\d])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function _h(t){return Uo(t).replace(/-/g,"_")}function so(t){return t.length===0?t:t.charAt(0).toUpperCase()+t.slice(1)}function CP(t){return t.split(".").join("")}var une=x(()=>{"use strict"});function Cr(t){return t instanceof Error?t:new Error(String(t))}function T(t){return t instanceof Error?t.message:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t?String(t.message):"An unknown error occurred"}function wP(t,e){return!t||typeof t!="object"?!1:"code"in t&&t.code===e}function iC(t){if(!(!t||typeof t!="object")&&"code"in t&&typeof t.code=="string")return t.code}function Sv(t){return t instanceof Error?t.stack:void 0}function TP(t){let e=T(t),r=iC(t);return r&&r!=="UNKNOWN_ERROR"?`[${r}] ${e}`:e}var pne=x(()=>{"use strict"});function ot(t){let e,r=!1;return()=>(r||(e=t(),r=!0),e)}var dne=x(()=>{"use strict"});function Ot(t){return Object.fromEntries(Object.entries(t).filter(([e])=>!LU.has(e.toUpperCase())))}function _(t){return t.replace(/(\w+:\/\/[^:]+:)[^@]+(@)/gi,"$1***$2").replace(/(?<![a-zA-Z])(password|passwd|secret|api[_-]?key|token|auth|credential)([=:])["']?[^\s"']+/gi,"$1$2***").replace(/\b(ghu_|ghs_|ghp_|github_pat_)[A-Za-z0-9_]+/g,"***").replace(/(?<=Authorization:\s*Bearer\s+)[A-Za-z0-9._~+/=-]+/gi,"***").replace(/(?<=AWS_SECRET_ACCESS_KEY=|SecretAccessKey[=:]\s*|"secretAccessKey":\s*")[A-Za-z0-9/+=]{40,}/g,"***").replace(new RegExp(wBe.source,"g"),"fjall_ak_***")}function Np(t){let e=[],r="",n=!1,a=!1,i=!1,s=!1;for(let o of t){if(i){r+=o,i=!1;continue}if(o==="\\"&&!n){i=!0;continue}if(o==="'"&&!a){n=!n,s=!0;continue}if(o==='"'&&!n){a=!a,s=!0;continue}if(o===" "&&!n&&!a){(r||s)&&(e.push(r),r="",s=!1);continue}r+=o}if(n||a)throw new Error(`Unbalanced ${n?"single":"double"} quote in command: ${t.slice(0,80)}`);if(i)throw new Error(`Trailing backslash in command: ${t.slice(0,80)}`);return(r||s)&&e.push(r),e}var LU,wBe,mne=x(()=>{"use strict";LU=new Set(["NODE_OPTIONS","NODE_PATH","NODE_EXTRA_CA_CERTS","NODE_DEBUG","NODE_PRESERVE_SYMLINKS","LD_PRELOAD","LD_LIBRARY_PATH","LD_AUDIT","LD_BIND_NOW","DYLD_INSERT_LIBRARIES","DYLD_LIBRARY_PATH","DYLD_FRAMEWORK_PATH","PYTHONPATH","PYTHONSTARTUP","PERL5LIB","PERL5OPT","RUBYLIB","RUBYOPT","HOME","XDG_CONFIG_HOME","AWS_SHARED_CREDENTIALS_FILE","AWS_CONFIG_FILE","SHELL","BASH_ENV","ENV","ZDOTDIR"]);wBe=/fjall_ak_[A-Z2-7]{16}\.[A-Z2-7]{40}/});var it,fne=x(()=>{"use strict";it=t=>new Promise(e=>setTimeout(e,t))});function BU(t){return kh.includes(t)}function hne(t){return BU(t)?sC[t]:t.charAt(0).toUpperCase()+t.slice(1)}var kh,ua,sC,gne=x(()=>{"use strict";kh=["production","staging","development","platform","compliance"];ua={ROOT:"root",PLATFORM:"platform"},sC={production:"Production",staging:"Staging",development:"Development",platform:"Platform",compliance:"Compliance"}});function im(t){if(!t)return"compute";if(t.startsWith("Custom::"))return yne[t]??"compute";let e=yne[t];return e||TBe.add(t),e??"compute"}function oC(t){return IBe[t]??_Be}function gs(t){return kBe[t]||t.split("::").pop()||t}var IP,yne,TBe,IBe,_Be,kBe,UU=x(()=>{"use strict";IP=["security","network","compute","database","storage","monitoring","dns","identity","bootstrap","events","registry","backup"],yne=Object.freeze({"AWS::IAM::Role":"security","AWS::IAM::Policy":"security","AWS::IAM::OIDCProvider":"security","AWS::EC2::SecurityGroup":"security","AWS::KMS::Key":"security","AWS::KMS::Alias":"security","AWS::EC2::VPC":"network","AWS::EC2::Subnet":"network","AWS::EC2::InternetGateway":"network","AWS::EC2::NatGateway":"network","AWS::EC2::RouteTable":"network","AWS::EC2::Route":"network","AWS::EC2::VPCGatewayAttachment":"network","AWS::EC2::SubnetRouteTableAssociation":"network","AWS::EC2::EIP":"network","AWS::ECS::Cluster":"compute","AWS::ECS::Service":"compute","AWS::ECS::TaskDefinition":"compute","AWS::Lambda::Function":"compute","AWS::ElasticLoadBalancingV2::LoadBalancer":"compute","AWS::ElasticLoadBalancingV2::TargetGroup":"compute","AWS::ElasticLoadBalancingV2::Listener":"compute","AWS::ElasticLoadBalancingV2::ListenerRule":"compute","AWS::RDS::DBInstance":"database","AWS::RDS::DBCluster":"database","AWS::SecretsManager::Secret":"database","AWS::S3::Bucket":"storage","AWS::S3::BucketPolicy":"storage","AWS::CloudTrail::Trail":"monitoring","AWS::CloudWatch::Alarm":"monitoring","AWS::Logs::LogGroup":"monitoring","AWS::Events::EventBus":"events","AWS::Events::Rule":"events","AWS::ECR::Repository":"registry","AWS::CodeBuild::Project":"registry","AWS::Route53::RecordSet":"dns","AWS::CertificateManager::Certificate":"dns","AWS::CloudFront::Distribution":"dns","AWS::Backup::BackupVault":"backup","AWS::Backup::BackupPlan":"backup","AWS::Backup::BackupSelection":"backup","AWS::SSO::PermissionSet":"identity","AWS::SSO::Assignment":"identity","AWS::Organizations::Account":"identity","AWS::CDK::Metadata":"compute","AWS::CloudFormation::CustomResource":"compute","AWS::CloudFormation::WaitCondition":"compute","AWS::CloudFormation::WaitConditionHandle":"compute"}),TBe=new Set;IBe=Object.freeze({"AWS::EC2::NatGateway":120,"AWS::RDS::DBInstance":300,"AWS::RDS::DBCluster":300,"AWS::CloudFront::Distribution":300,"AWS::ECS::Service":180,"AWS::ElasticLoadBalancingV2::LoadBalancer":60,"AWS::EC2::SecurityGroup":10,"AWS::IAM::Role":15,"AWS::IAM::Policy":15,"AWS::IAM::OIDCProvider":10,"AWS::S3::Bucket":10,"AWS::S3::BucketPolicy":5,"AWS::Lambda::Function":30,"AWS::EC2::VPC":15,"AWS::EC2::Subnet":15,"AWS::EC2::InternetGateway":10,"AWS::EC2::RouteTable":5,"AWS::EC2::Route":5,"AWS::EC2::VPCGatewayAttachment":10,"AWS::EC2::SubnetRouteTableAssociation":5,"AWS::EC2::EIP":10,"AWS::ECS::Cluster":15,"AWS::ECS::TaskDefinition":10,"AWS::ElasticLoadBalancingV2::TargetGroup":10,"AWS::ElasticLoadBalancingV2::Listener":10,"AWS::ElasticLoadBalancingV2::ListenerRule":5,"AWS::SecretsManager::Secret":10,"AWS::Logs::LogGroup":5,"AWS::CloudWatch::Alarm":10,"AWS::CloudTrail::Trail":15,"AWS::Events::EventBus":5,"AWS::Events::Rule":5,"AWS::ECR::Repository":10,"AWS::Route53::RecordSet":30,"AWS::CertificateManager::Certificate":60,"AWS::KMS::Key":15,"AWS::KMS::Alias":5,"AWS::Backup::BackupVault":10,"AWS::Backup::BackupPlan":10,"AWS::Backup::BackupSelection":10,"AWS::SSO::PermissionSet":15,"AWS::SSO::Assignment":10,"AWS::Organizations::Account":60}),_Be=30;kBe=Object.freeze({"AWS::Lambda::Function":"Lambda Function","AWS::IAM::Role":"IAM Role","AWS::IAM::Policy":"IAM Policy","AWS::S3::Bucket":"S3 Bucket","AWS::DynamoDB::Table":"DynamoDB Table","AWS::EC2::Instance":"EC2 Instance","AWS::EC2::SecurityGroup":"Security Group","AWS::EC2::VPC":"VPC","AWS::EC2::Subnet":"Subnet","AWS::EC2::InternetGateway":"Internet Gateway","AWS::EC2::RouteTable":"Route Table","AWS::EC2::Route":"Route","AWS::ECS::Cluster":"ECS Cluster","AWS::ECS::Service":"ECS Service","AWS::ECS::TaskDefinition":"Task Definition","AWS::ElasticLoadBalancingV2::LoadBalancer":"Load Balancer","AWS::ElasticLoadBalancingV2::TargetGroup":"Target Group","AWS::ElasticLoadBalancingV2::Listener":"Listener","AWS::CloudFormation::Stack":"CloudFormation Stack","AWS::CDK::Metadata":"CDK Metadata","Custom::CDKBucketDeployment":"Bucket Deployment","AWS::SSM::Parameter":"SSM Parameter","AWS::CloudWatch::Alarm":"CloudWatch Alarm","AWS::Logs::LogGroup":"Log Group","AWS::ApiGateway::RestApi":"API Gateway","AWS::ApiGateway::Deployment":"API Deployment","AWS::ApiGateway::Stage":"API Stage","AWS::ApiGateway::Method":"API Method","AWS::ApiGateway::Resource":"API Resource","AWS::CloudFront::Distribution":"CloudFront Distribution","AWS::Route53::RecordSet":"Route53 Record","AWS::RDS::DBInstance":"RDS Instance","AWS::RDS::DBCluster":"RDS Cluster","AWS::SQS::Queue":"SQS Queue","AWS::SNS::Topic":"SNS Topic","AWS::Events::Rule":"EventBridge Rule","AWS::StepFunctions::StateMachine":"Step Function","AWS::EC2::NatGateway":"NAT Gateway","AWS::EC2::EIP":"Elastic IP","AWS::EC2::VPCGatewayAttachment":"Gateway Attachment","AWS::EC2::SubnetRouteTableAssociation":"Route Association","AWS::CloudTrail::Trail":"CloudTrail","AWS::IAM::OIDCProvider":"OIDC Provider","AWS::Events::EventBus":"Event Bus","AWS::Backup::BackupVault":"Backup Vault","AWS::Backup::BackupPlan":"Backup Plan","AWS::Backup::BackupSelection":"Backup Selection","AWS::SecretsManager::Secret":"Secret","AWS::KMS::Key":"KMS Key","AWS::KMS::Alias":"KMS Alias","AWS::ECR::Repository":"ECR Repository","AWS::CertificateManager::Certificate":"Certificate","AWS::ElasticLoadBalancingV2::ListenerRule":"Listener Rule","AWS::EC2::IPAM":"IPAM","AWS::EC2::IPAMPool":"IPAM Pool","AWS::EC2::IPAMPoolCidr":"IPAM Pool CIDR","Custom::ram":"RAM","Custom::ipamDelegateAdmin":"IPAM Delegate Admin","Custom::CostAllocationTags":"Cost Allocation Tags","Custom::ActivateOrganisationsAccess":"Activate Organisations Access","Custom::Organizations_TagResource":"Organisations Tag Resource","AWS::CloudFormation::CustomResource":"Custom Resource","AWS::CloudFormation::WaitCondition":"Wait Condition","AWS::CloudFormation::WaitConditionHandle":"Wait Condition Handle","AWS::SSO::PermissionSet":"SSO Permission Set","AWS::SSO::Assignment":"SSO Assignment","AWS::Organizations::Account":"Organisations Account","AWS::S3::BucketPolicy":"S3 Bucket Policy","AWS::CodeBuild::Project":"CodeBuild Project"})});function _P(t){if(!t)return null;let e=t.replace(/^(https?:\/\/)[^@]+@/,"$1"),r=e.match(DBe)??e.match(RBe)??t.match(OBe);if(!r)return null;let[,n,a,i]=r;return!n||!a||!i?null:{provider:PBe[n]??"other",owner:a,repo:i,host:n}}var PBe,DBe,RBe,OBe,vne=x(()=>{"use strict";PBe={"github.com":"github","gitlab.com":"gitlab","bitbucket.org":"bitbucket"},DBe=/^https?:\/\/([^/]+)\/(.+?)\/([^/.]+?)(?:\.git)?$/,RBe=/^git@([^:]+):(.+?)\/([^/.]+?)(?:\.git)?$/,OBe=/^ssh:\/\/[^@]+@([^:/]+)(?::\d+)?\/(.+?)\/([^/.]+?)(?:\.git)?$/});function Ph(t){let e=t.split("-");return e.length===3&&e[0]&&e[1]&&e[1].length>0&&e[2]?`${e[0]}${e[1][0]}${e[2]}`:t}var jU=x(()=>{"use strict"});function kl(t){let e=[t.primaryRegion,...t.secondaryRegions??[],t.disasterRecoveryRegion].filter(r=>r!==void 0);return[...new Set(e)]}function Fp(t,e){return`${t.toLowerCase()}-${Ph(e)}`}function Mp(t,e){let r=[];for(let n of t)if(n.environment!=="root")for(let a of e)r.push({name:Fp(n.name,a),accountName:n.name,accountId:n.id,environment:n.environment,region:a});return r.sort((n,a)=>{let i=n.environment.localeCompare(a.environment);if(i!==0)return i;let s=n.accountName.localeCompare(a.accountName);return s!==0?s:n.region.localeCompare(a.region)})}function $p(t){return Mp(t.providerAccounts,kl(t))}function xc(t,e){return t.find(r=>r.name===e)}var Sne=x(()=>{"use strict";jU()});var Ene={};Lt(Ene,{DANGEROUS_ENV_VARS:()=>LU,DNS_APEX:()=>AP,ENVIRONMENT_LABELS:()=>sC,RESOURCE_CATEGORIES:()=>IP,STANDARD_ENVIRONMENTS:()=>kh,STRUCTURAL_ENVIRONMENTS:()=>ua,abbreviateRegion:()=>Ph,capitalise:()=>so,categoriseResource:()=>im,deriveAllTargets:()=>$p,deriveRegionsFromOrgConfig:()=>kl,deriveTargets:()=>Mp,filterDangerousEnvVars:()=>Ot,findTarget:()=>xc,formatErrorString:()=>TP,generateTargetName:()=>Fp,getDomainExportNames:()=>Wi,getEnvironmentLabel:()=>hne,getErrorCode:()=>iC,getErrorMessage:()=>T,getErrorStack:()=>Sv,getExpectedDuration:()=>oC,getFriendlyResourceType:()=>gs,getSafeZoneName:()=>CP,hasErrorCode:()=>wP,isValidEnvironment:()=>BU,maskSensitiveOutput:()=>_,normaliseError:()=>Cr,parseGitRemoteUrl:()=>_P,parseShellArgs:()=>Np,singleton:()=>ot,sleep:()=>it,toKebab:()=>Uo,toPascalCase:()=>Vt,toValidDatabaseName:()=>_h});var W=x(()=>{"use strict";lne();une();pne();dne();mne();fne();gne();UU();vne();jU();Sne()});var kP=x(()=>{"use strict";W()});function Lp(t){return t.success===!0}function xt(t){return t.success===!1}function b(t){return{success:!0,data:t}}function y(t){return{success:!1,error:t}}async function Bp(t){try{let e=await t();return b(e)}catch(e){return y(Cr(e))}}function Pl(t){try{let e=t();return b(e)}catch(e){return y(Cr(e))}}var gi=x(()=>{"use strict";kP()});var fr,M,Dl=x(()=>{"use strict";fr=Object.freeze({IDENTIFIER:/^[a-zA-Z][a-zA-Z0-9-]*$/,RESOURCE_NAME:/^[a-zA-Z][a-zA-Z0-9]*$/,ECS_SERVICE_NAME:/^[a-zA-Z][a-zA-Z0-9-]*$/,BUCKET_NAME:/^[a-z][a-z0-9-]*[a-z0-9]$|^[a-z][a-z0-9]*$/,DATABASE_NAME:/^[a-zA-Z][a-zA-Z0-9_]*$/,RESOURCE_TYPE:/^[a-z]+(:[a-z]+)?$/,SSM_PATH:/^\/[a-zA-Z][a-zA-Z0-9-]*(\/[a-zA-Z][a-zA-Z0-9-]*)*$/,SECRET_NAME:/^[a-zA-Z_][a-zA-Z0-9._-]*$/,SSM_COMPONENT:/^[a-zA-Z][a-zA-Z0-9._-]*$/,EMAIL:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,DOCKER_IMAGE:/^[a-z0-9][a-z0-9._-]*[a-z0-9](:[a-z0-9._-]+)?$/,DOMAIN:/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/i}),M=Object.freeze({IDENTIFIER:"Must start with a letter, contain only letters, numbers, and hyphens",IDENTIFIER_MIN_LENGTH:"Must be at least 2 characters",IDENTIFIER_NO_TRAILING_HYPHEN:"Must not end with a hyphen",IDENTIFIER_NO_CONSECUTIVE_HYPHENS:"Must not contain consecutive hyphens",RESOURCE_NAME:"Must start with a letter and contain only letters and numbers (PascalCase recommended)",ECS_SERVICE_NAME:"Service name must start with a letter and contain only letters, numbers, and hyphens",BUCKET_NAME:"Bucket name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens",DATABASE_NAME:"Database name must start with a letter and contain only letters, numbers, and underscores",RESOURCE_TYPE:"Resource type must be in format 'category' or 'category:type'",SSM_PATH:"SSM path must start with / and contain valid namespace segments (e.g., /myapp/ApiCluster/service)",SECRET_NAME:"Secret name must start with a letter or underscore and contain only letters, numbers, underscores, hyphens, or periods",SSM_COMPONENT:"Must start with a letter and contain only letters, numbers, periods, hyphens, or underscores",EMAIL:"Please enter a valid email address",DOMAIN:"Please enter a valid domain (e.g., cms.example.com)",DOCKER_IMAGE:"Invalid Docker image name format",REQUIRED:{APP_NAME:"Application name is required",RESOURCE_NAME:"Resource name is required",BUCKET_NAME:"Bucket name is required",SERVICE_NAME:"Service name is required",NETWORK_NAME:"Network name is required",DATABASE_NAME:"Database name is required",ORGANISATION_NAME:"Organisation name is required",EMAIL:"Email is required",NAME:"Name is required",USERNAME:"Username is required",CONTAINER_NAME:"Container name is required",FIRST_NAME:"First name is required",LAST_NAME:"Last name is required",GROUP:"Group is required",PATTERN_NAME:"Pattern name is required",ROUTING_PATH:"Routing path is required",RESOURCE_TYPE:"Resource type is required",VARIANT:"Variant is required",SUBTYPE:"Subtype is required",DEPLOY_TARGET:"Deploy target is required",DESTROY_TARGET:"Destroy target is required"},MAX_LENGTH:{APP_NAME:"Application name must be 50 characters or less",RESOURCE_NAME:"Resource name must be 63 characters or less",BUCKET_NAME:"Bucket name must be 63 characters or less",SERVICE_NAME:"Service name must be 255 characters or less",NETWORK_NAME:"Network name must be 50 characters or less",DATABASE_NAME:"Database name must be 63 characters or less",ORGANISATION_NAME:"Organisation name must be 50 characters or less"},PORT:{INTEGER:"Port must be an integer",MIN:"Port must be at least 1",MAX:"Port cannot exceed 65535"},USERNAME:{MAX_LENGTH:"Username cannot exceed 63 characters"},LAMBDA:{MEMORY:{INTEGER:"Lambda memory must be an integer",MIN:"Memory must be at least 128 MB",MAX:"Memory cannot exceed 10240 MB",MULTIPLE:"Memory must be 128 MB or a multiple of 64 MB"},TIMEOUT:{INTEGER:"Timeout must be an integer",MIN:"Timeout must be at least 1 second",MAX:"Timeout cannot exceed 900 seconds"}},PRIORITY:{INTEGER:"Priority must be an integer",MIN:"Priority must be at least 1",MAX:"Priority cannot exceed 50000"},CAPACITY:{MIN:{INTEGER:"Minimum capacity must be an integer",MIN_0:"Minimum capacity must be at least 0",MIN_1:"Minimum capacity must be at least 1",MAX:"Minimum capacity cannot exceed 100"},MAX:{INTEGER:"Maximum capacity must be an integer",MIN_0:"Maximum capacity must be at least 0",MIN_1:"Maximum capacity must be at least 1",MAX:"Maximum capacity cannot exceed 100"},DESIRED:{INTEGER:"Desired count must be an integer",MIN:"Desired count must be at least 0",MAX:"Desired count cannot exceed 100"},WARM_POOL_REQUIRED:"minCapacity 0 requires a warmPool \u2014 without it, new tasks wait 60-90s for a cold instance launch",WARM_POOL:{MIN_SIZE:{INTEGER:"Warm pool minSize must be an integer",MIN:"Warm pool minSize must be at least 0",MAX:"Warm pool minSize cannot exceed 100"},MIN_SIZE_EXCEEDS_MAX_CAPACITY:"warmPool.minSize cannot exceed maxCapacity \u2014 the warm pool cannot hold more instances than the ASG allows"}},MEMORY_LIMIT:{INTEGER:"Memory limit must be an integer",MIN_512:"Memory limit must be at least 512 MiB",MIN_128:"Memory limit must be at least 128 MiB",MAX:"Memory limit cannot exceed 30720 MiB"},DATABASE:{PORT:{INTEGER:"Database port must be an integer",MIN:"Database port must be at least 1024",MAX:"Database port cannot exceed 65535"},NAME:{REQUIRED:"Database name is required",MAX_LENGTH:"Database name cannot exceed 64 characters"}},BACKUP_RETENTION:{INTEGER:"Backup retention must be an integer",MIN:"Backup retention must be at least 1 day",MAX:"Backup retention cannot exceed 35 days"},SQS:{VISIBILITY_TIMEOUT:{INTEGER:"Visibility timeout must be an integer",MIN:"Visibility timeout must be at least 0 seconds",MAX:"Visibility timeout cannot exceed 43200 seconds (12 hours)"},RETENTION_PERIOD:{INTEGER:"Retention period must be an integer",MIN:"Retention period must be at least 60 seconds",MAX:"Retention period cannot exceed 1209600 seconds (14 days)"}},READER:{COUNT:{INTEGER:"Reader count must be an integer",MIN:"Reader count must be at least 0",MAX:"Reader count cannot exceed 15"}},IDENTIFIER_SUFFIX:{REQUIRED:"Identifier suffix is required when specified",MAX_LENGTH:"Identifier suffix cannot exceed 50 characters"},ROTATION:{INTEGER:"Rotation days must be an integer",MIN:"Rotation interval must be at least 1 day",MAX:"Rotation interval cannot exceed 365 days"},MAX_CONNECTIONS:{INTEGER:"Max connections must be an integer",MIN:"Max connections must be at least 1",MAX:"Max connections cannot exceed 100"},MONITORING_INTERVAL:{INTEGER:"Monitoring interval must be an integer",MIN:"Monitoring interval must be at least 0",MAX:"Monitoring interval cannot exceed 60 seconds",VALUES:"Monitoring interval must be 0, 1, 5, 10, 15, 30, or 60 seconds"},RETENTION_DAYS:{INTEGER:"Retention days must be an integer",MIN:"Retention days must be at least 1",MAX:"Retention days cannot exceed 365"},BATCH_SIZE:{INTEGER:"Batch size must be an integer",MIN:"Batch size must be at least 1",MAX:"Batch size cannot exceed 10000"},SERVICE:{UNIQUE_WITHIN_CLUSTER:"Service names must be unique within a cluster",MIN_REQUIRED:"At least one service is required",ROUTING_REQUIRED:"Multiple services with ports require routing config (path or host)"},PROXY_CONFIG:{MAX_IDLE_CONNECTIONS:{INTEGER:"Max idle connections must be an integer",MIN:"Max idle connections must be at least 0",MAX:"Max idle connections cannot exceed 100"},BORROW_TIMEOUT:{INTEGER:"Connection borrow timeout must be an integer",MIN:"Connection borrow timeout must be at least 1 second",MAX:"Connection borrow timeout cannot exceed 3600 seconds"}},MAX_AZS:{INTEGER:"Max AZs must be an integer",MIN:"Max AZs must be at least 1",MAX:"Max AZs cannot exceed 3"},BATCHING_WINDOW:{INTEGER:"Max batching window must be an integer",MIN:"Max batching window must be at least 0",MAX:"Max batching window cannot exceed 300 seconds"},HEALTH_CHECK:{INTERVAL:{INTEGER:"Health check interval must be an integer",MIN:"Health check interval must be at least 5 seconds",MAX:"Health check interval cannot exceed 300 seconds"},TIMEOUT:{INTEGER:"Health check timeout must be an integer",MIN:"Health check timeout must be at least 2 seconds",MAX:"Health check timeout cannot exceed 60 seconds"},RETRIES:{INTEGER:"Health check retries must be an integer",MIN:"Health check retries must be at least 1",MAX:"Health check retries cannot exceed 10"},START_PERIOD:{INTEGER:"Health check start period must be an integer",MIN:"Health check start period must be at least 0 seconds",MAX:"Health check start period cannot exceed 300 seconds"}},EPHEMERAL_STORAGE:{INTEGER:"Ephemeral storage size must be an integer",MIN:"Ephemeral storage size must be at least 512 MB",MAX:"Ephemeral storage size cannot exceed 10240 MB"},MAX_MESSAGE_SIZE:{INTEGER:"Max message size must be an integer",MIN:"Max message size must be at least 1024 bytes",MAX:"Max message size cannot exceed 262144 bytes (256 KB)"},CAPACITY_CONSTRAINT:{MIN_LTE_MAX:"minCapacity must be less than or equal to maxCapacity"},DIRECT_ACCESS:{NO_DOMAIN:"directAccess cannot be used with domain (no ALB for HTTPS)",NO_LOAD_BALANCER:"directAccess cannot be used with loadBalancer (mutually exclusive)"},GLOBAL_AURORA:{PRIMARY_REGION_REQUIRED:"primaryRegion is required for GlobalAurora databases"},NAT_GATEWAY:{INTEGER:"NAT gateway count must be an integer",MIN:"NAT gateway count must be at least 0",MAX:"NAT gateway count cannot exceed 3"},CIDR_MASK:{INTEGER:"CIDR mask must be an integer",MIN:"CIDR mask must be at least 16",MAX:"CIDR mask cannot exceed 28"},CPU:{INTEGER:"CPU must be an integer",MIN:"CPU must be at least 256 units",MAX:"CPU cannot exceed 4096 units"},KMS:{KEY_REQUIRED:"KMS key ARN is required when using KMS encryption"},WEBSITE_BUCKET:{DOCUMENTS_REQUIRED:"Website index and error documents are required for website buckets"},READER_INSTANCES:{MAX:"Cannot have more than 15 reader instances",COUNT_OR_INSTANCES:"Cannot specify both 'count' and 'instances' - use one or the other"},GENERATOR_CAPACITY:{MIN:{MIN:"Minimum capacity must be at least 1",MAX:"Minimum capacity cannot exceed 1000"},MAX:{MIN:"Maximum capacity must be at least 1",MAX:"Maximum capacity cannot exceed 1000"}},INSTANCE_TYPE:"Unknown instance type. Common types include: t4g.micro, t4g.small, m5.large",ARCHITECTURE_MISMATCH:"Architecture mismatch between instance type and AMI",ALLOCATED_STORAGE:{INTEGER:"Allocated storage must be an integer",MIN:"Allocated storage must be at least 20 GB",MAX:"Allocated storage cannot exceed 65536 GB"},DLQ:{MAX_RECEIVE_COUNT:{INTEGER:"Max receive count must be an integer",MIN:"Max receive count must be at least 1",MAX:"Max receive count cannot exceed 1000"}},ALARM:{PERCENTAGE:{MIN:"Threshold must be at least 1%",MAX:"Threshold must be at most 100%"},FREE_STORAGE_GIB:{MIN:"Free storage threshold must be at least 1 GiB"}},REGION:"Invalid AWS region"})});function xv(t){return t?t.split(",").map(e=>e.trim()).filter(Boolean):[]}function lC(t){return Rl.includes(t)}function uC(t){return/^[a-z]{2}-[a-z]+-[1-9]$/.test(t)}function pC(t){if(!t)return Ev.slice(0,3);let e=t.toLowerCase().split("-"),r=e[0],n=e.length>1?e[1]:"",a=[];return r&&n&&(a=Rl.filter(i=>i.startsWith(`${r}-${n}`))),a.length===0&&r&&(a=Rl.filter(i=>i.startsWith(`${r}-`))),a.length>0?a.slice(0,3):Ev.slice(0,3)}function dC(t){if(lC(t))return!0;let e=pC(t);return uC(t)?`Unknown region. Try: ${e.join(", ")}`:`Invalid format. Try: ${e.join(", ")}`}function PP(t){if(!t||t.trim()==="")return!0;let e=xv(t);for(let r of e){let n=dC(r);if(n!==!0)return n}return!0}function mC(t,e){return t.filter(r=>r!==e)}function oo(){return Ol.map(t=>({label:t.city,value:t.code,description:t.code}))}function sm(t){return Ol.filter(e=>e.code!==t).map(e=>({label:e.city,value:e.code,description:e.code}))}function jo(t){let e=Ol.find(r=>r.code===t);return e?e.city:t}function DP(t){return e=>{let r=xv(e);return mC(r,t)}}var Ue,Rl,Ol,cC,Ev,zU=x(()=>{"use strict";Ue="us-east-2",Rl=Object.freeze(["us-east-2","us-west-2","us-east-1","eu-west-1","eu-central-1","ap-southeast-1","ap-northeast-1","ap-southeast-2","us-west-1","ca-central-1","af-south-1","ap-east-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-south-2","ap-southeast-3","ap-southeast-4","eu-central-2","eu-north-1","eu-south-1","eu-south-2","eu-west-2","eu-west-3","me-central-1","me-south-1","sa-east-1"]),Ol=Object.freeze([{code:"us-east-2",name:"US East",city:"Ohio",country:"USA"},{code:"us-west-2",name:"US West",city:"Oregon",country:"USA"},{code:"us-east-1",name:"US East",city:"N. Virginia",country:"USA"},{code:"eu-west-1",name:"EU West",city:"Ireland",country:"Ireland"},{code:"eu-central-1",name:"EU Central",city:"Frankfurt",country:"Germany"},{code:"ap-southeast-1",name:"Asia Pacific",city:"Singapore",country:"Singapore"},{code:"ap-northeast-1",name:"Asia Pacific",city:"Tokyo",country:"Japan"},{code:"ap-southeast-2",name:"Asia Pacific",city:"Sydney",country:"Australia"},{code:"us-west-1",name:"US West",city:"N. California",country:"USA"},{code:"ca-central-1",name:"Canada",city:"Central",country:"Canada"},{code:"af-south-1",name:"Africa",city:"Cape Town",country:"South Africa"},{code:"ap-east-1",name:"Asia Pacific",city:"Hong Kong",country:"China"},{code:"ap-northeast-2",name:"Asia Pacific",city:"Seoul",country:"South Korea"},{code:"ap-northeast-3",name:"Asia Pacific",city:"Osaka",country:"Japan"},{code:"ap-south-1",name:"Asia Pacific",city:"Mumbai",country:"India"},{code:"ap-south-2",name:"Asia Pacific",city:"Hyderabad",country:"India"},{code:"ap-southeast-3",name:"Asia Pacific",city:"Jakarta",country:"Indonesia"},{code:"ap-southeast-4",name:"Asia Pacific",city:"Melbourne",country:"Australia"},{code:"eu-central-2",name:"EU Central",city:"Zurich",country:"Switzerland"},{code:"eu-north-1",name:"EU North",city:"Stockholm",country:"Sweden"},{code:"eu-south-1",name:"EU South",city:"Milan",country:"Italy"},{code:"eu-south-2",name:"EU South",city:"Spain",country:"Spain"},{code:"eu-west-2",name:"EU West",city:"London",country:"UK"},{code:"eu-west-3",name:"EU West",city:"Paris",country:"France"},{code:"me-central-1",name:"Middle East",city:"UAE",country:"UAE"},{code:"me-south-1",name:"Middle East",city:"Bahrain",country:"Bahrain"},{code:"sa-east-1",name:"South America",city:"S\xE3o Paulo",country:"Brazil"}]),cC=Object.freeze([{code:"us-east-2",name:"US East",city:"Ohio",country:"USA"},{code:"us-west-2",name:"US West",city:"Oregon",country:"USA"},{code:"us-east-1",name:"US East",city:"N. Virginia",country:"USA"},{code:"eu-west-1",name:"EU West",city:"Ireland",country:"Ireland"},{code:"eu-central-1",name:"EU Central",city:"Frankfurt",country:"Germany"},{code:"ap-southeast-1",name:"Asia Pacific",city:"Singapore",country:"Singapore"}]),Ev=Object.freeze(["us-east-2","us-west-2","us-east-1","eu-west-1","ap-southeast-1"])});var fC,VU=x(()=>{"use strict";fC="0.94.0"});function Y(t,e,r){function n(o,c){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(t))return;o._zod.traits.add(t),e(o,c);let l=s.prototype,u=Object.keys(l);for(let p=0;p<u.length;p++){let d=u[p];d in o||(o[d]=l[d].bind(o))}}let a=r?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:t});function s(o){var c;let l=r?.Parent?new i:this;n(l,o),(c=l._zod).deferred??(c.deferred=[]);for(let u of l._zod.deferred)u();return l}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:o=>r?.Parent&&o instanceof r.Parent?!0:o?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}function pa(t){return t&&Object.assign(hC,t),hC}var WU,RP,Nl,om,hC,bv=x(()=>{WU=Object.freeze({status:"aborted"});RP=Symbol("zod_brand"),Nl=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},om=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},hC={}});var Ae={};Lt(Ae,{BIGINT_FORMAT_RANGES:()=>ej,Class:()=>qU,NUMBER_FORMAT_RANGES:()=>QU,aborted:()=>pm,allowsEval:()=>YU,assert:()=>LBe,assertEqual:()=>NBe,assertIs:()=>MBe,assertNever:()=>$Be,assertNotEqual:()=>FBe,assignProp:()=>lm,base64ToUint8Array:()=>bne,base64urlToUint8Array:()=>tUe,cached:()=>Cv,captureStackTrace:()=>NP,cleanEnum:()=>eUe,cleanRegex:()=>vC,clone:()=>ys,cloneDef:()=>UBe,createTransparentProxy:()=>qBe,defineLazy:()=>Wt,esc:()=>OP,escapeRegex:()=>bc,extend:()=>YBe,finalizeIssue:()=>co,floatSafeRemainder:()=>HU,getElementAtPath:()=>jBe,getEnumValues:()=>yC,getLengthableOrigin:()=>xC,getParsedType:()=>GBe,getSizableOrigin:()=>EC,hexToUint8Array:()=>nUe,isObject:()=>Dh,isPlainObject:()=>um,issue:()=>wv,joinValues:()=>oe,jsonStringifyReplacer:()=>Av,merge:()=>JBe,mergeDefs:()=>Up,normalizeParams:()=>Te,nullish:()=>cm,numKeys:()=>WBe,objectClone:()=>BBe,omit:()=>KBe,optionalKeys:()=>XU,parsedType:()=>xe,partial:()=>XBe,pick:()=>HBe,prefixIssues:()=>zo,primitiveTypes:()=>JU,promiseAllObject:()=>zBe,propertyKeyTypes:()=>SC,randomString:()=>VBe,required:()=>QBe,safeExtend:()=>ZBe,shallowClone:()=>ZU,slugify:()=>KU,stringifyPrimitive:()=>Se,uint8ArrayToBase64:()=>Ane,uint8ArrayToBase64url:()=>rUe,uint8ArrayToHex:()=>aUe,unwrapMessage:()=>gC});function NBe(t){return t}function FBe(t){return t}function MBe(t){}function $Be(t){throw new Error("Unexpected value in exhaustive check")}function LBe(t){}function yC(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,a])=>e.indexOf(+n)===-1).map(([n,a])=>a)}function oe(t,e="|"){return t.map(r=>Se(r)).join(e)}function Av(t,e){return typeof e=="bigint"?e.toString():e}function Cv(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function cm(t){return t==null}function vC(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function HU(t,e){let r=(t.toString().split(".")[1]||"").length,n=e.toString(),a=(n.split(".")[1]||"").length;if(a===0&&/\d?e-\d?/.test(n)){let c=n.match(/\d?e-(\d?)/);c?.[1]&&(a=Number.parseInt(c[1]))}let i=r>a?r:a,s=Number.parseInt(t.toFixed(i).replace(".","")),o=Number.parseInt(e.toFixed(i).replace(".",""));return s%o/10**i}function Wt(t,e,r){let n;Object.defineProperty(t,e,{get(){if(n!==xne)return n===void 0&&(n=xne,n=r()),n},set(a){Object.defineProperty(t,e,{value:a})},configurable:!0})}function BBe(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function lm(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Up(...t){let e={};for(let r of t){let n=Object.getOwnPropertyDescriptors(r);Object.assign(e,n)}return Object.defineProperties({},e)}function UBe(t){return Up(t._zod.def)}function jBe(t,e){return e?e.reduce((r,n)=>r?.[n],t):t}function zBe(t){let e=Object.keys(t),r=e.map(n=>t[n]);return Promise.all(r).then(n=>{let a={};for(let i=0;i<e.length;i++)a[e[i]]=n[i];return a})}function VBe(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<t;n++)r+=e[Math.floor(Math.random()*e.length)];return r}function OP(t){return JSON.stringify(t)}function KU(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Dh(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function um(t){if(Dh(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Dh(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ZU(t){return um(t)?{...t}:Array.isArray(t)?[...t]:t}function WBe(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}function bc(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ys(t,e,r){let n=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(n._zod.parent=t),n}function Te(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function qBe(t){let e;return new Proxy({},{get(r,n,a){return e??(e=t()),Reflect.get(e,n,a)},set(r,n,a,i){return e??(e=t()),Reflect.set(e,n,a,i)},has(r,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(r,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(r,n,a){return e??(e=t()),Reflect.defineProperty(e,n,a)}})}function Se(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function XU(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}function HBe(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Up(t._zod.def,{get shape(){let s={};for(let o in e){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(s[o]=r.shape[o])}return lm(this,"shape",s),s},checks:[]});return ys(t,i)}function KBe(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Up(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let o in e){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete s[o]}return lm(this,"shape",s),s},checks:[]});return ys(t,i)}function YBe(t,e){if(!um(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let i=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=Up(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return lm(this,"shape",i),i}});return ys(t,a)}function ZBe(t,e){if(!um(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Up(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return lm(this,"shape",n),n}});return ys(t,r)}function JBe(t,e){let r=Up(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return lm(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return ys(t,r)}function XBe(t,e,r){let a=e._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=Up(e._zod.def,{get shape(){let o=e._zod.def.shape,c={...o};if(r)for(let l in r){if(!(l in o))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(c[l]=t?new t({type:"optional",innerType:o[l]}):o[l])}else for(let l in o)c[l]=t?new t({type:"optional",innerType:o[l]}):o[l];return lm(this,"shape",c),c},checks:[]});return ys(e,s)}function QBe(t,e,r){let n=Up(e._zod.def,{get shape(){let a=e._zod.def.shape,i={...a};if(r)for(let s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new t({type:"nonoptional",innerType:a[s]}))}else for(let s in a)i[s]=new t({type:"nonoptional",innerType:a[s]});return lm(this,"shape",i),i}});return ys(e,n)}function pm(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function zo(t,e){return e.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(t),r})}function gC(t){return typeof t=="string"?t:t?.message}function co(t,e,r){let n={...t,path:t.path??[]};if(!t.message){let a=gC(t.inst?._zod.def?.error?.(t))??gC(e?.error?.(t))??gC(r.customError?.(t))??gC(r.localeError?.(t))??"Invalid input";n.message=a}return delete n.inst,delete n.continue,e?.reportInput||delete n.input,n}function EC(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function xC(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function xe(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}function wv(...t){let[e,r,n]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:n}:{...e}}function eUe(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function bne(t){let e=atob(t),r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}function Ane(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function tUe(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return bne(e+r)}function rUe(t){return Ane(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function nUe(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)r[n/2]=Number.parseInt(e.slice(n,n+2),16);return r}function aUe(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}var xne,NP,YU,GBe,SC,JU,QU,ej,qU,nt=x(()=>{xne=Symbol("evaluating");NP="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};YU=Cv(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});GBe=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},SC=new Set(["string","number","symbol"]),JU=new Set(["string","number","bigint","boolean","symbol","undefined"]);QU={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ej={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};qU=class{constructor(...e){}}});function AC(t,e=r=>r.message){let r={},n=[];for(let a of t.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:r}}function CC(t,e=r=>r.message){let r={_errors:[]},n=a=>{for(let i of a.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(e(i));else{let s=r,o=0;for(;o<i.path.length;){let c=i.path[o];o===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(e(i))):s[c]=s[c]||{_errors:[]},s=s[c],o++}}};return n(t),r}function tj(t,e=r=>r.message){let r={errors:[]},n=(a,i=[])=>{var s,o;for(let c of a.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>n({issues:l},c.path));else if(c.code==="invalid_key")n({issues:c.issues},c.path);else if(c.code==="invalid_element")n({issues:c.issues},c.path);else{let l=[...i,...c.path];if(l.length===0){r.errors.push(e(c));continue}let u=r,p=0;for(;p<l.length;){let d=l[p],m=p===l.length-1;typeof d=="string"?(u.properties??(u.properties={}),(s=u.properties)[d]??(s[d]={errors:[]}),u=u.properties[d]):(u.items??(u.items=[]),(o=u.items)[d]??(o[d]={errors:[]}),u=u.items[d]),m&&u.errors.push(e(c)),p++}}};return n(t),r}function wne(t){let e=[],r=t.map(n=>typeof n=="object"?n.key:n);for(let n of r)typeof n=="number"?e.push(`[${n}]`):typeof n=="symbol"?e.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?e.push(`[${JSON.stringify(n)}]`):(e.length&&e.push("."),e.push(n));return e.join("")}function rj(t){let e=[],r=[...t.issues].sort((n,a)=>(n.path??[]).length-(a.path??[]).length);for(let n of r)e.push(`\u2716 ${n.message}`),n.path?.length&&e.push(` \u2192 at ${wne(n.path)}`);return e.join(`
|
|
53
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(a=>{r(this.resolveDefaultConfig(a))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let a=this.config,i=e.protocol==="https:";return!i&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((s,o)=>{let c,l=[],u=async O=>{await c,l.forEach(Ca.clearTimeout),s(O)},p=async O=>{await c,l.forEach(Ca.clearTimeout),o(O)};if(r?.aborted){let O=MU(r);p(O);return}let d=e.headers??{},m=(d.Expect??d.expect)==="100-continue",f=i?a.httpsAgent:a.httpAgent;m&&!this.externalAgent&&(f=new(i?$U:bP)({keepAlive:!1,maxSockets:1/0})),l.push(Ca.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(f,this.socketWarningTimestamp,a.logger)},a.socketAcquisitionWarningTimeout??(a.requestTimeout??2e3)+(a.connectionTimeout??1e3)));let h=Bre(e.query||{}),g;if(e.username!=null||e.password!=null){let O=e.username??"",R=e.password??"";g=`${O}:${R}`}let S=e.path;h&&(S+=`?${h}`),e.fragment&&(S+=`#${e.fragment}`);let E=e.hostname??"";E[0]==="["&&E.endsWith("]")?E=e.hostname.slice(1,-1):E=e.hostname;let A={headers:e.headers,host:E,method:e.method,path:S,port:e.port,agent:f,auth:g},I=(i?CBe:ine)(A,O=>{let R=new EP({statusCode:O.statusCode||-1,reason:O.statusMessage,headers:Wre(O.headers),body:O});u({response:R})});if(I.on("error",O=>{zre.includes(O.code)?p(Object.assign(O,{name:"TimeoutError"})):p(O)}),r){let O=()=>{I.destroy();let R=MU(r);p(R)};if(typeof r.addEventListener=="function"){let R=r;R.addEventListener("abort",O,{once:!0}),I.once("close",()=>R.removeEventListener("abort",O))}else r.onabort=O}let P=n??a.requestTimeout;l.push(Hre(I,p,a.connectionTimeout)),l.push(Yre(I,p,P,a.throwOnRequestTimeout,a.logger??console)),l.push(ene(I,p,a.socketTimeout));let D=A.agent;typeof D=="object"&&"keepAlive"in D&&l.push(Jre(I,{keepAlive:D.keepAlive,keepAliveMsecs:D.keepAliveMsecs})),c=nne(I,e,P,this.externalAgent).catch(O=>(l.forEach(Ca.clearTimeout),o(O)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:a,socketAcquisitionWarningTimeout:i,httpAgent:s,httpsAgent:o,throwOnRequestTimeout:c,logger:l}=e||{},u=!0,p=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:a,socketAcquisitionWarningTimeout:i,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let{Agent:d,request:m}=await import("node:http");return ine=m,bP=d,s instanceof bP||typeof s?.destroy=="function"?(this.externalAgent=!0,s):new bP({keepAlive:u,maxSockets:p,...s})},httpsAgent:o instanceof $U||typeof o?.destroy=="function"?(this.externalAgent=!0,o):new $U({keepAlive:u,maxSockets:p,...o}),logger:l}}}});var one=x(()=>{});var cne=x(()=>{});var am=x(()=>{sne();one();cne()});function Wi(t){let e=t.replace(/\./g,"-");return{hostedZoneId:`${e}-hosted-zone-id`,certificateArn:`${e}-certificate-arn`,delegationRoleArn:`${e}-delegation-role-arn`,nameservers:`${e}-nameservers`}}var AP,lne=x(()=>{"use strict";AP="@"});function Vt(t){return t.replace(/[-_](.)/g,(e,r)=>r.toUpperCase()).replace(/^./,e=>e.toUpperCase())}function Uo(t){return t.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z\d])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function _h(t){return Uo(t).replace(/-/g,"_")}function so(t){return t.length===0?t:t.charAt(0).toUpperCase()+t.slice(1)}function CP(t){return t.split(".").join("")}var une=x(()=>{"use strict"});function Cr(t){return t instanceof Error?t:new Error(String(t))}function T(t){return t instanceof Error?t.message:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t?String(t.message):"An unknown error occurred"}function wP(t,e){return!t||typeof t!="object"?!1:"code"in t&&t.code===e}function iC(t){if(!(!t||typeof t!="object")&&"code"in t&&typeof t.code=="string")return t.code}function Sv(t){return t instanceof Error?t.stack:void 0}function TP(t){let e=T(t),r=iC(t);return r&&r!=="UNKNOWN_ERROR"?`[${r}] ${e}`:e}var pne=x(()=>{"use strict"});function ot(t){let e,r=!1;return()=>(r||(e=t(),r=!0),e)}var dne=x(()=>{"use strict"});function Ot(t){return Object.fromEntries(Object.entries(t).filter(([e])=>!LU.has(e.toUpperCase())))}function _(t){return t.replace(/(\w+:\/\/[^:]+:)[^@]+(@)/gi,"$1***$2").replace(/(?<![a-zA-Z])(password|passwd|secret|api[_-]?key|token|auth|credential)([=:])["']?[^\s"']+/gi,"$1$2***").replace(/\b(ghu_|ghs_|ghp_|github_pat_)[A-Za-z0-9_]+/g,"***").replace(/(?<=Authorization:\s*Bearer\s+)[A-Za-z0-9._~+/=-]+/gi,"***").replace(/(?<=AWS_SECRET_ACCESS_KEY=|SecretAccessKey[=:]\s*|"secretAccessKey":\s*")[A-Za-z0-9/+=]{40,}/g,"***").replace(new RegExp(wBe.source,"g"),"fjall_ak_***")}function Np(t){let e=[],r="",n=!1,a=!1,i=!1,s=!1;for(let o of t){if(i){r+=o,i=!1;continue}if(o==="\\"&&!n){i=!0;continue}if(o==="'"&&!a){n=!n,s=!0;continue}if(o==='"'&&!n){a=!a,s=!0;continue}if(o===" "&&!n&&!a){(r||s)&&(e.push(r),r="",s=!1);continue}r+=o}if(n||a)throw new Error(`Unbalanced ${n?"single":"double"} quote in command: ${t.slice(0,80)}`);if(i)throw new Error(`Trailing backslash in command: ${t.slice(0,80)}`);return(r||s)&&e.push(r),e}var LU,wBe,mne=x(()=>{"use strict";LU=new Set(["NODE_OPTIONS","NODE_PATH","NODE_EXTRA_CA_CERTS","NODE_DEBUG","NODE_PRESERVE_SYMLINKS","LD_PRELOAD","LD_LIBRARY_PATH","LD_AUDIT","LD_BIND_NOW","DYLD_INSERT_LIBRARIES","DYLD_LIBRARY_PATH","DYLD_FRAMEWORK_PATH","PYTHONPATH","PYTHONSTARTUP","PERL5LIB","PERL5OPT","RUBYLIB","RUBYOPT","HOME","XDG_CONFIG_HOME","AWS_SHARED_CREDENTIALS_FILE","AWS_CONFIG_FILE","SHELL","BASH_ENV","ENV","ZDOTDIR"]);wBe=/fjall_ak_[A-Z2-7]{16}\.[A-Z2-7]{40}/});var it,fne=x(()=>{"use strict";it=t=>new Promise(e=>setTimeout(e,t))});function BU(t){return kh.includes(t)}function hne(t){return BU(t)?sC[t]:t.charAt(0).toUpperCase()+t.slice(1)}var kh,ua,sC,gne=x(()=>{"use strict";kh=["production","staging","development","platform","compliance"];ua={ROOT:"root",PLATFORM:"platform"},sC={production:"Production",staging:"Staging",development:"Development",platform:"Platform",compliance:"Compliance"}});function im(t){if(!t)return"compute";if(t.startsWith("Custom::"))return yne[t]??"compute";let e=yne[t];return e||TBe.add(t),e??"compute"}function oC(t){return IBe[t]??_Be}function gs(t){return kBe[t]||t.split("::").pop()||t}var IP,yne,TBe,IBe,_Be,kBe,UU=x(()=>{"use strict";IP=["security","network","compute","database","storage","monitoring","dns","identity","bootstrap","events","registry","backup"],yne=Object.freeze({"AWS::IAM::Role":"security","AWS::IAM::Policy":"security","AWS::IAM::OIDCProvider":"security","AWS::EC2::SecurityGroup":"security","AWS::KMS::Key":"security","AWS::KMS::Alias":"security","AWS::EC2::VPC":"network","AWS::EC2::Subnet":"network","AWS::EC2::InternetGateway":"network","AWS::EC2::NatGateway":"network","AWS::EC2::RouteTable":"network","AWS::EC2::Route":"network","AWS::EC2::VPCGatewayAttachment":"network","AWS::EC2::SubnetRouteTableAssociation":"network","AWS::EC2::EIP":"network","AWS::ECS::Cluster":"compute","AWS::ECS::Service":"compute","AWS::ECS::TaskDefinition":"compute","AWS::Lambda::Function":"compute","AWS::ElasticLoadBalancingV2::LoadBalancer":"compute","AWS::ElasticLoadBalancingV2::TargetGroup":"compute","AWS::ElasticLoadBalancingV2::Listener":"compute","AWS::ElasticLoadBalancingV2::ListenerRule":"compute","AWS::RDS::DBInstance":"database","AWS::RDS::DBCluster":"database","AWS::SecretsManager::Secret":"database","AWS::S3::Bucket":"storage","AWS::S3::BucketPolicy":"storage","AWS::CloudTrail::Trail":"monitoring","AWS::CloudWatch::Alarm":"monitoring","AWS::Logs::LogGroup":"monitoring","AWS::Events::EventBus":"events","AWS::Events::Rule":"events","AWS::ECR::Repository":"registry","AWS::CodeBuild::Project":"registry","AWS::Route53::RecordSet":"dns","AWS::CertificateManager::Certificate":"dns","AWS::CloudFront::Distribution":"dns","AWS::Backup::BackupVault":"backup","AWS::Backup::BackupPlan":"backup","AWS::Backup::BackupSelection":"backup","AWS::SSO::PermissionSet":"identity","AWS::SSO::Assignment":"identity","AWS::Organizations::Account":"identity","AWS::CDK::Metadata":"compute","AWS::CloudFormation::CustomResource":"compute","AWS::CloudFormation::WaitCondition":"compute","AWS::CloudFormation::WaitConditionHandle":"compute"}),TBe=new Set;IBe=Object.freeze({"AWS::EC2::NatGateway":120,"AWS::RDS::DBInstance":300,"AWS::RDS::DBCluster":300,"AWS::CloudFront::Distribution":300,"AWS::ECS::Service":180,"AWS::ElasticLoadBalancingV2::LoadBalancer":60,"AWS::EC2::SecurityGroup":10,"AWS::IAM::Role":15,"AWS::IAM::Policy":15,"AWS::IAM::OIDCProvider":10,"AWS::S3::Bucket":10,"AWS::S3::BucketPolicy":5,"AWS::Lambda::Function":30,"AWS::EC2::VPC":15,"AWS::EC2::Subnet":15,"AWS::EC2::InternetGateway":10,"AWS::EC2::RouteTable":5,"AWS::EC2::Route":5,"AWS::EC2::VPCGatewayAttachment":10,"AWS::EC2::SubnetRouteTableAssociation":5,"AWS::EC2::EIP":10,"AWS::ECS::Cluster":15,"AWS::ECS::TaskDefinition":10,"AWS::ElasticLoadBalancingV2::TargetGroup":10,"AWS::ElasticLoadBalancingV2::Listener":10,"AWS::ElasticLoadBalancingV2::ListenerRule":5,"AWS::SecretsManager::Secret":10,"AWS::Logs::LogGroup":5,"AWS::CloudWatch::Alarm":10,"AWS::CloudTrail::Trail":15,"AWS::Events::EventBus":5,"AWS::Events::Rule":5,"AWS::ECR::Repository":10,"AWS::Route53::RecordSet":30,"AWS::CertificateManager::Certificate":60,"AWS::KMS::Key":15,"AWS::KMS::Alias":5,"AWS::Backup::BackupVault":10,"AWS::Backup::BackupPlan":10,"AWS::Backup::BackupSelection":10,"AWS::SSO::PermissionSet":15,"AWS::SSO::Assignment":10,"AWS::Organizations::Account":60}),_Be=30;kBe=Object.freeze({"AWS::Lambda::Function":"Lambda Function","AWS::IAM::Role":"IAM Role","AWS::IAM::Policy":"IAM Policy","AWS::S3::Bucket":"S3 Bucket","AWS::DynamoDB::Table":"DynamoDB Table","AWS::EC2::Instance":"EC2 Instance","AWS::EC2::SecurityGroup":"Security Group","AWS::EC2::VPC":"VPC","AWS::EC2::Subnet":"Subnet","AWS::EC2::InternetGateway":"Internet Gateway","AWS::EC2::RouteTable":"Route Table","AWS::EC2::Route":"Route","AWS::ECS::Cluster":"ECS Cluster","AWS::ECS::Service":"ECS Service","AWS::ECS::TaskDefinition":"Task Definition","AWS::ElasticLoadBalancingV2::LoadBalancer":"Load Balancer","AWS::ElasticLoadBalancingV2::TargetGroup":"Target Group","AWS::ElasticLoadBalancingV2::Listener":"Listener","AWS::CloudFormation::Stack":"CloudFormation Stack","AWS::CDK::Metadata":"CDK Metadata","Custom::CDKBucketDeployment":"Bucket Deployment","AWS::SSM::Parameter":"SSM Parameter","AWS::CloudWatch::Alarm":"CloudWatch Alarm","AWS::Logs::LogGroup":"Log Group","AWS::ApiGateway::RestApi":"API Gateway","AWS::ApiGateway::Deployment":"API Deployment","AWS::ApiGateway::Stage":"API Stage","AWS::ApiGateway::Method":"API Method","AWS::ApiGateway::Resource":"API Resource","AWS::CloudFront::Distribution":"CloudFront Distribution","AWS::Route53::RecordSet":"Route53 Record","AWS::RDS::DBInstance":"RDS Instance","AWS::RDS::DBCluster":"RDS Cluster","AWS::SQS::Queue":"SQS Queue","AWS::SNS::Topic":"SNS Topic","AWS::Events::Rule":"EventBridge Rule","AWS::StepFunctions::StateMachine":"Step Function","AWS::EC2::NatGateway":"NAT Gateway","AWS::EC2::EIP":"Elastic IP","AWS::EC2::VPCGatewayAttachment":"Gateway Attachment","AWS::EC2::SubnetRouteTableAssociation":"Route Association","AWS::CloudTrail::Trail":"CloudTrail","AWS::IAM::OIDCProvider":"OIDC Provider","AWS::Events::EventBus":"Event Bus","AWS::Backup::BackupVault":"Backup Vault","AWS::Backup::BackupPlan":"Backup Plan","AWS::Backup::BackupSelection":"Backup Selection","AWS::SecretsManager::Secret":"Secret","AWS::KMS::Key":"KMS Key","AWS::KMS::Alias":"KMS Alias","AWS::ECR::Repository":"ECR Repository","AWS::CertificateManager::Certificate":"Certificate","AWS::ElasticLoadBalancingV2::ListenerRule":"Listener Rule","AWS::EC2::IPAM":"IPAM","AWS::EC2::IPAMPool":"IPAM Pool","AWS::EC2::IPAMPoolCidr":"IPAM Pool CIDR","Custom::ram":"RAM","Custom::ipamDelegateAdmin":"IPAM Delegate Admin","Custom::CostAllocationTags":"Cost Allocation Tags","Custom::ActivateOrganisationsAccess":"Activate Organisations Access","Custom::Organizations_TagResource":"Organisations Tag Resource","AWS::CloudFormation::CustomResource":"Custom Resource","AWS::CloudFormation::WaitCondition":"Wait Condition","AWS::CloudFormation::WaitConditionHandle":"Wait Condition Handle","AWS::SSO::PermissionSet":"SSO Permission Set","AWS::SSO::Assignment":"SSO Assignment","AWS::Organizations::Account":"Organisations Account","AWS::S3::BucketPolicy":"S3 Bucket Policy","AWS::CodeBuild::Project":"CodeBuild Project"})});function _P(t){if(!t)return null;let e=t.replace(/^(https?:\/\/)[^@]+@/,"$1"),r=e.match(DBe)??e.match(RBe)??t.match(OBe);if(!r)return null;let[,n,a,i]=r;return!n||!a||!i?null:{provider:PBe[n]??"other",owner:a,repo:i,host:n}}var PBe,DBe,RBe,OBe,vne=x(()=>{"use strict";PBe={"github.com":"github","gitlab.com":"gitlab","bitbucket.org":"bitbucket"},DBe=/^https?:\/\/([^/]+)\/(.+?)\/([^/.]+?)(?:\.git)?$/,RBe=/^git@([^:]+):(.+?)\/([^/.]+?)(?:\.git)?$/,OBe=/^ssh:\/\/[^@]+@([^:/]+)(?::\d+)?\/(.+?)\/([^/.]+?)(?:\.git)?$/});function Ph(t){let e=t.split("-");return e.length===3&&e[0]&&e[1]&&e[1].length>0&&e[2]?`${e[0]}${e[1][0]}${e[2]}`:t}var jU=x(()=>{"use strict"});function kl(t){let e=[t.primaryRegion,...t.secondaryRegions??[],t.disasterRecoveryRegion].filter(r=>r!==void 0);return[...new Set(e)]}function Fp(t,e){return`${t.toLowerCase()}-${Ph(e)}`}function Mp(t,e){let r=[];for(let n of t)if(n.environment!=="root")for(let a of e)r.push({name:Fp(n.name,a),accountName:n.name,accountId:n.id,environment:n.environment,region:a});return r.sort((n,a)=>{let i=n.environment.localeCompare(a.environment);if(i!==0)return i;let s=n.accountName.localeCompare(a.accountName);return s!==0?s:n.region.localeCompare(a.region)})}function $p(t){return Mp(t.providerAccounts,kl(t))}function xc(t,e){return t.find(r=>r.name===e)}var Sne=x(()=>{"use strict";jU()});var Ene={};Lt(Ene,{DANGEROUS_ENV_VARS:()=>LU,DNS_APEX:()=>AP,ENVIRONMENT_LABELS:()=>sC,RESOURCE_CATEGORIES:()=>IP,STANDARD_ENVIRONMENTS:()=>kh,STRUCTURAL_ENVIRONMENTS:()=>ua,abbreviateRegion:()=>Ph,capitalise:()=>so,categoriseResource:()=>im,deriveAllTargets:()=>$p,deriveRegionsFromOrgConfig:()=>kl,deriveTargets:()=>Mp,filterDangerousEnvVars:()=>Ot,findTarget:()=>xc,formatErrorString:()=>TP,generateTargetName:()=>Fp,getDomainExportNames:()=>Wi,getEnvironmentLabel:()=>hne,getErrorCode:()=>iC,getErrorMessage:()=>T,getErrorStack:()=>Sv,getExpectedDuration:()=>oC,getFriendlyResourceType:()=>gs,getSafeZoneName:()=>CP,hasErrorCode:()=>wP,isValidEnvironment:()=>BU,maskSensitiveOutput:()=>_,normaliseError:()=>Cr,parseGitRemoteUrl:()=>_P,parseShellArgs:()=>Np,singleton:()=>ot,sleep:()=>it,toKebab:()=>Uo,toPascalCase:()=>Vt,toValidDatabaseName:()=>_h});var W=x(()=>{"use strict";lne();une();pne();dne();mne();fne();gne();UU();vne();jU();Sne()});var kP=x(()=>{"use strict";W()});function Lp(t){return t.success===!0}function xt(t){return t.success===!1}function b(t){return{success:!0,data:t}}function y(t){return{success:!1,error:t}}async function Bp(t){try{let e=await t();return b(e)}catch(e){return y(Cr(e))}}function Pl(t){try{let e=t();return b(e)}catch(e){return y(Cr(e))}}var gi=x(()=>{"use strict";kP()});var fr,M,Dl=x(()=>{"use strict";fr=Object.freeze({IDENTIFIER:/^[a-zA-Z][a-zA-Z0-9-]*$/,RESOURCE_NAME:/^[a-zA-Z][a-zA-Z0-9]*$/,ECS_SERVICE_NAME:/^[a-zA-Z][a-zA-Z0-9-]*$/,BUCKET_NAME:/^[a-z][a-z0-9-]*[a-z0-9]$|^[a-z][a-z0-9]*$/,DATABASE_NAME:/^[a-zA-Z][a-zA-Z0-9_]*$/,RESOURCE_TYPE:/^[a-z]+(:[a-z]+)?$/,SSM_PATH:/^\/[a-zA-Z][a-zA-Z0-9-]*(\/[a-zA-Z][a-zA-Z0-9-]*)*$/,SECRET_NAME:/^[a-zA-Z_][a-zA-Z0-9._-]*$/,SSM_COMPONENT:/^[a-zA-Z][a-zA-Z0-9._-]*$/,EMAIL:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,DOCKER_IMAGE:/^[a-z0-9][a-z0-9._-]*[a-z0-9](:[a-z0-9._-]+)?$/,DOMAIN:/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/i}),M=Object.freeze({IDENTIFIER:"Must start with a letter, contain only letters, numbers, and hyphens",IDENTIFIER_MIN_LENGTH:"Must be at least 2 characters",IDENTIFIER_NO_TRAILING_HYPHEN:"Must not end with a hyphen",IDENTIFIER_NO_CONSECUTIVE_HYPHENS:"Must not contain consecutive hyphens",RESOURCE_NAME:"Must start with a letter and contain only letters and numbers (PascalCase recommended)",ECS_SERVICE_NAME:"Service name must start with a letter and contain only letters, numbers, and hyphens",BUCKET_NAME:"Bucket name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens",DATABASE_NAME:"Database name must start with a letter and contain only letters, numbers, and underscores",RESOURCE_TYPE:"Resource type must be in format 'category' or 'category:type'",SSM_PATH:"SSM path must start with / and contain valid namespace segments (e.g., /myapp/ApiCluster/service)",SECRET_NAME:"Secret name must start with a letter or underscore and contain only letters, numbers, underscores, hyphens, or periods",SSM_COMPONENT:"Must start with a letter and contain only letters, numbers, periods, hyphens, or underscores",EMAIL:"Please enter a valid email address",DOMAIN:"Please enter a valid domain (e.g., cms.example.com)",DOCKER_IMAGE:"Invalid Docker image name format",REQUIRED:{APP_NAME:"Application name is required",RESOURCE_NAME:"Resource name is required",BUCKET_NAME:"Bucket name is required",SERVICE_NAME:"Service name is required",NETWORK_NAME:"Network name is required",DATABASE_NAME:"Database name is required",ORGANISATION_NAME:"Organisation name is required",EMAIL:"Email is required",NAME:"Name is required",USERNAME:"Username is required",CONTAINER_NAME:"Container name is required",FIRST_NAME:"First name is required",LAST_NAME:"Last name is required",GROUP:"Group is required",PATTERN_NAME:"Pattern name is required",ROUTING_PATH:"Routing path is required",RESOURCE_TYPE:"Resource type is required",VARIANT:"Variant is required",SUBTYPE:"Subtype is required",DEPLOY_TARGET:"Deploy target is required",DESTROY_TARGET:"Destroy target is required"},MAX_LENGTH:{APP_NAME:"Application name must be 50 characters or less",RESOURCE_NAME:"Resource name must be 63 characters or less",BUCKET_NAME:"Bucket name must be 63 characters or less",SERVICE_NAME:"Service name must be 255 characters or less",NETWORK_NAME:"Network name must be 50 characters or less",DATABASE_NAME:"Database name must be 63 characters or less",ORGANISATION_NAME:"Organisation name must be 50 characters or less"},PORT:{INTEGER:"Port must be an integer",MIN:"Port must be at least 1",MAX:"Port cannot exceed 65535"},USERNAME:{MAX_LENGTH:"Username cannot exceed 63 characters"},LAMBDA:{MEMORY:{INTEGER:"Lambda memory must be an integer",MIN:"Memory must be at least 128 MB",MAX:"Memory cannot exceed 10240 MB",MULTIPLE:"Memory must be 128 MB or a multiple of 64 MB"},TIMEOUT:{INTEGER:"Timeout must be an integer",MIN:"Timeout must be at least 1 second",MAX:"Timeout cannot exceed 900 seconds"}},PRIORITY:{INTEGER:"Priority must be an integer",MIN:"Priority must be at least 1",MAX:"Priority cannot exceed 50000"},CAPACITY:{MIN:{INTEGER:"Minimum capacity must be an integer",MIN_0:"Minimum capacity must be at least 0",MIN_1:"Minimum capacity must be at least 1",MAX:"Minimum capacity cannot exceed 100"},MAX:{INTEGER:"Maximum capacity must be an integer",MIN_0:"Maximum capacity must be at least 0",MIN_1:"Maximum capacity must be at least 1",MAX:"Maximum capacity cannot exceed 100"},DESIRED:{INTEGER:"Desired count must be an integer",MIN:"Desired count must be at least 0",MAX:"Desired count cannot exceed 100"},WARM_POOL_REQUIRED:"minCapacity 0 requires a warmPool \u2014 without it, new tasks wait 60-90s for a cold instance launch",WARM_POOL:{MIN_SIZE:{INTEGER:"Warm pool minSize must be an integer",MIN:"Warm pool minSize must be at least 0",MAX:"Warm pool minSize cannot exceed 100"},MIN_SIZE_EXCEEDS_MAX_CAPACITY:"warmPool.minSize cannot exceed maxCapacity \u2014 the warm pool cannot hold more instances than the ASG allows"}},MEMORY_LIMIT:{INTEGER:"Memory limit must be an integer",MIN_512:"Memory limit must be at least 512 MiB",MIN_128:"Memory limit must be at least 128 MiB",MAX:"Memory limit cannot exceed 30720 MiB"},DATABASE:{PORT:{INTEGER:"Database port must be an integer",MIN:"Database port must be at least 1024",MAX:"Database port cannot exceed 65535"},NAME:{REQUIRED:"Database name is required",MAX_LENGTH:"Database name cannot exceed 64 characters"}},BACKUP_RETENTION:{INTEGER:"Backup retention must be an integer",MIN:"Backup retention must be at least 1 day",MAX:"Backup retention cannot exceed 35 days"},SQS:{VISIBILITY_TIMEOUT:{INTEGER:"Visibility timeout must be an integer",MIN:"Visibility timeout must be at least 0 seconds",MAX:"Visibility timeout cannot exceed 43200 seconds (12 hours)"},RETENTION_PERIOD:{INTEGER:"Retention period must be an integer",MIN:"Retention period must be at least 60 seconds",MAX:"Retention period cannot exceed 1209600 seconds (14 days)"}},READER:{COUNT:{INTEGER:"Reader count must be an integer",MIN:"Reader count must be at least 0",MAX:"Reader count cannot exceed 15"}},IDENTIFIER_SUFFIX:{REQUIRED:"Identifier suffix is required when specified",MAX_LENGTH:"Identifier suffix cannot exceed 50 characters"},ROTATION:{INTEGER:"Rotation days must be an integer",MIN:"Rotation interval must be at least 1 day",MAX:"Rotation interval cannot exceed 365 days"},MAX_CONNECTIONS:{INTEGER:"Max connections must be an integer",MIN:"Max connections must be at least 1",MAX:"Max connections cannot exceed 100"},MONITORING_INTERVAL:{INTEGER:"Monitoring interval must be an integer",MIN:"Monitoring interval must be at least 0",MAX:"Monitoring interval cannot exceed 60 seconds",VALUES:"Monitoring interval must be 0, 1, 5, 10, 15, 30, or 60 seconds"},RETENTION_DAYS:{INTEGER:"Retention days must be an integer",MIN:"Retention days must be at least 1",MAX:"Retention days cannot exceed 365"},BATCH_SIZE:{INTEGER:"Batch size must be an integer",MIN:"Batch size must be at least 1",MAX:"Batch size cannot exceed 10000"},SERVICE:{UNIQUE_WITHIN_CLUSTER:"Service names must be unique within a cluster",MIN_REQUIRED:"At least one service is required",ROUTING_REQUIRED:"Multiple services with ports require routing config (path or host)"},PROXY_CONFIG:{MAX_IDLE_CONNECTIONS:{INTEGER:"Max idle connections must be an integer",MIN:"Max idle connections must be at least 0",MAX:"Max idle connections cannot exceed 100"},BORROW_TIMEOUT:{INTEGER:"Connection borrow timeout must be an integer",MIN:"Connection borrow timeout must be at least 1 second",MAX:"Connection borrow timeout cannot exceed 3600 seconds"}},MAX_AZS:{INTEGER:"Max AZs must be an integer",MIN:"Max AZs must be at least 1",MAX:"Max AZs cannot exceed 3"},BATCHING_WINDOW:{INTEGER:"Max batching window must be an integer",MIN:"Max batching window must be at least 0",MAX:"Max batching window cannot exceed 300 seconds"},HEALTH_CHECK:{INTERVAL:{INTEGER:"Health check interval must be an integer",MIN:"Health check interval must be at least 5 seconds",MAX:"Health check interval cannot exceed 300 seconds"},TIMEOUT:{INTEGER:"Health check timeout must be an integer",MIN:"Health check timeout must be at least 2 seconds",MAX:"Health check timeout cannot exceed 60 seconds"},RETRIES:{INTEGER:"Health check retries must be an integer",MIN:"Health check retries must be at least 1",MAX:"Health check retries cannot exceed 10"},START_PERIOD:{INTEGER:"Health check start period must be an integer",MIN:"Health check start period must be at least 0 seconds",MAX:"Health check start period cannot exceed 300 seconds"}},EPHEMERAL_STORAGE:{INTEGER:"Ephemeral storage size must be an integer",MIN:"Ephemeral storage size must be at least 512 MB",MAX:"Ephemeral storage size cannot exceed 10240 MB"},MAX_MESSAGE_SIZE:{INTEGER:"Max message size must be an integer",MIN:"Max message size must be at least 1024 bytes",MAX:"Max message size cannot exceed 262144 bytes (256 KB)"},CAPACITY_CONSTRAINT:{MIN_LTE_MAX:"minCapacity must be less than or equal to maxCapacity"},DIRECT_ACCESS:{NO_DOMAIN:"directAccess cannot be used with domain (no ALB for HTTPS)",NO_LOAD_BALANCER:"directAccess cannot be used with loadBalancer (mutually exclusive)"},GLOBAL_AURORA:{PRIMARY_REGION_REQUIRED:"primaryRegion is required for GlobalAurora databases"},NAT_GATEWAY:{INTEGER:"NAT gateway count must be an integer",MIN:"NAT gateway count must be at least 0",MAX:"NAT gateway count cannot exceed 3"},CIDR_MASK:{INTEGER:"CIDR mask must be an integer",MIN:"CIDR mask must be at least 16",MAX:"CIDR mask cannot exceed 28"},CPU:{INTEGER:"CPU must be an integer",MIN:"CPU must be at least 256 units",MAX:"CPU cannot exceed 4096 units"},KMS:{KEY_REQUIRED:"KMS key ARN is required when using KMS encryption"},WEBSITE_BUCKET:{DOCUMENTS_REQUIRED:"Website index and error documents are required for website buckets"},READER_INSTANCES:{MAX:"Cannot have more than 15 reader instances",COUNT_OR_INSTANCES:"Cannot specify both 'count' and 'instances' - use one or the other"},GENERATOR_CAPACITY:{MIN:{MIN:"Minimum capacity must be at least 1",MAX:"Minimum capacity cannot exceed 1000"},MAX:{MIN:"Maximum capacity must be at least 1",MAX:"Maximum capacity cannot exceed 1000"}},INSTANCE_TYPE:"Unknown instance type. Common types include: t4g.micro, t4g.small, m5.large",ARCHITECTURE_MISMATCH:"Architecture mismatch between instance type and AMI",ALLOCATED_STORAGE:{INTEGER:"Allocated storage must be an integer",MIN:"Allocated storage must be at least 20 GB",MAX:"Allocated storage cannot exceed 65536 GB"},DLQ:{MAX_RECEIVE_COUNT:{INTEGER:"Max receive count must be an integer",MIN:"Max receive count must be at least 1",MAX:"Max receive count cannot exceed 1000"}},ALARM:{PERCENTAGE:{MIN:"Threshold must be at least 1%",MAX:"Threshold must be at most 100%"},FREE_STORAGE_GIB:{MIN:"Free storage threshold must be at least 1 GiB"}},REGION:"Invalid AWS region"})});function xv(t){return t?t.split(",").map(e=>e.trim()).filter(Boolean):[]}function lC(t){return Rl.includes(t)}function uC(t){return/^[a-z]{2}-[a-z]+-[1-9]$/.test(t)}function pC(t){if(!t)return Ev.slice(0,3);let e=t.toLowerCase().split("-"),r=e[0],n=e.length>1?e[1]:"",a=[];return r&&n&&(a=Rl.filter(i=>i.startsWith(`${r}-${n}`))),a.length===0&&r&&(a=Rl.filter(i=>i.startsWith(`${r}-`))),a.length>0?a.slice(0,3):Ev.slice(0,3)}function dC(t){if(lC(t))return!0;let e=pC(t);return uC(t)?`Unknown region. Try: ${e.join(", ")}`:`Invalid format. Try: ${e.join(", ")}`}function PP(t){if(!t||t.trim()==="")return!0;let e=xv(t);for(let r of e){let n=dC(r);if(n!==!0)return n}return!0}function mC(t,e){return t.filter(r=>r!==e)}function oo(){return Ol.map(t=>({label:t.city,value:t.code,description:t.code}))}function sm(t){return Ol.filter(e=>e.code!==t).map(e=>({label:e.city,value:e.code,description:e.code}))}function jo(t){let e=Ol.find(r=>r.code===t);return e?e.city:t}function DP(t){return e=>{let r=xv(e);return mC(r,t)}}var Ue,Rl,Ol,cC,Ev,zU=x(()=>{"use strict";Ue="us-east-2",Rl=Object.freeze(["us-east-2","us-west-2","us-east-1","eu-west-1","eu-central-1","ap-southeast-1","ap-northeast-1","ap-southeast-2","us-west-1","ca-central-1","af-south-1","ap-east-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-south-2","ap-southeast-3","ap-southeast-4","eu-central-2","eu-north-1","eu-south-1","eu-south-2","eu-west-2","eu-west-3","me-central-1","me-south-1","sa-east-1"]),Ol=Object.freeze([{code:"us-east-2",name:"US East",city:"Ohio",country:"USA"},{code:"us-west-2",name:"US West",city:"Oregon",country:"USA"},{code:"us-east-1",name:"US East",city:"N. Virginia",country:"USA"},{code:"eu-west-1",name:"EU West",city:"Ireland",country:"Ireland"},{code:"eu-central-1",name:"EU Central",city:"Frankfurt",country:"Germany"},{code:"ap-southeast-1",name:"Asia Pacific",city:"Singapore",country:"Singapore"},{code:"ap-northeast-1",name:"Asia Pacific",city:"Tokyo",country:"Japan"},{code:"ap-southeast-2",name:"Asia Pacific",city:"Sydney",country:"Australia"},{code:"us-west-1",name:"US West",city:"N. California",country:"USA"},{code:"ca-central-1",name:"Canada",city:"Central",country:"Canada"},{code:"af-south-1",name:"Africa",city:"Cape Town",country:"South Africa"},{code:"ap-east-1",name:"Asia Pacific",city:"Hong Kong",country:"China"},{code:"ap-northeast-2",name:"Asia Pacific",city:"Seoul",country:"South Korea"},{code:"ap-northeast-3",name:"Asia Pacific",city:"Osaka",country:"Japan"},{code:"ap-south-1",name:"Asia Pacific",city:"Mumbai",country:"India"},{code:"ap-south-2",name:"Asia Pacific",city:"Hyderabad",country:"India"},{code:"ap-southeast-3",name:"Asia Pacific",city:"Jakarta",country:"Indonesia"},{code:"ap-southeast-4",name:"Asia Pacific",city:"Melbourne",country:"Australia"},{code:"eu-central-2",name:"EU Central",city:"Zurich",country:"Switzerland"},{code:"eu-north-1",name:"EU North",city:"Stockholm",country:"Sweden"},{code:"eu-south-1",name:"EU South",city:"Milan",country:"Italy"},{code:"eu-south-2",name:"EU South",city:"Spain",country:"Spain"},{code:"eu-west-2",name:"EU West",city:"London",country:"UK"},{code:"eu-west-3",name:"EU West",city:"Paris",country:"France"},{code:"me-central-1",name:"Middle East",city:"UAE",country:"UAE"},{code:"me-south-1",name:"Middle East",city:"Bahrain",country:"Bahrain"},{code:"sa-east-1",name:"South America",city:"S\xE3o Paulo",country:"Brazil"}]),cC=Object.freeze([{code:"us-east-2",name:"US East",city:"Ohio",country:"USA"},{code:"us-west-2",name:"US West",city:"Oregon",country:"USA"},{code:"us-east-1",name:"US East",city:"N. Virginia",country:"USA"},{code:"eu-west-1",name:"EU West",city:"Ireland",country:"Ireland"},{code:"eu-central-1",name:"EU Central",city:"Frankfurt",country:"Germany"},{code:"ap-southeast-1",name:"Asia Pacific",city:"Singapore",country:"Singapore"}]),Ev=Object.freeze(["us-east-2","us-west-2","us-east-1","eu-west-1","ap-southeast-1"])});var fC,VU=x(()=>{"use strict";fC="0.94.1"});function Y(t,e,r){function n(o,c){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(t))return;o._zod.traits.add(t),e(o,c);let l=s.prototype,u=Object.keys(l);for(let p=0;p<u.length;p++){let d=u[p];d in o||(o[d]=l[d].bind(o))}}let a=r?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:t});function s(o){var c;let l=r?.Parent?new i:this;n(l,o),(c=l._zod).deferred??(c.deferred=[]);for(let u of l._zod.deferred)u();return l}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:o=>r?.Parent&&o instanceof r.Parent?!0:o?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}function pa(t){return t&&Object.assign(hC,t),hC}var WU,RP,Nl,om,hC,bv=x(()=>{WU=Object.freeze({status:"aborted"});RP=Symbol("zod_brand"),Nl=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},om=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},hC={}});var Ae={};Lt(Ae,{BIGINT_FORMAT_RANGES:()=>ej,Class:()=>qU,NUMBER_FORMAT_RANGES:()=>QU,aborted:()=>pm,allowsEval:()=>YU,assert:()=>LBe,assertEqual:()=>NBe,assertIs:()=>MBe,assertNever:()=>$Be,assertNotEqual:()=>FBe,assignProp:()=>lm,base64ToUint8Array:()=>bne,base64urlToUint8Array:()=>tUe,cached:()=>Cv,captureStackTrace:()=>NP,cleanEnum:()=>eUe,cleanRegex:()=>vC,clone:()=>ys,cloneDef:()=>UBe,createTransparentProxy:()=>qBe,defineLazy:()=>Wt,esc:()=>OP,escapeRegex:()=>bc,extend:()=>YBe,finalizeIssue:()=>co,floatSafeRemainder:()=>HU,getElementAtPath:()=>jBe,getEnumValues:()=>yC,getLengthableOrigin:()=>xC,getParsedType:()=>GBe,getSizableOrigin:()=>EC,hexToUint8Array:()=>nUe,isObject:()=>Dh,isPlainObject:()=>um,issue:()=>wv,joinValues:()=>oe,jsonStringifyReplacer:()=>Av,merge:()=>JBe,mergeDefs:()=>Up,normalizeParams:()=>Te,nullish:()=>cm,numKeys:()=>WBe,objectClone:()=>BBe,omit:()=>KBe,optionalKeys:()=>XU,parsedType:()=>xe,partial:()=>XBe,pick:()=>HBe,prefixIssues:()=>zo,primitiveTypes:()=>JU,promiseAllObject:()=>zBe,propertyKeyTypes:()=>SC,randomString:()=>VBe,required:()=>QBe,safeExtend:()=>ZBe,shallowClone:()=>ZU,slugify:()=>KU,stringifyPrimitive:()=>Se,uint8ArrayToBase64:()=>Ane,uint8ArrayToBase64url:()=>rUe,uint8ArrayToHex:()=>aUe,unwrapMessage:()=>gC});function NBe(t){return t}function FBe(t){return t}function MBe(t){}function $Be(t){throw new Error("Unexpected value in exhaustive check")}function LBe(t){}function yC(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,a])=>e.indexOf(+n)===-1).map(([n,a])=>a)}function oe(t,e="|"){return t.map(r=>Se(r)).join(e)}function Av(t,e){return typeof e=="bigint"?e.toString():e}function Cv(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function cm(t){return t==null}function vC(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function HU(t,e){let r=(t.toString().split(".")[1]||"").length,n=e.toString(),a=(n.split(".")[1]||"").length;if(a===0&&/\d?e-\d?/.test(n)){let c=n.match(/\d?e-(\d?)/);c?.[1]&&(a=Number.parseInt(c[1]))}let i=r>a?r:a,s=Number.parseInt(t.toFixed(i).replace(".","")),o=Number.parseInt(e.toFixed(i).replace(".",""));return s%o/10**i}function Wt(t,e,r){let n;Object.defineProperty(t,e,{get(){if(n!==xne)return n===void 0&&(n=xne,n=r()),n},set(a){Object.defineProperty(t,e,{value:a})},configurable:!0})}function BBe(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function lm(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Up(...t){let e={};for(let r of t){let n=Object.getOwnPropertyDescriptors(r);Object.assign(e,n)}return Object.defineProperties({},e)}function UBe(t){return Up(t._zod.def)}function jBe(t,e){return e?e.reduce((r,n)=>r?.[n],t):t}function zBe(t){let e=Object.keys(t),r=e.map(n=>t[n]);return Promise.all(r).then(n=>{let a={};for(let i=0;i<e.length;i++)a[e[i]]=n[i];return a})}function VBe(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<t;n++)r+=e[Math.floor(Math.random()*e.length)];return r}function OP(t){return JSON.stringify(t)}function KU(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Dh(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function um(t){if(Dh(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Dh(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ZU(t){return um(t)?{...t}:Array.isArray(t)?[...t]:t}function WBe(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}function bc(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ys(t,e,r){let n=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(n._zod.parent=t),n}function Te(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function qBe(t){let e;return new Proxy({},{get(r,n,a){return e??(e=t()),Reflect.get(e,n,a)},set(r,n,a,i){return e??(e=t()),Reflect.set(e,n,a,i)},has(r,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(r,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(r,n,a){return e??(e=t()),Reflect.defineProperty(e,n,a)}})}function Se(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function XU(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}function HBe(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Up(t._zod.def,{get shape(){let s={};for(let o in e){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(s[o]=r.shape[o])}return lm(this,"shape",s),s},checks:[]});return ys(t,i)}function KBe(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Up(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let o in e){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete s[o]}return lm(this,"shape",s),s},checks:[]});return ys(t,i)}function YBe(t,e){if(!um(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let i=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=Up(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return lm(this,"shape",i),i}});return ys(t,a)}function ZBe(t,e){if(!um(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Up(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return lm(this,"shape",n),n}});return ys(t,r)}function JBe(t,e){let r=Up(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return lm(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return ys(t,r)}function XBe(t,e,r){let a=e._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=Up(e._zod.def,{get shape(){let o=e._zod.def.shape,c={...o};if(r)for(let l in r){if(!(l in o))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(c[l]=t?new t({type:"optional",innerType:o[l]}):o[l])}else for(let l in o)c[l]=t?new t({type:"optional",innerType:o[l]}):o[l];return lm(this,"shape",c),c},checks:[]});return ys(e,s)}function QBe(t,e,r){let n=Up(e._zod.def,{get shape(){let a=e._zod.def.shape,i={...a};if(r)for(let s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new t({type:"nonoptional",innerType:a[s]}))}else for(let s in a)i[s]=new t({type:"nonoptional",innerType:a[s]});return lm(this,"shape",i),i}});return ys(e,n)}function pm(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function zo(t,e){return e.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(t),r})}function gC(t){return typeof t=="string"?t:t?.message}function co(t,e,r){let n={...t,path:t.path??[]};if(!t.message){let a=gC(t.inst?._zod.def?.error?.(t))??gC(e?.error?.(t))??gC(r.customError?.(t))??gC(r.localeError?.(t))??"Invalid input";n.message=a}return delete n.inst,delete n.continue,e?.reportInput||delete n.input,n}function EC(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function xC(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function xe(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}function wv(...t){let[e,r,n]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:n}:{...e}}function eUe(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function bne(t){let e=atob(t),r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}function Ane(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function tUe(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return bne(e+r)}function rUe(t){return Ane(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function nUe(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)r[n/2]=Number.parseInt(e.slice(n,n+2),16);return r}function aUe(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}var xne,NP,YU,GBe,SC,JU,QU,ej,qU,nt=x(()=>{xne=Symbol("evaluating");NP="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};YU=Cv(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});GBe=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},SC=new Set(["string","number","symbol"]),JU=new Set(["string","number","bigint","boolean","symbol","undefined"]);QU={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ej={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};qU=class{constructor(...e){}}});function AC(t,e=r=>r.message){let r={},n=[];for(let a of t.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:r}}function CC(t,e=r=>r.message){let r={_errors:[]},n=a=>{for(let i of a.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(e(i));else{let s=r,o=0;for(;o<i.path.length;){let c=i.path[o];o===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(e(i))):s[c]=s[c]||{_errors:[]},s=s[c],o++}}};return n(t),r}function tj(t,e=r=>r.message){let r={errors:[]},n=(a,i=[])=>{var s,o;for(let c of a.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>n({issues:l},c.path));else if(c.code==="invalid_key")n({issues:c.issues},c.path);else if(c.code==="invalid_element")n({issues:c.issues},c.path);else{let l=[...i,...c.path];if(l.length===0){r.errors.push(e(c));continue}let u=r,p=0;for(;p<l.length;){let d=l[p],m=p===l.length-1;typeof d=="string"?(u.properties??(u.properties={}),(s=u.properties)[d]??(s[d]={errors:[]}),u=u.properties[d]):(u.items??(u.items=[]),(o=u.items)[d]??(o[d]={errors:[]}),u=u.items[d]),m&&u.errors.push(e(c)),p++}}};return n(t),r}function wne(t){let e=[],r=t.map(n=>typeof n=="object"?n.key:n);for(let n of r)typeof n=="number"?e.push(`[${n}]`):typeof n=="symbol"?e.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?e.push(`[${JSON.stringify(n)}]`):(e.length&&e.push("."),e.push(n));return e.join("")}function rj(t){let e=[],r=[...t.issues].sort((n,a)=>(n.path??[]).length-(a.path??[]).length);for(let n of r)e.push(`\u2716 ${n.message}`),n.path?.length&&e.push(` \u2192 at ${wne(n.path)}`);return e.join(`
|
|
54
54
|
`)}var Cne,bC,lo,nj=x(()=>{bv();nt();Cne=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Av,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},bC=Y("$ZodError",Cne),lo=Y("$ZodError",Cne,{Parent:Error})});var Tv,FP,Iv,MP,_v,aj,kv,ij,$P,sUe,LP,oUe,BP,cUe,UP,lUe,jP,uUe,zP,pUe,VP,dUe,WP,mUe,sj=x(()=>{bv();nj();nt();Tv=t=>(e,r,n,a)=>{let i=n?Object.assign(n,{async:!1}):{async:!1},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new Nl;if(s.issues.length){let o=new(a?.Err??t)(s.issues.map(c=>co(c,i,pa())));throw NP(o,a?.callee),o}return s.value},FP=Tv(lo),Iv=t=>async(e,r,n,a)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let o=new(a?.Err??t)(s.issues.map(c=>co(c,i,pa())));throw NP(o,a?.callee),o}return s.value},MP=Iv(lo),_v=t=>(e,r,n)=>{let a=n?{...n,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},a);if(i instanceof Promise)throw new Nl;return i.issues.length?{success:!1,error:new(t??bC)(i.issues.map(s=>co(s,a,pa())))}:{success:!0,data:i.value}},aj=_v(lo),kv=t=>async(e,r,n)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},i=e._zod.run({value:r,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(s=>co(s,a,pa())))}:{success:!0,data:i.value}},ij=kv(lo),$P=t=>(e,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Tv(t)(e,r,a)},sUe=$P(lo),LP=t=>(e,r,n)=>Tv(t)(e,r,n),oUe=LP(lo),BP=t=>async(e,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Iv(t)(e,r,a)},cUe=BP(lo),UP=t=>async(e,r,n)=>Iv(t)(e,r,n),lUe=UP(lo),jP=t=>(e,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return _v(t)(e,r,a)},uUe=jP(lo),zP=t=>(e,r,n)=>_v(t)(e,r,n),pUe=zP(lo),VP=t=>async(e,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return kv(t)(e,r,a)},dUe=VP(lo),WP=t=>async(e,r,n)=>kv(t)(e,r,n),mUe=WP(lo)});var Ac={};Lt(Ac,{base64:()=>bj,base64url:()=>GP,bigint:()=>_j,boolean:()=>Pj,browserEmail:()=>xUe,cidrv4:()=>Ej,cidrv6:()=>xj,cuid:()=>oj,cuid2:()=>cj,date:()=>Cj,datetime:()=>Tj,domain:()=>CUe,duration:()=>mj,e164:()=>Aj,email:()=>hj,emoji:()=>gj,extendedDuration:()=>fUe,guid:()=>fj,hex:()=>wUe,hostname:()=>AUe,html5Email:()=>vUe,idnEmail:()=>EUe,integer:()=>kj,ipv4:()=>yj,ipv6:()=>vj,ksuid:()=>pj,lowercase:()=>Oj,mac:()=>Sj,md5_base64:()=>IUe,md5_base64url:()=>_Ue,md5_hex:()=>TUe,nanoid:()=>dj,null:()=>Dj,number:()=>qP,rfc5322Email:()=>SUe,sha1_base64:()=>PUe,sha1_base64url:()=>DUe,sha1_hex:()=>kUe,sha256_base64:()=>OUe,sha256_base64url:()=>NUe,sha256_hex:()=>RUe,sha384_base64:()=>MUe,sha384_base64url:()=>$Ue,sha384_hex:()=>FUe,sha512_base64:()=>BUe,sha512_base64url:()=>UUe,sha512_hex:()=>LUe,string:()=>Ij,time:()=>wj,ulid:()=>lj,undefined:()=>Rj,unicodeEmail:()=>Tne,uppercase:()=>Nj,uuid:()=>Rh,uuid4:()=>hUe,uuid6:()=>gUe,uuid7:()=>yUe,xid:()=>uj});function gj(){return new RegExp(bUe,"u")}function _ne(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function wj(t){return new RegExp(`^${_ne(t)}$`)}function Tj(t){let e=_ne({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${e}(?:${r.join("|")})`;return new RegExp(`^${Ine}T(?:${n})$`)}function wC(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function TC(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var oj,cj,lj,uj,pj,dj,mj,fUe,fj,Rh,hUe,gUe,yUe,hj,vUe,SUe,Tne,EUe,xUe,bUe,yj,vj,Sj,Ej,xj,bj,GP,AUe,CUe,Aj,Ine,Cj,Ij,_j,kj,qP,Pj,Dj,Rj,Oj,Nj,wUe,TUe,IUe,_Ue,kUe,PUe,DUe,RUe,OUe,NUe,FUe,MUe,$Ue,LUe,BUe,UUe,HP=x(()=>{nt();oj=/^[cC][^\s-]{8,}$/,cj=/^[0-9a-z]+$/,lj=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,uj=/^[0-9a-vA-V]{20}$/,pj=/^[A-Za-z0-9]{27}$/,dj=/^[a-zA-Z0-9_-]{21}$/,mj=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,fUe=/^[-+]?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)?)??$/,fj=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Rh=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,hUe=Rh(4),gUe=Rh(6),yUe=Rh(7),hj=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,vUe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,SUe=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Tne=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,EUe=Tne,xUe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,bUe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";yj=/^(?:(?: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])$/,vj=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,Sj=t=>{let e=bc(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Ej=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,xj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,bj=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,GP=/^[A-Za-z0-9_-]*$/,AUe=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,CUe=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Aj=/^\+[1-9]\d{6,14}$/,Ine="(?:(?:\\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])))",Cj=new RegExp(`^${Ine}$`);Ij=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},_j=/^-?\d+n?$/,kj=/^-?\d+$/,qP=/^-?\d+(?:\.\d+)?$/,Pj=/^(?:true|false)$/i,Dj=/^null$/i,Rj=/^undefined$/i,Oj=/^[^A-Z]*$/,Nj=/^[^a-z]*$/,wUe=/^[0-9a-fA-F]*$/;TUe=/^[0-9a-fA-F]{32}$/,IUe=wC(22,"=="),_Ue=TC(22),kUe=/^[0-9a-fA-F]{40}$/,PUe=wC(27,"="),DUe=TC(27),RUe=/^[0-9a-fA-F]{64}$/,OUe=wC(43,"="),NUe=TC(43),FUe=/^[0-9a-fA-F]{96}$/,MUe=wC(64,""),$Ue=TC(64),LUe=/^[0-9a-fA-F]{128}$/,BUe=wC(86,"=="),UUe=TC(86)});function kne(t,e,r){t.issues.length&&e.issues.push(...zo(r,t.issues))}var yn,Pne,KP,YP,Fj,Mj,$j,Lj,Bj,Uj,jj,zj,Vj,Pv,Wj,Gj,qj,Hj,Kj,Yj,Zj,Jj,Xj,ZP=x(()=>{bv();HP();nt();yn=Y("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),Pne={number:"number",bigint:"bigint",object:"date"},KP=Y("$ZodCheckLessThan",(t,e)=>{yn.init(t,e);let r=Pne[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,i=(e.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?a.maximum=e.value:a.exclusiveMaximum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value<=e.value:n.value<e.value)||n.issues.push({origin:r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),YP=Y("$ZodCheckGreaterThan",(t,e)=>{yn.init(t,e);let r=Pne[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,i=(e.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?a.minimum=e.value:a.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Fj=Y("$ZodCheckMultipleOf",(t,e)=>{yn.init(t,e),t._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):HU(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),Mj=Y("$ZodCheckNumberFormat",(t,e)=>{yn.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),n=r?"int":"number",[a,i]=QU[e.format];t._zod.onattach.push(s=>{let o=s._zod.bag;o.format=e.format,o.minimum=a,o.maximum=i,r&&(o.pattern=kj)}),t._zod.check=s=>{let o=s.value;if(r){if(!Number.isInteger(o)){s.issues.push({expected:n,format:e.format,code:"invalid_type",continue:!1,input:o,inst:t});return}if(!Number.isSafeInteger(o)){o>0?s.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,inclusive:!0,continue:!e.abort}):s.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,inclusive:!0,continue:!e.abort});return}}o<a&&s.issues.push({origin:"number",input:o,code:"too_small",minimum:a,inclusive:!0,inst:t,continue:!e.abort}),o>i&&s.issues.push({origin:"number",input:o,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),$j=Y("$ZodCheckBigIntFormat",(t,e)=>{yn.init(t,e);let[r,n]=ej[e.format];t._zod.onattach.push(a=>{let i=a._zod.bag;i.format=e.format,i.minimum=r,i.maximum=n}),t._zod.check=a=>{let i=a.value;i<r&&a.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),i>n&&a.issues.push({origin:"bigint",input:i,code:"too_big",maximum:n,inclusive:!0,inst:t,continue:!e.abort})}}),Lj=Y("$ZodCheckMaxSize",(t,e)=>{var r;yn.init(t,e),(r=t._zod.def).when??(r.when=n=>{let a=n.value;return!cm(a)&&a.size!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<a&&(n._zod.bag.maximum=e.maximum)}),t._zod.check=n=>{let a=n.value;a.size<=e.maximum||n.issues.push({origin:EC(a),code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),Bj=Y("$ZodCheckMinSize",(t,e)=>{var r;yn.init(t,e),(r=t._zod.def).when??(r.when=n=>{let a=n.value;return!cm(a)&&a.size!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>a&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let a=n.value;a.size>=e.minimum||n.issues.push({origin:EC(a),code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),Uj=Y("$ZodCheckSizeEquals",(t,e)=>{var r;yn.init(t,e),(r=t._zod.def).when??(r.when=n=>{let a=n.value;return!cm(a)&&a.size!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=e.size,a.maximum=e.size,a.size=e.size}),t._zod.check=n=>{let a=n.value,i=a.size;if(i===e.size)return;let s=i>e.size;n.issues.push({origin:EC(a),...s?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),jj=Y("$ZodCheckMaxLength",(t,e)=>{var r;yn.init(t,e),(r=t._zod.def).when??(r.when=n=>{let a=n.value;return!cm(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<a&&(n._zod.bag.maximum=e.maximum)}),t._zod.check=n=>{let a=n.value;if(a.length<=e.maximum)return;let s=xC(a);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),zj=Y("$ZodCheckMinLength",(t,e)=>{var r;yn.init(t,e),(r=t._zod.def).when??(r.when=n=>{let a=n.value;return!cm(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>a&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let a=n.value;if(a.length>=e.minimum)return;let s=xC(a);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),Vj=Y("$ZodCheckLengthEquals",(t,e)=>{var r;yn.init(t,e),(r=t._zod.def).when??(r.when=n=>{let a=n.value;return!cm(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=e.length,a.maximum=e.length,a.length=e.length}),t._zod.check=n=>{let a=n.value,i=a.length;if(i===e.length)return;let s=xC(a),o=i>e.length;n.issues.push({origin:s,...o?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),Pv=Y("$ZodCheckStringFormat",(t,e)=>{var r,n;yn.init(t,e),t._zod.onattach.push(a=>{let i=a._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=a=>{e.pattern.lastIndex=0,!e.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:e.format,input:a.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(n=t._zod).check??(n.check=()=>{})}),Wj=Y("$ZodCheckRegex",(t,e)=>{Pv.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Gj=Y("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=Oj),Pv.init(t,e)}),qj=Y("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=Nj),Pv.init(t,e)}),Hj=Y("$ZodCheckIncludes",(t,e)=>{yn.init(t,e);let r=bc(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=n,t._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=a=>{a.value.includes(e.includes,e.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:a.value,inst:t,continue:!e.abort})}}),Kj=Y("$ZodCheckStartsWith",(t,e)=>{yn.init(t,e);let r=new RegExp(`^${bc(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),Yj=Y("$ZodCheckEndsWith",(t,e)=>{yn.init(t,e);let r=new RegExp(`.*${bc(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});Zj=Y("$ZodCheckProperty",(t,e)=>{yn.init(t,e),t._zod.check=r=>{let n=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(n instanceof Promise)return n.then(a=>kne(a,r,e.property));kne(n,r,e.property)}}),Jj=Y("$ZodCheckMimeType",(t,e)=>{yn.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(n=>{n._zod.bag.mime=e.mime}),t._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:e.mime,input:n.value.type,inst:t,continue:!e.abort})}}),Xj=Y("$ZodCheckOverwrite",(t,e)=>{yn.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}})});var IC,Qj=x(()=>{IC=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(`
|
|
55
55
|
`).filter(s=>s),a=Math.min(...n.map(s=>s.length-s.trimStart().length)),i=n.map(s=>s.slice(a)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let e=Function,r=this?.args,a=[...(this?.content??[""]).map(i=>` ${i}`)];return new e(...r,a.join(`
|
|
56
56
|
`))}}});var e3,t3=x(()=>{e3={major:4,minor:3,patch:6}});function A3(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}function Vne(t){if(!GP.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return A3(r)}function Wne(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let a=JSON.parse(atob(n));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||e&&(!("alg"in a)||a.alg!==e))}catch{return!1}}function Rne(t,e,r){t.issues.length&&e.issues.push(...zo(r,t.issues)),e.value[r]=t.value}function tD(t,e,r,n,a){if(t.issues.length){if(a&&!(r in n))return;e.issues.push(...zo(r,t.issues))}t.value===void 0?r in n&&(e.value[r]=void 0):e.value[r]=t.value}function Gne(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=XU(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function qne(t,e,r,n,a,i){let s=[],o=a.keySet,c=a.catchall._zod,l=c.def.type,u=c.optout==="optional";for(let p in e){if(o.has(p))continue;if(l==="never"){s.push(p);continue}let d=c.run({value:e[p],issues:[]},n);d instanceof Promise?t.push(d.then(m=>tD(m,r,p,e,u))):tD(d,r,p,e,u)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:i}),t.length?Promise.all(t).then(()=>r):r}function One(t,e,r,n){for(let i of t)if(i.issues.length===0)return e.value=i.value,e;let a=t.filter(i=>!pm(i));return a.length===1?(e.value=a[0].value,a[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>co(s,n,pa())))}),e)}function Nne(t,e,r,n){let a=t.filter(i=>i.issues.length===0);return a.length===1?(e.value=a[0].value,e):(a.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>co(s,n,pa())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}function r3(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(um(t)&&um(e)){let r=Object.keys(e),n=Object.keys(t).filter(i=>r.indexOf(i)!==-1),a={...t,...e};for(let i of n){let s=r3(t[i],e[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};a[i]=s.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<t.length;n++){let a=t[n],i=e[n],s=r3(a,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Fne(t,e,r){let n=new Map,a;for(let o of e.issues)if(o.code==="unrecognized_keys"){a??(a=o);for(let c of o.keys)n.has(c)||n.set(c,{}),n.get(c).l=!0}else t.issues.push(o);for(let o of r.issues)if(o.code==="unrecognized_keys")for(let c of o.keys)n.has(c)||n.set(c,{}),n.get(c).r=!0;else t.issues.push(o);let i=[...n].filter(([,o])=>o.l&&o.r).map(([o])=>o);if(i.length&&a&&t.issues.push({...a,keys:i}),pm(t))return t;let s=r3(e.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}function JP(t,e,r){t.issues.length&&e.issues.push(...zo(r,t.issues)),e.value[r]=t.value}function Mne(t,e,r,n,a,i,s){t.issues.length&&(SC.has(typeof n)?r.issues.push(...zo(n,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:a,inst:i,issues:t.issues.map(o=>co(o,s,pa()))})),e.issues.length&&(SC.has(typeof n)?r.issues.push(...zo(n,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:a,inst:i,key:n,issues:e.issues.map(o=>co(o,s,pa()))})),r.value.set(t.value,e.value)}function $ne(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}function Lne(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}function Bne(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}function Une(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}function XP(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}function QP(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let a=e.transform(t.value,t);return a instanceof Promise?a.then(i=>eD(t,i,e.out,r)):eD(t,a,e.out,r)}else{let a=e.reverseTransform(t.value,t);return a instanceof Promise?a.then(i=>eD(t,i,e.in,r)):eD(t,a,e.in,r)}}function eD(t,e,r,n){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},n)}function jne(t){return t.value=Object.freeze(t.value),t}function zne(t,e,r,n){if(!t){let a={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),e.issues.push(wv(a))}}var Ct,Oh,on,n3,a3,i3,s3,o3,c3,l3,u3,p3,d3,m3,f3,h3,g3,y3,v3,S3,E3,x3,b3,C3,w3,T3,I3,_3,rD,k3,_C,nD,P3,D3,R3,O3,N3,F3,M3,$3,L3,B3,Hne,U3,kC,j3,z3,V3,aD,W3,G3,q3,H3,K3,Y3,Z3,iD,J3,X3,Q3,e4,t4,r4,n4,a4,i4,PC,s4,o4,c4,l4,u4,p4,d4=x(()=>{ZP();bv();Qj();sj();HP();nt();t3();nt();Ct=Y("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=e3;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let a of n)for(let i of a._zod.onattach)i(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let a=(s,o,c)=>{let l=pm(s),u;for(let p of o){if(p._zod.def.when){if(!p._zod.def.when(s))continue}else if(l)continue;let d=s.issues.length,m=p._zod.check(s);if(m instanceof Promise&&c?.async===!1)throw new Nl;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,s.issues.length!==d&&(l||(l=pm(s,d)))});else{if(s.issues.length===d)continue;l||(l=pm(s,d))}}return u?u.then(()=>s):s},i=(s,o,c)=>{if(pm(s))return s.aborted=!0,s;let l=a(o,n,c);if(l instanceof Promise){if(c.async===!1)throw new Nl;return l.then(u=>t._zod.parse(u,c))}return t._zod.parse(l,c)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){let l=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return l instanceof Promise?l.then(u=>i(u,s,o)):i(l,s,o)}let c=t._zod.parse(s,o);if(c instanceof Promise){if(o.async===!1)throw new Nl;return c.then(l=>a(l,n,o))}return a(c,n,o)}}Wt(t,"~standard",()=>({validate:a=>{try{let i=aj(t,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ij(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Oh=Y("$ZodString",(t,e)=>{Ct.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??Ij(t._zod.bag),t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),on=Y("$ZodStringFormat",(t,e)=>{Pv.init(t,e),Oh.init(t,e)}),n3=Y("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=fj),on.init(t,e)}),a3=Y("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Rh(n))}else e.pattern??(e.pattern=Rh());on.init(t,e)}),i3=Y("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=hj),on.init(t,e)}),s3=Y("$ZodURL",(t,e)=>{on.init(t,e),t._zod.check=r=>{try{let n=r.value.trim(),a=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(a.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=a.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),o3=Y("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=gj()),on.init(t,e)}),c3=Y("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=dj),on.init(t,e)}),l3=Y("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=oj),on.init(t,e)}),u3=Y("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=cj),on.init(t,e)}),p3=Y("$ZodULID",(t,e)=>{e.pattern??(e.pattern=lj),on.init(t,e)}),d3=Y("$ZodXID",(t,e)=>{e.pattern??(e.pattern=uj),on.init(t,e)}),m3=Y("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=pj),on.init(t,e)}),f3=Y("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=Tj(e)),on.init(t,e)}),h3=Y("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=Cj),on.init(t,e)}),g3=Y("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=wj(e)),on.init(t,e)}),y3=Y("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=mj),on.init(t,e)}),v3=Y("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=yj),on.init(t,e),t._zod.bag.format="ipv4"}),S3=Y("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=vj),on.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),E3=Y("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=Sj(e.delimiter)),on.init(t,e),t._zod.bag.format="mac"}),x3=Y("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Ej),on.init(t,e)}),b3=Y("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=xj),on.init(t,e),t._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[a,i]=n;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});C3=Y("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=bj),on.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{A3(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});w3=Y("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=GP),on.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{Vne(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),T3=Y("$ZodE164",(t,e)=>{e.pattern??(e.pattern=Aj),on.init(t,e)});I3=Y("$ZodJWT",(t,e)=>{on.init(t,e),t._zod.check=r=>{Wne(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),_3=Y("$ZodCustomStringFormat",(t,e)=>{on.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),rD=Y("$ZodNumber",(t,e)=>{Ct.init(t,e),t._zod.pattern=t._zod.bag.pattern??qP,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let a=r.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return r;let i=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:a,inst:t,...i?{received:i}:{}}),r}}),k3=Y("$ZodNumberFormat",(t,e)=>{Mj.init(t,e),rD.init(t,e)}),_C=Y("$ZodBoolean",(t,e)=>{Ct.init(t,e),t._zod.pattern=Pj,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=!!r.value}catch{}let a=r.value;return typeof a=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:t}),r}}),nD=Y("$ZodBigInt",(t,e)=>{Ct.init(t,e),t._zod.pattern=_j,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:t}),r}}),P3=Y("$ZodBigIntFormat",(t,e)=>{$j.init(t,e),nD.init(t,e)}),D3=Y("$ZodSymbol",(t,e)=>{Ct.init(t,e),t._zod.parse=(r,n)=>{let a=r.value;return typeof a=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:a,inst:t}),r}}),R3=Y("$ZodUndefined",(t,e)=>{Ct.init(t,e),t._zod.pattern=Rj,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(r,n)=>{let a=r.value;return typeof a>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:a,inst:t}),r}}),O3=Y("$ZodNull",(t,e)=>{Ct.init(t,e),t._zod.pattern=Dj,t._zod.values=new Set([null]),t._zod.parse=(r,n)=>{let a=r.value;return a===null||r.issues.push({expected:"null",code:"invalid_type",input:a,inst:t}),r}}),N3=Y("$ZodAny",(t,e)=>{Ct.init(t,e),t._zod.parse=r=>r}),F3=Y("$ZodUnknown",(t,e)=>{Ct.init(t,e),t._zod.parse=r=>r}),M3=Y("$ZodNever",(t,e)=>{Ct.init(t,e),t._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),$3=Y("$ZodVoid",(t,e)=>{Ct.init(t,e),t._zod.parse=(r,n)=>{let a=r.value;return typeof a>"u"||r.issues.push({expected:"void",code:"invalid_type",input:a,inst:t}),r}}),L3=Y("$ZodDate",(t,e)=>{Ct.init(t,e),t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let a=r.value,i=a instanceof Date;return i&&!Number.isNaN(a.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:a,...i?{received:"Invalid Date"}:{},inst:t}),r}});B3=Y("$ZodArray",(t,e)=>{Ct.init(t,e),t._zod.parse=(r,n)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:"array",code:"invalid_type",input:a,inst:t}),r;r.value=Array(a.length);let i=[];for(let s=0;s<a.length;s++){let o=a[s],c=e.element._zod.run({value:o,issues:[]},n);c instanceof Promise?i.push(c.then(l=>Rne(l,r,s))):Rne(c,r,s)}return i.length?Promise.all(i).then(()=>r):r}});Hne=Y("$ZodObject",(t,e)=>{if(Ct.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let o=e.shape;Object.defineProperty(e,"shape",{get:()=>{let c={...o};return Object.defineProperty(e,"shape",{value:c}),c}})}let n=Cv(()=>Gne(e));Wt(t._zod,"propValues",()=>{let o=e.shape,c={};for(let l in o){let u=o[l]._zod;if(u.values){c[l]??(c[l]=new Set);for(let p of u.values)c[l].add(p)}}return c});let a=Dh,i=e.catchall,s;t._zod.parse=(o,c)=>{s??(s=n.value);let l=o.value;if(!a(l))return o.issues.push({expected:"object",code:"invalid_type",input:l,inst:t}),o;o.value={};let u=[],p=s.shape;for(let d of s.keys){let m=p[d],f=m._zod.optout==="optional",h=m._zod.run({value:l[d],issues:[]},c);h instanceof Promise?u.push(h.then(g=>tD(g,o,d,l,f))):tD(h,o,d,l,f)}return i?qne(u,l,o,c,n.value,t):u.length?Promise.all(u).then(()=>o):o}}),U3=Y("$ZodObjectJIT",(t,e)=>{Hne.init(t,e);let r=t._zod.parse,n=Cv(()=>Gne(e)),a=d=>{let m=new IC(["shape","payload","ctx"]),f=n.value,h=A=>{let C=OP(A);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};m.write("const input = payload.value;");let g=Object.create(null),S=0;for(let A of f.keys)g[A]=`key_${S++}`;m.write("const newResult = {};");for(let A of f.keys){let C=g[A],I=OP(A),D=d[A]?._zod?.optout==="optional";m.write(`const ${C} = ${h(A)};`),D?m.write(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fjall",
|
|
3
|
-
"version": "0.94.
|
|
3
|
+
"version": "0.94.1",
|
|
4
4
|
"description": "Fjall CLI",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@aws-sdk/client-sso-admin": "^3.997.0",
|
|
34
34
|
"@aws-sdk/client-sso-oidc": "^3.997.0",
|
|
35
35
|
"@aws-sdk/client-sts": "^3.997.0",
|
|
36
|
-
"@fjall/cli": "^0.94.
|
|
36
|
+
"@fjall/cli": "^0.94.1",
|
|
37
37
|
"@opennextjs/aws": "^3.9.16",
|
|
38
38
|
"aws-cdk": "^2.1105.0",
|
|
39
39
|
"dockerode": "^4.0.9",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=22.0.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "65d778bc6370a5becd761b367a482ca51e890f58"
|
|
63
63
|
}
|