@stacksjs/ts-cloud 0.16.52 → 0.16.53
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/dist/aws/index.js +1 -1
- package/dist/bin/{chunk-z06jkvvr.js → chunk-0xfy78nc.js} +4 -4
- package/dist/bin/chunk-1cccv502.js +1 -0
- package/dist/bin/{chunk-n5kdne4p.js → chunk-1q6wqzh1.js} +3 -3
- package/dist/bin/{chunk-ddyd6f14.js → chunk-28124w0n.js} +2 -2
- package/dist/bin/{chunk-ppd463ev.js → chunk-3mhzd931.js} +1 -1
- package/dist/bin/{chunk-q2rqmc2x.js → chunk-4crz28b9.js} +1 -1
- package/dist/bin/chunk-5s91mpty.js +1 -0
- package/dist/bin/chunk-6sfn8fjv.js +1 -0
- package/dist/bin/chunk-6tdt3ea9.js +1 -0
- package/dist/bin/{chunk-dv2he3vc.js → chunk-7cactd6c.js} +2 -2
- package/dist/bin/{chunk-2wh45zhk.js → chunk-7p70c4br.js} +2 -2
- package/dist/bin/{chunk-93yw46n7.js → chunk-8fh0gv4q.js} +1 -1
- package/dist/bin/chunk-8nfrknq3.js +1 -0
- package/dist/bin/{chunk-0wtshht7.js → chunk-95djv2ja.js} +1 -1
- package/dist/bin/{chunk-te52z1wk.js → chunk-9t78j764.js} +1 -1
- package/dist/bin/chunk-a4z8b18n.js +1 -0
- package/dist/bin/chunk-apqyj6gr.js +1 -0
- package/dist/bin/chunk-bn2sn094.js +1 -0
- package/dist/bin/chunk-bzbah8jm.js +1 -0
- package/dist/bin/chunk-bzpeqh5z.js +1 -0
- package/dist/bin/{chunk-mcg4wg4j.js → chunk-bzzwbkrx.js} +4 -4
- package/dist/bin/{chunk-f78wmcvb.js → chunk-cdseg15k.js} +2 -2
- package/dist/bin/{chunk-wv8060cw.js → chunk-dg8ceycc.js} +5 -5
- package/dist/bin/chunk-e0d34gcp.js +1 -0
- package/dist/bin/chunk-e3zsrpbj.js +1 -0
- package/dist/bin/{chunk-t970yjvz.js → chunk-ek27709c.js} +5 -5
- package/dist/bin/chunk-erdz4875.js +1 -0
- package/dist/bin/chunk-et6hzqpx.js +1 -0
- package/dist/bin/chunk-gee6a9zv.js +740 -0
- package/dist/bin/{chunk-ngmewar1.js → chunk-hkx5j0bn.js} +3 -3
- package/dist/bin/chunk-hrg9ygbz.js +1 -0
- package/dist/bin/{chunk-fjbhvhqb.js → chunk-hzc049ns.js} +1 -1
- package/dist/bin/{chunk-rwbdtxte.js → chunk-jvbe549p.js} +1 -1
- package/dist/bin/{chunk-5c4xh61a.js → chunk-jxm62h8r.js} +16 -16
- package/dist/bin/{chunk-a7hhzbvm.js → chunk-jyvr7eh5.js} +3 -3
- package/dist/bin/{chunk-cjagqdk3.js → chunk-k1kk78qg.js} +5 -5
- package/dist/bin/chunk-kj1e4xvg.js +1 -0
- package/dist/bin/{chunk-811k54jq.js → chunk-kqd186ky.js} +2 -2
- package/dist/bin/{chunk-we2raqk3.js → chunk-mdcv2vw1.js} +2 -2
- package/dist/bin/chunk-mpawwybt.js +1 -0
- package/dist/bin/{chunk-da6dmacg.js → chunk-n2jh5p5x.js} +2 -2
- package/dist/bin/chunk-n6hngvvb.js +1 -0
- package/dist/bin/chunk-n9aeark7.js +1 -0
- package/dist/bin/{chunk-7czb1kgg.js → chunk-nva480hg.js} +2 -2
- package/dist/bin/{chunk-yfa84s0c.js → chunk-p23wfy3r.js} +1 -1
- package/dist/bin/{chunk-ytzcsskk.js → chunk-p6qa21fr.js} +2 -2
- package/dist/bin/chunk-pexjxc5g.js +1 -0
- package/dist/bin/{chunk-sa9c8vb5.js → chunk-pr5c0q0k.js} +5 -5
- package/dist/bin/{chunk-m3xap663.js → chunk-q0takzyx.js} +4 -4
- package/dist/bin/{chunk-hhmqsrfc.js → chunk-rbyrd9we.js} +1 -1
- package/dist/bin/{chunk-0e9yddgc.js → chunk-rmxexkvr.js} +60 -60
- package/dist/bin/{chunk-45thdtvf.js → chunk-rqvrjp8g.js} +36 -36
- package/dist/bin/chunk-s98wngxx.js +1 -0
- package/dist/bin/{chunk-83brtkvn.js → chunk-sbate1ky.js} +1 -1
- package/dist/bin/{chunk-5ny7rggt.js → chunk-sy4zws71.js} +1 -1
- package/dist/bin/chunk-t2ec6d8h.js +1 -0
- package/dist/bin/{chunk-fhe0mdjg.js → chunk-tbp1gf1p.js} +1 -1
- package/dist/bin/{chunk-734n0gkw.js → chunk-v0g82agx.js} +1 -1
- package/dist/bin/{chunk-f0vedy45.js → chunk-v9js2b1d.js} +1 -1
- package/dist/bin/{chunk-33ntxz01.js → chunk-z6xnegpe.js} +3 -3
- package/dist/bin/cli.js +239 -239
- package/dist/bin/dashboard-server.js +1 -1
- package/dist/{chunk-qcv4twc6.js → chunk-184bvh5s.js} +19 -19
- package/dist/chunk-27ny16g8.js +1 -0
- package/dist/{chunk-pz33w7gv.js → chunk-2hma3g5q.js} +2 -2
- package/dist/chunk-2n3c5axm.js +1 -0
- package/dist/{chunk-6gnmrtp9.js → chunk-430acqjk.js} +19 -19
- package/dist/chunk-5yrabpmr.js +1 -0
- package/dist/{chunk-9ggg2ktx.js → chunk-7ag4wc74.js} +2 -2
- package/dist/{chunk-thdfk76k.js → chunk-80bgb48v.js} +2 -2
- package/dist/{chunk-8b2mxhcm.js → chunk-94z7s8ky.js} +5 -5
- package/dist/{chunk-rjaa4epz.js → chunk-9fvtnx6h.js} +90 -90
- package/dist/{chunk-6m8p1n88.js → chunk-a99wz633.js} +12 -12
- package/dist/{chunk-x4qye2rc.js → chunk-apj1eqcy.js} +4 -4
- package/dist/chunk-bg89ad2e.js +1 -0
- package/dist/{chunk-erfh93dq.js → chunk-c482jhc6.js} +2 -2
- package/dist/{chunk-zf5wdx6v.js → chunk-d245va6b.js} +1 -1
- package/dist/{chunk-ca191b00.js → chunk-e42gpavb.js} +5 -5
- package/dist/chunk-e5xg3p1x.js +1 -0
- package/dist/{chunk-ffyx50xx.js → chunk-gmtds745.js} +1 -1
- package/dist/chunk-hwm83kj0.js +464 -0
- package/dist/{chunk-p101nhg2.js → chunk-hybz2q8w.js} +4 -4
- package/dist/{chunk-j99nkav5.js → chunk-jyvnfny6.js} +3 -3
- package/dist/{chunk-4abbccq7.js → chunk-mp2y4t6w.js} +1 -1
- package/dist/{chunk-jytama4e.js → chunk-nhsefr22.js} +5 -5
- package/dist/{chunk-3ncnrrvm.js → chunk-qjp3f5y8.js} +7 -7
- package/dist/{chunk-0qgfe5ff.js → chunk-qyr5hn6v.js} +3 -3
- package/dist/{chunk-m9r0a1v9.js → chunk-smt4t6rc.js} +2 -2
- package/dist/{chunk-0cz2s19h.js → chunk-stc3ykm3.js} +2 -2
- package/dist/{chunk-4yqd62rd.js → chunk-v4vz0e85.js} +1 -1
- package/dist/{chunk-qcj3hkba.js → chunk-vgtqd3sb.js} +1 -1
- package/dist/{chunk-r5mk071y.js → chunk-wbbbpt4v.js} +5 -5
- package/dist/chunk-xfced13z.js +1 -0
- package/dist/{chunk-jtvw9d4x.js → chunk-y7k5872m.js} +1 -1
- package/dist/{chunk-xgc6hskd.js → chunk-yt8qgn5d.js} +6 -6
- package/dist/{chunk-prtvb2fh.js → chunk-zvcd6x45.js} +83 -83
- package/dist/deploy/index.js +1 -1
- package/dist/dns/index.js +1 -1
- package/dist/drivers/hetzner/client.d.ts +30 -0
- package/dist/drivers/hetzner/driver.d.ts +3 -2
- package/dist/drivers/hetzner/volumes.d.ts +9 -0
- package/dist/drivers/index.d.ts +4 -0
- package/dist/drivers/index.js +1 -1
- package/dist/drivers/shared/compute-storage-agent.d.ts +3 -0
- package/dist/drivers/shared/compute-storage.d.ts +21 -0
- package/dist/drivers/shared/notifications.d.ts +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -19
- package/dist/mail/index.js +2 -2
- package/dist/operations/index.js +1 -1
- package/dist/protection/index.js +1 -1
- package/dist/spend/index.js +1 -1
- package/dist/ui/404.html +1 -1
- package/dist/ui/accept-invitation.html +1 -1
- package/dist/ui/access-denied.html +1 -1
- package/dist/ui/account/automation.html +6 -6
- package/dist/ui/account/security.html +2 -2
- package/dist/ui/applications/compose.html +6 -6
- package/dist/ui/applications/new.html +2 -2
- package/dist/ui/data/backups.html +6 -6
- package/dist/ui/data/services.html +6 -6
- package/dist/ui/data/volumes.html +5 -5
- package/dist/ui/index.html +6 -6
- package/dist/ui/infrastructure/topology.html +5 -5
- package/dist/ui/integrations.html +2 -2
- package/dist/ui/operations/alerts.html +6 -6
- package/dist/ui/operations/configuration.html +6 -6
- package/dist/ui/operations/jobs.html +6 -6
- package/dist/ui/operations/maintenance.html +6 -6
- package/dist/ui/operations/observability.html +6 -6
- package/dist/ui/operations/previews.html +6 -6
- package/dist/ui/operations/queue.html +6 -6
- package/dist/ui/operations/regions.html +6 -6
- package/dist/ui/operations/releases.html +6 -6
- package/dist/ui/operations/spend.html +6 -6
- package/dist/ui/operations/workloads.html +6 -6
- package/dist/ui/security.html +2 -2
- package/dist/ui/server/actions.html +6 -6
- package/dist/ui/server/activity.html +2 -2
- package/dist/ui/server/capacity.html +6 -6
- package/dist/ui/server/database.html +6 -6
- package/dist/ui/server/deployments.html +5 -5
- package/dist/ui/server/diagnostics.html +2 -2
- package/dist/ui/server/firewall.html +6 -6
- package/dist/ui/server/fleet.html +6 -6
- package/dist/ui/server/logs.html +6 -6
- package/dist/ui/server/metrics.html +6 -6
- package/dist/ui/server/security.html +2 -2
- package/dist/ui/server/services.html +1 -1
- package/dist/ui/server/sites.html +5 -5
- package/dist/ui/server/ssh-keys.html +6 -6
- package/dist/ui/server/team.html +5 -5
- package/dist/ui/server/terminal.html +1 -1
- package/dist/ui/serverless/alarms.html +5 -5
- package/dist/ui/serverless/assets.html +2 -2
- package/dist/ui/serverless/cost.html +2 -2
- package/dist/ui/serverless/data.html +6 -6
- package/dist/ui/serverless/deployments.html +2 -2
- package/dist/ui/serverless/firewall.html +1 -1
- package/dist/ui/serverless/functions.html +6 -6
- package/dist/ui/serverless/logs.html +6 -6
- package/dist/ui/serverless/metrics.html +2 -2
- package/dist/ui/serverless/queues.html +6 -6
- package/dist/ui/serverless/secrets.html +6 -6
- package/dist/ui/serverless/traces.html +6 -6
- package/dist/ui/serverless.html +6 -6
- package/dist/ui-src/pages/server/metrics.stx +9 -0
- package/package.json +3 -3
- package/dist/bin/chunk-20dp8658.js +0 -1
- package/dist/bin/chunk-334jngt2.js +0 -1
- package/dist/bin/chunk-3k7y1h18.js +0 -1
- package/dist/bin/chunk-626npmtj.js +0 -1
- package/dist/bin/chunk-67vf8myy.js +0 -1
- package/dist/bin/chunk-74wppexz.js +0 -1
- package/dist/bin/chunk-87g6jcfm.js +0 -1
- package/dist/bin/chunk-8ya34jz7.js +0 -1
- package/dist/bin/chunk-964xmgb6.js +0 -1
- package/dist/bin/chunk-9qdrv6zp.js +0 -1
- package/dist/bin/chunk-azarn24c.js +0 -1
- package/dist/bin/chunk-dpk5r544.js +0 -1
- package/dist/bin/chunk-f578z20t.js +0 -1
- package/dist/bin/chunk-f9469h6q.js +0 -1
- package/dist/bin/chunk-g6ph425d.js +0 -1
- package/dist/bin/chunk-k6g1c681.js +0 -1
- package/dist/bin/chunk-m7pbssep.js +0 -1
- package/dist/bin/chunk-n7xadeqe.js +0 -1
- package/dist/bin/chunk-nxvtya6v.js +0 -724
- package/dist/bin/chunk-p6wxv8yq.js +0 -1
- package/dist/bin/chunk-vpt43nwa.js +0 -1
- package/dist/bin/chunk-wgh66c5r.js +0 -1
- package/dist/bin/chunk-zywk12mp.js +0 -1
- package/dist/chunk-09d6pdgx.js +0 -1
- package/dist/chunk-21mmcmm7.js +0 -1
- package/dist/chunk-2gqm2h84.js +0 -1
- package/dist/chunk-ggtsfsxx.js +0 -448
- package/dist/chunk-jgsey18z.js +0 -1
- package/dist/chunk-qbsrs1gp.js +0 -1
- package/dist/chunk-tnqj2en4.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$p,Td,ac,cc,Ed,Lp,Mp,Zt,kn,er,Wi,Up,Nn,os}from"./chunk-v0g82agx.js";import{Qe,gs,yc,yi,fs,Gp}from"./chunk-q0takzyx.js";import{zd,vo,Hd,qd,Gd,wr,am,Co}from"./chunk-bzzwbkrx.js";import{Qa,Ya,Za,ld,Gi,dd,ud,ts,ec,tc}from"./chunk-rqvrjp8g.js";import"./chunk-z6xnegpe.js";export{Ya as CHAIN_HEADER,kn as DEFAULT_ATTACK_MODE_HOURS,zd as DEFAULT_DDOS_THRESHOLDS,Gi as DEFAULT_RECURSION_LIMITS,Qa as DEPTH_HEADER,Zt as MAX_CONTROL_HOURS,er as ProtectionControlStore,$p as RATE_LIMIT_KEY_SEPARATOR,Ed as RateLimiter,ts as RecursionGuard,Za as TRACE_HEADER,Nn as applyControlsToDdos,Up as applyControlsToRateLimits,Co as applyMitigationFactor,Mp as defaultRateLimitRules,Wi as describePosture,Qe as escapeSecLang,ld as functionFingerprint,Td as globMatches,yc as globToRegex,ud as inspectInvocation,gs as isSafePattern,vo as isValidCidr,os as mergeControlsIntoConfig,dd as parseChain,am as planMitigation,ec as propagationHeaders,Lp as rateLimitHeaders,cc as rateLimitKey,tc as recursionBlockedResponse,wr as renderDdosInstallScript,Gd as renderNftablesRuleset,qd as renderSysctlFile,yi as renderWafConfig,fs as renderWafInstallScript,ac as ruleMatches,Hd as sysctlHardening,Gp as wafEventTelemetry};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hm,ym,sa,Zc,aa,ca,vn,je,A,la,el,H,Mr,w,eu,ne,Ur,da,Vo,le,B,zo,tu,ru,nu,iu,l,o,bm,Sm,T,ua,pa,ma,vm,Cm,Oe,ga,_i,ou,Tm,Em,Ve,At,fa,tl,rl,wm,nl,il,ol,Ho,ha,nt,qo,Cn,Oi,Tn,ze,su,Go,Wo,ya,ba,Sa,va,Ca,Ta,Ae,j,au,cu,sl,b,L,it,k,al,Rt,ye,Gt,Am,cl,Re,Ko,He,Wt,$i,Ie,Jo,$e,lu,Li,Pe,De,ie,Mi,X,Kt,It,ke,t,En,Rm,ll,Ea,Im,Pm,Dm,km,wa,Nm,xm,_m,Om,$m,Lm,Mm,Um,Fm,Bm,jm,Vm,du,uu,pu,mu,gu,fu,hu,Jt,dl,ul,Fr,Ui,zm,pl,Hm,qm,wn,Gm,Wm,Km,Jm,Xm,Qm,yu,bu,Su,vu,Cu,Fi,Ym,An,Tu,ml,Eu,Aa,be,wu,Au,Pt,Xo,Xt,Ru,gl,Iu,Pu,Du,fl,Se,Zm,eg,tg,rg,ku,ng,Ne,ig,og,sg,Ra,Ia,Nu,hl,yl,ag,cg,lg,dg,ug,xu,Pa,pg,mg,gg,fg,hg,_u,Ou,yg,bg,Sg,vg,Cg,Tg,Eg,$u,wg,bl,Da,Ag,Rg,Ig,Pg,Sl,vl,Cl,Dg,ka,Lu,Mu,Uu,Fu,Na,Bu,kg,Ng,xg,_g,Og,$g,Lg,ju,Vu,zu,Hu,Tl,Mg,Ug,Fg,Bg,jg,Vg,zg,Hg,qg,qu,Gu,Wu,Ku,Gg,Wg,El,Kg,wl,Al,Rl,Il,Jg,Xg,Qg,Yg,ot,Bi,Zg,ef,tf,rf,nf,of,sf,af,Ju,cf,lf,Pl,Dl,df,uf,Xu,pf,mf,gf,ff,hf,yf,bf,Sf,vf,Cf,Tf,Ef,wf,Af,Rf,If,Pf,Df,kf,Nf,xf,xa,Qu,_a,Yu,Oa,Zu,$a,ep,La,tp,Br,rp,Ma,np,ji,ip,Ua,op,Fa,sp,kl,_f,Nl,Of,Ba,ap,jr,cp,xl,$f,ja,lp,_l,Lf,Ol,Mf,$l,Uf,Va,dp,Ll,Ff,Ml,Bf,Ul,jf,Fl,Vf,za,up,Ha,pp,Bl,zf,jl,Hf,Vl,qf,zl,Gf,Hl,Wf,ql,Kf,qa,mp,Gl,Jf,Wl,Xf,Kl,Qf,Jl,Yf,Xl,Zf,Ql,eh,Yl,Zl,ed,td,rd,th,nd,rh,id,nh,od,ih,Dt,sd,gp,Qo,Ga,Rn,fp,Vi,Qt,Wa,Ka,hp,yp,Ja,ad,Xa,cd,oh,sh,Qa,Ya,Za,ld,zi,dd,ud,Yo,ec,tc,pd,bp,Sp,vp,ah,md,gd,ch,Cp,fd,Tp,Ep,wp,lh,hd,In,rc,yd,dh,Ap,Zo,es,nc,bd,uh,ic,Rp,Sd,ph,vd,mh,Cd,gh}from"./chunk-45thdtvf.js";import{oc,Y,sc,ts,Ip,kt,Pp,Dp,Pn,kp,Np,xp,_p,Op}from"./chunk-33ntxz01.js";export{Ua as ABTestManager,He as AI,Iu as AWSAPIError,Oa as AWSConfigManager,Rm as AWS_PSEUDO_PARAMETERS,ot as AWS_REGIONS,Jo as ApiGateway,En as Arn,ie as AssetHasher,Pe as Auth,xa as BackupManager,id as BatchProcessingManager,Ma as BlueGreenManager,Kl as BounceComplaintHandler,Fl as BuildOptimizationManager,ze as CDN,Ya as CHAIN_HEADER,fa as CLOUDFRONT_FAILOVER_STATUS_CODES,mf as COMMON_CROSS_ACCOUNT_ROLES,$i as Cache,ji as CanaryManager,Ll as CertificateManager,Pt as CloudError,ll as CloudFormationBuilder,Eu as CloudFormationClient,Au as CloudFrontClient,$a as CloudTrailManager,Ku as CommandHistory,ke as Communication,b as Compute,Xo as ConfigurationError,za as ContainerRegistryManager,Xt as CredentialError,wl as CrossRegionReferenceManager,uu as DASHBOARD_ENTRY,pu as DASHBOARD_PORT_BASE,mu as DASHBOARD_PORT_SPAN,du as DASHBOARD_STATE_DIR,tl as DEFAULT_FAILOVER_STATUS_CODES,zi as DEFAULT_RECURSION_LIMITS,Ne as DEFAULT_SERVICE_LIMITS,sa as DEFAULT_STATE_DIR,su as DEFAULT_STORAGE_FAILOVER_STATUS_CODES,Qa as DEPTH_HEADER,nd as DLQMonitoringManager,Ae as DNS,Gl as DNSSECManager,Wt as Database,Ol as DatabaseUserManager,Se as DebugLogger,ou as DependencyGraph,De as Deployment,Ru as DeploymentError,_a as DisasterRecoveryManager,k as Email,Yl as EmailAdvanced,Jl as EmailAnalyticsManager,Zl as EmailHandlers,Ql as EmailTemplateManager,Pu as ErrorCodes,Wo as FAILOVER_REPLICA_POLICY_SID,rd as FIFOQueueManager,Ra as FileCache,it as FileSystem,t as Fn,Al as GlobalResourceManager,La as GuardDutyManager,xu as HashCache,Sd as HealthCheckManager,Ul as ImageScanningManager,Gt as JobLoader,yd as LARAVEL_SERVERLESS_BUILD_STEPS,Vl as LambdaConcurrencyManager,ql as LambdaDLQManager,zl as LambdaDestinationsManager,Bl as LambdaLayersManager,Hl as LambdaVPCManager,jl as LambdaVersionsManager,Ba as LogsManager,fp as MANAGED_NODE_VERSIONS,dl as MANAGEMENT_DASHBOARD_SITE_PREFIX,$e as Messaging,Nl as MetricsManager,xl as MigrationManager,Sl as MockCloudFormation,Cl as MockDynamoDB,vl as MockS3,Li as Monitoring,Pl as MultiAccountManager,El as MultiRegionManager,Vu as MultiStepProgress,L as Network,vd as NetworkSecurityManager,il as ORIGIN_CONNECTION_ATTEMPTS,ol as ORIGIN_CONNECTION_TIMEOUT,rl as ORIGIN_GROUP_ALLOWED_METHODS,wm as ORIGIN_GROUP_ID_SUFFIX,nl as ORIGIN_GROUP_SELECTION_CRITERIA,Dl as OrganizationManager,Ap as PHP_DEFAULT_EXCLUDES,hp as PHP_LAYER_EXTENSIONS,X as ParameterStore,_l as PerformanceManager,Ie as Permissions,Rt as Phone,ed as PhoneAdvanced,al as PhoneHandlers,ka as PreviewEnvironmentManager,Na as PreviewNotificationService,ju as ProgressBar,Fa as ProgressiveDeploymentManager,iu as Pseudo,ye as Queue,od as QueueManagementManager,hm as QueuePresets,Xu as RECOMMENDED_ACCOUNT_STRUCTURES,pf as RECOMMENDED_SCPS,qu as REPL,Wu as REPLCommandBuilder,Gu as REPLContext,_u as RateLimiter,ym as RealtimePresets,Yo as RecursionGuard,It as Redirects,Rl as RegionPairManager,At as Registry,ja as ReplicaManager,Cd as ResourceManagementManager,Wl as Route53ResolverManager,qa as Route53RoutingManager,Aa as S3Client,be as S3Error,Re as SMS,Zc as STATE_DIR_ENV_VAR,Go as STORAGE_FAILOVER_METADATA_KEY,Kt as Search,Mi as Secrets,Va as SecretsManager,$l as SecretsRotationManager,j as Security,Br as SecurityHubManager,Ml as SecurityScanningManager,Xl as SenderReputationManager,Ha as ServiceMeshManager,Ko as Sftp,td as SmsAdvanced,cl as SmsHandlers,zu as Spinner,Il as StackDependencyManager,Am as StacksIntegration,bd as StaticSiteManager,Ve as Storage,ic as StorageAdvancedManager,jr as SyntheticsManager,Za as TRACE_HEADER,Hu as TaskList,zo as TemplateBuilder,Ia as TemplateCache,gl as ValidationError,lu as Workflow,kl as XRayManager,op as abTestManager,sl as amazonLinuxImageId,cu as amazonLinuxImageParameter,Tm as analyzeStackDiff,Ga as artifactKey,Cn as assertOriginGroupMethods,jg as autocomplete,Zu as awsConfigManager,Qu as backupManager,pg as batch,nh as batchProcessingManager,np as blueGreenManager,Qf as bounceComplaintHandler,sh as buildBunRuntimeLayerZip,Ea as buildCloudFormationTemplate,Ca as buildFailoverReplicaPolicyStatement,da as buildMailEnv,oh as buildNodeRuntimeLayerZip,Vf as buildOptimizationManager,ha as buildOriginGroup,qo as buildOriginGroups,dh as buildPhpRuntimeLayerZip,va as buildReplicationConfiguration,Sa as buildReplicationRole,ip as canaryManager,Cg as categorizeChanges,Ff as certificateManager,rg as checkIAMPermissions,md as checkInvocation,ig as checkServiceQuotas,Ou as chunk,Np as clearSigningKeyCache,$u as cloudConfigSchema,ep as cloudTrailManager,es as collectPhpAppEntries,Hm as composePresets,Ka as composeServerlessAppTemplate,up as containerRegistryManager,xm as createApiBackendPreset,wp as createCliHandler,Ym as createCredentialProvider,Vm as createDashboardSite,Mm as createDataPipelinePreset,fl as createError,wa as createExistingStaticFullStackPreset,Nm as createFullStackAppPreset,lh as createHandlers,Tp as createHttpHandler,Om as createJamstackPreset,Bm as createLaravelPreset,Um as createMLApiPreset,$m as createMicroservicesPreset,Dg as createMockAWS,Pm as createNodeJsServerPreset,Dm as createNodeJsServerlessPreset,qm as createPreset,ts as createPresignedUrl,Ip as createPresignedUrlAsync,Ep as createQueueHandler,Lm as createRealtimeAppPreset,wu as createS3Client,jm as createServerlessLaravelPreset,km as createServerlessNodePreset,Im as createStaticSitePreset,Fm as createTraditionalWebAppPreset,_m as createWordPressPreset,Dt as createZip,Jg as crossRegionReferenceManager,Mf as databaseUserManager,bl as defaultLocalConfig,Mr as deploymentCoexistenceError,gu as deriveManagementDashboardPort,el as detectDeploymentTargets,eg as detectMisconfigurations,oc as detectServiceRegion,bg as diffTemplates,rh as dlqMonitoringManager,Jf as dnssecManager,Yu as drManager,Yf as emailAnalyticsManager,eh as emailTemplateManager,Cp as eventToRequest,pl as extendPreset,th as fifoQueueManager,ug as findChangedFiles,yf as formatAccountStructure,_g as formatBytes,Em as formatDiff,Og as formatDuration,zg as formatFlagSuggestions,Gg as formatHistory,Wg as formatHistoryStats,Lg as formatKeyValue,$g as formatList,xg as formatProgressBar,Ju as formatRegion,cf as formatRegionList,Mg as formatSuggestion,kg as formatTable,Ng as formatTree,Su as fromEC2Metadata,vu as fromECSMetadata,yu as fromEnvironment,bu as fromSharedCredentials,Cu as fromWebIdentity,ld as functionFingerprint,Xa as generateAppImageDockerfile,Nf as generateApprovalConfig,sd as generateBootstrap,Uu as generateCleanupWorkflow,Fu as generateCostReportWorkflow,ff as generateCrossAccountRoleCF,Pf as generateDeploymentConfig,Ef as generateDeploymentPipeline,bf as generateDeploymentWorkflow,o as generateLogicalId,If as generateManualPipeline,Tf as generateMatrixWorkflow,Df as generateMultiEnvConfig,wf as generateMultiEnvPipeline,Sf as generateMultiEnvWorkflow,vf as generatePRPreviewWorkflow,xf as generateParallelConfig,hd as generatePhpFpmConfig,ad as generatePhpLayerDockerfile,Af as generatePreviewPipeline,Mu as generatePreviewWorkflow,l as generateResourceName,kf as generateScheduledConfig,Rf as generateScheduledPipeline,Cf as generateScheduledWorkflow,ml as getAccountId,Zg as getAllRegions,of as getClosestRegion,Hg as getCommandUsage,Fg as getContextualHelp,Fi as getCredentials,Tg as getDeploymentStrategy,Eg as getDiffStats,Sg as getDiffSummary,Du as getErrorDetails,Da as getLocalConfig,Ig as getLocalCredentials,Rg as getLocalEndpoint,Pg as getLocalEnvVars,og as getQuotaUsageSummary,gf as getRecommendedStructure,Bi as getRegion,lf as getRegionStats,tf as getRegionsByCompliance,ef as getRegionsByLocation,rf as getRegionsByPricingTier,ku as getRequiredPermissions,xp as getSigningKeyCacheSize,bm as getTimestamp,Xg as globalResourceManager,tp as guardDutyManager,Jt as hasManagementDashboardSite,ag as hashBuffer,cg as hashDirectory,hl as hashFile,lg as hashManifest,yl as hashString,ph as healthCheckManager,jf as imageScanningManager,ud as inspectInvocation,Sp as installRecursionFetch,pd as invocationContext,au as isArmInstanceType,Ug as isLikelyTypo,Ag as isLocalDevelopment,Fr as isManagementDashboardSiteName,_p as isNodeCryptoAvailable,Oi as isS3RestEndpoint,ca as isStateDirConfigured,la as isStatePath,nf as isValidRegion,Op as isWebCryptoAvailable,qf as lambdaConcurrencyManager,Kf as lambdaDLQManager,Gf as lambdaDestinationsManager,zf as lambdaLayersManager,Wf as lambdaVPCManager,Hf as lambdaVersionsManager,rc as laravelServerlessEnvDefaults,ap as logsManager,eu as mailEnabled,Ur as mailFirewallPorts,Vo as mailWebmailSites,kt as makeAWSRequest,Dp as makeAWSRequestAsync,Pp as makeAWSRequestOnce,ul as managementDashboardSiteName,wn as mergeInfrastructure,Of as metricsManager,$f as migrationManager,df as multiAccountManager,Kg as multiRegionManager,mh as networkSecurityManager,uf as organizationManager,nc as packagePhpApp,Rn as packageServerlessApp,Pa as parallel,mg as parallelMap,gg as parallelWithRetry,dd as parseChain,kp as parseJSONResponse,Pn as parseXMLResponse,Lf as performanceManager,Ja as phpLayerBuildStage,yp as phpLayerPackages,In as phpRuntimeLayerAssets,Lu as previewManager,Bu as previewNotifications,yg as processInChunks,sp as progressiveDeploymentManager,ec as propagationHeaders,ih as queueManagementManager,dg as quickHash,tc as recursionBlockedResponse,Qg as regionPairManager,lp as replicaManager,vg as requiresReplacement,ah as resetRecursionRuntime,ch as resolveApp,w as resolveAppDatabase,B as resolveCloudProvider,An as resolveCredentials,fu as resolveDashboardDomain,hu as resolveDashboardDomains,Cm as resolveDeployBucketName,H as resolveDeploymentMode,Ho as resolveFailoverStatusCodes,le as resolveMailProxy,ne as resolveMailService,zm as resolveManagementDashboardSite,Ui as resolveManagementDashboardSites,nt as resolveOriginConnection,T as resolveProjectStackName,Wa as resolveQueueNames,Qt as resolveQueues,bp as resolveRecursionConfig,Tu as resolveRegion,Oe as resolveServerlessAppStackName,ga as resolveServerlessArtifactBucketName,_i as resolveServerlessAssetBucketName,Vi as resolveServerlessRuntime,ma as resolveSiteBucketName,pa as resolveSiteResourceName,ua as resolveSiteStackName,A as resolveStatePath,vm as resolveStorageBucketName,ya as resolveStorageFailover,gh as resourceManagementManager,fd as responseToResult,Xf as route53ResolverManager,mp as route53RoutingManager,gp as runBuildHooks,Zo as runPhpBuildHooks,ba as s3RegionalDomain,Sm as sanitizeName,Bg as searchCommands,dp as secretsManager,Uf as secretsRotationManager,rp as securityHubManager,Bf as securityScanningManager,Zf as senderReputationManager,fg as sequence,pp as serviceMeshManager,aa as setStateDir,Qo as sha256,vp as sharedRecursionGuard,cd as sharedRuntimeLoop,Y as signRequest,sc as signRequestAsync,Yg as stackDependencyManager,vn as stateDir,je as statePath,uh as staticSiteManager,Rp as storageAdvancedManager,Ta as storageFailoverReplicasFromTemplate,Tl as suggestCommand,Vg as suggestFlags,ng as suggestIAMPolicy,sg as suggestQuotaIncrease,af as suggestRegionPairs,sf as suggestRegions,cp as syntheticsManager,Nu as templateCache,hf as validateAccountStructure,wg as validateAgainstSchema,qg as validateCommand,Zm as validateConfiguration,tg as validateCredentials,Tn as validateOriginGroups,nu as validateResourceLimits,tu as validateTemplate,ru as validateTemplateSize,Xm as withCDN,Jm as withCache,Km as withDatabase,gd as withInvocation,Gm as withMonitoring,Qm as withQueue,Wm as withSecurity,hg as withTimeout,_f as xrayManager};
|
|
1
|
+
import{hm,ym,sa,Zc,aa,ca,Cn,je,A,la,el,H,Ur,w,eu,ne,Fr,da,qo,le,B,Go,tu,ru,nu,iu,l,o,bm,Sm,T,ua,pa,ma,vm,Cm,Oe,ga,Li,ou,Tm,Em,Ve,At,fa,tl,rl,wm,nl,il,ol,Wo,ha,it,Ko,Tn,Mi,En,ze,su,Jo,Xo,ya,ba,Sa,va,Ca,Ta,Ae,j,au,cu,sl,b,L,ot,k,al,Rt,ye,Gt,Am,cl,Re,Qo,He,Wt,Ui,Ie,Yo,$e,lu,Fi,Pe,De,ie,Bi,X,Kt,It,ke,t,wn,Rm,ll,Ea,Im,Pm,Dm,km,wa,Nm,xm,_m,Om,$m,Lm,Mm,Um,Fm,Bm,jm,Vm,du,uu,pu,mu,gu,fu,hu,Jt,dl,ul,Br,ji,zm,pl,Hm,qm,An,Gm,Wm,Km,Jm,Xm,Qm,yu,bu,Su,vu,Cu,Vi,Ym,Rn,Tu,ml,Eu,Aa,be,wu,Au,Pt,Zo,Xt,Ru,gl,Iu,Pu,Du,fl,Se,Zm,eg,tg,rg,ku,ng,Ne,ig,og,sg,Ra,Ia,Nu,hl,yl,ag,cg,lg,dg,ug,xu,Pa,pg,mg,gg,fg,hg,_u,Ou,yg,bg,Sg,vg,Cg,Tg,Eg,$u,wg,bl,Da,Ag,Rg,Ig,Pg,Sl,vl,Cl,Dg,ka,Lu,Mu,Uu,Fu,Na,Bu,kg,Ng,xg,_g,Og,$g,Lg,ju,Vu,zu,Hu,Tl,Mg,Ug,Fg,Bg,jg,Vg,zg,Hg,qg,qu,Gu,Wu,Ku,Gg,Wg,El,Kg,wl,Al,Rl,Il,Jg,Xg,Qg,Yg,st,zi,Zg,ef,tf,rf,nf,of,sf,af,Ju,cf,lf,Pl,Dl,df,uf,Xu,pf,mf,gf,ff,hf,yf,bf,Sf,vf,Cf,Tf,Ef,wf,Af,Rf,If,Pf,Df,kf,Nf,xf,xa,Qu,_a,Yu,Oa,Zu,$a,ep,La,tp,jr,rp,Ma,np,Hi,ip,Ua,op,Fa,sp,kl,_f,Nl,Of,Ba,ap,Vr,cp,xl,$f,ja,lp,_l,Lf,Ol,Mf,$l,Uf,Va,dp,Ll,Ff,Ml,Bf,Ul,jf,Fl,Vf,za,up,Ha,pp,Bl,zf,jl,Hf,Vl,qf,zl,Gf,Hl,Wf,ql,Kf,qa,mp,Gl,Jf,Wl,Xf,Kl,Qf,Jl,Yf,Xl,Zf,Ql,eh,Yl,Zl,ed,td,rd,th,nd,rh,id,nh,od,ih,Dt,sd,gp,es,Ga,In,fp,qi,Qt,Wa,Ka,hp,yp,Ja,ad,Xa,cd,oh,sh,Qa,Ya,Za,ld,Gi,dd,ud,ts,ec,tc,pd,bp,Sp,vp,ah,md,gd,ch,Cp,fd,Tp,Ep,wp,lh,hd,Pn,rc,yd,dh,Ap,rs,ns,nc,bd,uh,ic,Rp,Sd,ph,vd,mh,Cd,gh}from"./chunk-rqvrjp8g.js";import{oc,Y,sc,is,Ip,kt,Pp,Dp,Dn,kp,Np,xp,_p,Op}from"./chunk-z6xnegpe.js";export{Ua as ABTestManager,He as AI,Iu as AWSAPIError,Oa as AWSConfigManager,Rm as AWS_PSEUDO_PARAMETERS,st as AWS_REGIONS,Yo as ApiGateway,wn as Arn,ie as AssetHasher,Pe as Auth,xa as BackupManager,id as BatchProcessingManager,Ma as BlueGreenManager,Kl as BounceComplaintHandler,Fl as BuildOptimizationManager,ze as CDN,Ya as CHAIN_HEADER,fa as CLOUDFRONT_FAILOVER_STATUS_CODES,mf as COMMON_CROSS_ACCOUNT_ROLES,Ui as Cache,Hi as CanaryManager,Ll as CertificateManager,Pt as CloudError,ll as CloudFormationBuilder,Eu as CloudFormationClient,Au as CloudFrontClient,$a as CloudTrailManager,Ku as CommandHistory,ke as Communication,b as Compute,Zo as ConfigurationError,za as ContainerRegistryManager,Xt as CredentialError,wl as CrossRegionReferenceManager,uu as DASHBOARD_ENTRY,pu as DASHBOARD_PORT_BASE,mu as DASHBOARD_PORT_SPAN,du as DASHBOARD_STATE_DIR,tl as DEFAULT_FAILOVER_STATUS_CODES,Gi as DEFAULT_RECURSION_LIMITS,Ne as DEFAULT_SERVICE_LIMITS,sa as DEFAULT_STATE_DIR,su as DEFAULT_STORAGE_FAILOVER_STATUS_CODES,Qa as DEPTH_HEADER,nd as DLQMonitoringManager,Ae as DNS,Gl as DNSSECManager,Wt as Database,Ol as DatabaseUserManager,Se as DebugLogger,ou as DependencyGraph,De as Deployment,Ru as DeploymentError,_a as DisasterRecoveryManager,k as Email,Yl as EmailAdvanced,Jl as EmailAnalyticsManager,Zl as EmailHandlers,Ql as EmailTemplateManager,Pu as ErrorCodes,Xo as FAILOVER_REPLICA_POLICY_SID,rd as FIFOQueueManager,Ra as FileCache,ot as FileSystem,t as Fn,Al as GlobalResourceManager,La as GuardDutyManager,xu as HashCache,Sd as HealthCheckManager,Ul as ImageScanningManager,Gt as JobLoader,yd as LARAVEL_SERVERLESS_BUILD_STEPS,Vl as LambdaConcurrencyManager,ql as LambdaDLQManager,zl as LambdaDestinationsManager,Bl as LambdaLayersManager,Hl as LambdaVPCManager,jl as LambdaVersionsManager,Ba as LogsManager,fp as MANAGED_NODE_VERSIONS,dl as MANAGEMENT_DASHBOARD_SITE_PREFIX,$e as Messaging,Nl as MetricsManager,xl as MigrationManager,Sl as MockCloudFormation,Cl as MockDynamoDB,vl as MockS3,Fi as Monitoring,Pl as MultiAccountManager,El as MultiRegionManager,Vu as MultiStepProgress,L as Network,vd as NetworkSecurityManager,il as ORIGIN_CONNECTION_ATTEMPTS,ol as ORIGIN_CONNECTION_TIMEOUT,rl as ORIGIN_GROUP_ALLOWED_METHODS,wm as ORIGIN_GROUP_ID_SUFFIX,nl as ORIGIN_GROUP_SELECTION_CRITERIA,Dl as OrganizationManager,Ap as PHP_DEFAULT_EXCLUDES,hp as PHP_LAYER_EXTENSIONS,X as ParameterStore,_l as PerformanceManager,Ie as Permissions,Rt as Phone,ed as PhoneAdvanced,al as PhoneHandlers,ka as PreviewEnvironmentManager,Na as PreviewNotificationService,ju as ProgressBar,Fa as ProgressiveDeploymentManager,iu as Pseudo,ye as Queue,od as QueueManagementManager,hm as QueuePresets,Xu as RECOMMENDED_ACCOUNT_STRUCTURES,pf as RECOMMENDED_SCPS,qu as REPL,Wu as REPLCommandBuilder,Gu as REPLContext,_u as RateLimiter,ym as RealtimePresets,ts as RecursionGuard,It as Redirects,Rl as RegionPairManager,At as Registry,ja as ReplicaManager,Cd as ResourceManagementManager,Wl as Route53ResolverManager,qa as Route53RoutingManager,Aa as S3Client,be as S3Error,Re as SMS,Zc as STATE_DIR_ENV_VAR,Jo as STORAGE_FAILOVER_METADATA_KEY,Kt as Search,Bi as Secrets,Va as SecretsManager,$l as SecretsRotationManager,j as Security,jr as SecurityHubManager,Ml as SecurityScanningManager,Xl as SenderReputationManager,Ha as ServiceMeshManager,Qo as Sftp,td as SmsAdvanced,cl as SmsHandlers,zu as Spinner,Il as StackDependencyManager,Am as StacksIntegration,bd as StaticSiteManager,Ve as Storage,ic as StorageAdvancedManager,Vr as SyntheticsManager,Za as TRACE_HEADER,Hu as TaskList,Go as TemplateBuilder,Ia as TemplateCache,gl as ValidationError,lu as Workflow,kl as XRayManager,op as abTestManager,sl as amazonLinuxImageId,cu as amazonLinuxImageParameter,Tm as analyzeStackDiff,Ga as artifactKey,Tn as assertOriginGroupMethods,jg as autocomplete,Zu as awsConfigManager,Qu as backupManager,pg as batch,nh as batchProcessingManager,np as blueGreenManager,Qf as bounceComplaintHandler,sh as buildBunRuntimeLayerZip,Ea as buildCloudFormationTemplate,Ca as buildFailoverReplicaPolicyStatement,da as buildMailEnv,oh as buildNodeRuntimeLayerZip,Vf as buildOptimizationManager,ha as buildOriginGroup,Ko as buildOriginGroups,dh as buildPhpRuntimeLayerZip,va as buildReplicationConfiguration,Sa as buildReplicationRole,ip as canaryManager,Cg as categorizeChanges,Ff as certificateManager,rg as checkIAMPermissions,md as checkInvocation,ig as checkServiceQuotas,Ou as chunk,Np as clearSigningKeyCache,$u as cloudConfigSchema,ep as cloudTrailManager,ns as collectPhpAppEntries,Hm as composePresets,Ka as composeServerlessAppTemplate,up as containerRegistryManager,xm as createApiBackendPreset,wp as createCliHandler,Ym as createCredentialProvider,Vm as createDashboardSite,Mm as createDataPipelinePreset,fl as createError,wa as createExistingStaticFullStackPreset,Nm as createFullStackAppPreset,lh as createHandlers,Tp as createHttpHandler,Om as createJamstackPreset,Bm as createLaravelPreset,Um as createMLApiPreset,$m as createMicroservicesPreset,Dg as createMockAWS,Pm as createNodeJsServerPreset,Dm as createNodeJsServerlessPreset,qm as createPreset,is as createPresignedUrl,Ip as createPresignedUrlAsync,Ep as createQueueHandler,Lm as createRealtimeAppPreset,wu as createS3Client,jm as createServerlessLaravelPreset,km as createServerlessNodePreset,Im as createStaticSitePreset,Fm as createTraditionalWebAppPreset,_m as createWordPressPreset,Dt as createZip,Jg as crossRegionReferenceManager,Mf as databaseUserManager,bl as defaultLocalConfig,Ur as deploymentCoexistenceError,gu as deriveManagementDashboardPort,el as detectDeploymentTargets,eg as detectMisconfigurations,oc as detectServiceRegion,bg as diffTemplates,rh as dlqMonitoringManager,Jf as dnssecManager,Yu as drManager,Yf as emailAnalyticsManager,eh as emailTemplateManager,Cp as eventToRequest,pl as extendPreset,th as fifoQueueManager,ug as findChangedFiles,yf as formatAccountStructure,_g as formatBytes,Em as formatDiff,Og as formatDuration,zg as formatFlagSuggestions,Gg as formatHistory,Wg as formatHistoryStats,Lg as formatKeyValue,$g as formatList,xg as formatProgressBar,Ju as formatRegion,cf as formatRegionList,Mg as formatSuggestion,kg as formatTable,Ng as formatTree,Su as fromEC2Metadata,vu as fromECSMetadata,yu as fromEnvironment,bu as fromSharedCredentials,Cu as fromWebIdentity,ld as functionFingerprint,Xa as generateAppImageDockerfile,Nf as generateApprovalConfig,sd as generateBootstrap,Uu as generateCleanupWorkflow,Fu as generateCostReportWorkflow,ff as generateCrossAccountRoleCF,Pf as generateDeploymentConfig,Ef as generateDeploymentPipeline,bf as generateDeploymentWorkflow,o as generateLogicalId,If as generateManualPipeline,Tf as generateMatrixWorkflow,Df as generateMultiEnvConfig,wf as generateMultiEnvPipeline,Sf as generateMultiEnvWorkflow,vf as generatePRPreviewWorkflow,xf as generateParallelConfig,hd as generatePhpFpmConfig,ad as generatePhpLayerDockerfile,Af as generatePreviewPipeline,Mu as generatePreviewWorkflow,l as generateResourceName,kf as generateScheduledConfig,Rf as generateScheduledPipeline,Cf as generateScheduledWorkflow,ml as getAccountId,Zg as getAllRegions,of as getClosestRegion,Hg as getCommandUsage,Fg as getContextualHelp,Vi as getCredentials,Tg as getDeploymentStrategy,Eg as getDiffStats,Sg as getDiffSummary,Du as getErrorDetails,Da as getLocalConfig,Ig as getLocalCredentials,Rg as getLocalEndpoint,Pg as getLocalEnvVars,og as getQuotaUsageSummary,gf as getRecommendedStructure,zi as getRegion,lf as getRegionStats,tf as getRegionsByCompliance,ef as getRegionsByLocation,rf as getRegionsByPricingTier,ku as getRequiredPermissions,xp as getSigningKeyCacheSize,bm as getTimestamp,Xg as globalResourceManager,tp as guardDutyManager,Jt as hasManagementDashboardSite,ag as hashBuffer,cg as hashDirectory,hl as hashFile,lg as hashManifest,yl as hashString,ph as healthCheckManager,jf as imageScanningManager,ud as inspectInvocation,Sp as installRecursionFetch,pd as invocationContext,au as isArmInstanceType,Ug as isLikelyTypo,Ag as isLocalDevelopment,Br as isManagementDashboardSiteName,_p as isNodeCryptoAvailable,Mi as isS3RestEndpoint,ca as isStateDirConfigured,la as isStatePath,nf as isValidRegion,Op as isWebCryptoAvailable,qf as lambdaConcurrencyManager,Kf as lambdaDLQManager,Gf as lambdaDestinationsManager,zf as lambdaLayersManager,Wf as lambdaVPCManager,Hf as lambdaVersionsManager,rc as laravelServerlessEnvDefaults,ap as logsManager,eu as mailEnabled,Fr as mailFirewallPorts,qo as mailWebmailSites,kt as makeAWSRequest,Dp as makeAWSRequestAsync,Pp as makeAWSRequestOnce,ul as managementDashboardSiteName,An as mergeInfrastructure,Of as metricsManager,$f as migrationManager,df as multiAccountManager,Kg as multiRegionManager,mh as networkSecurityManager,uf as organizationManager,nc as packagePhpApp,In as packageServerlessApp,Pa as parallel,mg as parallelMap,gg as parallelWithRetry,dd as parseChain,kp as parseJSONResponse,Dn as parseXMLResponse,Lf as performanceManager,Ja as phpLayerBuildStage,yp as phpLayerPackages,Pn as phpRuntimeLayerAssets,Lu as previewManager,Bu as previewNotifications,yg as processInChunks,sp as progressiveDeploymentManager,ec as propagationHeaders,ih as queueManagementManager,dg as quickHash,tc as recursionBlockedResponse,Qg as regionPairManager,lp as replicaManager,vg as requiresReplacement,ah as resetRecursionRuntime,ch as resolveApp,w as resolveAppDatabase,B as resolveCloudProvider,Rn as resolveCredentials,fu as resolveDashboardDomain,hu as resolveDashboardDomains,Cm as resolveDeployBucketName,H as resolveDeploymentMode,Wo as resolveFailoverStatusCodes,le as resolveMailProxy,ne as resolveMailService,zm as resolveManagementDashboardSite,ji as resolveManagementDashboardSites,it as resolveOriginConnection,T as resolveProjectStackName,Wa as resolveQueueNames,Qt as resolveQueues,bp as resolveRecursionConfig,Tu as resolveRegion,Oe as resolveServerlessAppStackName,ga as resolveServerlessArtifactBucketName,Li as resolveServerlessAssetBucketName,qi as resolveServerlessRuntime,ma as resolveSiteBucketName,pa as resolveSiteResourceName,ua as resolveSiteStackName,A as resolveStatePath,vm as resolveStorageBucketName,ya as resolveStorageFailover,gh as resourceManagementManager,fd as responseToResult,Xf as route53ResolverManager,mp as route53RoutingManager,gp as runBuildHooks,rs as runPhpBuildHooks,ba as s3RegionalDomain,Sm as sanitizeName,Bg as searchCommands,dp as secretsManager,Uf as secretsRotationManager,rp as securityHubManager,Bf as securityScanningManager,Zf as senderReputationManager,fg as sequence,pp as serviceMeshManager,aa as setStateDir,es as sha256,vp as sharedRecursionGuard,cd as sharedRuntimeLoop,Y as signRequest,sc as signRequestAsync,Yg as stackDependencyManager,Cn as stateDir,je as statePath,uh as staticSiteManager,Rp as storageAdvancedManager,Ta as storageFailoverReplicasFromTemplate,Tl as suggestCommand,Vg as suggestFlags,ng as suggestIAMPolicy,sg as suggestQuotaIncrease,af as suggestRegionPairs,sf as suggestRegions,cp as syntheticsManager,Nu as templateCache,hf as validateAccountStructure,wg as validateAgainstSchema,qg as validateCommand,Zm as validateConfiguration,tg as validateCredentials,En as validateOriginGroups,nu as validateResourceLimits,tu as validateTemplate,ru as validateTemplateSize,Xm as withCDN,Jm as withCache,Km as withDatabase,gd as withInvocation,Gm as withMonitoring,Qm as withQueue,Wm as withSecurity,hg as withTimeout,_f as xrayManager};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p}from"./chunk-z06jkvvr.js";import{deflateRawSync as y}from"zlib";function m(n,e){let t=typeof e==="string"?Buffer.from(e,"utf-8"):e,i=y(t),r=f(t),s=new Date,g=(s.getHours()<<11|s.getMinutes()<<5|s.getSeconds()>>1)&65535,c=(s.getFullYear()-1980<<9|s.getMonth()+1<<5|s.getDate())&65535,l=Buffer.from(n,"utf-8"),a=Buffer.alloc(30+l.length);a.writeUInt32LE(67324752,0),a.writeUInt16LE(20,4),a.writeUInt16LE(0,6),a.writeUInt16LE(8,8),a.writeUInt16LE(g,10),a.writeUInt16LE(c,12),a.writeUInt32LE(r,14),a.writeUInt32LE(i.length,18),a.writeUInt32LE(t.length,22),a.writeUInt16LE(l.length,26),a.writeUInt16LE(0,28),l.copy(a,30);let o=Buffer.alloc(46+l.length);o.writeUInt32LE(33639248,0),o.writeUInt16LE(20,4),o.writeUInt16LE(20,6),o.writeUInt16LE(0,8),o.writeUInt16LE(8,10),o.writeUInt16LE(g,12),o.writeUInt16LE(c,14),o.writeUInt32LE(r,16),o.writeUInt32LE(i.length,20),o.writeUInt32LE(t.length,24),o.writeUInt16LE(l.length,28),o.writeUInt16LE(0,30),o.writeUInt16LE(0,32),o.writeUInt16LE(0,34),o.writeUInt16LE(0,36),o.writeUInt32LE(0,38),o.writeUInt32LE(0,42),l.copy(o,46);let d=a.length+i.length,h=o.length,u=Buffer.alloc(22);return u.writeUInt32LE(101010256,0),u.writeUInt16LE(0,4),u.writeUInt16LE(0,6),u.writeUInt16LE(1,8),u.writeUInt16LE(1,10),u.writeUInt32LE(h,12),u.writeUInt32LE(d,16),u.writeUInt16LE(0,20),Buffer.concat([a,i,o,u])}function f(n){let e=[];for(let i=0;i<256;i++){let r=i;for(let s=0;s<8;s++)r=r&1?3988292384^r>>>1:r>>>1;e[i]=r}let t=4294967295;for(let i=0;i<n.length;i++)t=e[(t^n[i])&255]^t>>>8;return(t^4294967295)>>>0}class P{client;region;constructor(n="us-east-1",e){this.region=n,this.client=new p(void 0,{profile:e})}async createFunction(n){return await this.client.request({service:"lambda",region:this.region,method:"POST",path:"/2015-03-31/functions",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}async getFunction(n){return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2015-03-31/functions/${encodeURIComponent(n)}`,headers:{"Content-Type":"application/json"}})}async updateFunctionCode(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"PUT",path:`/2015-03-31/functions/${encodeURIComponent(e)}/code`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async updateFunctionCodeInline(n,e,t="index.js"){let i=m(t,e);return this.updateFunctionCode({FunctionName:n,ZipFile:i.toString("base64")})}async updateFunctionConfiguration(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"PUT",path:`/2015-03-31/functions/${encodeURIComponent(e)}/configuration`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async deleteFunction(n){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2015-03-31/functions/${encodeURIComponent(n)}`,headers:{"Content-Type":"application/json"}})}async invoke(n){let{FunctionName:e,InvocationType:t="RequestResponse",Payload:i,LogType:r}=n,s={"Content-Type":"application/json","X-Amz-Invocation-Type":t};if(r)s["X-Amz-Log-Type"]=r;let g=i?typeof i==="string"?i:JSON.stringify(i):void 0,c=await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2015-03-31/functions/${encodeURIComponent(e)}/invocations`,headers:s,body:g,returnHeaders:!0});return{StatusCode:c.statusCode||200,FunctionError:c.headers?.["x-amz-function-error"],LogResult:c.headers?.["x-amz-log-result"],Payload:typeof c.body==="string"?c.body:JSON.stringify(c.body),ExecutedVersion:c.headers?.["x-amz-executed-version"]}}async listFunctions(n){let e={};if(n?.MaxItems)e.MaxItems=String(n.MaxItems);if(n?.Marker)e.Marker=n.Marker;if(n?.FunctionVersion)e.FunctionVersion=n.FunctionVersion;return await this.client.request({service:"lambda",region:this.region,method:"GET",path:"/2015-03-31/functions",queryParams:Object.keys(e).length>0?e:void 0,headers:{"Content-Type":"application/json"}})}async addPermission(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2015-03-31/functions/${encodeURIComponent(e)}/policy`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async removePermission(n,e){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2015-03-31/functions/${encodeURIComponent(n)}/policy/${encodeURIComponent(e)}`,headers:{"Content-Type":"application/json"}})}async publishVersion(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2015-03-31/functions/${encodeURIComponent(e)}/versions`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async createAlias(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2015-03-31/functions/${encodeURIComponent(e)}/aliases`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async updateAlias(n){let{FunctionName:e,Name:t,...i}=n;return this.client.request({service:"lambda",region:this.region,method:"PUT",path:`/2015-03-31/functions/${encodeURIComponent(e)}/aliases/${encodeURIComponent(t)}`,headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})}async getAlias(n,e){try{return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2015-03-31/functions/${encodeURIComponent(n)}/aliases/${encodeURIComponent(e)}`})}catch(t){if(/ResourceNotFound/i.test(String(t?.message)))return null;throw t}}async getProvisionedConcurrencyConfig(n,e){try{return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2019-09-30/functions/${encodeURIComponent(n)}/provisioned-concurrency`,queryParams:{Qualifier:e}})}catch(t){if(/ProvisionedConcurrencyConfigNotFound|ResourceNotFound/i.test(String(t?.message)))return null;throw t}}async putProvisionedConcurrencyConfig(n){let{FunctionName:e,Qualifier:t,ProvisionedConcurrentExecutions:i}=n;return this.client.request({service:"lambda",region:this.region,method:"PUT",path:`/2019-09-30/functions/${encodeURIComponent(e)}/provisioned-concurrency`,queryParams:{Qualifier:t},headers:{"Content-Type":"application/json"},body:JSON.stringify({ProvisionedConcurrentExecutions:i})})}async getFunctionConcurrency(n){try{return(await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2019-10-31/functions/${encodeURIComponent(n)}/concurrency`}))?.ReservedConcurrentExecutions??null}catch(e){if(/ResourceNotFound|ProvisionedConcurrencyConfigNotFound/i.test(String(e?.message)))return null;throw e}}async putFunctionConcurrency(n,e){await this.client.request({service:"lambda",region:this.region,method:"PUT",path:`/2019-10-31/functions/${encodeURIComponent(n)}/concurrency`,headers:{"Content-Type":"application/json"},body:JSON.stringify({ReservedConcurrentExecutions:e})})}async deleteFunctionConcurrency(n){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2019-10-31/functions/${encodeURIComponent(n)}/concurrency`})}async deleteProvisionedConcurrencyConfig(n,e){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2019-09-30/functions/${encodeURIComponent(n)}/provisioned-concurrency`,queryParams:{Qualifier:e}})}async waitForFunctionActive(n,e=60){let t=Date.now(),i=e*1000;while(Date.now()-t<i)try{let r=await this.getFunction(n),s=r.Configuration?.State;if(s==="Active")return r.Configuration;if(s==="Failed")throw Error(`Function ${n} failed: ${r.Configuration?.StateReason}`);await new Promise((g)=>setTimeout(g,2000))}catch(r){if(r.code==="ResourceNotFoundException"){await new Promise((s)=>setTimeout(s,2000));continue}throw r}throw Error(`Timeout waiting for function ${n} to become active`)}async functionExists(n){try{return await this.getFunction(n),!0}catch(e){if(e.code==="ResourceNotFoundException"||e.statusCode===404)return!1;throw e}}async createFunctionUrl(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2021-10-31/functions/${encodeURIComponent(e)}/url`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async getFunctionUrl(n){try{return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2021-10-31/functions/${encodeURIComponent(n)}/url`,headers:{"Content-Type":"application/json"}})}catch(e){if(e.statusCode===404)return null;throw e}}async deleteFunctionUrl(n){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2021-10-31/functions/${encodeURIComponent(n)}/url`,headers:{"Content-Type":"application/json"}})}async createFunctionWithCode(n){let{Code:e,Filename:t="index.js",...i}=n,r=m(t,e);return this.createFunction({...i,Code:{ZipFile:r.toString("base64")}})}async addFunctionUrlPermission(n){return this.addPermission({FunctionName:n,StatementId:"FunctionURLAllowPublicAccess",Action:"lambda:InvokeFunctionUrl",Principal:"*",FunctionUrlAuthType:"NONE"})}async publishLayerVersion(n){let{LayerName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2018-10-31/layers/${encodeURIComponent(e)}/versions`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async listLayerVersions(n,e){let t={};if(e?.CompatibleRuntime)t.CompatibleRuntime=e.CompatibleRuntime;if(e?.CompatibleArchitecture)t.CompatibleArchitecture=e.CompatibleArchitecture;if(e?.MaxItems)t.MaxItems=String(e.MaxItems);if(e?.Marker)t.Marker=e.Marker;return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2018-10-31/layers/${encodeURIComponent(n)}/versions`,queryParams:Object.keys(t).length>0?t:void 0,headers:{"Content-Type":"application/json"}})}async getLayerVersion(n,e){return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2018-10-31/layers/${encodeURIComponent(n)}/versions/${e}`,headers:{"Content-Type":"application/json"}})}async addLayerVersionPermission(n){let{LayerName:e,VersionNumber:t,...i}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2018-10-31/layers/${encodeURIComponent(e)}/versions/${t}/policy`,headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})}async deleteLayerVersion(n,e){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2018-10-31/layers/${encodeURIComponent(n)}/versions/${e}`,headers:{"Content-Type":"application/json"}})}}
|
|
1
|
+
import{p}from"./chunk-0xfy78nc.js";import{deflateRawSync as y}from"zlib";function m(n,e){let t=typeof e==="string"?Buffer.from(e,"utf-8"):e,i=y(t),r=f(t),s=new Date,g=(s.getHours()<<11|s.getMinutes()<<5|s.getSeconds()>>1)&65535,c=(s.getFullYear()-1980<<9|s.getMonth()+1<<5|s.getDate())&65535,l=Buffer.from(n,"utf-8"),a=Buffer.alloc(30+l.length);a.writeUInt32LE(67324752,0),a.writeUInt16LE(20,4),a.writeUInt16LE(0,6),a.writeUInt16LE(8,8),a.writeUInt16LE(g,10),a.writeUInt16LE(c,12),a.writeUInt32LE(r,14),a.writeUInt32LE(i.length,18),a.writeUInt32LE(t.length,22),a.writeUInt16LE(l.length,26),a.writeUInt16LE(0,28),l.copy(a,30);let o=Buffer.alloc(46+l.length);o.writeUInt32LE(33639248,0),o.writeUInt16LE(20,4),o.writeUInt16LE(20,6),o.writeUInt16LE(0,8),o.writeUInt16LE(8,10),o.writeUInt16LE(g,12),o.writeUInt16LE(c,14),o.writeUInt32LE(r,16),o.writeUInt32LE(i.length,20),o.writeUInt32LE(t.length,24),o.writeUInt16LE(l.length,28),o.writeUInt16LE(0,30),o.writeUInt16LE(0,32),o.writeUInt16LE(0,34),o.writeUInt16LE(0,36),o.writeUInt32LE(0,38),o.writeUInt32LE(0,42),l.copy(o,46);let d=a.length+i.length,h=o.length,u=Buffer.alloc(22);return u.writeUInt32LE(101010256,0),u.writeUInt16LE(0,4),u.writeUInt16LE(0,6),u.writeUInt16LE(1,8),u.writeUInt16LE(1,10),u.writeUInt32LE(h,12),u.writeUInt32LE(d,16),u.writeUInt16LE(0,20),Buffer.concat([a,i,o,u])}function f(n){let e=[];for(let i=0;i<256;i++){let r=i;for(let s=0;s<8;s++)r=r&1?3988292384^r>>>1:r>>>1;e[i]=r}let t=4294967295;for(let i=0;i<n.length;i++)t=e[(t^n[i])&255]^t>>>8;return(t^4294967295)>>>0}class P{client;region;constructor(n="us-east-1",e){this.region=n,this.client=new p(void 0,{profile:e})}async createFunction(n){return await this.client.request({service:"lambda",region:this.region,method:"POST",path:"/2015-03-31/functions",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}async getFunction(n){return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2015-03-31/functions/${encodeURIComponent(n)}`,headers:{"Content-Type":"application/json"}})}async updateFunctionCode(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"PUT",path:`/2015-03-31/functions/${encodeURIComponent(e)}/code`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async updateFunctionCodeInline(n,e,t="index.js"){let i=m(t,e);return this.updateFunctionCode({FunctionName:n,ZipFile:i.toString("base64")})}async updateFunctionConfiguration(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"PUT",path:`/2015-03-31/functions/${encodeURIComponent(e)}/configuration`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async deleteFunction(n){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2015-03-31/functions/${encodeURIComponent(n)}`,headers:{"Content-Type":"application/json"}})}async invoke(n){let{FunctionName:e,InvocationType:t="RequestResponse",Payload:i,LogType:r}=n,s={"Content-Type":"application/json","X-Amz-Invocation-Type":t};if(r)s["X-Amz-Log-Type"]=r;let g=i?typeof i==="string"?i:JSON.stringify(i):void 0,c=await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2015-03-31/functions/${encodeURIComponent(e)}/invocations`,headers:s,body:g,returnHeaders:!0});return{StatusCode:c.statusCode||200,FunctionError:c.headers?.["x-amz-function-error"],LogResult:c.headers?.["x-amz-log-result"],Payload:typeof c.body==="string"?c.body:JSON.stringify(c.body),ExecutedVersion:c.headers?.["x-amz-executed-version"]}}async listFunctions(n){let e={};if(n?.MaxItems)e.MaxItems=String(n.MaxItems);if(n?.Marker)e.Marker=n.Marker;if(n?.FunctionVersion)e.FunctionVersion=n.FunctionVersion;return await this.client.request({service:"lambda",region:this.region,method:"GET",path:"/2015-03-31/functions",queryParams:Object.keys(e).length>0?e:void 0,headers:{"Content-Type":"application/json"}})}async addPermission(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2015-03-31/functions/${encodeURIComponent(e)}/policy`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async removePermission(n,e){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2015-03-31/functions/${encodeURIComponent(n)}/policy/${encodeURIComponent(e)}`,headers:{"Content-Type":"application/json"}})}async publishVersion(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2015-03-31/functions/${encodeURIComponent(e)}/versions`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async createAlias(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2015-03-31/functions/${encodeURIComponent(e)}/aliases`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async updateAlias(n){let{FunctionName:e,Name:t,...i}=n;return this.client.request({service:"lambda",region:this.region,method:"PUT",path:`/2015-03-31/functions/${encodeURIComponent(e)}/aliases/${encodeURIComponent(t)}`,headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})}async getAlias(n,e){try{return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2015-03-31/functions/${encodeURIComponent(n)}/aliases/${encodeURIComponent(e)}`})}catch(t){if(/ResourceNotFound/i.test(String(t?.message)))return null;throw t}}async getProvisionedConcurrencyConfig(n,e){try{return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2019-09-30/functions/${encodeURIComponent(n)}/provisioned-concurrency`,queryParams:{Qualifier:e}})}catch(t){if(/ProvisionedConcurrencyConfigNotFound|ResourceNotFound/i.test(String(t?.message)))return null;throw t}}async putProvisionedConcurrencyConfig(n){let{FunctionName:e,Qualifier:t,ProvisionedConcurrentExecutions:i}=n;return this.client.request({service:"lambda",region:this.region,method:"PUT",path:`/2019-09-30/functions/${encodeURIComponent(e)}/provisioned-concurrency`,queryParams:{Qualifier:t},headers:{"Content-Type":"application/json"},body:JSON.stringify({ProvisionedConcurrentExecutions:i})})}async getFunctionConcurrency(n){try{return(await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2019-10-31/functions/${encodeURIComponent(n)}/concurrency`}))?.ReservedConcurrentExecutions??null}catch(e){if(/ResourceNotFound|ProvisionedConcurrencyConfigNotFound/i.test(String(e?.message)))return null;throw e}}async putFunctionConcurrency(n,e){await this.client.request({service:"lambda",region:this.region,method:"PUT",path:`/2019-10-31/functions/${encodeURIComponent(n)}/concurrency`,headers:{"Content-Type":"application/json"},body:JSON.stringify({ReservedConcurrentExecutions:e})})}async deleteFunctionConcurrency(n){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2019-10-31/functions/${encodeURIComponent(n)}/concurrency`})}async deleteProvisionedConcurrencyConfig(n,e){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2019-09-30/functions/${encodeURIComponent(n)}/provisioned-concurrency`,queryParams:{Qualifier:e}})}async waitForFunctionActive(n,e=60){let t=Date.now(),i=e*1000;while(Date.now()-t<i)try{let r=await this.getFunction(n),s=r.Configuration?.State;if(s==="Active")return r.Configuration;if(s==="Failed")throw Error(`Function ${n} failed: ${r.Configuration?.StateReason}`);await new Promise((g)=>setTimeout(g,2000))}catch(r){if(r.code==="ResourceNotFoundException"){await new Promise((s)=>setTimeout(s,2000));continue}throw r}throw Error(`Timeout waiting for function ${n} to become active`)}async functionExists(n){try{return await this.getFunction(n),!0}catch(e){if(e.code==="ResourceNotFoundException"||e.statusCode===404)return!1;throw e}}async createFunctionUrl(n){let{FunctionName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2021-10-31/functions/${encodeURIComponent(e)}/url`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async getFunctionUrl(n){try{return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2021-10-31/functions/${encodeURIComponent(n)}/url`,headers:{"Content-Type":"application/json"}})}catch(e){if(e.statusCode===404)return null;throw e}}async deleteFunctionUrl(n){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2021-10-31/functions/${encodeURIComponent(n)}/url`,headers:{"Content-Type":"application/json"}})}async createFunctionWithCode(n){let{Code:e,Filename:t="index.js",...i}=n,r=m(t,e);return this.createFunction({...i,Code:{ZipFile:r.toString("base64")}})}async addFunctionUrlPermission(n){return this.addPermission({FunctionName:n,StatementId:"FunctionURLAllowPublicAccess",Action:"lambda:InvokeFunctionUrl",Principal:"*",FunctionUrlAuthType:"NONE"})}async publishLayerVersion(n){let{LayerName:e,...t}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2018-10-31/layers/${encodeURIComponent(e)}/versions`,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async listLayerVersions(n,e){let t={};if(e?.CompatibleRuntime)t.CompatibleRuntime=e.CompatibleRuntime;if(e?.CompatibleArchitecture)t.CompatibleArchitecture=e.CompatibleArchitecture;if(e?.MaxItems)t.MaxItems=String(e.MaxItems);if(e?.Marker)t.Marker=e.Marker;return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2018-10-31/layers/${encodeURIComponent(n)}/versions`,queryParams:Object.keys(t).length>0?t:void 0,headers:{"Content-Type":"application/json"}})}async getLayerVersion(n,e){return await this.client.request({service:"lambda",region:this.region,method:"GET",path:`/2018-10-31/layers/${encodeURIComponent(n)}/versions/${e}`,headers:{"Content-Type":"application/json"}})}async addLayerVersionPermission(n){let{LayerName:e,VersionNumber:t,...i}=n;return await this.client.request({service:"lambda",region:this.region,method:"POST",path:`/2018-10-31/layers/${encodeURIComponent(e)}/versions/${t}/policy`,headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})}async deleteLayerVersion(n,e){await this.client.request({service:"lambda",region:this.region,method:"DELETE",path:`/2018-10-31/layers/${encodeURIComponent(n)}/versions/${e}`,headers:{"Content-Type":"application/json"}})}}
|
|
2
2
|
export{P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wd,Pr,E}from"./chunk-n2jh5p5x.js";import"./chunk-0xfy78nc.js";export{E as CloudFrontClient,Wd as configOrigins,Pr as s3OriginBucket};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B}from"./chunk-
|
|
1
|
+
import{B}from"./chunk-rqvrjp8g.js";import"./chunk-z6xnegpe.js";function g(t){let e=t.sites||{};for(let r of Object.values(e))if(r?.repository?.url)return{provider:r.repository.provider,branch:r.repository.branch};return}function m(t){let e=t.trim().toLowerCase();if(e.includes("github.com"))return"github";if(e.includes("gitlab.com"))return"gitlab";if(e.includes("bitbucket.org"))return"bitbucket";return}function a(t){return`'${t.replace(/'/g,"'\\''")}'`}function E(t){return t.replace(/'/g,"''")}function _(t,e){let r=["bunx --bun @stacksjs/ts-cloud deploy","--env",a(t)];if(e.site)r.push("--site",a(e.site));if(e.skipDnsVerification)r.push("--skip-dns-verification");return r.push("--yes"),r.join(" ")}function v(t,e="production",r={}){let l=g(t),n=r.provider||l?.provider;if(n!=="github"&&n!=="gitlab"&&n!=="bitbucket")return null;let i=t.environments?.[e],s=i?.deployBranch||l?.branch||"main",u=_(e,r),c=JSON.stringify(s),d=JSON.stringify(e),p=i?.domain?i.domain.startsWith("http")?i.domain:`https://${i.domain}`:void 0,f=p?`
|
|
2
2
|
url: ${JSON.stringify(p)}`:"",h=r.setup==="pantry"?` - name: Setup Pantry
|
|
3
3
|
uses: home-lang/pantry/packages/action@main`:` - uses: oven-sh/setup-bun@v2
|
|
4
4
|
- run: bun install --frozen-lockfile`,y=B(t)==="hetzner"&&!!t.infrastructure?.compute,o=r.sshPrivateKeySecret||"SSH_PRIVATE_KEY";if(!/^[A-Z_][A-Z0-9_]*$/i.test(o))throw Error(`Invalid SSH private key secret name '${o}'`);let b=y?`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{vo}from"./chunk-bzzwbkrx.js";var $p="\x00";function Td(t,i){if(t==="*"||t==="**")return!0;let e=t.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,"\x01").replace(/\*/g,"[^/]*").replace(/\u0001/g,".*");return new RegExp(`^${e}$`).test(i)}function g(t,i){if(t.startsWith("*.")){let e=t.slice(1);return i.endsWith(e)&&i.length>e.length}return t===i}function ac(t,i){if(t.enabled===!1)return!1;if(t.methods?.length&&!t.methods.some((e)=>e.toUpperCase()===i.method.toUpperCase()))return!1;if(t.path&&!Td(t.path,i.path))return!1;if(t.host&&!g(t.host,i.host??""))return!1;return!0}function cc(t,i){let e=t.key??{source:"ip"},o=e.fallbackToIp!==!1,r;if(e.source==="ip")r=i.ip;else if(e.source==="global")r="global";else if(e.source==="host")r=i.host??"";else if(e.source==="path")r=i.path;else if(e.source==="header")r=e.name?i.headers?.[e.name.toLowerCase()]:void 0;else if(e.source==="cookie")r=e.name?i.cookies?.[e.name]:void 0;if(!r&&e.source!=="global")r=o?i.ip:"__missing__";return`${t.id}\x00${r}`}class Ed{clock;maxTrackedKeys;buckets=new Map;windows=new Map;rules;constructor(t,i=()=>Date.now(),e=1e5){this.clock=i;this.maxTrackedKeys=e;this.rules=[...t].sort((o,r)=>(o.priority??0)-(r.priority??0))}check(t){let i=this.clock(),e=this.rules.filter((n)=>ac(n,t)),o;for(let n of e){let s=this.test(n,t,i);if(s.allowed)continue;if(!o||d(s.action)>d(o.action))o=s}if(o)return o;let r={action:"allow",allowed:!0};for(let n of e){let s=this.consume(n,t,i);if(s.remaining!=null&&(r.remaining??1/0)>s.remaining)r=s}return r}test(t,i,e){let o=cc(t,i);if((t.algorithm??"token_bucket")==="token_bucket"){let n=t.burst??t.limit,s=this.buckets.get(o),a=s?Math.min(n,s.tokens+this.refill(t,e-s.updatedAt)):n;if(a>=1)return{action:"allow",allowed:!0};return this.blocked(t,o,0,this.msPerToken(t)*(1-a),e)}let r=(this.windows.get(o)?.hits??[]).filter((n)=>n>e-t.windowMs);if(r.length<t.limit)return{action:"allow",allowed:!0};return this.blocked(t,o,0,r[0]+t.windowMs-e,e)}peek(t){let i=this.clock();for(let e of this.rules){if(!ac(e,t))continue;let o=this.test(e,t,i);if(!o.allowed)return o}return{action:"allow",allowed:!0}}msPerToken(t){return t.windowMs/Math.max(1,t.limit)}refill(t,i){return Math.max(0,i)/this.msPerToken(t)}blocked(t,i,e,o,r){let n=t.action??"deny";return{action:n,allowed:n==="allow"||n==="log",ruleId:t.id,limit:t.limit,remaining:e,retryAfterMs:Math.max(0,Math.ceil(o)),resetAt:r+Math.max(0,o),key:i}}consume(t,i,e){let o=cc(t,i);if((t.algorithm??"token_bucket")==="token_bucket"){let l=t.burst??t.limit,u=this.buckets.get(o)??{tokens:l,updatedAt:e},c=Math.min(l,u.tokens+this.refill(t,e-u.updatedAt));if(c<1)return this.buckets.set(o,{tokens:c,updatedAt:e}),this.blocked(t,o,0,this.msPerToken(t)*(1-c),e);return this.evictIfNeeded(this.buckets),this.buckets.set(o,{tokens:c-1,updatedAt:e}),{action:"allow",allowed:!0,ruleId:t.id,limit:l,remaining:Math.floor(c-1),resetAt:e+this.msPerToken(t)*(l-(c-1)),key:o}}let n=this.windows.get(o)??{hits:[]},s=e-t.windowMs,a=n.hits.filter((l)=>l>s);if(a.length>=t.limit)return this.windows.set(o,{hits:a}),this.blocked(t,o,0,a[0]+t.windowMs-e,e);return a.push(e),this.evictIfNeeded(this.windows),this.windows.set(o,{hits:a}),{action:"allow",allowed:!0,ruleId:t.id,limit:t.limit,remaining:t.limit-a.length,resetAt:a[0]+t.windowMs,key:o}}evictIfNeeded(t){if(t.size<this.maxTrackedKeys)return;let i=t.size-this.maxTrackedKeys+1,e=0;for(let o of t.keys())if(t.delete(o),++e>=i)break}sweep(){let t=this.clock(),i=0;for(let[e,o]of this.windows){let r=e.split("\x00")[0],n=this.rules.find((s)=>s.id===r);if(!n){this.windows.delete(e),i++;continue}if(o.hits.every((s)=>s<=t-n.windowMs))this.windows.delete(e),i++}for(let[e,o]of this.buckets){let r=e.split("\x00")[0],n=this.rules.find((s)=>s.id===r);if(!n||t-o.updatedAt>n.windowMs*2)this.buckets.delete(e),i++}return i}get trackedKeys(){return this.buckets.size+this.windows.size}}function d(t){return{allow:0,log:1,throttle:2,challenge:3,deny:4}[t]}function Lp(t){let i={};if(t.limit!=null)i["ratelimit-limit"]=String(t.limit);if(t.remaining!=null)i["ratelimit-remaining"]=String(t.remaining);if(t.resetAt!=null)i["ratelimit-reset"]=String(Math.max(0,Math.ceil((t.resetAt-Date.now())/1000)));if(!t.allowed&&t.retryAfterMs!=null)i["retry-after"]=String(Math.max(1,Math.ceil(t.retryAfterMs/1000)));return i}function Mp(){return[{id:"global-ip",limit:600,windowMs:60000,burst:100,key:{source:"ip"},action:"deny",priority:100},{id:"api-ip",limit:120,windowMs:60000,burst:30,path:"/api/**",key:{source:"ip"},action:"deny",priority:50},{id:"auth-ip",limit:10,windowMs:60000,algorithm:"sliding_window",path:"/auth/**",methods:["POST"],key:{source:"ip"},action:"challenge",priority:10}]}var m="protection.controls",Zt=24,kn=4,R={ipRules:{allow:[],block:[]}};function p(t,i){if(!t?.enabled)return;return new Date(t.expiresAt).getTime()>i.getTime()?t:void 0}function h(t,i){let e=Number.isFinite(t)?Number(t):i;return Math.min(Zt,Math.max(0.25,e))}var f=500;class er{controlPlane;options;constructor(t,i={}){this.controlPlane=t;this.options=i}now(){return this.options.now?.()??new Date}read(){let t=this.controlPlane.getSetting(m);if(!t||typeof t!=="object"||Array.isArray(t))return{...R,ipRules:{allow:[],block:[]}};let i=t;return{attackMode:i.attackMode,mitigationPause:i.mitigationPause,ipRules:{allow:Array.isArray(i.ipRules?.allow)?i.ipRules.allow:[],block:Array.isArray(i.ipRules?.block)?i.ipRules.block:[]},updatedAt:i.updatedAt}}write(t){let i={...t,updatedAt:this.now().toISOString()};return this.controlPlane.setSetting(m,i),i}raw(){return this.read()}current(){let t=this.now(),i=this.read();return{attackMode:p(i.attackMode,t),mitigationPause:p(i.mitigationPause,t),ipRules:i.ipRules}}enableAttackMode(t){let i=this.now(),e={enabled:!0,startedAt:i.toISOString(),expiresAt:new Date(i.getTime()+h(t.hours,kn)*3600000).toISOString(),reason:t.reason.trim()||"Attack mode enabled by an operator.",actorId:t.actorId};return this.write({...this.read(),attackMode:e}),e}disableAttackMode(){let t=this.read();if(!t.attackMode?.enabled)return!1;return this.write({...t,attackMode:{...t.attackMode,enabled:!1}}),!0}pauseMitigations(t){let i=t.reason.trim();if(!i)throw Error("Pausing mitigations requires a reason: you are liable for the traffic it admits.");let e=this.now(),o={enabled:!0,startedAt:e.toISOString(),expiresAt:new Date(e.getTime()+h(t.hours,Zt)*3600000).toISOString(),reason:i,actorId:t.actorId};return this.write({...this.read(),mitigationPause:o}),o}resumeMitigations(){let t=this.read();if(!t.mitigationPause?.enabled)return!1;return this.write({...t,mitigationPause:{...t.mitigationPause,enabled:!1}}),!0}addIpRule(t,i){let e=i.trim();if(!vo(e))throw Error(`Not a valid IP or CIDR: ${i}`);let o=this.read(),r={...o.ipRules,[t]:[...new Set([...o.ipRules[t],e])]};if(r[t].length>f)throw Error(`At most ${f} ${t} rules are supported.`);let n=t==="allow"?"block":"allow";return r[n]=r[n].filter((s)=>s!==e),this.write({...o,ipRules:r}),r}removeIpRule(t,i){let e=this.read(),o={...e.ipRules,[t]:e.ipRules[t].filter((r)=>r!==i.trim())};return this.write({...e,ipRules:o}),o}}function Wi(t){if(t.mitigationPause)return{attackMode:!!t.attackMode,mitigationPaused:!0,summary:`Automatic mitigation is paused until ${t.mitigationPause.expiresAt}. All traffic is being served and billed.`,expiresAt:t.mitigationPause.expiresAt};if(t.attackMode)return{attackMode:!0,mitigationPaused:!1,summary:`Attack mode is on until ${t.attackMode.expiresAt}. Every visitor is being challenged.`,expiresAt:t.attackMode.expiresAt};return{attackMode:!1,mitigationPaused:!1,summary:"Protection is in its normal posture."}}function Up(t,i){if(i.mitigationPause)return t.map((e)=>({...e,enabled:!1}));if(!i.attackMode)return[...t];return t.map((e)=>({...e,action:e.action==="deny"?"deny":"challenge",burst:Math.max(1,Math.min(e.burst??e.limit,5))}))}function Nn(t,i){let e=[...new Set([...t.allowlist??[],...i.ipRules.allow])],o=[...new Set([...t.blocklist??[],...i.ipRules.block])];if(i.mitigationPause)return{...t,allowlist:e,blocklist:o,monitorOnly:!0};if(!i.attackMode)return{...t,allowlist:e,blocklist:o};let r=t.thresholds??{};return{...t,allowlist:e,blocklist:o,thresholds:{...r,newConnectionsPerSecond:Math.max(1,Math.floor((r.newConnectionsPerSecond??50)/5)),concurrentPerSource:Math.max(1,Math.floor((r.concurrentPerSource??100)/5))}}}function os(t,i){let e=t?.infrastructure?.compute;if(!e||e.ddos===!1)return t;let o=typeof e.ddos==="object"&&e.ddos!==null?e.ddos:{};return{...t,infrastructure:{...t.infrastructure,compute:{...e,ddos:Nn(o,i)}}}}export{$p,Td,ac,cc,Ed,Lp,Mp,Zt,kn,er,Wi,Up,Nn,os};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{es,In,Xa,Pn,rs,ns}from"./chunk-rqvrjp8g.js";import{e}from"./chunk-ek27709c.js";import{St}from"./chunk-3mhzd931.js";import{execFileSync as C}from"node:child_process";import{mkdirSync as w,mkdtempSync as I,rmSync as U,writeFileSync as g}from"node:fs";import{tmpdir as j}from"node:os";import{dirname as O,join as o}from"node:path";function E(s,t){for(let r of t){let d=o(s,r.name);w(O(d),{recursive:!0}),g(d,r.data,r.mode?{mode:r.mode}:void 0)}}async function Fp(s){let{app:t,projectRoot:r,region:d,repository:u}=s,x=t.architecture??"x86_64",R=x==="arm64"?"linux/arm64":"linux/amd64",b=t.kind==="php",n=s.onStep??(()=>{}),a=I(o(j(),"tscloud-img-"));try{let h=o(a,"app");w(h,{recursive:!0});let f,y;if(b){rs({projectRoot:r,app:t,skipBuild:s.skipBuild,onStep:n}),n("staging application tree");let i=ns(r);E(h,i),E(o(a,"runtime"),Pn().map((c)=>({name:c.path,data:c.contents,mode:c.mode})));let v=t.handlers?.http??"public/index.php";f={http:v,queue:t.handlers?.queue??v,cli:t.handlers?.cli??v},y=es(i.map((c)=>`${c.name}:${c.data.length}`).join("|"))}else{n("bundling application");let i=await In({projectRoot:r,app:t,skipBuild:s.skipBuild,onStep:n});g(o(h,"index.mjs"),i.bundle),f=i.handlers,y=i.sha256}let B=y.slice(0,16);g(o(a,"Dockerfile"),Xa({kind:t.kind??"node",phpVersion:t.phpVersion,architecture:x}));let k=new St(d),p;try{p=(await k.describeRepositories({repositoryNames:[u]})).repositories?.[0]?.repositoryUri??""}catch{p=""}if(!p)n(`creating ECR repository ${u}`),p=(await k.createRepository({repositoryName:u,imageScanningConfiguration:{scanOnPush:!0}})).repository?.repositoryUri??"";if(!p)throw Error(`could not resolve ECR repository URI for ${u}`);let l=`${p}:${B}`;n("docker build"),C("docker",["build","--platform",R,"--provenance=false","--sbom=false","-t",l,a],{stdio:"inherit"}),n("ecr auth + push");let m=(await k.getAuthorizationToken()).authorizationData?.[0];if(!m?.authorizationToken||!m.proxyEndpoint)throw Error("failed to get an ECR authorization token");let A=m.proxyEndpoint.replace(/^https?:\/\//,""),S=o(a,".docker");return w(S,{recursive:!0}),g(o(S,"config.json"),JSON.stringify({auths:{[A]:{auth:m.authorizationToken}}})),C("docker",["push",l],{stdio:"inherit",env:{...process.env,DOCKER_CONFIG:S}}),e(`Image: ${l}`),{imageUri:l,tag:B,handlers:f}}finally{U(a,{recursive:!0,force:!0})}}
|
|
2
2
|
export{Fp};
|
|
@@ -8,7 +8,7 @@ var q;try{q=await import("node:crypto")}catch{}var v=new Map,Q=100,ee={appstream
|
|
|
8
8
|
`),w=J(r,d,h,a,R,g??v);return o.searchParams.set("X-Amz-Signature",w),{url:o.toString(),method:t,headers:{},body:s||void 0}}async function ne(e){let{urlObj:n,method:t,body:s,accessKeyId:c,secretAccessKey:r,sessionToken:i,service:a,region:h,timestamp:m,date:d,credentialScope:f,algorithm:p,expiresIn:u,cache:g}=e,o=new URL(n.toString());o.searchParams.set("X-Amz-Algorithm",p),o.searchParams.set("X-Amz-Credential",`${c}/${f}`),o.searchParams.set("X-Amz-Date",m),o.searchParams.set("X-Amz-Expires",String(u));let y=a==="s3"?"UNSIGNED-PAYLOAD":await k(s);if(a==="s3")o.searchParams.set("X-Amz-Content-Sha256",y);let S="host";if(o.searchParams.set("X-Amz-SignedHeaders",S),i)o.searchParams.set("X-Amz-Security-Token",i);let b=j(o.pathname||"/"),A=`host:${o.hostname}
|
|
9
9
|
`,x=I(o.searchParams),l=[t,b,x,A,S,y].join(`
|
|
10
10
|
`),R=[p,m,f,await k(l)].join(`
|
|
11
|
-
`),w=await V(r,d,h,a,R,g??v);return o.searchParams.set("X-Amz-Signature",w),{url:o.toString(),method:t,headers:{},body:s||void 0}}function
|
|
11
|
+
`),w=await V(r,d,h,a,R,g??v);return o.searchParams.set("X-Amz-Signature",w),{url:o.toString(),method:t,headers:{},body:s||void 0}}function is(e){let{url:n,method:t="GET",expiresIn:s=3600,...c}=e,r=Math.min(s,604800);return Y({...c,url:n,method:t,signQuery:!0,expiresIn:r}).url}async function Ip(e){let{url:n,method:t="GET",expiresIn:s=3600,...c}=e,r=Math.min(s,604800);return(await sc({...c,url:n,method:t,signQuery:!0,expiresIn:r})).url}function _(e){return Object.keys(e).sort().map((n)=>`${n.toLowerCase()}:${e[n].trim().replace(/\s+/g," ")}`).join(`
|
|
12
12
|
`)+`
|
|
13
|
-
`}function N(e){return Object.keys(e).sort().map((n)=>n.toLowerCase()).join(";")}function I(e){let n=[];return e.forEach((t,s)=>{n.push([B(s),B(t)])}),n.sort((t,s)=>{if(t[0]<s[0])return-1;if(t[0]>s[0])return 1;if(t[1]<s[1])return-1;if(t[1]>s[1])return 1;return 0}),n.map(([t,s])=>`${t}=${s}`).join("&")}function j(e){return e.split("/").map((n)=>B(n)).join("/")}function B(e){return encodeURIComponent(e).replace(/[!'()*]/g,(n)=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)}function E(e){if(!q)throw Error("Synchronous hash not available in browser. Use signRequestAsync() instead.");return q.createHash("sha256").update(e,"utf8").digest("hex")}function C(e,n){if(!q)throw Error("Synchronous hmac not available in browser. Use signRequestAsync() instead.");return q.createHmac("sha256",e).update(n,"utf8").digest()}async function k(e){let t=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",t);return G(new Uint8Array(s))}async function z(e,n){let t=new TextEncoder,s=typeof e==="string"?t.encode(e):e,c=t.encode(n),r=await crypto.subtle.importKey("raw",s.buffer,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),i=await crypto.subtle.sign("HMAC",r,c.buffer);return new Uint8Array(i)}function G(e){return Array.from(e).map((n)=>n.toString(16).padStart(2,"0")).join("")}function J(e,n,t,s,c,r){let i=`${e}:${n}:${t}:${s}`,a=r.get(i);if(!a){let h=C(`AWS4${e}`,n),m=C(h,t),d=C(m,s);if(a=C(d,"aws4_request"),r.size>=Q){let f=r.keys().next().value;if(f)r.delete(f)}r.set(i,a)}return C(a,c).toString("hex")}async function V(e,n,t,s,c,r){let i=`${e}:${n}:${t}:${s}`,a=r.get(i);if(!a){let m=await z(`AWS4${e}`,n),d=await z(m,t),f=await z(d,s);if(a=await z(f,"aws4_request"),r.size>=Q){let p=r.keys().next().value;if(p)r.delete(p)}r.set(i,a)}let h=await z(a,c);return G(h)}function Z(e,n){return n.includes(e)}function T(e,n,t){let s=n*Math.pow(2,e),c=Math.random()*0.3*s;return Math.min(s+c,t)}function H(e){return new Promise((n)=>setTimeout(n,e))}async function kt(e,n){let{maxRetries:t=3,initialDelayMs:s=100,maxDelayMs:c=5000,retryableStatusCodes:r=[429,500,502,503,504],timeoutMs:i=30000}=n??{},a,h;for(let m=0;m<=t;m++){let d=Y(e),f={method:d.method,headers:d.headers};if(d.body)f.body=d.body;let p=new AbortController,u=setTimeout(()=>p.abort(),i);f.signal=p.signal;try{let g=await fetch(d.url,f);if(clearTimeout(u),h=g,g.ok)return g;if(m<t&&Z(g.status,r)){let y=T(m,s,c);await H(y);continue}let o=await g.text();throw Error(`AWS API request failed (${g.status}): ${o}`)}catch(g){if(clearTimeout(u),a=g,g instanceof Error&&g.name==="AbortError")a=Error(`Request timed out after ${i}ms`);if(m<t&&!(g instanceof Error&&g.message.includes("AWS API request failed"))){let o=T(m,s,c);await H(o);continue}throw a}}throw a??Error("Request failed after retries")}async function Pp(e){return kt(e,{maxRetries:0})}async function Dp(e,n){let{maxRetries:t=3,initialDelayMs:s=100,maxDelayMs:c=5000,retryableStatusCodes:r=[429,500,502,503,504],timeoutMs:i=30000}=n??{},a;for(let h=0;h<=t;h++){let m=await sc(e),d={method:m.method,headers:m.headers};if(m.body)d.body=m.body;let f=new AbortController,p=setTimeout(()=>f.abort(),i);d.signal=f.signal;try{let u=await fetch(m.url,d);if(clearTimeout(p),u.ok)return u;if(h<t&&Z(u.status,r)){let o=T(h,s,c);await H(o);continue}let g=await u.text();throw Error(`AWS API request failed (${u.status}): ${g}`)}catch(u){if(clearTimeout(p),a=u,u instanceof Error&&u.name==="AbortError")a=Error(`Request timed out after ${i}ms`);if(h<t&&!(u instanceof Error&&u.message.includes("AWS API request failed"))){let g=T(h,s,c);await H(g);continue}throw a}}throw a??Error("Request failed after retries")}async function
|
|
14
|
-
export{oc,Y,sc,
|
|
13
|
+
`}function N(e){return Object.keys(e).sort().map((n)=>n.toLowerCase()).join(";")}function I(e){let n=[];return e.forEach((t,s)=>{n.push([B(s),B(t)])}),n.sort((t,s)=>{if(t[0]<s[0])return-1;if(t[0]>s[0])return 1;if(t[1]<s[1])return-1;if(t[1]>s[1])return 1;return 0}),n.map(([t,s])=>`${t}=${s}`).join("&")}function j(e){return e.split("/").map((n)=>B(n)).join("/")}function B(e){return encodeURIComponent(e).replace(/[!'()*]/g,(n)=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)}function E(e){if(!q)throw Error("Synchronous hash not available in browser. Use signRequestAsync() instead.");return q.createHash("sha256").update(e,"utf8").digest("hex")}function C(e,n){if(!q)throw Error("Synchronous hmac not available in browser. Use signRequestAsync() instead.");return q.createHmac("sha256",e).update(n,"utf8").digest()}async function k(e){let t=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",t);return G(new Uint8Array(s))}async function z(e,n){let t=new TextEncoder,s=typeof e==="string"?t.encode(e):e,c=t.encode(n),r=await crypto.subtle.importKey("raw",s.buffer,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),i=await crypto.subtle.sign("HMAC",r,c.buffer);return new Uint8Array(i)}function G(e){return Array.from(e).map((n)=>n.toString(16).padStart(2,"0")).join("")}function J(e,n,t,s,c,r){let i=`${e}:${n}:${t}:${s}`,a=r.get(i);if(!a){let h=C(`AWS4${e}`,n),m=C(h,t),d=C(m,s);if(a=C(d,"aws4_request"),r.size>=Q){let f=r.keys().next().value;if(f)r.delete(f)}r.set(i,a)}return C(a,c).toString("hex")}async function V(e,n,t,s,c,r){let i=`${e}:${n}:${t}:${s}`,a=r.get(i);if(!a){let m=await z(`AWS4${e}`,n),d=await z(m,t),f=await z(d,s);if(a=await z(f,"aws4_request"),r.size>=Q){let p=r.keys().next().value;if(p)r.delete(p)}r.set(i,a)}let h=await z(a,c);return G(h)}function Z(e,n){return n.includes(e)}function T(e,n,t){let s=n*Math.pow(2,e),c=Math.random()*0.3*s;return Math.min(s+c,t)}function H(e){return new Promise((n)=>setTimeout(n,e))}async function kt(e,n){let{maxRetries:t=3,initialDelayMs:s=100,maxDelayMs:c=5000,retryableStatusCodes:r=[429,500,502,503,504],timeoutMs:i=30000}=n??{},a,h;for(let m=0;m<=t;m++){let d=Y(e),f={method:d.method,headers:d.headers};if(d.body)f.body=d.body;let p=new AbortController,u=setTimeout(()=>p.abort(),i);f.signal=p.signal;try{let g=await fetch(d.url,f);if(clearTimeout(u),h=g,g.ok)return g;if(m<t&&Z(g.status,r)){let y=T(m,s,c);await H(y);continue}let o=await g.text();throw Error(`AWS API request failed (${g.status}): ${o}`)}catch(g){if(clearTimeout(u),a=g,g instanceof Error&&g.name==="AbortError")a=Error(`Request timed out after ${i}ms`);if(m<t&&!(g instanceof Error&&g.message.includes("AWS API request failed"))){let o=T(m,s,c);await H(o);continue}throw a}}throw a??Error("Request failed after retries")}async function Pp(e){return kt(e,{maxRetries:0})}async function Dp(e,n){let{maxRetries:t=3,initialDelayMs:s=100,maxDelayMs:c=5000,retryableStatusCodes:r=[429,500,502,503,504],timeoutMs:i=30000}=n??{},a;for(let h=0;h<=t;h++){let m=await sc(e),d={method:m.method,headers:m.headers};if(m.body)d.body=m.body;let f=new AbortController,p=setTimeout(()=>f.abort(),i);d.signal=f.signal;try{let u=await fetch(m.url,d);if(clearTimeout(p),u.ok)return u;if(h<t&&Z(u.status,r)){let o=T(h,s,c);await H(o);continue}let g=await u.text();throw Error(`AWS API request failed (${u.status}): ${g}`)}catch(u){if(clearTimeout(p),a=u,u instanceof Error&&u.name==="AbortError")a=Error(`Request timed out after ${i}ms`);if(h<t&&!(u instanceof Error&&u.message.includes("AWS API request failed"))){let g=T(h,s,c);await H(g);continue}throw a}}throw a??Error("Request failed after retries")}async function Dn(e){let n=await e.text(),t={},s=/<(\w+)>([^<]+)<\/\1>/g,c;while((c=s.exec(n))!==null){let[,r,i]=c;t[r]=i}return t}async function kp(e){return await e.json()}function Np(){v.clear()}function xp(){return v.size}function _p(){return q!==void 0}function Op(){return typeof crypto<"u"&&typeof crypto.subtle<"u"}
|
|
14
|
+
export{oc,Y,sc,is,Ip,kt,Pp,Dp,Dn,kp,Np,xp,_p,Op};
|