"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConcreteWidget=exports.GRID_WIDTH=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");exports.GRID_WIDTH=24;class ConcreteWidget{constructor(width,height){if(this.warnings=[],this.warningsV2={},this.width=width,this.height=height,this.width>exports.GRID_WIDTH)throw new Error(`Widget is too wide, max ${exports.GRID_WIDTH} units allowed`)}position(x,y){this.x=x,this.y=y}copyMetricWarnings(...ms){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IMetric(ms)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.copyMetricWarnings),error}ms.forEach(m=>{for(const[id,message]of Object.entries(m.warningsV2??{}))this.warningsV2[id]=message})}}exports.ConcreteWidget=ConcreteWidget,_a=JSII_RTTI_SYMBOL_1,ConcreteWidget[_a]={fqn:"aws-cdk-lib.aws_cloudwatch.ConcreteWidget",version:"2.148.1"};
