UNPKG

puppeteer-core

Version:

A high-level API to control headless Chrome over the DevTools Protocol

1 lines 6.04 kB
{"version":3,"file":"WaitTask.js","sourceRoot":"","sources":["../../../../src/common/WaitTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AACzC,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAarC;;GAEG;AACH,MAAM,OAAO,QAAQ;IACnB,MAAM,CAAQ;IACd,QAAQ,CAA8B;IACtC,KAAK,CAAuB;IAE5B,GAAG,CAAS;IACZ,KAAK,CAAY;IAEjB,QAAQ,CAAkB;IAC1B,aAAa,CAAgB;IAE7B,OAAO,GAAG,QAAQ,CAAC,MAAM,EAAgB,CAAC;IAE1C,OAAO,CAAuB;IAC9B,OAAO,CAAe;IACtB,OAAO,GAAsB,EAAE,CAAC;IAEhC,YACE,KAAY,EACZ,OAAwB,EACxB,EAAiD,EACjD,GAAG,IAAe;QAElB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;QAC9B,IAAI,CAAC,OAAO,EAAE,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE;YAC3D,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QAEH,QAAQ,OAAO,EAAE,EAAE,CAAC;YAClB,KAAK,QAAQ;gBACX,IAAI,CAAC,GAAG,GAAG,kBAAkB,EAAE,KAAK,CAAC;gBACrC,MAAM;YACR;gBAC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