{"version":3,"file":"context.cjs","sources":["../../../src/context/provide.ts","../../../src/context/inject.ts"],"sourcesContent":["import { type Context, ContextProvider, type ContextType } from '@lit/context'\nimport { getCurrentInstance } from '../currentInstance'\n\nexport const provide = <Value, C extends Context<Value, Value>>(context: C, initialValue: ContextType<C>) =>\n  new ContextProvider(getCurrentInstance(), { context, initialValue })\n","import { type Context, ContextConsumer } from '@lit/context'\nimport { getCurrentInstance } from '../currentInstance'\n\nexport const consume = <Value, C extends Context<Value, Value>>(context: C) =>\n  new ContextConsumer(getCurrentInstance(), { context, subscribe: true })\n"],"names":["context","currentInstance","provide","initialValue","ContextProvider","getCurrentInstance","consume","ContextConsumer"],"mappings":"aAGO,OAAA,eAAA,QAAA,OAAA,YAAA,CAAA,MAAA,QAAA,CAAA,EAAA,MAAAA,EAAA,QAAA,cAAA,EAAAC,EAAA,QAAA,gCAAA,EAAMC,EAAU,CAAyCF,EAAYG,IAC1E,IAAIC,EAAAA,gBAAgBC,IAAA,EAAsB,CAAA,QAAEL,EAAS,aAAAG,CAAA,CAAc,ECDxDG,EAAmDN,GAC9D,IAAIO,EAAAA,gBAAgBF,EAAAA,EAAA,EAAsB,CAAA,QAAEL,EAAS,UAAW,EAAA,CAAM,EAAA,QAAA,QAAAM,EAAA,QAAA,QAAAJ"}