{"version":3,"file":"BrowsingContextProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/context/BrowsingContextProcessor.ts"],"names":[],"mappings":";;;AAmBA,+DAOuC;AAOvC,MAAa,wBAAwB;IAC1B,iBAAiB,CAAY;IAC7B,uBAAuB,CAAyB;IAChD,aAAa,CAAe;IAErC,YACE,gBAA2B,EAC3B,sBAA8C,EAC9C,YAA0B;QAE1B,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;QAC1C,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,aAAa,CAAC,gBAAgB,CACjC,0BAAY,CAAC,eAAe,CAAC,UAAU,CAAC,cAAc,EACtD,IAAI,CAAC,8BAA8B,CAAC,IAAI,CAAC,IAAI,CAAC,CAC/C,CAAC;IACJ,CAAC;IAED,OAAO,CACL,MAAyC;QAEzC,MAAM,cAAc,GAClB,MAAM,CAAC,IAAI,KAAK,SAAS;YACvB,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,mBAAmB,EAAE;YACpD,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QAE7D,OAAO;YACL,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACjC,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,CAC5D;SACF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CACV,MAAwC;QAExC,IAAI,gBAAiD,CAAC;QACtD,IAAI,WAAW,GAAG,SAAS,CAAC;QAC5B,IAAI,MAAM,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;YAC1C,gBAAgB,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,CACxD,MAAM,CAAC,gBAAgB,CACxB,CAA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