UNPKG

vintasoft-web-twain-js

Version:

VintaSoft Twain .NET SDK provides JavaScript API and VintaSoft Web TWAIN service, which allow to create web application for acquiring images from TWAIN/WIA/SANE/eSCL image scanner in Windows and Linux. Developed web applications can be used in all major w

106 lines 85.8 kB
// Copyright 2014-2025 VintaSoft LLC. All rights reserved. // This software is protected by International copyright laws. // Any copying, duplication, deployment, redistribution, modification or other // disposition hereof is STRICTLY PROHIBITED without an express written license // granted by VintaSoft LLC. This notice may not be removed or otherwise // altered under any circumstances. // This code may NOT be used apart of the VintaSoft product. var Vintasoft; (function(s){function b(b,s,d){b=R[b];for(var E="",F=s;F<s+d;F++)E+=String.fromCharCode(b[F]^255);return E}if(void 0==s.Shared)throw Error("Vintasoft.Shared is not found.");if("4.6.1.1"!==s.version)throw Error("Wrong version of Vintasoft.Shared script.");var R=[];R.push([172,138,143,143,144,141,139,154,155,223,156,158,143,158,157,150,147,150,139,150,154,140,223,158,141,154,223,145,144,139,223,141,154,156,154,150,137,154,155,209,182,146,158,152,154,140,223,158,141,154,223,145,144,139,223,141,154,139, 141,150,154,137,154,155,209,166,144,138,223,140,151,144,138,147,155,223,140,143,154,156,150,153,134,223,156,144,141,141,154,156,139,223,171,168,190,182,177,223,140,154,141,137,150,156,154,223,176,173,223,155,154,153,150,145,154,223,139,151,154,223,155,154,153,158,138,147,139,223,171,168,190,182,177,223,140,154,141,137,150,156,154,209,188,141,154,158,139,154,171,136,158,150,145,172,154,140,140,150,144,145,187,154,137,150,156,154,223,150,140,223,145,144,139,223,154,172,188,179,223,155,154,137,150,156, 154,209,178,144,155,158,147,223,150,146,158,152,154,223,158,156,142,138,150,140,150,139,150,144,145,223,150,140,223,153,158,150,147,154,155,209,190,156,142,138,150,141,154,178,144,155,158,147,215,178,158,156,223,176,172,177,144,139,223,156,144,141,141,154,156,139,223,137,158,147,138,154,223,144,153,223,138,145,150,139,223,144,153,223,146,154,158,140,138,141,154,223,153,144,141,223,154,172,188,179,223,155,154,137,150,156,154,209,223,172,138,143,143,144,141,139,154,155,223,137,158,147,138,154,140,197, 223,182,145,156,151,154,140,211,223,178,150,147,147,150,146,154,139,154,141,140,211,223,188,154,145,139,150,146,154,139,154,141,140,209,175,158,141,158,146,158,139,154,141,223,216,140,151,144,136,170,182,216,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,187,154,137,150,156,154,223,150,140,223,145,144,139,223,144,143,154,145,154,155,209,171,151,154,223,216,156,158,143,158,157,150,147,150,139,134,182,155,216,223,153,150,154,147,155,223,156,158,145,145,144,139,223,151,158,137,154,223, 146,144,141,154,223,139,151,158,145,223,202,207,223,140,134,146,157,144,147,140,209,186,147,154,146,154,145,139,223,144,153,223,158,141,141,158,134,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,155,140,216,223,146,138,140,139,223,157,154,223,158,223,145,138,146,157,154,141,223,144,141,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,134,182,155,186,145,138,146,181,172,223,156,147, 158,140,140,209,171,151,154,223,216,150,145,155,154,135,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,147,154,140,140,223,139,151,158,145,223,207,209,184,154,139,188,138,141,141,154,145,139,171,151,154,223,216,154,141,141,144,141,185,138,145,156,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,171,151,154,223,216,138,140,158,152,154,178,144,155,154,216,223,143,158,141,158,146,154,139,154,141,223,146, 138,140,139,223,157,154,223,158,223,145,138,146,157,154,141,223,144,141,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,145,153,144,181,172,223,156,147,158,140,140,209,171,151,154,223,216,158,156,142,138,150,141,154,178,144,155,158,147,172,139,158,139,154,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,138,145,155,154,153,150,145,154,155,209,171,168,190,182,177,223,155, 154,137,150,156,154,223,146,158,145,158,152,154,141,223,150,140,223,145,144,139,223,144,143,154,145,154,155,209,171,151,154,223,216,140,138,156,156,154,140,140,185,138,145,156,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,171,151,154,223,216,153,150,147,154,177,158,146,154,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,150,145,139,154,145,139,176,143,154,145,187,154,137,150,156, 154,178,158,145,158,152,154,141,184,154,139,146,158,156,176,172,184,154,139,182,146,158,152,154,182,145,153,144,188,151,158,145,152,154,182,146,158,152,154,189,141,150,152,151,139,145,154,140,140,188,147,144,140,154,187,154,137,150,156,154,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,155,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,223,145,138,146,157,154,141,211,223,140,139,141,150,145,152,223,144,141,223,158,145,223,150, 145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,134,182,155,186,145,138,146,181,172,223,156,147,158,140,140,209,150,176,172,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,155,140,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,145,223,158,141,141,158,134,209,184,154,139,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,134,188,154, 145,139,150,146,154,139,154,141,140,179,150,145,138,135,171,151,154,223,216,156,158,143,158,157,150,147,150,139,134,182,155,216,223,153,150,154,147,155,223,146,138,140,139,223,157,154,223,158,223,140,139,141,150,145,152,209,184,154,139,182,146,158,152,154,187,154,153,158,138,147,139,223,150,146,158,152,154,223,147,158,134,144,138,139,223,150,140,223,145,144,139,223,152,154,139,209,150,175,144,155,172,154,139,187,154,137,150,156,154,182,146,158,152,154,179,158,134,144,138,139,171,151,154,223,216,158, 156,142,138,150,141,154,155,182,146,158,152,154,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,190,156,142,138,150,141,154,155,182,146,158,152,154,181,172,223,156,147,158,140,140,209,173,154,140,154,139,187,154,137,150,156,154,182,146,158,152,154,179,158,134,144,138,139,187,154,137,150,156,154,223,150,140,223,145,144,139,223,172,190,177,186,223,155,154,137,150,156,154,209,172,154,139,187,154,137,150, 156,154,188,158,143,158,157,150,147,150,139,150,154,140,171,168,190,182,177,223,155,154,137,150,156,154,223,146,158,145,158,152,154,141,223,150,140,223,145,144,139,223,156,147,144,140,154,155,209,171,151,154,223,216,150,145,155,154,135,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,152,141,154,158,139,154,141,223,139,151,158,145,223,156,144,147,147,154,156,139,150,144,145,223,140,150,133,154,209,221,223,155,150,153,153,154,141,140,223,153,141,144,146,223,169, 150,145,139,158,172,144,153,139,223,171,168,190,182,177,223,181,158,137,158,172,156,141,150,143,139,223,190,175,182,223,137,154,141,140,150,144,145,223,221,175,177,184,171,151,154,223,216,158,156,142,138,150,141,154,178,144,155,158,147,172,139,158,139,154,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,146,144,155,154,171,151,154,223,216,135,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,147,154,140, 140,223,139,151,158,145,223,207,209,168,150,145,188,186,221,209,223,175,147,154,158,140,154,223,138,140,154,223,139,151,154,223,140,158,146,154,223,137,154,141,140,150,144,145,223,153,144,141,223,169,150,145,139,158,140,144,153,139,223,168,154,157,223,171,168,190,182,177,223,140,154,141,137,150,156,154,223,158,145,155,223,169,150,145,139,158,172,144,153,139,223,171,168,190,182,177,223,181,158,137,158,172,156,141,150,143,139,223,190,175,182,209,182,140,182,146,158,152,154,189,147,158,145,148,171,151, 154,223,216,158,156,142,138,150,141,154,178,144,155,158,147,172,139,158,139,154,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,190,156,142,138,150,141,154,178,144,155,158,147,172,139,158,139,154,186,145,138,146,181,172,223,156,147,158,140,140,209,188,141,144,143,182,146,158,152,154,171,151,154,223,216,139,136,158,150,145,187,154,137,150,156,154,178,158,145,158,152,154,141,216,223, 143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,187,154,137,150,156,154,178,158,145,158,152,154,141,181,172,223,156,147,158,140,140,209,182,146,158,152,154,223,150,140,223,150,145,223,143,141,144,156,154,140,140,150,145,152,223,145,144,136,209,150,175,151,144,145,154,188,151,158,145,152,154,182,146,158,152,154,188,144,145,139,141,158,140,139,214,210,215,188,158,143,158,157,150,147,150,139, 134,223,137,158,147,138,154,223,150,140,223,145,144,139,223,140,154,139,209,171,151,154,223,216,151,154,150,152,151,139,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,147,154,140,140,223,139,151,158,145,223,206,209,184,154,139,172,138,143,143,144,141,139,154,155,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,150,154,140,150,175,158,155,182,146,158,152,154,223,143,141,144,156,154,140,140,150,145,152,223,150,140,223,153,158,150,147,154,155,209,182, 145,153,144,141,146,158,139,150,144,145,223,158,157,144,138,139,223,171,168,190,182,177,223,155,154,137,150,156,154,140,223,150,140,223,145,144,139,223,141,154,156,154,150,137,154,155,209,196,169,150,145,139,158,140,144,153,139,223,168,154,157,223,171,168,190,182,177,223,140,154,141,137,150,156,154,223,150,140,223,145,144,139,223,153,144,138,145,155,209,171,141,138,154,178,158,156,175,175,188,171,151,154,223,216,140,138,143,143,144,141,139,154,155,169,158,147,138,154,140,190,140,173,158,145,152,154, 216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,173,158,145,152,154,181,172,223,156,147,158,140,140,209,216,223,150,140,223,144,143,154,145,154,155,223,158,147,141,154,158,155,134,209,187,154,140,143,154,156,148,147,154,182,146,158,152,154,168,150,158,172,158,145,154,187,154,139,154,156,139,189,144,141,155,154,141,171,151,154,223,216,137,158,147,138,154,171,134,143,154,216,223,143, 158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,169,158,147,138,154,171,134,143,154,186,145,138,146,181,172,223,156,147,158,140,140,209,178,150,147,147,150,146,154,139,154,141,140,190,141,141,158,134,223,154,147,154,146,154,145,139,223,150,145,223,158,141,141,158,134,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,150,154,140,182,145,153,144,216,223,155,144,154,140,223,145,144, 139,223,151,158,137,154,223,153,150,154,147,155,223,216,156,158,143,158,157,150,147,150,139,134,182,155,216,209,172,154,139,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,134,171,151,154,223,216,140,138,156,156,154,140,140,185,138,145,156,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,223,153,138,145,156,139,150,144,145,209,178,158,156,201,199,180,186,140,156,147,188,138,141,141,154,145,139,223,150,146,158,152,154,223,147,158,134,144,138,139,223,150, 140,223,145,144,139,223,152,154,139,209,171,141,158,145,140,153,154,141,223,150,140,223,145,144,139,223,156,158,145,156,154,147,154,155,209,184,154,139,187,154,137,150,156,154,182,146,158,152,154,179,158,134,144,138,139,171,151,154,223,216,136,150,155,139,151,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,147,154,140,140,223,139,151,158,145,223,206,209,182,146,158,152,154,223,150,140,223,145,144,139,223,153,144,138,145,155,223,150,145,223,156,144,147,147,154, 156,139,150,144,145,209,171,151,154,223,216,154,141,141,144,141,185,138,145,156,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,223,153,138,145,156,139,150,144,145,209,188,147,144,140,154,171,136,158,150,145,172,154,140,140,150,144,145,173,154,153,141,154,140,151,171,136,158,150,145,172,154,140,140,150,144,145,176,143,154,145,187,154,137,150,156,154,184,154,139,182,146,158,152,154,185,150,147,154,178,158,156,182,145,139,154,147,184,154,139,187,154,137,150,156,154, 182,145,153,144,140,187,154,147,154,139,154,190,147,147,182,146,158,152,154,140,190,141,141,158,134,223,154,147,154,146,154,145,139,223,150,145,223,158,141,141,158,134,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,150,154,140,182,145,153,144,216,223,155,144,154,140,223,145,144,139,223,151,158,137,154,223,153,150,154,147,155,223,216,156,158,143,158,157,150,147,150,139,134,169,158,147,138,154,216,209,169,150,145,139,158,140,144,153,139,223,168,154,157,223,171,168,190,182,177,223,140, 154,141,137,150,156,154,223,137,154,141,140,150,144,145,223,221,214,182,146,158,152,154,223,150,145,153,144,223,150,140,223,145,144,139,223,141,154,156,154,150,137,154,155,209,182,146,158,152,154,223,150,140,223,145,144,139,223,141,154,146,144,137,154,155,223,153,141,144,146,223,150,146,158,152,154,223,156,144,147,147,154,156,139,150,144,145,209,190,145,155,141,144,150,155,171,151,144,138,140,158,145,155,139,151,140,176,153,182,145,156,151,171,168,190,182,177,223,155,154,137,150,156,154,223,150,140, 223,145,144,139,223,156,147,144,140,154,155,209,187,154,137,150,156,154,223,150,140,223,145,144,139,223,171,168,190,182,177,223,155,154,137,150,156,154,209,190,145,144,139,151,154,141,223,155,154,137,150,156,154,223,216,171,151,154,223,216,150,146,158,152,154,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,156,147,158,140,140,223,168,154,157,190,156,142,138,150,141,154,155,182,146,158,152,154,181,172,209,182,145, 156,151,154,140,182,146,158,152,154,223,147,158,134,144,138,139,223,150,140,223,145,144,139,223,140,154,139,209,178,158,156,150,145,139,144,140,151,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,150,154,140,182,145,153,144,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,157,154,223,158,145,223,158,141,141,158,134,209,177,144,139,223,156,144,141,141,154,156,139,223,137,158,147,138,154,223,144,153,223,138,145,150,139,223,144,153,223,146,154,158,140,138, 141,154,223,153,144,141,223,172,190,177,186,223,155,154,137,150,156,154,209,223,172,138,143,143,144,141,139,154,155,223,137,158,147,138,154,140,197,223,182,145,156,151,154,140,211,223,178,150,147,147,150,146,154,139,154,141,140,211,223,188,154,145,139,150,146,154,139,154,141,140,209,173,144,139,158,139,154,182,146,158,152,154,187,154,140,148,154,136,182,146,158,152,154,171,151,154,223,216,156,144,145,139,158,150,145,154,141,171,134,143,154,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223, 145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,168,154,157,171,136,158,150,145,169,158,147,138,154,188,144,145,139,158,150,145,154,141,171,134,143,154,186,145,138,146,181,172,223,156,147,158,140,140,209,168,150,145,155,144,136,140,188,158,145,156,154,147,171,141,158,145,140,153,154,141,140,144,138,141,156,154,175,158,141,158,146,158,139,154,141,223,216,140,151,144,136,182,145,155,150,156,158,139,144,141,140,216,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147, 209,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,155,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,168,150,145,204,205,187,154,147,154,139,154,182,146,158,152,154,173,154,140,150,133,154,188,158,145,137,158,140,171,151,154,223,216,140,138,143,143,144,141,139,154,155,169,158,147,138,154,140,190,140,190,141,141,158,134,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,141,154,143,141, 154,140,154,145,139,223,158,141,141,158,134,209,182,145,137,154,141,139,182,146,158,152,154,223,168,150,145,201,203,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,150,154,140,182,145,153,144,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,182,146,158,152,154,223,156,144,147,147,154,156,139,150,144,145,223,150,140,223,145,144,139,223,156,147,154,158,141,154,155,209,155,158,139,158,197,150,146,158,152,154,208,143, 145,152,196,157,158,140,154,201,203,211,182,146,158,152,154,223,147,158,134,144,138,139,223,150,140,223,145,144,139,223,141,154,140,154,139,209,177,144,139,223,156,144,141,141,154,156,139,223,137,158,147,138,154,223,144,153,223,138,145,150,139,223,144,153,223,146,154,158,140,138,141,154,223,153,144,141,223,172,190,177,186,223,155,154,137,150,156,154,209,223,172,138,143,143,144,141,139,154,155,223,137,158,147,138,154,140,197,223,182,145,156,151,154,140,211,223,178,150,147,147,150,146,154,139,154,141, 140,211,223,188,154,145,139,150,146,154,139,154,141,140,211,223,171,151,144,138,140,158,145,155,139,151,140,176,153,182,145,156,151,209,171,151,154,223,216,150,146,158,152,154,182,155,140,216,223,143,158,141,158,146,154,139,154,141,223,146,138,140,139,223,141,154,143,141,154,140,154,145,139,223,145,144,139,223,154,146,143,139,134,223,158,141,141,158,134,223,144,153,223,140,139,141,150,145,152,140,209,188,158,143,158,157,150,147,150,139,150,154,140,223,158,141,154,223,145,144,139,223,141,154,156,154, 150,137,154,155,209,182,146,158,152,154,140,223,158,141,154,223,145,144,139,223,140,158,137,154,155,209,182,146,158,152,154,223,157,150,139,146,158,143,223,150,140,223,145,144,139,223,141,154,139,141,150,154,137,154,155,209,171,151,154,223,216,139,136,158,150,145,187,154,137,150,156,154,178,158,145,158,152,154,141,216,223,143,158,141,158,146,154,139,154,141,223,150,140,223,145,144,139,223,158,145,223,150,145,140,139,158,145,156,154,223,144,153,223,156,147,158,140,140,223,168,154,157,171,136,158,150, 145,187,154,137,150,156,154,178,158,145,158,152,154,141,181,172,209,184,154,139,187,154,137,150,156,154,188,158,143,158,157,150,147,150,139,150,154,140,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,182,155,140,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,188,158,143,158,157,150,147,150,139,134,223,137,158,147,138,154,223,150,140,223,145,144,139,223,152,154,139,209,171,168,190,182,177,223,155,154,137,150, 156,154,223,150,140,223,145,144,139,223,144,143,154,145,154,155,209,171,151,154,223,216,139,136,158,150,145,188,158,143,158,157,150,147,150,139,134,169,158,147,138,154,216,223,143,158,141,158,146,154,139,154,141,223,156,158,145,145,144,139,223,157,154,223,145,138,147,147,209,184,154,139,187,154,153,158,138,147,139,187,154,137,150,156,154,182,146,158,152,154,179,158,134,144,138,139,172,158,137,154,182,146,158,152,154,140,175,176,172,171,187,154,137,150,156,154,223,150,140,223,145,144,139,223,168,182, 190,223,155,154,137,150,156,154,209]);s.Twain=s.Twain||(s.Twain={});(function(q){function v(a,f){if(null==a)throw Error(b(0,842,43));if(!d.pv.isf(a))throw Error(b(0,2625,47));if(null==f)throw Error(b(0,620,41));if(!d.pv.isf(f))throw Error(b(0,2836,45));}q.version="15.3.3.1";var d=s.Shared,E=d.EnumGenerator.create([{None:0},{Get:1},{GetDefault:2},{GetCurrent:4}],!0),F=d.EnumGenerator.create([{DeviceEvent:7},{ImageAcquired:2},{ImageAcquiring:1},{ImageAcquiringProgress:8},{None:0},{ScanCanceled:5},{ScanCompleted:3}, {ScanFailed:4},{ScanFinished:9},{UserInterfaceClosed:6}],!1),Y=d.EnumGenerator.create([{CustomHalftone:2},{Diffusion:3},{Halftones:1},{Threshold:0}],!1),R=d.EnumGenerator.create([{Auto:0},{Clear:1},{NoClear:2}],!1),U=d.EnumGenerator.create([{None:0},{OnePass:1},{TwoPass:2}],!1),Z=d.EnumGenerator.create([{Black:8},{Blue:2},{Cyan:5},{Green:1},{Magenta:6},{None:3},{Red:0},{White:4},{Yellow:7}],!1),$=d.EnumGenerator.create([{DetectAndExcludeJobSeparatorAndContinueScanning:3},{DetectAndExcludeJobSeparatorAndStopScanning:4}, {DetectAndIncludeJobSeparatorAndContinueScanning:1},{DetectAndIncludeJobSeparatorAndStopScanning:2},{None:0}],!1),aa=d.EnumGenerator.create([{Reflective:0},{Transmissive:1}],!1),ba=d.EnumGenerator.create([{Blue:2},{Green:1},{InfraRed:6},{None:3},{Red:0},{UltraViolet:5},{White:4}],!1),ca=d.EnumGenerator.create([{Auto:1},{LonePixel:2},{MajorityRule:3},{None:0}],!1),da=d.EnumGenerator.create([{Auto:1},{Current:2},{None:0}],!1),ea=d.EnumGenerator.create([{Auto:4},{AutoPicture:6},{AutoText:5},{Landscape:3}, {Portrait:0},{Rotation180:2},{Rotation90:1}],!1),fa=d.EnumGenerator.create([{A0:19},{A0x2:18},{A0x4:17},{A1:20},{A10:25},{A2:21},{A3:11},{A4:1},{A5:5},{A6:13},{A7:22},{A8:23},{A9:24},{B3:12},{B4:6},{B5:2},{B6:7},{BUSINESSCARD:53},{C0:44},{C1:45},{C10:51},{C2:46},{C3:47},{C4:14},{C5:15},{C6:16},{C7:48},{C8:49},{C9:50},{ISOB0:26},{ISOB1:27},{ISOB10:33},{ISOB2:28},{ISOB3:12},{ISOB4:6},{ISOB5:29},{ISOB6:7},{ISOB7:30},{ISOB8:31},{ISOB9:32},{JISB0:34},{JISB1:35},{JISB10:43},{JISB2:36},{JISB3:37},{JISB4:38}, {JISB6:39},{JISB7:40},{JISB8:41},{JISB9:42},{None:0},{USEXECUTIVE:10},{USLEDGER:9},{USLEGAL:4},{USLETTER:3},{USSTATEMENT:52}],!1),ga=d.EnumGenerator.create([{Chocolate:0},{Vanilla:1}],!1),H=d.EnumGenerator.create([{BGR:12},{BW:0},{CIELAB:13},{CIELUV:14},{CIEXYZ:8},{CMY:4},{CMYK:5},{Gray:1},{Infrared:16},{Lab:9},{Palette:3},{RGB:2},{SRGB:10},{SRGB64:11},{YCBCR:15},{YUV:6},{YUVK:7}],!1),ha=d.EnumGenerator.create([{File:1},{Memory:2},{Native:0}],!1),K=d.EnumGenerator.create([{BitFields:12},{Group31D:2}, {Group31DEol:3},{Group32D:4},{Group4:5},{Jbig:8},{Jpeg:6},{Lzw:7},{None:0},{Packbits:1},{Png:9},{Rle4:10},{Rle8:11}],!1),ia=d.EnumGenerator.create([{Bmp:2},{Dejavu:14},{EXIF:9},{FlashPix:5},{Jpeg:4},{Jpeg2000:11},{Jpeg2000JPN:12},{Jpeg2000JPX:13},{PDF:10},{PDFA:15},{Pict:1},{Png:7},{SamsungSrw:32770},{SPIFF:8},{Tiff:0},{TiffMulti:6},{XBM:3}],!1),ja=d.EnumGenerator.create([{Array:3},{Enum:4},{OneValue:5},{Range:6},{Undefined:0}],!1),ka=d.EnumGenerator.create([{Bool:6},{Fix32:7},{Frame:8},{Int16:1}, {Int16Handle:44},{Int32:2},{Int8:0},{Str1024:13},{Str128:11},{Str255:12},{Str32:9},{Str64:10},{UInt16:4},{UInt32:5},{UInt32Handle:43},{UInt8:3},{UInt8Handle:15},{Undefined:-1},{Uni512:14}],!1),G=d.EnumGenerator.create([{Inches:0},{Centimeters:1},{Picas:2},{Points:3},{Twips:4},{Pixels:5},{Millimeters:6},{ThousandthsOfInch:7}],!1),oa=d.EnumGenerator.create([{XferCount:1},{ICompression:256},{IPixelType:257},{IUnits:258},{IXferMech:259},{Author:4096},{Caption:4097},{FeederEnabled:4098},{FeederLoaded:4099}, {TimeDate:4100},{SupportedCaps:4101},{ExtendedCaps:4102},{AutoFeed:4103},{ClearPage:4104},{FeedPage:4105},{RewindPage:4106},{Indicators:4107},{SupportedCapsExt:4108},{PaperDetectable:4109},{UIControllable:4110},{DeviceOnline:4111},{AutoScan:4112},{ThumbnailsEnabled:4113},{Duplex:4114},{DuplexEnabled:4115},{EnableDsUiOnly:4116},{CustomDsData:4117},{EndOrSer:4118},{JobControl:4119},{Alarms:4120},{AlarmVolume:4121},{AutomaticCapture:4122},{TimeBeforeFirstCapture:4123},{TimeBetweenCaptures:4124},{ClearBuffers:4125}, {MaxBatchBuffers:4126},{DeviceTimeDate:4127},{PowerSupply:4128},{CameraPreviewUI:4129},{DeviceEvents:4130},{SerialNumber:4132},{Printer:4134},{PrinterEnabled:4135},{PrinterIndex:4136},{PrinterMode:4137},{PrinterString:4138},{PrinterSuffix:4139},{Language:4140},{FeederAlignment:4141},{FeederOrder:4142},{ReacquireAllowed:4144},{BatteryMinutes:4146},{BatteryPercentage:4147},{CameraSide:4148},{Segmented:4149},{AutomaticSenseMedium:4155},{CameraEnabled:4150},{CameraOrder:4151},{MicrEnabled:4152},{FeederPrep:4153}, {FeederPocket:4154},{CustomInterfaceGuid:4156},{SupportedCapsSegmentUnique:4157},{SupportedDats:4158},{DoubleFeedDetection:4159},{DoubleFeedDetectionLength:4160},{DoubleFeedDetectionSensitivity:4161},{DoubleFeedDetectionResponse:4162},{PaperHandling:4163},{IndicatorsMode:4164},{PrinterVerticalOffset:4165},{PowerSaveTime:4166},{ISupportedExtImageInfo:4446},{IAutoBright:4352},{IBrightness:4353},{IContrast:4355},{ICustomHalftone:4356},{IExposureTime:4357},{IFilter:4358},{IFlashUsed:4359},{IGamma:4360}, {IHalftones:4361},{IHighlight:4362},{IImageFileFormat:4364},{ILampState:4365},{ILightSource:4366},{IOrientation:4368},{IPhysicalWidth:4369},{IPhysicalHeight:4370},{IShadow:4371},{IFrames:4372},{IXNativeResolution:4374},{IYNativeResolution:4375},{IXResolution:4376},{IYResolution:4377},{IMaxFrames:4378},{ITiles:4379},{IBitOrder:4380},{ICcittKFactor:4381},{ILightPath:4382},{IPixelFlavor:4383},{IPlanarChunky:4384},{IRotation:4385},{ISupportedSizes:4386},{IThreshold:4387},{IXScaling:4388},{IYScaling:4389}, {IBitOrderCodes:4390},{IPixelFlavorCodes:4391},{IJpegPixelType:4392},{ITimeFill:4394},{IBitDepth:4395},{IBitDepthReduction:4396},{IUndefinedImageSize:4397},{IImageDataSet:4398},{IExtImageInfo:4399},{IMinimumHeight:4400},{IMinimumWidth:4401},{IFlipRotation:4406},{IBarCodeDetectionEnabled:4407},{ISupportedBarCodeTypes:4408},{IBarCodeMaxSearchPriorities:4409},{IBarCodeSearchPriorities:4410},{IBarCodeSearchMode:4411},{IBarCodeMaxRetries:4412},{IBarCodeTimeout:4413},{IZoomFactor:4414},{IPatchCodeDetectionEnabled:4415}, {ISupportedPatchCodeTypes:4416},{IPatchCodeMaxSearchPriorities:4417},{IPatchCodeSearchPriorities:4418},{IPatchCodeSearchMode:4419},{IPatchCodeMaxRetries:4420},{IPatchCodeTimeout:4421},{IFlashUsed2:4422},{IImageFilter:4423},{INoiseFilter:4424},{IOverScan:4425},{IAutomaticBorderDetection:4432},{IAutomaticDeskew:4433},{IAutomaticRotate:4434},{IJpegQuality:4435},{IFeederType:4436},{IIccProfile:4437},{IAutoSize:4438},{IAutoDiscardBlankPages:4404},{IAutomaticCropUsesFrame:4439},{IAutomaticLengthDetection:4440}, {IAutomaticColorEnabled:4441},{IAutomaticColorNonColorPixelType:4442},{IColorManagementEnabled:4443},{IImageMerge:4444},{IImageMergeHeightThreshold:4445},{IFilmType:4447},{IMirror:4448},{IJpegSubsampling:4449},{PrinterCharRotation:4167},{PrinterFontStyle:4168},{PrinterIndexLeadChar:4169},{PrinterIndexMaxValue:4170},{PrinterIndexNumDigits:4171},{PrinterIndexStep:4172},{PrinterIndexTrigger:4173},{PrinterStringPreview:4174}],!1),pa=d.EnumGenerator.create([{Afghanistan:1001},{Algeria:213},{Americansamoa:684}, {Andorra:33},{Angola:1002},{Anguilla:8090},{Antigua:8091},{Argentina:54},{Aruba:297},{Ascensioni:247},{Australia:61},{Austria:43},{Bahamas:8092},{Bahrain:973},{Bangladesh:880},{Barbados:8093},{Belgium:32},{Belize:501},{Benin:229},{Bermuda:8094},{Bhutan:1003},{Bolivia:591},{Botswana:267},{Britain:6},{Britvirginis:8095},{Brazil:55},{Brunei:673},{Bulgaria:359},{Burkinafaso:1004},{Burma:1005},{Burundi:1006},{Camaroon:237},{Canada:2},{Capeverdeis:238},{Caymanis:8096},{CentralAfRep:1007},{Chad:1008},{Chile:56}, {China:86},{Christmasis:1009},{Cocosis:1009},{Colombia:57},{Comoros:1010},{Congo:1011},{Cookis:1012},{Costarica:506},{Cuba:5},{Cyprus:357},{Czechoslovakia:42},{Denmark:45},{Djibouti:1013},{Dominica:8097},{Domincanrep:8098},{Easteris:1014},{Ecuador:593},{Egypt:20},{Elsalvador:503},{Eqguinea:1015},{Ethiopia:251},{Falklandis:1016},{Faeroeis:298},{FijiIslands:679},{Finland:358},{France:33},{Frantilles:596},{Frguiana:594},{Frpolyneisa:689},{Futanais:1043},{Gabon:241},{Gambia:220},{Germany:49},{Ghana:233}, {Gibralter:350},{Greece:30},{Greenland:299},{Grenada:8099},{Grenedines:8015},{Guadeloupe:590},{Guam:671},{Guantanamobay:5399},{Guatemala:502},{Guinea:224},{Guineabissau:1017},{Guyana:592},{Haiti:509},{Honduras:504},{Hongkong:852},{Hungary:36},{Iceland:354},{India:91},{Indonesia:62},{Iran:98},{Iraq:964},{Ireland:353},{Israel:972},{Italy:39},{Ivorycoast:225},{Jamaica:8010},{Japan:81},{Jordan:962},{Kenya:254},{Kiribati:1018},{Korea:82},{Kuwait:965},{Laos:1019},{Lebanon:1020},{Liberia:231},{Libya:218}, {Liechtenstein:41},{Luxenbourg:352},{Macao:853},{Madagascar:1021},{Malawi:265},{Malaysia:60},{Maldives:960},{Mali:1022},{Malta:356},{Marshallis:692},{Mauritania:1023},{Mauritius:230},{Mexico:3},{Micronesia:691},{Miquelon:508},{Monaco:33},{Mongolia:1024},{Montserrat:8011},{Morocco:212},{Mozambique:1025},{Namibia:264},{Nauru:1026},{Nepal:977},{Netherlands:31},{Nethantilles:599},{Nevis:8012},{Newcaledonia:687},{Newzealand:64},{Nicaragua:505},{Niger:227},{Nigeria:234},{Niue:1027},{Norfolki:1028},{Norway:47}, {Oman:968},{Pakistan:92},{Palau:1029},{Panama:507},{Paraguay:595},{Peru:51},{Phillippines:63},{Pitcairnis:1030},{Pnewguinea:675},{Poland:48},{Portugal:351},{Qatar:974},{Reunioni:1031},{Romania:40},{Rwanda:250},{Saipan:670},{Sanmarino:39},{Saotome:1033},{SaudiArabia:966},{Senegal:221},{Seychellesis:1034},{Sierraleone:1035},{Singapore:65},{Solomonis:1036},{Somali:1037},{SouthAfrica:27},{Spain:34},{Srilanka:94},{Sthelena:1032},{Stkitts:8013},{Stlucia:8014},{Stpierre:508},{Stvincent:8015},{Sudan:1038}, {Suriname:597},{Swaziland:268},{Sweden:46},{Switzerland:41},{Syria:1039},{Taiwan:886},{Tanzania:255},{Thailand:66},{Tobago:8016},{Togo:228},{Tongais:676},{Trinidad:8016},{Tunisia:216},{Turkey:90},{Turkscaicos:8017},{Tuvalu:1040},{Uganda:256},{UaEmirates:971},{UnitedKingdom:44},{Usa:1},{Uruguay:598},{Vanuatu:1041},{VaticanCity:39},{Venezuela:58},{Wake:1042},{Wallisis:1043},{WesternSahara:1044},{WesternSamoa:1045},{Yemen:1046},{Yugoslavia:38},{Zaire:243},{Zambia:260},{Zimbabwe:263},{Albania:355},{Armenia:374}, {Azerbaijan:994},{Belarus:375},{Bosniaherzgo:387},{Cambodia:855},{Croatia:385},{CzechRepublic:420},{Diegogarcia:246},{Eritrea:291},{Estonia:372},{Georgia:995},{Latvia:371},{Lesotho:266},{Lithuania:370},{Macedonia:389},{Mayotteis:269},{Moldova:373},{Myanmar:95},{NorthKorea:850},{Puertorico:787},{Russia:7},{Serbia:381},{Slovakia:421},{Slovenia:386},{SouthKorea:82},{Ukraine:380},{UsVirginis:340},{Vietnam:84}],!1),qa=d.EnumGenerator.create([{UserLocale:-1},{Danish:0},{Dutch:1},{English:2},{FrenchCanadian:3}, {Finnish:4},{French:5},{German:6},{Icelandic:7},{Italian:8},{Norwegian:9},{Portuguese:10},{Spanish:11},{Swedish:12},{EnglishUsa:13},{Afrikaans:14},{Albania:15},{Arabic:16},{ArabicAlgeria:17},{ArabicBahrain:18},{ArabicEgypt:19},{ArabicIraq:20},{ArabicJordan:21},{ArabicKuwait:22},{ArabicLebanon:23},{ArabicLibya:24},{ArabicMorocco:25},{ArabicOman:26},{ArabicQatar:27},{ArabicSaudiArabia:28},{ArabicSyria:29},{ArabicTunisia:30},{ArabicUae:31},{ArabicYemen:32},{Basque:33},{Byelorussian:34},{Bulgarian:35}, {Catalan:36},{Chinese:37},{ChineseHongkong:38},{ChinesePrc:39},{ChineseSingapore:40},{ChineseSimplified:41},{ChineseTaiwan:42},{ChineseTraditional:43},{Croatia:44},{Czech:45},{DutchBelgian:46},{EnglishAustralian:47},{EnglishCanadian:48},{EnglishIreland:49},{EnglishNewZealand:50},{EnglishSouthAfrica:51},{EnglishUnitedKingdom:52},{Estonian:53},{Faeroese:54},{Farsi:55},{FrenchBelgian:56},{FrenchLuxembourg:57},{FrenchSwiss:58},{GermanAustrian:59},{GermanLuxembourg:60},{GermanLiechtenstein:61},{GermanSwiss:62}, {Greek:63},{Hebrew:64},{Hungarian:65},{Indonesian:66},{ItalianSwiss:67},{Japanese:68},{Korean:69},{KoreanJihab:70},{Latvian:71},{Lithuanian:72},{NorwegianBokmal:73},{NorwegianNynorsk:74},{Polish:75},{PortugueseBrazil:76},{Romanian:77},{Russian:78},{SerbianLatin:79},{Slovak:80},{Slovenian:81},{SpanishMexican:82},{SpanishModern:83},{Thai:84},{Turkish:85},{Ukrainian:86},{Assmese:87},{Bengali:88},{Bihari:89},{Bodo:90},{Dogri:91},{Gujarati:92},{Haryanvi:93},{Hindi:94},{Kannada:95},{Kashmiri:96},{Malayalam:97}, {Marathi:98},{Marwari:99},{Meghalayan:100},{Mizo:101},{Naga:102},{Orissi:103},{Punjabi:104},{Pushtu:105},{SerbianCyrillic:106},{Sikkimi:107},{SwedishFinland:108},{Tamil:109},{Telugu:110},{Tripuri:111},{Urdu:112},{Vietnamese:113}],!1),u=function(){};u._270=null;u._824=null;u._1047=null;u._155=null;u.register=function(b,d,h,p){u._270=b;u._824=d;u._1047=h;u._155=p};u.getUserOS=function(){var d=window.navigator,f=null,h=null;if(null!=d){var f=d.userAgent,p=d.userAgentData;null!=p&&(h=p.platform);null== h&&(h=d.platform)}var d=[b(0,951,5),b(0,3362,9),b(0,2939,8),b(0,2293,6),b(0,2672,6)],p=[b(0,3762,5),b(0,3862,5),b(0,3644,7),b(0,1705,5)],l=[b(0,2037,6),b(0,2168,4),b(0,1288,4)],m=null;-1!==d.indexOf(h)?m=b(0,233,6):-1!==l.indexOf(h)?m=b(0,1116,3):-1!==p.indexOf(h)?m=b(0,3644,7):/Android/.test(f)?m=b(0,3169,7):/Linux/.test(h)&&(m=b(0,1201,5));return m};var V=function(a,f,h,p){var l=V.prototype;l.get_Left=function(){return this._469};l.set_Left=function(b){d.pv.n(b);this._469=b};l.get_Top=function(){return this._1087}; l.set_Top=function(b){d.pv.n(b);this._1087=b};l.get_Right=function(){return this._1204};l.set_Right=function(b){d.pv.n(b);this._1204=b};l.get_Bottom=function(){return this._559};l.set_Bottom=function(b){d.pv.n(b);this._559=b};l.equals=function(b){return d.pv.ic(b,V)?this._469===b._469&&this._1087===b._1087&&this._1204===b._1204&&this._559===b._559:!1};l.toRectangle=function(){return{x:this._469,y:this._1087,width:this._1204-this._469,height:this._559-this._1087}};l.toString=function(){return b(0, 232,1)+this._469+b(0,2247,1)+this._1087+b(0,2062,3)+this._1204+b(0,2247,1)+this._559+b(0,3098,1)};d.pv.n(a,f,h,p);this._469=a;this._1087=f;this._1204=h;this._559=p},W=function(b,f,h){var p=W.prototype;d.pv.n(b,f,h);this._611=b;this._634=f;this._521=h;p.get_MinValue=function(){return this._611};p.get_MaxValue=function(){return this._634};p.get_StepSize=function(){return this._521}},L=function(b,f,h,p){var l=L.prototype;d.pv.n(b,f,h,p);this._547=b;this._259=f;this._1277=h;this._858=p;l.get_X=function(){return this._547}; l.get_Y=function(){return this._259};l.get_Width=function(){return this._1277};l.get_Height=function(){return this._858}},la=function(a,f,h,p,l,m,e){var g=la.prototype;d.pv.s(a);d.pv.s(f);if(!d.pv.ic(h,ja))throw Error(b(0,3553,91));if(!d.pv.ic(p,ka))throw Error(b(0,2435,78));this._479=a;this._1349=f;this._298=h;this._232=p;this._1264=l;this._1343=m;this._821=e;g.get_Id=function(){return this._479};g.get_Name=function(){return this._1349};g.get_ContainerType=function(){return this._298};g.get_ValueType= function(){return this._232};g.get_CurrentValue=function(){return this._1264};g.get_DefaultValue=function(){return this._1343};g.get_SupportedValues=function(){return this._821}},X=function(a,f){var h=X.prototype;null!=a&&0==Array.isArray(a)&&d.pv.te(b(0,3790,60));if(null!=f&&!d.pv.ic(f,W))throw Error(b(0,2299,83));this._523=a;this._625=f;h.get_SupportedValuesAsArray=function(){return this._523};h.get_SupportedValuesAsRange=function(){return this._625}},I=function(){var b=I.prototype;b.get_IsTwain2Compatible= function(){return this._540};b.set_IsTwain2Compatible=function(b){d.pv.b(b);this._540=b};b.get_Is32BitDevicesSupported=function(){return this._385};b.set_Is32BitDevicesSupported=function(b){d.pv.b(b);this._385=b};b.get_Is64BitDevicesSupported=function(){return this._1330};b.set_Is64BitDevicesSupported=function(b){d.pv.b(b);this._1330=b};b.get_CountryCode=function(){return this._959};b.set_CountryCode=function(b){this._959=d.pv.e(b,q.WebTwainCountryCodeEnumJS)};b.get_LanguageType=function(){return this._1175}; b.set_LanguageType=function(b){d.pv.e(b,q.WebTwainLanguageTypeEnumJS);this._1175=b};b.get_TopMostUiWindow=function(){return this._309};b.set_TopMostUiWindow=function(b){d.pv.b(b);this._309=b};b.get_AllowableSessionInactivityTime=function(){return this._556};b.set_AllowableSessionInactivityTime=function(b){d.pv.n(b);(100>b||36E5<b)&&pv.toe();this._556=b};this._1330=this._385=this._540=!0;this._959=new pa(1);this._1175=new qa(2);this._309=!0;this._556=6E4;this._1096=""};d.WebServiceJS.defaultTwainService= -1;var S=function(a){function f(a,e,g){var A=!1,k="",n=!1;null!=e&&null!=g&&(n=!0);var f={data:{twainSessionId:a._1105}},f=new d.WebRequestJS(b(0,2947,14),function(b){var d=b.devices;b=b.defaultDeviceIndex;for(var g=[],n=0;n<d.length;n++){var f=d[n],f=new N(f.productName,f.productFamily,f.manufacturer,f.driverVersion,f.twainVersion,a,f.is64Bit);g.push(f)}if(null!=a._904)for(n=0;n<a._904.length;){d=a._904[n];for(f=0;f<g.length;f++)if(d._248===g[f]._248){g[f]=d;break}a._904.splice(n,1)}a._904=g;a._1035= g[b];A=!0;null!=e&&e(a,a._904,a._1035)},function(d){k=void 0!==d.errorMessage&&""!==d.errorMessage?d.errorMessage:b(0,2199,48);null!=g&&g(a,k)},f,n);a._245.sendRequest(f);if(!n&&!A)throw Error(k);}function h(a){!1===a._37&&d.pv.te(b(0,807,35))}function p(a){var e=new d.WebRequestJS(b(0,2898,19),null,null,{data:{twainSessionId:a._1105}});a._245.sendRequest(e)}var l=S.prototype;null==a&&(a=d.WebServiceJS.defaultTwainService);d.pv.c(a,d.WebServiceJS,b(0,65,77));this._245=a;this._1035=this._18=this._904= this._275=this._1105=this._430=null;this._37=!1;this._540=!0;l.get_IsOpened=function(){return this._37};l.get_IsTwain2Compatible=function(){return this._540};l.get_OpenedDevice=function(){return this._18};l.get_TwainServiceVersion=function(){return this._430};l.get_TwainApiVersion=function(){return q.version};l.get_TwainSessionId=function(){return this._1105};l.get_Devices=function(){h(this);null==this._904&&f(this);return this._904};l.get_DefaultDevice=function(){h(this);null==this._904&&f(this); return this._1035};l.open=function(a){function e(){p(k)}function g(b){k._37=!0;k._540=a._540;x=!0}function f(d){r=void 0!==d.errorMessage&&""!==d.errorMessage?d.errorMessage:b(0,807,35)}d.pv.c(a,I);var k=this,n=!1,x=!1,r="",h={data:{isTwain2Compatible:a._540,regUser:u._270,regUrl:u._824,regCode:u._1047,expirationDate:u._155,is32BitDevicesSupported:a._385,is64BitDevicesSupported:a._1330,applicationUrl:window.location.href,countryCode:a._959.valueOf(),languageType:a._1175.valueOf()}},h=new d.WebRequestJS(b(0, 142,18),function(d){d.serviceVersion!==q.version?r=b(0,3061,37)+d.serviceVersion+b(0,1554,55)+q.version+b(0,1710,98):(k._430=d.serviceVersion,k._1105=d.sessionId,k._275=setInterval(e,a._556),n=!0)},function(d){r=null!=d.serviceVersion&&d.serviceVersion!==q.version?b(0,3061,37)+d.serviceVersion+b(0,1554,55)+q.version+b(0,1710,98):void 0!==d.errorMessage&&""!==d.errorMessage?void 0!==d.Message?void 0!==d.MessageDetail?d.errorMessage+b(0,3861,1)+d.Message+b(0,3861,1)+d.MessageDetail:d.errorMessage+b(0, 3861,1)+d.Message:d.errorMessage:b(0,2248,41)},h,!1);this._245.sendRequest(h);if(n){if(h={data:{twainSessionId:this._1105,applicationProductName:a._1096,topMostUiWindow:a._309}},h=new d.WebRequestJS(b(0,931,17),g,f,h,!1),k._245.sendRequest(h),!x)throw Error(r);}else throw Error(r);};l.openAsync=function(a,e,g){function f(){p(x)}function k(b){x._37=!0;x._540=a._540;e(x)}function n(d){var a=b(0,807,35);void 0!==d.errorMessage&&""!==d.errorMessage&&(a=d.errorMessage);g(x,a)}d.pv.c(a,I);v(e,g);var x= this,h={data:{isTwain2Compatible:a._540,regUser:u._270,regUrl:u._824,regCode:u._1047,expirationDate:u._155,is32BitDevicesSupported:a._385,is64BitDevicesSupported:a._1330,applicationUrl:window.location.href,countryCode:a._959.valueOf(),languageType:a._1175.valueOf()}},l=new d.WebRequestJS(b(0,142,18),function(e){e.serviceVersion!==q.version?(e=b(0,3061,37)+e.serviceVersion+b(0,1554,55)+q.version+b(0,1710,98),g(x,e)):(x._430=e.serviceVersion,x._1105=e.sessionId,x._275=setInterval(f,a._556),h={data:{twainSessionId:x._1105, applicationProductName:a._1096,topMostUiWindow:a._309}},e=new d.WebRequestJS(b(0,931,17),k,n,h),x._245.sendRequest(e))},function(d){var a=b(0,2248,41);void 0!==d.errorMessage&&""!==d.errorMessage&&(a=void 0!==d.Message?void 0!==d.MessageDetail?d.errorMessage+b(0,3861,1)+d.Message+b(0,3861,1)+d.MessageDetail:d.errorMessage+b(0,3861,1)+d.Message:d.errorMessage);g(x,a)},h);this._245.sendRequest(l)};l.close=function(){h(this);var a=this,e=!1,g="";null!=this._275&&(clearInterval(this._275),this._275=null); var f={data:{twainSessionId:this._1105}},f=new d.WebRequestJS(b(0,2881,17),function(b){a._37=!1;a._430=null;a._1105=null;a._904=null;a._18=null;a._1035=null;e=!0},function(d){g=void 0!==d.errorMessage&&""!==d.errorMessage?d.errorMessage:b(0,1458,35)},f,!1);this._245.sendRequest(f);if(!e)throw Error(g);};l.closeAsync=function(a,e){v(a,e);h(this);var g=this;null!=this._275&&(clearInterval(this._275),this._275=null);var f={data:{twainSessionId:this._1105}},f=new d.WebRequestJS(b(0,2881,17),function(b){g._37= !1;g._430=null;g._1105=null;g._904=null;g._18=null;g._1035=null;a(g)},function(d){var a="",a=void 0!==d.errorMessage&&""!==d.errorMessage?d.errorMessage:b(0,1458,35);e(g,a)},f);this._245.sendRequest(f)};l.getDevicesAsync=function(b,d){v(b,d);h(this);null==this._904?f(this,b,d):b(this,this._904,this._1035)};l.findDeviceByName=function(b){for(var d=this.get_Devices(),a=0;a<d.length;a++)if(d[a].get_DeviceName()==b)return twainDevices[a];return null}},N=function(a,f,h,p,l,m,e){function g(c){if(null== c)throw Error(b(0,3713,49));if(d.pv.ic(c,d.WebEnumItemBaseJS))c=c.valueOf().toString();else if(d.pv.isn(c))c=c.toString();else if(!d.pv.iss(c))throw Error(b(0,1E3,116));return c}function A(c){if(null==c)throw Error(b(0,4380,50));if(!Array.isArray(c))throw Error(b(0,1119,52));for(var a=[],e=0;e<c.length;e++){var g=c[e];if(d.pv.ic(g,d.WebEnumItemBaseJS))g=g.valueOf().toString();else if(!d.pv.isn(g))throw Error(b(0,457,109));a.push(g)}return a}function k(c){if(null==c)throw Error(b(0,3867,53));if(!Array.isArray(c))throw Error(b(0, 3371,55));for(var a=0;a<c.length;a++){var e=c[a];if(null==e.capabilityId)throw Error(b(0,2524,82));if(!d.pv.iss(e.capabilityId))throw Error(b(0,1206,42));if(50<e.capabilityId.length)throw Error(b(0,399,58));if(null==e.capabilityValue)throw Error(b(0,2976,85));}}function n(c){if(null==c)throw Error(b(0,4485,52));d.pv.ic(c,d.WebEnumItemBaseJS)&&(c=c.valueOf());return c}function x(c){if(null==c)c=(new s.Twain.WebTwainDeviceCapabilityUsageModeEnumJS(b(0,948,3))).valueOf();else if(d.pv.ic(c,d.WebEnumItemBaseJS))c= c.valueOf();else if(!d.pv.isn(c))throw Error(b(0,661,92));return c}function r(c,d){if(0!=c._102)throw Error(b(0,3220,27));var a=c.getCapability(d,4);return null==a?null:a.get_CurrentValue()}function q(c,d){if(2!=c._102)throw Error(b(0,1411,26));return c.getCapability(d,4).get_CurrentValue()}function M(c,d){if(3!=c._102)throw Error(b(0,160,26));return c.getCapability(d,4).get_CurrentValue()}function u(c,d){if(1!=c._102)throw Error(b(0,4578,25));return c.getCapability(d,4).get_CurrentValue()}function y(c, b){var d=c.getCapability(b,1);if(null==d)return null;d=d._821;return null!=d?null!=d._523?d._523:d._625:null}function t(c,a,e){if(0!=c._102)throw Error(b(0,3220,27));d.pv.ic(e,d.WebEnumItemBaseJS)&&(e=e.valueOf());return c.setCapability(a,e.toString())}function z(c,a,e){if(1!=c._102)throw Error(b(0,4578,25));d.pv.ic(e,d.WebEnumItemBaseJS)&&(e=e.valueOf());return c.setCapability(a,e.toString())}function J(c,a,e){if(2!=c._102)throw Error(b(0,1411,26));d.pv.ic(e,d.WebEnumItemBaseJS)&&(e=e.valueOf()); return c.setCapability(a,e.toString())}function O(c,d,a){if(3!=c._102)throw Error(b(0,160,26));return c.setCapability(d,a.toString())}function B(c){var b=c.id;null!=c.value&&E(b,c.value);null!=c.currentValue&&E(b,c.currentValue);null!=c.defaultValue&&E(b,c.defaultValue)}function E(c,b){try{b.containerType=d.pv.e(b.containerType,ja);b.valueType=d.pv.e(b.valueType,ka);var a=b.containerType.valueOf(),e=b.valueType.valueOf();if(0!==a)if(6===a)T(b,I);else{var g=N._1174[c];if(null!=g)T(b,function(c){var b= c;try{b=d.pv.e(c,g)}catch(a){}return b});else switch(e){case 6:T(b,Q);break;case 7:case 1:case 44:case 2:case 0:case 4:case 5:case 43:case 3:case 15:T(b,I);break;case 8:T(b,U)}}}catch(f){}}function T(c,b){null!=c.value&&(c.value=b(c.value));null!=c.defaultValue&&(c.defaultValue=b(c.defaultValue));c.minValue&&(c.minValue=b(c.minValue));c.maxValue&&(c.maxValue=b(c.maxValue));c.stepSize&&(c.stepSize=b(c.stepSize));var d=c.supportedValues;if(null!=d){for(var a=[],e=0;e<d.length;e++)a[e]=b(d[e]);c.supportedValues= a}}function I(c){return+c}function Q(c){return c===b(0,2289,4)}function U(c){var b=c.match(/\((.*);(.*)\)-\((.*);(.*)\)/);if(5==b.length){for(var d=[],a=1;a<b.length;a++)d.push(+b[a]);if(4===d.length)try{return new V(d[0],d[1],d[2],d[3])}catch(e){}}return c}function w(c){c._223._18==c&&c._37||d.pv.te(b(0,378,21))}function C(c,b){var d=null,a=c.valueOf();0!=(a&1)?d=na(b.id,b.name,b.value):0!=(a&4)?d=na(b.id,b.name,b.currentValue):0!=(a&2)&&(d=na(b.id,b.name,b.defaultValue));return d}function na(c, b,d){if(null==d)return null;var a=d.containerType.valueOf(),e=null;3==a||4==a?e=new X(d.supportedValues,null):6==a&&(e=new X(null,new W(d.minValue,d.maxValue,d.stepSize)));return new la(c,b,d.containerType,d.valueType,d.value,d.defaultValue,e)}d.pv.c(m,S);d.pv.s(a,f,h,p,l);this._223=m;this._37=!1;this._248=a;this._656=f;this._942=h;this._669=p;this._1241=l;this._347=e;this._6=this._533=this._30=null;this._102=0;this._248.substring(0,3)==b(0,2416,3)?this._102=1:this._248.substring(0,4)==b(0,2419,4)? this._102=2:this._248.substring(0,4)==b(0,2678,4)&&(this._102=3);this._1296=0;a=N.prototype;a.get_IsOpened=function(){return this._37};a.get_DeviceName=function(){return this._248};a.get_ProductFamily=function(){return this._656};a.get_Manufacturer=function(){return this._942};a.get_DeviceName=function(){return this._248};a.get_DriverVersion=function(){return this._669};a.get_TwainVersion=function(){return this._1241};a.get_IsTwain2Compatible=function(){return 2<=this._1241};a.get_IsTwain=function(){return 0== this._102};a.get_IsWia=function(){return 1==this._102};a.get_IsSane=function(){return 2==this._102};a.get_IsEscl=function(){return 3==this._102};a.get_Is64Bit=function(){return this._347};a.get_HasFlatbed=function(){w(this);return this._30};a.get_IsFlatbedEnabled=function(){return!this.get_IsFeederEnabled()};a.set_IsFlatbedEnabled=function(c){d.pv.b(c);this.set_IsFeederEnabled(!c)};a.get_HasFeeder=function(){w(this);return this._533};a.get_IsFeederEnabled=function(){var c=this._102;if(0==c)return r(this, 4098);if(1==c)return u(this,4098);if(2==c)return q(this,4098);if(3==c)return M(this,4098)};a.set_IsFeederEnabled=function(c){d.pv.b(c);var b=this._102;0==b?t(this,4098,c):1==b?z(this,4098,c):2==b?J(this,4098,c):3==b&&O(this,4098,c)};a.get_PaperDetectable=function(){return r(this,4109)};a.get_IsFeederLoaded=function(){return r(this,4099)};a.get_HasDuplex=function(){w(this);return this._533};a.get_DuplexMode=function(){return r(this,4114)};a.get_IsDuplexEnabled=function(){var c=this._102;if(0==c)return r(this, 4115);if(1==c)return u(this,4115);if(2==c)return q(this,4115);if(3==c)return M(this,4115)};a.set_IsDuplexEnabled=function(c){d.pv.b(c);var b=this._102;0==b?t(this,4115,c):1==b?z(this,4115,c):2==b?J(this,4115,c):3==b&&O(this,4115,c)};a.get_AutoBright=function(){return r(this,4352)};a.set_AutoBright=function(c){d.pv.b(c);t(this,4352,c)};a.get_AutoFeed=function(){return r(this,4103)};a.set_AutoFeed=function(c){d.pv.b(c);t(this,4103,c)};a.get_AutoScan=function(){return r(this,4112)};a.set_AutoScan=function(c){d.pv.b(c); t(this,4112,c)};a.get_BitDepth=function(){return r(this,4395)};a.set_BitDepth=function(c){d.pv.n(c);t(this,4395,c)};a.get_BitDepthReductionMode=function(){return r(this,4396)};a.set_BitDepthReductionMode=function(c){c=d.pv.e(c,Y);t(this,4396,c)};a.get_Brightness=function(){var c=this._102;if(0==c)return r(this,4353);if(1==c)return u(this,4353);if(2==c)return q(this,4353)};a.set_Brightness=function(c){d.pv.n(c);var b=this._102;0==b?t(this,4353,c):1==b?z(this,4353,c):2==b&&J(this,4353,c)};a.get_BufferedImageCount= function(){return r(this,4125)};a.set_ClearBuffers=function(c){c=d.pv.e(c,R);t(this,4125,c)};a.get_Contrast=function(){var c=this._102;if(0==c)return r(this,4355);if(1==c)return u(this,4355);if(2==c)return q(this,4355)};a.set_Contrast=function(c){d.pv.n(c);var b=this._102;0==b?t(this,4355,c):1==b?z(this,4355,c):2==b&&J(this,4355,c)};a.get_FileFormat=function(){return r(this,4364)};a.set_FileFormat=function(c){c=d.pv.e(c,ia);t(this,4364,c)};a.get_FileJpegQuality=function(){return r(this,4435)};a.set_FileJpegQuality= function(c){d.pv.n(c);t(this,4435,c)};a.get_Halftones=function(){return r(this,4361)};a.set_Halftones=function(c){d.pv.s(c);t(this,4361,c)};a.get_ImageCompression=function(){return r(this,256)};a.set_ImageCompression=function(c){c=d.pv.e(c,K);t(this,256,c)};a.get_ImageFilter=function(){return r(this,4358)};a.set_ImageFilter=function(c){c=d.pv.e(c,Z);t(this,4358,c)};a.get_JobControl=function(){return r(this,4119)};a.set_JobControl=function(c){c=d.pv.e(c,$);t(this,4119,c)};a.get_LampState=function(){return r(this, 4365)};a.set_LampState=function(c){d.pv.b(c);t(this,4365,c)};a.get_LightPath=function(){return r(this,4382)};a.set_LightPath=function(c){c=d.pv.e(c,aa);t(this,4382,c)};a.get_LightSource=function(){return r(this,4366)};a.set_LightSource=function(c){c=d.pv.e(c,ba);t(this,4366,c)};a.get_MaxBatchBuffers=function(){var c=this._102;if(0==c)return r(this,4126);if(1==c)return u(this,4126)};a.set_MaxBatchBuffers=function(c){d.pv.n(c);var b=this._102;0==b?t(this,4126,c):1==b&&z(this,4126,c)};a.get_NoiseFilter= function(){return r(this,4424)};a.set_NoiseFilter=function(c){c=d.pv.e(c,ca);t(this,4424,c)};a.get_Online=function(){return r(this,4111)};a.get_PageAutoSize=function(){return r(this,4438)};a.set_PageAutoSize=function(c){c=d.pv.e(c,da);t(this,4438,c)};a.get_PageOrientation=function(){var c=this._102;if(0==c)return r(this,4368);if(1==c)return u(this,4368)};a.set_PageOrientation=function(c){c=d.pv.e(c,ea);var b=this._102;0==b?t(this,4368,c):1==b&&z(this,4368,c)};a.get_PageSize=function(){var c=this._102; if(0==c)return r(this,4386);if(1==c)return u(this,4386)};a.set_PageSize=function(c){c=d.pv.e(c,fa);var b=this._102;0==b?t(this,4386,c):1==b&&z(this,4386,c)};a.get_PixelFlavor=function(){return r(this,4383)};a.set_PixelFlavor=function(c){c=d.pv.e(c,ga);t(this,4383,c)};a.get_PixelType=function(){var c=this._102,b=null;0==c?b=r(this,257):1==c?b=u(this,257):2==c?b=q(this,257):3==c&&(b=M(this,257));return null!=b?new H(b):null};a.set_PixelType=function(c){c=d.pv.e(c,H);var b=this._102;0==b?t(this,257, c):1==b?z(this,257,c):2==b?J(this,257,c):3==b&&O(this,257,c)};a.get_XResolution=function(){var c=this._102;if(0==c)return r(this,4376);if(1==c)return u(this,4376);if(2==c)return q(this,437