import*as TimelineModel from"../timeline_model/timeline_model.js";import{TimelineUIUtils}from"./TimelineUIUtils.js";export class IsLong extends TimelineModel.TimelineModelFilter.TimelineModelFilter{constructor(){super(),this._minimumRecordDuration=0}setMinimumRecordDuration(e){this._minimumRecordDuration=e}accept(e){return(e.endTime?e.endTime-e.startTime:0)>=this._minimumRecordDuration}}export class Category extends TimelineModel.TimelineModelFilter.TimelineModelFilter{constructor(){super()}accept(e){return!TimelineUIUtils.eventStyle(e).category.hidden}}export class TimelineRegExp extends TimelineModel.TimelineModelFilter.TimelineModelFilter{constructor(e){super(),this._regExp,this.setRegExp(e||null)}setRegExp(e){this._regExp=e}regExp(){return this._regExp}accept(e){return!this._regExp||TimelineUIUtils.testContentMatching(e,this._regExp)}}