package Ġorg . lux ons . se ven w ond ers . ui . redux Ċ Ċ import Ġkotlinx . browser . window Ċ import Ġorg . lux ons . se ven w ond ers . ui . redux . s ag as . Saga Manager Ċ import Ġredux . R Action Ċ import Ġredux . Store Ċ import Ġredux . Wrapper Action Ċ import Ġredux . apply Middleware Ċ import Ġredux . compose Ċ import Ġredux . create Store Ċ import Ġredux . r Enh ancer Ċ Ċ val ĠINITIAL _ STATE Ġ= ĠSw State () Ċ Ċ private Ġfun Ġ< A , ĠT 1 , ĠR > Ġcompose With Dev Tools ( function 1 : Ġ( T 1 ) Ġ-> ĠR , Ġfunction 2 : Ġ( A ) Ġ-> ĠT 1 ): Ġ( A ) Ġ-> ĠR Ġ{ ĊĠĠĠ Ġval Ġredux Dev tools Extension Compose Ġ= Ġwindow . as Dynamic ().__ RED UX _ DEV TOOLS _ EXTENSION _ COMP OSE __ ĊĠĠĠ Ġif Ġ( redux Dev tools Extension Compose Ġ== Ġundefined ) Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġcompose ( function 1 , Ġfunction 2 ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġreturn Ġredux Dev tools Extension Compose ( function 1 , Ġfunction 2 ) Ġas ĠFunction 1 < A , ĠR > Ċ } Ċ Ċ fun Ġconfigure Store ( ĊĠĠĠ Ġs aga Manager : ĠS aga Manager < Sw State , ĠR Action , ĠWrapper Action >, ĊĠĠĠ ĠinitialState : ĠSw State Ġ= ĠINITIAL _ STATE , Ċ ): ĠStore < Sw State , ĠR Action , ĠWrapper Action > Ġ{ ĊĠĠĠ Ġval Ġs aga Enh ancer Ġ= Ġapply Middleware ( saga Manager . create Middleware ()) ĊĠĠĠ Ġreturn Ġcreate Store (:: root Reducer , ĠinitialState , Ġcompose With Dev Tools ( saga Enh ancer , Ġr Enh ancer ())) Ċ } Ċ