export const addEventCaptureListenerWithPassiveFlag = ( target , eventType , listener , passive ) => { target . addEventListener ( eventType , listener as EventListener , { capture : true , passive , } ) ; return listener ; } ; export const addEventCaptureListener = ( target , eventType , listener ) => { target . addEventListener ( eventType , listener as EventListener , true ) ; return listener ; } ; export const addEventBubbleListenerWithPassiveFlag = ( target , eventType , listener , passive ) => { target . addEventListener ( eventType , listener as EventListener , { passive , } ) ; return listener ; } ; export const addEventBubbleListener = ( target , eventType , listener ) => { target . addEventListener ( eventType , listener as EventListener , false ) ; return listener ; } ;