import {a as a$2}from'./chunk-N4GW7RGB.js';import {a}from'./chunk-AVKEMR5W.js';import {a as a$1}from'./chunk-SYDG6PPD.js';var h=class extends a{constructor(){super(...arguments);this.shouldResetAnchorRegexes=false;}setAnchorRegexes(e){return this.anchorRegexes=e,this}setAnchorRegex(e){return this.anchorRegexes=[e],this}resetAnchorRegexes(){return this.shouldResetAnchorRegexes=true,this}async build(e){var s;let a=await a$1().workerCommand("labelCaptureBuildWeightText",{payload:{name:e,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,dataTypePatterns:this.anchorRegexes,shouldResetDataTypePatterns:this.shouldResetAnchorRegexes}}),t=a$2.forHandle(a);return t._isOptional=this._isOptional,t._name=e,t._valueRegexes=this.valueRegexes,t._anchorRegexes=(s=this.anchorRegexes)!=null?s:[],t}getThis(){return this}};export{h as a};