diff --git a/coverage/badge.svg b/coverage/badge.svg index 926db23..5cb900e 100644 --- a/coverage/badge.svg +++ b/coverage/badge.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json index e2fbbcb..73988cf 100644 --- a/coverage/coverage-final.json +++ b/coverage/coverage-final.json @@ -1,6 +1,7 @@ -{"D:\\Projects\\browser-image-compression\\lib\\image-compression.js": {"path":"D:\\Projects\\browser-image-compression\\lib\\image-compression.js","statementMap":{"0":{"start":{"line":29,"column":17},"end":{"line":29,"column":33}},"1":{"start":{"line":32,"column":4},"end":{"line":32,"column":20}},"2":{"start":{"line":33,"column":4},"end":{"line":33,"column":48}},"3":{"start":{"line":37,"column":4},"end":{"line":37,"column":52}},"4":{"start":{"line":38,"column":4},"end":{"line":38,"column":33}},"5":{"start":{"line":41,"column":24},"end":{"line":41,"column":50}},"6":{"start":{"line":43,"column":22},"end":{"line":43,"column":53}},"7":{"start":{"line":45,"column":2},"end":{"line":45,"column":16}},"8":{"start":{"line":48,"column":25},"end":{"line":48,"column":53}},"9":{"start":{"line":50,"column":2},"end":{"line":50,"column":16}},"10":{"start":{"line":53,"column":38},"end":{"line":53,"column":81}},"11":{"start":{"line":55,"column":2},"end":{"line":55,"column":16}},"12":{"start":{"line":58,"column":26},"end":{"line":58,"column":83}},"13":{"start":{"line":59,"column":2},"end":{"line":59,"column":16}},"14":{"start":{"line":60,"column":33},"end":{"line":60,"column":169}},"15":{"start":{"line":61,"column":2},"end":{"line":61,"column":16}},"16":{"start":{"line":63,"column":16},"end":{"line":63,"column":45}},"17":{"start":{"line":65,"column":25},"end":{"line":65,"column":54}},"18":{"start":{"line":67,"column":19},"end":{"line":67,"column":116}},"19":{"start":{"line":68,"column":2},"end":{"line":68,"column":16}},"20":{"start":{"line":70,"column":28},"end":{"line":70,"column":55}},"21":{"start":{"line":71,"column":27},"end":{"line":71,"column":52}},"22":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"23":{"start":{"line":73,"column":4},"end":{"line":73,"column":49}},"24":{"start":{"line":74,"column":4},"end":{"line":74,"column":52}},"25":{"start":{"line":78,"column":2},"end":{"line":85,"column":3}},"26":{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},"27":{"start":{"line":81,"column":6},"end":{"line":81,"column":41}},"28":{"start":{"line":83,"column":4},"end":{"line":83,"column":21}},"29":{"start":{"line":84,"column":4},"end":{"line":84,"column":20}},"30":{"start":{"line":87,"column":21},"end":{"line":87,"column":30}},"31":{"start":{"line":88,"column":23},"end":{"line":88,"column":36}},"32":{"start":{"line":89,"column":20},"end":{"line":89,"column":32}},"33":{"start":{"line":93,"column":15},"end":{"line":93,"column":37}},"34":{"start":{"line":94,"column":2},"end":{"line":116,"column":3}},"35":{"start":{"line":95,"column":21},"end":{"line":95,"column":75}},"36":{"start":{"line":96,"column":22},"end":{"line":96,"column":78}},"37":{"start":{"line":97,"column":4},"end":{"line":100,"column":5}},"38":{"start":{"line":98,"column":6},"end":{"line":98,"column":45}},"39":{"start":{"line":99,"column":6},"end":{"line":99,"column":47}},"40":{"start":{"line":101,"column":4},"end":{"line":101,"column":63}},"41":{"start":{"line":103,"column":4},"end":{"line":103,"column":53}},"42":{"start":{"line":105,"column":4},"end":{"line":105,"column":20}},"43":{"start":{"line":107,"column":4},"end":{"line":107,"column":106}},"44":{"start":{"line":109,"column":4},"end":{"line":109,"column":32}},"45":{"start":{"line":111,"column":4},"end":{"line":111,"column":23}},"46":{"start":{"line":113,"column":4},"end":{"line":113,"column":38}},"47":{"start":{"line":115,"column":4},"end":{"line":115,"column":111}},"48":{"start":{"line":118,"column":2},"end":{"line":118,"column":30}},"49":{"start":{"line":119,"column":2},"end":{"line":119,"column":33}},"50":{"start":{"line":120,"column":2},"end":{"line":120,"column":51}},"51":{"start":{"line":121,"column":2},"end":{"line":121,"column":46}},"52":{"start":{"line":122,"column":2},"end":{"line":122,"column":34}},"53":{"start":{"line":124,"column":2},"end":{"line":124,"column":19}},"54":{"start":{"line":125,"column":2},"end":{"line":125,"column":24}}},"fnMap":{"0":{"name":"compress","decl":{"start":{"line":28,"column":30},"end":{"line":28,"column":38}},"loc":{"start":{"line":28,"column":76},"end":{"line":126,"column":1}},"line":28},"1":{"name":"incProgress","decl":{"start":{"line":31,"column":11},"end":{"line":31,"column":22}},"loc":{"start":{"line":31,"column":32},"end":{"line":34,"column":3}},"line":31},"2":{"name":"setProgress","decl":{"start":{"line":36,"column":11},"end":{"line":36,"column":22}},"loc":{"start":{"line":36,"column":26},"end":{"line":39,"column":3}},"line":36}},"branchMap":{"0":{"loc":{"start":{"line":28,"column":54},"end":{"line":28,"column":74}},"type":"default-arg","locations":[{"start":{"line":28,"column":73},"end":{"line":28,"column":74}}],"line":28},"1":{"loc":{"start":{"line":31,"column":23},"end":{"line":31,"column":30}},"type":"default-arg","locations":[{"start":{"line":31,"column":29},"end":{"line":31,"column":30}}],"line":31},"2":{"loc":{"start":{"line":41,"column":24},"end":{"line":41,"column":50}},"type":"binary-expr","locations":[{"start":{"line":41,"column":24},"end":{"line":41,"column":44}},{"start":{"line":41,"column":48},"end":{"line":41,"column":50}}],"line":41},"3":{"loc":{"start":{"line":58,"column":26},"end":{"line":58,"column":83}},"type":"binary-expr","locations":[{"start":{"line":58,"column":26},"end":{"line":58,"column":49}},{"start":{"line":58,"column":53},"end":{"line":58,"column":83}}],"line":58},"4":{"loc":{"start":{"line":60,"column":33},"end":{"line":60,"column":169}},"type":"cond-expr","locations":[{"start":{"line":60,"column":72},"end":{"line":60,"column":99}},{"start":{"line":60,"column":102},"end":{"line":60,"column":169}}],"line":60},"5":{"loc":{"start":{"line":63,"column":16},"end":{"line":63,"column":45}},"type":"binary-expr","locations":[{"start":{"line":63,"column":16},"end":{"line":63,"column":38}},{"start":{"line":63,"column":42},"end":{"line":63,"column":45}}],"line":63},"6":{"loc":{"start":{"line":65,"column":25},"end":{"line":65,"column":54}},"type":"binary-expr","locations":[{"start":{"line":65,"column":25},"end":{"line":65,"column":41}},{"start":{"line":65,"column":45},"end":{"line":65,"column":54}}],"line":65},"7":{"loc":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},{"start":{"line":72,"column":2},"end":{"line":75,"column":3}}],"line":72},"8":{"loc":{"start":{"line":78,"column":2},"end":{"line":85,"column":3}},"type":"if","locations":[{"start":{"line":78,"column":2},"end":{"line":85,"column":3}},{"start":{"line":78,"column":2},"end":{"line":85,"column":3}}],"line":78},"9":{"loc":{"start":{"line":78,"column":6},"end":{"line":78,"column":45}},"type":"binary-expr","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":24}},{"start":{"line":78,"column":28},"end":{"line":78,"column":45}}],"line":78},"10":{"loc":{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},"type":"if","locations":[{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},{"start":{"line":80,"column":4},"end":{"line":82,"column":5}}],"line":80},"11":{"loc":{"start":{"line":94,"column":9},"end":{"line":94,"column":85}},"type":"binary-expr","locations":[{"start":{"line":94,"column":9},"end":{"line":94,"column":26}},{"start":{"line":94,"column":31},"end":{"line":94,"column":56}},{"start":{"line":94,"column":60},"end":{"line":94,"column":84}}],"line":94},"12":{"loc":{"start":{"line":95,"column":21},"end":{"line":95,"column":75}},"type":"cond-expr","locations":[{"start":{"line":95,"column":41},"end":{"line":95,"column":60}},{"start":{"line":95,"column":63},"end":{"line":95,"column":75}}],"line":95},"13":{"loc":{"start":{"line":96,"column":22},"end":{"line":96,"column":78}},"type":"cond-expr","locations":[{"start":{"line":96,"column":42},"end":{"line":96,"column":62}},{"start":{"line":96,"column":65},"end":{"line":96,"column":78}}],"line":96},"14":{"loc":{"start":{"line":97,"column":4},"end":{"line":100,"column":5}},"type":"if","locations":[{"start":{"line":97,"column":4},"end":{"line":100,"column":5}},{"start":{"line":97,"column":4},"end":{"line":100,"column":5}}],"line":97}},"s":{"0":6,"1":36,"2":36,"3":8,"4":8,"5":6,"6":6,"7":6,"8":6,"9":6,"10":6,"11":6,"12":6,"13":6,"14":6,"15":6,"16":6,"17":6,"18":6,"19":6,"20":6,"21":6,"22":6,"23":0,"24":0,"25":6,"26":5,"27":0,"28":5,"29":5,"30":1,"31":1,"32":1,"33":1,"34":1,"35":2,"36":2,"37":2,"38":0,"39":0,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"46":2,"47":2,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1},"f":{"0":6,"1":36,"2":8},"b":{"0":[6],"1":[36],"2":[6,6],"3":[6,0],"4":[0,6],"5":[6,6],"6":[6,6],"7":[0,6],"8":[5,1],"9":[6,5],"10":[0,5],"11":[3,3,1],"12":[2,0],"13":[2,0],"14":[0,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"675840dfb00c00e986c1ca0f42d046138921bb9f","contentHash":"f9f8eca17546487532990f45ebcd67a5c8a2fcd1d44e71b2a52fe989228322ff"} +{"D:\\Projects\\browser-image-compression\\lib\\image-compression.js": {"path":"D:\\Projects\\browser-image-compression\\lib\\image-compression.js","statementMap":{"0":{"start":{"line":29,"column":17},"end":{"line":29,"column":33}},"1":{"start":{"line":32,"column":4},"end":{"line":32,"column":20}},"2":{"start":{"line":33,"column":4},"end":{"line":33,"column":48}},"3":{"start":{"line":37,"column":4},"end":{"line":37,"column":52}},"4":{"start":{"line":38,"column":4},"end":{"line":38,"column":33}},"5":{"start":{"line":41,"column":24},"end":{"line":41,"column":50}},"6":{"start":{"line":43,"column":22},"end":{"line":43,"column":53}},"7":{"start":{"line":45,"column":2},"end":{"line":45,"column":16}},"8":{"start":{"line":48,"column":25},"end":{"line":48,"column":62}},"9":{"start":{"line":50,"column":2},"end":{"line":50,"column":16}},"10":{"start":{"line":53,"column":38},"end":{"line":53,"column":81}},"11":{"start":{"line":55,"column":2},"end":{"line":55,"column":16}},"12":{"start":{"line":58,"column":26},"end":{"line":58,"column":83}},"13":{"start":{"line":59,"column":2},"end":{"line":59,"column":16}},"14":{"start":{"line":60,"column":33},"end":{"line":60,"column":169}},"15":{"start":{"line":61,"column":2},"end":{"line":61,"column":16}},"16":{"start":{"line":63,"column":16},"end":{"line":63,"column":45}},"17":{"start":{"line":65,"column":25},"end":{"line":65,"column":54}},"18":{"start":{"line":67,"column":19},"end":{"line":67,"column":116}},"19":{"start":{"line":68,"column":2},"end":{"line":68,"column":16}},"20":{"start":{"line":70,"column":28},"end":{"line":70,"column":55}},"21":{"start":{"line":71,"column":27},"end":{"line":71,"column":52}},"22":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"23":{"start":{"line":73,"column":4},"end":{"line":73,"column":49}},"24":{"start":{"line":74,"column":4},"end":{"line":74,"column":52}},"25":{"start":{"line":78,"column":2},"end":{"line":85,"column":3}},"26":{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},"27":{"start":{"line":81,"column":6},"end":{"line":81,"column":41}},"28":{"start":{"line":83,"column":4},"end":{"line":83,"column":21}},"29":{"start":{"line":84,"column":4},"end":{"line":84,"column":20}},"30":{"start":{"line":87,"column":21},"end":{"line":87,"column":30}},"31":{"start":{"line":88,"column":23},"end":{"line":88,"column":36}},"32":{"start":{"line":89,"column":20},"end":{"line":89,"column":32}},"33":{"start":{"line":93,"column":15},"end":{"line":93,"column":37}},"34":{"start":{"line":94,"column":2},"end":{"line":116,"column":3}},"35":{"start":{"line":95,"column":21},"end":{"line":95,"column":75}},"36":{"start":{"line":96,"column":22},"end":{"line":96,"column":78}},"37":{"start":{"line":97,"column":4},"end":{"line":100,"column":5}},"38":{"start":{"line":98,"column":6},"end":{"line":98,"column":45}},"39":{"start":{"line":99,"column":6},"end":{"line":99,"column":47}},"40":{"start":{"line":101,"column":4},"end":{"line":101,"column":63}},"41":{"start":{"line":103,"column":4},"end":{"line":103,"column":53}},"42":{"start":{"line":105,"column":4},"end":{"line":105,"column":20}},"43":{"start":{"line":107,"column":4},"end":{"line":107,"column":106}},"44":{"start":{"line":109,"column":4},"end":{"line":109,"column":32}},"45":{"start":{"line":111,"column":4},"end":{"line":111,"column":23}},"46":{"start":{"line":113,"column":4},"end":{"line":113,"column":38}},"47":{"start":{"line":115,"column":4},"end":{"line":115,"column":111}},"48":{"start":{"line":118,"column":2},"end":{"line":118,"column":30}},"49":{"start":{"line":119,"column":2},"end":{"line":119,"column":33}},"50":{"start":{"line":120,"column":2},"end":{"line":120,"column":51}},"51":{"start":{"line":121,"column":2},"end":{"line":121,"column":46}},"52":{"start":{"line":122,"column":2},"end":{"line":122,"column":34}},"53":{"start":{"line":124,"column":2},"end":{"line":124,"column":19}},"54":{"start":{"line":125,"column":2},"end":{"line":125,"column":24}}},"fnMap":{"0":{"name":"compress","decl":{"start":{"line":28,"column":30},"end":{"line":28,"column":38}},"loc":{"start":{"line":28,"column":76},"end":{"line":126,"column":1}},"line":28},"1":{"name":"incProgress","decl":{"start":{"line":31,"column":11},"end":{"line":31,"column":22}},"loc":{"start":{"line":31,"column":32},"end":{"line":34,"column":3}},"line":31},"2":{"name":"setProgress","decl":{"start":{"line":36,"column":11},"end":{"line":36,"column":22}},"loc":{"start":{"line":36,"column":26},"end":{"line":39,"column":3}},"line":36}},"branchMap":{"0":{"loc":{"start":{"line":28,"column":54},"end":{"line":28,"column":74}},"type":"default-arg","locations":[{"start":{"line":28,"column":73},"end":{"line":28,"column":74}}],"line":28},"1":{"loc":{"start":{"line":31,"column":23},"end":{"line":31,"column":30}},"type":"default-arg","locations":[{"start":{"line":31,"column":29},"end":{"line":31,"column":30}}],"line":31},"2":{"loc":{"start":{"line":41,"column":24},"end":{"line":41,"column":50}},"type":"binary-expr","locations":[{"start":{"line":41,"column":24},"end":{"line":41,"column":44}},{"start":{"line":41,"column":48},"end":{"line":41,"column":50}}],"line":41},"3":{"loc":{"start":{"line":58,"column":26},"end":{"line":58,"column":83}},"type":"binary-expr","locations":[{"start":{"line":58,"column":26},"end":{"line":58,"column":49}},{"start":{"line":58,"column":53},"end":{"line":58,"column":83}}],"line":58},"4":{"loc":{"start":{"line":60,"column":33},"end":{"line":60,"column":169}},"type":"cond-expr","locations":[{"start":{"line":60,"column":72},"end":{"line":60,"column":99}},{"start":{"line":60,"column":102},"end":{"line":60,"column":169}}],"line":60},"5":{"loc":{"start":{"line":63,"column":16},"end":{"line":63,"column":45}},"type":"binary-expr","locations":[{"start":{"line":63,"column":16},"end":{"line":63,"column":38}},{"start":{"line":63,"column":42},"end":{"line":63,"column":45}}],"line":63},"6":{"loc":{"start":{"line":65,"column":25},"end":{"line":65,"column":54}},"type":"binary-expr","locations":[{"start":{"line":65,"column":25},"end":{"line":65,"column":41}},{"start":{"line":65,"column":45},"end":{"line":65,"column":54}}],"line":65},"7":{"loc":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},{"start":{"line":72,"column":2},"end":{"line":75,"column":3}}],"line":72},"8":{"loc":{"start":{"line":78,"column":2},"end":{"line":85,"column":3}},"type":"if","locations":[{"start":{"line":78,"column":2},"end":{"line":85,"column":3}},{"start":{"line":78,"column":2},"end":{"line":85,"column":3}}],"line":78},"9":{"loc":{"start":{"line":78,"column":6},"end":{"line":78,"column":45}},"type":"binary-expr","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":24}},{"start":{"line":78,"column":28},"end":{"line":78,"column":45}}],"line":78},"10":{"loc":{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},"type":"if","locations":[{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},{"start":{"line":80,"column":4},"end":{"line":82,"column":5}}],"line":80},"11":{"loc":{"start":{"line":94,"column":9},"end":{"line":94,"column":85}},"type":"binary-expr","locations":[{"start":{"line":94,"column":9},"end":{"line":94,"column":26}},{"start":{"line":94,"column":31},"end":{"line":94,"column":56}},{"start":{"line":94,"column":60},"end":{"line":94,"column":84}}],"line":94},"12":{"loc":{"start":{"line":95,"column":21},"end":{"line":95,"column":75}},"type":"cond-expr","locations":[{"start":{"line":95,"column":41},"end":{"line":95,"column":60}},{"start":{"line":95,"column":63},"end":{"line":95,"column":75}}],"line":95},"13":{"loc":{"start":{"line":96,"column":22},"end":{"line":96,"column":78}},"type":"cond-expr","locations":[{"start":{"line":96,"column":42},"end":{"line":96,"column":62}},{"start":{"line":96,"column":65},"end":{"line":96,"column":78}}],"line":96},"14":{"loc":{"start":{"line":97,"column":4},"end":{"line":100,"column":5}},"type":"if","locations":[{"start":{"line":97,"column":4},"end":{"line":100,"column":5}},{"start":{"line":97,"column":4},"end":{"line":100,"column":5}}],"line":97}},"s":{"0":6,"1":36,"2":36,"3":8,"4":8,"5":6,"6":6,"7":6,"8":6,"9":6,"10":6,"11":6,"12":6,"13":6,"14":6,"15":6,"16":6,"17":6,"18":6,"19":6,"20":6,"21":6,"22":6,"23":0,"24":0,"25":6,"26":5,"27":0,"28":5,"29":5,"30":1,"31":1,"32":1,"33":1,"34":1,"35":2,"36":2,"37":2,"38":0,"39":0,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"46":2,"47":2,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1},"f":{"0":6,"1":36,"2":8},"b":{"0":[6],"1":[36],"2":[6,6],"3":[6,0],"4":[0,6],"5":[6,6],"6":[6,6],"7":[0,6],"8":[5,1],"9":[6,5],"10":[0,5],"11":[3,3,1],"12":[2,0],"13":[2,0],"14":[0,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d005515f37668e9739ce5af3c56c5d1e836786cd","contentHash":"72a293377f4d4387a16bd0e9e573440c320b8faf6f190403bd57eb1b635b4bfb"} ,"D:\\Projects\\browser-image-compression\\lib\\index.js": {"path":"D:\\Projects\\browser-image-compression\\lib\\index.js","statementMap":{"0":{"start":{"line":38,"column":15},"end":{"line":38,"column":29}},"1":{"start":{"line":41,"column":17},"end":{"line":41,"column":18}},"2":{"start":{"line":42,"column":25},"end":{"line":42,"column":29}},"3":{"start":{"line":44,"column":2},"end":{"line":44,"column":62}},"4":{"start":{"line":45,"column":23},"end":{"line":45,"column":88}},"5":{"start":{"line":46,"column":2},"end":{"line":46,"column":27}},"6":{"start":{"line":47,"column":2},"end":{"line":52,"column":4}},"7":{"start":{"line":48,"column":4},"end":{"line":48,"column":25}},"8":{"start":{"line":49,"column":4},"end":{"line":51,"column":5}},"9":{"start":{"line":50,"column":6},"end":{"line":50,"column":27}},"10":{"start":{"line":54,"column":2},"end":{"line":58,"column":3}},"11":{"start":{"line":55,"column":4},"end":{"line":55,"column":73}},"12":{"start":{"line":56,"column":9},"end":{"line":58,"column":3}},"13":{"start":{"line":57,"column":4},"end":{"line":57,"column":54}},"14":{"start":{"line":62,"column":22},"end":{"line":62,"column":99}},"15":{"start":{"line":64,"column":2},"end":{"line":70,"column":3}},"16":{"start":{"line":65,"column":4},"end":{"line":69,"column":5}},"17":{"start":{"line":66,"column":6},"end":{"line":66,"column":51}},"18":{"start":{"line":68,"column":6},"end":{"line":68,"column":52}},"19":{"start":{"line":72,"column":2},"end":{"line":84,"column":3}},"20":{"start":{"line":73,"column":4},"end":{"line":81,"column":5}},"21":{"start":{"line":75,"column":6},"end":{"line":75,"column":61}},"22":{"start":{"line":77,"column":6},"end":{"line":79,"column":7}},"23":{"start":{"line":78,"column":8},"end":{"line":78,"column":95}},"24":{"start":{"line":80,"column":6},"end":{"line":80,"column":50}},"25":{"start":{"line":83,"column":4},"end":{"line":83,"column":48}},"26":{"start":{"line":86,"column":2},"end":{"line":93,"column":3}},"27":{"start":{"line":87,"column":4},"end":{"line":87,"column":36}},"28":{"start":{"line":88,"column":4},"end":{"line":88,"column":52}},"29":{"start":{"line":90,"column":4},"end":{"line":92,"column":5}},"30":{"start":{"line":91,"column":6},"end":{"line":91,"column":23}},"31":{"start":{"line":95,"column":2},"end":{"line":95,"column":24}},"32":{"start":{"line":98,"column":0},"end":{"line":98,"column":57}},"33":{"start":{"line":99,"column":0},"end":{"line":99,"column":57}},"34":{"start":{"line":100,"column":0},"end":{"line":100,"column":39}},"35":{"start":{"line":101,"column":0},"end":{"line":101,"column":55}},"36":{"start":{"line":102,"column":0},"end":{"line":102,"column":53}},"37":{"start":{"line":103,"column":0},"end":{"line":103,"column":45}},"38":{"start":{"line":104,"column":0},"end":{"line":104,"column":57}},"39":{"start":{"line":106,"column":0},"end":{"line":106,"column":65}},"40":{"start":{"line":107,"column":0},"end":{"line":107,"column":63}},"41":{"start":{"line":108,"column":0},"end":{"line":108,"column":59}},"42":{"start":{"line":109,"column":0},"end":{"line":109,"column":73}},"43":{"start":{"line":110,"column":0},"end":{"line":110,"column":105}},"44":{"start":{"line":111,"column":0},"end":{"line":111,"column":49}},"45":{"start":{"line":112,"column":0},"end":{"line":112,"column":44}}},"fnMap":{"0":{"name":"imageCompression","decl":{"start":{"line":37,"column":15},"end":{"line":37,"column":31}},"loc":{"start":{"line":37,"column":47},"end":{"line":96,"column":1}},"line":37},"1":{"name":"(anonymous_1)","decl":{"start":{"line":47,"column":20},"end":{"line":47,"column":21}},"loc":{"start":{"line":47,"column":35},"end":{"line":52,"column":3}},"line":47}},"branchMap":{"0":{"loc":{"start":{"line":44,"column":19},"end":{"line":44,"column":61}},"type":"binary-expr","locations":[{"start":{"line":44,"column":19},"end":{"line":44,"column":33}},{"start":{"line":44,"column":37},"end":{"line":44,"column":61}}],"line":44},"1":{"loc":{"start":{"line":45,"column":23},"end":{"line":45,"column":88}},"type":"cond-expr","locations":[{"start":{"line":45,"column":64},"end":{"line":45,"column":81}},{"start":{"line":45,"column":84},"end":{"line":45,"column":88}}],"line":45},"2":{"loc":{"start":{"line":49,"column":4},"end":{"line":51,"column":5}},"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":51,"column":5}},{"start":{"line":49,"column":4},"end":{"line":51,"column":5}}],"line":49},"3":{"loc":{"start":{"line":54,"column":2},"end":{"line":58,"column":3}},"type":"if","locations":[{"start":{"line":54,"column":2},"end":{"line":58,"column":3}},{"start":{"line":54,"column":2},"end":{"line":58,"column":3}}],"line":54},"4":{"loc":{"start":{"line":54,"column":8},"end":{"line":54,"column":58}},"type":"binary-expr","locations":[{"start":{"line":54,"column":8},"end":{"line":54,"column":28}},{"start":{"line":54,"column":32},"end":{"line":54,"column":58}}],"line":54},"5":{"loc":{"start":{"line":56,"column":9},"end":{"line":58,"column":3}},"type":"if","locations":[{"start":{"line":56,"column":9},"end":{"line":58,"column":3}},{"start":{"line":56,"column":9},"end":{"line":58,"column":3}}],"line":56},"6":{"loc":{"start":{"line":62,"column":22},"end":{"line":62,"column":99}},"type":"binary-expr","locations":[{"start":{"line":62,"column":22},"end":{"line":62,"column":62}},{"start":{"line":62,"column":66},"end":{"line":62,"column":99}}],"line":62},"7":{"loc":{"start":{"line":64,"column":2},"end":{"line":70,"column":3}},"type":"if","locations":[{"start":{"line":64,"column":2},"end":{"line":70,"column":3}},{"start":{"line":64,"column":2},"end":{"line":70,"column":3}}],"line":64},"8":{"loc":{"start":{"line":65,"column":4},"end":{"line":69,"column":5}},"type":"if","locations":[{"start":{"line":65,"column":4},"end":{"line":69,"column":5}},{"start":{"line":65,"column":4},"end":{"line":69,"column":5}}],"line":65},"9":{"loc":{"start":{"line":65,"column":8},"end":{"line":65,"column":69}},"type":"binary-expr","locations":[{"start":{"line":65,"column":9},"end":{"line":65,"column":21}},{"start":{"line":65,"column":25},"end":{"line":65,"column":53}},{"start":{"line":65,"column":58},"end":{"line":65,"column":69}}],"line":65},"10":{"loc":{"start":{"line":72,"column":2},"end":{"line":84,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":84,"column":3}},{"start":{"line":72,"column":2},"end":{"line":84,"column":3}}],"line":72},"11":{"loc":{"start":{"line":72,"column":6},"end":{"line":72,"column":66}},"type":"binary-expr","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":18}},{"start":{"line":72,"column":22},"end":{"line":72,"column":50}},{"start":{"line":72,"column":54},"end":{"line":72,"column":66}}],"line":72},"12":{"loc":{"start":{"line":77,"column":6},"end":{"line":79,"column":7}},"type":"if","locations":[{"start":{"line":77,"column":6},"end":{"line":79,"column":7}},{"start":{"line":77,"column":6},"end":{"line":79,"column":7}}],"line":77},"13":{"loc":{"start":{"line":90,"column":4},"end":{"line":92,"column":5}},"type":"if","locations":[{"start":{"line":90,"column":4},"end":{"line":92,"column":5}},{"start":{"line":90,"column":4},"end":{"line":92,"column":5}}],"line":90}},"s":{"0":9,"1":9,"2":9,"3":9,"4":9,"5":9,"6":9,"7":44,"8":44,"9":0,"10":9,"11":2,"12":7,"13":1,"14":6,"15":6,"16":0,"17":0,"18":0,"19":6,"20":0,"21":0,"22":0,"23":0,"24":0,"25":6,"26":6,"27":6,"28":6,"29":0,"30":0,"31":6,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1},"f":{"0":9,"1":44},"b":{"0":[9,2],"1":[9,0],"2":[0,44],"3":[2,7],"4":[9,2],"5":[1,6],"6":[6,0],"7":[0,6],"8":[0,0],"9":[0,0,0],"10":[0,6],"11":[6,0,0],"12":[0,0],"13":[0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"8c2aa6079a38a98261f11d913db44cb3893a449e","contentHash":"2084bed48d2257c1852aac88b19663ea9484fba5b2559ee955d27191c6ff1988"} ,"D:\\Projects\\browser-image-compression\\lib\\polyfill.js": {"path":"D:\\Projects\\browser-image-compression\\lib\\polyfill.js","statementMap":{},"fnMap":{},"branchMap":{},"s":{},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"429e9ae55e921fbb055dbd07a45c33747b0258ad","contentHash":"7eddf6e9aeec4e202e5de464152cb8bbe5b3b10f68fc9d434b70f9b921e3eb1e"} -,"D:\\Projects\\browser-image-compression\\lib\\utils.js": {"path":"D:\\Projects\\browser-image-compression\\lib\\utils.js","statementMap":{"0":{"start":{"line":4,"column":18},"end":{"line":4,"column":47}},"1":{"start":{"line":7,"column":21},"end":{"line":7,"column":124}},"2":{"start":{"line":8,"column":26},"end":{"line":8,"column":153}},"3":{"start":{"line":9,"column":32},"end":{"line":9,"column":177}},"4":{"start":{"line":20,"column":2},"end":{"line":46,"column":5}},"5":{"start":{"line":21,"column":16},"end":{"line":21,"column":34}},"6":{"start":{"line":22,"column":17},"end":{"line":22,"column":43}},"7":{"start":{"line":23,"column":17},"end":{"line":23,"column":40}},"8":{"start":{"line":24,"column":12},"end":{"line":24,"column":23}},"9":{"start":{"line":25,"column":18},"end":{"line":25,"column":35}},"10":{"start":{"line":26,"column":4},"end":{"line":28,"column":5}},"11":{"start":{"line":27,"column":6},"end":{"line":27,"column":36}},"12":{"start":{"line":29,"column":17},"end":{"line":29,"column":50}},"13":{"start":{"line":30,"column":4},"end":{"line":30,"column":25}},"14":{"start":{"line":31,"column":4},"end":{"line":31,"column":37}},"15":{"start":{"line":32,"column":4},"end":{"line":32,"column":18}},"16":{"start":{"line":56,"column":2},"end":{"line":61,"column":5}},"17":{"start":{"line":57,"column":19},"end":{"line":57,"column":41}},"18":{"start":{"line":58,"column":4},"end":{"line":58,"column":49}},"19":{"start":{"line":58,"column":26},"end":{"line":58,"column":48}},"20":{"start":{"line":59,"column":4},"end":{"line":59,"column":38}},"21":{"start":{"line":59,"column":28},"end":{"line":59,"column":37}},"22":{"start":{"line":60,"column":4},"end":{"line":60,"column":31}},"23":{"start":{"line":71,"column":2},"end":{"line":76,"column":5}},"24":{"start":{"line":72,"column":16},"end":{"line":72,"column":27}},"25":{"start":{"line":73,"column":4},"end":{"line":73,"column":36}},"26":{"start":{"line":73,"column":23},"end":{"line":73,"column":35}},"27":{"start":{"line":74,"column":4},"end":{"line":74,"column":35}},"28":{"start":{"line":74,"column":25},"end":{"line":74,"column":34}},"29":{"start":{"line":75,"column":4},"end":{"line":75,"column":18}},"30":{"start":{"line":89,"column":20},"end":{"line":89,"column":25}},"31":{"start":{"line":90,"column":24},"end":{"line":90,"column":33}},"32":{"start":{"line":91,"column":2},"end":{"line":102,"column":3}},"33":{"start":{"line":92,"column":4},"end":{"line":92,"column":27}},"34":{"start":{"line":93,"column":9},"end":{"line":102,"column":3}},"35":{"start":{"line":95,"column":4},"end":{"line":95,"column":34}},"36":{"start":{"line":96,"column":9},"end":{"line":102,"column":3}},"37":{"start":{"line":97,"column":4},"end":{"line":97,"column":35}},"38":{"start":{"line":98,"column":9},"end":{"line":102,"column":3}},"39":{"start":{"line":99,"column":4},"end":{"line":99,"column":28}},"40":{"start":{"line":100,"column":9},"end":{"line":102,"column":3}},"41":{"start":{"line":101,"column":4},"end":{"line":101,"column":38}},"42":{"start":{"line":103,"column":2},"end":{"line":103,"column":21}},"43":{"start":{"line":116,"column":22},"end":{"line":116,"column":38}},"44":{"start":{"line":117,"column":28},"end":{"line":117,"column":54}},"45":{"start":{"line":119,"column":14},"end":{"line":119,"column":23}},"46":{"start":{"line":120,"column":15},"end":{"line":120,"column":25}},"47":{"start":{"line":121,"column":13},"end":{"line":121,"column":27}},"48":{"start":{"line":122,"column":16},"end":{"line":122,"column":64}},"49":{"start":{"line":124,"column":2},"end":{"line":136,"column":3}},"50":{"start":{"line":125,"column":26},"end":{"line":125,"column":57}},"51":{"start":{"line":126,"column":27},"end":{"line":126,"column":59}},"52":{"start":{"line":127,"column":4},"end":{"line":133,"column":5}},"53":{"start":{"line":128,"column":6},"end":{"line":128,"column":30}},"54":{"start":{"line":129,"column":6},"end":{"line":129,"column":37}},"55":{"start":{"line":131,"column":6},"end":{"line":131,"column":37}},"56":{"start":{"line":132,"column":6},"end":{"line":132,"column":28}},"57":{"start":{"line":135,"column":4},"end":{"line":135,"column":26}},"58":{"start":{"line":138,"column":2},"end":{"line":140,"column":4}},"59":{"start":{"line":152,"column":2},"end":{"line":161,"column":3}},"60":{"start":{"line":153,"column":4},"end":{"line":153,"column":48}},"61":{"start":{"line":154,"column":4},"end":{"line":154,"column":34}},"62":{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},"63":{"start":{"line":156,"column":6},"end":{"line":156,"column":68}},"64":{"start":{"line":159,"column":4},"end":{"line":159,"column":46}},"65":{"start":{"line":160,"column":4},"end":{"line":160,"column":34}},"66":{"start":{"line":162,"column":2},"end":{"line":162,"column":23}},"67":{"start":{"line":163,"column":2},"end":{"line":163,"column":25}},"68":{"start":{"line":166,"column":2},"end":{"line":166,"column":23}},"69":{"start":{"line":177,"column":28},"end":{"line":177,"column":93}},"70":{"start":{"line":178,"column":24},"end":{"line":178,"column":57}},"71":{"start":{"line":179,"column":2},"end":{"line":182,"column":3}},"72":{"start":{"line":180,"column":4},"end":{"line":180,"column":28}},"73":{"start":{"line":181,"column":4},"end":{"line":181,"column":52}},"74":{"start":{"line":183,"column":2},"end":{"line":183,"column":56}},"75":{"start":{"line":184,"column":2},"end":{"line":184,"column":16}},"76":{"start":{"line":193,"column":2},"end":{"line":195,"column":3}},"77":{"start":{"line":194,"column":4},"end":{"line":194,"column":30}},"78":{"start":{"line":196,"column":2},"end":{"line":205,"column":71}},"79":{"start":{"line":206,"column":2},"end":{"line":206,"column":28}},"80":{"start":{"line":217,"column":2},"end":{"line":235,"column":3}},"81":{"start":{"line":218,"column":4},"end":{"line":220,"column":5}},"82":{"start":{"line":219,"column":6},"end":{"line":219,"column":62}},"83":{"start":{"line":221,"column":4},"end":{"line":221,"column":40}},"84":{"start":{"line":223,"column":4},"end":{"line":225,"column":5}},"85":{"start":{"line":224,"column":6},"end":{"line":224,"column":23}},"86":{"start":{"line":226,"column":4},"end":{"line":234,"column":5}},"87":{"start":{"line":227,"column":22},"end":{"line":227,"column":52}},"88":{"start":{"line":228,"column":6},"end":{"line":228,"column":37}},"89":{"start":{"line":230,"column":6},"end":{"line":232,"column":7}},"90":{"start":{"line":231,"column":8},"end":{"line":231,"column":26}},"91":{"start":{"line":233,"column":6},"end":{"line":233,"column":15}},"92":{"start":{"line":236,"column":17},"end":{"line":236,"column":50}},"93":{"start":{"line":237,"column":2},"end":{"line":237,"column":23}},"94":{"start":{"line":252,"column":2},"end":{"line":269,"column":3}},"95":{"start":{"line":253,"column":16},"end":{"line":253,"column":39}},"96":{"start":{"line":254,"column":21},"end":{"line":254,"column":72}},"97":{"start":{"line":255,"column":16},"end":{"line":255,"column":79}},"98":{"start":{"line":256,"column":4},"end":{"line":256,"column":47}},"99":{"start":{"line":257,"column":4},"end":{"line":257,"column":25}},"100":{"start":{"line":258,"column":4},"end":{"line":258,"column":41}},"101":{"start":{"line":259,"column":9},"end":{"line":269,"column":3}},"102":{"start":{"line":260,"column":4},"end":{"line":260,"column":67}},"103":{"start":{"line":261,"column":4},"end":{"line":261,"column":25}},"104":{"start":{"line":262,"column":4},"end":{"line":262,"column":41}},"105":{"start":{"line":267,"column":20},"end":{"line":267,"column":55}},"106":{"start":{"line":268,"column":4},"end":{"line":268,"column":73}},"107":{"start":{"line":270,"column":2},"end":{"line":270,"column":14}},"108":{"start":{"line":282,"column":2},"end":{"line":282,"column":19}},"109":{"start":{"line":284,"column":2},"end":{"line":284,"column":20}},"110":{"start":{"line":290,"column":2},"end":{"line":290,"column":96}},"111":{"start":{"line":290,"column":55},"end":{"line":290,"column":96}},"112":{"start":{"line":294,"column":23},"end":{"line":299,"column":65}},"113":{"start":{"line":300,"column":24},"end":{"line":300,"column":86}},"114":{"start":{"line":302,"column":26},"end":{"line":302,"column":68}},"115":{"start":{"line":303,"column":25},"end":{"line":303,"column":128}},"116":{"start":{"line":304,"column":2},"end":{"line":304,"column":39}},"117":{"start":{"line":305,"column":14},"end":{"line":305,"column":57}},"118":{"start":{"line":308,"column":2},"end":{"line":308,"column":74}},"119":{"start":{"line":309,"column":2},"end":{"line":309,"column":43}},"120":{"start":{"line":321,"column":2},"end":{"line":358,"column":5}},"121":{"start":{"line":322,"column":19},"end":{"line":322,"column":41}},"122":{"start":{"line":323,"column":4},"end":{"line":355,"column":6}},"123":{"start":{"line":324,"column":19},"end":{"line":324,"column":48}},"124":{"start":{"line":325,"column":6},"end":{"line":327,"column":7}},"125":{"start":{"line":326,"column":8},"end":{"line":326,"column":27}},"126":{"start":{"line":328,"column":21},"end":{"line":328,"column":36}},"127":{"start":{"line":329,"column":19},"end":{"line":329,"column":20}},"128":{"start":{"line":330,"column":6},"end":{"line":353,"column":7}},"129":{"start":{"line":331,"column":8},"end":{"line":331,"column":71}},"130":{"start":{"line":331,"column":52},"end":{"line":331,"column":71}},"131":{"start":{"line":332,"column":23},"end":{"line":332,"column":52}},"132":{"start":{"line":333,"column":8},"end":{"line":333,"column":20}},"133":{"start":{"line":334,"column":8},"end":{"line":352,"column":9}},"134":{"start":{"line":335,"column":10},"end":{"line":337,"column":11}},"135":{"start":{"line":336,"column":12},"end":{"line":336,"column":31}},"136":{"start":{"line":339,"column":25},"end":{"line":339,"column":69}},"137":{"start":{"line":340,"column":10},"end":{"line":340,"column":55}},"138":{"start":{"line":341,"column":23},"end":{"line":341,"column":53}},"139":{"start":{"line":342,"column":10},"end":{"line":342,"column":22}},"140":{"start":{"line":343,"column":10},"end":{"line":347,"column":11}},"141":{"start":{"line":343,"column":23},"end":{"line":343,"column":24}},"142":{"start":{"line":344,"column":12},"end":{"line":346,"column":13}},"143":{"start":{"line":345,"column":14},"end":{"line":345,"column":76}},"144":{"start":{"line":348,"column":15},"end":{"line":352,"column":9}},"145":{"start":{"line":349,"column":10},"end":{"line":349,"column":16}},"146":{"start":{"line":351,"column":10},"end":{"line":351,"column":50}},"147":{"start":{"line":354,"column":6},"end":{"line":354,"column":25}},"148":{"start":{"line":356,"column":4},"end":{"line":356,"column":38}},"149":{"start":{"line":356,"column":28},"end":{"line":356,"column":37}},"150":{"start":{"line":357,"column":4},"end":{"line":357,"column":35}},"151":{"start":{"line":368,"column":20},"end":{"line":368,"column":26}},"152":{"start":{"line":369,"column":21},"end":{"line":369,"column":27}},"153":{"start":{"line":370,"column":31},"end":{"line":370,"column":38}},"154":{"start":{"line":372,"column":23},"end":{"line":372,"column":108}},"155":{"start":{"line":374,"column":18},"end":{"line":374,"column":24}},"156":{"start":{"line":377,"column":2},"end":{"line":389,"column":3}},"157":{"start":{"line":378,"column":4},"end":{"line":378,"column":57}},"158":{"start":{"line":379,"column":4},"end":{"line":385,"column":5}},"159":{"start":{"line":380,"column":6},"end":{"line":380,"column":41}},"160":{"start":{"line":381,"column":6},"end":{"line":381,"column":61}},"161":{"start":{"line":383,"column":6},"end":{"line":383,"column":60}},"162":{"start":{"line":384,"column":6},"end":{"line":384,"column":42}},"163":{"start":{"line":386,"column":4},"end":{"line":386,"column":67}},"164":{"start":{"line":388,"column":4},"end":{"line":388,"column":32}},"165":{"start":{"line":391,"column":2},"end":{"line":391,"column":19}},"166":{"start":{"line":403,"column":20},"end":{"line":403,"column":26}},"167":{"start":{"line":404,"column":21},"end":{"line":404,"column":27}},"168":{"start":{"line":406,"column":27},"end":{"line":406,"column":60}},"169":{"start":{"line":409,"column":2},"end":{"line":415,"column":3}},"170":{"start":{"line":410,"column":4},"end":{"line":410,"column":29}},"171":{"start":{"line":411,"column":4},"end":{"line":411,"column":29}},"172":{"start":{"line":413,"column":4},"end":{"line":413,"column":28}},"173":{"start":{"line":414,"column":4},"end":{"line":414,"column":30}},"174":{"start":{"line":418,"column":2},"end":{"line":442,"column":3}},"175":{"start":{"line":420,"column":6},"end":{"line":420,"column":43}},"176":{"start":{"line":421,"column":6},"end":{"line":421,"column":12}},"177":{"start":{"line":423,"column":6},"end":{"line":423,"column":49}},"178":{"start":{"line":424,"column":6},"end":{"line":424,"column":12}},"179":{"start":{"line":426,"column":6},"end":{"line":426,"column":44}},"180":{"start":{"line":427,"column":6},"end":{"line":427,"column":12}},"181":{"start":{"line":429,"column":6},"end":{"line":429,"column":38}},"182":{"start":{"line":430,"column":6},"end":{"line":430,"column":12}},"183":{"start":{"line":432,"column":6},"end":{"line":432,"column":44}},"184":{"start":{"line":433,"column":6},"end":{"line":433,"column":12}},"185":{"start":{"line":435,"column":6},"end":{"line":435,"column":49}},"186":{"start":{"line":436,"column":6},"end":{"line":436,"column":12}},"187":{"start":{"line":438,"column":6},"end":{"line":438,"column":43}},"188":{"start":{"line":439,"column":6},"end":{"line":439,"column":12}},"189":{"start":{"line":441,"column":6},"end":{"line":441,"column":12}},"190":{"start":{"line":444,"column":2},"end":{"line":444,"column":45}},"191":{"start":{"line":446,"column":2},"end":{"line":446,"column":30}},"192":{"start":{"line":448,"column":2},"end":{"line":448,"column":19}}},"fnMap":{"0":{"name":"getFilefromDataUrl","decl":{"start":{"line":19,"column":16},"end":{"line":19,"column":34}},"loc":{"start":{"line":19,"column":81},"end":{"line":47,"column":1}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":20,"column":21},"end":{"line":20,"column":22}},"loc":{"start":{"line":20,"column":34},"end":{"line":46,"column":3}},"line":20},"2":{"name":"getDataUrlFromFile","decl":{"start":{"line":55,"column":16},"end":{"line":55,"column":34}},"loc":{"start":{"line":55,"column":41},"end":{"line":62,"column":1}},"line":55},"3":{"name":"(anonymous_3)","decl":{"start":{"line":56,"column":21},"end":{"line":56,"column":22}},"loc":{"start":{"line":56,"column":42},"end":{"line":61,"column":3}},"line":56},"4":{"name":"(anonymous_4)","decl":{"start":{"line":58,"column":20},"end":{"line":58,"column":21}},"loc":{"start":{"line":58,"column":26},"end":{"line":58,"column":48}},"line":58},"5":{"name":"(anonymous_5)","decl":{"start":{"line":59,"column":21},"end":{"line":59,"column":22}},"loc":{"start":{"line":59,"column":28},"end":{"line":59,"column":37}},"line":59},"6":{"name":"loadImage","decl":{"start":{"line":70,"column":16},"end":{"line":70,"column":25}},"loc":{"start":{"line":70,"column":31},"end":{"line":77,"column":1}},"line":70},"7":{"name":"(anonymous_7)","decl":{"start":{"line":71,"column":21},"end":{"line":71,"column":22}},"loc":{"start":{"line":71,"column":42},"end":{"line":76,"column":3}},"line":71},"8":{"name":"(anonymous_8)","decl":{"start":{"line":73,"column":17},"end":{"line":73,"column":18}},"loc":{"start":{"line":73,"column":23},"end":{"line":73,"column":35}},"line":73},"9":{"name":"(anonymous_9)","decl":{"start":{"line":74,"column":18},"end":{"line":74,"column":19}},"loc":{"start":{"line":74,"column":25},"end":{"line":74,"column":34}},"line":74},"10":{"name":"getBrowserName","decl":{"start":{"line":88,"column":16},"end":{"line":88,"column":30}},"loc":{"start":{"line":88,"column":33},"end":{"line":104,"column":1}},"line":88},"11":{"name":"approximateBelowMaximumCanvasSizeOfBrowser","decl":{"start":{"line":115,"column":16},"end":{"line":115,"column":58}},"loc":{"start":{"line":115,"column":82},"end":{"line":141,"column":1}},"line":115},"12":{"name":"getNewCanvasAndCtx","decl":{"start":{"line":149,"column":16},"end":{"line":149,"column":34}},"loc":{"start":{"line":149,"column":50},"end":{"line":167,"column":1}},"line":149},"13":{"name":"drawImageInCanvas","decl":{"start":{"line":176,"column":16},"end":{"line":176,"column":33}},"loc":{"start":{"line":176,"column":61},"end":{"line":185,"column":1}},"line":176},"14":{"name":"isIOS","decl":{"start":{"line":192,"column":16},"end":{"line":192,"column":21}},"loc":{"start":{"line":192,"column":24},"end":{"line":207,"column":1}},"line":192},"15":{"name":"drawFileInCanvas","decl":{"start":{"line":215,"column":22},"end":{"line":215,"column":38}},"loc":{"start":{"line":215,"column":45},"end":{"line":238,"column":1}},"line":215},"16":{"name":"canvasToFile","decl":{"start":{"line":250,"column":22},"end":{"line":250,"column":34}},"loc":{"start":{"line":250,"column":94},"end":{"line":271,"column":1}},"line":250},"17":{"name":"cleanupCanvasMemory","decl":{"start":{"line":278,"column":16},"end":{"line":278,"column":35}},"loc":{"start":{"line":278,"column":44},"end":{"line":285,"column":1}},"line":278},"18":{"name":"isAutoOrientationInBrowser","decl":{"start":{"line":289,"column":22},"end":{"line":289,"column":48}},"loc":{"start":{"line":289,"column":51},"end":{"line":310,"column":1}},"line":289},"19":{"name":"getExifOrientation","decl":{"start":{"line":320,"column":16},"end":{"line":320,"column":34}},"loc":{"start":{"line":320,"column":41},"end":{"line":359,"column":1}},"line":320},"20":{"name":"(anonymous_20)","decl":{"start":{"line":321,"column":21},"end":{"line":321,"column":22}},"loc":{"start":{"line":321,"column":42},"end":{"line":358,"column":3}},"line":321},"21":{"name":"(anonymous_21)","decl":{"start":{"line":323,"column":20},"end":{"line":323,"column":21}},"loc":{"start":{"line":323,"column":27},"end":{"line":355,"column":5}},"line":323},"22":{"name":"(anonymous_22)","decl":{"start":{"line":356,"column":21},"end":{"line":356,"column":22}},"loc":{"start":{"line":356,"column":28},"end":{"line":356,"column":37}},"line":356},"23":{"name":"handleMaxWidthOrHeight","decl":{"start":{"line":367,"column":16},"end":{"line":367,"column":38}},"loc":{"start":{"line":367,"column":56},"end":{"line":392,"column":1}},"line":367},"24":{"name":"followExifOrientation","decl":{"start":{"line":402,"column":16},"end":{"line":402,"column":37}},"loc":{"start":{"line":402,"column":63},"end":{"line":449,"column":1}},"line":402}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":21},"end":{"line":7,"column":124}},"type":"binary-expr","locations":[{"start":{"line":7,"column":21},"end":{"line":7,"column":30}},{"start":{"line":7,"column":34},"end":{"line":7,"column":48}},{"start":{"line":7,"column":52},"end":{"line":7,"column":74}},{"start":{"line":7,"column":78},"end":{"line":7,"column":124}}],"line":7},"1":{"loc":{"start":{"line":8,"column":26},"end":{"line":8,"column":153}},"type":"binary-expr","locations":[{"start":{"line":8,"column":26},"end":{"line":8,"column":35}},{"start":{"line":8,"column":41},"end":{"line":8,"column":53}},{"start":{"line":8,"column":57},"end":{"line":8,"column":103}},{"start":{"line":8,"column":109},"end":{"line":8,"column":143}},{"start":{"line":8,"column":147},"end":{"line":8,"column":151}}],"line":8},"2":{"loc":{"start":{"line":9,"column":32},"end":{"line":9,"column":177}},"type":"binary-expr","locations":[{"start":{"line":9,"column":32},"end":{"line":9,"column":41}},{"start":{"line":9,"column":47},"end":{"line":9,"column":59}},{"start":{"line":9,"column":63},"end":{"line":9,"column":115}},{"start":{"line":9,"column":121},"end":{"line":9,"column":161}},{"start":{"line":9,"column":165},"end":{"line":9,"column":175}}],"line":9},"3":{"loc":{"start":{"line":19,"column":54},"end":{"line":19,"column":79}},"type":"default-arg","locations":[{"start":{"line":19,"column":69},"end":{"line":19,"column":79}}],"line":19},"4":{"loc":{"start":{"line":91,"column":2},"end":{"line":102,"column":3}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":102,"column":3}},{"start":{"line":91,"column":2},"end":{"line":102,"column":3}}],"line":91},"5":{"loc":{"start":{"line":93,"column":9},"end":{"line":102,"column":3}},"type":"if","locations":[{"start":{"line":93,"column":9},"end":{"line":102,"column":3}},{"start":{"line":93,"column":9},"end":{"line":102,"column":3}}],"line":93},"6":{"loc":{"start":{"line":93,"column":13},"end":{"line":93,"column":128}},"type":"binary-expr","locations":[{"start":{"line":93,"column":13},"end":{"line":93,"column":46}},{"start":{"line":93,"column":50},"end":{"line":93,"column":75}},{"start":{"line":93,"column":79},"end":{"line":93,"column":128}}],"line":93},"7":{"loc":{"start":{"line":96,"column":9},"end":{"line":102,"column":3}},"type":"if","locations":[{"start":{"line":96,"column":9},"end":{"line":102,"column":3}},{"start":{"line":96,"column":9},"end":{"line":102,"column":3}}],"line":96},"8":{"loc":{"start":{"line":98,"column":9},"end":{"line":102,"column":3}},"type":"if","locations":[{"start":{"line":98,"column":9},"end":{"line":102,"column":3}},{"start":{"line":98,"column":9},"end":{"line":102,"column":3}}],"line":98},"9":{"loc":{"start":{"line":100,"column":9},"end":{"line":102,"column":3}},"type":"if","locations":[{"start":{"line":100,"column":9},"end":{"line":102,"column":3}},{"start":{"line":100,"column":9},"end":{"line":102,"column":3}}],"line":100},"10":{"loc":{"start":{"line":100,"column":13},"end":{"line":100,"column":74}},"type":"binary-expr","locations":[{"start":{"line":100,"column":13},"end":{"line":100,"column":36}},{"start":{"line":100,"column":40},"end":{"line":100,"column":74}}],"line":100},"11":{"loc":{"start":{"line":122,"column":16},"end":{"line":122,"column":64}},"type":"cond-expr","locations":[{"start":{"line":122,"column":33},"end":{"line":122,"column":47}},{"start":{"line":122,"column":50},"end":{"line":122,"column":64}}],"line":122},"12":{"loc":{"start":{"line":127,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":133,"column":5}},{"start":{"line":127,"column":4},"end":{"line":133,"column":5}}],"line":127},"13":{"loc":{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},"type":"if","locations":[{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},{"start":{"line":155,"column":4},"end":{"line":157,"column":5}}],"line":155},"14":{"loc":{"start":{"line":176,"column":39},"end":{"line":176,"column":59}},"type":"default-arg","locations":[{"start":{"line":176,"column":50},"end":{"line":176,"column":59}}],"line":176},"15":{"loc":{"start":{"line":179,"column":2},"end":{"line":182,"column":3}},"type":"if","locations":[{"start":{"line":179,"column":2},"end":{"line":182,"column":3}},{"start":{"line":179,"column":2},"end":{"line":182,"column":3}}],"line":179},"16":{"loc":{"start":{"line":179,"column":6},"end":{"line":179,"column":40}},"type":"binary-expr","locations":[{"start":{"line":179,"column":6},"end":{"line":179,"column":14}},{"start":{"line":179,"column":18},"end":{"line":179,"column":40}}],"line":179},"17":{"loc":{"start":{"line":193,"column":2},"end":{"line":195,"column":3}},"type":"if","locations":[{"start":{"line":193,"column":2},"end":{"line":195,"column":3}},{"start":{"line":193,"column":2},"end":{"line":195,"column":3}}],"line":193},"18":{"loc":{"start":{"line":196,"column":23},"end":{"line":205,"column":70}},"type":"binary-expr","locations":[{"start":{"line":196,"column":23},"end":{"line":203,"column":32}},{"start":{"line":205,"column":6},"end":{"line":205,"column":41}},{"start":{"line":205,"column":45},"end":{"line":205,"column":69}}],"line":196},"19":{"loc":{"start":{"line":218,"column":4},"end":{"line":220,"column":5}},"type":"if","locations":[{"start":{"line":218,"column":4},"end":{"line":220,"column":5}},{"start":{"line":218,"column":4},"end":{"line":220,"column":5}}],"line":218},"20":{"loc":{"start":{"line":223,"column":4},"end":{"line":225,"column":5}},"type":"if","locations":[{"start":{"line":223,"column":4},"end":{"line":225,"column":5}},{"start":{"line":223,"column":4},"end":{"line":225,"column":5}}],"line":223},"21":{"loc":{"start":{"line":230,"column":6},"end":{"line":232,"column":7}},"type":"if","locations":[{"start":{"line":230,"column":6},"end":{"line":232,"column":7}},{"start":{"line":230,"column":6},"end":{"line":232,"column":7}}],"line":230},"22":{"loc":{"start":{"line":250,"column":81},"end":{"line":250,"column":92}},"type":"default-arg","locations":[{"start":{"line":250,"column":91},"end":{"line":250,"column":92}}],"line":250},"23":{"loc":{"start":{"line":252,"column":2},"end":{"line":269,"column":3}},"type":"if","locations":[{"start":{"line":252,"column":2},"end":{"line":269,"column":3}},{"start":{"line":252,"column":2},"end":{"line":269,"column":3}}],"line":252},"24":{"loc":{"start":{"line":259,"column":9},"end":{"line":269,"column":3}},"type":"if","locations":[{"start":{"line":259,"column":9},"end":{"line":269,"column":3}},{"start":{"line":259,"column":9},"end":{"line":269,"column":3}}],"line":259},"25":{"loc":{"start":{"line":259,"column":13},"end":{"line":259,"column":87}},"type":"binary-expr","locations":[{"start":{"line":259,"column":13},"end":{"line":259,"column":50}},{"start":{"line":259,"column":54},"end":{"line":259,"column":87}}],"line":259},"26":{"loc":{"start":{"line":290,"column":2},"end":{"line":290,"column":96}},"type":"if","locations":[{"start":{"line":290,"column":2},"end":{"line":290,"column":96}},{"start":{"line":290,"column":2},"end":{"line":290,"column":96}}],"line":290},"27":{"loc":{"start":{"line":308,"column":38},"end":{"line":308,"column":73}},"type":"binary-expr","locations":[{"start":{"line":308,"column":38},"end":{"line":308,"column":53}},{"start":{"line":308,"column":57},"end":{"line":308,"column":73}}],"line":308},"28":{"loc":{"start":{"line":325,"column":6},"end":{"line":327,"column":7}},"type":"if","locations":[{"start":{"line":325,"column":6},"end":{"line":327,"column":7}},{"start":{"line":325,"column":6},"end":{"line":327,"column":7}}],"line":325},"29":{"loc":{"start":{"line":331,"column":8},"end":{"line":331,"column":71}},"type":"if","locations":[{"start":{"line":331,"column":8},"end":{"line":331,"column":71}},{"start":{"line":331,"column":8},"end":{"line":331,"column":71}}],"line":331},"30":{"loc":{"start":{"line":334,"column":8},"end":{"line":352,"column":9}},"type":"if","locations":[{"start":{"line":334,"column":8},"end":{"line":352,"column":9}},{"start":{"line":334,"column":8},"end":{"line":352,"column":9}}],"line":334},"31":{"loc":{"start":{"line":335,"column":10},"end":{"line":337,"column":11}},"type":"if","locations":[{"start":{"line":335,"column":10},"end":{"line":337,"column":11}},{"start":{"line":335,"column":10},"end":{"line":337,"column":11}}],"line":335},"32":{"loc":{"start":{"line":344,"column":12},"end":{"line":346,"column":13}},"type":"if","locations":[{"start":{"line":344,"column":12},"end":{"line":346,"column":13}},{"start":{"line":344,"column":12},"end":{"line":346,"column":13}}],"line":344},"33":{"loc":{"start":{"line":348,"column":15},"end":{"line":352,"column":9}},"type":"if","locations":[{"start":{"line":348,"column":15},"end":{"line":352,"column":9}},{"start":{"line":348,"column":15},"end":{"line":352,"column":9}}],"line":348},"34":{"loc":{"start":{"line":372,"column":23},"end":{"line":372,"column":108}},"type":"binary-expr","locations":[{"start":{"line":372,"column":23},"end":{"line":372,"column":49}},{"start":{"line":372,"column":54},"end":{"line":372,"column":78}},{"start":{"line":372,"column":82},"end":{"line":372,"column":107}}],"line":372},"35":{"loc":{"start":{"line":377,"column":2},"end":{"line":389,"column":3}},"type":"if","locations":[{"start":{"line":377,"column":2},"end":{"line":389,"column":3}},{"start":{"line":377,"column":2},"end":{"line":389,"column":3}}],"line":377},"36":{"loc":{"start":{"line":379,"column":4},"end":{"line":385,"column":5}},"type":"if","locations":[{"start":{"line":379,"column":4},"end":{"line":385,"column":5}},{"start":{"line":379,"column":4},"end":{"line":385,"column":5}}],"line":379},"37":{"loc":{"start":{"line":409,"column":2},"end":{"line":415,"column":3}},"type":"if","locations":[{"start":{"line":409,"column":2},"end":{"line":415,"column":3}},{"start":{"line":409,"column":2},"end":{"line":415,"column":3}}],"line":409},"38":{"loc":{"start":{"line":409,"column":6},"end":{"line":409,"column":48}},"type":"binary-expr","locations":[{"start":{"line":409,"column":6},"end":{"line":409,"column":25}},{"start":{"line":409,"column":29},"end":{"line":409,"column":48}}],"line":409},"39":{"loc":{"start":{"line":418,"column":2},"end":{"line":442,"column":3}},"type":"switch","locations":[{"start":{"line":419,"column":4},"end":{"line":421,"column":12}},{"start":{"line":422,"column":4},"end":{"line":424,"column":12}},{"start":{"line":425,"column":4},"end":{"line":427,"column":12}},{"start":{"line":428,"column":4},"end":{"line":430,"column":12}},{"start":{"line":431,"column":4},"end":{"line":433,"column":12}},{"start":{"line":434,"column":4},"end":{"line":436,"column":12}},{"start":{"line":437,"column":4},"end":{"line":439,"column":12}},{"start":{"line":440,"column":4},"end":{"line":441,"column":12}}],"line":418}},"s":{"0":1,"1":1,"2":1,"3":1,"4":9,"5":9,"6":9,"7":9,"8":9,"9":9,"10":9,"11":11172561,"12":9,"13":9,"14":9,"15":9,"16":15,"17":15,"18":15,"19":15,"20":15,"21":0,"22":15,"23":15,"24":15,"25":15,"26":15,"27":15,"28":0,"29":15,"30":14,"31":14,"32":14,"33":0,"34":14,"35":0,"36":14,"37":0,"38":14,"39":0,"40":14,"41":0,"42":14,"43":14,"44":14,"45":14,"46":14,"47":14,"48":14,"49":14,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":14,"59":26,"60":26,"61":0,"62":0,"63":0,"64":26,"65":26,"66":26,"67":26,"68":26,"69":14,"70":14,"71":14,"72":8,"73":8,"74":14,"75":14,"76":13,"77":12,"78":1,"79":1,"80":13,"81":13,"82":0,"83":13,"84":13,"85":0,"86":13,"87":13,"88":13,"89":0,"90":0,"91":0,"92":13,"93":13,"94":9,"95":3,"96":3,"97":3,"98":3,"99":3,"100":3,"101":6,"102":0,"103":0,"104":0,"105":6,"106":6,"107":9,"108":18,"109":18,"110":6,"111":5,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":1,"149":0,"150":1,"151":6,"152":6,"153":6,"154":6,"155":6,"156":6,"157":4,"158":4,"159":2,"160":2,"161":2,"162":2,"163":4,"164":4,"165":6,"166":6,"167":6,"168":6,"169":6,"170":0,"171":0,"172":6,"173":6,"174":6,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":6,"190":6,"191":6,"192":6},"f":{"0":9,"1":9,"2":15,"3":15,"4":15,"5":0,"6":15,"7":15,"8":15,"9":0,"10":14,"11":14,"12":26,"13":14,"14":13,"15":13,"16":9,"17":18,"18":6,"19":1,"20":1,"21":1,"22":0,"23":6,"24":6},"b":{"0":[1,1,0,0],"1":[1,1,0,1,1],"2":[1,1,0,1,1],"3":[2],"4":[0,14],"5":[0,14],"6":[14,0,0],"7":[0,14],"8":[0,14],"9":[0,14],"10":[14,14],"11":[9,5],"12":[0,0],"13":[0,0],"14":[1],"15":[8,6],"16":[14,13],"17":[12,1],"18":[1,1,0],"19":[0,13],"20":[0,13],"21":[0,0],"22":[1],"23":[3,6],"24":[0,6],"25":[6,0],"26":[5,1],"27":[1,0],"28":[1,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[6,4,0],"35":[4,2],"36":[2,2],"37":[0,6],"38":[6,0],"39":[0,0,0,0,0,0,0,6]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f99226677772ee9b7d6cc566967835d56f3437d3","contentHash":"62fb2ae2ff354524e5704c232469bc85c432c0eb5ba40cbcc36e65306b64772e"} -,"D:\\Projects\\browser-image-compression\\lib\\config\\max-canvas-size.js": {"path":"D:\\Projects\\browser-image-compression\\lib\\config\\max-canvas-size.js","statementMap":{},"fnMap":{},"branchMap":{},"s":{},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0951626fe107b8fcc2e342a45b0b5c806ef949a9","contentHash":"ad2e67541ef866f3e1b3fcc4a9203abaf621463ec126bbed85d9e0afe50c637b"} +,"D:\\Projects\\browser-image-compression\\lib\\utils.js": {"path":"D:\\Projects\\browser-image-compression\\lib\\utils.js","statementMap":{"0":{"start":{"line":5,"column":18},"end":{"line":5,"column":47}},"1":{"start":{"line":8,"column":21},"end":{"line":8,"column":124}},"2":{"start":{"line":9,"column":26},"end":{"line":9,"column":153}},"3":{"start":{"line":10,"column":32},"end":{"line":10,"column":177}},"4":{"start":{"line":21,"column":2},"end":{"line":47,"column":5}},"5":{"start":{"line":22,"column":16},"end":{"line":22,"column":34}},"6":{"start":{"line":23,"column":17},"end":{"line":23,"column":43}},"7":{"start":{"line":24,"column":17},"end":{"line":24,"column":40}},"8":{"start":{"line":25,"column":12},"end":{"line":25,"column":23}},"9":{"start":{"line":26,"column":18},"end":{"line":26,"column":35}},"10":{"start":{"line":27,"column":4},"end":{"line":29,"column":5}},"11":{"start":{"line":28,"column":6},"end":{"line":28,"column":36}},"12":{"start":{"line":30,"column":17},"end":{"line":30,"column":50}},"13":{"start":{"line":31,"column":4},"end":{"line":31,"column":25}},"14":{"start":{"line":32,"column":4},"end":{"line":32,"column":37}},"15":{"start":{"line":33,"column":4},"end":{"line":33,"column":18}},"16":{"start":{"line":57,"column":2},"end":{"line":62,"column":5}},"17":{"start":{"line":58,"column":19},"end":{"line":58,"column":41}},"18":{"start":{"line":59,"column":4},"end":{"line":59,"column":49}},"19":{"start":{"line":59,"column":26},"end":{"line":59,"column":48}},"20":{"start":{"line":60,"column":4},"end":{"line":60,"column":38}},"21":{"start":{"line":60,"column":28},"end":{"line":60,"column":37}},"22":{"start":{"line":61,"column":4},"end":{"line":61,"column":31}},"23":{"start":{"line":72,"column":2},"end":{"line":77,"column":5}},"24":{"start":{"line":73,"column":16},"end":{"line":73,"column":27}},"25":{"start":{"line":74,"column":4},"end":{"line":74,"column":36}},"26":{"start":{"line":74,"column":23},"end":{"line":74,"column":35}},"27":{"start":{"line":75,"column":4},"end":{"line":75,"column":35}},"28":{"start":{"line":75,"column":25},"end":{"line":75,"column":34}},"29":{"start":{"line":76,"column":4},"end":{"line":76,"column":18}},"30":{"start":{"line":90,"column":2},"end":{"line":92,"column":3}},"31":{"start":{"line":91,"column":4},"end":{"line":91,"column":39}},"32":{"start":{"line":93,"column":20},"end":{"line":93,"column":36}},"33":{"start":{"line":94,"column":24},"end":{"line":94,"column":33}},"34":{"start":{"line":95,"column":2},"end":{"line":106,"column":3}},"35":{"start":{"line":96,"column":4},"end":{"line":96,"column":38}},"36":{"start":{"line":97,"column":9},"end":{"line":106,"column":3}},"37":{"start":{"line":99,"column":4},"end":{"line":99,"column":45}},"38":{"start":{"line":100,"column":9},"end":{"line":106,"column":3}},"39":{"start":{"line":101,"column":4},"end":{"line":101,"column":46}},"40":{"start":{"line":102,"column":9},"end":{"line":106,"column":3}},"41":{"start":{"line":103,"column":4},"end":{"line":103,"column":39}},"42":{"start":{"line":104,"column":9},"end":{"line":106,"column":3}},"43":{"start":{"line":105,"column":4},"end":{"line":105,"column":34}},"44":{"start":{"line":107,"column":2},"end":{"line":107,"column":44}},"45":{"start":{"line":108,"column":2},"end":{"line":108,"column":37}},"46":{"start":{"line":121,"column":22},"end":{"line":121,"column":38}},"47":{"start":{"line":122,"column":28},"end":{"line":122,"column":56}},"48":{"start":{"line":124,"column":14},"end":{"line":124,"column":23}},"49":{"start":{"line":125,"column":15},"end":{"line":125,"column":25}},"50":{"start":{"line":126,"column":13},"end":{"line":126,"column":27}},"51":{"start":{"line":127,"column":16},"end":{"line":127,"column":64}},"52":{"start":{"line":129,"column":2},"end":{"line":141,"column":3}},"53":{"start":{"line":130,"column":26},"end":{"line":130,"column":57}},"54":{"start":{"line":131,"column":27},"end":{"line":131,"column":59}},"55":{"start":{"line":132,"column":4},"end":{"line":138,"column":5}},"56":{"start":{"line":133,"column":6},"end":{"line":133,"column":30}},"57":{"start":{"line":134,"column":6},"end":{"line":134,"column":37}},"58":{"start":{"line":136,"column":6},"end":{"line":136,"column":37}},"59":{"start":{"line":137,"column":6},"end":{"line":137,"column":28}},"60":{"start":{"line":140,"column":4},"end":{"line":140,"column":26}},"61":{"start":{"line":143,"column":2},"end":{"line":145,"column":4}},"62":{"start":{"line":157,"column":2},"end":{"line":166,"column":3}},"63":{"start":{"line":158,"column":4},"end":{"line":158,"column":48}},"64":{"start":{"line":159,"column":4},"end":{"line":159,"column":34}},"65":{"start":{"line":160,"column":4},"end":{"line":162,"column":5}},"66":{"start":{"line":161,"column":6},"end":{"line":161,"column":68}},"67":{"start":{"line":164,"column":4},"end":{"line":164,"column":46}},"68":{"start":{"line":165,"column":4},"end":{"line":165,"column":34}},"69":{"start":{"line":167,"column":2},"end":{"line":167,"column":23}},"70":{"start":{"line":168,"column":2},"end":{"line":168,"column":25}},"71":{"start":{"line":171,"column":2},"end":{"line":171,"column":23}},"72":{"start":{"line":182,"column":28},"end":{"line":182,"column":93}},"73":{"start":{"line":183,"column":24},"end":{"line":183,"column":57}},"74":{"start":{"line":184,"column":2},"end":{"line":187,"column":3}},"75":{"start":{"line":185,"column":4},"end":{"line":185,"column":28}},"76":{"start":{"line":186,"column":4},"end":{"line":186,"column":52}},"77":{"start":{"line":188,"column":2},"end":{"line":188,"column":56}},"78":{"start":{"line":189,"column":2},"end":{"line":189,"column":16}},"79":{"start":{"line":198,"column":2},"end":{"line":200,"column":3}},"80":{"start":{"line":199,"column":4},"end":{"line":199,"column":30}},"81":{"start":{"line":201,"column":2},"end":{"line":210,"column":71}},"82":{"start":{"line":211,"column":2},"end":{"line":211,"column":28}},"83":{"start":{"line":222,"column":2},"end":{"line":240,"column":3}},"84":{"start":{"line":223,"column":4},"end":{"line":225,"column":5}},"85":{"start":{"line":224,"column":6},"end":{"line":224,"column":66}},"86":{"start":{"line":226,"column":4},"end":{"line":226,"column":40}},"87":{"start":{"line":228,"column":4},"end":{"line":230,"column":5}},"88":{"start":{"line":229,"column":6},"end":{"line":229,"column":23}},"89":{"start":{"line":231,"column":4},"end":{"line":239,"column":5}},"90":{"start":{"line":232,"column":22},"end":{"line":232,"column":52}},"91":{"start":{"line":233,"column":6},"end":{"line":233,"column":37}},"92":{"start":{"line":235,"column":6},"end":{"line":237,"column":7}},"93":{"start":{"line":236,"column":8},"end":{"line":236,"column":26}},"94":{"start":{"line":238,"column":6},"end":{"line":238,"column":15}},"95":{"start":{"line":241,"column":17},"end":{"line":241,"column":70}},"96":{"start":{"line":242,"column":2},"end":{"line":242,"column":23}},"97":{"start":{"line":257,"column":2},"end":{"line":274,"column":3}},"98":{"start":{"line":258,"column":16},"end":{"line":258,"column":39}},"99":{"start":{"line":259,"column":21},"end":{"line":259,"column":72}},"100":{"start":{"line":260,"column":16},"end":{"line":260,"column":79}},"101":{"start":{"line":261,"column":4},"end":{"line":261,"column":47}},"102":{"start":{"line":262,"column":4},"end":{"line":262,"column":25}},"103":{"start":{"line":263,"column":4},"end":{"line":263,"column":41}},"104":{"start":{"line":264,"column":9},"end":{"line":274,"column":3}},"105":{"start":{"line":265,"column":4},"end":{"line":265,"column":67}},"106":{"start":{"line":266,"column":4},"end":{"line":266,"column":25}},"107":{"start":{"line":267,"column":4},"end":{"line":267,"column":41}},"108":{"start":{"line":272,"column":20},"end":{"line":272,"column":55}},"109":{"start":{"line":273,"column":4},"end":{"line":273,"column":73}},"110":{"start":{"line":275,"column":2},"end":{"line":275,"column":14}},"111":{"start":{"line":287,"column":2},"end":{"line":287,"column":19}},"112":{"start":{"line":289,"column":2},"end":{"line":289,"column":20}},"113":{"start":{"line":295,"column":2},"end":{"line":295,"column":108}},"114":{"start":{"line":295,"column":61},"end":{"line":295,"column":108}},"115":{"start":{"line":299,"column":23},"end":{"line":304,"column":65}},"116":{"start":{"line":305,"column":24},"end":{"line":305,"column":86}},"117":{"start":{"line":307,"column":26},"end":{"line":307,"column":68}},"118":{"start":{"line":308,"column":25},"end":{"line":308,"column":128}},"119":{"start":{"line":309,"column":2},"end":{"line":309,"column":39}},"120":{"start":{"line":310,"column":14},"end":{"line":310,"column":57}},"121":{"start":{"line":313,"column":2},"end":{"line":313,"column":80}},"122":{"start":{"line":314,"column":2},"end":{"line":314,"column":49}},"123":{"start":{"line":326,"column":2},"end":{"line":363,"column":5}},"124":{"start":{"line":327,"column":19},"end":{"line":327,"column":41}},"125":{"start":{"line":328,"column":4},"end":{"line":360,"column":6}},"126":{"start":{"line":329,"column":19},"end":{"line":329,"column":48}},"127":{"start":{"line":330,"column":6},"end":{"line":332,"column":7}},"128":{"start":{"line":331,"column":8},"end":{"line":331,"column":27}},"129":{"start":{"line":333,"column":21},"end":{"line":333,"column":36}},"130":{"start":{"line":334,"column":19},"end":{"line":334,"column":20}},"131":{"start":{"line":335,"column":6},"end":{"line":358,"column":7}},"132":{"start":{"line":336,"column":8},"end":{"line":336,"column":71}},"133":{"start":{"line":336,"column":52},"end":{"line":336,"column":71}},"134":{"start":{"line":337,"column":23},"end":{"line":337,"column":52}},"135":{"start":{"line":338,"column":8},"end":{"line":338,"column":20}},"136":{"start":{"line":339,"column":8},"end":{"line":357,"column":9}},"137":{"start":{"line":340,"column":10},"end":{"line":342,"column":11}},"138":{"start":{"line":341,"column":12},"end":{"line":341,"column":31}},"139":{"start":{"line":344,"column":25},"end":{"line":344,"column":69}},"140":{"start":{"line":345,"column":10},"end":{"line":345,"column":55}},"141":{"start":{"line":346,"column":23},"end":{"line":346,"column":53}},"142":{"start":{"line":347,"column":10},"end":{"line":347,"column":22}},"143":{"start":{"line":348,"column":10},"end":{"line":352,"column":11}},"144":{"start":{"line":348,"column":23},"end":{"line":348,"column":24}},"145":{"start":{"line":349,"column":12},"end":{"line":351,"column":13}},"146":{"start":{"line":350,"column":14},"end":{"line":350,"column":76}},"147":{"start":{"line":353,"column":15},"end":{"line":357,"column":9}},"148":{"start":{"line":354,"column":10},"end":{"line":354,"column":16}},"149":{"start":{"line":356,"column":10},"end":{"line":356,"column":50}},"150":{"start":{"line":359,"column":6},"end":{"line":359,"column":25}},"151":{"start":{"line":361,"column":4},"end":{"line":361,"column":38}},"152":{"start":{"line":361,"column":28},"end":{"line":361,"column":37}},"153":{"start":{"line":362,"column":4},"end":{"line":362,"column":35}},"154":{"start":{"line":373,"column":20},"end":{"line":373,"column":26}},"155":{"start":{"line":374,"column":21},"end":{"line":374,"column":27}},"156":{"start":{"line":375,"column":31},"end":{"line":375,"column":38}},"157":{"start":{"line":377,"column":23},"end":{"line":377,"column":108}},"158":{"start":{"line":379,"column":18},"end":{"line":379,"column":24}},"159":{"start":{"line":382,"column":2},"end":{"line":394,"column":3}},"160":{"start":{"line":383,"column":4},"end":{"line":383,"column":57}},"161":{"start":{"line":384,"column":4},"end":{"line":390,"column":5}},"162":{"start":{"line":385,"column":6},"end":{"line":385,"column":41}},"163":{"start":{"line":386,"column":6},"end":{"line":386,"column":61}},"164":{"start":{"line":388,"column":6},"end":{"line":388,"column":60}},"165":{"start":{"line":389,"column":6},"end":{"line":389,"column":42}},"166":{"start":{"line":391,"column":4},"end":{"line":391,"column":67}},"167":{"start":{"line":393,"column":4},"end":{"line":393,"column":32}},"168":{"start":{"line":396,"column":2},"end":{"line":396,"column":19}},"169":{"start":{"line":408,"column":20},"end":{"line":408,"column":26}},"170":{"start":{"line":409,"column":21},"end":{"line":409,"column":27}},"171":{"start":{"line":411,"column":27},"end":{"line":411,"column":60}},"172":{"start":{"line":414,"column":2},"end":{"line":420,"column":3}},"173":{"start":{"line":415,"column":4},"end":{"line":415,"column":29}},"174":{"start":{"line":416,"column":4},"end":{"line":416,"column":29}},"175":{"start":{"line":418,"column":4},"end":{"line":418,"column":28}},"176":{"start":{"line":419,"column":4},"end":{"line":419,"column":30}},"177":{"start":{"line":423,"column":2},"end":{"line":447,"column":3}},"178":{"start":{"line":425,"column":6},"end":{"line":425,"column":43}},"179":{"start":{"line":426,"column":6},"end":{"line":426,"column":12}},"180":{"start":{"line":428,"column":6},"end":{"line":428,"column":49}},"181":{"start":{"line":429,"column":6},"end":{"line":429,"column":12}},"182":{"start":{"line":431,"column":6},"end":{"line":431,"column":44}},"183":{"start":{"line":432,"column":6},"end":{"line":432,"column":12}},"184":{"start":{"line":434,"column":6},"end":{"line":434,"column":38}},"185":{"start":{"line":435,"column":6},"end":{"line":435,"column":12}},"186":{"start":{"line":437,"column":6},"end":{"line":437,"column":44}},"187":{"start":{"line":438,"column":6},"end":{"line":438,"column":12}},"188":{"start":{"line":440,"column":6},"end":{"line":440,"column":49}},"189":{"start":{"line":441,"column":6},"end":{"line":441,"column":12}},"190":{"start":{"line":443,"column":6},"end":{"line":443,"column":43}},"191":{"start":{"line":444,"column":6},"end":{"line":444,"column":12}},"192":{"start":{"line":446,"column":6},"end":{"line":446,"column":12}},"193":{"start":{"line":449,"column":2},"end":{"line":449,"column":45}},"194":{"start":{"line":451,"column":2},"end":{"line":451,"column":30}},"195":{"start":{"line":453,"column":2},"end":{"line":453,"column":19}}},"fnMap":{"0":{"name":"getFilefromDataUrl","decl":{"start":{"line":20,"column":16},"end":{"line":20,"column":34}},"loc":{"start":{"line":20,"column":81},"end":{"line":48,"column":1}},"line":20},"1":{"name":"(anonymous_1)","decl":{"start":{"line":21,"column":21},"end":{"line":21,"column":22}},"loc":{"start":{"line":21,"column":34},"end":{"line":47,"column":3}},"line":21},"2":{"name":"getDataUrlFromFile","decl":{"start":{"line":56,"column":16},"end":{"line":56,"column":34}},"loc":{"start":{"line":56,"column":41},"end":{"line":63,"column":1}},"line":56},"3":{"name":"(anonymous_3)","decl":{"start":{"line":57,"column":21},"end":{"line":57,"column":22}},"loc":{"start":{"line":57,"column":42},"end":{"line":62,"column":3}},"line":57},"4":{"name":"(anonymous_4)","decl":{"start":{"line":59,"column":20},"end":{"line":59,"column":21}},"loc":{"start":{"line":59,"column":26},"end":{"line":59,"column":48}},"line":59},"5":{"name":"(anonymous_5)","decl":{"start":{"line":60,"column":21},"end":{"line":60,"column":22}},"loc":{"start":{"line":60,"column":28},"end":{"line":60,"column":37}},"line":60},"6":{"name":"loadImage","decl":{"start":{"line":71,"column":16},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":31},"end":{"line":78,"column":1}},"line":71},"7":{"name":"(anonymous_7)","decl":{"start":{"line":72,"column":21},"end":{"line":72,"column":22}},"loc":{"start":{"line":72,"column":42},"end":{"line":77,"column":3}},"line":72},"8":{"name":"(anonymous_8)","decl":{"start":{"line":74,"column":17},"end":{"line":74,"column":18}},"loc":{"start":{"line":74,"column":23},"end":{"line":74,"column":35}},"line":74},"9":{"name":"(anonymous_9)","decl":{"start":{"line":75,"column":18},"end":{"line":75,"column":19}},"loc":{"start":{"line":75,"column":25},"end":{"line":75,"column":34}},"line":75},"10":{"name":"getBrowserName","decl":{"start":{"line":89,"column":16},"end":{"line":89,"column":30}},"loc":{"start":{"line":89,"column":33},"end":{"line":109,"column":1}},"line":89},"11":{"name":"approximateBelowMaximumCanvasSizeOfBrowser","decl":{"start":{"line":120,"column":16},"end":{"line":120,"column":58}},"loc":{"start":{"line":120,"column":82},"end":{"line":146,"column":1}},"line":120},"12":{"name":"getNewCanvasAndCtx","decl":{"start":{"line":154,"column":16},"end":{"line":154,"column":34}},"loc":{"start":{"line":154,"column":50},"end":{"line":172,"column":1}},"line":154},"13":{"name":"drawImageInCanvas","decl":{"start":{"line":181,"column":16},"end":{"line":181,"column":33}},"loc":{"start":{"line":181,"column":61},"end":{"line":190,"column":1}},"line":181},"14":{"name":"isIOS","decl":{"start":{"line":197,"column":16},"end":{"line":197,"column":21}},"loc":{"start":{"line":197,"column":24},"end":{"line":212,"column":1}},"line":197},"15":{"name":"drawFileInCanvas","decl":{"start":{"line":220,"column":22},"end":{"line":220,"column":38}},"loc":{"start":{"line":220,"column":59},"end":{"line":243,"column":1}},"line":220},"16":{"name":"canvasToFile","decl":{"start":{"line":255,"column":22},"end":{"line":255,"column":34}},"loc":{"start":{"line":255,"column":94},"end":{"line":276,"column":1}},"line":255},"17":{"name":"cleanupCanvasMemory","decl":{"start":{"line":283,"column":16},"end":{"line":283,"column":35}},"loc":{"start":{"line":283,"column":44},"end":{"line":290,"column":1}},"line":283},"18":{"name":"isAutoOrientationInBrowser","decl":{"start":{"line":294,"column":22},"end":{"line":294,"column":48}},"loc":{"start":{"line":294,"column":51},"end":{"line":315,"column":1}},"line":294},"19":{"name":"getExifOrientation","decl":{"start":{"line":325,"column":16},"end":{"line":325,"column":34}},"loc":{"start":{"line":325,"column":41},"end":{"line":364,"column":1}},"line":325},"20":{"name":"(anonymous_20)","decl":{"start":{"line":326,"column":21},"end":{"line":326,"column":22}},"loc":{"start":{"line":326,"column":42},"end":{"line":363,"column":3}},"line":326},"21":{"name":"(anonymous_21)","decl":{"start":{"line":328,"column":20},"end":{"line":328,"column":21}},"loc":{"start":{"line":328,"column":27},"end":{"line":360,"column":5}},"line":328},"22":{"name":"(anonymous_22)","decl":{"start":{"line":361,"column":21},"end":{"line":361,"column":22}},"loc":{"start":{"line":361,"column":28},"end":{"line":361,"column":37}},"line":361},"23":{"name":"handleMaxWidthOrHeight","decl":{"start":{"line":372,"column":16},"end":{"line":372,"column":38}},"loc":{"start":{"line":372,"column":56},"end":{"line":397,"column":1}},"line":372},"24":{"name":"followExifOrientation","decl":{"start":{"line":407,"column":16},"end":{"line":407,"column":37}},"loc":{"start":{"line":407,"column":63},"end":{"line":454,"column":1}},"line":407}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":21},"end":{"line":8,"column":124}},"type":"binary-expr","locations":[{"start":{"line":8,"column":21},"end":{"line":8,"column":30}},{"start":{"line":8,"column":34},"end":{"line":8,"column":48}},{"start":{"line":8,"column":52},"end":{"line":8,"column":74}},{"start":{"line":8,"column":78},"end":{"line":8,"column":124}}],"line":8},"1":{"loc":{"start":{"line":9,"column":26},"end":{"line":9,"column":153}},"type":"binary-expr","locations":[{"start":{"line":9,"column":26},"end":{"line":9,"column":35}},{"start":{"line":9,"column":41},"end":{"line":9,"column":53}},{"start":{"line":9,"column":57},"end":{"line":9,"column":103}},{"start":{"line":9,"column":109},"end":{"line":9,"column":143}},{"start":{"line":9,"column":147},"end":{"line":9,"column":151}}],"line":9},"2":{"loc":{"start":{"line":10,"column":32},"end":{"line":10,"column":177}},"type":"binary-expr","locations":[{"start":{"line":10,"column":32},"end":{"line":10,"column":41}},{"start":{"line":10,"column":47},"end":{"line":10,"column":59}},{"start":{"line":10,"column":63},"end":{"line":10,"column":115}},{"start":{"line":10,"column":121},"end":{"line":10,"column":161}},{"start":{"line":10,"column":165},"end":{"line":10,"column":175}}],"line":10},"3":{"loc":{"start":{"line":20,"column":54},"end":{"line":20,"column":79}},"type":"default-arg","locations":[{"start":{"line":20,"column":69},"end":{"line":20,"column":79}}],"line":20},"4":{"loc":{"start":{"line":90,"column":2},"end":{"line":92,"column":3}},"type":"if","locations":[{"start":{"line":90,"column":2},"end":{"line":92,"column":3}},{"start":{"line":90,"column":2},"end":{"line":92,"column":3}}],"line":90},"5":{"loc":{"start":{"line":95,"column":2},"end":{"line":106,"column":3}},"type":"if","locations":[{"start":{"line":95,"column":2},"end":{"line":106,"column":3}},{"start":{"line":95,"column":2},"end":{"line":106,"column":3}}],"line":95},"6":{"loc":{"start":{"line":97,"column":9},"end":{"line":106,"column":3}},"type":"if","locations":[{"start":{"line":97,"column":9},"end":{"line":106,"column":3}},{"start":{"line":97,"column":9},"end":{"line":106,"column":3}}],"line":97},"7":{"loc":{"start":{"line":97,"column":13},"end":{"line":97,"column":128}},"type":"binary-expr","locations":[{"start":{"line":97,"column":13},"end":{"line":97,"column":46}},{"start":{"line":97,"column":50},"end":{"line":97,"column":75}},{"start":{"line":97,"column":79},"end":{"line":97,"column":128}}],"line":97},"8":{"loc":{"start":{"line":100,"column":9},"end":{"line":106,"column":3}},"type":"if","locations":[{"start":{"line":100,"column":9},"end":{"line":106,"column":3}},{"start":{"line":100,"column":9},"end":{"line":106,"column":3}}],"line":100},"9":{"loc":{"start":{"line":102,"column":9},"end":{"line":106,"column":3}},"type":"if","locations":[{"start":{"line":102,"column":9},"end":{"line":106,"column":3}},{"start":{"line":102,"column":9},"end":{"line":106,"column":3}}],"line":102},"10":{"loc":{"start":{"line":104,"column":9},"end":{"line":106,"column":3}},"type":"if","locations":[{"start":{"line":104,"column":9},"end":{"line":106,"column":3}},{"start":{"line":104,"column":9},"end":{"line":106,"column":3}}],"line":104},"11":{"loc":{"start":{"line":104,"column":13},"end":{"line":104,"column":74}},"type":"binary-expr","locations":[{"start":{"line":104,"column":13},"end":{"line":104,"column":36}},{"start":{"line":104,"column":40},"end":{"line":104,"column":74}}],"line":104},"12":{"loc":{"start":{"line":127,"column":16},"end":{"line":127,"column":64}},"type":"cond-expr","locations":[{"start":{"line":127,"column":33},"end":{"line":127,"column":47}},{"start":{"line":127,"column":50},"end":{"line":127,"column":64}}],"line":127},"13":{"loc":{"start":{"line":132,"column":4},"end":{"line":138,"column":5}},"type":"if","locations":[{"start":{"line":132,"column":4},"end":{"line":138,"column":5}},{"start":{"line":132,"column":4},"end":{"line":138,"column":5}}],"line":132},"14":{"loc":{"start":{"line":160,"column":4},"end":{"line":162,"column":5}},"type":"if","locations":[{"start":{"line":160,"column":4},"end":{"line":162,"column":5}},{"start":{"line":160,"column":4},"end":{"line":162,"column":5}}],"line":160},"15":{"loc":{"start":{"line":181,"column":39},"end":{"line":181,"column":59}},"type":"default-arg","locations":[{"start":{"line":181,"column":50},"end":{"line":181,"column":59}}],"line":181},"16":{"loc":{"start":{"line":184,"column":2},"end":{"line":187,"column":3}},"type":"if","locations":[{"start":{"line":184,"column":2},"end":{"line":187,"column":3}},{"start":{"line":184,"column":2},"end":{"line":187,"column":3}}],"line":184},"17":{"loc":{"start":{"line":184,"column":6},"end":{"line":184,"column":40}},"type":"binary-expr","locations":[{"start":{"line":184,"column":6},"end":{"line":184,"column":14}},{"start":{"line":184,"column":18},"end":{"line":184,"column":40}}],"line":184},"18":{"loc":{"start":{"line":198,"column":2},"end":{"line":200,"column":3}},"type":"if","locations":[{"start":{"line":198,"column":2},"end":{"line":200,"column":3}},{"start":{"line":198,"column":2},"end":{"line":200,"column":3}}],"line":198},"19":{"loc":{"start":{"line":201,"column":23},"end":{"line":210,"column":70}},"type":"binary-expr","locations":[{"start":{"line":201,"column":23},"end":{"line":208,"column":32}},{"start":{"line":210,"column":6},"end":{"line":210,"column":41}},{"start":{"line":210,"column":45},"end":{"line":210,"column":69}}],"line":201},"20":{"loc":{"start":{"line":220,"column":45},"end":{"line":220,"column":57}},"type":"default-arg","locations":[{"start":{"line":220,"column":55},"end":{"line":220,"column":57}}],"line":220},"21":{"loc":{"start":{"line":223,"column":4},"end":{"line":225,"column":5}},"type":"if","locations":[{"start":{"line":223,"column":4},"end":{"line":225,"column":5}},{"start":{"line":223,"column":4},"end":{"line":225,"column":5}}],"line":223},"22":{"loc":{"start":{"line":223,"column":8},"end":{"line":223,"column":103}},"type":"binary-expr","locations":[{"start":{"line":223,"column":8},"end":{"line":223,"column":15}},{"start":{"line":223,"column":19},"end":{"line":223,"column":103}}],"line":223},"23":{"loc":{"start":{"line":228,"column":4},"end":{"line":230,"column":5}},"type":"if","locations":[{"start":{"line":228,"column":4},"end":{"line":230,"column":5}},{"start":{"line":228,"column":4},"end":{"line":230,"column":5}}],"line":228},"24":{"loc":{"start":{"line":235,"column":6},"end":{"line":237,"column":7}},"type":"if","locations":[{"start":{"line":235,"column":6},"end":{"line":237,"column":7}},{"start":{"line":235,"column":6},"end":{"line":237,"column":7}}],"line":235},"25":{"loc":{"start":{"line":241,"column":40},"end":{"line":241,"column":69}},"type":"binary-expr","locations":[{"start":{"line":241,"column":40},"end":{"line":241,"column":56}},{"start":{"line":241,"column":60},"end":{"line":241,"column":69}}],"line":241},"26":{"loc":{"start":{"line":255,"column":81},"end":{"line":255,"column":92}},"type":"default-arg","locations":[{"start":{"line":255,"column":91},"end":{"line":255,"column":92}}],"line":255},"27":{"loc":{"start":{"line":257,"column":2},"end":{"line":274,"column":3}},"type":"if","locations":[{"start":{"line":257,"column":2},"end":{"line":274,"column":3}},{"start":{"line":257,"column":2},"end":{"line":274,"column":3}}],"line":257},"28":{"loc":{"start":{"line":264,"column":9},"end":{"line":274,"column":3}},"type":"if","locations":[{"start":{"line":264,"column":9},"end":{"line":274,"column":3}},{"start":{"line":264,"column":9},"end":{"line":274,"column":3}}],"line":264},"29":{"loc":{"start":{"line":264,"column":13},"end":{"line":264,"column":87}},"type":"binary-expr","locations":[{"start":{"line":264,"column":13},"end":{"line":264,"column":50}},{"start":{"line":264,"column":54},"end":{"line":264,"column":87}}],"line":264},"30":{"loc":{"start":{"line":295,"column":2},"end":{"line":295,"column":108}},"type":"if","locations":[{"start":{"line":295,"column":2},"end":{"line":295,"column":108}},{"start":{"line":295,"column":2},"end":{"line":295,"column":108}}],"line":295},"31":{"loc":{"start":{"line":313,"column":44},"end":{"line":313,"column":79}},"type":"binary-expr","locations":[{"start":{"line":313,"column":44},"end":{"line":313,"column":59}},{"start":{"line":313,"column":63},"end":{"line":313,"column":79}}],"line":313},"32":{"loc":{"start":{"line":330,"column":6},"end":{"line":332,"column":7}},"type":"if","locations":[{"start":{"line":330,"column":6},"end":{"line":332,"column":7}},{"start":{"line":330,"column":6},"end":{"line":332,"column":7}}],"line":330},"33":{"loc":{"start":{"line":336,"column":8},"end":{"line":336,"column":71}},"type":"if","locations":[{"start":{"line":336,"column":8},"end":{"line":336,"column":71}},{"start":{"line":336,"column":8},"end":{"line":336,"column":71}}],"line":336},"34":{"loc":{"start":{"line":339,"column":8},"end":{"line":357,"column":9}},"type":"if","locations":[{"start":{"line":339,"column":8},"end":{"line":357,"column":9}},{"start":{"line":339,"column":8},"end":{"line":357,"column":9}}],"line":339},"35":{"loc":{"start":{"line":340,"column":10},"end":{"line":342,"column":11}},"type":"if","locations":[{"start":{"line":340,"column":10},"end":{"line":342,"column":11}},{"start":{"line":340,"column":10},"end":{"line":342,"column":11}}],"line":340},"36":{"loc":{"start":{"line":349,"column":12},"end":{"line":351,"column":13}},"type":"if","locations":[{"start":{"line":349,"column":12},"end":{"line":351,"column":13}},{"start":{"line":349,"column":12},"end":{"line":351,"column":13}}],"line":349},"37":{"loc":{"start":{"line":353,"column":15},"end":{"line":357,"column":9}},"type":"if","locations":[{"start":{"line":353,"column":15},"end":{"line":357,"column":9}},{"start":{"line":353,"column":15},"end":{"line":357,"column":9}}],"line":353},"38":{"loc":{"start":{"line":377,"column":23},"end":{"line":377,"column":108}},"type":"binary-expr","locations":[{"start":{"line":377,"column":23},"end":{"line":377,"column":49}},{"start":{"line":377,"column":54},"end":{"line":377,"column":78}},{"start":{"line":377,"column":82},"end":{"line":377,"column":107}}],"line":377},"39":{"loc":{"start":{"line":382,"column":2},"end":{"line":394,"column":3}},"type":"if","locations":[{"start":{"line":382,"column":2},"end":{"line":394,"column":3}},{"start":{"line":382,"column":2},"end":{"line":394,"column":3}}],"line":382},"40":{"loc":{"start":{"line":384,"column":4},"end":{"line":390,"column":5}},"type":"if","locations":[{"start":{"line":384,"column":4},"end":{"line":390,"column":5}},{"start":{"line":384,"column":4},"end":{"line":390,"column":5}}],"line":384},"41":{"loc":{"start":{"line":414,"column":2},"end":{"line":420,"column":3}},"type":"if","locations":[{"start":{"line":414,"column":2},"end":{"line":420,"column":3}},{"start":{"line":414,"column":2},"end":{"line":420,"column":3}}],"line":414},"42":{"loc":{"start":{"line":414,"column":6},"end":{"line":414,"column":48}},"type":"binary-expr","locations":[{"start":{"line":414,"column":6},"end":{"line":414,"column":25}},{"start":{"line":414,"column":29},"end":{"line":414,"column":48}}],"line":414},"43":{"loc":{"start":{"line":423,"column":2},"end":{"line":447,"column":3}},"type":"switch","locations":[{"start":{"line":424,"column":4},"end":{"line":426,"column":12}},{"start":{"line":427,"column":4},"end":{"line":429,"column":12}},{"start":{"line":430,"column":4},"end":{"line":432,"column":12}},{"start":{"line":433,"column":4},"end":{"line":435,"column":12}},{"start":{"line":436,"column":4},"end":{"line":438,"column":12}},{"start":{"line":439,"column":4},"end":{"line":441,"column":12}},{"start":{"line":442,"column":4},"end":{"line":444,"column":12}},{"start":{"line":445,"column":4},"end":{"line":446,"column":12}}],"line":423}},"s":{"0":1,"1":1,"2":1,"3":1,"4":9,"5":9,"6":9,"7":9,"8":9,"9":9,"10":9,"11":11172561,"12":9,"13":9,"14":9,"15":9,"16":15,"17":15,"18":15,"19":15,"20":15,"21":0,"22":15,"23":15,"24":15,"25":15,"26":15,"27":15,"28":0,"29":15,"30":27,"31":26,"32":1,"33":1,"34":1,"35":0,"36":1,"37":0,"38":1,"39":0,"40":1,"41":0,"42":1,"43":0,"44":1,"45":1,"46":14,"47":14,"48":14,"49":14,"50":14,"51":14,"52":14,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":14,"62":26,"63":26,"64":0,"65":0,"66":0,"67":26,"68":26,"69":26,"70":26,"71":26,"72":14,"73":14,"74":14,"75":8,"76":8,"77":14,"78":14,"79":13,"80":12,"81":1,"82":1,"83":13,"84":13,"85":0,"86":13,"87":13,"88":0,"89":13,"90":13,"91":13,"92":0,"93":0,"94":0,"95":13,"96":13,"97":9,"98":3,"99":3,"100":3,"101":3,"102":3,"103":3,"104":6,"105":0,"106":0,"107":0,"108":6,"109":6,"110":9,"111":18,"112":18,"113":6,"114":5,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":1,"152":0,"153":1,"154":6,"155":6,"156":6,"157":6,"158":6,"159":6,"160":4,"161":4,"162":2,"163":2,"164":2,"165":2,"166":4,"167":4,"168":6,"169":6,"170":6,"171":6,"172":6,"173":0,"174":0,"175":6,"176":6,"177":6,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":6,"193":6,"194":6,"195":6},"f":{"0":9,"1":9,"2":15,"3":15,"4":15,"5":0,"6":15,"7":15,"8":15,"9":0,"10":27,"11":14,"12":26,"13":14,"14":13,"15":13,"16":9,"17":18,"18":6,"19":1,"20":1,"21":1,"22":0,"23":6,"24":6},"b":{"0":[1,1,0,0],"1":[1,1,0,1,1],"2":[1,1,0,1,1],"3":[2],"4":[26,1],"5":[0,1],"6":[0,1],"7":[1,0,0],"8":[0,1],"9":[0,1],"10":[0,1],"11":[1,1],"12":[9,5],"13":[0,0],"14":[0,0],"15":[1],"16":[8,6],"17":[14,13],"18":[12,1],"19":[1,1,0],"20":[7],"21":[0,13],"22":[13,13],"23":[0,13],"24":[0,0],"25":[13,13],"26":[1],"27":[3,6],"28":[0,6],"29":[6,0],"30":[5,1],"31":[1,0],"32":[1,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[6,4,0],"39":[4,2],"40":[2,2],"41":[0,6],"42":[6,0],"43":[0,0,0,0,0,0,0,6]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"592cc74948933f15cc9aa36c65efcad321e522df","contentHash":"ae9cecb0d0372faf1e9a69a8749f7e2fd19d9b62cfa45230056aade386b27ded"} +,"D:\\Projects\\browser-image-compression\\lib\\config\\browser-name.js": {"path":"D:\\Projects\\browser-image-compression\\lib\\config\\browser-name.js","statementMap":{},"fnMap":{},"branchMap":{},"s":{},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"375b76f6d557607e167768c53951819e5c9eea35","contentHash":"e7b5a631034b593f1a05c3989a71ea8e392098c65d2942d621372766db80cfb0"} +,"D:\\Projects\\browser-image-compression\\lib\\config\\max-canvas-size.js": {"path":"D:\\Projects\\browser-image-compression\\lib\\config\\max-canvas-size.js","statementMap":{},"fnMap":{},"branchMap":{},"s":{},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0951626fe107b8fcc2e342a45b0b5c806ef949a9","contentHash":"fb7abcbadc028e9b1de06526f2b743bfd9f434798e101603f00145efeb00fbbc"} } diff --git a/coverage/coverage-summary.json b/coverage/coverage-summary.json index d6aec0a..aada204 100644 --- a/coverage/coverage-summary.json +++ b/coverage/coverage-summary.json @@ -1,7 +1,8 @@ -{"total": {"lines":{"total":286,"covered":210,"skipped":0,"pct":73.42},"statements":{"total":294,"covered":213,"skipped":0,"pct":72.44},"functions":{"total":30,"covered":27,"skipped":0,"pct":90},"branches":{"total":153,"covered":86,"skipped":0,"pct":56.2}} +{"total": {"lines":{"total":289,"covered":213,"skipped":0,"pct":73.7},"statements":{"total":297,"covered":216,"skipped":0,"pct":72.72},"functions":{"total":30,"covered":27,"skipped":0,"pct":90},"branches":{"total":160,"covered":93,"skipped":0,"pct":58.12}} ,"D:\\Projects\\browser-image-compression\\lib\\image-compression.js": {"lines":{"total":55,"covered":50,"skipped":0,"pct":90.9},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":55,"covered":50,"skipped":0,"pct":90.9},"branches":{"total":29,"covered":22,"skipped":0,"pct":75.86}} ,"D:\\Projects\\browser-image-compression\\lib\\index.js": {"lines":{"total":46,"covered":35,"skipped":0,"pct":76.08},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":46,"covered":35,"skipped":0,"pct":76.08},"branches":{"total":30,"covered":14,"skipped":0,"pct":46.66}} ,"D:\\Projects\\browser-image-compression\\lib\\polyfill.js": {"lines":{"total":0,"covered":0,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":0,"covered":0,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} -,"D:\\Projects\\browser-image-compression\\lib\\utils.js": {"lines":{"total":185,"covered":125,"skipped":0,"pct":67.56},"functions":{"total":25,"covered":22,"skipped":0,"pct":88},"statements":{"total":193,"covered":128,"skipped":0,"pct":66.32},"branches":{"total":94,"covered":50,"skipped":0,"pct":53.19}} +,"D:\\Projects\\browser-image-compression\\lib\\utils.js": {"lines":{"total":188,"covered":128,"skipped":0,"pct":68.08},"functions":{"total":25,"covered":22,"skipped":0,"pct":88},"statements":{"total":196,"covered":131,"skipped":0,"pct":66.83},"branches":{"total":101,"covered":57,"skipped":0,"pct":56.43}} +,"D:\\Projects\\browser-image-compression\\lib\\config\\browser-name.js": {"lines":{"total":0,"covered":0,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":0,"covered":0,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} ,"D:\\Projects\\browser-image-compression\\lib\\config\\max-canvas-size.js": {"lines":{"total":0,"covered":0,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":0,"covered":0,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} } diff --git a/coverage/index.html b/coverage/index.html index b104e2e..983cc37 100644 --- a/coverage/index.html +++ b/coverage/index.html @@ -23,16 +23,16 @@
>>15-r]=u,d++}},UZIP.F.revCodes=function(e,r){for(var t=UZIP.F.U.rev15,a=15-r,i=0;i R&&(R=U)}A+=3*p,I(T.Q,R),P(T.Q,R,T.u),t=T.w,a=T.d,A=E(T.u,(1< >>15-r]=u,d++},H.H.l=function(e,r){for(var t=H.H.m.r,a=15-r,i=0;i 1&&void 0!==arguments[1]?arguments[1]:void 0,t=approximateBelowMaximumCanvasSizeOfBrowser(e.width,e.height),a=t.width,i=t.height,s=getNewCanvasAndCtx(a,i),c=_slicedToArray(s,2),l=c[0],u=c[1];return r&&/jpe?g/.test(r)&&(u.fillStyle="white",u.fillRect(0,0,l.width,l.height)),u.drawImage(e,0,0,l.width,l.height),l}function isIOS(){return void 0!==isIOS.cachedResult||(isIOS.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),isIOS.cachedResult}function drawFileInCanvas(e){return new Promise((function(r,t){var a,i,s=function $Try_2_Post(){try{return i=drawImageInCanvas(a,e.type),r([a,i])}catch(e){return t(e)}},c=function $Try_2_Catch(r){try{0;var i=function $Try_3_Catch(e){try{throw e}catch(e){return t(e)}};try{return getDataUrlFromFile(e).then((function(e){try{return loadImage(e).then((function(e){try{return a=e,function $Try_3_Post(){try{return s()}catch(e){return t(e)}}()}catch(e){return i(e)}}),i)}catch(e){return i(e)}}),i)}catch(e){i(e)}}catch(e){return t(e)}};try{if(isIOS())throw new Error("Skip createImageBitmap on IOS device");return createImageBitmap(e).then((function(e){try{return a=e,s()}catch(e){return c()}}),c)}catch(e){c()}}))}function canvasToFile(e,r,t,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return new Promise((function(s,c){var l,u,p;if("image/png"===r)return u=e.getContext("2d").getImageData(0,0,e.width,e.height).data,p=UPNG.encode([u],e.width,e.height,256*i),(l=new Blob([p],{type:r})).name=t,l.lastModified=a,$If_4.call(this);{return"function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?e.convertToBlob({type:r,quality:i}).then(function(e){try{return(l=e).name=t,l.lastModified=a,$If_5.call(this)}catch(e){return c(e)}}.bind(this),c):getFilefromDataUrl(e.toDataURL(r,i),t,a).then(function(e){try{return l=e,$If_5.call(this)}catch(e){return c(e)}}.bind(this),c);function $If_5(){return $If_4.call(this)}}function $If_4(){return s(l)}}))}function cleanupCanvasMemory(e){e.width=0,e.height=0}function isAutoOrientationInBrowser(){return new Promise((function(e,r){var t,a,i,s;return void 0!==isAutoOrientationInBrowser.result?e(isAutoOrientationInBrowser.result):("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==",getFilefromDataUrl("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then((function(c){try{return drawFileInCanvas(t=c).then((function(c){try{return canvasToFile(a=c[1],t.type,t.name,t.lastModified).then((function(t){try{return i=t,cleanupCanvasMemory(a),drawFileInCanvas(i).then((function(t){try{return s=t[0],isAutoOrientationInBrowser.result=1===s.width&&2===s.height,e(isAutoOrientationInBrowser.result)}catch(e){return r(e)}}),r)}catch(e){return r(e)}}),r)}catch(e){return r(e)}}),r)}catch(e){return r(e)}}),r))}))}function getExifOrientation(e){return new Promise((function(r,t){var a=new CustomFileReader;a.onload=function(e){var t=new DataView(e.target.result);if(65496!=t.getUint16(0,!1))return r(-2);for(var a=t.byteLength,i=2;is||i>s)){var l=_slicedToArray(getNewCanvasAndCtx(a,i),2);c=l[0],t=l[1],a>i?(c.width=s,c.height=i/a*s):(c.width=a/i*s,c.height=s),t.drawImage(e,0,0,c.width,c.height),cleanupCanvasMemory(e)}return c}function followExifOrientation(e,r){var t=e.width,a=e.height,i=_slicedToArray(getNewCanvasAndCtx(t,a),2),s=i[0],c=i[1];switch(r>4&&r<9?(s.width=a,s.height=t):(s.width=t,s.height=a),r){case 2:c.transform(-1,0,0,1,t,0);break;case 3:c.transform(-1,0,0,-1,t,a);break;case 4:c.transform(1,0,0,-1,0,a);break;case 5:c.transform(0,1,1,0,0,0);break;case 6:c.transform(0,1,-1,0,a,0);break;case 7:c.transform(0,-1,-1,0,a,t);break;case 8:c.transform(0,-1,1,0,0,t)}return c.drawImage(e,0,0,t,a),cleanupCanvasMemory(e),s}function compress(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new Promise((function(a,i){var s,c,l,u,p,d,h,y,A,g,v,m,E,I,P,b,T,S;function incProgress(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;s+=e,r.onProgress(Math.min(s,100))}function setProgress(e){s=Math.min(Math.max(e,s),100),r.onProgress(s)}return s=t,c=r.maxIteration||10,l=1024*r.maxSizeMB*1024,incProgress(),drawFileInCanvas(e).then(function(t){try{var s=_slicedToArray(t,2);return u=s[1],incProgress(),p=handleMaxWidthOrHeight(u,r),incProgress(),new Promise((function(t,a){var i;if(!(i=r.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,$If_2.call(this)}catch(e){return a(e)}}.bind(this),a);function $If_2(){return t(i)}return $If_2.call(this)})).then(function(t){try{return d=t,incProgress(),isAutoOrientationInBrowser().then(function(t){try{return h=t?p:followExifOrientation(p,d),incProgress(),y=r.initialQuality||1,A=r.fileType||e.type,canvasToFile(h,A,e.name,e.lastModified,y).then(function(r){try{{if(g=r,incProgress(),v=g.size>l,m=g.size>e.size,!v&&!m)return setProgress(100),a(g);var t;function $Loop_3(){if(c--&&(P>l||P>E)){var r,t,a=_slicedToArray(getNewCanvasAndCtx(r=v?.95*S.width:S.width,t=v?.95*S.height:S.height),2);return T=a[0],a[1].drawImage(S,0,0,r,t),y*=.95,canvasToFile(T,A,e.name,e.lastModified,y).then((function(e){try{return b=e,cleanupCanvasMemory(S),S=T,P=b.size,setProgress(Math.min(99,Math.floor((I-P)/(I-l)*100))),$Loop_3}catch(e){return i(e)}}),i)}return[1]}return E=e.size,I=g.size,P=I,S=h,(t=function(e){for(;e;){if(e.then)return void e.then(t,i);try{if(e.pop){if(e.length)return e.pop()?$Loop_3_exit.call(this):e;e=$Loop_3}else e=e.call(this)}catch(e){return i(e)}}}.bind(this))($Loop_3);function $Loop_3_exit(){return cleanupCanvasMemory(S),cleanupCanvasMemory(T),cleanupCanvasMemory(p),cleanupCanvasMemory(h),cleanupCanvasMemory(u),setProgress(100),a(b)}}}catch(e){return i(e)}}.bind(this),i)}catch(e){return i(e)}}.bind(this),i)}catch(e){return i(e)}}.bind(this),i)}catch(e){return i(e)}}.bind(this),i)}))}var charAt=stringMultibyte.charAt,STRING_ITERATOR="String Iterator",setInternalState$2=internalState.set,getInternalState=internalState.getterFor(STRING_ITERATOR);defineIterator(String,"String",(function(e){setInternalState$2(this,{type:STRING_ITERATOR,string:toString(e),index:0})}),(function next(){var e,r=getInternalState(this),t=r.string,a=r.index;return a>=t.length?{value:void 0,done:!0}:(e=charAt(t,a),r.index+=e.length,{value:e,done:!1})}));var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},classList=documentCreateElement("span").classList,DOMTokenListPrototype=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype===Object.prototype?void 0:DOMTokenListPrototype,ITERATOR$2=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=es_array_iterator.values,handlePrototype$1=function(e,r){if(e){if(e[ITERATOR$2]!==ArrayValues)try{createNonEnumerableProperty(e,ITERATOR$2,ArrayValues)}catch(r){e[ITERATOR$2]=ArrayValues}if(e[TO_STRING_TAG]||createNonEnumerableProperty(e,TO_STRING_TAG,r),domIterables[r])for(var t in es_array_iterator)if(e[t]!==es_array_iterator[t])try{createNonEnumerableProperty(e,t,es_array_iterator[t])}catch(r){e[t]=es_array_iterator[t]}}};for(var COLLECTION_NAME$1 in domIterables)handlePrototype$1(global$1[COLLECTION_NAME$1]&&global$1[COLLECTION_NAME$1].prototype,COLLECTION_NAME$1);handlePrototype$1(domTokenListPrototype,"DOMTokenList");var ITERATOR$1=wellKnownSymbol("iterator"),nativeUrl=!fails((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,t="";return e.pathname="c%20d",r.forEach((function(e,a){r.delete("b"),t+=a+e})),isPure&&!e.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[ITERATOR$1]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==t||"x"!==new URL("http://x",void 0).host})),callWithSafeIterationClosing=function(e,r,t,a){try{return a?r(anObject(t)[0],t[1]):r(t)}catch(r){iteratorClose(e,"throw",r)}},arrayFrom=function from(e){var r=toObject(e),t=isConstructor(this),a=arguments.length,i=a>1?arguments[1]:void 0,s=void 0!==i;s&&(i=functionBindContext(i,a>2?arguments[2]:void 0,2));var c,l,u,p,d,h,y=getIteratorMethod(r),A=0;if(!y||this==Array&&isArrayIteratorMethod(y))for(c=toLength(r.length),l=t?new this(c):Array(c);c>A;A++)h=s?i(r[A],A):r[A],createProperty(l,A,h);else for(d=(p=getIterator(r,y)).next,l=t?new this:[];!(u=d.call(p)).done;A++)h=s?callWithSafeIterationClosing(p,i,[u.value,A],!0):u.value,createProperty(l,A,h);return l.length=A,l},maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",baseMinusTMin=base-tMin,floor$2=Math.floor,stringFromCharCode=String.fromCharCode,ucs2decode=function(e){for(var r=[],t=0,a=e.length;t=55296&&i<=56319&&t>1,e+=floor$2(e/r);e>baseMinusTMin*tMax>>1;a+=base)e=floor$2(e/baseMinusTMin);return floor$2(a+(baseMinusTMin+1)*e/(e+skew))},encode=function(e){var r,t,a=[],i=(e=ucs2decode(e)).length,s=initialN,c=0,l=initialBias;for(r=0;r >>15-r]=u,d++}},UZIP.F.revCodes=function(e,r){for(var t=UZIP.F.U.rev15,a=15-r,i=0;i T&&(T=O)}A+=3*p,I(S.Q,T),R(S.Q,T,S.u),t=S.w,a=S.d,A=m(S.u,(1< >>15-r]=u,d++},H.H.l=function(e,r){for(var t=H.H.m.r,a=15-r,i=0;i 1&&void 0!==arguments[1]?arguments[1]:void 0,t=approximateBelowMaximumCanvasSizeOfBrowser(e.width,e.height),a=t.width,i=t.height,s=getNewCanvasAndCtx(a,i),c=_slicedToArray(s,2),l=c[0],u=c[1];return r&&/jpe?g/.test(r)&&(u.fillStyle="white",u.fillRect(0,0,l.width,l.height)),u.drawImage(e,0,0,l.width,l.height),l}function isIOS(){return void 0!==isIOS.cachedResult||(isIOS.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),isIOS.cachedResult}function drawFileInCanvas(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,a){var i,s,c=function $Try_2_Post(){try{return s=drawImageInCanvas(i,r.fileType||e.type),t([i,s])}catch(e){return a(e)}},l=function $Try_2_Catch(r){try{0;var t=function $Try_3_Catch(e){try{throw e}catch(e){return a(e)}};try{return getDataUrlFromFile(e).then((function(e){try{return loadImage(e).then((function(e){try{return i=e,function $Try_3_Post(){try{return c()}catch(e){return a(e)}}()}catch(e){return t(e)}}),t)}catch(e){return t(e)}}),t)}catch(e){t(e)}}catch(e){return a(e)}};try{if(isIOS()||[BROWSER_NAME.DESKTOP_SAFARI,BROWSER_NAME.MOBILE_SAFARI].includes(getBrowserName()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then((function(e){try{return i=e,c()}catch(e){return l()}}),l)}catch(e){l()}}))}function canvasToFile(e,r,t,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return new Promise((function(s,c){var l,u,p;if("image/png"===r)return u=e.getContext("2d").getImageData(0,0,e.width,e.height).data,p=UPNG.encode([u],e.width,e.height,256*i),(l=new Blob([p],{type:r})).name=t,l.lastModified=a,$If_4.call(this);{return"function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?e.convertToBlob({type:r,quality:i}).then(function(e){try{return(l=e).name=t,l.lastModified=a,$If_5.call(this)}catch(e){return c(e)}}.bind(this),c):getFilefromDataUrl(e.toDataURL(r,i),t,a).then(function(e){try{return l=e,$If_5.call(this)}catch(e){return c(e)}}.bind(this),c);function $If_5(){return $If_4.call(this)}}function $If_4(){return s(l)}}))}function cleanupCanvasMemory(e){e.width=0,e.height=0}function isAutoOrientationInBrowser(){return new Promise((function(e,r){var t,a,i,s;return void 0!==isAutoOrientationInBrowser.cachedResult?e(isAutoOrientationInBrowser.cachedResult):("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==",getFilefromDataUrl("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then((function(c){try{return drawFileInCanvas(t=c).then((function(c){try{return canvasToFile(a=c[1],t.type,t.name,t.lastModified).then((function(t){try{return i=t,cleanupCanvasMemory(a),drawFileInCanvas(i).then((function(t){try{return s=t[0],isAutoOrientationInBrowser.cachedResult=1===s.width&&2===s.height,e(isAutoOrientationInBrowser.cachedResult)}catch(e){return r(e)}}),r)}catch(e){return r(e)}}),r)}catch(e){return r(e)}}),r)}catch(e){return r(e)}}),r))}))}function getExifOrientation(e){return new Promise((function(r,t){var a=new CustomFileReader;a.onload=function(e){var t=new DataView(e.target.result);if(65496!=t.getUint16(0,!1))return r(-2);for(var a=t.byteLength,i=2;is||i>s)){var l=_slicedToArray(getNewCanvasAndCtx(a,i),2);c=l[0],t=l[1],a>i?(c.width=s,c.height=i/a*s):(c.width=a/i*s,c.height=s),t.drawImage(e,0,0,c.width,c.height),cleanupCanvasMemory(e)}return c}function followExifOrientation(e,r){var t=e.width,a=e.height,i=_slicedToArray(getNewCanvasAndCtx(t,a),2),s=i[0],c=i[1];switch(r>4&&r<9?(s.width=a,s.height=t):(s.width=t,s.height=a),r){case 2:c.transform(-1,0,0,1,t,0);break;case 3:c.transform(-1,0,0,-1,t,a);break;case 4:c.transform(1,0,0,-1,0,a);break;case 5:c.transform(0,1,1,0,0,0);break;case 6:c.transform(0,1,-1,0,a,0);break;case 7:c.transform(0,-1,-1,0,a,t);break;case 8:c.transform(0,-1,1,0,0,t)}return c.drawImage(e,0,0,t,a),cleanupCanvasMemory(e),s}function compress(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new Promise((function(a,i){var s,c,l,u,p,d,h,y,A,g,E,v,m,I,R,P,S,b;function incProgress(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;s+=e,r.onProgress(Math.min(s,100))}function setProgress(e){s=Math.min(Math.max(e,s),100),r.onProgress(s)}return s=t,c=r.maxIteration||10,l=1024*r.maxSizeMB*1024,incProgress(),drawFileInCanvas(e,r).then(function(t){try{var s=_slicedToArray(t,2);return u=s[1],incProgress(),p=handleMaxWidthOrHeight(u,r),incProgress(),new Promise((function(t,a){var i;if(!(i=r.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,$If_2.call(this)}catch(e){return a(e)}}.bind(this),a);function $If_2(){return t(i)}return $If_2.call(this)})).then(function(t){try{return d=t,incProgress(),isAutoOrientationInBrowser().then(function(t){try{return h=t?p:followExifOrientation(p,d),incProgress(),y=r.initialQuality||1,A=r.fileType||e.type,canvasToFile(h,A,e.name,e.lastModified,y).then(function(r){try{{if(g=r,incProgress(),E=g.size>l,v=g.size>e.size,!E&&!v)return setProgress(100),a(g);var t;function $Loop_3(){if(c--&&(R>l||R>m)){var r,t,a=_slicedToArray(getNewCanvasAndCtx(r=E?.95*b.width:b.width,t=E?.95*b.height:b.height),2);return S=a[0],a[1].drawImage(b,0,0,r,t),y*=.95,canvasToFile(S,A,e.name,e.lastModified,y).then((function(e){try{return P=e,cleanupCanvasMemory(b),b=S,R=P.size,setProgress(Math.min(99,Math.floor((I-R)/(I-l)*100))),$Loop_3}catch(e){return i(e)}}),i)}return[1]}return m=e.size,I=g.size,R=I,b=h,(t=function(e){for(;e;){if(e.then)return void e.then(t,i);try{if(e.pop){if(e.length)return e.pop()?$Loop_3_exit.call(this):e;e=$Loop_3}else e=e.call(this)}catch(e){return i(e)}}}.bind(this))($Loop_3);function $Loop_3_exit(){return cleanupCanvasMemory(b),cleanupCanvasMemory(S),cleanupCanvasMemory(p),cleanupCanvasMemory(h),cleanupCanvasMemory(u),setProgress(100),a(P)}}}catch(e){return i(e)}}.bind(this),i)}catch(e){return i(e)}}.bind(this),i)}catch(e){return i(e)}}.bind(this),i)}catch(e){return i(e)}}.bind(this),i)}))}var charAt=stringMultibyte.charAt,STRING_ITERATOR="String Iterator",setInternalState$2=internalState.set,getInternalState=internalState.getterFor(STRING_ITERATOR);defineIterator(String,"String",(function(e){setInternalState$2(this,{type:STRING_ITERATOR,string:toString(e),index:0})}),(function next(){var e,r=getInternalState(this),t=r.string,a=r.index;return a>=t.length?{value:void 0,done:!0}:(e=charAt(t,a),r.index+=e.length,{value:e,done:!1})}));var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},classList=documentCreateElement("span").classList,DOMTokenListPrototype=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype===Object.prototype?void 0:DOMTokenListPrototype,ITERATOR$2=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=es_array_iterator.values,handlePrototype$1=function(e,r){if(e){if(e[ITERATOR$2]!==ArrayValues)try{createNonEnumerableProperty(e,ITERATOR$2,ArrayValues)}catch(r){e[ITERATOR$2]=ArrayValues}if(e[TO_STRING_TAG]||createNonEnumerableProperty(e,TO_STRING_TAG,r),domIterables[r])for(var t in es_array_iterator)if(e[t]!==es_array_iterator[t])try{createNonEnumerableProperty(e,t,es_array_iterator[t])}catch(r){e[t]=es_array_iterator[t]}}};for(var COLLECTION_NAME$1 in domIterables)handlePrototype$1(global$1[COLLECTION_NAME$1]&&global$1[COLLECTION_NAME$1].prototype,COLLECTION_NAME$1);handlePrototype$1(domTokenListPrototype,"DOMTokenList");var ITERATOR$1=wellKnownSymbol("iterator"),nativeUrl=!fails((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,t="";return e.pathname="c%20d",r.forEach((function(e,a){r.delete("b"),t+=a+e})),isPure&&!e.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[ITERATOR$1]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==t||"x"!==new URL("http://x",void 0).host})),callWithSafeIterationClosing=function(e,r,t,a){try{return a?r(anObject(t)[0],t[1]):r(t)}catch(r){iteratorClose(e,"throw",r)}},arrayFrom=function from(e){var r=toObject(e),t=isConstructor(this),a=arguments.length,i=a>1?arguments[1]:void 0,s=void 0!==i;s&&(i=functionBindContext(i,a>2?arguments[2]:void 0,2));var c,l,u,p,d,h,y=getIteratorMethod(r),A=0;if(!y||this==Array&&isArrayIteratorMethod(y))for(c=toLength(r.length),l=t?new this(c):Array(c);c>A;A++)h=s?i(r[A],A):r[A],createProperty(l,A,h);else for(d=(p=getIterator(r,y)).next,l=t?new this:[];!(u=d.call(p)).done;A++)h=s?callWithSafeIterationClosing(p,i,[u.value,A],!0):u.value,createProperty(l,A,h);return l.length=A,l},maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",baseMinusTMin=base-tMin,floor$2=Math.floor,stringFromCharCode=String.fromCharCode,ucs2decode=function(e){for(var r=[],t=0,a=e.length;t=55296&&i<=56319&&t>1,e+=floor$2(e/r);e>baseMinusTMin*tMax>>1;a+=base)e=floor$2(e/baseMinusTMin);return floor$2(a+(baseMinusTMin+1)*e/(e+skew))},encode=function(e){var r,t,a=[],i=(e=ucs2decode(e)).length,s=initialN,c=0,l=initialBias;for(r=0;r>2)]>>6-((3&A)<<1)&3);l[P]=b[w],l[P+1]=b[w+1],l[P+2]=b[w+2],l[P+3]=O>1)]>>4-((1&A)<<2)&15);l[P]=b[w],l[P+1]=b[w+1],l[P+2]=b[w+2],l[P+3]=O>>3)]>>>7-(7&M)&1))==255*m?0:255;u[x+M]=B<<24|C<<16|C<<8|C}else if(2==d)for(M=0;M>3)+O];_+=i,R+=v}T++,S+=g}m*E!=0&&(u+=E*(1+b)),A+=1}return l},UPNG.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},UPNG.decode._filterZero=function(e,r,t,a,i){var s=UPNG.decode._getBPP(r),c=Math.ceil(a*s/8),l=UPNG.decode._paeth;s=Math.ceil(s/8);var u=0,p=1,d=e[t],h=0;if(d>1&&(e[t]=[0,0,1][d-2]),3==d)for(h=s;h>8&255,e[r+1]=255&t},readUint:function readUint(e,r){return 16777216*e[r]+(e[r+1]<<16|e[r+2]<<8|e[r+3])},writeUint:function writeUint(e,r,t){e[r]=t>>24&255,e[r+1]=t>>16&255,e[r+2]=t>>8&255,e[r+3]=255&t},readASCII:function readASCII(e,r,t){for(var a="",i=0;ij)j=K}d+=3*Q;M(b.Q,j);I(b.Q,j,b.u);v=b.w;C=b.d;\n d=l(b.u,(1<
>>24&255,a[t+1]=i>>>16&255,a[t+2]=i>>>8&255,a[t+3]=i>>>0&255,new Uint8Array(a.buffer,0,t+4)},UZIP.deflateRaw=function(e,r){null==r&&(r={level:6});var t=new Uint8Array(50+Math.floor(1.1*e.length)),a=UZIP.F.deflateRaw(e,t,a,r.level);return new Uint8Array(t.buffer,0,a)},UZIP.encode=function(e,r){null==r&&(r=!1);var t=0,a=UZIP.bin.writeUint,i=UZIP.bin.writeUshort,s={};for(var c in e){var l=!UZIP._noNeed(c)&&!r,u=e[c],p=UZIP.crc.crc(u,0,u.length);s[c]={cpr:l,usize:u.length,crc:p,file:l?UZIP.deflateRaw(u):u}}for(var c in s)t+=s[c].file.length+30+46+2*UZIP.bin.sizeUTF8(c);t+=22;var d=new Uint8Array(t),h=0,y=[];for(var c in s){var A=s[c];y.push(h),h=UZIP._writeHeader(d,h,c,A,0)}var g=0,E=h;for(var c in s){A=s[c];y.push(h),h=UZIP._writeHeader(d,h,c,A,1,y[g++])}var v=h-E;return a(d,h,101010256),h+=4,i(d,h+=4,g),i(d,h+=2,g),a(d,h+=2,v),a(d,h+=4,E),h+=4,h+=2,d.buffer},UZIP._noNeed=function(e){var r=e.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(r)},UZIP._writeHeader=function(e,r,t,a,i,s){var c=UZIP.bin.writeUint,l=UZIP.bin.writeUshort,u=a.file;return c(e,r,0==i?67324752:33639248),r+=4,1==i&&(r+=2),l(e,r,20),l(e,r+=2,0),l(e,r+=2,a.cpr?8:0),c(e,r+=2,0),c(e,r+=4,a.crc),c(e,r+=4,u.length),c(e,r+=4,a.usize),l(e,r+=4,UZIP.bin.sizeUTF8(t)),l(e,r+=2,0),r+=2,1==i&&(r+=2,r+=2,c(e,r+=6,s),r+=4),r+=UZIP.bin.writeUTF8(e,r,t),0==i&&(e.set(u,r),r+=u.length),r},UZIP.crc={table:function(){for(var e=new Uint32Array(256),r=0;r<256;r++){for(var t=r,a=0;a<8;a++)1&t?t=3988292384^t>>>1:t>>>=1;e[r]=t}return e}(),update:function(e,r,t,a){for(var i=0;i>>8;return e},crc:function(e,r,t){return 4294967295^UZIP.crc.update(4294967295,e,r,t)}},UZIP.adler=function(e,r,t){for(var a=1,i=0,s=r,c=r+t;st&&(UZIP.F.restrictDepth(u,t,E),E=t),c=0;c>3)+U];_+=i,T+=E}S++,b+=g}v*m!=0&&(u+=m*(1+P)),A+=1}return l},UPNG.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},UPNG.decode._filterZero=function(e,r,t,a,i){var s=UPNG.decode._getBPP(r),c=Math.ceil(a*s/8),l=UPNG.decode._paeth;s=Math.ceil(s/8);var u=0,p=1,d=e[t],h=0;if(d>1&&(e[t]=[0,0,1][d-2]),3==d)for(h=s;h>8&255,e[r+1]=255&t},readUint:function readUint(e,r){return 16777216*e[r]+(e[r+1]<<16|e[r+2]<<8|e[r+3])},writeUint:function writeUint(e,r,t){e[r]=t>>24&255,e[r+1]=t>>16&255,e[r+2]=t>>8&255,e[r+3]=255&t},readASCII:function readASCII(e,r,t){for(var a="",i=0;i