@regulaforensics/ui-components 9.7.1102 → 9.7.1103-nightly

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,4 +10,4 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
10
10
  `};if(t){var l=Number.isInteger(+this.property)?`[${this.property}]`:`${n?`.`:``}${this.property}`;return this.constraints?c(l):this.children?this.children.map(function(t){return t.toString(e,!0,`${n}${l}`,r)}).join(``):``}else return`An instance of ${a}${this.target?this.target.constructor.name:`an object`}${o} has failed the validation:
11
11
  `+(this.constraints?c(this.property):``)+(this.children?this.children.map(function(t){return t.toString(e,!0,i.property,r)}).join(``):``)},e}(),fl=function(){function e(){}return e.isValid=function(e){var t=this;return e!==`isValid`&&e!==`getMessage`&&Object.keys(this).map(function(e){return t[e]}).indexOf(e)!==-1},e.CUSTOM_VALIDATION=`customValidation`,e.NESTED_VALIDATION=`nestedValidation`,e.PROMISE_VALIDATION=`promiseValidation`,e.CONDITIONAL_VALIDATION=`conditionalValidation`,e.WHITELIST=`whitelistValidation`,e.IS_DEFINED=`isDefined`,e}();function pl(e){return Array.isArray(e)?e.join(`, `):(typeof e==`symbol`&&(e=e.description),`${e}`)}var ml=function(){function e(){}return e.replaceMessageSpecialTokens=function(e,t){var n;return e instanceof Function?n=e(t):typeof e==`string`&&(n=e),n&&Array.isArray(t.constraints)&&t.constraints.forEach(function(e,t){n=n.replace(RegExp(`\\\$constraint${t+1}`,`g`),pl(e))}),n&&t.value!==void 0&&t.value!==null&&[`string`,`boolean`,`number`].includes(typeof t.value)&&(n=n.replace(/\$value/g,t.value)),n&&=n.replace(/\$property/g,t.property),n&&=n.replace(/\$target/g,t.targetName),n},e}(),hl=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},gl=function(){function e(e,t){this.validator=e,this.validatorOptions=t,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=ul()}return e.prototype.execute=function(e,t,n){var r=this;!this.metadataStorage.hasValidationMetaData&&this.validatorOptions?.enableDebugMessages===!0&&console.warn(`No validation metadata found. No validation will be performed. There are multiple possible reasons:
12
12
  - There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.
13
- - This validation runs before any file with validation decorator was parsed by NodeJS.`);var i=this.validatorOptions?this.validatorOptions.groups:void 0,a=this.validatorOptions&&this.validatorOptions.strictGroups||!1,o=this.validatorOptions&&this.validatorOptions.always||!1,s=this.validatorOptions?.forbidUnknownValues===void 0||this.validatorOptions.forbidUnknownValues!==!1,c=this.metadataStorage.getTargetValidationMetadatas(e.constructor,t,o,a,i),l=this.metadataStorage.groupByPropertyName(c);if(s&&!c.length){var u=new dl;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(u.target=e),u.value=void 0,u.property=void 0,u.children=[],u.constraints={unknownValue:`an unknown value was passed to the validate function`},n.push(u);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,l,n),Object.keys(l).forEach(function(t){var i=e[t],a=l[t].filter(function(e){return e.type===fl.IS_DEFINED}),o=l[t].filter(function(e){return e.type!==fl.IS_DEFINED&&e.type!==fl.WHITELIST});i instanceof Promise&&o.find(function(e){return e.type===fl.PROMISE_VALIDATION})?r.awaitingPromises.push(i.then(function(i){r.performValidations(e,i,t,a,o,n)})):r.performValidations(e,i,t,a,o,n)})},e.prototype.whitelist=function(e,t,n){var r=this,i=[];Object.keys(e).forEach(function(e){(!t[e]||t[e].length===0)&&i.push(e)}),i.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?i.forEach(function(t){var i,a=r.generateValidationError(e,e[t],t);a.constraints=(i={},i[fl.WHITELIST]=`property ${t} should not exist`,i),a.children=void 0,n.push(a)}):i.forEach(function(t){return delete e[t]}))},e.prototype.stripEmptyErrors=function(e){var t=this;return e.filter(function(e){if(e.children&&=t.stripEmptyErrors(e.children),Object.keys(e.constraints).length===0){if(e.children.length===0)return!1;delete e.constraints}return!0})},e.prototype.performValidations=function(e,t,n,r,i,a){var o=i.filter(function(e){return e.type===fl.CUSTOM_VALIDATION}),s=i.filter(function(e){return e.type===fl.NESTED_VALIDATION}),c=i.filter(function(e){return e.type===fl.CONDITIONAL_VALIDATION}),l=this.generateValidationError(e,t,n);a.push(l),this.conditionalValidations(e,t,c)&&(this.customValidations(e,t,r,l),this.mapContexts(e,t,r,l),!(t===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(t===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||t==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(e,t,o,l),this.nestedValidations(t,s,l),this.mapContexts(e,t,i,l),this.mapContexts(e,t,o,l))))},e.prototype.generateValidationError=function(e,t,n){var r=new dl;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(r.target=e),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(r.value=t),r.property=n,r.children=[],r.constraints={},r},e.prototype.conditionalValidations=function(e,t,n){return n.map(function(n){return n.constraints[0](e,t)}).reduce(function(e,t){return e&&t},!0)},e.prototype.customValidations=function(e,t,n,r){var i=this;n.forEach(function(n){var a=function(){return{targetName:e.constructor?e.constructor.name:void 0,property:n.propertyName,object:e,value:t,constraints:n.constraints}};n.validateIf&&!n.validateIf(e,t)||i.metadataStorage.getTargetValidatorConstraints(n.constraintCls).forEach(function(o){if(!(o.async&&i.ignoreAsyncValidations)&&!(i.validatorOptions&&i.validatorOptions.stopAtFirstError&&Object.keys(r.constraints||{}).length>0)){var s=a();if(!n.each||!(Array.isArray(t)||t instanceof Set||t instanceof Map)){var c=o.instance.validate(t,s);if(al(c)){var l=c.then(function(a){if(!a){var s=hl(i.createValidationError(e,t,n,o),2),c=s[0],l=s[1];r.constraints[c]=l,n.context&&(r.contexts||={},r.contexts[c]=Object.assign(r.contexts[c]||{},n.context))}});i.awaitingPromises.push(l)}else if(!c){var u=hl(i.createValidationError(e,t,n,o),2),d=u[0],f=u[1];r.constraints[d]=f}return}var p=rl(t).map(function(e){return o.instance.validate(e,s)});if(p.some(function(e){return al(e)})){var m=p.map(function(e){return al(e)?e:Promise.resolve(e)}),h=Promise.all(m).then(function(a){if(!a.every(function(e){return e})){var s=hl(i.createValidationError(e,t,n,o),2),c=s[0],l=s[1];r.constraints[c]=l,n.context&&(r.contexts||={},r.contexts[c]=Object.assign(r.contexts[c]||{},n.context))}});i.awaitingPromises.push(h);return}if(!p.every(function(e){return e})){var g=hl(i.createValidationError(e,t,n,o),2),d=g[0],f=g[1];r.constraints[d]=f}}})})},e.prototype.nestedValidations=function(e,t,n){var r=this;e!==void 0&&t.forEach(function(i){if(!(i.type!==fl.NESTED_VALIDATION&&i.type!==fl.PROMISE_VALIDATION)&&!(r.validatorOptions&&r.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0))if(Array.isArray(e)||e instanceof Set||e instanceof Map)(e instanceof Set?Array.from(e):e).forEach(function(i,a){r.performValidations(e,i,a.toString(),[],t,n.children)});else if(e instanceof Object){var a=typeof i.target==`string`?i.target:i.target.name;r.execute(e,a,n.children)}else{var o=hl(r.createValidationError(i.target,e,i),2),s=o[0],c=o[1];n.constraints[s]=c}})},e.prototype.mapContexts=function(e,t,n,r){var i=this;return n.forEach(function(e){if(e.context){var t=void 0;e.type===fl.CUSTOM_VALIDATION&&(t=i.metadataStorage.getTargetValidatorConstraints(e.constraintCls)[0]);var n=i.getConstraintType(e,t);r.constraints[n]&&(r.contexts||={},r.contexts[n]=Object.assign(r.contexts[n]||{},e.context))}})},e.prototype.createValidationError=function(e,t,n,r){var i=e.constructor?e.constructor.name:void 0,a=this.getConstraintType(n,r),o={targetName:i,property:n.propertyName,object:e,value:t,constraints:n.constraints},s=n.message||``;return!n.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&r&&r.instance.defaultMessage instanceof Function&&(s=r.instance.defaultMessage(o)),[a,ml.replaceMessageSpecialTokens(s,o)]},e.prototype.getConstraintType=function(e,t){return t&&t.name?t.name:e.type},e}(),_l=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},vl=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},yl=function(){function e(){}return e.prototype.validate=function(e,t,n){return this.coreValidate(e,t,n)},e.prototype.validateOrReject=function(e,t,n){return _l(this,void 0,void 0,function(){var r;return vl(this,function(i){switch(i.label){case 0:return[4,this.coreValidate(e,t,n)];case 1:return r=i.sent(),r.length?[2,Promise.reject(r)]:[2]}})})},e.prototype.validateSync=function(e,t,n){var r=typeof e==`string`?t:e,i=typeof e==`string`?n:t,a=typeof e==`string`?e:void 0,o=new gl(this,i);o.ignoreAsyncValidations=!0;var s=[];return o.execute(r,a,s),o.stripEmptyErrors(s)},e.prototype.coreValidate=function(e,t,n){var r=typeof e==`string`?t:e,i=typeof e==`string`?n:t,a=typeof e==`string`?e:void 0,o=new gl(this,i),s=[];return o.execute(r,a,s),Promise.all(o.awaitingPromises).then(function(){return o.stripEmptyErrors(s)})},e}(),bl=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}()),xl,Sl;function Cl(e){if(xl)try{var t=xl.get(e);if(t||!Sl||!Sl.fallback)return t}catch(e){if(!Sl||!Sl.fallbackOnErrors)throw e}return bl.get(e)}var wl=function(){function e(e,t,n){n===void 0&&(n=!1),this.target=e,this.name=t,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return Cl(this.target)},enumerable:!1,configurable:!0}),e}();function Tl(e){var t;if(e.validator instanceof Function){if(t=e.validator,Cl(ll).getTargetValidatorConstraints(e.validator).length>1)throw`More than one implementation of ValidatorConstraintInterface found for validator on: ${e.target.name}:${e.propertyName}`}else{var n=e.validator;t=function(){function e(){}return e.prototype.validate=function(e,t){return n.validate(e,t)},e.prototype.defaultMessage=function(e){return n.defaultMessage?n.defaultMessage(e):``},e}(),ul().addConstraintMetadata(new wl(t,e.name,e.async))}var r={type:e.name&&fl.isValid(e.name)?e.name:fl.CUSTOM_VALIDATION,name:e.name,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};ul().addValidationMetadata(new tl(r))}function El(e,t){return function(n){return e(t&&t.each?`each value in `:``,n)}}function Dl(e,t){return function(n,r){Tl({name:e.name,target:n.constructor,propertyName:r,options:t,constraints:e.constraints,validator:e.validator})}}var Ol=fl.IS_DEFINED;function kl(e){return e!=null}function I(e){return Dl({name:Ol,validator:{validate:function(e){return kl(e)},defaultMessage:El(function(e){return e+`$property should not be null or undefined`},e)}},e)}var Al=`isOptional`;function L(e){return function(t,n){var r={type:fl.CONDITIONAL_VALIDATION,name:Al,target:t.constructor,propertyName:n,constraints:[function(e,t){return e[n]!==null&&e[n]!==void 0}],validationOptions:e};ul().addValidationMetadata(new tl(r))}}var jl=function(){return jl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},jl.apply(this,arguments)};function R(e){var t=jl({},e),n=t.each?`each value in `:``;return t.message=t.message||n+`nested property $property must be either object or array`,function(e,n){var r={type:fl.NESTED_VALIDATION,target:e.constructor,propertyName:n,validationOptions:t};ul().addValidationMetadata(new tl(r))}}var Ml=o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(e){if(e==null)throw TypeError(`Expected a string but received a ${e}`);if(e.constructor.name!==`String`)throw TypeError(`Expected a string but received a ${e.constructor.name}`)}t.exports=e.default,t.exports.default=e.default})),Nl=o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}t.exports=e.default,t.exports.default=e.default})),Pl=`isIn`;function Fl(e,t){return Array.isArray(t)&&t.some(function(t){return t===e})}function Il(e,t){return Dl({name:Pl,constraints:[e],validator:{validate:function(e,t){return Fl(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must be one of the following values: $constraint1`},t)}},t)}function Ll(e,t){return typeof e==`number`&&typeof t==`number`&&e>=t}function Rl(e,t){return Dl({name:`min`,constraints:[e],validator:{validate:function(e,t){return Ll(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must not be less than $constraint1`},t)}},t)}var zl=c(o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var n=i(Ml()),r=i(Nl());function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Za-z0-9+/]+={0,2}$/,o=/^[A-Za-z0-9+/]+$/,s=/^[A-Za-z0-9_-]+={0,2}$/,c=/^[A-Za-z0-9_-]+$/;function l(e,t){var i;if((0,n.default)(e),t=(0,r.default)(t,{urlSafe:!1,padding:!((i=t)!=null&&i.urlSafe)}),e===``)return!0;if(t.padding&&e.length%4!=0)return!1;var l=t.urlSafe?t.padding?s:c:t.padding?a:o;return(!t.padding||e.length%4==0)&&l.test(e)}t.exports=e.default,t.exports.default=e.default}))()),Bl=`isBase64`;function Vl(e,t){return typeof e==`string`&&(0,zl.default)(e,t)}function Hl(e,t){return Dl({name:Bl,constraints:[e],validator:{validate:function(e,t){return Vl(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must be base64 encoded`},t)}},t)}var Ul=c(o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var n=r(Ml());function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}function a(e,t){(0,n.default)(e);var r,a;i(t)===`object`?(r=t.min||0,a=t.max):(r=arguments[1]||0,a=arguments[2]);var o=e.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],c=e.length-o.length-s.length,l=c>=r&&(a===void 0||c<=a);return l&&Array.isArray(t?.discreteLengths)?t.discreteLengths.some(function(e){return e===c}):l}t.exports=e.default,t.exports.default=e.default}))()),Wl=`maxLength`;function Gl(e,t){return typeof e==`string`&&(0,Ul.default)(e,{min:0,max:t})}function Kl(e,t){return Dl({name:Wl,constraints:[e],validator:{validate:function(e,t){return Gl(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must be shorter than or equal to $constraint1 characters`},t)}},t)}var ql=`isBoolean`;function Jl(e){return e instanceof Boolean||typeof e==`boolean`}function z(e){return Dl({name:ql,validator:{validate:function(e,t){return Jl(e)},defaultMessage:El(function(e){return e+`$property must be a boolean value`},e)}},e)}var Yl=`isNumber`;function Xl(e,t){if(t===void 0&&(t={}),typeof e!=`number`)return!1;if(e===1/0||e===-1/0)return!!t.allowInfinity;if(Number.isNaN(e))return!!t.allowNaN;if(t.maxDecimalPlaces!==void 0){var n=0;if(e%1!=0&&(n=e.toString().split(`.`)[1].length),n>t.maxDecimalPlaces)return!1}return Number.isFinite(e)}function B(e,t){return e===void 0&&(e={}),Dl({name:Yl,constraints:[e],validator:{validate:function(e,t){return Xl(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must be a number conforming to the specified constraints`},t)}},t)}var Zl=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Ql=`isEnum`;function $l(e,t){return Object.keys(t).map(function(e){return t[e]}).includes(e)}function eu(e){return Object.entries(e).filter(function(e){var t=Zl(e,2),n=t[0];return t[1],isNaN(parseInt(n))}).map(function(e){var t=Zl(e,2);return t[0],t[1]})}function V(e,t){return Dl({name:Ql,constraints:[e,eu(e)],validator:{validate:function(e,t){return $l(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must be one of the following values: $constraint2`},t)}},t)}var tu=`isInt`;function nu(e){return typeof e==`number`&&Number.isInteger(e)}function H(e){return Dl({name:tu,validator:{validate:function(e,t){return nu(e)},defaultMessage:El(function(e){return e+`$property must be an integer number`},e)}},e)}var ru=`isString`;function iu(e){return e instanceof String||typeof e==`string`}function U(e){return Dl({name:ru,validator:{validate:function(e,t){return iu(e)},defaultMessage:El(function(e){return e+`$property must be a string`},e)}},e)}var au=`isArray`;function ou(e){return Array.isArray(e)}function W(e){return Dl({name:au,validator:{validate:function(e,t){return ou(e)},defaultMessage:El(function(e){return e+`$property must be an array`},e)}},e)}var su=`arrayMinSize`;function cu(e,t){return Array.isArray(e)&&e.length>=t}function lu(e,t){return Dl({name:su,constraints:[e],validator:{validate:function(e,t){return cu(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must contain at least $constraint1 elements`},t)}},t)}var uu=`arrayMaxSize`;function du(e,t){return Array.isArray(e)&&e.length<=t}function fu(e,t){return Dl({name:uu,constraints:[e],validator:{validate:function(e,t){return du(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must contain no more than $constraint1 elements`},t)}},t)}function G(e,t,n){return typeof e==`string`?Cl(yl).validateSync(e,t,n):Cl(yl).validateSync(e,t)}function K(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function q(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var pu=class{};q([I(),B(),K(`design:type`,Number)],pu.prototype,`x`,void 0),q([L(),B(),K(`design:type`,Number)],pu.prototype,`y`,void 0);var mu;(function(e){e[e.PLAIN_TO_CLASS=0]=`PLAIN_TO_CLASS`,e[e.CLASS_TO_PLAIN=1]=`CLASS_TO_PLAIN`,e[e.CLASS_TO_CLASS=2]=`CLASS_TO_CLASS`})(mu||={});var hu=new(function(){function e(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return e.prototype.addTypeMetadata=function(e){this._typeMetadatas.has(e.target)||this._typeMetadatas.set(e.target,new Map),this._typeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.addTransformMetadata=function(e){this._transformMetadatas.has(e.target)||this._transformMetadatas.set(e.target,new Map),this._transformMetadatas.get(e.target).has(e.propertyName)||this._transformMetadatas.get(e.target).set(e.propertyName,[]),this._transformMetadatas.get(e.target).get(e.propertyName).push(e)},e.prototype.addExposeMetadata=function(e){this._exposeMetadatas.has(e.target)||this._exposeMetadatas.set(e.target,new Map),this._exposeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.addExcludeMetadata=function(e){this._excludeMetadatas.has(e.target)||this._excludeMetadatas.set(e.target,new Map),this._excludeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.findTransformMetadatas=function(e,t,n){return this.findMetadatas(this._transformMetadatas,e,t).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?n===mu.CLASS_TO_CLASS||n===mu.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?n===mu.CLASS_TO_PLAIN:!0})},e.prototype.findExcludeMetadata=function(e,t){return this.findMetadata(this._excludeMetadatas,e,t)},e.prototype.findExposeMetadata=function(e,t){return this.findMetadata(this._exposeMetadatas,e,t)},e.prototype.findExposeMetadataByCustomName=function(e,t){return this.getExposedMetadatas(e).find(function(e){return e.options&&e.options.name===t})},e.prototype.findTypeMetadata=function(e,t){return this.findMetadata(this._typeMetadatas,e,t)},e.prototype.getStrategy=function(e){var t=this._excludeMetadatas.get(e),n=t&&t.get(void 0),r=this._exposeMetadatas.get(e),i=r&&r.get(void 0);return n&&i||!n&&!i?`none`:n?`excludeAll`:`exposeAll`},e.prototype.getExposedMetadatas=function(e){return this.getMetadata(this._exposeMetadatas,e)},e.prototype.getExcludedMetadatas=function(e){return this.getMetadata(this._excludeMetadatas,e)},e.prototype.getExposedProperties=function(e,t){return this.getExposedMetadatas(e).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?t===mu.CLASS_TO_CLASS||t===mu.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?t===mu.CLASS_TO_PLAIN:!0}).map(function(e){return e.propertyName})},e.prototype.getExcludedProperties=function(e,t){return this.getExcludedMetadatas(e).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?t===mu.CLASS_TO_CLASS||t===mu.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?t===mu.CLASS_TO_PLAIN:!0}).map(function(e){return e.propertyName})},e.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},e.prototype.getMetadata=function(e,t){var n=e.get(t),r;n&&(r=Array.from(n.values()).filter(function(e){return e.propertyName!==void 0}));for(var i=[],a=0,o=this.getAncestors(t);a<o.length;a++){var s=o[a],c=e.get(s);if(c){var l=Array.from(c.values()).filter(function(e){return e.propertyName!==void 0});i.push.apply(i,l)}}return i.concat(r||[])},e.prototype.findMetadata=function(e,t,n){var r=e.get(t);if(r){var i=r.get(n);if(i)return i}for(var a=0,o=this.getAncestors(t);a<o.length;a++){var s=o[a],c=e.get(s);if(c){var l=c.get(n);if(l)return l}}},e.prototype.findMetadatas=function(e,t,n){var r=e.get(t),i;r&&(i=r.get(n));for(var a=[],o=0,s=this.getAncestors(t);o<s.length;o++){var c=s[o],l=e.get(c);l&&l.has(n)&&a.push.apply(a,l.get(n))}return a.slice().reverse().concat((i||[]).slice().reverse())},e.prototype.getAncestors=function(e){if(!e)return[];if(!this._ancestorsMap.has(e)){for(var t=[],n=Object.getPrototypeOf(e.prototype.constructor);n.prototype!==void 0;n=Object.getPrototypeOf(n.prototype.constructor))t.push(n);this._ancestorsMap.set(e,t)}return this._ancestorsMap.get(e)},e}());function gu(){if(typeof globalThis<`u`)return globalThis;if(typeof global<`u`)return global;if(typeof window<`u`)return window;if(typeof self<`u`)return self}function _u(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}var vu=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};function yu(e){var t=new e;return!(t instanceof Set)&&!(`push`in t)?[]:t}var bu=function(){function e(e,t){this.transformationType=e,this.options=t,this.recursionStack=new Set}return e.prototype.transform=function(e,t,n,r,i,a){var o=this;if(a===void 0&&(a=0),Array.isArray(t)||t instanceof Set){var s=r&&this.transformationType===mu.PLAIN_TO_CLASS?yu(r):[];return t.forEach(function(t,r){var i=e?e[r]:void 0;if(!o.options.enableCircularCheck||!o.isCircular(t)){var c=void 0;if(typeof n!=`function`&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(o.transformationType===mu.PLAIN_TO_CLASS){c=n.options.discriminator.subTypes.find(function(e){return e.name===t[n.options.discriminator.property]});var l={newObject:s,object:t,property:void 0},u=n.typeFunction(l);c=c===void 0?u:c.value,n.options.keepDiscriminatorProperty||delete t[n.options.discriminator.property]}o.transformationType===mu.CLASS_TO_CLASS&&(c=t.constructor),o.transformationType===mu.CLASS_TO_PLAIN&&(t[n.options.discriminator.property]=n.options.discriminator.subTypes.find(function(e){return e.value===t.constructor}).name)}else c=n;var d=o.transform(i,t,c,void 0,t instanceof Map,a+1);s instanceof Set?s.add(d):s.push(d)}else o.transformationType===mu.CLASS_TO_CLASS&&(s instanceof Set?s.add(t):s.push(t))}),s}else if(n===String&&!i)return t==null?t:String(t);else if(n===Number&&!i)return t==null?t:Number(t);else if(n===Boolean&&!i)return t==null?t:!!t;else if((n===Date||t instanceof Date)&&!i)return t instanceof Date?new Date(t.valueOf()):t==null?t:new Date(t);else if(gu().Buffer&&(n===Buffer||t instanceof Buffer)&&!i)return t==null?t:Buffer.from(t);else if(_u(t)&&!i)return new Promise(function(e,r){t.then(function(t){return e(o.transform(void 0,t,n,void 0,void 0,a+1))},r)});else if(!i&&typeof t==`object`&&t&&typeof t.then==`function`)return t;else if(typeof t==`object`&&t){!n&&t.constructor!==Object&&(!Array.isArray(t)&&t.constructor===Array||(n=t.constructor)),!n&&e&&(n=e.constructor),this.options.enableCircularCheck&&this.recursionStack.add(t);var c=this.getKeys(n,t,i),l=e||{};!e&&(this.transformationType===mu.PLAIN_TO_CLASS||this.transformationType===mu.CLASS_TO_CLASS)&&(l=i?new Map:n?new n:{});for(var u=function(r){if(r===`__proto__`||r===`constructor`)return`continue`;var o=r,s=r,c=r;if(!d.options.ignoreDecorators&&n){if(d.transformationType===mu.PLAIN_TO_CLASS){var u=hu.findExposeMetadataByCustomName(n,r);u&&(c=u.propertyName,s=u.propertyName)}else if(d.transformationType===mu.CLASS_TO_PLAIN||d.transformationType===mu.CLASS_TO_CLASS){var u=hu.findExposeMetadata(n,r);u&&u.options&&u.options.name&&(s=u.options.name)}}var f=void 0;f=d.transformationType===mu.PLAIN_TO_CLASS?t[o]:t instanceof Map?t.get(o):t[o]instanceof Function?t[o]():t[o];var p=void 0,m=f instanceof Map;if(n&&i)p=n;else if(n){var h=hu.findTypeMetadata(n,c);if(h){var g={newObject:l,object:t,property:c},_=h.typeFunction?h.typeFunction(g):h.reflectedType;h.options&&h.options.discriminator&&h.options.discriminator.property&&h.options.discriminator.subTypes?t[o]instanceof Array?p=h:(d.transformationType===mu.PLAIN_TO_CLASS&&(p=h.options.discriminator.subTypes.find(function(e){if(f&&f instanceof Object&&h.options.discriminator.property in f)return e.name===f[h.options.discriminator.property]}),p=p===void 0?_:p.value,h.options.keepDiscriminatorProperty||f&&f instanceof Object&&h.options.discriminator.property in f&&delete f[h.options.discriminator.property]),d.transformationType===mu.CLASS_TO_CLASS&&(p=f.constructor),d.transformationType===mu.CLASS_TO_PLAIN&&f&&(f[h.options.discriminator.property]=h.options.discriminator.subTypes.find(function(e){return e.value===f.constructor}).name)):p=_,m||=h.reflectedType===Map}else if(d.options.targetMaps)d.options.targetMaps.filter(function(e){return e.target===n&&!!e.properties[c]}).forEach(function(e){return p=e.properties[c]});else if(d.options.enableImplicitConversion&&d.transformationType===mu.PLAIN_TO_CLASS){var v=Reflect.getMetadata(`design:type`,n.prototype,c);v&&(p=v)}}var y=Array.isArray(t[o])?d.getReflectedType(n,c):void 0,b=e?e[o]:void 0;if(l.constructor.prototype){var x=Object.getOwnPropertyDescriptor(l.constructor.prototype,s);if((d.transformationType===mu.PLAIN_TO_CLASS||d.transformationType===mu.CLASS_TO_CLASS)&&(x&&!x.set||l[s]instanceof Function))return`continue`}if(!d.options.enableCircularCheck||!d.isCircular(f)){var S=d.transformationType===mu.PLAIN_TO_CLASS?s:r,C=void 0;d.transformationType===mu.CLASS_TO_PLAIN?(C=t[S],C=d.applyCustomTransformations(C,n,S,t,d.transformationType),C=t[S]===C?f:C,C=d.transform(b,C,p,y,m,a+1)):f===void 0&&d.options.exposeDefaultValues?C=l[s]:(C=d.transform(b,f,p,y,m,a+1),C=d.applyCustomTransformations(C,n,S,t,d.transformationType)),(C!==void 0||d.options.exposeUnsetFields)&&(l instanceof Map?l.set(s,C):l[s]=C)}else if(d.transformationType===mu.CLASS_TO_CLASS){var C=f;C=d.applyCustomTransformations(C,n,r,t,d.transformationType),(C!==void 0||d.options.exposeUnsetFields)&&(l instanceof Map?l.set(s,C):l[s]=C)}},d=this,f=0,p=c;f<p.length;f++){var m=p[f];u(m)}return this.options.enableCircularCheck&&this.recursionStack.delete(t),l}else return t},e.prototype.applyCustomTransformations=function(e,t,n,r,i){var a=this,o=hu.findTransformMetadatas(t,n,this.transformationType);return this.options.version!==void 0&&(o=o.filter(function(e){return e.options?a.checkVersion(e.options.since,e.options.until):!0})),o=this.options.groups&&this.options.groups.length?o.filter(function(e){return e.options?a.checkGroups(e.options.groups):!0}):o.filter(function(e){return!e.options||!e.options.groups||!e.options.groups.length}),o.forEach(function(t){e=t.transformFn({value:e,key:n,obj:r,type:i,options:a.options})}),e},e.prototype.isCircular=function(e){return this.recursionStack.has(e)},e.prototype.getReflectedType=function(e,t){if(e){var n=hu.findTypeMetadata(e,t);return n?n.reflectedType:void 0}},e.prototype.getKeys=function(e,t,n){var r=this,i=hu.getStrategy(e);i===`none`&&(i=this.options.strategy||`exposeAll`);var a=[];if((i===`exposeAll`||n)&&(a=t instanceof Map?Array.from(t.keys()):Object.keys(t)),n)return a;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&e){var o=hu.getExposedProperties(e,this.transformationType),s=hu.getExcludedProperties(e,this.transformationType);a=vu(vu([],o,!0),s,!0)}if(!this.options.ignoreDecorators&&e){var o=hu.getExposedProperties(e,this.transformationType);this.transformationType===mu.PLAIN_TO_CLASS&&(o=o.map(function(t){var n=hu.findExposeMetadata(e,t);return n&&n.options&&n.options.name?n.options.name:t})),a=this.options.excludeExtraneousValues?o:a.concat(o);var c=hu.getExcludedProperties(e,this.transformationType);c.length>0&&(a=a.filter(function(e){return!c.includes(e)})),this.options.version!==void 0&&(a=a.filter(function(t){var n=hu.findExposeMetadata(e,t);return!n||!n.options?!0:r.checkVersion(n.options.since,n.options.until)})),a=this.options.groups&&this.options.groups.length?a.filter(function(t){var n=hu.findExposeMetadata(e,t);return!n||!n.options?!0:r.checkGroups(n.options.groups)}):a.filter(function(t){var n=hu.findExposeMetadata(e,t);return!n||!n.options||!n.options.groups||!n.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(a=a.filter(function(e){return r.options.excludePrefixes.every(function(t){return e.substr(0,t.length)!==t})})),a=a.filter(function(e,t,n){return n.indexOf(e)===t}),a},e.prototype.checkVersion=function(e,t){var n=!0;return n&&e&&(n=this.options.version>=e),n&&t&&(n=this.options.version<t),n},e.prototype.checkGroups=function(e){return e?this.options.groups.some(function(t){return e.includes(t)}):!0},e}(),xu={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0},Su=function(){return Su=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Su.apply(this,arguments)},Cu=function(){function e(){}return e.prototype.instanceToPlain=function(e,t){return new bu(mu.CLASS_TO_PLAIN,Su(Su({},xu),t)).transform(void 0,e,void 0,void 0,void 0,void 0)},e.prototype.classToPlainFromExist=function(e,t,n){return new bu(mu.CLASS_TO_PLAIN,Su(Su({},xu),n)).transform(t,e,void 0,void 0,void 0,void 0)},e.prototype.plainToInstance=function(e,t,n){return new bu(mu.PLAIN_TO_CLASS,Su(Su({},xu),n)).transform(void 0,t,e,void 0,void 0,void 0)},e.prototype.plainToClassFromExist=function(e,t,n){return new bu(mu.PLAIN_TO_CLASS,Su(Su({},xu),n)).transform(e,t,void 0,void 0,void 0,void 0)},e.prototype.instanceToInstance=function(e,t){return new bu(mu.CLASS_TO_CLASS,Su(Su({},xu),t)).transform(void 0,e,void 0,void 0,void 0,void 0)},e.prototype.classToClassFromExist=function(e,t,n){return new bu(mu.CLASS_TO_CLASS,Su(Su({},xu),n)).transform(t,e,void 0,void 0,void 0,void 0)},e.prototype.serialize=function(e,t){return JSON.stringify(this.instanceToPlain(e,t))},e.prototype.deserialize=function(e,t,n){var r=JSON.parse(t);return this.plainToInstance(e,r,n)},e.prototype.deserializeArray=function(e,t,n){var r=JSON.parse(t);return this.plainToInstance(e,r,n)},e}();function J(e){return e===void 0&&(e={}),function(t,n){hu.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}function wu(e,t){return t===void 0&&(t={}),function(n,r){hu.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}function Y(e,t){return t===void 0&&(t={}),function(n,r){var i=Reflect.getMetadata(`design:type`,n,r);hu.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}var Tu=new Cu;function Eu(e,t){return Tu.instanceToPlain(e,t)}function X(e,t,n){return Tu.plainToInstance(e,t,n)}function Du(e,t,n){return Tu.plainToInstance(e,t,n)}var Ou=class{};q([I(),W(),R({each:!0}),Y(()=>pu),K(`design:type`,Array)],Ou.prototype,`PointsList`,void 0);var ku=class{};q([I(),H(),K(`design:type`,Number)],ku.prototype,`Count`,void 0),q([I(),R({each:!0}),W(),Y(()=>Z),K(`design:type`,Array)],ku.prototype,`List`,void 0),q([I(),R({each:!0}),W(),Y(()=>Ou),K(`design:type`,Array)],ku.prototype,`Points`,void 0);var Au=class{};q([I(),V(fr),K(`design:type`,fr===void 0?Object:fr)],Au.prototype,`docFormat`,void 0),q([I(),B(),K(`design:type`,Number)],Au.prototype,`Angle`,void 0),q([I(),B(),K(`design:type`,Number)],Au.prototype,`Width`,void 0),q([I(),B(),K(`design:type`,Number)],Au.prototype,`Height`,void 0),q([I(),R(),Y(()=>pu),K(`design:type`,pu===void 0?Object:pu)],Au.prototype,`Center`,void 0),q([I(),R(),Y(()=>pu),K(`design:type`,pu===void 0?Object:pu)],Au.prototype,`LeftBottom`,void 0),q([I(),R(),Y(()=>pu),K(`design:type`,pu===void 0?Object:pu)],Au.prototype,`LeftTop`,void 0),q([I(),R(),Y(()=>pu),K(`design:type`,pu===void 0?Object:pu)],Au.prototype,`RightBottom`,void 0),q([I(),R(),Y(()=>pu),K(`design:type`,pu===void 0?Object:pu)],Au.prototype,`RightTop`,void 0),q([I(),H(),K(`design:type`,Number)],Au.prototype,`Dpi`,void 0),q([L(),H(),K(`design:type`,Number)],Au.prototype,`Inverse`,void 0),q([L(),H(),K(`design:type`,Number)],Au.prototype,`ObjArea`,void 0),q([L(),H(),K(`design:type`,Number)],Au.prototype,`ObjIntAngleDev`,void 0),q([L(),H(),K(`design:type`,Number)],Au.prototype,`PerspectiveTr`,void 0),q([L(),H(),K(`design:type`,Number)],Au.prototype,`ResultStatus`,void 0);var ju=class{};q([U(),L(),Hl(),K(`design:type`,String)],ju.prototype,`image`,void 0),q([U(),L(),K(`design:type`,String)],ju.prototype,`format`,void 0);var Z=class{};q([I(),B(),K(`design:type`,Number)],Z.prototype,`left`,void 0),q([I(),B(),K(`design:type`,Number)],Z.prototype,`top`,void 0),q([I(),B(),K(`design:type`,Number)],Z.prototype,`right`,void 0),q([I(),B(),K(`design:type`,Number)],Z.prototype,`bottom`,void 0);var Mu=class{};q([I(),B(),K(`design:type`,Number)],Mu.prototype,`dg`,void 0),q([I(),B(),K(`design:type`,Number)],Mu.prototype,`dgTag`,void 0),q([I(),B(),K(`design:type`,Number)],Mu.prototype,`tagEntry`,void 0),q([I(),B(),K(`design:type`,Number)],Mu.prototype,`entryView`,void 0);var Nu=class{};q([U(),Kl(4),I(),K(`design:type`,String)],Nu.prototype,`ICAOCode`,void 0),q([L(),H(),K(`design:type`,Number)],Nu.prototype,`Count`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],Nu.prototype,`List`,void 0),q([I(),V(pr),K(`design:type`,pr===void 0?Object:pr)],Nu.prototype,`dType`,void 0),q([I(),V(fr),K(`design:type`,fr===void 0?Object:fr)],Nu.prototype,`dFormat`,void 0),q([I(),z(),K(`design:type`,Boolean)],Nu.prototype,`dMRZ`,void 0),q([L(),U(),K(`design:type`,String)],Nu.prototype,`dDescription`,void 0),q([L(),U(),K(`design:type`,String)],Nu.prototype,`dYear`,void 0),q([I(),U(),K(`design:type`,String)],Nu.prototype,`dCountryName`,void 0),q([L(),U(),K(`design:type`,String)],Nu.prototype,`dStateCode`,void 0),q([L(),U(),K(`design:type`,String)],Nu.prototype,`dStateName`,void 0),q([I(),z(),K(`design:type`,Boolean)],Nu.prototype,`isDeprecated`,void 0);var Pu=class{static{this.getNecessaryLights=e=>Gc(typeof e==`number`?e:e.NecessaryLights)}static{this.getCheckAuthenticity=e=>Vc(typeof e==`number`?e:e.CheckAuthenticity)}static{this.getAuthenticityNecessaryLights=e=>Gc(typeof e==`number`?e:e.AuthenticityNecessaryLights)}};q([L(),U(),K(`design:type`,String)],Pu.prototype,`DocumentName`,void 0),q([I(),H(),K(`design:type`,Number)],Pu.prototype,`ID`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`P`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`Rotated180`,void 0),q([I(),V(Ir),K(`design:type`,Ir===void 0?Object:Ir)],Pu.prototype,`RFID_Presence`,void 0),q([L(),R(),Y(()=>Nu),K(`design:type`,Nu===void 0?Object:Nu)],Pu.prototype,`FDSIDList`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`NecessaryLights`,void 0),q([I(),H(),K(`design:type`,Number)],Pu.prototype,`CheckAuthenticity`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`UVExp`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`AuthenticityNecessaryLights`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`OVIExp`,void 0),q([L(),H(),K(`design:type`,Number)],Pu.prototype,`RotationAngle`,void 0);var Fu=class{};q([I(),B(),K(`design:type`,Number)],Fu.prototype,`Type`,void 0),q([I(),B(),K(`design:type`,Number)],Fu.prototype,`Status`,void 0),q([I(),H(),K(`design:type`,Number)],Fu.prototype,`Length`,void 0),q([I(),K(`design:type`,Object)],Fu.prototype,`Data`,void 0);var Iu=class{};q([L(),B(),K(`design:type`,Number)],Iu.prototype,`Type`,void 0),q([L(),B(),K(`design:type`,Number)],Iu.prototype,`Status`,void 0),q([L(),U(),K(`design:type`,String)],Iu.prototype,`Format`,void 0),q([I(),U(),K(`design:type`,String)],Iu.prototype,`Data`,void 0);var Lu=class{};q([I(),U(),K(`design:type`,String)],Lu.prototype,`Type`,void 0),q([I(),Y(()=>Iu),R(),K(`design:type`,Iu===void 0?Object:Iu)],Lu.prototype,`Value`,void 0);var Ru=class{};q([I(),Hl(),U(),K(`design:type`,String)],Ru.prototype,`Data`,void 0),q([I(),Y(()=>Iu),R(),K(`design:type`,Iu===void 0?Object:Iu)],Ru.prototype,`FriendlyName`,void 0),q([I(),Y(()=>Lu),R({each:!0}),W(),K(`design:type`,Array)],Ru.prototype,`Attributes`,void 0);var zu=class{static{this.getLightingScheme=e=>Gc(typeof e==`number`?e:e?.light??br.OFF)}};q([L(),H(),K(`design:type`,Number)],zu.prototype,`buf_length`,void 0),q([L(),V(br),K(`design:type`,br===void 0?Object:br)],zu.prototype,`light`,void 0),q([L(),H(),K(`design:type`,Number)],zu.prototype,`list_idx`,void 0),q([L(),H(),K(`design:type`,Number)],zu.prototype,`page_idx`,void 0),q([I(),V(N),K(`design:type`,N===void 0?Object:N)],zu.prototype,`result_type`,void 0);var Bu=class{};q([I(),V(j),K(`design:type`,j===void 0?Object:j)],Bu.prototype,`Type`,void 0),q([L(),V(M),K(`design:type`,M===void 0?Object:M)],Bu.prototype,`ElementResult`,void 0),q([L(),V(ur),K(`design:type`,ur===void 0?Object:ur)],Bu.prototype,`ElementDiagnose`,void 0),q([L(),H(),K(`design:type`,Number)],Bu.prototype,`PercentValue`,void 0);var Vu,Hu=class extends Bu{static{Vu=this}static{this.fromPlain=e=>X(Vu,e)}static{this.validate=e=>{let t=G(Vu.fromPlain(e));if(t.length)throw new DT(`FibersTypeElement validation error: the data received does not match model structure!`,t);return!0}}};q([I(),H(),K(`design:type`,Number)],Hu.prototype,`RectCount`,void 0),q([I(),H(),K(`design:type`,Number)],Hu.prototype,`ExpectedCount`,void 0),q([L(),V(br),K(`design:type`,br===void 0?Object:br)],Hu.prototype,`LightValue`,void 0),q([L(),H(),K(`design:type`,Number)],Hu.prototype,`LightDisp`,void 0),q([I(),W(),R({each:!0}),Y(()=>Z),K(`design:type`,Array)],Hu.prototype,`RectArray`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Hu.prototype,`Width`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Hu.prototype,`Length`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Hu.prototype,`Area`,void 0),q([I(),W(),fu(3),lu(3),H({each:!0}),K(`design:type`,Array)],Hu.prototype,`ColorValues`,void 0),q([I(),Il([j.UV_FIBERS]),V(j),K(`design:type`,j===void 0||j.UV_FIBERS===void 0?Object:j.UV_FIBERS)],Hu.prototype,`Type`,void 0),Hu=Vu=q([J()],Hu);var Uu=class{};q([I(),V(j),K(`design:type`,j===void 0?Object:j)],Uu.prototype,`Type`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Uu.prototype,`Result`,void 0),q([L(),H(),K(`design:type`,Number)],Uu.prototype,`Count`,void 0),q([I(),W(),K(`design:type`,Array)],Uu.prototype,`List`,void 0);var Wu,Gu=[j.UV_FIBERS],Ku=class extends Uu{static{Wu=this}static{this.fromPlain=e=>X(Wu,e)}static{this.isBelongs=e=>{let t=e;return Gu.includes(t?.Type)}}};q([I(),Il(Gu),V(j),K(`design:type`,Object)],Ku.prototype,`Type`,void 0),q([I(),W(),R({each:!0}),Y(()=>Hu),K(`design:type`,Array)],Ku.prototype,`List`,void 0),Ku=Wu=q([J()],Ku);var qu=class extends Bu{};q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],qu.prototype,`ElementType`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],qu.prototype,`LightIndex`,void 0),q([L(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],qu.prototype,`Area`,void 0),q([I(),R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],qu.prototype,`Image`,void 0),q([I(),R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],qu.prototype,`EtalonImage`,void 0),q([L(),R(),Y(()=>ku),K(`design:type`,ku===void 0?Object:ku)],qu.prototype,`AreaList`,void 0),q([L(),B(),K(`design:type`,Number)],qu.prototype,`ElementID`,void 0),q([I(),Il([j.IMAGE_PATTERN,j.IR_VISIBILITY,j.OVI,j.PORTRAIT_COMPARISON,j.KINEGRAM,j.LETTER_SCREEN,j.HOLOGRAM_DETECTION,j.FINGERPRINT_COMPARISON,j.LIVENESS]),V(j),K(`design:type`,Object)],qu.prototype,`Type`,void 0);var Ju,Yu=[j.IMAGE_PATTERN,j.IR_VISIBILITY,j.OVI,j.PORTRAIT_COMPARISON,j.KINEGRAM,j.LETTER_SCREEN,j.HOLOGRAM_DETECTION,j.FINGERPRINT_COMPARISON,j.LIVENESS],Xu=class extends Uu{static{Ju=this}static{this.fromPlain=e=>X(Ju,e)}static{this.isBelongs=e=>Yu.includes(e?.Type)}};q([I(),Il(Yu),V(j),K(`design:type`,Object)],Xu.prototype,`Type`,void 0),q([I(),W(),R({each:!0}),Y(()=>qu),K(`design:type`,Array)],Xu.prototype,`List`,void 0),Xu=Ju=q([J()],Xu);var Zu=class extends Bu{};q([I(),V(dr),K(`design:type`,dr===void 0?Object:dr)],Zu.prototype,`CriticalFlag`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],Zu.prototype,`LightType`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Zu.prototype,`FieldRect`,void 0),q([I(),B(),K(`design:type`,Number)],Zu.prototype,`EtalonResultType`,void 0),q([I(),V(F),K(`design:type`,F===void 0?Object:F)],Zu.prototype,`EtalonFieldType`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],Zu.prototype,`EtalonLightType`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Zu.prototype,`EtalonFieldRect`,void 0),q([I(),U(),K(`design:type`,String)],Zu.prototype,`SecurityTextResultOCR`,void 0),q([I(),U(),K(`design:type`,String)],Zu.prototype,`EtalonResultOCR`,void 0),q([L(),K(`design:type`,Number)],Zu.prototype,`Reserved1`,void 0),q([L(),K(`design:type`,Number)],Zu.prototype,`Reserved2`,void 0),q([I(),Il([j.OCR_SECURITY_TEXT,j.ENCRYPTED_IPI]),V(j),K(`design:type`,Object)],Zu.prototype,`Type`,void 0);var Qu,$u=[j.OCR_SECURITY_TEXT,j.ENCRYPTED_IPI],ed=class extends Uu{static{Qu=this}static{this.fromPlain=e=>X(Qu,e)}static{this.isBelongs=e=>$u.includes(e.Type)}};q([I(),Il($u),V(j),K(`design:type`,Object)],ed.prototype,`Type`,void 0),q([I(),W(),R({each:!0}),Y(()=>Zu),K(`design:type`,Array)],ed.prototype,`List`,void 0),ed=Qu=q([J()],ed);var td=class{};q([I(),H(),K(`design:type`,Number)],td.prototype,`Count`,void 0),q([I(),W(),R({each:!0}),Y(()=>ju),K(`design:type`,Array)],td.prototype,`Images`,void 0);var nd=class extends Bu{};q([I(),V(br),K(`design:type`,br===void 0?Object:br)],nd.prototype,`LightIndex`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],nd.prototype,`Area`,void 0),q([I(),R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],nd.prototype,`SourceImage`,void 0),q([I(),R(),Y(()=>td),K(`design:type`,td===void 0?Object:td)],nd.prototype,`ResultImages`,void 0),q([L(),H(),K(`design:type`,Number)],nd.prototype,`FieldTypesCount`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],nd.prototype,`FieldTypesList`,void 0),q([L(),H(),K(`design:type`,Number)],nd.prototype,`Step`,void 0),q([L(),H(),K(`design:type`,Number)],nd.prototype,`Angle`,void 0),q([L(),H(),K(`design:type`,Number)],nd.prototype,`Reserved3`,void 0),q([I(),Il([j.IPI]),V(j),K(`design:type`,j===void 0||j.IPI===void 0?Object:j.IPI)],nd.prototype,`Type`,void 0);var rd,id=[j.IPI],ad=class extends Uu{static{rd=this}static{this.fromPlain=e=>X(rd,e)}static{this.isBelongs=e=>id.includes(e?.Type)}};q([I(),Il(id),V(j),K(`design:type`,Object)],ad.prototype,`Type`,void 0),q([I(),W(),R({each:!0}),Y(()=>nd),K(`design:type`,Array)],ad.prototype,`List`,void 0),ad=rd=q([J()],ad);var od=class extends Bu{};q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],od.prototype,`ElementType`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],od.prototype,`ElementRect`,void 0),q([I(),V(Gr),K(`design:type`,Gr===void 0?Object:Gr)],od.prototype,`Visibility`,void 0),q([I(),V(dr),K(`design:type`,dr===void 0?Object:dr)],od.prototype,`CriticalFlag`,void 0),q([L(),R(),Y(()=>ku),K(`design:type`,ku===void 0?Object:ku)],od.prototype,`AreaList`,void 0),q([L(),H(),K(`design:type`,Number)],od.prototype,`Reserved2`,void 0),q([I(),Il([j.UV_LUMINESCENCE,j.IR_B900,j.AXIAL_PROTECTION,j.PHOTO_EMBED_TYPE,j.HOLOGRAMS,j.PHOTO_AREA,j.BARCODE_FORMAT_CHECK,j.EXTENDED_OCR_CHECK,j.EXTENDED_MRZ_CHECK,j.PROPERTY]),V(j),K(`design:type`,Object)],od.prototype,`Type`,void 0);var sd,cd=[j.UV_LUMINESCENCE,j.IR_B900,j.AXIAL_PROTECTION,j.PHOTO_EMBED_TYPE,j.HOLOGRAMS,j.PHOTO_AREA,j.BARCODE_FORMAT_CHECK,j.EXTENDED_OCR_CHECK,j.EXTENDED_MRZ_CHECK,j.PROPERTY],ld=class extends Uu{static{sd=this}static{this.fromPlain=e=>X(sd,e)}static{this.isBelongs=e=>cd.includes(e?.Type)}};q([I(),Il(cd),V(j),K(`design:type`,Object)],ld.prototype,`Type`,void 0),q([I(),W(),R({each:!0}),Y(()=>od),K(`design:type`,Array)],ld.prototype,`List`,void 0),ld=sd=q([J()],ld);var ud=e=>{let t=[];return e.forEach(e=>{if(!hx(e)||!(`Type`in e))return;let{Type:n}=e;switch(n){case j.UV_FIBERS:t.push(Ku.fromPlain(e));break;case j.IMAGE_PATTERN:case j.IR_VISIBILITY:case j.OVI:case j.PORTRAIT_COMPARISON:case j.KINEGRAM:case j.LETTER_SCREEN:case j.HOLOGRAM_DETECTION:case j.FINGERPRINT_COMPARISON:case j.LIVENESS:t.push(Xu.fromPlain(e));break;case j.OCR_SECURITY_TEXT:case j.ENCRYPTED_IPI:t.push(ed.fromPlain(e));break;case j.IPI:t.push(ad.fromPlain(e));break;case j.UV_LUMINESCENCE:case j.IR_B900:case j.AXIAL_PROTECTION:case j.PHOTO_EMBED_TYPE:case j.HOLOGRAMS:case j.PHOTO_AREA:case j.BARCODE_FORMAT_CHECK:case j.EXTENDED_OCR_CHECK:case j.EXTENDED_MRZ_CHECK:case j.PROPERTY:t.push(ld.fromPlain(e));break}}),t},dd=class{};q([I(),H(),K(`design:type`,Number)],dd.prototype,`Count`,void 0),q([R({each:!0}),wu(({obj:e})=>ud(e.List),{toClassOnly:!0}),W(),K(`design:type`,Array)],dd.prototype,`List`,void 0);var fd,pd=[N.AUTHENTICITY,N.FINGERPRINT_COMPARISON,N.PORTRAIT_COMPARISON],md=class extends zu{static{fd=this}static{this.fromPlain=e=>X(fd,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>pd.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(fd.fromPlain(e));if(t.length)throw new DT(`AuthenticityContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>dd),K(`design:type`,dd===void 0?Object:dd)],md.prototype,`AuthenticityCheckList`,void 0),q([I(),V(N),Il(pd),K(`design:type`,Object)],md.prototype,`result_type`,void 0),md=fd=q([J()],md);var hd,gd=[N.DOCUMENT_POSITION],_d=class extends zu{static{hd=this}static{this.fromPlain=e=>X(hd,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!Array.isArray(n))return[];let r=n.List.filter(e=>gd.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(hd.fromPlain(e));if(t.length)throw new DT(`BoundsResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Au),K(`design:type`,Au===void 0?Object:Au)],_d.prototype,`DocumentPosition`,void 0),q([I(),V(N),Il(gd),K(`design:type`,Object)],_d.prototype,`result_type`,void 0),_d=hd=q([J()],_d);var vd,yd=[N.BARCODE_POSITION],bd=class extends zu{static{vd=this}static{this.fromPlain=e=>X(vd,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!Array.isArray(n))return[];let r=n.List.filter(e=>yd.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(vd.fromPlain(e));if(t.length)throw new DT(`BarcodeBoundsResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Au),K(`design:type`,Au===void 0?Object:Au)],bd.prototype,`BarcodePosition`,void 0),q([I(),V(N),Il(yd),K(`design:type`,Object)],bd.prototype,`result_type`,void 0),bd=vd=q([J()],bd);var xd=class{};q([I(),U(),K(`design:type`,String)],xd.prototype,`mData`,void 0),q([I(),B(),K(`design:type`,Number)],xd.prototype,`mLength`,void 0),q([L(),K(`design:type`,Number)],xd.prototype,`mReserved1`,void 0),q([L(),K(`design:type`,Number)],xd.prototype,`mReserver2`,void 0),q([I(),V(cr),K(`design:type`,cr===void 0?Object:cr)],xd.prototype,`mType`,void 0);var Sd=class{};q([I(),B(),K(`design:type`,Number)],Sd.prototype,`Angle`,void 0),q([I(),B(),K(`design:type`,Number)],Sd.prototype,`bcColumn`,void 0),q([I(),B(),K(`design:type`,Number)],Sd.prototype,`bcErrorLevel`,void 0),q([I(),B(),K(`design:type`,Number)],Sd.prototype,`bcRow`,void 0),q([L(),B(),K(`design:type`,Number)],Sd.prototype,`minX`,void 0),q([L(),B(),K(`design:type`,Number)],Sd.prototype,`minY`,void 0);var Cd=class{};q([I(),B(),K(`design:type`,Number)],Cd.prototype,`bcAngle_DETECT`,void 0),q([I(),B(),K(`design:type`,Number)],Cd.prototype,`bcCodeResult`,void 0),q([I(),B(),K(`design:type`,Number)],Cd.prototype,`bcCountModule`,void 0),q([I(),W(),R({each:!0}),Y(()=>xd),K(`design:type`,Array)],Cd.prototype,`bcDataModule`,void 0),q([L(),R(),Y(()=>Sd),K(`design:type`,Sd===void 0?Object:Sd)],Cd.prototype,`bcPDF417INFO`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Cd.prototype,`bcROI_DETECT`,void 0),q([L(),B(),K(`design:type`,Number)],Cd.prototype,`bcTextDecoderTypes`,void 0),q([L(),V(F),K(`design:type`,F===void 0?Object:F)],Cd.prototype,`bcTextFieldType`,void 0),q([I(),V(lr),K(`design:type`,lr===void 0?Object:lr)],Cd.prototype,`bcType_DECODE`,void 0),q([I(),B(),K(`design:type`,Number)],Cd.prototype,`bcType_DETECT`,void 0);var wd=class{};q([I(),H(),K(`design:type`,Number)],wd.prototype,`nFields`,void 0),q([I(),R({each:!0}),Y(()=>Cd),W(),K(`design:type`,Array)],wd.prototype,`pArrayFields`,void 0);var Td,Ed=[N.BARCODES],Dd=class extends zu{static{Td=this}static{this.fromPlain=e=>X(Td,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>Ed.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Td.fromPlain(e));if(t.length)throw new DT(`DocBarCodeInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>wd),K(`design:type`,wd===void 0?Object:wd)],Dd.prototype,`DocBarCodeInfo`,void 0),q([I(),V(N),Il(Ed),K(`design:type`,Object)],Dd.prototype,`result_type`,void 0),Dd=Td=q([J()],Dd);var Od=class{};q([I(),H(),K(`design:type`,Number)],Od.prototype,`Type`,void 0),q([I(),V(fr),K(`design:type`,fr===void 0?Object:fr)],Od.prototype,`DocumentID`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`DocumentType`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`State`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Holder`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`DocumentNumber`,void 0),q([I(),H(),K(`design:type`,Number)],Od.prototype,`CheckDigitDocumentNumber`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Nationality`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Birthday`,void 0),q([I(),H(),K(`design:type`,Number)],Od.prototype,`CheckDigitBirthday`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Sex`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`ExpiryDate`,void 0),q([I(),H(),K(`design:type`,Number)],Od.prototype,`CheckDigitExpiryDate`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`OptionalData`,void 0),q([I(),H(),K(`design:type`,Number)],Od.prototype,`CheckDigitOptionalData`,void 0),q([I(),H(),K(`design:type`,Number)],Od.prototype,`CheckDigitComposite`,void 0);var kd=class{};q([I(),V(Ar),K(`design:type`,Ar===void 0?Object:Ar)],kd.prototype,`Type`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],kd.prototype,`Status`,void 0),q([L(),H(),K(`design:type`,Number)],kd.prototype,`ActiveOptionIdx`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],kd.prototype,`Notifications`,void 0),q([L(),W(),K(`design:type`,Array)],kd.prototype,`AccessControlOptions`,void 0);var Ad=class{};q([I(),U(),K(`design:type`,String)],Ad.prototype,`AccessKey`,void 0),q([I(),V(Lr),K(`design:type`,Lr===void 0?Object:Lr)],Ad.prototype,`KeyType`,void 0),q([I(),V(Ar),K(`design:type`,Ar===void 0?Object:Ar)],Ad.prototype,`AccessType`,void 0),q([I(),z(),K(`design:type`,Boolean)],Ad.prototype,`CheckFullKeyMatching`,void 0);var jd=class{};q([L(),V(Er,{each:!0}),K(`design:type`,Array)],jd.prototype,`ParsingNotifications`,void 0);var Md=class{};q([I(),U(),K(`design:type`,String)],Md.prototype,`Data`,void 0),q([I(),B(),K(`design:type`,Number)],Md.prototype,`Length`,void 0);var Nd=class{};q([L(),Y(()=>Md),R(),K(`design:type`,Md===void 0?Object:Md)],Nd.prototype,`Certificate_Data`,void 0);var Pd=class{};q([U(),L(),K(`design:type`,String)],Pd.prototype,`FileID`,void 0),q([I(),V(P),K(`design:type`,P===void 0?Object:P)],Pd.prototype,`Type`,void 0),q([L(),Y(()=>Fu),R(),K(`design:type`,Fu===void 0?Object:Fu)],Pd.prototype,`FileData`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Pd.prototype,`ReadingStatus`,void 0),q([L(),H(),K(`design:type`,Number)],Pd.prototype,`ReadingTime`,void 0),q([L(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Pd.prototype,`PA_Status`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],Pd.prototype,`Notifications`,void 0),q([L(),V(F,{each:!0}),K(`design:type`,Array)],Pd.prototype,`DocFields_Text`,void 0),q([L(),V(hr,{each:!0}),K(`design:type`,Array)],Pd.prototype,`DocFields_Graphics`,void 0),q([L(),V(hr,{each:!0}),K(`design:type`,Array)],Pd.prototype,`DocFields_Originals`,void 0),q([L(),Y(()=>jd),R(),K(`design:type`,jd===void 0?Object:jd)],Pd.prototype,`ParsedData`,void 0),q([L(),Y(()=>Nd),R(),K(`design:type`,Nd===void 0?Object:Nd)],Pd.prototype,`SecurityObject_Certificates`,void 0);var Fd=class{};q([I(),V(jr),K(`design:type`,jr===void 0?Object:jr)],Fd.prototype,`Type`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Fd.prototype,`Status`,void 0),q([I(),U(),K(`design:type`,String)],Fd.prototype,`ApplicationID`,void 0),q([I(),U(),K(`design:type`,String)],Fd.prototype,`Version`,void 0),q([I(),U(),K(`design:type`,String)],Fd.prototype,`UnicodeVersion`,void 0),q([I(),U(),K(`design:type`,String)],Fd.prototype,`DataHashAlgorithm`,void 0),q([I(),Y(()=>Pd),R({each:!0}),K(`design:type`,Array)],Fd.prototype,`Files`,void 0);var Id=class{};q([I(),V(zr),K(`design:type`,zr===void 0?Object:zr)],Id.prototype,`RFID_Type`,void 0),q([I(),U(),K(`design:type`,String)],Id.prototype,`Baudrate1`,void 0),q([I(),U(),K(`design:type`,String)],Id.prototype,`Baudrate2`,void 0),q([I(),z(),K(`design:type`,Boolean)],Id.prototype,`Support_4`,void 0),q([I(),V(kr),K(`design:type`,kr===void 0?Object:kr)],Id.prototype,`ChipType_A`,void 0),q([I(),z(),K(`design:type`,Boolean)],Id.prototype,`Support_Mifare`,void 0),q([I(),H(),K(`design:type`,Number)],Id.prototype,`MifareMemory`,void 0),q([I(),U(),K(`design:type`,String)],Id.prototype,`UID`,void 0),q([I(),K(`design:type`,Object)],Id.prototype,`ATQ_A`,void 0),q([I(),K(`design:type`,Object)],Id.prototype,`SAK`,void 0),q([I(),K(`design:type`,Object)],Id.prototype,`ATQ_B`,void 0),q([I(),V(Nr),K(`design:type`,Nr===void 0?Object:Nr)],Id.prototype,`BitRateS`,void 0),q([I(),V(Nr),K(`design:type`,Nr===void 0?Object:Nr)],Id.prototype,`BitRateR`,void 0),q([I(),U(),K(`design:type`,String)],Id.prototype,`ATR`,void 0);var Ld=class{};q([I(),U(),K(`design:type`,String)],Ld.prototype,`Type`,void 0),q([I(),U(),Hl(),K(`design:type`,String)],Ld.prototype,`Data`,void 0);var Rd=class{};q([I(),U(),K(`design:type`,String)],Rd.prototype,`Type`,void 0),q([I(),U(),Hl(),K(`design:type`,String)],Rd.prototype,`Data`,void 0);var zd=class{};q([I(),Y(()=>Iu),R(),K(`design:type`,Iu===void 0?Object:Iu)],zd.prototype,`NotBefore`,void 0),q([I(),Y(()=>Iu),R(),K(`design:type`,Iu===void 0?Object:Iu)],zd.prototype,`NotAfter`,void 0);var Bd=class{};q([I(),B(),K(`design:type`,Number)],Bd.prototype,`Version`,void 0),q([I(),Hl(),U(),K(`design:type`,String)],Bd.prototype,`SerialNumber`,void 0),q([I(),U(),K(`design:type`,String)],Bd.prototype,`SignatureAlgorithm`,void 0),q([I(),Y(()=>Ru),R(),K(`design:type`,Ru===void 0?Object:Ru)],Bd.prototype,`Issuer`,void 0),q([I(),Y(()=>zd),R(),K(`design:type`,zd===void 0?Object:zd)],Bd.prototype,`Validity`,void 0),q([I(),Y(()=>Ru),R(),K(`design:type`,Ru===void 0?Object:Ru)],Bd.prototype,`Subject`,void 0),q([I(),U(),K(`design:type`,String)],Bd.prototype,`SubjectPKAlgorithm`,void 0),q([I(),Y(()=>Rd),R({each:!0}),W(),K(`design:type`,Array)],Bd.prototype,`Extensions`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Bd.prototype,`Notifications`,void 0),q([I(),V(Pr),K(`design:type`,Pr===void 0?Object:Pr)],Bd.prototype,`Origin`,void 0),q([I(),V(Fr),K(`design:type`,Fr===void 0?Object:Fr)],Bd.prototype,`Type`,void 0),q([I(),Y(()=>Iu),R(),K(`design:type`,Iu===void 0?Object:Iu)],Bd.prototype,`FileName`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Bd.prototype,`PA_Status`,void 0);var Vd=class{};q([I(),B(),K(`design:type`,Number)],Vd.prototype,`Version`,void 0),q([I(),Y(()=>Ru),R(),K(`design:type`,Ru===void 0?Object:Ru)],Vd.prototype,`Issuer`,void 0),q([I(),Y(()=>Fu),R(),K(`design:type`,Fu===void 0?Object:Fu)],Vd.prototype,`SerialNumber`,void 0),q([I(),Y(()=>Fu),R(),K(`design:type`,Fu===void 0?Object:Fu)],Vd.prototype,`SubjectKeyIdentifier`,void 0),q([I(),U(),K(`design:type`,String)],Vd.prototype,`DigestAlgorithm`,void 0),q([I(),Y(()=>Ld),R({each:!0}),W(),K(`design:type`,Array)],Vd.prototype,`SignedAttributes`,void 0),q([I(),U(),K(`design:type`,String)],Vd.prototype,`SignatureAlgorithm`,void 0),q([I(),Y(()=>Fu),R(),K(`design:type`,Fu===void 0?Object:Fu)],Vd.prototype,`Signature`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Vd.prototype,`PA_Status`,void 0),q([I(),Y(()=>Bd),R({each:!0}),W(),K(`design:type`,Array)],Vd.prototype,`CertificateChain`,void 0),q([I(),U(),Hl(),K(`design:type`,String)],Vd.prototype,`DataToHash`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Vd.prototype,`Notifications`,void 0);var Hd=class{};q([I(),B(),K(`design:type`,Number)],Hd.prototype,`Version`,void 0),q([I(),U(),K(`design:type`,String)],Hd.prototype,`ObjectType`,void 0),q([I(),H(),K(`design:type`,Number)],Hd.prototype,`FileReference`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Hd.prototype,`Notifications`,void 0),q([I(),Y(()=>Vd),W(),K(`design:type`,Array)],Hd.prototype,`SignerInfos`,void 0);var Ud=class{static{this.getAuthReq=e=>Jc(typeof e==`number`?e:e.AuthReq)}static{this.getAuthReq2=e=>Jc(typeof e==`number`?e:e.AuthReq2)}};q([I(),V(Rr),K(`design:type`,Rr===void 0?Object:Rr)],Ud.prototype,`TermType`,void 0),q([I(),H(),K(`design:type`,Number)],Ud.prototype,`AuthReq`,void 0),q([I(),H(),K(`design:type`,Number)],Ud.prototype,`AuthReq2`,void 0);var Wd=class{};q([L(),z(),K(`design:type`,Boolean)],Wd.prototype,`VirtualMode`,void 0),q([L(),U(),K(`design:type`,String)],Wd.prototype,`SDKVersion`,void 0),q([L(),U(),K(`design:type`,String)],Wd.prototype,`DriverVersion`,void 0),q([L(),U(),K(`design:type`,String)],Wd.prototype,`FirmwareVersion`,void 0),q([I(),R({each:!0}),Y(()=>Fd),K(`design:type`,Array)],Wd.prototype,`Applications`,void 0),q([I(),R({each:!0}),Y(()=>kd),K(`design:type`,Array)],Wd.prototype,`AccessControls`,void 0),q([I(),R(),Y(()=>Id),K(`design:type`,Id===void 0?Object:Id)],Wd.prototype,`CardProperties`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Wd.prototype,`ExtLeSupport`,void 0),q([I(),H(),K(`design:type`,Number)],Wd.prototype,`ProcessTime`,void 0),q([I(),H(),K(`design:type`,Number)],Wd.prototype,`TotalBytesSent`,void 0),q([I(),H(),K(`design:type`,Number)],Wd.prototype,`TotalBytesReceived`,void 0),q([I(),R(),Y(()=>Ad),K(`design:type`,Ad===void 0?Object:Ad)],Wd.prototype,`Session_key`,void 0),q([I(),R(),Y(()=>Ud),K(`design:type`,Ud===void 0?Object:Ud)],Wd.prototype,`Session_terminal`,void 0),q([I(),V(Mr),K(`design:type`,Mr===void 0?Object:Mr)],Wd.prototype,`Session_procedure`,void 0),q([I(),R({each:!0}),Y(()=>Hd),K(`design:type`,Array)],Wd.prototype,`SecurityObjects`,void 0);var Gd=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`overallStatus`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`docType`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`expiry`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`imageQA`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`mrz`,void 0),q([I(),H(),K(`design:type`,Number)],Gd.prototype,`pagesCount`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`security`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`text`,void 0),q([L(),H(),K(`design:type`,Number)],Gd.prototype,`vds`,void 0);var Kd=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`overallStatus`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`AA`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`BAC`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`CA`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`PA`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`PACE`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`TA`,void 0);var qd=class{};q([I(),H(),K(`design:type`,Number)],qd.prototype,`threshold`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qd.prototype,`overThreshold`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qd.prototype,`over18`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qd.prototype,`over21`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qd.prototype,`over25`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qd.prototype,`over65`,void 0);var Jd=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`overallStatus`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`optical`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`portrait`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`rfid`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`stopList`,void 0),q([L(),R(),Y(()=>Kd),K(`design:type`,Kd===void 0?Object:Kd)],Jd.prototype,`detailsRFID`,void 0),q([I(),R(),Y(()=>Gd),K(`design:type`,Gd===void 0?Object:Gd)],Jd.prototype,`detailsOptical`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`age`,void 0),q([I(),R(),Y(()=>qd),K(`design:type`,qd===void 0?Object:qd)],Jd.prototype,`detailsAge`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`mDL`,void 0);var Yd,Xd=[N.STATUS],Zd=class extends zu{static{Yd=this}static{this.fromPlain=e=>X(Yd,e,{exposeUnsetFields:!1})}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Xd.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Yd.fromPlain(e));if(t.length)throw new DT(`StatusContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Jd),K(`design:type`,Jd===void 0?Object:Jd)],Zd.prototype,`Status`,void 0),q([I(),V(N),Il(Xd),K(`design:type`,Object)],Zd.prototype,`result_type`,void 0),Zd=Yd=q([J()],Zd);var Q=class{};q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_Authentication_Info`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_MIFARE_Data_Validity`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_MIFARE_Data`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_EF_COM`,void 0),q([L(),R(),Y(()=>Od),K(`design:type`,Od===void 0?Object:Od)],Q.prototype,`RFID_DG1`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG2`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG3`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG4`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG5`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG6`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG7`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG8`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG9`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG10`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG11`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG12`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG13`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG14`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG15`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG16`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_EF_SOD`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG1`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG2`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG3`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG4`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG5`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG6`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG7`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG8`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG9`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG10`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG11`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG12`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG13`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG14`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG15`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG16`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG17`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG18`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG19`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG20`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG21`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_COM`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_SOD`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG1`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG2`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG3`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG4`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG5`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG6`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG7`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG8`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG9`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG10`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG11`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG12`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG13`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG14`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Visible_Digital_Seal`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Visible_Digital_Seal_NC`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Digital_Signature`,void 0),q([L(),R(),Y(()=>Wd),K(`design:type`,Wd===void 0?Object:Wd)],Q.prototype,`RFID_Session_Data`,void 0),q([L(),R(),Y(()=>Kd),K(`design:type`,Kd===void 0?Object:Kd)],Q.prototype,`RFID_Session_Data_Status`,void 0),q([L(),W(),V(P,{each:!0}),K(`design:type`,Array)],Q.prototype,`RFID_ePassp_Directory`,void 0);var Qd=class{};q([I(),U(),K(`design:type`,String)],Qd.prototype,`Data`,void 0),q([I(),B(),K(`design:type`,Number)],Qd.prototype,`FieldType`,void 0);var $d=class{};q([L(),R(),Y(()=>Q),K(`design:type`,Q===void 0?Object:Q)],$d.prototype,`RFID_BINARY_DATA`,void 0),q([L(),R(),Y(()=>Qd),K(`design:type`,Array)],$d.prototype,`RFID_RAW_DATA`,void 0);var ef,tf=[N.RFID_BINARY_DATA,N.RFID_RAW_DATA],nf=class extends zu{static{ef=this}static{this.fromPlain=e=>X(ef,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>tf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ef.fromPlain(e));if(t.length)throw new DT(`DocBinaryInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>$d),K(`design:type`,$d===void 0?Object:$d)],nf.prototype,`TDocBinaryInfo`,void 0),q([I(),V(N),Il(tf),K(`design:type`,Object)],nf.prototype,`result_type`,void 0),nf=ef=q([J()],nf);var rf=class{};q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],rf.prototype,`FieldRect`,void 0),q([I(),V(hr),K(`design:type`,hr===void 0?Object:hr)],rf.prototype,`FieldType`,void 0),q([I(),U(),K(`design:type`,String)],rf.prototype,`FieldName`,void 0),q([I(),R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],rf.prototype,`image`,void 0);var af=class{};q([I(),R(),Y(()=>rf),K(`design:type`,Array)],af.prototype,`pArrayFields`,void 0),q([I(),H(),K(`design:type`,Number)],af.prototype,`nFields`,void 0);var of,sf=[N.VISUAL_GRAPHICS,N.BARCODE_GRAPHICS,N.LIVE_PORTRAIT,N.EXT_PORTRAIT,N.FINGERPRINTS,N.RFID_GRAPHICS],cf=class extends zu{static{of=this}static{this.fromPlain=e=>X(of,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>sf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(of.fromPlain(e));if(t.length)throw new DT(`DocGraphicsInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>af),K(`design:type`,af===void 0?Object:af)],cf.prototype,`DocGraphicsInfo`,void 0),q([I(),V(N),Il(sf),K(`design:type`,Object)],cf.prototype,`result_type`,void 0),cf=of=q([J()],cf);var lf=class{};q([I(),H(),K(`design:type`,Number)],lf.prototype,`SymbolCode`,void 0),q([I(),H(),K(`design:type`,Number)],lf.prototype,`SymbolProbability`,void 0),q([L(),H(),K(`design:type`,Number)],lf.prototype,`Class`,void 0),q([L(),H(),K(`design:type`,Number)],lf.prototype,`SubClass`,void 0);var uf=class{};q([L(),R({each:!0}),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],uf.prototype,`SymbolRect`,void 0),q([I(),H(),K(`design:type`,Number)],uf.prototype,`CandidatesCount`,void 0),q([I(),R({each:!0}),Y(()=>lf),K(`design:type`,Array)],uf.prototype,`ListOfCandidates`,void 0),q([L(),H(),K(`design:type`,Number)],uf.prototype,`BaseLineBottom`,void 0),q([L(),H(),K(`design:type`,Number)],uf.prototype,`BaseLineTop`,void 0);var df=class{};q([I(),H(),K(`design:type`,Number)],df.prototype,`SymbolsCount`,void 0),q([I(),R({each:!0}),Y(()=>uf),K(`design:type`,Array)],df.prototype,`StringResult`,void 0),q([L(),H(),K(`design:type`,Number)],df.prototype,`Buf_Length`,void 0),q([L(),U(),K(`design:type`,String)],df.prototype,`Buf_Text`,void 0),q([L(),H(),K(`design:type`,Number)],df.prototype,`Reserved`,void 0);var ff=class{};q([I(),V(F),K(`design:type`,F===void 0?Object:F)],ff.prototype,`wFieldType`,void 0),q([I(),U(),K(`design:type`,String)],ff.prototype,`FieldName`,void 0),q([I(),H(),K(`design:type`,Number)],ff.prototype,`StringsCount`,void 0),q([I(),R({each:!0}),Y(()=>df),K(`design:type`,Array)],ff.prototype,`StringsResult`,void 0),q([I(),H(),K(`design:type`,Number)],ff.prototype,`Buf_Length`,void 0),q([I(),U(),K(`design:type`,String)],ff.prototype,`Buf_Text`,void 0),q([L(),U(),K(`design:type`,String)],ff.prototype,`FieldMask`,void 0),q([L(),H(),K(`design:type`,Number)],ff.prototype,`Validity`,void 0),q([L(),H(),K(`design:type`,Number)],ff.prototype,`InComparison`,void 0),q([L(),V(yr),K(`design:type`,yr===void 0?Object:yr)],ff.prototype,`wLCID`,void 0),q([L(),H(),K(`design:type`,Number)],ff.prototype,`Reserved2`,void 0),q([L(),H(),K(`design:type`,Number)],ff.prototype,`Reserved3`,void 0);var pf=class extends ff{};q([I(),R({each:!0}),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],pf.prototype,`FieldRect`,void 0);var mf=class{};q([I(),H(),K(`design:type`,Number)],mf.prototype,`nFields`,void 0),q([I(),R({each:!0}),Y(()=>pf),K(`design:type`,Array)],mf.prototype,`pArrayFields`,void 0);var hf,gf=[N.VISUAL_TEXT,N.MRZ_TEXT,N.BARCODE_TEXT,N.MAGNETIC_STRIPE_TEXT_DATA,N.RFID_TEXT],_f=class extends zu{static{hf=this}static{this.fromPlain=e=>X(hf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>gf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(hf.fromPlain(e));if(t.length)throw new DT(`DocVisualExtendedInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>mf),K(`design:type`,mf===void 0?Object:mf)],_f.prototype,`DocVisualExtendedInfo`,void 0),q([I(),V(N),Il(gf),K(`design:type`,Object)],_f.prototype,`result_type`,void 0),_f=hf=q([J()],_f);var vf,yf=[N.ENCRYPTED_RCL],bf=class extends zu{static{vf=this}static{this.fromPlain=e=>X(vf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>yf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(vf.fromPlain(e));if(t.length)throw new DT(`EncryptedRCLContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),U(),Hl(),K(`design:type`,String)],bf.prototype,`EncryptedRCL`,void 0),q([I(),V(N),Il(yf),K(`design:type`,Object)],bf.prototype,`result_type`,void 0),bf=vf=q([J()],bf);var xf=class{};q([I(),V(gr),K(`design:type`,gr===void 0?Object:gr)],xf.prototype,`type`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],xf.prototype,`result`,void 0),q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],xf.prototype,`featureType`,void 0),q([L(),R(),Y(()=>ku),K(`design:type`,ku===void 0?Object:ku)],xf.prototype,`areas`,void 0),q([I(),B(),K(`design:type`,Number)],xf.prototype,`mean`,void 0),q([I(),B(),K(`design:type`,Number)],xf.prototype,`std_dev`,void 0),q([I(),H(),K(`design:type`,Number)],xf.prototype,`probability`,void 0);var Sf=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Sf.prototype,`result`,void 0),q([I(),R({each:!0}),Y(()=>xf),W(),K(`design:type`,Array)],Sf.prototype,`List`,void 0),q([I(),H(),K(`design:type`,Number)],Sf.prototype,`Count`,void 0);var Cf,wf=[N.IMAGE_QUALITY],Tf=class extends zu{static{Cf=this}static{this.fromPlain=e=>X(Cf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>wf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Cf.fromPlain(e));if(t.length)throw new DT(`ImageQualityCheckListContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Sf),K(`design:type`,Sf===void 0?Object:Sf)],Tf.prototype,`ImageQualityCheckList`,void 0),q([I(),V(N),Il(wf),K(`design:type`,Object)],Tf.prototype,`result_type`,void 0),Tf=Cf=q([J()],Tf);var Ef=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Ef.prototype,`source`,void 0),q([L(),U(),Hl(),K(`design:type`,String)],Ef.prototype,`value`,void 0),q([L(),U(),Hl(),K(`design:type`,String)],Ef.prototype,`originalValue`,void 0),q([L(),H(),K(`design:type`,Number)],Ef.prototype,`originalPageIndex`,void 0),q([I(),H(),K(`design:type`,Number)],Ef.prototype,`pageIndex`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],Ef.prototype,`lightIndex`,void 0),q([I(),H(),K(`design:type`,Number)],Ef.prototype,`containerType`,void 0),q([L(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Ef.prototype,`fieldRect`,void 0),q([L(),R(),Y(()=>Mu),K(`design:type`,Mu===void 0?Object:Mu)],Ef.prototype,`rfidOrigin`,void 0);var Df=class{static{this.fromContainers=(e,t)=>{let n=[];return e.forEach(e=>{let{Images:r}=e;r.fieldList.forEach(e=>{if(!t){n.push(e);return}t.includes(e.fieldType)&&n.push(e)})}),n}}};q([I(),U(),K(`design:type`,String)],Df.prototype,`fieldName`,void 0),q([I(),V(hr),K(`design:type`,hr===void 0?Object:hr)],Df.prototype,`fieldType`,void 0),q([I(),R({each:!0}),Y(()=>Ef),W(),K(`design:type`,Array)],Df.prototype,`valueList`,void 0),q([L(),H(),wu(({obj:e})=>e.valueList.length,{toClassOnly:!0}),K(`design:type`,Number)],Df.prototype,`valueCount`,void 0);var Of=class{};q([I(),B(),K(`design:type`,Number)],Of.prototype,`containerType`,void 0),q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Of.prototype,`source`,void 0);var kf=class{};q([L(),H(),wu(({obj:e})=>e.fieldList.length,{toClassOnly:!0}),K(`design:type`,Number)],kf.prototype,`fieldCount`,void 0),q([L(),H(),wu(({obj:e})=>e.availableSourceList.length,{toClassOnly:!0}),K(`design:type`,Number)],kf.prototype,`availableSourceCount`,void 0),q([I(),R({each:!0}),Y(()=>Of),W(),K(`design:type`,Array)],kf.prototype,`availableSourceList`,void 0),q([I(),R({each:!0}),Y(()=>Df),W(),K(`design:type`,Array)],kf.prototype,`fieldList`,void 0);var Af,jf=[N.IMAGES],Mf=class extends zu{static{Af=this}static{this.fromPlain=e=>X(Af,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>jf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Af.fromPlain(e));if(t.length)throw new DT(`ImagesResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>kf),K(`design:type`,kf===void 0?Object:kf)],Mf.prototype,`Images`,void 0),q([I(),V(N),Il(jf),K(`design:type`,Object)],Mf.prototype,`result_type`,void 0),Mf=Af=q([J()],Mf);var Nf,Pf=[N.LICENSE],Ff=class extends zu{static{Nf=this}static{this.fromPlain=e=>X(Nf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Pf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Nf.fromPlain(e));if(t.length)throw new DT(`LicenseContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),U(),Hl(),K(`design:type`,String)],Ff.prototype,`License`,void 0),q([I(),V(N),Il(Pf),K(`design:type`,Object)],Ff.prototype,`result_type`,void 0),Ff=Nf=q([J()],Ff);var If=class{static{this.getMRZDataVerificationResult=e=>e.Matrix[0]}static{this.getRFIDDataVerificationResult=e=>e.Matrix[1]}static{this.getVisualDataVerificationResult=e=>e.Matrix[2]}static{this.getBarcodeDataVerificationResult=e=>e.Matrix[3]}static{this.getMRZAndRFIDDataComparingResult=e=>e.Matrix[4]}static{this.getMRZAndVisualDataComparingResult=e=>e.Matrix[5]}static{this.getMRZAndBarcodeDataComparingResult=e=>e.Matrix[6]}static{this.getVisualAndRFIDDataComparingResult=e=>e.Matrix[7]}static{this.getVisualAndBarcodeDataComparingResult=e=>e.Matrix[8]}static{this.getRFIDAndBarcodeDataComparingResult=e=>e.Matrix[9]}};q([I(),V(F),K(`design:type`,F===void 0?Object:F)],If.prototype,`wFieldType`,void 0),q([L(),V(yr),K(`design:type`,yr===void 0?Object:yr)],If.prototype,`wLCID`,void 0),q([L(),U(),K(`design:type`,String)],If.prototype,`Field_MRZ`,void 0),q([L(),U(),K(`design:type`,String)],If.prototype,`Field_Visual`,void 0),q([L(),U(),K(`design:type`,String)],If.prototype,`Field_Barcode`,void 0),q([L(),U(),K(`design:type`,String)],If.prototype,`Field_RFID`,void 0),q([I(),V(Wr,{each:!0}),W(),lu(10),fu(10),K(`design:type`,Array)],If.prototype,`Matrix`,void 0);var Lf=class{};q([I(),H(),K(`design:type`,Number)],Lf.prototype,`Count`,void 0),q([I(),W(),R({each:!0}),Y(()=>If),K(`design:type`,Array)],Lf.prototype,`pFieldMaps`,void 0),q([L(),U(),K(`design:type`,String)],Lf.prototype,`pDateFormat`,void 0);var Rf,zf=[N.LEXICAL_ANALYSIS],Bf=class extends zu{static{Rf=this}static{this.fromPlain=e=>X(Rf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>zf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Rf.fromPlain(e));if(t.length)throw new DT(`ListVerifiedFieldContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Lf),K(`design:type`,Lf===void 0?Object:Lf)],Bf.prototype,`ListVerifiedFields`,void 0),q([I(),V(N),Il(zf),K(`design:type`,Object)],Bf.prototype,`result_type`,void 0),Bf=Rf=q([J()],Bf);var Vf,Hf=[N.DOCUMENT_TYPE],Uf=class extends zu{static{Vf=this}static{this.fromPlain=e=>X(Vf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Hf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Vf.fromPlain(e));if(t.length)throw new DT(`ChosenDocumentTypeContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Pu),K(`design:type`,Pu===void 0?Object:Pu)],Uf.prototype,`OneCandidate`,void 0),q([L(),U(),K(`design:type`,String)],Uf.prototype,`XML_buffer`,void 0),q([I(),V(N),Il(Hf),K(`design:type`,Object)],Uf.prototype,`result_type`,void 0),Uf=Vf=q([J()],Uf);var Wf,Gf=[N.DOCUMENT_IMAGE,N.RAW_UNCROPPED_IMAGE],Kf=class extends zu{static{Wf=this}static{this.fromPlain=e=>X(Wf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Gf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Wf.fromPlain(e));if(t.length)throw new DT(`RawImageContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],Kf.prototype,`RawImageContainer`,void 0),q([I(),V(N),Il(Gf),K(`design:type`,Object)],Kf.prototype,`result_type`,void 0),Kf=Wf=q([J()],Kf);var qf=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],qf.prototype,`sourceLeft`,void 0),q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],qf.prototype,`sourceRight`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qf.prototype,`status`,void 0);var Jf=class{};q([I(),H(),K(`design:type`,Number)],Jf.prototype,`code`,void 0),q([I(),H(),K(`design:type`,Number)],Jf.prototype,`probability`,void 0),q([L(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Jf.prototype,`rect`,void 0);var Yf=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Yf.prototype,`source`,void 0),q([U(),I(),wu(({value:e})=>e?String(e):``),K(`design:type`,String)],Yf.prototype,`value`,void 0),q([L(),U(),K(`design:type`,String)],Yf.prototype,`originalValue`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Yf.prototype,`originalValidity`,void 0),q([L(),R({each:!0}),Y(()=>Jf),W(),K(`design:type`,Array)],Yf.prototype,`originalSymbols`,void 0),q([I(),H(),K(`design:type`,Number)],Yf.prototype,`pageIndex`,void 0),q([I(),B(),K(`design:type`,Number)],Yf.prototype,`probability`,void 0),q([L(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Yf.prototype,`fieldRect`,void 0),q([L(),R(),Y(()=>Mu),K(`design:type`,Mu===void 0?Object:Mu)],Yf.prototype,`rfidOrigin`,void 0),q([L(),H(),K(`design:type`,Number)],Yf.prototype,`containerType`,void 0);var Xf=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Xf.prototype,`source`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Xf.prototype,`status`,void 0);var Zf=class{static{this.fromContainers=(e,t)=>{let n=[];return e.forEach(e=>{let{Text:r}=e;r.fieldList.forEach(e=>{e.fieldType===t&&n.push(e)})}),n}}};q([I(),V(F),K(`design:type`,F===void 0?Object:F)],Zf.prototype,`fieldType`,void 0),q([I(),U(),K(`design:type`,String)],Zf.prototype,`fieldName`,void 0),q([I(),V(yr),K(`design:type`,yr===void 0?Object:yr)],Zf.prototype,`lcid`,void 0),q([L(),U(),K(`design:type`,String)],Zf.prototype,`lcidName`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Zf.prototype,`status`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Zf.prototype,`validityStatus`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Zf.prototype,`comparisonStatus`,void 0),q([I(),U(),wu(({value:e})=>e?String(e):``),K(`design:type`,String)],Zf.prototype,`value`,void 0),q([I(),R({each:!0}),Y(()=>Yf),W(),K(`design:type`,Array)],Zf.prototype,`valueList`,void 0),q([I(),R({each:!0}),Y(()=>Xf),W(),K(`design:type`,Array)],Zf.prototype,`validityList`,void 0),q([I(),R({each:!0}),Y(()=>qf),W(),K(`design:type`,Array)],Zf.prototype,`comparisonList`,void 0);var Qf=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Qf.prototype,`source`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Qf.prototype,`validityStatus`,void 0),q([L(),H(),K(`design:type`,Number)],Qf.prototype,`containerType`,void 0);var $f=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$f.prototype,`status`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$f.prototype,`validityStatus`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$f.prototype,`comparisonStatus`,void 0),q([I(),U(),K(`design:type`,String)],$f.prototype,`dateFormat`,void 0),q([I(),R({each:!0}),Y(()=>Zf),W(),K(`design:type`,Array)],$f.prototype,`fieldList`,void 0),q([I(),R({each:!0}),Y(()=>Qf),W(),K(`design:type`,Array)],$f.prototype,`availableSourceList`,void 0);var ep,tp=[N.TEXT],np=class extends zu{static{ep=this}static{this.fromPlain=e=>X(ep,e,{exposeUnsetFields:!1})}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>tp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ep.fromPlain(e));if(t.length)throw new DT(`TextResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>$f),K(`design:type`,$f===void 0?Object:$f)],np.prototype,`Text`,void 0),q([I(),V(N),Il(tp),K(`design:type`,Object)],np.prototype,`result_type`,void 0),np=ep=q([J()],np);var rp=class extends ff{};q([I(),H(),K(`design:type`,Number)],rp.prototype,`OriginDG`,void 0),q([L(),H(),K(`design:type`,Number)],rp.prototype,`OriginDGTag`,void 0),q([I(),H(),K(`design:type`,Number)],rp.prototype,`OriginTagEntry`,void 0),q([L(),H(),K(`design:type`,Number)],rp.prototype,`OriginEntryView`,void 0);var ip=class{};q([I(),H(),K(`design:type`,Number)],ip.prototype,`nFields`,void 0),q([I(),R(),Y(()=>rp),K(`design:type`,Array)],ip.prototype,`pArrayFields`,void 0);var ap,op=[N.RFID_TEXT],sp=class extends zu{static{ap=this}static{this.fromPlain=e=>X(ap,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>op.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ap.fromPlain(e));if(t.length)throw new DT(`RFIDTextDataContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>ip),K(`design:type`,ip===void 0?Object:ip)],sp.prototype,`DocVisualExtendedInfo`,void 0),q([I(),V(N),Il(op),K(`design:type`,Object)],sp.prototype,`result_type`,void 0),sp=ap=q([J()],sp);var cp,lp=[N.MRZ_POSITION],up=class extends zu{static{cp=this}static{this.fromPlain=e=>X(cp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>lp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(cp.fromPlain(e));if(t.length)throw new DT(`MRZPositionContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Au),K(`design:type`,Au===void 0?Object:Au)],up.prototype,`MrzPosition`,void 0),q([I(),V(N),Il(lp),K(`design:type`,Object)],up.prototype,`result_type`,void 0),up=cp=q([J()],up);var dp=class{};q([L(),H(),K(`design:type`,Number)],dp.prototype,`Left`,void 0),q([L(),H(),K(`design:type`,Number)],dp.prototype,`Top`,void 0),q([L(),H(),K(`design:type`,Number)],dp.prototype,`Right`,void 0),q([L(),H(),K(`design:type`,Number)],dp.prototype,`Bottom`,void 0);var fp=class{};q([I(),H(),K(`design:type`,Number)],fp.prototype,`FieldLength`,void 0),q([I(),H(),K(`design:type`,Number)],fp.prototype,`FieldPos`,void 0),q([I(),H(),K(`design:type`,Number)],fp.prototype,`FieldType`,void 0),q([I(),H(),K(`design:type`,Number)],fp.prototype,`TEST_RESULT`,void 0),q([I(),H(),K(`design:type`,Number)],fp.prototype,`ValidCheckSum`,void 0),q([I(),H(),K(`design:type`,Number)],fp.prototype,`reserved`,void 0);var pp=class{};q([I(),H(),K(`design:type`,Number)],pp.prototype,`ALIGNMENT_NEAREST_SYMBOLS`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`CONTRAST_PRINT`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`CONTRAST_SYMBOL`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`CharSymbol`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`EDGE`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`EMPTINESS`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`STAIN`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SYMBOLS_INTERVAL`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SYMBOL_PARAM`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SYMBOL_SIZE`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorAlignWithNext`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorAlignWithPrev`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorIntervWithNext`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorIntervWithPrev`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorSymbolHeight`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorSymbolWidth`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],pp.prototype,`SymbolBounds`,void 0);var mp=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`ALIGNMENT_SYMBOLS_IN_STRING`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`CHECK_SUMS`,void 0),q([I(),R(),Y(()=>dp),K(`design:type`,dp===void 0?Object:dp)],mp.prototype,`ErrorPOSITION`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`FieldCount`,void 0),q([I(),R({each:!0}),W(),Y(()=>fp),K(`design:type`,Array)],mp.prototype,`Fields`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`STRINGS_DISTANCE`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`STRINGS_INTERVAL`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`STRING_FILLING`,void 0),q([L(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`STRINGS_POSITION`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`SYMBOLS_PARAM`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`SizeError_ALIGNMENT`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`SizeError_DISTANCE`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`SizeError_INTERVAL`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`StringAngle`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],mp.prototype,`StringBorders`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`SymbolsCount`,void 0),q([I(),R({each:!0}),W(),Y(()=>pp),K(`design:type`,Array)],mp.prototype,`SymbolsEstimations`,void 0);var hp=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`CHECK_SUMS`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`CONTRAST_PRINT`,void 0),q([I(),H(),K(`design:type`,Number)],hp.prototype,`DOC_FORMAT`,void 0),q([I(),H(),K(`design:type`,Number)],hp.prototype,`MRZ_FORMAT`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`PRINT_POSITION`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`STAIN_MRZ`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`SYMBOLS_PARAM`,void 0),q([I(),H(),K(`design:type`,Number)],hp.prototype,`StrCount`,void 0),q([I(),R(),Y(()=>mp),K(`design:type`,Array)],hp.prototype,`Strings`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`TEXTUAL_FILLING`,void 0);var gp,_p=[N.MRZ_TEST_QUALITY],vp=class extends zu{static{gp=this}static{this.fromPlain=e=>X(gp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>_p.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(gp.fromPlain(e));if(t.length)throw new DT(`MRZTestQualityContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>hp),K(`design:type`,hp===void 0?Object:hp)],vp.prototype,`MRZTestQuality`,void 0),q([I(),V(N),Il(_p),K(`design:type`,Object)],vp.prototype,`result_type`,void 0),vp=gp=q([J()],vp);var yp=class{};q([L(),V(mr),K(`design:type`,mr===void 0?Object:mr)],yp.prototype,`RecResult`,void 0),q([L(),R({each:!0}),Y(()=>Pu),W(),K(`design:type`,Array)],yp.prototype,`Candidates`,void 0);var bp,xp=[N.DOCUMENT_TYPE_CANDIDATES],Sp=class extends zu{static{bp=this}static{this.fromPlain=e=>X(bp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>xp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(bp.fromPlain(e));if(t.length)throw new DT(`DocumentTypesCandidatesContainer validation error: the data received does not match model structure!`,t);return!0}}};q([L(),R(),Y(()=>yp),K(`design:type`,yp===void 0?Object:yp)],Sp.prototype,`CandidatesList`,void 0),q([I(),V(N),Il(xp),K(`design:type`,Object)],Sp.prototype,`result_type`,void 0),Sp=bp=q([J()],Sp);var Cp=class{};q([I(),W(),H({each:!0}),K(`design:type`,Array)],Cp.prototype,`boundingRect`,void 0);var wp=class{};q([I(),H(),K(`design:type`,Number)],wp.prototype,`length`,void 0),q([I(),H(),K(`design:type`,Number)],wp.prototype,`maxLength`,void 0),q([I(),R({each:!0}),Y(()=>Cp),W(),K(`design:type`,Array)],wp.prototype,`symbols`,void 0);var Tp=class{};q([I(),H(),K(`design:type`,Number)],Tp.prototype,`MRZFormat`,void 0),q([I(),H(),K(`design:type`,Number)],Tp.prototype,`MRZRowsNum`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Tp.prototype,`boundingQuadrangle`,void 0);var Ep,Dp=[N.MRZ_DETECTOR],Op=class extends zu{static{Ep=this}static{this.fromPlain=e=>X(Ep,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Dp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Ep.fromPlain(e));if(t.length)throw new DT(`MRZDetectorContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Tp),K(`design:type`,Tp===void 0?Object:Tp)],Op.prototype,`ResultMRZDetector`,void 0),q([I(),V(N),Il(Dp),K(`design:type`,Object)],Op.prototype,`result_type`,void 0),Op=Ep=q([J()],Op);var kp=class{};q([I(),H(),K(`design:type`,Number)],kp.prototype,`CoincidenceToPhotoArea`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],kp.prototype,`FaceRect`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],kp.prototype,`FieldRect`,void 0),q([I(),H(),K(`design:type`,Number)],kp.prototype,`GraphFieldNumber`,void 0),q([I(),R({each:!0}),Y(()=>pu),W(),K(`design:type`,Array)],kp.prototype,`Landmarks`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],kp.prototype,`LightType`,void 0),q([I(),H(),K(`design:type`,Number)],kp.prototype,`Orientation`,void 0),q([I(),H(),K(`design:type`,Number)],kp.prototype,`Probability`,void 0);var Ap=class{};q([I(),H(),K(`design:type`,Number)],Ap.prototype,`Count`,void 0),q([I(),H(),K(`design:type`,Number)],Ap.prototype,`CountFalseDetection`,void 0),q([I(),R({each:!0}),Y(()=>kp),W(),K(`design:type`,Array)],Ap.prototype,`Res`,void 0),q([L(),H(),K(`design:type`,Number)],Ap.prototype,`Reserved1`,void 0),q([L(),H(),K(`design:type`,Number)],Ap.prototype,`Reserved2`,void 0);var jp,Mp=[N.FACE_DETECTION],Np=class extends zu{static{jp=this}static{this.fromPlain=e=>X(jp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Mp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(jp.fromPlain(e));if(t.length)throw new DT(`FaceDetectionContainer validation error: the data received does not match model structure!`,t);return!0}}};q([L(),R(),Y(()=>Ap),K(`design:type`,Ap===void 0?Object:Ap)],Np.prototype,`FaceDetection`,void 0),q([I(),V(N),Il(Mp),K(`design:type`,Object)],Np.prototype,`result_type`,void 0),Np=jp=q([J()],Np);var Pp=class{};q([I(),U(),K(`design:type`,String)],Pp.prototype,`Data`,void 0),q([I(),H(),K(`design:type`,Number)],Pp.prototype,`Length`,void 0);var Fp=class{};q([I(),H(),K(`design:type`,Number)],Fp.prototype,`FieldType`,void 0),q([I(),R(),Y(()=>Pp),K(`design:type`,Pp===void 0?Object:Pp)],Fp.prototype,`File_Image`,void 0),q([I(),H(),K(`design:type`,Number)],Fp.prototype,`GraphicsType`,void 0),q([I(),H(),K(`design:type`,Number)],Fp.prototype,`OriginDG`,void 0),q([I(),H(),K(`design:type`,Number)],Fp.prototype,`OriginDGTag`,void 0),q([I(),H(),K(`design:type`,Number)],Fp.prototype,`OriginEntryView`,void 0),q([I(),H(),K(`design:type`,Number)],Fp.prototype,`OriginTagEntry`,void 0);var Ip=class{};q([I(),R({each:!0}),Y(()=>Fp),W(),K(`design:type`,Array)],Ip.prototype,`RFID_ORIGINAL_GRAPH_DATA`,void 0);var Lp,Rp=[N.RFID_ORIGINAL_GRAPHICS],zp=class extends zu{static{Lp=this}static{this.fromPlain=e=>X(Lp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Rp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Lp.fromPlain(e));if(t.length)throw new DT(`RFIDGraphicsInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Ip),K(`design:type`,Ip===void 0?Object:Ip)],zp.prototype,`TOriginalRFIDGraphicsInfo`,void 0),q([I(),V(N),Il(Rp),K(`design:type`,Object)],zp.prototype,`result_type`,void 0),zp=Lp=q([J()],zp);var Bp,Vp=[N.DTC_VC],Hp=class extends zu{static{Bp=this}static{this.fromPlain=e=>X(Bp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Vp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Bp.fromPlain(e));if(t.length)throw new DT(`ByteArrayContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),U(),K(`design:type`,String)],Hp.prototype,`ByteArray`,void 0),q([I(),V(N),Il(Vp),K(`design:type`,Object)],Hp.prototype,`result_type`,void 0),Hp=Bp=q([J()],Hp);var Up=class{};q([I(),B(),K(`design:type`,Number)],Up.prototype,`Type`,void 0),q([I(),R(),Y(()=>Fu),K(`design:type`,Fu===void 0?Object:Fu)],Up.prototype,`Data`,void 0);var Wp=class{};q([L(),U(),K(`design:type`,String)],Wp.prototype,`Certificate`,void 0),q([L(),W(),R({each:!0}),Y(()=>Bd),K(`design:type`,Array)],Wp.prototype,`CertificateChain`,void 0),q([L(),W(),R({each:!0}),Y(()=>Up),K(`design:type`,Array)],Wp.prototype,`DocFeatures`,void 0),q([L(),U(),K(`design:type`,String)],Wp.prototype,`DocIssueDate`,void 0),q([L(),B(),K(`design:type`,Number)],Wp.prototype,`DocType`,void 0),q([L(),B(),K(`design:type`,Number)],Wp.prototype,`FeatureRef`,void 0),q([L(),U(),K(`design:type`,String)],Wp.prototype,`IssuingCountry`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],Wp.prototype,`Notifications`,void 0),q([L(),R(),Y(()=>Fu),K(`design:type`,Fu===void 0?Object:Fu)],Wp.prototype,`Signature`,void 0),q([L(),U(),K(`design:type`,String)],Wp.prototype,`SignatureDate`,void 0),q([L(),U(),K(`design:type`,String)],Wp.prototype,`Signer`,void 0),q([L(),B(),K(`design:type`,Number)],Wp.prototype,`Type`,void 0),q([L(),B(),K(`design:type`,Number)],Wp.prototype,`Version`,void 0);var Gp,Kp=[N.VDS],qp=class extends zu{static{Gp=this}static{this.fromPlain=e=>X(Gp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Kp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Gp.fromPlain(e));if(t.length)throw new DT(`VDSContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Wp),K(`design:type`,Wp===void 0?Object:Wp)],qp.prototype,`dftVDS`,void 0),q([I(),V(N),Il(Kp),K(`design:type`,Object)],qp.prototype,`result_type`,void 0),qp=Gp=q([J()],qp);var Jp=class{};q([L(),U(),K(`design:type`,String)],Jp.prototype,`dob`,void 0),q([L(),U(),K(`design:type`,String)],Jp.prototype,`i`,void 0),q([L(),U(),K(`design:type`,String)],Jp.prototype,`n`,void 0),q([L(),U(),K(`design:type`,String)],Jp.prototype,`sex`,void 0);var Yp=class{};q([L(),U(),K(`design:type`,String)],Yp.prototype,`adm`,void 0),q([L(),U(),K(`design:type`,String)],Yp.prototype,`ctr`,void 0),q([L(),U(),K(`design:type`,String)],Yp.prototype,`dvc`,void 0),q([L(),U(),K(`design:type`,String)],Yp.prototype,`lot`,void 0),q([L(),B(),K(`design:type`,Number)],Yp.prototype,`seq`,void 0);var Xp=class{};q([L(),U(),K(`design:type`,String)],Xp.prototype,`des`,void 0),q([L(),U(),K(`design:type`,String)],Xp.prototype,`dis`,void 0),q([L(),U(),K(`design:type`,String)],Xp.prototype,`nam`,void 0),q([L(),W(),R({each:!0}),Y(()=>Yp),K(`design:type`,typeof Array>`u`?Object:Array)],Xp.prototype,`vd`,void 0);var Zp=class{};q([L(),R(),Y(()=>Jp),K(`design:type`,Jp===void 0?Object:Jp)],Zp.prototype,`pid`,void 0),q([L(),U(),K(`design:type`,String)],Zp.prototype,`uvci`,void 0),q([L(),W(),R({each:!0}),Y(()=>Xp),K(`design:type`,typeof Array>`u`?Object:Array)],Zp.prototype,`ve`,void 0);var Qp=class{};q([L(),R(),Y(()=>Fu),K(`design:type`,Fu===void 0?Object:Fu)],Qp.prototype,`Certificate`,void 0),q([L(),W(),R({each:!0}),Y(()=>Bd),K(`design:type`,Array)],Qp.prototype,`CertificateChain`,void 0),q([L(),U(),K(`design:type`,String)],Qp.prototype,`IssuingCountry`,void 0),q([L(),R(),Y(()=>Zp),K(`design:type`,Zp===void 0?Object:Zp)],Qp.prototype,`Message`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],Qp.prototype,`Notifications`,void 0),q([L(),R(),Y(()=>Fu),K(`design:type`,Fu===void 0?Object:Fu)],Qp.prototype,`Signature`,void 0),q([L(),U(),K(`design:type`,String)],Qp.prototype,`SignatureAlg`,void 0),q([L(),U(),K(`design:type`,String)],Qp.prototype,`Type`,void 0),q([L(),B(),K(`design:type`,Number)],Qp.prototype,`Version`,void 0);var $p,em=[N.VDS_NC],tm=class extends zu{static{$p=this}static{this.fromPlain=e=>X($p,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>em.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G($p.fromPlain(e));if(t.length)throw new DT(`VDSNCContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Qp),K(`design:type`,Qp===void 0?Object:Qp)],tm.prototype,`dftVDS_NC`,void 0),q([I(),V(N),Il(em),K(`design:type`,Object)],tm.prototype,`result_type`,void 0),tm=$p=q([J()],tm);var nm,rm=[N.BSI_XML_V2],im=class extends zu{static{nm=this}static{this.fromPlain=e=>X(nm,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>rm.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(nm.fromPlain(e));if(t.length)throw new DT(`BSIv2Container validation error: the data received does not match model structure!`,t);return!0}}};q([I(),U(),K(`design:type`,String)],im.prototype,`XML_buffer`,void 0),q([I(),V(N),Il(rm),K(`design:type`,Object)],im.prototype,`result_type`,void 0),im=nm=q([J()],im);var am,om=[N.MDL_PARSED_RESPONSE],sm=class extends zu{static{am=this}static{this.fromPlain=e=>X(am,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>om.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(am.fromPlain(e));if(t.length)throw new DT(`MDLContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],sm.prototype,`MDLParsedResponse`,void 0),q([I(),V(N),Il(om),K(`design:type`,Object)],sm.prototype,`result_type`,void 0),sm=am=q([J()],sm);var cm=e=>{let t=[];if(!Array.isArray(e))return t;for(let n of e){if(!hx(n)||!(`result_type`in n))continue;let{result_type:e}=n;switch(e){case N.MRZ_TEST_QUALITY:t.push(vp.fromPlain(n));break;case N.DOCUMENT_TYPE_CANDIDATES:t.push(Sp.fromPlain(n));break;case N.AUTHENTICITY:case N.PORTRAIT_COMPARISON:case N.FINGERPRINT_COMPARISON:t.push(md.fromPlain(n));break;case N.BARCODE_POSITION:t.push(bd.fromPlain(n));break;case N.DOCUMENT_POSITION:t.push(_d.fromPlain(n));break;case N.MRZ_DETECTOR:t.push(Op.fromPlain(n));break;case N.FACE_DETECTION:t.push(Np.fromPlain(n));break;case N.MRZ_POSITION:t.push(up.fromPlain(n));break;case N.BARCODES:t.push(Dd.fromPlain(n));break;case N.RFID_RAW_DATA:case N.RFID_BINARY_DATA:t.push(nf.fromPlain(n));break;case N.DTC_VC:t.push(Hp.fromPlain(n));break;case N.RFID_ORIGINAL_GRAPHICS:t.push(zp.fromPlain(n));break;case N.VISUAL_GRAPHICS:case N.BARCODE_GRAPHICS:case N.LIVE_PORTRAIT:case N.EXT_PORTRAIT:case N.FINGERPRINTS:case N.RFID_GRAPHICS:t.push(cf.fromPlain(n));break;case N.VISUAL_TEXT:case N.MRZ_TEXT:case N.BARCODE_TEXT:case N.MAGNETIC_STRIPE_TEXT_DATA:t.push(_f.fromPlain(n));break;case N.RFID_TEXT:t.push(sp.fromPlain(n));break;case N.ENCRYPTED_RCL:t.push(bf.fromPlain(n));break;case N.IMAGE_QUALITY:t.push(Tf.fromPlain(n));break;case N.IMAGES:t.push(Mf.fromPlain(n));break;case N.LICENSE:t.push(Ff.fromPlain(n));break;case N.LEXICAL_ANALYSIS:t.push(Bf.fromPlain(n));break;case N.DOCUMENT_TYPE:t.push(Uf.fromPlain(n));break;case N.DOCUMENT_IMAGE:case N.RAW_UNCROPPED_IMAGE:t.push(Kf.fromPlain(n));break;case N.STATUS:t.push(Zd.fromPlain(n));break;case N.TEXT:t.push(np.fromPlain(n));break;case N.VDS_NC:t.push(tm.fromPlain(n));break;case N.VDS:t.push(qp.fromPlain(n));break;case N.BSI_XML_V2:t.push(im.fromPlain(n));break;case N.MDL_PARSED_RESPONSE:t.push(sm.fromPlain(n));break}}return t},lm=class{};q([L(),H(),K(`design:type`,Number)],lm.prototype,`Count`,void 0),q([I(),W(),R({each:!0}),wu(({obj:e})=>cm(e.List),{toClassOnly:!0}),K(`design:type`,Array)],lm.prototype,`List`,void 0);var um=class{};q([L(),B(),K(`design:type`,Number)],um.prototype,`limit`,void 0),q([L(),B(),K(`design:type`,Number)],um.prototype,`threshold`,void 0),q([L(),B({},{each:!0}),K(`design:type`,Array)],um.prototype,`group_ids`,void 0);var dm=class{};q([L(),U(),K(`design:type`,String)],dm.prototype,`url`,void 0),q([L(),U(),K(`design:type`,String)],dm.prototype,`mode`,void 0),q([L(),R(),Y(()=>um),K(`design:type`,um===void 0?Object:um)],dm.prototype,`search`,void 0),q([L(),B(),K(`design:type`,Number)],dm.prototype,`threshold`,void 0),q([L(),B(),K(`design:type`,Number)],dm.prototype,`serviceTimeout`,void 0),q([L(),U(),K(`design:type`,String)],dm.prototype,`proxy`,void 0),q([L(),U(),K(`design:type`,String)],dm.prototype,`proxy_userpwd`,void 0),q([L(),B(),K(`design:type`,Number)],dm.prototype,`proxy_type`,void 0),q([L(),B(),K(`design:type`,Number)],dm.prototype,`childAgeThreshold`,void 0),q([L(),B(),K(`design:type`,Number)],dm.prototype,`childDocValidityYears`,void 0);var fm=class{};q([L(),B(),K(`design:type`,Number)],fm.prototype,`brightnessThreshold`,void 0),q([L(),H(),K(`design:type`,Number)],fm.prototype,`dpiThreshold`,void 0),q([L(),H(),K(`design:type`,Number)],fm.prototype,`angleThreshold`,void 0),q([z(),L(),K(`design:type`,Boolean)],fm.prototype,`focusCheck`,void 0),q([z(),L(),K(`design:type`,Boolean)],fm.prototype,`glaresCheck`,void 0),q([z(),L(),K(`design:type`,Boolean)],fm.prototype,`colornessCheck`,void 0),q([z(),L(),K(`design:type`,Boolean)],fm.prototype,`moireCheck`,void 0),q([L(),B(),K(`design:type`,Number)],fm.prototype,`documentPositionIndent`,void 0),q([L(),W(),V(vr,{each:!0}),K(`design:type`,Array)],fm.prototype,`expectedPass`,void 0);var pm=class{};q([L(),H({each:!0}),W(),K(`design:type`,Array)],pm.prototype,`docID`,void 0),q([L(),H(),K(`design:type`,Number)],pm.prototype,`excludeAuthChecks`,void 0);var mm=class{};q([L(),V(Er,{each:!0}),W(),K(`design:type`,Array)],mm.prototype,`paIgnoreNotificationCodes`,void 0);var hm=class{};q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkOVI`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkMLI`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkHolo`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkED`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkBlackAndWhiteCopy`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkDynaprint`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkGeometry`,void 0);var gm=class{};q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkLiveness`,void 0),q([L(),R(),Y(()=>hm),K(`design:type`,hm===void 0?Object:hm)],gm.prototype,`livenessParams`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkUVLuminiscence`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkIRB900`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkImagePatterns`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkFibers`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkExtMRZ`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkExtOCR`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkAxial`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkBarcodeFormat`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkIRVisibility`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkIPI`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkPhotoEmbedding`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkPhotoComparison`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkLetterScreen`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkSecurityText`,void 0);var _m=e=>(t,n)=>{Tl({name:`IsStringObjectRecord`,target:t.constructor,propertyName:String(n),constraints:[],options:{message:`${String(n)} must be a Record<string, object>`,...e},validator:{validate(e,t){return hx(e)?Object.keys(e).length===0?!0:Object.keys(e).every(t=>!(typeof t!=`string`||!hx(e[t]))):!1}}})},$=class{};q([L(),z(),K(`design:type`,Boolean)],$.prototype,`generateDTCVC`,void 0),q([L(),V(yr,{each:!0}),K(`design:type`,Array)],$.prototype,`lcidFilter`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`checkLiveness`,void 0),q([L(),V(yr,{each:!0}),K(`design:type`,Array)],$.prototype,`lcidIgnoreFilter`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`oneShotIdentification`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`useFaceApi`,void 0),q([L(),R(),Y(()=>dm),K(`design:type`,dm===void 0?Object:dm)],$.prototype,`faceApi`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`doDetectCan`,void 0),q([L(),H(),Rl(0),K(`design:type`,Number)],$.prototype,`imageOutputMaxHeight`,void 0),q([L(),H(),Rl(0),K(`design:type`,Number)],$.prototype,`imageOutputMaxWidth`,void 0),q([I(),V(Br),K(`design:type`,Br===void 0?Object:Br)],$.prototype,`scenario`,void 0),q([L(),V(N,{each:!0}),K(`design:type`,Array)],$.prototype,`resultTypeOutput`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`doublePageSpread`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`generateDoublePageSpreadImage`,void 0),q([L(),V(F,{each:!0}),K(`design:type`,Array)],$.prototype,`fieldTypesFilter`,void 0),q([L(),U(),K(`design:type`,String)],$.prototype,`dateFormat`,void 0),q([L(),V(Cr),K(`design:type`,Cr===void 0?Object:Cr)],$.prototype,`measureSystem`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`imageDpiOutMax`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`alreadyCropped`,void 0),q([L(),_m(),K(`design:type`,typeof Record>`u`?Object:Record)],$.prototype,`customParams`,void 0),q([L(),R({each:!0}),Y(()=>pm),K(`design:type`,Array)],$.prototype,`config`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`log`,void 0),q([L(),V(xr),K(`design:type`,xr===void 0?Object:xr)],$.prototype,`logLevel`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`forceDocID`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`matchTextFieldMask`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`fastDocDetect`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`updateOCRValidityByGlare`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`checkRequiredTextFields`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`returnCroppedBarcode`,void 0),q([L(),R(),K(`design:type`,fm===void 0?Object:fm)],$.prototype,`imageQa`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`strictImageQuality`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`respectImageQuality`,void 0),q([L(),V(fr),K(`design:type`,fr===void 0?Object:fr)],$.prototype,`forceDocFormat`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`noGraphics`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`depersonalizeLog`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`multiDocOnImage`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`shiftExpiryDate`,void 0),q([L(),H(),Rl(0),K(`design:type`,Number)],$.prototype,`minimalHolderAge`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`returnUncroppedImage`,void 0),q([L(),V(Sr,{each:!0}),K(`design:type`,Array)],$.prototype,`mrzFormatsFilter`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`forceReadMrzBeforeLocate`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`parseBarcodes`,void 0),q([L(),V(Ur),K(`design:type`,Ur===void 0?Object:Ur)],$.prototype,`convertCase`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`splitNames`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`disablePerforationOCR`,void 0),q([L(),V(pr,{each:!0}),K(`design:type`,Array)],$.prototype,`documentGroupFilter`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`processAuth`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`deviceId`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`deviceType`,void 0),q([L(),U(),K(`design:type`,String)],$.prototype,`deviceTypeHex`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`ignoreDeviceIdFromImage`,void 0),q([L(),H({each:!0}),K(`design:type`,Array)],$.prototype,`documentIdList`,void 0),q([L(),R(),Y(()=>mm),K(`design:type`,mm===void 0?Object:mm)],$.prototype,`rfid`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`checkAuth`,void 0),q([L(),R(),Y(()=>gm),K(`design:type`,gm===void 0?Object:gm)],$.prototype,`authParams`,void 0),q([L(),V(wr),K(`design:type`,wr===void 0?Object:wr)],$.prototype,`mrzDetectMode`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`generateNumericCodes`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`strictBarcodeDigitalSignatureCheck`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`selectLongestNames`,void 0),q([L(),W(),V(_r,{each:!0}),K(`design:type`,Array)],$.prototype,`doBarcodes`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`strictDLCategoryExpiry`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`generateAlpha2Codes`,void 0),q([L(),B(),K(`design:type`,Number)],$.prototype,`pdfPagesLimit`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`disableAuthResolutionFilter`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`strictSecurityChecks`,void 0);var vm=class{};q([R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],vm.prototype,`ImageData`,void 0),q([V(br),L(),K(`design:type`,br===void 0?Object:br)],vm.prototype,`light`,void 0),q([H(),L(),K(`design:type`,Number)],vm.prototype,`page_idx`,void 0);var ym=class{};q([L(),U(),Hl(),K(`design:type`,String)],ym.prototype,`license`,void 0),q([L(),U(),K(`design:type`,String)],ym.prototype,`recaptcha_token`,void 0);var bm,xm=class{static{bm=this}static{this.fromPlain=e=>X(bm,e)}static{this.toPlain=e=>Eu(e,{excludeExtraneousValues:!0})}static{this.validate=e=>{let t=G(bm.toPlain(e));if(t.length)throw new DT(`ProcessRequest validation error: the data received does not match model structure!`,t);return!0}}};q([R(),I(),Y(()=>$),K(`design:type`,$===void 0?Object:$)],xm.prototype,`processParam`,void 0),q([R({each:!0}),L(),Y(()=>vm),K(`design:type`,Array)],xm.prototype,`List`,void 0),q([U(),L(),K(`design:type`,String)],xm.prototype,`tag`,void 0),q([U(),L(),K(`design:type`,String)],xm.prototype,`tenant`,void 0),q([U(),L(),K(`design:type`,String)],xm.prototype,`env`,void 0),q([L(),U(),K(`design:type`,String)],xm.prototype,`livePortrait`,void 0),q([L(),U(),K(`design:type`,String)],xm.prototype,`extPortrait`,void 0),q([L(),R(),Y(()=>lm),K(`design:type`,lm===void 0?Object:lm)],xm.prototype,`ContainerList`,void 0),q([L(),R(),Y(()=>ym),K(`design:type`,ym===void 0?Object:ym)],xm.prototype,`systemInfo`,void 0),q([L(),_m(),K(`design:type`,typeof Record>`u`?Object:Record)],xm.prototype,`passBackObject`,void 0),q([L(),U(),K(`design:type`,String)],xm.prototype,`dtc`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],xm.prototype,`ImageUrls`,void 0),xm=bm=q([J()],xm);var Sm=class{};q([L(),U(),K(`design:type`,String)],Sm.prototype,`Description`,void 0),q([L(),U(),K(`design:type`,String)],Sm.prototype,`ExportDate`,void 0),q([L(),U(),K(`design:type`,String)],Sm.prototype,`ID`,void 0),q([L(),U(),K(`design:type`,String)],Sm.prototype,`Version`,void 0);var Cm=class{};q([L(),U(),K(`design:type`,String)],Cm.prototype,`ComputerName`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`DateTime`,void 0),q([L(),R(),Y(()=>Sm),K(`design:type`,Sm===void 0?Object:Sm)],Cm.prototype,`DocumentsDatabase`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`SystemInfo`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`Tag`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`TransactionID`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`UserName`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`Version`,void 0);var wm=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Tm=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Em=o(((e,t)=>{var n=Tm();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Dm=o(((e,t)=>{var n=Em(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Om=o(((e,t)=>{var n=Em();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),km=o(((e,t)=>{var n=Em();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Am=o(((e,t)=>{var n=Em();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),jm=o(((e,t)=>{var n=wm(),r=Dm(),i=Om(),a=km(),o=Am();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Mm=o(((e,t)=>{var n=jm();function r(){this.__data__=new n,this.size=0}t.exports=r})),Nm=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),Pm=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),Fm=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Im=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Lm=o(((e,t)=>{var n=Im(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Rm=o(((e,t)=>{t.exports=Lm().Symbol})),zm=o(((e,t)=>{var n=Rm(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Bm=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Vm=o(((e,t)=>{var n=Rm(),r=zm(),i=Bm(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Hm=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Um=o(((e,t)=>{var n=Vm(),r=Hm(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Wm=o(((e,t)=>{t.exports=Lm()[`__core-js_shared__`]})),Gm=o(((e,t)=>{var n=Wm(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Km=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),qm=o(((e,t)=>{var n=Um(),r=Gm(),i=Hm(),a=Km(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),Jm=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),Ym=o(((e,t)=>{var n=qm(),r=Jm();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),Xm=o(((e,t)=>{t.exports=Ym()(Lm(),`Map`)})),Zm=o(((e,t)=>{t.exports=Ym()(Object,`create`)})),Qm=o(((e,t)=>{var n=Zm();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),$m=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),eh=o(((e,t)=>{var n=Zm(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),th=o(((e,t)=>{var n=Zm(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),nh=o(((e,t)=>{var n=Zm(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),rh=o(((e,t)=>{var n=Qm(),r=$m(),i=eh(),a=th(),o=nh();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),ih=o(((e,t)=>{var n=rh(),r=jm(),i=Xm();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),ah=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),oh=o(((e,t)=>{var n=ah();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),sh=o(((e,t)=>{var n=oh();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),ch=o(((e,t)=>{var n=oh();function r(e){return n(this,e).get(e)}t.exports=r})),lh=o(((e,t)=>{var n=oh();function r(e){return n(this,e).has(e)}t.exports=r})),uh=o(((e,t)=>{var n=oh();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),dh=o(((e,t)=>{var n=ih(),r=sh(),i=ch(),a=lh(),o=uh();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),fh=o(((e,t)=>{var n=jm(),r=Xm(),i=dh(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),ph=o(((e,t)=>{var n=jm(),r=Mm(),i=Nm(),a=Pm(),o=Fm(),s=fh();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),mh=o(((e,t)=>{var n=Ym();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),hh=o(((e,t)=>{var n=mh();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),gh=o(((e,t)=>{var n=hh(),r=Tm();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),_h=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),vh=o(((e,t)=>{t.exports=_h()()})),yh=o(((e,t)=>{var n=Lm(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),bh=o(((e,t)=>{t.exports=Lm().Uint8Array})),xh=o(((e,t)=>{var n=bh();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),Sh=o(((e,t)=>{var n=xh();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),Ch=o(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),wh=o(((e,t)=>{var n=Hm(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),Th=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),Eh=o(((e,t)=>{t.exports=Th()(Object.getPrototypeOf,Object)})),Dh=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),Oh=o(((e,t)=>{var n=wh(),r=Eh(),i=Dh();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),kh=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Ah=o(((e,t)=>{var n=Vm(),r=kh(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),jh=o(((e,t)=>{var n=Ah(),r=kh(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),Mh=o(((e,t)=>{t.exports=Array.isArray})),Nh=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),Ph=o(((e,t)=>{var n=Um(),r=Nh();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),Fh=o(((e,t)=>{var n=Ph(),r=kh();function i(e){return r(e)&&n(e)}t.exports=i})),Ih=o(((e,t)=>{function n(){return!1}t.exports=n})),Lh=o(((e,t)=>{var n=Lm(),r=Ih(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),Rh=o(((e,t)=>{var n=Vm(),r=Eh(),i=kh(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),zh=o(((e,t)=>{var n=Vm(),r=Nh(),i=kh(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,ee=`[object Uint16Array]`,te=`[object Uint32Array]`,D={};D[b]=D[x]=D[S]=D[C]=D[w]=D[T]=D[E]=D[ee]=D[te]=!0,D[a]=D[o]=D[v]=D[s]=D[y]=D[c]=D[l]=D[u]=D[d]=D[f]=D[p]=D[m]=D[h]=D[g]=D[_]=!1;function ne(e){return i(e)&&r(e.length)&&!!D[n(e)]}t.exports=ne})),Bh=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),Vh=o(((e,t)=>{var n=Im(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),Hh=o(((e,t)=>{var n=zh(),r=Bh(),i=Vh(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Uh=o(((e,t)=>{function n(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),Wh=o(((e,t)=>{var n=hh(),r=Tm(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),Gh=o(((e,t)=>{var n=Wh(),r=hh();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),Kh=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),qh=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),Jh=o(((e,t)=>{var n=Kh(),r=jh(),i=Mh(),a=Lh(),o=qh(),s=Hh(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),Yh=o(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),Xh=o(((e,t)=>{var n=Hm(),r=Dh(),i=Yh(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),Zh=o(((e,t)=>{var n=Jh(),r=Xh(),i=Ph();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),Qh=o(((e,t)=>{var n=Gh(),r=Zh();function i(e){return n(e,r(e))}t.exports=i})),$h=o(((e,t)=>{var n=gh(),r=yh(),i=Sh(),a=Ch(),o=Oh(),s=jh(),c=Mh(),l=Fh(),u=Lh(),d=Um(),f=Hm(),p=Rh(),m=Hh(),h=Uh(),g=Qh();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var ee=c(C),te=!ee&&u(C),D=!ee&&!te&&m(C);T=C,ee||te||D?c(S)?T=S:l(S)?T=a(S):te?(E=!1,T=r(C,!0)):D?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}t.exports=_})),eg=o(((e,t)=>{var n=ph(),r=gh(),i=vh(),a=$h(),o=Hm(),s=Zh(),c=Uh();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),tg=o(((e,t)=>{function n(e){return e}t.exports=n})),ng=o(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),rg=o(((e,t)=>{var n=ng(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),ig=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),ag=o(((e,t)=>{var n=ig(),r=mh(),i=tg();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),og=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),sg=o(((e,t)=>{var n=ag();t.exports=og()(n)})),cg=o(((e,t)=>{var n=tg(),r=rg(),i=sg();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),lg=o(((e,t)=>{var n=Tm(),r=Ph(),i=qh(),a=Hm();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),ug=o(((e,t)=>{var n=cg(),r=lg();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),dg=o(((e,t)=>{var n=eg();t.exports=ug()(function(e,t,r){n(e,t,r)})})),fg=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),pg=o(((e,t)=>{var n=fg();function r(e,t){return n(t,function(t){return e[t]})}t.exports=r})),mg=o(((e,t)=>{t.exports=Th()(Object.keys,Object)})),hg=o(((e,t)=>{var n=Dh(),r=mg(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),gg=o(((e,t)=>{var n=Jh(),r=hg(),i=Ph();function a(e){return i(e)?n(e):r(e)}t.exports=a})),_g=o(((e,t)=>{var n=pg(),r=gg();function i(e){return e==null?[]:n(e,r(e))}t.exports=i})),vg=c(dg(),1),yg=c(_g(),1),bg,xg=class{static{bg=this}static{this.fromPlain=e=>{let t=X(bg,e,{exposeUnsetFields:!1});return bg.inform(t),t}}static{this.validate=e=>{let t=G(bg.fromPlain(e));if(t.length)throw new DT(`ProcessResponse validation error: the data received does not match model structure!`,t);return!0}}static{this.isValid=e=>{try{return bg.validate(e),!0}catch{return!1}}}static{this.decodeLog=e=>typeof e==`string`?mx(e):!e||!e.log?``:mx(e.log)}static{this.inform=e=>{if(typeof window>`u`||typeof localStorage>`u`||!localStorage.getItem(`docreader_typings_log`)||!e||!(e instanceof bg))return;let t=G(e),n=bg.simplifyErrors(``,t);for(let[e,t]of Object.entries(n))console.info(`Error in ${e}: ${t.join(`, `)}`)}}static{this.simplifyErrors=(e,t)=>{let n={};for(let r=0;r<t.length;r++){let i=t[r].property,a=e?`${e}.${i}`:i;t[r].children&&t[r].children?.length&&(n=(0,vg.default)(n,bg.simplifyErrors(a,t[r].children))),t[r].constraints&&(n[a]=(0,yg.default)((0,vg.default)(t[r].constraints,n[a])))}return n}}};q([I(),V(Ir),K(`design:type`,Ir===void 0?Object:Ir)],xg.prototype,`ChipPage`,void 0),q([L(),H(),K(`design:type`,Number)],xg.prototype,`CoreLibResultCode`,void 0),q([I(),V(Dr),K(`design:type`,Dr===void 0?Object:Dr)],xg.prototype,`ProcessingFinished`,void 0),q([R(),Y(()=>lm),K(`design:type`,lm===void 0?Object:lm)],xg.prototype,`ContainerList`,void 0),q([I(),R(),Y(()=>Cm),K(`design:type`,Cm===void 0?Object:Cm)],xg.prototype,`TransactionInfo`,void 0),q([L(),U(),Hl(),K(`design:type`,String)],xg.prototype,`log`,void 0),q([L(),_m(),K(`design:type`,typeof Record>`u`?Object:Record)],xg.prototype,`passBackObject`,void 0),q([L(),H(),Rl(0),K(`design:type`,Number)],xg.prototype,`morePagesAvailable`,void 0),q([L(),H(),Rl(0),K(`design:type`,Number)],xg.prototype,`elapsedTime`,void 0),q([L(),_m(),K(`design:type`,typeof Record>`u`?Object:Record)],xg.prototype,`metadata`,void 0),xg=bg=q([J()],xg);var Sg=4,Cg=0,wg=1,Tg=2;function Eg(e){let t=e.length;for(;--t>=0;)e[t]=0}var Dg=0,Og=1,kg=2,Ag=29,jg=256,Mg=286,Ng=30,Pg=19,Fg=573,Ig=15,Lg=16,Rg=7,zg=256,Bg=16,Vg=17,Hg=18,Ug=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Wg=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Gg=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Kg=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qg=512,Jg=Array(288*2);Eg(Jg);var Yg=Array(Ng*2);Eg(Yg);var Xg=Array(qg);Eg(Xg);var Zg=Array(256);Eg(Zg);var Qg=Array(Ag);Eg(Qg);var $g=Array(Ng);Eg($g);function e_(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var t_,n_,r_;function i_(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var a_=e=>e<256?Xg[e]:Xg[256+(e>>>7)],o_=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},s_=(e,t,n)=>{e.bi_valid>Lg-n?(e.bi_buf|=t<<e.bi_valid&65535,o_(e,e.bi_buf),e.bi_buf=t>>Lg-e.bi_valid,e.bi_valid+=n-Lg):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},c_=(e,t,n)=>{s_(e,n[t*2],n[t*2+1])},l_=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},u_=e=>{e.bi_valid===16?(o_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},d_=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=Ig;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Fg;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}},f_=(e,t,n)=>{let r=Array(16),i=0,a,o;for(a=1;a<=Ig;a++)i=i+n[a-1]<<1,r[a]=i;for(o=0;o<=t;o++){let t=e[o*2+1];t!==0&&(e[o*2]=l_(r[t]++,t))}},p_=()=>{let e,t,n,r,i,a=Array(16);for(n=0,r=0;r<Ag-1;r++)for(Qg[r]=n,e=0;e<1<<Ug[r];e++)Zg[n++]=r;for(Zg[n-1]=r,i=0,r=0;r<16;r++)for($g[r]=i,e=0;e<1<<Wg[r];e++)Xg[i++]=r;for(i>>=7;r<Ng;r++)for($g[r]=i<<7,e=0;e<1<<Wg[r]-7;e++)Xg[256+ i++]=r;for(t=0;t<=Ig;t++)a[t]=0;for(e=0;e<=143;)Jg[e*2+1]=8,e++,a[8]++;for(;e<=255;)Jg[e*2+1]=9,e++,a[9]++;for(;e<=279;)Jg[e*2+1]=7,e++,a[7]++;for(;e<=287;)Jg[e*2+1]=8,e++,a[8]++;for(f_(Jg,287,a),e=0;e<Ng;e++)Yg[e*2+1]=5,Yg[e*2]=l_(e,5);t_=new e_(Jg,Ug,257,Mg,Ig),n_=new e_(Yg,Wg,0,Ng,Ig),r_=new e_([],Gg,0,Pg,Rg)},m_=e=>{let t;for(t=0;t<Mg;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Ng;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Pg;t++)e.bl_tree[t*2]=0;e.dyn_ltree[zg*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},h_=e=>{e.bi_valid>8?o_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},g_=(e,t,n,r)=>{let i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},__=(e,t,n)=>{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&g_(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!g_(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},v_=(e,t,n)=>{let r,i,a=0,o,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+ a++]&255,r+=(e.pending_buf[e.sym_buf+ a++]&255)<<8,i=e.pending_buf[e.sym_buf+ a++],r===0?c_(e,i,t):(o=Zg[i],c_(e,o+jg+1,t),s=Ug[o],s!==0&&(i-=Qg[o],s_(e,i,s)),r--,o=a_(r),c_(e,o,n),s=Wg[o],s!==0&&(r-=$g[o],s_(e,r,s)));while(a<e.sym_next);c_(e,zg,t)},y_=(e,t)=>{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=Fg,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)__(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],__(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,__(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],d_(e,t),f_(n,c,e.bl_count)},b_=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[Vg*2]++:e.bl_tree[Hg*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[Bg*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))},x_=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do c_(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(c_(e,Vg,e.bl_tree),s_(e,s-3,3)):(c_(e,Hg,e.bl_tree),s_(e,s-11,7)):(a!==i&&(c_(e,a,e.bl_tree),s--),c_(e,Bg,e.bl_tree),s_(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}},S_=e=>{let t;for(b_(e,e.dyn_ltree,e.l_desc.max_code),b_(e,e.dyn_dtree,e.d_desc.max_code),y_(e,e.bl_desc),t=Pg-1;t>=3&&e.bl_tree[Kg[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},C_=(e,t,n,r)=>{let i;for(s_(e,t-257,5),s_(e,n-1,5),s_(e,r-4,4),i=0;i<r;i++)s_(e,e.bl_tree[Kg[i]*2+1],3);x_(e,e.dyn_ltree,t-1),x_(e,e.dyn_dtree,n-1)},w_=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Cg;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return wg;for(n=32;n<jg;n++)if(e.dyn_ltree[n*2]!==0)return wg;return Cg},T_=!1,E_=e=>{T_||=(p_(),!0),e.l_desc=new i_(e.dyn_ltree,t_),e.d_desc=new i_(e.dyn_dtree,n_),e.bl_desc=new i_(e.bl_tree,r_),e.bi_buf=0,e.bi_valid=0,m_(e)},D_=(e,t,n,r)=>{s_(e,(Dg<<1)+ +!!r,3),h_(e),o_(e,n),o_(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},O_={_tr_init:E_,_tr_stored_block:D_,_tr_flush_block:(e,t,n,r)=>{let i,a,o=0;e.level>0?(e.strm.data_type===Tg&&(e.strm.data_type=w_(e)),y_(e,e.l_desc),y_(e,e.d_desc),o=S_(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?D_(e,t,n,r):e.strategy===Sg||a===i?(s_(e,(Og<<1)+ +!!r,3),v_(e,Jg,Yg)):(s_(e,(kg<<1)+ +!!r,3),C_(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),v_(e,e.dyn_ltree,e.dyn_dtree)),m_(e),r&&h_(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+ e.sym_next++]=t,e.pending_buf[e.sym_buf+ e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+ e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Zg[n]+jg+1)*2]++,e.dyn_dtree[a_(t)*2]++),e.sym_next===e.sym_end),_tr_align:e=>{s_(e,Og<<1,3),c_(e,zg,Jg),u_(e)}},k_=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0},A_=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t})()),j_=(e,t,n,r)=>{let i=A_,a=r+n;e^=-1;for(let n=r;n<a;n++)e=e>>>8^i[(e^t[n])&255];return e^-1},M_={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`},N_={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:P_,_tr_stored_block:F_,_tr_flush_block:I_,_tr_tally:L_,_tr_align:R_}=O_,{Z_NO_FLUSH:z_,Z_PARTIAL_FLUSH:B_,Z_FULL_FLUSH:V_,Z_FINISH:H_,Z_BLOCK:U_,Z_OK:W_,Z_STREAM_END:G_,Z_STREAM_ERROR:K_,Z_DATA_ERROR:q_,Z_BUF_ERROR:J_,Z_DEFAULT_COMPRESSION:Y_,Z_FILTERED:X_,Z_HUFFMAN_ONLY:Z_,Z_RLE:Q_,Z_FIXED:$_,Z_DEFAULT_STRATEGY:ev,Z_UNKNOWN:tv,Z_DEFLATED:nv}=N_,rv=9,iv=15,av=8,ov=573,sv=3,cv=258,lv=262,uv=32,dv=42,fv=57,pv=69,mv=73,hv=91,gv=103,_v=113,vv=666,yv=1,bv=2,xv=3,Sv=4,Cv=3,wv=(e,t)=>(e.msg=M_[t],t),Tv=e=>e*2-(e>4?9:0),Ev=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Dv=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},Ov=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,kv=e=>{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Av=(e,t)=>{I_(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,kv(e.strm)},jv=(e,t)=>{e.pending_buf[e.pending++]=t},Mv=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Nv=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=k_(e.adler,t,i,n):e.state.wrap===2&&(e.adler=j_(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Pv=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-lv?e.strstart-(e.w_size-lv):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+cv,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(i=t,l[i+o]!==m||l[i+o-1]!==p||l[i]!==l[r]||l[++i]!==l[r+1])continue;r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=cv-(f-r),r=f-cv,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead},Fv=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-lv)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Dv(e),r+=t),e.strm.avail_in===0)break;if(n=Nv(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=sv)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ov(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ov(e,e.ins_h,e.window[i+sv-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<sv)););}while(e.lookahead<lv&&e.strm.avail_in!==0)},Iv=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,o=0,s=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<n&&(r===0&&t!==H_||t===z_||r!==i+e.strm.avail_in)))break;o=+(t===H_&&r===i+e.strm.avail_in),F_(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,kv(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Nv(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?Sv:t!==z_&&t!==H_&&e.strm.avail_in===0&&e.strstart===e.block_start?bv:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Nv(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,n=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=n||(i||t===H_)&&t!==z_&&e.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,o=+(t===H_&&e.strm.avail_in===0&&r===i),F_(e,e.block_start,r,o),e.block_start+=r,kv(e.strm)),o?xv:yv)},Lv=(e,t)=>{let n,r;for(;;){if(e.lookahead<lv){if(Fv(e),e.lookahead<lv&&t===z_)return yv;if(e.lookahead===0)break}if(n=0,e.lookahead>=sv&&(e.ins_h=Ov(e,e.ins_h,e.window[e.strstart+sv-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-lv&&(e.match_length=Pv(e,n)),e.match_length>=sv)if(r=L_(e,e.strstart-e.match_start,e.match_length-sv),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=sv){e.match_length--;do e.strstart++,e.ins_h=Ov(e,e.ins_h,e.window[e.strstart+sv-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ov(e,e.ins_h,e.window[e.strstart+1]);else r=L_(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Av(e,!1),e.strm.avail_out===0))return yv}return e.insert=e.strstart<sv-1?e.strstart:sv-1,t===H_?(Av(e,!0),e.strm.avail_out===0?xv:Sv):e.sym_next&&(Av(e,!1),e.strm.avail_out===0)?yv:bv},Rv=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<lv){if(Fv(e),e.lookahead<lv&&t===z_)return yv;if(e.lookahead===0)break}if(n=0,e.lookahead>=sv&&(e.ins_h=Ov(e,e.ins_h,e.window[e.strstart+sv-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=sv-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-lv&&(e.match_length=Pv(e,n),e.match_length<=5&&(e.strategy===X_||e.match_length===sv&&e.strstart-e.match_start>4096)&&(e.match_length=sv-1)),e.prev_length>=sv&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-sv,r=L_(e,e.strstart-1-e.prev_match,e.prev_length-sv),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ov(e,e.ins_h,e.window[e.strstart+sv-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=sv-1,e.strstart++,r&&(Av(e,!1),e.strm.avail_out===0))return yv}else if(e.match_available){if(r=L_(e,0,e.window[e.strstart-1]),r&&Av(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return yv}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=L_(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<sv-1?e.strstart:sv-1,t===H_?(Av(e,!0),e.strm.avail_out===0?xv:Sv):e.sym_next&&(Av(e,!1),e.strm.avail_out===0)?yv:bv},zv=(e,t)=>{let n,r,i,a,o=e.window;for(;;){if(e.lookahead<=cv){if(Fv(e),e.lookahead<=cv&&t===z_)return yv;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=sv&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+cv;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=cv-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=sv?(n=L_(e,1,e.match_length-sv),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=L_(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Av(e,!1),e.strm.avail_out===0))return yv}return e.insert=0,t===H_?(Av(e,!0),e.strm.avail_out===0?xv:Sv):e.sym_next&&(Av(e,!1),e.strm.avail_out===0)?yv:bv},Bv=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Fv(e),e.lookahead===0)){if(t===z_)return yv;break}if(e.match_length=0,n=L_(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Av(e,!1),e.strm.avail_out===0))return yv}return e.insert=0,t===H_?(Av(e,!0),e.strm.avail_out===0?xv:Sv):e.sym_next&&(Av(e,!1),e.strm.avail_out===0)?yv:bv};function Vv(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Hv=[new Vv(0,0,0,0,Iv),new Vv(4,4,8,4,Lv),new Vv(4,5,16,8,Lv),new Vv(4,6,32,32,Lv),new Vv(4,4,16,16,Rv),new Vv(8,16,32,32,Rv),new Vv(8,16,128,128,Rv),new Vv(8,32,128,256,Rv),new Vv(32,128,258,1024,Rv),new Vv(32,258,258,4096,Rv)],Uv=e=>{e.window_size=2*e.w_size,Ev(e.head),e.max_lazy_match=Hv[e.level].max_lazy,e.good_match=Hv[e.level].good_length,e.nice_match=Hv[e.level].nice_length,e.max_chain_length=Hv[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=sv-1,e.match_available=0,e.ins_h=0};function Wv(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=nv,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(ov*2),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Ev(this.dyn_ltree),Ev(this.dyn_dtree),Ev(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Ev(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Ev(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Gv=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.status!==dv&&t.status!==fv&&t.status!==pv&&t.status!==mv&&t.status!==hv&&t.status!==gv&&t.status!==_v&&t.status!==vv)},Kv=e=>{if(Gv(e))return wv(e,K_);e.total_in=e.total_out=0,e.data_type=tv;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?fv:t.wrap?dv:_v,e.adler=t.wrap===2?0:1,t.last_flush=-2,P_(t),W_},qv=e=>{let t=Kv(e);return t===W_&&Uv(e.state),t},Jv=(e,t)=>Gv(e)||e.state.wrap!==2?K_:(e.state.gzhead=t,W_),Yv=(e,t,n,r,i,a)=>{if(!e)return K_;let o=1;if(t===Y_&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>rv||n!==nv||r<8||r>15||t<0||t>9||a<0||a>$_||r===8&&o!==1)return wv(e,K_);r===8&&(r=9);let s=new Wv;return e.state=s,s.strm=e,s.status=dv,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+sv-1)/sv),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=t,s.strategy=a,s.method=n,qv(e)},Xv={deflateInit:(e,t)=>Yv(e,t,nv,iv,av,ev),deflateInit2:Yv,deflateReset:qv,deflateResetKeep:Kv,deflateSetHeader:Jv,deflate:(e,t)=>{if(Gv(e)||t>U_||t<0)return e?wv(e,K_):K_;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===vv&&t!==H_)return wv(e,e.avail_out===0?J_:K_);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(kv(e),e.avail_out===0)return n.last_flush=-1,W_}else if(e.avail_in===0&&Tv(t)<=Tv(r)&&t!==H_)return wv(e,J_);if(n.status===vv&&e.avail_in!==0)return wv(e,J_);if(n.status===dv&&n.wrap===0&&(n.status=_v),n.status===dv){let t=nv+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=Z_||n.level<2?0:n.level<6?1:n.level===6?2:3,t|=r<<6,n.strstart!==0&&(t|=uv),t+=31-t%31,Mv(n,t),n.strstart!==0&&(Mv(n,e.adler>>>16),Mv(n,e.adler&65535)),e.adler=1,n.status=_v,kv(e),n.pending!==0)return n.last_flush=-1,W_}if(n.status===fv){if(e.adler=0,jv(n,31),jv(n,139),jv(n,8),n.gzhead)jv(n,+!!n.gzhead.text+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),jv(n,n.gzhead.time&255),jv(n,n.gzhead.time>>8&255),jv(n,n.gzhead.time>>16&255),jv(n,n.gzhead.time>>24&255),jv(n,n.level===9?2:n.strategy>=Z_||n.level<2?4:0),jv(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(jv(n,n.gzhead.extra.length&255),jv(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=j_(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=pv;else if(jv(n,0),jv(n,0),jv(n,0),jv(n,0),jv(n,0),jv(n,n.level===9?2:n.strategy>=Z_||n.level<2?4:0),jv(n,Cv),n.status=_v,kv(e),n.pending!==0)return n.last_flush=-1,W_}if(n.status===pv){if(n.gzhead.extra){let t=n.pending,r=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,kv(e),n.pending!==0)return n.last_flush=-1,W_;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=mv}if(n.status===mv){if(n.gzhead.name){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t)),kv(e),n.pending!==0)return n.last_flush=-1,W_;t=0}r=n.gzindex<n.gzhead.name.length?n.gzhead.name.charCodeAt(n.gzindex++)&255:0,jv(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=hv}if(n.status===hv){if(n.gzhead.comment){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t)),kv(e),n.pending!==0)return n.last_flush=-1,W_;t=0}r=n.gzindex<n.gzhead.comment.length?n.gzhead.comment.charCodeAt(n.gzindex++)&255:0,jv(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t))}n.status=gv}if(n.status===gv){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(kv(e),n.pending!==0))return n.last_flush=-1,W_;jv(n,e.adler&255),jv(n,e.adler>>8&255),e.adler=0}if(n.status=_v,kv(e),n.pending!==0)return n.last_flush=-1,W_}if(e.avail_in!==0||n.lookahead!==0||t!==z_&&n.status!==vv){let r=n.level===0?Iv(n,t):n.strategy===Z_?Bv(n,t):n.strategy===Q_?zv(n,t):Hv[n.level].func(n,t);if((r===xv||r===Sv)&&(n.status=vv),r===yv||r===xv)return e.avail_out===0&&(n.last_flush=-1),W_;if(r===bv&&(t===B_?R_(n):t!==U_&&(F_(n,0,0,!1),t===V_&&(Ev(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),kv(e),e.avail_out===0))return n.last_flush=-1,W_}return t===H_?n.wrap<=0?G_:(n.wrap===2?(jv(n,e.adler&255),jv(n,e.adler>>8&255),jv(n,e.adler>>16&255),jv(n,e.adler>>24&255),jv(n,e.total_in&255),jv(n,e.total_in>>8&255),jv(n,e.total_in>>16&255),jv(n,e.total_in>>24&255)):(Mv(n,e.adler>>>16),Mv(n,e.adler&65535)),kv(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending===0?G_:W_):W_},deflateEnd:e=>{if(Gv(e))return K_;let t=e.state.status;return e.state=null,t===_v?wv(e,q_):W_},deflateSetDictionary:(e,t)=>{let n=t.length;if(Gv(e))return K_;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==dv||r.lookahead)return K_;if(i===1&&(e.adler=k_(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Ev(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}let a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Fv(r);r.lookahead>=sv;){let e=r.strstart,t=r.lookahead-(sv-1);do r.ins_h=Ov(r,r.ins_h,r.window[e+sv-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++;while(--t);r.strstart=e,r.lookahead=sv-1,Fv(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=sv-1,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,W_},deflateInfo:`pako deflate (from Nodeca project)`},Zv=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Qv={assign:function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(let t in n)Zv(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;let n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}},$v=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{$v=!1}var ey=new Uint8Array(256);for(let e=0;e<256;e++)ey[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ey[254]=ey[254]=1;var ty=e=>{if(typeof TextEncoder==`function`&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t},ny=(e,t)=>{if(t<65534&&e.subarray&&$v)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n=``;for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},ry={string2buf:ty,buf2string:(e,t)=>{let n=t||e.length;if(typeof TextDecoder==`function`&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,a=Array(n*2);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){a[i++]=t;continue}let o=ey[t];if(o>4){a[i++]=65533,r+=o-1;continue}for(t&=o===2?31:o===3?15:7;o>1&&r<n;)t=t<<6|e[r++]&63,o--;if(o>1){a[i++]=65533;continue}t<65536?a[i++]=t:(t-=65536,a[i++]=55296|t>>10&1023,a[i++]=56320|t&1023)}return ny(a,i)},utf8border:(e,t)=>{t||=e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+ey[e[n]]>t?n:t}};function iy(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}var ay=iy,oy=Object.prototype.toString,{Z_NO_FLUSH:sy,Z_SYNC_FLUSH:cy,Z_FULL_FLUSH:ly,Z_FINISH:uy,Z_OK:dy,Z_STREAM_END:fy,Z_DEFAULT_COMPRESSION:py,Z_DEFAULT_STRATEGY:my,Z_DEFLATED:hy}=N_;function gy(e){this.options=Qv.assign({level:py,method:hy,chunkSize:16384,windowBits:15,memLevel:8,strategy:my},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new ay,this.strm.avail_out=0;let n=Xv.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==dy)throw Error(M_[n]);if(t.header&&Xv.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e=typeof t.dictionary==`string`?ry.string2buf(t.dictionary):oy.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,n=Xv.deflateSetDictionary(this.strm,e),n!==dy)throw Error(M_[n]);this._dict_set=!0}}gy.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(a=t===~~t?t:t===!0?uy:sy,typeof e==`string`?n.input=ry.string2buf(e):oy.call(e)===`[object ArrayBuffer]`?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(a===cy||a===ly)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Xv.deflate(n,a),i===fy)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Xv.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===dy;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},gy.prototype.onData=function(e){this.chunks.push(e)},gy.prototype.onEnd=function(e){e===dy&&(this.result=Qv.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function _y(e,t){let n=new gy(t);if(n.push(e,!0),n.err)throw n.msg||M_[n.err];return n.result}function vy(e,t){return t||={},t.raw=!0,_y(e,t)}function yy(e,t){return t||={},t.gzip=!0,_y(e,t)}var by={Deflate:gy,deflate:_y,deflateRaw:vy,gzip:yy,constants:N_},xy=16209,Sy=16191,Cy=function(e,t){let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=e.state;n=e.next_in,w=e.input,r=n+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=E.dmax,c=E.wsize,l=E.whave,u=E.wnext,d=E.window,f=E.hold,p=E.bits,m=E.lencode,h=E.distcode,g=(1<<E.lenbits)-1,_=(1<<E.distbits)-1;top:do{p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=m[f&g];dolen:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y===0)T[i++]=v&65535;else if(y&16){b=v&65535,y&=15,y&&(p<y&&(f+=w[n++]<<p,p+=8),b+=f&(1<<y)-1,f>>>=y,p-=y),p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=h[f&_];dodist:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y&16){if(x=v&65535,y&=15,p<y&&(f+=w[n++]<<p,p+=8,p<y&&(f+=w[n++]<<p,p+=8)),x+=f&(1<<y)-1,x>s){e.msg=`invalid distance too far back`,E.mode=xy;break top}if(f>>>=y,p-=y,y=i-a,x>y){if(y=x-y,y>l&&E.sane){e.msg=`invalid distance too far back`,E.mode=xy;break top}if(S=0,C=d,u===0){if(S+=c-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}else if(u<y){if(S+=c+u-y,y-=u,y<b){b-=y;do T[i++]=d[S++];while(--y);if(S=0,u<b){y=u,b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}}else if(S+=u-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}for(;b>2;)T[i++]=C[S++],T[i++]=C[S++],T[i++]=C[S++],b-=3;b&&(T[i++]=C[S++],b>1&&(T[i++]=C[S++]))}else{S=i-x;do T[i++]=T[S++],T[i++]=T[S++],T[i++]=T[S++],b-=3;while(b>2);b&&(T[i++]=T[S++],b>1&&(T[i++]=T[S++]))}}else if(y&64){e.msg=`invalid distance code`,E.mode=xy;break top}else{v=h[(v&65535)+(f&(1<<y)-1)];continue dodist}break}}else if(!(y&64)){v=m[(v&65535)+(f&(1<<y)-1)];continue dolen}else if(y&32){E.mode=Sy;break top}else{e.msg=`invalid literal/length code`,E.mode=xy;break top}break}}while(n<r&&i<o);b=p>>3,n-=b,p-=b<<3,f&=(1<<p)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?5+(r-n):5-(n-r),e.avail_out=i<o?257+(o-i):257-(i-o),E.hold=f,E.bits=p},wy=15,Ty=852,Ey=592,Dy=0,Oy=1,ky=2,Ay=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),jy=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),My=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Ny=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Py=(e,t,n,r,i,a,o,s)=>{let c=s.bits,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y,b,x,S,C,w=null,T,E=new Uint16Array(16),ee=new Uint16Array(16),te=null,D,ne,re;for(l=0;l<=wy;l++)E[l]=0;for(u=0;u<r;u++)E[t[n+u]]++;for(p=c,f=wy;f>=1&&E[f]===0;f--);if(p>f&&(p=f),f===0)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(d=1;d<f&&E[d]===0;d++);for(p<d&&(p=d),g=1,l=1;l<=wy;l++)if(g<<=1,g-=E[l],g<0)return-1;if(g>0&&(e===Dy||f!==1))return-1;for(ee[1]=0,l=1;l<wy;l++)ee[l+1]=ee[l]+E[l];for(u=0;u<r;u++)t[n+u]!==0&&(o[ee[t[n+u]]++]=u);if(e===Dy?(w=te=o,T=20):e===Oy?(w=Ay,te=jy,T=257):(w=My,te=Ny,T=0),v=0,u=0,l=d,C=a,m=p,h=0,x=-1,_=1<<p,S=_-1,e===Oy&&_>Ty||e===ky&&_>Ey)return 1;for(;;){D=l-h,o[u]+1<T?(ne=0,re=o[u]):o[u]>=T?(ne=te[o[u]-T],re=w[o[u]-T]):(ne=96,re=0),y=1<<l-h,b=1<<m,d=b;do b-=y,i[C+(v>>h)+b]=D<<24|ne<<16|re|0;while(b!==0);for(y=1<<l-1;v&y;)y>>=1;if(y===0?v=0:(v&=y-1,v+=y),u++,--E[l]===0){if(l===f)break;l=t[n+o[u]]}if(l>p&&(v&S)!==x){for(h===0&&(h=p),C+=d,m=l-h,g=1<<m;m+h<f&&(g-=E[m+h],!(g<=0));)m++,g<<=1;if(_+=1<<m,e===Oy&&_>Ty||e===ky&&_>Ey)return 1;x=v&S,i[x]=p<<24|m<<16|C-a|0}}return v!==0&&(i[C+v]=l-h<<24|4194304),s.bits=p,0},Fy=0,Iy=1,Ly=2,{Z_FINISH:Ry,Z_BLOCK:zy,Z_TREES:By,Z_OK:Vy,Z_STREAM_END:Hy,Z_NEED_DICT:Uy,Z_STREAM_ERROR:Wy,Z_DATA_ERROR:Gy,Z_MEM_ERROR:Ky,Z_BUF_ERROR:qy,Z_DEFLATED:Jy}=N_,Yy=16180,Xy=16181,Zy=16182,Qy=16183,$y=16184,eb=16185,tb=16186,nb=16187,rb=16188,ib=16189,ab=16190,ob=16191,sb=16192,cb=16193,lb=16194,ub=16195,db=16196,fb=16197,pb=16198,mb=16199,hb=16200,gb=16201,_b=16202,vb=16203,yb=16204,bb=16205,xb=16206,Sb=16207,Cb=16208,wb=16209,Tb=16210,Eb=16211,Db=852,Ob=592,kb=15,Ab=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function jb(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Mb=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.mode<Yy||t.mode>Eb)},Nb=e=>{if(Mb(e))return Wy;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=t.wrap&1),t.mode=Yy,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Db),t.distcode=t.distdyn=new Int32Array(Ob),t.sane=1,t.back=-1,Vy},Pb=e=>{if(Mb(e))return Wy;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Nb(e)},Fb=(e,t)=>{let n;if(Mb(e))return Wy;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Wy:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Pb(e))},Ib=(e,t)=>{if(!e)return Wy;let n=new jb;e.state=n,n.strm=e,n.window=null,n.mode=Yy;let r=Fb(e,t);return r!==Vy&&(e.state=null),r},Lb=e=>Ib(e,kb),Rb=!0,zb,Bb,Vb=e=>{if(Rb){zb=new Int32Array(512),Bb=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Py(Iy,e.lens,0,288,zb,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Py(Ly,e.lens,0,32,Bb,0,e.work,{bits:5}),Rb=!1}e.lencode=zb,e.lenbits=9,e.distcode=Bb,e.distbits=5},Hb=(e,t,n,r)=>{let i,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Ub={inflateReset:Pb,inflateReset2:Fb,inflateResetKeep:Nb,inflateInit:Lb,inflateInit2:Ib,inflate:(e,t)=>{let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g=0,_,v,y,b,x,S,C,w,T=new Uint8Array(4),E,ee,te=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Mb(e)||!e.output||!e.input&&e.avail_in!==0)return Wy;n=e.state,n.mode===ob&&(n.mode=sb),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,d=s,f=c,w=Vy;inf_leave:for(;;)switch(n.mode){case Yy:if(n.wrap===0){n.mode=sb;break}for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=l&255,T[1]=l>>>8&255,n.check=j_(n.check,T,2,0),l=0,u=0,n.mode=Xy;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg=`incorrect header check`,n.mode=wb;break}if((l&15)!==Jy){e.msg=`unknown compression method`,n.mode=wb;break}if(l>>>=4,u-=4,C=(l&15)+8,n.wbits===0&&(n.wbits=C),C>15||C>n.wbits){e.msg=`invalid window size`,n.mode=wb;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=l&512?ib:ob,l=0,u=0;break;case Xy:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.flags=l,(n.flags&255)!==Jy){e.msg=`unknown compression method`,n.mode=wb;break}if(n.flags&57344){e.msg=`unknown header flags set`,n.mode=wb;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j_(n.check,T,2,0)),l=0,u=0,n.mode=Zy;case Zy:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=j_(n.check,T,4,0)),l=0,u=0,n.mode=Qy;case Qy:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j_(n.check,T,2,0)),l=0,u=0,n.mode=$y;case $y:if(n.flags&1024){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j_(n.check,T,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=eb;case eb:if(n.flags&1024&&(p=n.length,p>s&&(p=s),p&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+p),C)),n.flags&512&&n.wrap&4&&(n.check=j_(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break inf_leave;n.length=0,n.mode=tb;case tb:if(n.flags&2048){if(s===0)break inf_leave;p=0;do C=r[a+ p++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=j_(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.name=null);n.length=0,n.mode=nb;case nb:if(n.flags&4096){if(s===0)break inf_leave;p=0;do C=r[a+ p++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=j_(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.comment=null);n.mode=rb;case rb:if(n.flags&512){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.check&65535)){e.msg=`header crc mismatch`,n.mode=wb;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ob;break;case ib:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}e.adler=n.check=Ab(l),l=0,u=0,n.mode=ab;case ab:if(n.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,Uy;e.adler=n.check=1,n.mode=ob;case ob:if(t===zy||t===By)break inf_leave;case sb:if(n.last){l>>>=u&7,u-=u&7,n.mode=xb;break}for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}switch(n.last=l&1,l>>>=1,--u,l&3){case 0:n.mode=cb;break;case 1:if(Vb(n),n.mode=mb,t===By){l>>>=2,u-=2;break inf_leave}break;case 2:n.mode=db;break;case 3:e.msg=`invalid block type`,n.mode=wb}l>>>=2,u-=2;break;case cb:for(l>>>=u&7,u-=u&7;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if((l&65535)!=(l>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=wb;break}if(n.length=l&65535,l=0,u=0,n.mode=lb,t===By)break inf_leave;case lb:n.mode=ub;case ub:if(p=n.length,p){if(p>s&&(p=s),p>c&&(p=c),p===0)break inf_leave;i.set(r.subarray(a,a+p),o),s-=p,a+=p,c-=p,o+=p,n.length-=p;break}n.mode=ob;break;case db:for(;u<14;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.nlen=(l&31)+257,l>>>=5,u-=5,n.ndist=(l&31)+1,l>>>=5,u-=5,n.ncode=(l&15)+4,l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg=`too many length or distance symbols`,n.mode=wb;break}n.have=0,n.mode=fb;case fb:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.lens[te[n.have++]]=l&7,l>>>=3,u-=3}for(;n.have<19;)n.lens[te[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},w=Py(Fy,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid code lengths set`,n.mode=wb;break}n.have=0,n.mode=pb;case pb:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(y<16)l>>>=_,u-=_,n.lens[n.have++]=y;else{if(y===16){for(ee=_+2;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(l>>>=_,u-=_,n.have===0){e.msg=`invalid bit length repeat`,n.mode=wb;break}C=n.lens[n.have-1],p=3+(l&3),l>>>=2,u-=2}else if(y===17){for(ee=_+3;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=3+(l&7),l>>>=3,u-=3}else{for(ee=_+7;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=11+(l&127),l>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=wb;break}for(;p--;)n.lens[n.have++]=C}}if(n.mode===wb)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=wb;break}if(n.lenbits=9,E={bits:n.lenbits},w=Py(Iy,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid literal/lengths set`,n.mode=wb;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},w=Py(Ly,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,w){e.msg=`invalid distances set`,n.mode=wb;break}if(n.mode=mb,t===By)break inf_leave;case mb:n.mode=hb;case hb:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,Cy(e,f),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,n.mode===ob&&(n.back=-1);break}for(n.back=0;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(v&&!(v&240)){for(b=_,x=v,S=y;g=n.lencode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,n.length=y,v===0){n.mode=bb;break}if(v&32){n.back=-1,n.mode=ob;break}if(v&64){e.msg=`invalid literal/length code`,n.mode=wb;break}n.extra=v&15,n.mode=gb;case gb:if(n.extra){for(ee=n.extra;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=_b;case _b:for(;g=n.distcode[l&(1<<n.distbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(!(v&240)){for(b=_,x=v,S=y;g=n.distcode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,v&64){e.msg=`invalid distance code`,n.mode=wb;break}n.offset=y,n.extra=v&15,n.mode=vb;case vb:if(n.extra){for(ee=n.extra;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=wb;break}n.mode=yb;case yb:if(c===0)break inf_leave;if(p=f-c,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=wb;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),h=n.window}else h=i,m=o-n.offset,p=n.length;p>c&&(p=c),c-=p,n.length-=p;do i[o++]=h[m++];while(--p);n.length===0&&(n.mode=hb);break;case bb:if(c===0)break inf_leave;i[o++]=n.length,c--,n.mode=hb;break;case xb:if(n.wrap){for(;u<32;){if(s===0)break inf_leave;s--,l|=r[a++]<<u,u+=8}if(f-=c,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?j_(n.check,i,f,o-f):k_(n.check,i,f,o-f)),f=c,n.wrap&4&&(n.flags?l:Ab(l))!==n.check){e.msg=`incorrect data check`,n.mode=wb;break}l=0,u=0}n.mode=Sb;case Sb:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.total&4294967295)){e.msg=`incorrect length check`,n.mode=wb;break}l=0,u=0}n.mode=Cb;case Cb:w=Hy;break inf_leave;case wb:w=Gy;break inf_leave;case Tb:return Ky;case Eb:default:return Wy}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,(n.wsize||f!==e.avail_out&&n.mode<wb&&(n.mode<xb||t!==Ry))&&Hb(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?j_(n.check,i,f,e.next_out-f):k_(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===ob?128:0)+(n.mode===mb||n.mode===lb?256:0),(d===0&&f===0||t===Ry)&&w===Vy&&(w=qy),w},inflateEnd:e=>{if(Mb(e))return Wy;let t=e.state;return t.window&&=null,e.state=null,Vy},inflateGetHeader:(e,t)=>{if(Mb(e))return Wy;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,Vy):Wy},inflateSetDictionary:(e,t)=>{let n=t.length,r,i,a;return Mb(e)||(r=e.state,r.wrap!==0&&r.mode!==ab)?Wy:r.mode===ab&&(i=1,i=k_(i,t,n,0),i!==r.check)?Gy:(a=Hb(e,t,n,n),a?(r.mode=Tb,Ky):(r.havedict=1,Vy))},inflateInfo:`pako inflate (from Nodeca project)`};function Wb(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}var Gb=Wb,Kb=Object.prototype.toString,{Z_NO_FLUSH:qb,Z_FINISH:Jb,Z_OK:Yb,Z_STREAM_END:Xb,Z_NEED_DICT:Zb,Z_STREAM_ERROR:Qb,Z_DATA_ERROR:$b,Z_MEM_ERROR:ex}=N_;function tx(e){this.options=Qv.assign({chunkSize:1024*64,windowBits:15,to:``},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new ay,this.strm.avail_out=0;let n=Ub.inflateInit2(this.strm,t.windowBits);if(n!==Yb||(this.header=new Gb,Ub.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary==`string`?t.dictionary=ry.string2buf(t.dictionary):Kb.call(t.dictionary)===`[object ArrayBuffer]`&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Ub.inflateSetDictionary(this.strm,t.dictionary),n!==Yb))))throw Error(M_[n])}tx.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,o,s;if(this.ended)return!1;for(o=t===~~t?t:t===!0?Jb:qb,Kb.call(e)===`[object ArrayBuffer]`?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=Ub.inflate(n,o),a===Zb&&i&&(a=Ub.inflateSetDictionary(n,i),a===Yb?a=Ub.inflate(n,o):a===$b&&(a=Zb));n.avail_in>0&&a===Xb&&n.state.wrap>0&&e[n.next_in]!==0;)Ub.inflateReset(n),a=Ub.inflate(n,o);switch(a){case Qb:case $b:case Zb:case ex:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===Xb))if(this.options.to===`string`){let e=ry.utf8border(n.output,n.next_out),t=n.next_out-e,i=ry.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===Yb&&s===0)){if(a===Xb)return a=Ub.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},tx.prototype.onData=function(e){this.chunks.push(e)},tx.prototype.onEnd=function(e){e===Yb&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=Qv.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function nx(e,t){let n=new tx(t);if(n.push(e),n.err)throw n.msg||M_[n.err];return n.result}function rx(e,t){return t||={},t.raw=!0,nx(e,t)}var ix={Inflate:tx,inflate:nx,inflateRaw:rx,ungzip:nx,constants:N_},{Deflate:ax,deflate:ox,deflateRaw:sx,gzip:cx}=by,{Inflate:lx,inflate:ux,inflateRaw:dx,ungzip:fx}=ix,px=ux,mx=e=>{let t=typeof atob<`u`?atob(e):Buffer.from(e,`base64`).toString(`binary`),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);let r;try{r=px(n)}catch{r=n}return new TextDecoder(`utf-8`).decode(r)},hx=e=>typeof e==`object`&&!!e&&!Array.isArray(e),gx=e=>new Promise(function(t,n){if(typeof window>`u`){t({width:0,height:0});return}let r=new Image;r.onload=()=>{t({width:r.width,height:r.height})},r.onerror=e=>{n(e)},r.src=e}),_x=365.2425,vx=6048e5,yx=864e5,bx=6e4,xx=36e5,Sx=1e3,Cx=3600*24;Cx*7,Cx*_x/12*3;var wx=Symbol.for(`constructDateFrom`);function Tx(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&wx in e?e[wx](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ex(e,t){return Tx(t||e,e)}function Dx(e,t,n){let r=Ex(e,n?.in);return r.setTime(r.getTime()+t*bx),r}var Ox={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},kx=(e,t,n)=>{let r,i=Ox[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function Ax(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var jx={date:Ax({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:Ax({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:Ax({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Mx={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Nx=(e,t,n,r)=>Mx[e];function Px(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var Fx={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Px({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Px({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Px({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Px({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Px({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function Ix(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Rx(s,e=>e.test(o)):Lx(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function Lx(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Rx(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function zx(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Bx={code:`en-US`,formatDistance:kx,formatLong:jx,formatRelative:Nx,localize:Fx,match:{ordinalNumber:zx({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Ix({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Ix({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:Ix({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:Ix({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:Ix({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Vx={};function Hx(){return Vx}function Ux(e){let t=Ex(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Wx(e,...t){let n=Tx.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Gx(e,t){let n=Ex(e,t?.in);return n.setHours(0,0,0,0),n}function Kx(e,t,n){let[r,i]=Wx(n?.in,e,t),a=Gx(r),o=Gx(i),s=+a-Ux(a),c=+o-Ux(o);return Math.round((s-c)/yx)}function qx(e,t){let n=Ex(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Jx(e,t){let n=Ex(e,t?.in);return Kx(n,qx(n))+1}function Yx(e,t){let n=Hx(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Ex(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Xx(e,t){return Yx(e,{...t,weekStartsOn:1})}function Zx(e,t){let n=Ex(e,t?.in),r=n.getFullYear(),i=Tx(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Xx(i),o=Tx(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Xx(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Qx(e,t){let n=Zx(e,t),r=Tx(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xx(r)}function $x(e,t){let n=Ex(e,t?.in),r=Xx(n)-+Qx(n);return Math.round(r/vx)+1}function eS(e,t){let n=Ex(e,t?.in),r=n.getFullYear(),i=Hx(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Tx(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Yx(o,t),c=Tx(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Yx(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function tS(e,t){let n=Hx(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=eS(e,t),a=Tx(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Yx(a,t)}function nS(e,t){let n=Ex(e,t?.in),r=Yx(n,t)-+tS(n,t);return Math.round(r/vx)+1}function rS(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var iS={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return rS(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):rS(n+1,2)},d(e,t){return rS(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return rS(e.getHours()%12||12,t.length)},H(e,t){return rS(e.getHours(),t.length)},m(e,t){return rS(e.getMinutes(),t.length)},s(e,t){return rS(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return rS(Math.trunc(r*10**(n-3)),t.length)}},aS={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},oS={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return iS.y(e,t)},Y:function(e,t,n,r){let i=eS(e,r),a=i>0?i:1-i;return t===`YY`?rS(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):rS(a,t.length)},R:function(e,t){return rS(Zx(e),t.length)},u:function(e,t){return rS(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return rS(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return rS(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return iS.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return rS(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=nS(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):rS(i,t.length)},I:function(e,t,n){let r=$x(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):rS(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):iS.d(e,t)},D:function(e,t,n){let r=Jx(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):rS(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return rS(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return rS(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return rS(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?aS.noon:r===0?aS.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?aS.evening:r>=12?aS.afternoon:r>=4?aS.morning:aS.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return iS.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):iS.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):rS(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):rS(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):iS.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):iS.s(e,t)},S:function(e,t){return iS.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return cS(r);case`XXXX`:case`XX`:return lS(r);default:return lS(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return cS(r);case`xxxx`:case`xx`:return lS(r);default:return lS(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+sS(r,`:`);default:return`GMT`+lS(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+sS(r,`:`);default:return`GMT`+lS(r,`:`)}},t:function(e,t,n){return rS(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return rS(+e,t.length)}};function sS(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+rS(a,2)}function cS(e,t){return e%60==0?(e>0?`-`:`+`)+rS(Math.abs(e)/60,2):lS(e,t)}function lS(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=rS(Math.trunc(r/60),2),a=rS(r%60,2);return n+i+t+a}var uS=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},dS=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},fS={p:dS,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return uS(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,uS(r,t)).replace(`{{time}}`,dS(i,t))}},pS=/^D+$/,mS=/^Y+$/,hS=[`D`,`DD`,`YY`,`YYYY`];function gS(e){return pS.test(e)}function _S(e){return mS.test(e)}function vS(e,t,n){let r=yS(e,t,n);if(console.warn(r),hS.includes(e))throw RangeError(r)}function yS(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function bS(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function xS(e){return!(!bS(e)&&typeof e!=`number`||isNaN(+Ex(e)))}var SS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wS=/^'([^]*?)'?$/,TS=/''/g,ES=/[a-zA-Z]/;function DS(e,t,n){let r=Hx(),i=n?.locale??r.locale??Bx,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Ex(e,n?.in);if(!xS(s))throw RangeError(`Invalid time value`);let c=t.match(CS).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=fS[t];return n(e,i.formatLong)}return e}).join(``).match(SS).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:OS(e)};if(oS[t])return{isToken:!0,value:e};if(t.match(ES))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&_S(a)||!n?.useAdditionalDayOfYearTokens&&gS(a))&&vS(a,t,String(e));let o=oS[a[0]];return o(s,a,i.localize,l)}).join(``)}function OS(e){let t=e.match(wS);return t?t[1].replace(TS,`'`):e}function kS(){return Object.assign({},Hx())}function AS(e,t){let n=jS(t)?new t(0):Tx(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function jS(e){return typeof e==`function`&&e.prototype?.constructor===e}var MS=10,NS=class{subPriority=0;validate(e,t){return!0}},PS=class extends NS{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},FS=class extends NS{priority=MS;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>Tx(t,e))}set(e,t){return t.timestampIsSet?e:Tx(e,AS(e,this.context))}},IS=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new PS(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},LS=class extends IS{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},RS={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},zS={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function BS(e,t){return e&&{value:t(e.value),rest:e.rest}}function VS(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function HS(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*xx+a*bx+o*Sx),rest:t.slice(n[0].length)}}function US(e){return VS(RS.anyDigitsSigned,e)}function WS(e,t){switch(e){case 1:return VS(RS.singleDigit,t);case 2:return VS(RS.twoDigits,t);case 3:return VS(RS.threeDigits,t);case 4:return VS(RS.fourDigits,t);default:return VS(RegExp(`^\\d{1,`+e+`}`),t)}}function GS(e,t){switch(e){case 1:return VS(RS.singleDigitSigned,t);case 2:return VS(RS.twoDigitsSigned,t);case 3:return VS(RS.threeDigitsSigned,t);case 4:return VS(RS.fourDigitsSigned,t);default:return VS(RegExp(`^-?\\d{1,`+e+`}`),t)}}function KS(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function qS(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function JS(e){return e%400==0||e%4==0&&e%100!=0}var YS=class extends IS{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return BS(WS(4,e),r);case`yo`:return BS(n.ordinalNumber(e,{unit:`year`}),r);default:return BS(WS(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=qS(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},XS=class extends IS{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return BS(WS(4,e),r);case`Yo`:return BS(n.ordinalNumber(e,{unit:`year`}),r);default:return BS(WS(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=eS(e,r);if(n.isTwoDigitYear){let t=qS(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Yx(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Yx(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},ZS=class extends IS{priority=130;parse(e,t){return GS(t===`R`?4:t.length,e)}set(e,t,n){let r=Tx(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xx(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},QS=class extends IS{priority=130;parse(e,t){return GS(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},$S=class extends IS{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return WS(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},eC=class extends IS{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return WS(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},tC=class extends IS{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return BS(VS(RS.month,e),r);case`MM`:return BS(WS(2,e),r);case`Mo`:return BS(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},nC=class extends IS{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return BS(VS(RS.month,e),r);case`LL`:return BS(WS(2,e),r);case`Lo`:return BS(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function rC(e,t,n){let r=Ex(e,n?.in),i=nS(r,n)-t;return r.setDate(r.getDate()-i*7),Ex(r,n?.in)}var iC=class extends IS{priority=100;parse(e,t,n){switch(t){case`w`:return VS(RS.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return WS(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Yx(rC(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function aC(e,t,n){let r=Ex(e,n?.in),i=$x(r,n)-t;return r.setDate(r.getDate()-i*7),r}var oC=class extends IS{priority=100;parse(e,t,n){switch(t){case`I`:return VS(RS.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return WS(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Xx(aC(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},sC=[31,28,31,30,31,30,31,31,30,31,30,31],cC=[31,29,31,30,31,30,31,31,30,31,30,31],lC=class extends IS{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return VS(RS.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return WS(t.length,e)}}validate(e,t){let n=JS(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=cC[r]:t>=1&&t<=sC[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},uC=class extends IS{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return VS(RS.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return WS(t.length,e)}}validate(e,t){return JS(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function dC(e,t,n){let r=Ex(e,n?.in);return isNaN(t)?Tx(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function fC(e,t,n){let r=Hx(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Ex(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return dC(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var pC=class extends IS{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=fC(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},mC=class extends IS{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return BS(WS(t.length,e),i);case`eo`:return BS(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=fC(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},hC=class extends IS{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return BS(WS(t.length,e),i);case`co`:return BS(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=fC(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function gC(e,t){let n=Ex(e,t?.in).getDay();return n===0?7:n}function _C(e,t,n){let r=Ex(e,n?.in);return dC(r,t-gC(r,n),n)}var vC=class extends IS{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return WS(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return BS(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return BS(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return BS(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return BS(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=_C(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},yC=class extends IS{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(KS(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},bC=class extends IS{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(KS(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},xC=class extends IS{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(KS(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},SC=class extends IS{priority=70;parse(e,t,n){switch(t){case`h`:return VS(RS.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return WS(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},CC=class extends IS{priority=70;parse(e,t,n){switch(t){case`H`:return VS(RS.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return WS(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},wC=class extends IS{priority=70;parse(e,t,n){switch(t){case`K`:return VS(RS.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return WS(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},TC=class extends IS{priority=70;parse(e,t,n){switch(t){case`k`:return VS(RS.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return WS(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},EC=class extends IS{priority=60;parse(e,t,n){switch(t){case`m`:return VS(RS.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return WS(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},DC=class extends IS{priority=50;parse(e,t,n){switch(t){case`s`:return VS(RS.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return WS(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},OC=class extends IS{priority=30;parse(e,t){return BS(WS(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},kC=class extends IS{priority=10;parse(e,t){switch(t){case`X`:return HS(zS.basicOptionalMinutes,e);case`XX`:return HS(zS.basic,e);case`XXXX`:return HS(zS.basicOptionalSeconds,e);case`XXXXX`:return HS(zS.extendedOptionalSeconds,e);default:return HS(zS.extended,e)}}set(e,t,n){return t.timestampIsSet?e:Tx(e,e.getTime()-Ux(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},AC=class extends IS{priority=10;parse(e,t){switch(t){case`x`:return HS(zS.basicOptionalMinutes,e);case`xx`:return HS(zS.basic,e);case`xxxx`:return HS(zS.basicOptionalSeconds,e);case`xxxxx`:return HS(zS.extendedOptionalSeconds,e);default:return HS(zS.extended,e)}}set(e,t,n){return t.timestampIsSet?e:Tx(e,e.getTime()-Ux(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},jC=class extends IS{priority=40;parse(e){return US(e)}set(e,t,n){return[Tx(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},MC=class extends IS{priority=20;parse(e){return US(e)}set(e,t,n){return[Tx(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`},NC={G:new LS,y:new YS,Y:new XS,R:new ZS,u:new QS,Q:new $S,q:new eC,M:new tC,L:new nC,w:new iC,I:new oC,d:new lC,D:new uC,E:new pC,e:new mC,c:new hC,i:new vC,a:new yC,b:new bC,B:new xC,h:new SC,H:new CC,K:new wC,k:new TC,m:new EC,s:new DC,S:new OC,X:new kC,x:new AC,t:new jC,T:new MC},PC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,FC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IC=/^'([^]*?)'?$/,LC=/''/g,RC=/\S/,zC=/[a-zA-Z]/;function BC(e,t,n,r){let i=()=>Tx(r?.in||n,NaN),a=kS(),o=r?.locale??a.locale??Bx,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():Ex(n,r?.in);let l={firstWeekContainsDate:s,weekStartsOn:c,locale:o},u=[new FS(r?.in,n)],d=t.match(FC).map(e=>{let t=e[0];if(t in fS){let n=fS[t];return n(e,o.formatLong)}return e}).join(``).match(PC),f=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&_S(n)&&vS(n,t,e),!r?.useAdditionalDayOfYearTokens&&gS(n)&&vS(n,t,e);let a=n[0],s=NC[a];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if(s.incompatibleTokens===`*`&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:a,fullToken:n});let r=s.run(e,n,o.match,l);if(!r)return i();u.push(r.setter),e=r.rest}else{if(a.match(zC))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(n===`''`?n=`'`:a===`'`&&(n=VC(n)),e.indexOf(n)===0)e=e.slice(n.length);else return i()}}if(e.length>0&&RC.test(e))return i();let p=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),m=Ex(n,r?.in);if(isNaN(+m))return i();let h={};for(let e of p){if(!e.validate(m,l))return i();let t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return m}function VC(e){return e.match(IC)[1].replace(LC,`'`)}var HC=e=>{let t=BC(e,`yyMMddHHmmssX`,new Date),n=new Date().getTimezoneOffset(),r=Dx(t,-n),i=-n/60;return DS(r,`dd/MM/yyyy HH:mm:ss '${`GMT${i>=0?`+`:``}${i}`}'`)},UC=e=>{let t=M.WAS_NOT_DONE;for(let n of e){if(n===M.ERROR)return M.ERROR;t===M.WAS_NOT_DONE&&n===M.OK&&(t=M.OK)}return t},WC=class{};q([L(),V(br),K(`design:type`,br===void 0?Object:br)],WC.prototype,`light`,void 0),q([I(),Y(()=>Z),R({each:!0}),K(`design:type`,Array)],WC.prototype,`rect`,void 0);var GC=[N.MRZ_TEXT,N.VISUAL_TEXT,N.BARCODE_TEXT],KC=class{};q([I(),V(N),Il(GC),K(`design:type`,Object)],KC.prototype,`type`,void 0),q([I(),U(),K(`design:type`,String)],KC.prototype,`reference`,void 0),q([I(),U(),K(`design:type`,String)],KC.prototype,`result`,void 0),q([I(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],KC.prototype,`location`,void 0);var qC=class{},JC,YC=class extends qC{static{JC=this}static{this.fromPlain=e=>Du(JC,e)}static{this.isBelongs=e=>{let t=e;return Gu.includes(t?.checkType)}}};q([I(),Il(Gu),K(`design:type`,Object)],YC.prototype,`checkType`,void 0),q([L(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],YC.prototype,`location`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],YC.prototype,`diagnose`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],YC.prototype,`checkResult`,void 0),q([I(),H({each:!0}),K(`design:type`,Array)],YC.prototype,`colorValues`,void 0),q([I(),H(),K(`design:type`,Number)],YC.prototype,`rectCount`,void 0),q([I(),H(),K(`design:type`,Number)],YC.prototype,`expectedCount`,void 0),YC=JC=q([J()],YC);var XC,ZC=class extends qC{static{XC=this}static{this.fromPlain=e=>Du(XC,e)}static{this.isBelongs=e=>{let t=e;return Yu.includes(t?.checkType)}}};q([I(),Il(Yu),K(`design:type`,Object)],ZC.prototype,`checkType`,void 0),q([L(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],ZC.prototype,`location`,void 0),q([I(),B(),K(`design:type`,Number)],ZC.prototype,`similarity`,void 0),q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],ZC.prototype,`type`,void 0),q([I(),U(),K(`design:type`,String)],ZC.prototype,`image`,void 0),q([I(),U(),K(`design:type`,String)],ZC.prototype,`referenceImage`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],ZC.prototype,`diagnose`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],ZC.prototype,`checkResult`,void 0),ZC=XC=q([J()],ZC);var QC,$C=class extends qC{static{QC=this}static{this.fromPlain=e=>Du(QC,e)}static{this.isBelongs=e=>{let t=e;return id.includes(t?.checkType)}}};q([I(),Il(id),K(`design:type`,Object)],$C.prototype,`checkType`,void 0),q([L(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],$C.prototype,`location`,void 0),q([I(),U(),K(`design:type`,String)],$C.prototype,`image`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],$C.prototype,`diagnose`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$C.prototype,`checkResult`,void 0),$C=QC=q([J()],$C);var ew,tw=class extends qC{static{ew=this}static{this.fromPlain=e=>Du(ew,e)}static{this.isBelongs=e=>{let t=e;return cd.includes(t?.checkType)}}};q([I(),Il(cd),K(`design:type`,Object)],tw.prototype,`checkType`,void 0),q([L(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],tw.prototype,`location`,void 0),q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],tw.prototype,`feature`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],tw.prototype,`diagnose`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tw.prototype,`checkResult`,void 0),tw=ew=q([J()],tw);var nw,rw=class extends qC{static{nw=this}static{this.fromPlain=e=>Du(nw,e)}static{this.isBelongs=e=>{let t=e;return $u.includes(t?.checkType)}}};q([I(),R(),Y(()=>KC),K(`design:type`,KC===void 0?Object:KC)],rw.prototype,`reference`,void 0),q([I(),Il($u),K(`design:type`,Object)],rw.prototype,`checkType`,void 0),q([I(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],rw.prototype,`location`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],rw.prototype,`checkResult`,void 0),q([I(),V(F),K(`design:type`,F===void 0?Object:F)],rw.prototype,`type`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],rw.prototype,`diagnose`,void 0),rw=nw=q([J()],rw);var iw=e=>{let t=[];return e.forEach(e=>{if(!hx(e)||!(`checkType`in e))return;let{checkType:n}=e;switch(n){case j.UV_FIBERS:t.push(YC.fromPlain(e));break;case j.IMAGE_PATTERN:case j.IR_VISIBILITY:case j.OVI:case j.PORTRAIT_COMPARISON:case j.KINEGRAM:case j.LETTER_SCREEN:case j.HOLOGRAM_DETECTION:case j.FINGERPRINT_COMPARISON:case j.LIVENESS:t.push(ZC.fromPlain(e));break;case j.OCR_SECURITY_TEXT:case j.ENCRYPTED_IPI:t.push(rw.fromPlain(e));break;case j.IPI:t.push($C.fromPlain(e));break;case j.UV_LUMINESCENCE:case j.IR_B900:case j.AXIAL_PROTECTION:case j.PHOTO_EMBED_TYPE:case j.HOLOGRAMS:case j.PHOTO_AREA:case j.BARCODE_FORMAT_CHECK:case j.EXTENDED_OCR_CHECK:case j.EXTENDED_MRZ_CHECK:t.push(tw.fromPlain(e));break}}),t},aw,ow=class{static{aw=this}static{this.fromPlain=e=>Du(aw,e)}};q([I(),V(j),K(`design:type`,j===void 0?Object:j)],ow.prototype,`group`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],ow.prototype,`checkResult`,void 0),q([R({each:!0}),wu(({obj:e})=>iw(e.checks),{toClassOnly:!0}),W(),K(`design:type`,Array)],ow.prototype,`checks`,void 0),ow=aw=q([J()],ow);var sw,cw=class{static{sw=this}static{this.fromPlain=e=>X(sw,e)}static{this.getValidationErrors=e=>G(e)}};q([I(),H(),K(`design:type`,Number)],cw.prototype,`page`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],cw.prototype,`checkResult`,void 0),q([I(),R({each:!0}),Y(()=>ow),K(`design:type`,Array)],cw.prototype,`groups`,void 0),cw=sw=q([J()],cw);var lw=[Vr.PORTRAIT_COMPARISON_VS_CAMERA,Vr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,Vr.PORTRAIT_COMPARISON_EXT_VS_VISUAL,Vr.PORTRAIT_COMPARISON_EXT_VS_RFID,Vr.PORTRAIT_COMPARISON_EXT_VS_CAMERA,Vr.PORTRAIT_COMPARISON_EXT_VS_BARCODE,Vr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA],uw=e=>{let t=md.fromProcessResponse(e),n=[];return t.forEach(e=>{let t=e.AuthenticityCheckList.List,r=cw.fromPlain({checkResult:M.WAS_NOT_DONE,page:e.page_idx??0,groups:[]});t.forEach(e=>{if(Ku.isBelongs(e)&&e.List.forEach(t=>{let n=r.groups.findIndex(e=>e.group===t.Type);n===-1&&(r.groups.push(ow.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),n=r.groups.length-1),r.groups[n].checks.push(YC.fromPlain({colorValues:t.ColorValues,rectCount:t.RectCount,expectedCount:t.ExpectedCount,checkType:t.Type,location:{light:void 0,rect:t.RectArray},diagnose:t.ElementDiagnose??ur.UNKNOWN,checkResult:t.ElementResult??M.WAS_NOT_DONE}))}),Xu.isBelongs(e)&&e.List.forEach(t=>{let n=t.LightIndex;if(lw.includes(t.ElementType))return;let i=r.groups.findIndex(e=>e.group===t.Type);i===-1&&(r.groups.push(ow.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),i=r.groups.length-1),r.groups[i].checks.push(ZC.fromPlain({checkType:t.Type,checkResult:t.ElementResult??M.WAS_NOT_DONE,diagnose:t.ElementDiagnose??ur.UNKNOWN,image:t.Image.image,referenceImage:t.EtalonImage.image,similarity:t.PercentValue??0,type:t.ElementType,location:{light:n,rect:t.Area?[t.Area]:[]}}))}),ed.isBelongs(e)){let t=r.groups.findIndex(t=>t.group===e.Type);e.List.forEach(n=>{t===-1&&(r.groups.push(ow.fromPlain({group:n.Type,checkResult:e.Result,checks:[]})),t=r.groups.length-1),r.groups[t].checks.push(rw.fromPlain({reference:{type:n.EtalonResultType,reference:n.EtalonResultOCR,result:n.SecurityTextResultOCR,location:{light:n.EtalonLightType,rect:n.EtalonFieldRect?[n.EtalonFieldRect]:[]}},checkType:n.Type,checkResult:n.ElementResult??M.WAS_NOT_DONE,type:n.EtalonFieldType,diagnose:n.ElementDiagnose??ur.UNKNOWN,location:{light:n.LightType,rect:n.FieldRect?[n.FieldRect]:[]}}))}),e.List?.length||r.groups.push(ow.fromPlain({group:e.Type,checkResult:e.Result,checks:[]}))}if(ad.isBelongs(e)&&e.List.forEach(t=>{let n=t.LightIndex;if(t.ResultImages?.Images?.length){let i=r.groups.findIndex(e=>e.group===t.Type);i===-1&&(r.groups.push(ow.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),i=r.groups.length-1),r.groups[i].checks.push($C.fromPlain({checkType:t.Type,checkResult:t.ElementResult??M.WAS_NOT_DONE,diagnose:t.ElementDiagnose??ur.UNKNOWN,image:t.ResultImages.Images[0].image,location:n===br.OFF?void 0:{light:n,rect:t.Area?[t.Area]:[]}}))}}),ld.isBelongs(e)){let t=r.groups.findIndex(t=>t.group===e.Type);e.List.forEach(n=>{lw.includes(n.ElementType)||(t===-1&&(r.groups.push(ow.fromPlain({group:n.Type,checkResult:e.Result,checks:[]})),t=r.groups.length-1),r.groups[t].checks.push(tw.fromPlain({checkType:n.Type,checkResult:n.ElementResult??M.WAS_NOT_DONE,diagnose:n.ElementDiagnose??ur.UNKNOWN,feature:n.ElementType??Vr.BLANK,location:{light:void 0,rect:n.ElementRect?[n.ElementRect]:[]}})))}),e.List?.length||r.groups.push(ow.fromPlain({group:e.Type,checkResult:e.Result,checks:[]}))}}),r.groups.forEach(e=>e.checks.sort((e,t)=>e.checkResult-t.checkResult)),r.checkResult=UC(r.groups.map(({checkResult:e})=>e)),r.groups.sort((e,t)=>e.checkResult-t.checkResult),n.push(r)}),n.sort((e,t)=>e.page-t.page)},dw=function(e){return e[e.PORTRAIT=1]=`PORTRAIT`,e[e.CAMERA=2]=`CAMERA`,e[e.RFID=3]=`RFID`,e[e.VISUAL=4]=`VISUAL`,e[e.EXTERNAL=5]=`EXTERNAL`,e[e.BARCODE=6]=`BARCODE`,e}({}),fw,pw=class{static{fw=this}static{this.fromPlain=e=>X(fw,e)}};q([I(),V(dw),K(`design:type`,dw===void 0?Object:dw)],pw.prototype,`source`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],pw.prototype,`checkResult`,void 0),q([I(),B(),K(`design:type`,Number)],pw.prototype,`similarity`,void 0),q([I(),U(),K(`design:type`,String)],pw.prototype,`image`,void 0),pw=fw=q([J()],pw);var mw,hw=class{static{mw=this}static{this.fromPlain=e=>Du(mw,e)}};q([I(),U(),K(`design:type`,String)],hw.prototype,`image`,void 0),q([I(),V(dw),K(`design:type`,dw===void 0?Object:dw)],hw.prototype,`source`,void 0),q([I(),R({each:!0}),Y(()=>pw),K(`design:type`,Array)],hw.prototype,`comparable`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],hw.prototype,`diagnose`,void 0),hw=mw=q([J()],hw);var gw=e=>{let t=md.fromProcessResponse(e),n=[];return t.forEach(e=>{e.AuthenticityCheckList.List.forEach(e=>{if(Xu.isBelongs(e)){if(e.Type!==j.PORTRAIT_COMPARISON)return;e.List.forEach(e=>{if(![Vr.PORTRAIT_COMPARISON_VS_CAMERA,Vr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,Vr.PORTRAIT_COMPARISON_EXT_VS_VISUAL,Vr.PORTRAIT_COMPARISON_EXT_VS_RFID,Vr.PORTRAIT_COMPARISON_EXT_VS_CAMERA,Vr.PORTRAIT_COMPARISON_EXT_VS_BARCODE,Vr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(e.ElementType))return;let t=dw.PORTRAIT,r=dw.CAMERA;switch(e.ElementType){case Vr.PORTRAIT_COMPARISON_VS_CAMERA:t=dw.PORTRAIT,r=dw.CAMERA;break;case Vr.PORTRAIT_COMPARISON_RFID_VS_CAMERA:t=dw.RFID,r=dw.CAMERA;break;case Vr.PORTRAIT_COMPARISON_EXT_VS_VISUAL:t=dw.EXTERNAL,r=dw.VISUAL;break;case Vr.PORTRAIT_COMPARISON_EXT_VS_RFID:t=dw.EXTERNAL,r=dw.RFID;break;case Vr.PORTRAIT_COMPARISON_EXT_VS_CAMERA:t=dw.EXTERNAL,r=dw.CAMERA;break;case Vr.PORTRAIT_COMPARISON_EXT_VS_BARCODE:t=dw.EXTERNAL,r=dw.BARCODE;break;case Vr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA:t=dw.BARCODE,r=dw.CAMERA;break}let i=[Vr.PORTRAIT_COMPARISON_VS_CAMERA,Vr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,Vr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(e.ElementType),a=n.findIndex(e=>i?e.source===r:e.source===t);a===-1&&(n.push(hw.fromPlain({diagnose:e.ElementDiagnose,source:i?r:t,comparable:[],image:i?e.Image.image:e.EtalonImage.image})),a=n.length-1),n[a].comparable.push(pw.fromPlain({source:i?t:r,checkResult:e.ElementResult,similarity:e.PercentValue,image:i?e.EtalonImage.image:e.Image.image}))})}})}),n},_w=class{};q([I(),B(),K(`design:type`,Number)],_w.prototype,`length`,void 0),q([I(),V(cr),K(`design:type`,cr===void 0?Object:cr)],_w.prototype,`type`,void 0),q([I(),U(),K(`design:type`,String)],_w.prototype,`data`,void 0);var vw=class{};q([I(),B(),K(`design:type`,Number)],vw.prototype,`fieldIndex`,void 0),q([I(),V(lr),K(`design:type`,lr===void 0?Object:lr)],vw.prototype,`type`,void 0),q([I(),V(Zc),K(`design:type`,Zc===void 0?Object:Zc)],vw.prototype,`resultCode`,void 0),q([I(),Y(()=>_w),R({each:!0}),K(`design:type`,Array)],vw.prototype,`modulesData`,void 0);var yw,bw=class{static{yw=this}static{this.fromPlain=e=>X(yw,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>yw.getValidationErrors(e).length===0)}};q([I(),B(),K(`design:type`,Number)],bw.prototype,`pageIndex`,void 0),q([I(),Y(()=>vw),R({each:!0}),K(`design:type`,Array)],bw.prototype,`fields`,void 0),bw=yw=q([J()],bw);var xw=e=>{let t=[];return Dd.fromProcessResponse(e).forEach(e=>{if(!e.DocBarCodeInfo?.pArrayFields?.length)return;let n=new bw;n.pageIndex=e.page_idx??0,n.fields=[],e.DocBarCodeInfo.pArrayFields.map((e,t)=>{let r=new vw;r.fieldIndex=t,r.resultCode=e.bcCodeResult??Zc.NO_ERR,r.type=e.bcType_DECODE??lr.UNKNOWN,r.modulesData=[],e.bcDataModule?.map(e=>{if(e.mLength===void 0||e.mType===void 0||e.mData===void 0)return;let t=new _w;t.data=e.mData,t.length=e.mLength,t.type=e.mType,r.modulesData.push(t)}),n.fields.push(r)}),t.push(n)}),t.filter(e=>!!e.fields.length)},Sw=class{};q([I(),H(),K(`design:type`,Number)],Sw.prototype,`pageIndex`,void 0),q([L(),U(),K(`design:type`,String)],Sw.prototype,`src`,void 0),q([I(),H(),K(`design:type`,Number)],Sw.prototype,`width`,void 0),q([I(),H(),K(`design:type`,Number)],Sw.prototype,`height`,void 0),q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Sw.prototype,`source`,void 0);var Cw,ww=class{static{Cw=this}static{this.fromPlain=e=>X(Cw,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>!Cw.getValidationErrors(e).length)}};q([I(),V(br),K(`design:type`,br===void 0?Object:br)],ww.prototype,`light`,void 0),q([I(),V(hr),K(`design:type`,hr===void 0?Object:hr)],ww.prototype,`fieldType`,void 0),q([I(),U(),K(`design:type`,String)],ww.prototype,`name`,void 0),q([I(),Y(()=>Sw),R({each:!0}),K(`design:type`,Array)],ww.prototype,`pages`,void 0),ww=Cw=q([J()],ww);var Tw=async(e,t,n)=>{let r=[],i=Mf.fromProcessResponse(e);if(!i.length)return r;let a=Df.fromContainers(i,t);for(let e=0;e<a.length;e++){let t=a[e],{fieldName:i}=t;for(let e=0;e<t.valueList.length;e++){let a=t.valueList[e],{lightIndex:o,pageIndex:s,value:c,containerType:l}=a;if(n&&!n.includes(l))continue;let u=r.findIndex(e=>e.light===o&&e.fieldType===t.fieldType);if(u<0){let e=new ww;e.name=i,e.fieldType=t.fieldType,e.light=o,e.pages=[],u=r.push(e)-1}let d=c?`data:image/jpeg;base64,${c}`:void 0,f={width:0,height:0};d&&(f=await gx(d));let p=new Sw;p.pageIndex=s,p.src=d,p.width=f.width,p.height=f.height,p.source=a.source,r[u].pages.push(p)}}return r},Ew=(e,t,n)=>{let r=[],i=Mf.fromProcessResponse(e);if(!i.length)return r;let a=Df.fromContainers(i,t);for(let e=0;e<a.length;e++){let t=a[e],{fieldName:i}=t;for(let e=0;e<t.valueList.length;e++){let a=t.valueList[e],{lightIndex:o,pageIndex:s,value:c,containerType:l}=a;if(n&&!n.includes(l))continue;let u=r.findIndex(e=>e.light===o&&e.fieldType===t.fieldType);if(u<0){let e=new ww;e.name=i,e.fieldType=t.fieldType,e.light=o,e.pages=[],u=r.push(e)-1}let d=c?`data:image/jpeg;base64,${c}`:void 0,f=new Sw;f.pageIndex=s,f.src=d,f.width=0,f.height=0,f.source=a.source,r[u].pages.push(f)}}return r},Dw,Ow=class{static{Dw=this}static{this.fromPlain=e=>X(Dw,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>Dw.getValidationErrors(e).length===0)}};q([I(),U(),K(`design:type`,String)],Ow.prototype,`src`,void 0),q([I(),H(),K(`design:type`,Number)],Ow.prototype,`width`,void 0),q([I(),H(),K(`design:type`,Number)],Ow.prototype,`height`,void 0),Ow=Dw=q([J()],Ow);var kw=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8Xw8AAoMBgDTD2qgAAAAASUVORK5CYII=`;async function Aw(e,t,n=!0,r){let i=new Ow;i.width=1,i.height=1,i.src=kw;let a=Mf.fromProcessResponse(e);if(!a.length)return n?i:void 0;let o;if(a.forEach(e=>{if(!o)for(let n=0;n<e.Images.fieldList.length;n++){let i=e.Images.fieldList[n];if(i.fieldType===t)for(let e=0;e<i.valueList.length;e++){let t=i.valueList[e];if(r&&r.includes(t.lightIndex)||!r){o=t.value;break}}}}),o){i.src=`data:image/jpeg;base64,${o}`;let e=await gx(i.src);i.width=e.width,i.height=e.height}else if(!n)return;return i}function jw(e,t,n=!0,r){let i=new Ow;i.width=1,i.height=1,i.src=kw;let a=Mf.fromProcessResponse(e);if(!a.length)return n?i:void 0;let o;if(a.forEach(e=>{if(!o)for(let n=0;n<e.Images.fieldList.length;n++){let i=e.Images.fieldList[n];if(i.fieldType===t)for(let e=0;e<i.valueList.length;e++){let t=i.valueList[e];if(r&&r.includes(t.lightIndex)||!r){o=t.value;break}}}}),o)i.src=`data:image/jpeg;base64,${o}`,i.width=0,i.height=0;else if(!n)return;return i}var Mw=class{};q([I(),V(gr),K(`design:type`,gr===void 0?Object:gr)],Mw.prototype,`checkType`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Mw.prototype,`checkResult`,void 0),q([L(),R(),Y(()=>ku),K(`design:type`,ku===void 0?Object:ku)],Mw.prototype,`areas`,void 0);var Nw,Pw=class{static{Nw=this}static{this.fromPlain=e=>X(Nw,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>Nw.getValidationErrors(e).length===0)}};q([I(),B(),K(`design:type`,Number)],Pw.prototype,`pageIndex`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Pw.prototype,`checkResult`,void 0),q([I(),Y(()=>Mw),R({each:!0}),K(`design:type`,Array)],Pw.prototype,`checks`,void 0),Pw=Nw=q([J()],Pw);var Fw=(function(){function e(e){return e}function t(e){return typeof e==`string`?e.toLowerCase():e}function n(n,r){if(r=typeof r==`object`?r:{direction:r},typeof n!=`function`){var i=n;n=function(e){return e[i]?e[i]:``}}if(n.length===1){var a=n,o=r.ignoreCase?t:e,s=r.cmp||function(e,t){return e<t?-1:+(e>t)};n=function(e,t){return s(o(a(e)),o(a(t)))}}return r.direction in{"-1":``,desc:``}?function(e,t){return-n(e,t)}:n}function r(e,t){var i=typeof this==`function`&&!this.firstBy?this:!1,a=n(e,t),o=i?function(e,t){return i(e,t)||a(e,t)}:a;return o.thenBy=r,o}return r.firstBy=r,r})(),Iw=e=>{let t=[];return Tf.fromProcessResponse(e).sort(Fw(e=>e.page_idx)).forEach(e=>{let n=new Pw;n.pageIndex=e.page_idx??0,n.checks=[],n.checkResult=e.ImageQualityCheckList.result,e.ImageQualityCheckList.List.forEach(e=>{if(e.result===void 0||e.type===void 0)return;let t=new Mw;t.checkResult=e.result,t.checkType=e.type,e.areas&&(t.areas=e.areas),n.checks.push(t)}),t.push(n)}),t.filter(e=>e.checks.length)},Lw,Rw=class{static{Lw=this}static{this.fromPlain=e=>X(Lw,e)}static{this.getValidationErrors=e=>G(e)}};q([I(),V(Fr),K(`design:type`,Fr===void 0?Object:Fr)],Rw.prototype,`certificateType`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`publicKeyAlgorithm`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`signatureAlgorithm`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`issuer`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`subject`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`validFrom`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`validTo`,void 0),Rw=Lw=q([J()],Rw);var zw=(e,t=`UNKNOWN`)=>{let n=nf.fromProcessResponse(e),r=[];return n.forEach(e=>{(e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data)?.SecurityObjects.forEach(e=>{e.SignerInfos.forEach(e=>{e.CertificateChain.forEach(e=>{let n=new Rw;n.certificateType=e.Type??Fr.UNDEFINED,n.publicKeyAlgorithm=e.SubjectPKAlgorithm??t,n.signatureAlgorithm=e.SignatureAlgorithm??t,n.issuer=e.Issuer.FriendlyName.Data??t,n.subject=e.Subject.FriendlyName.Data??t,e.Validity.NotBefore.Data?n.validFrom=HC(e.Validity.NotBefore.Data):n.validFrom=t,e.Validity.NotAfter.Data?n.validTo=HC(e.Validity.NotAfter.Data):n.validTo=t,r.push(n)})})})}),r},Bw=e=>{let t=Zd.fromProcessResponse(e),n=[];if(t.forEach(e=>{e.Status.detailsRFID&&n.push(e.Status.detailsRFID)}),n.length)return n[0];let r=new Kd;return r.AA=M.WAS_NOT_DONE,r.BAC=M.WAS_NOT_DONE,r.CA=M.WAS_NOT_DONE,r.PA=M.WAS_NOT_DONE,r.PACE=M.WAS_NOT_DONE,r.TA=M.WAS_NOT_DONE,r.overallStatus=M.WAS_NOT_DONE,r},Vw=function(e){return e[e.NOT_PERFORMED=Or.RFID_Error_NotPerformed]=`NOT_PERFORMED`,e[e.NOT_AVAILABLE=Or.RFID_Error_NotAvailable]=`NOT_AVAILABLE`,e[e.NO_ERROR=Or.RFID_Error_NoError]=`NO_ERROR`,e[e.FAILED=Or.RFID_Error_Failed]=`FAILED`,e}({}),Hw,Uw=class{static{Hw=this}static{this.fromPlain=e=>X(Hw,e)}static{this.getValidationErrors=e=>G(e)}};q([I(),H(),K(`design:type`,Number)],Uw.prototype,`group`,void 0),q([I(),V(Vw),K(`design:type`,Vw===void 0?Object:Vw)],Uw.prototype,`status`,void 0),Uw=Hw=q([J()],Uw);var Ww=e=>{let t;switch(e){case P.ID_DG1:case P.PASSPORT_DG1:case P.DL_DG1:t=1;break;case P.ID_DG2:case P.PASSPORT_DG2:case P.DL_DG2:t=2;break;case P.ID_DG3:case P.PASSPORT_DG3:case P.DL_DG3:t=3;break;case P.ID_DG4:case P.PASSPORT_DG4:case P.DL_DG4:t=4;break;case P.ID_DG5:case P.PASSPORT_DG5:case P.DL_DG5:t=5;break;case P.ID_DG6:case P.PASSPORT_DG6:case P.DL_DG6:t=6;break;case P.ID_DG7:case P.PASSPORT_DG7:case P.DL_DG7:t=7;break;case P.ID_DG8:case P.PASSPORT_DG8:case P.DL_DG8:t=8;break;case P.ID_DG9:case P.PASSPORT_DG9:case P.DL_DG9:t=9;break;case P.ID_DG10:case P.PASSPORT_DG10:case P.DL_DG10:t=10;break;case P.ID_DG11:case P.PASSPORT_DG11:case P.DL_DG11:t=11;break;case P.ID_DG12:case P.PASSPORT_DG12:case P.DL_DG12:t=12;break;case P.ID_DG13:case P.PASSPORT_DG13:case P.DL_DG13:t=13;break;case P.ID_DG14:case P.PASSPORT_DG14:case P.DL_DG14:t=14;break;case P.ID_DG15:case P.PASSPORT_DG15:t=15;break;case P.ID_DG16:case P.PASSPORT_DG16:t=16;break;case P.ID_DG17:case P.PASSPORT_DG17:case P.DTC_DG17:t=17;break;case P.ID_DG18:case P.PASSPORT_DG18:case P.DTC_DG18:t=18;break;case P.ID_DG19:case P.PASSPORT_DG19:t=19;break;case P.ID_DG20:case P.PASSPORT_DG20:t=20;break;case P.ID_DG21:t=21;break;case P.DTC_DG22:t=22;break;case P.DTC_DG23:t=23;break;case P.DTC_DG24:t=24;break}return t},Gw=e=>{let t=nf.fromProcessResponse(e),n=[];return t.forEach(e=>{let t=e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data,r=e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_ePassp_Directory||[];t?.Applications.forEach((e,t,i)=>{let a=e.Type,o=[];if(!(a===jr.eDTC_PC&&i.length>1)&&(e.Files.forEach(e=>{let t=e.Type,n=Ww(t),r=Vw.NOT_AVAILABLE;switch(e.PA_Status){case Or.RFID_Error_NoError:r=Vw.NO_ERROR;break;case Or.RFID_Error_NotPerformed:r=Vw.NOT_PERFORMED;break;case Or.RFID_Error_NotAvailable:r=Vw.NOT_AVAILABLE;break;case Or.RFID_Error_Failed:r=Vw.FAILED;break}n&&o.push({index:n,status:r})}),r.forEach(e=>{let t=Ww(e),n=o.findIndex(e=>e.index===t);t!==void 0&&n<0&&o.push({index:t,status:Vw.NOT_PERFORMED})}),o.length)){let e=o.sort((e,t)=>e.index-t.index),t=0;switch(a){case jr.E_PASSPORT:t=16;break;case jr.E_ID:t=21;break;case jr.E_DL:t=14;break;default:{let n=e.map(e=>e.index),r=Math.max(...n);t=n.includes(2)&&n.includes(3)&&n.includes(8)&&r<=8?8:n.includes(1)&&n.includes(2)&&n.includes(6)&&n.includes(10)&&r<=10?10:r;break}}for(let n=1;n<=t;n++)e.find(e=>e.index===n)||e.splice(n-1,0,{index:n,status:Vw.NOT_AVAILABLE});n=e.map(e=>{let t=new Uw;return t.group=e.index,t.status=e.status,t})}})}),n},Kw=class{};q([I(),V(P),K(`design:type`,P===void 0?Object:P)],Kw.prototype,`group`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kw.prototype,`status`,void 0);var qw,Jw=class{static{qw=this}static{this.fromPlain=e=>X(qw,e)}static{this.getValidationErrors=e=>G(e)}};q([I(),V(jr),K(`design:type`,jr===void 0?Object:jr)],Jw.prototype,`type`,void 0),q([I(),Y(()=>Kw),R({each:!0}),K(`design:type`,Array)],Jw.prototype,`groups`,void 0),Jw=qw=q([J()],Jw);var Yw=e=>{let t=nf.fromProcessResponse(e),n=[];return t.forEach(e=>{(e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data)?.Applications.forEach(e=>{let t={type:e.Type,groups:[]};e.Files.forEach(e=>{let n=e.Type,r=M.WAS_NOT_DONE;switch(e.PA_Status){case Or.RFID_Error_NotPerformed:case Or.RFID_Error_NotAvailable:r=M.WAS_NOT_DONE;break;case Or.RFID_Error_NoError:r=M.OK;break;default:r=M.ERROR;break}t.groups.push({group:n,status:r})}),n.push(t)})}),n},Xw=function(e){return e.DOC_TYPE=`DOC_TYPE`,e.EXPIRY=`EXPIRY`,e.IMAGE_QA=`IMAGE_QA`,e.MRZ=`MRZ`,e.SECURITY=`SECURITY`,e.TEXT=`TEXT`,e}({}),Zw=function(e){return e.AA=`AA`,e.BAC=`BAC`,e.CA=`CA`,e.PA=`PA`,e.PACE=`PACE`,e.TA=`TA`,e}({}),Qw=function(e){return e.OPTICAL=`optical`,e.PORTRAIT=`portrait`,e.RFID=`rfid`,e.STOP_LIST=`stopList`,e}({}),$w=class{static{Xw.DOC_TYPE,Xw.EXPIRY,Xw.IMAGE_QA,Xw.MRZ,Xw.SECURITY,Xw.TEXT}};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0);var eT=class{static{Qw.OPTICAL,Qw.PORTRAIT,Qw.RFID,Qw.STOP_LIST}};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],eT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],eT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],eT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],eT.prototype,null,void 0);var tT=class{static{Zw.AA,Zw.BAC,Zw.CA,Zw.PACE,Zw.PA,Zw.TA}};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0);var nT,rT=class{static{nT=this}static{this.fromPlain=e=>X(nT,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>nT.getValidationErrors(e).length===0)}};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],rT.prototype,`overallStatus`,void 0),q([I(),Y(()=>$w),R(),K(`design:type`,$w===void 0?Object:$w)],rT.prototype,`optical`,void 0),q([I(),Y(()=>tT),R(),K(`design:type`,tT===void 0?Object:tT)],rT.prototype,`rfId`,void 0),q([I(),Y(()=>eT),R(),K(`design:type`,eT===void 0?Object:eT)],rT.prototype,`summary`,void 0),rT=nT=q([J()],rT);var iT=e=>{let t=new rT,n=Zd.fromProcessResponse(e);if(t.overallStatus=M.WAS_NOT_DONE,!n.length)return t.optical=new $w,t.optical[Xw.DOC_TYPE]=M.WAS_NOT_DONE,t.optical[Xw.TEXT]=M.WAS_NOT_DONE,t.optical[Xw.SECURITY]=M.WAS_NOT_DONE,t.optical[Xw.MRZ]=M.WAS_NOT_DONE,t.optical[Xw.IMAGE_QA]=M.WAS_NOT_DONE,t.optical[Xw.EXPIRY]=M.WAS_NOT_DONE,t.rfId=new tT,t.rfId[Zw.AA]=M.WAS_NOT_DONE,t.rfId[Zw.BAC]=M.WAS_NOT_DONE,t.rfId[Zw.CA]=M.WAS_NOT_DONE,t.rfId[Zw.PA]=M.WAS_NOT_DONE,t.rfId[Zw.PACE]=M.WAS_NOT_DONE,t.rfId[Zw.TA]=M.WAS_NOT_DONE,t.summary=new eT,t.summary[Qw.OPTICAL]=M.WAS_NOT_DONE,t.summary[Qw.PORTRAIT]=M.WAS_NOT_DONE,t.summary[Qw.RFID]=M.WAS_NOT_DONE,t.summary[Qw.STOP_LIST]=M.WAS_NOT_DONE,t;let r=n[0].Status;return t.overallStatus=r.overallStatus,t.optical=new $w,t.optical[Xw.DOC_TYPE]=r.detailsOptical.docType??M.WAS_NOT_DONE,t.optical[Xw.TEXT]=r.detailsOptical.text??M.WAS_NOT_DONE,t.optical[Xw.SECURITY]=r.detailsOptical.security??M.WAS_NOT_DONE,t.optical[Xw.MRZ]=r.detailsOptical.mrz??M.WAS_NOT_DONE,t.optical[Xw.IMAGE_QA]=r.detailsOptical.imageQA??M.WAS_NOT_DONE,t.optical[Xw.EXPIRY]=r.detailsOptical.expiry??M.WAS_NOT_DONE,t.rfId=new tT,t.rfId[Zw.AA]=r.detailsRFID?.AA??M.WAS_NOT_DONE,t.rfId[Zw.BAC]=r.detailsRFID?.BAC??M.WAS_NOT_DONE,t.rfId[Zw.CA]=r.detailsRFID?.CA??M.WAS_NOT_DONE,t.rfId[Zw.PA]=r.detailsRFID?.PA??M.WAS_NOT_DONE,t.rfId[Zw.PACE]=r.detailsRFID?.PACE??M.WAS_NOT_DONE,t.rfId[Zw.TA]=r.detailsRFID?.TA??M.WAS_NOT_DONE,t.summary=new eT,t.summary[Qw.OPTICAL]=r.optical??M.WAS_NOT_DONE,t.summary[Qw.PORTRAIT]=r.portrait??M.WAS_NOT_DONE,t.summary[Qw.RFID]=r.rfid??M.WAS_NOT_DONE,t.summary[Qw.STOP_LIST]=r.stopList??M.WAS_NOT_DONE,t},aT=(e,t)=>e.reduce((e,n)=>e===M.ERROR||t(n)===M.ERROR?M.ERROR:e===M.WAS_NOT_DONE&&t(n)===M.OK?M.OK:M.WAS_NOT_DONE,M.WAS_NOT_DONE),oT=e=>{let t=new rT;return t.overallStatus=aT(e,e=>e.overallStatus),t.optical=new $w,t.optical[Xw.DOC_TYPE]=aT(e,e=>e.optical[Xw.DOC_TYPE]),t.optical[Xw.TEXT]=aT(e,e=>e.optical[Xw.TEXT]),t.optical[Xw.SECURITY]=aT(e,e=>e.optical[Xw.SECURITY]),t.optical[Xw.MRZ]=aT(e,e=>e.optical[Xw.MRZ]),t.optical[Xw.IMAGE_QA]=aT(e,e=>e.optical[Xw.IMAGE_QA]),t.optical[Xw.EXPIRY]=aT(e,e=>e.optical[Xw.EXPIRY]),t.rfId=new tT,t.rfId[Zw.AA]=aT(e,e=>e.rfId[Zw.AA]),t.rfId[Zw.BAC]=aT(e,e=>e.rfId[Zw.BAC]),t.rfId[Zw.CA]=aT(e,e=>e.rfId[Zw.CA]),t.rfId[Zw.PA]=aT(e,e=>e.rfId[Zw.PA]),t.rfId[Zw.PACE]=aT(e,e=>e.rfId[Zw.PACE]),t.rfId[Zw.TA]=aT(e,e=>e.rfId[Zw.TA]),t.summary=new eT,t.summary[Qw.OPTICAL]=aT(e,e=>e.summary[Qw.OPTICAL]),t.summary[Qw.PORTRAIT]=aT(e,e=>e.summary[Qw.PORTRAIT]),t.summary[Qw.RFID]=aT(e,e=>e.summary[Qw.RFID]),t.summary[Qw.STOP_LIST]=aT(e,e=>e.summary[Qw.STOP_LIST]),t},sT,cT=class{static{sT=this}static{this.fromPlain=e=>X(sT,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>sT.getValidationErrors(e).length===0)}};q([I(),B(),K(`design:type`,Number)],cT.prototype,`pageIndex`,void 0),q([I(),U(),K(`design:type`,String)],cT.prototype,`documentName`,void 0),q([I(),z(),K(`design:type`,Boolean)],cT.prototype,`isDeprecated`,void 0),q([I(),B(),K(`design:type`,Number)],cT.prototype,`probability`,void 0),q([I(),B(),K(`design:type`,Number)],cT.prototype,`documentId`,void 0),q([L(),U(),K(`design:type`,String)],cT.prototype,`documentCategory`,void 0),cT=sT=q([J()],cT);function lT(e){let t=Uf.fromProcessResponse(e),n=[];for(let e=0;e<t.length;e++){let r=t[e];r.OneCandidate?.DocumentName&&n.push(cT.fromPlain({documentName:r.OneCandidate.DocumentName,pageIndex:r.page_idx??0,isDeprecated:r.OneCandidate.FDSIDList?.isDeprecated,documentId:r.OneCandidate.ID,probability:r.OneCandidate.P,documentCategory:r.OneCandidate.FDSIDList?.dDescription}))}return n}var uT,dT=class{static{uT=this}static{this.fromPlain=e=>X(uT,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>uT.getValidationErrors(e).length===0)}};q([I(),U(),K(`design:type`,String)],dT.prototype,`value`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],dT.prototype,`checkResult`,void 0),q([I(),V(yr),K(`design:type`,yr===void 0?Object:yr)],dT.prototype,`lcid`,void 0),dT=uT=q([J()],dT);var fT=(e,t=`UNKNOWN`)=>{let n=np.fromProcessResponse(e),r=dT.fromPlain({value:t,checkResult:M.ERROR,lcid:yr.LATIN});if(!n.length)return r;for(let e=0;e<n.length;e++){let{Text:t}=n[e],r=t.fieldList.findIndex(e=>e.lcid===yr.LATIN&&e.fieldType===F.SURNAME_AND_GIVEN_NAMES);if(r!==-1){let e=t.fieldList[r];return dT.fromPlain({value:e.value,checkResult:e.status,lcid:e.lcid})}}for(let e=0;e<n.length;e++){let{Text:t}=n[e];for(let e=0;e<t.fieldList.length;e++){let n=t.fieldList[e];if(n.fieldType===F.SURNAME_AND_GIVEN_NAMES&&n.value)return dT.fromPlain({value:n.value,checkResult:n.status,lcid:n.lcid})}}return r},pT=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],pT.prototype,`source`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],pT.prototype,`checkResult`,void 0),q([I(),U(),K(`design:type`,String)],pT.prototype,`value`,void 0),q([I(),K(`design:type`,Number)],pT.prototype,`probability`,void 0),q([I(),K(`design:type`,Number)],pT.prototype,`pageIndex`,void 0),q([L(),Y(()=>Z),R(),K(`design:type`,Z===void 0?Object:Z)],pT.prototype,`rect`,void 0),q([L(),Y(()=>Mu),R(),K(`design:type`,Mu===void 0?Object:Mu)],pT.prototype,`rfidOrigin`,void 0);var mT=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],mT.prototype,`sourceLeft`,void 0),q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],mT.prototype,`sourceRight`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mT.prototype,`status`,void 0);var hT,gT=class{static{hT=this}static{this.fromPlain=e=>X(hT,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>hT.getValidationErrors(e).length===0)}};q([I(),V(F),K(`design:type`,F===void 0?Object:F)],gT.prototype,`type`,void 0),q([I(),U(),K(`design:type`,String)],gT.prototype,`value`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],gT.prototype,`checkResult`,void 0),q([I(),V(yr),K(`design:type`,yr===void 0?Object:yr)],gT.prototype,`lcid`,void 0),q([I(),R({each:!0}),Y(()=>mT),K(`design:type`,Array)],gT.prototype,`comparisonList`,void 0),q([I(),Y(()=>pT),R({each:!0}),K(`design:type`,Array)],gT.prototype,`bySource`,void 0),gT=hT=q([J()],gT);var _T=e=>{let t=[],n=np.fromProcessResponse(e);return n.length&&n.forEach(e=>{e.Text.fieldList.forEach(e=>{let n=new gT;n.type=e.fieldType,n.value=e.value,n.lcid=e.lcid,n.checkResult=e.status,n.comparisonList=e.comparisonList?.map(e=>{let t=new mT;return t.sourceLeft=e.sourceLeft,t.sourceRight=e.sourceRight,t.status=e.status,t})||[],n.bySource=[],e.valueList.forEach(t=>{let r=new pT;r.checkResult=e.validityList.find(e=>e.source===t.source)?.status??M.WAS_NOT_DONE,r.source=t.source,r.value=t?.value??``,r.pageIndex=t?.pageIndex??0,r.probability=t?.probability??0,t.fieldRect&&(r.rect=t.fieldRect),t.rfidOrigin&&(r.rfidOrigin=t.rfidOrigin),n.bySource.push(r)}),n.bySource.length&&t.push(n)})}),t},vT,yT=class{static{vT=this}static{this.fromPlain=e=>X(vT,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>Array.isArray(e)?e.every(e=>vT.getValidationErrors(e).length===0):vT.getValidationErrors(e).length===0}};q([I(),U(),K(`design:type`,String)],yT.prototype,`value`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],yT.prototype,`status`,void 0),q([I(),V(yr),K(`design:type`,yr===void 0?Object:yr)],yT.prototype,`lcid`,void 0),yT=vT=q([J()],yT);function bT(e,t){let n=np.fromProcessResponse(e),r=[];for(let e=0;e<n.length;e++)n[e].Text.fieldList.forEach(e=>{e.fieldType===t&&r.push(yT.fromPlain({value:e.value,status:e.status,lcid:e.lcid}))});return r.sort((e,t)=>e.lcid-t.lcid)}function xT(e){return bT(e,F.DATE_OF_EXPIRY)}function ST(e){return bT(e,F.ISSUING_STATE_NAME)}function CT(e){return bT(e,F.DOCUMENT_NUMBER)}function wT(e){return bT(e,F.AGE)}function TT(e){return bT(e,F.NATIONALITY_CODE)}function ET(e){return bT(e,F.SEX)}var DT=class extends TypeError{constructor(e,t){super(e),this.name=`DocReaderTypeError`,this.message=e,this.errors=t}};if(!l)throw Error(`reflect-metadata polyfill failed to load`);exports.AreaArray=ku,exports.AuthenticityCheckList=dd,Object.defineProperty(exports,"AuthenticityCheckListContainer",{enumerable:!0,get:function(){return md}}),exports.AuthenticityCheckListContainerResultTypes=pd,Object.defineProperty(exports,"AuthenticityFibersTypeCheckResult",{enumerable:!0,get:function(){return Ku}}),exports.AuthenticityFibersTypeCheckResultTypes=Gu,Object.defineProperty(exports,"AuthenticityIdentCheckResult",{enumerable:!0,get:function(){return Xu}}),exports.AuthenticityIdentCheckResultTypes=Yu,Object.defineProperty(exports,"AuthenticityOCRSecurityTextCheckResult",{enumerable:!0,get:function(){return ed}}),exports.AuthenticityOCRSecurityTextCheckResultTypes=$u,Object.defineProperty(exports,"AuthenticityPhotoIdentCheckResult",{enumerable:!0,get:function(){return ad}}),exports.AuthenticityPhotoIdentCheckResultTypes=id,Object.defineProperty(exports,"AuthenticitySecurityFeatureCheckResult",{enumerable:!0,get:function(){return ld}}),exports.AuthenticitySecurityFeatureCheckResultTypes=cd,exports.AuthenticityTextCheckReferenceTypes=GC,Object.defineProperty(exports,"BSIv2Container",{enumerable:!0,get:function(){return im}}),exports.BSIv2ContainerResultTypes=rm,Object.defineProperty(exports,"BarcodeBoundsResultContainer",{enumerable:!0,get:function(){return bd}}),exports.BarcodeBoundsResultContainerResultTypes=yd,exports.BinaryData=Q,exports.BoundsResult=Au,Object.defineProperty(exports,"BoundsResultContainer",{enumerable:!0,get:function(){return _d}}),exports.BoundsResultContainerResultTypes=gd,Object.defineProperty(exports,"ByteArrayContainer",{enumerable:!0,get:function(){return Hp}}),exports.ByteArrayContainerResultTypes=Vp,exports.CertificateData=Md,exports.ContainerList=lm,exports.DetailsAge=qd,exports.DetailsOptical=Gd,exports.DetailsRFID=Kd,exports.DocBarCodeField=Cd,exports.DocBarCodeInfo=wd,Object.defineProperty(exports,"DocBarCodeInfoContainer",{enumerable:!0,get:function(){return Dd}}),exports.DocBarCodeInfoContainerResultTypes=Ed,exports.DocBinaryInfo=$d,Object.defineProperty(exports,"DocBinaryInfoContainer",{enumerable:!0,get:function(){return nf}}),exports.DocBinaryInfoContainerResultTypes=tf,exports.DocGraphicField=rf,exports.DocGraphicsInfo=af,Object.defineProperty(exports,"DocGraphicsInfoContainer",{enumerable:!0,get:function(){return cf}}),exports.DocGraphicsInfoContainerResultTypes=sf,exports.DocReaderTypeError=DT,exports.DocVisualExtendedField=pf,exports.DocVisualExtendedInfo=mf,Object.defineProperty(exports,"DocVisualExtendedInfoContainer",{enumerable:!0,get:function(){return _f}}),exports.DocVisualExtendedInfoContainerResultTypes=gf,Object.defineProperty(exports,"DocumentTypesCandidatesContainer",{enumerable:!0,get:function(){return Sp}}),exports.DocumentTypesCandidatesContainerResultTypes=xp,exports.DocumentTypesCandidatesList=yp,exports.DocumentsDatabase=Sm,Object.defineProperty(exports,"EncryptedRCLContainer",{enumerable:!0,get:function(){return bf}}),exports.EncryptedRCLContainerResultTypes=yf,exports.ErrorCoordinates=dp,exports.FDSIDList=Nu,exports.FaceApi=dm,exports.FaceApiSearch=um,exports.FaceDetection=Ap,Object.defineProperty(exports,"FaceDetectionContainer",{enumerable:!0,get:function(){return Np}}),exports.FaceDetectionContainerResultTypes=Mp,exports.FaceItem=kp,Object.defineProperty(exports,"FibersType",{enumerable:!0,get:function(){return Hu}}),exports.FieldItem=fp,exports.FileImage=Pp,exports.GraphData=Fp,exports.IdentResult=qu,exports.ImageData=ju,exports.ImageField=Df,exports.ImageFieldValue=Ef,exports.ImageQA=fm,exports.ImageQualityCheck=xf,exports.ImageQualityCheckList=Sf,Object.defineProperty(exports,"ImageQualityCheckListContainer",{enumerable:!0,get:function(){return Tf}}),exports.ImageQualityCheckListContainerResultTypes=wf,exports.ImageSource=Of,exports.ImagesResult=kf,Object.defineProperty(exports,"ImagesResultContainer",{enumerable:!0,get:function(){return Mf}}),exports.ImagesResultContainerResultTypes=jf,exports.IsStringObjectRecord=_m,Object.defineProperty(exports,"LicenseContainer",{enumerable:!0,get:function(){return Ff}}),exports.LicenseContainerResultTypes=Pf,Object.defineProperty(exports,"ListVerifiedFieldContainer",{enumerable:!0,get:function(){return Bf}}),exports.ListVerifiedFieldContainerResultTypes=zf,exports.ListVerifiedFields=Lf,exports.LivenessParams=hm,Object.defineProperty(exports,"MDLContainer",{enumerable:!0,get:function(){return sm}}),exports.MDLContainerResultTypes=om,Object.defineProperty(exports,"MRZDetectorContainer",{enumerable:!0,get:function(){return Op}}),exports.MRZDetectorContainerResultTypes=Dp,Object.defineProperty(exports,"MRZPositionContainer",{enumerable:!0,get:function(){return up}}),exports.MRZPositionContainerResultTypes=lp,exports.MRZRowsItem=wp,exports.MRZTestQuality=hp,Object.defineProperty(exports,"MRZTestQualityContainer",{enumerable:!0,get:function(){return vp}}),exports.MRZTestQualityContainerResultTypes=_p,exports.OCRSecurityTextResult=Zu,exports.OneCandidate=Pu,Object.defineProperty(exports,"OneCandidateContainer",{enumerable:!0,get:function(){return Uf}}),exports.OneCandidateContainerResultTypes=Hf,exports.PerDocumentConfig=pm,exports.PhotoIdentResult=nd,exports.Point=pu,exports.PointArray=Ou,exports.ProcessParams=$,exports.ProcessParamsAuth=gm,exports.ProcessParamsRfid=mm,Object.defineProperty(exports,"ProcessRequest",{enumerable:!0,get:function(){return xm}}),exports.ProcessRequestImage=vm,Object.defineProperty(exports,"ProcessResponse",{enumerable:!0,get:function(){return xg}}),exports.ProcessSystemInfo=ym,Object.defineProperty(exports,"RAuthenticityCheckGroup",{enumerable:!0,get:function(){return ow}}),Object.defineProperty(exports,"RAuthenticityCheckGroupsItem",{enumerable:!0,get:function(){return cw}}),Object.defineProperty(exports,"RAuthenticityFibersCheck",{enumerable:!0,get:function(){return YC}}),Object.defineProperty(exports,"RAuthenticityIdentCheck",{enumerable:!0,get:function(){return ZC}}),Object.defineProperty(exports,"RAuthenticityPhotoIdentCheck",{enumerable:!0,get:function(){return $C}}),Object.defineProperty(exports,"RAuthenticitySecurityCheck",{enumerable:!0,get:function(){return tw}}),Object.defineProperty(exports,"RAuthenticityTextCheck",{enumerable:!0,get:function(){return rw}}),exports.RAuthenticityTextCheckReference=KC,Object.defineProperty(exports,"RDetailedStatus",{enumerable:!0,get:function(){return rT}}),exports.RDetailedStatusOptical=$w,exports.RDetailedStatusRfid=tT,exports.RDetailedStatusSummary=eT,Object.defineProperty(exports,"RDocumentBarcode",{enumerable:!0,get:function(){return bw}}),exports.RDocumentBarcodeField=vw,exports.RDocumentBarcodeModuleData=_w,Object.defineProperty(exports,"RDocumentIdentification",{enumerable:!0,get:function(){return cT}}),Object.defineProperty(exports,"RDocumentImage",{enumerable:!0,get:function(){return ww}}),exports.RDocumentImagePage=Sw,exports.RFIDDocVisualExtendedField=rp,exports.RFIDDocVisualExtendedInfo=ip,Object.defineProperty(exports,"RFIDGraphicsInfoContainer",{enumerable:!0,get:function(){return zp}}),exports.RFIDGraphicsInfoContainerResultTypes=Rp,Object.defineProperty(exports,"RFIDTextDataContainer",{enumerable:!0,get:function(){return sp}}),exports.RFIDTextDataContainerResultTypes=op,Object.defineProperty(exports,"RGraphicField",{enumerable:!0,get:function(){return Ow}}),Object.defineProperty(exports,"RImageQuality",{enumerable:!0,get:function(){return Pw}}),exports.RImageQualityCheck=Mw,exports.RLocation=WC,Object.defineProperty(exports,"RNameSurname",{enumerable:!0,get:function(){return dT}}),Object.defineProperty(exports,"RPortraitComparisonComparable",{enumerable:!0,get:function(){return pw}}),Object.defineProperty(exports,"RPortraitsComparison",{enumerable:!0,get:function(){return hw}}),Object.defineProperty(exports,"RRfidApplicationItem",{enumerable:!0,get:function(){return Jw}}),Object.defineProperty(exports,"RRfidCertificate",{enumerable:!0,get:function(){return Rw}}),Object.defineProperty(exports,"RRfidDataGroupStatus",{enumerable:!0,get:function(){return Uw}}),exports.RRfidDataGroupStatusItem=Kw,Object.defineProperty(exports,"RTextData",{enumerable:!0,get:function(){return gT}}),exports.RTextDataComparison=mT,exports.RTextDataSource=pT,Object.defineProperty(exports,"RTextFieldValue",{enumerable:!0,get:function(){return yT}}),Object.defineProperty(exports,"RawImageContainer",{enumerable:!0,get:function(){return Kf}}),exports.RawImageContainerList=td,exports.RawImageContainerResultTypes=Gf,exports.Rect=Z,exports.ResultMRZDetector=Tp,exports.RfidAccessControlInfo=kd,exports.RfidAccessKey=Ad,exports.RfidApplication=Fd,exports.RfidAttributeData=Ld,exports.RfidAttributeName=Lu,exports.RfidCardPropertiesExt=Id,exports.RfidCertificateEx=Bd,exports.RfidDG1=Od,exports.RfidDataFile=Pd,exports.RfidDistinguishedName=Ru,exports.RfidOrigin=Mu,exports.RfidParsedData=jd,exports.RfidPkiExtension=Rd,exports.RfidRawData=Qd,exports.RfidSecurityObject=Hd,exports.RfidSecurityObjectCertificates=Nd,exports.RfidSession=Wd,exports.RfidSignerInfoEx=Vd,exports.RfidTerminal=Ud,exports.RfidValidity=zd,exports.SecurityFeatureCheck=od,exports.Status=Jd,Object.defineProperty(exports,"StatusContainer",{enumerable:!0,get:function(){return Zd}}),exports.StatusContainerResultTypes=Xd,exports.StringItem=mp,exports.StringRecognitionResult=df,exports.Symbol=Cp,exports.SymbolCandidate=lf,exports.SymbolEstimationItem=pp,exports.SymbolRecognitionResult=uf,exports.TOriginalRFIDGraphicsInfo=Ip,exports.TextComparison=qf,exports.TextField=Zf,exports.TextFieldValue=Yf,exports.TextResult=$f,Object.defineProperty(exports,"TextResultContainer",{enumerable:!0,get:function(){return np}}),exports.TextResultContainerResultTypes=tp,exports.TextSource=Qf,exports.TextSymbol=Jf,exports.TextValidity=Xf,exports.TipDecodeModule=xd,exports.TipPDF417Info=Sd,exports.TransactionInfo=Cm,exports.TrfFtBytes=Fu,exports.TrfFtString=Iu,Object.defineProperty(exports,"VDSContainer",{enumerable:!0,get:function(){return qp}}),exports.VDSContainerResultTypes=Kp,exports.VDSData=Wp,Object.defineProperty(exports,"VDSNCContainer",{enumerable:!0,get:function(){return tm}}),exports.VDSNCContainerResultTypes=em,exports.VDSNCData=Qp,exports.VerifiedFieldMap=If,exports.aContainer=zu,exports.aVisualExtendedFieldItem=ff,exports.convertGeneralizedDateToLocal=HC,exports.decode=mx,exports.eAuthenticity=j,exports.eBarCodeDetectionType=Xc,exports.eBarCodeModuleType=cr,exports.eBarCodeResultCodes=Zc,exports.eBarCodeType=lr,exports.eCheckDiagnose=ur,exports.eCheckResult=M,exports.eDataGroupReadStatus=Vw,exports.eDocFormat=fr,exports.eDocType=pr,exports.eDocumentTypeRecognitionResult=mr,exports.eFieldVerificationResult=Wr,exports.eGraphicFieldType=hr,exports.eIRVisibilityFlag=Gr,exports.eImageQualityCheckType=gr,exports.eInputBarcodeType=_r,exports.eInputImageQualityChecks=vr,exports.eLCID=yr,exports.eLDSParsingErrorCodes=Tr,exports.eLDSParsingNotificationCodes=Er,exports.eLights=br,exports.eLogLevel=xr,exports.eMRZDetectMode=wr,exports.eMRZFormat=Sr,exports.eMeasureSystem=Cr,exports.eOpticalStatusField=Xw,exports.ePortraitComparisonSource=dw,exports.eProcessingStatus=Dr,exports.eResult=N,exports.eResultType=N,exports.eRfidAChip=kr,exports.eRfidAccessControlProcedureType=Ar,exports.eRfidApplicationType=jr,exports.eRfidAuthenticationProcedureType=Mr,exports.eRfidBaudRate=Nr,exports.eRfidCertificateOrigin=Pr,exports.eRfidCertificateType=Fr,exports.eRfidDataFileType=P,exports.eRfidErrorCodes=Or,exports.eRfidFileIdType=Qc,exports.eRfidOriginalGraphicsType=$c,exports.eRfidPasswordType=Lr,exports.eRfidPresence=Ir,exports.eRfidStatusField=Zw,exports.eRfidTerminalAuthorizationRequirement=qc,exports.eRfidTerminalType=Rr,exports.eRfidType=zr,exports.eRfidVisualFieldType=el,exports.eScenario=Br,exports.eSecurityCriticalFlag=dr,exports.eSecurityFeatureType=Vr,exports.eSource=Hr,exports.eSummaryStatusField=Qw,exports.eTextPostProcessing=Ur,exports.eVisualFieldType=F,exports.getAuthenticityArray=Vc,exports.getAuthenticityCheckList=uw,exports.getDetailedStatus=iT,exports.getDocumentBarcodes=xw,exports.getDocumentDateOfExpiry=xT,exports.getDocumentIdentification=lT,exports.getDocumentImages=Tw,exports.getDocumentImagesSync=Ew,exports.getDocumentIssuingStateName=ST,exports.getDocumentNumber=CT,exports.getDocumentOwnerAge=wT,exports.getDocumentOwnerNationalityCode=TT,exports.getDocumentOwnerSex=ET,exports.getGraphicField=Aw,exports.getGraphicFieldSync=jw,exports.getIRVisibilityFlagArray=Uc,exports.getImageDimensions=gx,exports.getImageQuality=Iw,exports.getLightsArray=Gc,exports.getNameSurname=fT,exports.getPortraitsComparison=gw,exports.getRfidCertificatesData=zw,exports.getRfidChecksSummary=Bw,exports.getRfidDataGroupsStatus=Gw,exports.getRfidDataGroupsStatusList=Yw,exports.getRfidTerminalAuthorizationRequirements=Jc,exports.getTextData=_T,exports.getTextFieldValue=bT,exports.isAuthenticity=Hc,exports.isIRVisibilityFlag=Wc,exports.isLights=Kc,exports.isObject=hx,exports.isRfidTerminalAuthorizationRequirement=Yc,exports.mergeDetailedStatus=oT,exports.mergeStatuses=UC,exports.transformToAuthenticityCheckResultList=ud,exports.transformToContainerList=cm,exports.transformToRAuthenticityCheckList=iw;
13
+ - This validation runs before any file with validation decorator was parsed by NodeJS.`);var i=this.validatorOptions?this.validatorOptions.groups:void 0,a=this.validatorOptions&&this.validatorOptions.strictGroups||!1,o=this.validatorOptions&&this.validatorOptions.always||!1,s=this.validatorOptions?.forbidUnknownValues===void 0||this.validatorOptions.forbidUnknownValues!==!1,c=this.metadataStorage.getTargetValidationMetadatas(e.constructor,t,o,a,i),l=this.metadataStorage.groupByPropertyName(c);if(s&&!c.length){var u=new dl;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(u.target=e),u.value=void 0,u.property=void 0,u.children=[],u.constraints={unknownValue:`an unknown value was passed to the validate function`},n.push(u);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,l,n),Object.keys(l).forEach(function(t){var i=e[t],a=l[t].filter(function(e){return e.type===fl.IS_DEFINED}),o=l[t].filter(function(e){return e.type!==fl.IS_DEFINED&&e.type!==fl.WHITELIST});i instanceof Promise&&o.find(function(e){return e.type===fl.PROMISE_VALIDATION})?r.awaitingPromises.push(i.then(function(i){r.performValidations(e,i,t,a,o,n)})):r.performValidations(e,i,t,a,o,n)})},e.prototype.whitelist=function(e,t,n){var r=this,i=[];Object.keys(e).forEach(function(e){(!t[e]||t[e].length===0)&&i.push(e)}),i.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?i.forEach(function(t){var i,a=r.generateValidationError(e,e[t],t);a.constraints=(i={},i[fl.WHITELIST]=`property ${t} should not exist`,i),a.children=void 0,n.push(a)}):i.forEach(function(t){return delete e[t]}))},e.prototype.stripEmptyErrors=function(e){var t=this;return e.filter(function(e){if(e.children&&=t.stripEmptyErrors(e.children),Object.keys(e.constraints).length===0){if(e.children.length===0)return!1;delete e.constraints}return!0})},e.prototype.performValidations=function(e,t,n,r,i,a){var o=i.filter(function(e){return e.type===fl.CUSTOM_VALIDATION}),s=i.filter(function(e){return e.type===fl.NESTED_VALIDATION}),c=i.filter(function(e){return e.type===fl.CONDITIONAL_VALIDATION}),l=this.generateValidationError(e,t,n);a.push(l),this.conditionalValidations(e,t,c)&&(this.customValidations(e,t,r,l),this.mapContexts(e,t,r,l),!(t===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(t===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||t==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(e,t,o,l),this.nestedValidations(t,s,l),this.mapContexts(e,t,i,l),this.mapContexts(e,t,o,l))))},e.prototype.generateValidationError=function(e,t,n){var r=new dl;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(r.target=e),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(r.value=t),r.property=n,r.children=[],r.constraints={},r},e.prototype.conditionalValidations=function(e,t,n){return n.map(function(n){return n.constraints[0](e,t)}).reduce(function(e,t){return e&&t},!0)},e.prototype.customValidations=function(e,t,n,r){var i=this;n.forEach(function(n){var a=function(){return{targetName:e.constructor?e.constructor.name:void 0,property:n.propertyName,object:e,value:t,constraints:n.constraints}};n.validateIf&&!n.validateIf(e,t)||i.metadataStorage.getTargetValidatorConstraints(n.constraintCls).forEach(function(o){if(!(o.async&&i.ignoreAsyncValidations)&&!(i.validatorOptions&&i.validatorOptions.stopAtFirstError&&Object.keys(r.constraints||{}).length>0)){var s=a();if(!n.each||!(Array.isArray(t)||t instanceof Set||t instanceof Map)){var c=o.instance.validate(t,s);if(al(c)){var l=c.then(function(a){if(!a){var s=hl(i.createValidationError(e,t,n,o),2),c=s[0],l=s[1];r.constraints[c]=l,n.context&&(r.contexts||={},r.contexts[c]=Object.assign(r.contexts[c]||{},n.context))}});i.awaitingPromises.push(l)}else if(!c){var u=hl(i.createValidationError(e,t,n,o),2),d=u[0],f=u[1];r.constraints[d]=f}return}var p=rl(t).map(function(e){return o.instance.validate(e,s)});if(p.some(function(e){return al(e)})){var m=p.map(function(e){return al(e)?e:Promise.resolve(e)}),h=Promise.all(m).then(function(a){if(!a.every(function(e){return e})){var s=hl(i.createValidationError(e,t,n,o),2),c=s[0],l=s[1];r.constraints[c]=l,n.context&&(r.contexts||={},r.contexts[c]=Object.assign(r.contexts[c]||{},n.context))}});i.awaitingPromises.push(h);return}if(!p.every(function(e){return e})){var g=hl(i.createValidationError(e,t,n,o),2),d=g[0],f=g[1];r.constraints[d]=f}}})})},e.prototype.nestedValidations=function(e,t,n){var r=this;e!==void 0&&t.forEach(function(i){if(!(i.type!==fl.NESTED_VALIDATION&&i.type!==fl.PROMISE_VALIDATION)&&!(r.validatorOptions&&r.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0))if(Array.isArray(e)||e instanceof Set||e instanceof Map)(e instanceof Set?Array.from(e):e).forEach(function(i,a){r.performValidations(e,i,a.toString(),[],t,n.children)});else if(e instanceof Object){var a=typeof i.target==`string`?i.target:i.target.name;r.execute(e,a,n.children)}else{var o=hl(r.createValidationError(i.target,e,i),2),s=o[0],c=o[1];n.constraints[s]=c}})},e.prototype.mapContexts=function(e,t,n,r){var i=this;return n.forEach(function(e){if(e.context){var t=void 0;e.type===fl.CUSTOM_VALIDATION&&(t=i.metadataStorage.getTargetValidatorConstraints(e.constraintCls)[0]);var n=i.getConstraintType(e,t);r.constraints[n]&&(r.contexts||={},r.contexts[n]=Object.assign(r.contexts[n]||{},e.context))}})},e.prototype.createValidationError=function(e,t,n,r){var i=e.constructor?e.constructor.name:void 0,a=this.getConstraintType(n,r),o={targetName:i,property:n.propertyName,object:e,value:t,constraints:n.constraints},s=n.message||``;return!n.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&r&&r.instance.defaultMessage instanceof Function&&(s=r.instance.defaultMessage(o)),[a,ml.replaceMessageSpecialTokens(s,o)]},e.prototype.getConstraintType=function(e,t){return t&&t.name?t.name:e.type},e}(),_l=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},vl=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},yl=function(){function e(){}return e.prototype.validate=function(e,t,n){return this.coreValidate(e,t,n)},e.prototype.validateOrReject=function(e,t,n){return _l(this,void 0,void 0,function(){var r;return vl(this,function(i){switch(i.label){case 0:return[4,this.coreValidate(e,t,n)];case 1:return r=i.sent(),r.length?[2,Promise.reject(r)]:[2]}})})},e.prototype.validateSync=function(e,t,n){var r=typeof e==`string`?t:e,i=typeof e==`string`?n:t,a=typeof e==`string`?e:void 0,o=new gl(this,i);o.ignoreAsyncValidations=!0;var s=[];return o.execute(r,a,s),o.stripEmptyErrors(s)},e.prototype.coreValidate=function(e,t,n){var r=typeof e==`string`?t:e,i=typeof e==`string`?n:t,a=typeof e==`string`?e:void 0,o=new gl(this,i),s=[];return o.execute(r,a,s),Promise.all(o.awaitingPromises).then(function(){return o.stripEmptyErrors(s)})},e}(),bl=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}()),xl,Sl;function Cl(e){if(xl)try{var t=xl.get(e);if(t||!Sl||!Sl.fallback)return t}catch(e){if(!Sl||!Sl.fallbackOnErrors)throw e}return bl.get(e)}var wl=function(){function e(e,t,n){n===void 0&&(n=!1),this.target=e,this.name=t,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return Cl(this.target)},enumerable:!1,configurable:!0}),e}();function Tl(e){var t;if(e.validator instanceof Function){if(t=e.validator,Cl(ll).getTargetValidatorConstraints(e.validator).length>1)throw`More than one implementation of ValidatorConstraintInterface found for validator on: ${e.target.name}:${e.propertyName}`}else{var n=e.validator;t=function(){function e(){}return e.prototype.validate=function(e,t){return n.validate(e,t)},e.prototype.defaultMessage=function(e){return n.defaultMessage?n.defaultMessage(e):``},e}(),ul().addConstraintMetadata(new wl(t,e.name,e.async))}var r={type:e.name&&fl.isValid(e.name)?e.name:fl.CUSTOM_VALIDATION,name:e.name,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};ul().addValidationMetadata(new tl(r))}function El(e,t){return function(n){return e(t&&t.each?`each value in `:``,n)}}function Dl(e,t){return function(n,r){Tl({name:e.name,target:n.constructor,propertyName:r,options:t,constraints:e.constraints,validator:e.validator})}}var Ol=fl.IS_DEFINED;function kl(e){return e!=null}function I(e){return Dl({name:Ol,validator:{validate:function(e){return kl(e)},defaultMessage:El(function(e){return e+`$property should not be null or undefined`},e)}},e)}var Al=`isOptional`;function L(e){return function(t,n){var r={type:fl.CONDITIONAL_VALIDATION,name:Al,target:t.constructor,propertyName:n,constraints:[function(e,t){return e[n]!==null&&e[n]!==void 0}],validationOptions:e};ul().addValidationMetadata(new tl(r))}}var jl=function(){return jl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},jl.apply(this,arguments)};function R(e){var t=jl({},e),n=t.each?`each value in `:``;return t.message=t.message||n+`nested property $property must be either object or array`,function(e,n){var r={type:fl.NESTED_VALIDATION,target:e.constructor,propertyName:n,validationOptions:t};ul().addValidationMetadata(new tl(r))}}var Ml=o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(e){if(e==null)throw TypeError(`Expected a string but received a ${e}`);if(e.constructor.name!==`String`)throw TypeError(`Expected a string but received a ${e.constructor.name}`)}t.exports=e.default,t.exports.default=e.default})),Nl=o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}t.exports=e.default,t.exports.default=e.default})),Pl=`isIn`;function Fl(e,t){return Array.isArray(t)&&t.some(function(t){return t===e})}function Il(e,t){return Dl({name:Pl,constraints:[e],validator:{validate:function(e,t){return Fl(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must be one of the following values: $constraint1`},t)}},t)}function Ll(e,t){return typeof e==`number`&&typeof t==`number`&&e>=t}function Rl(e,t){return Dl({name:`min`,constraints:[e],validator:{validate:function(e,t){return Ll(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must not be less than $constraint1`},t)}},t)}var zl=c(o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var n=i(Ml()),r=i(Nl());function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Za-z0-9+/]+={0,2}$/,o=/^[A-Za-z0-9+/]+$/,s=/^[A-Za-z0-9_-]+={0,2}$/,c=/^[A-Za-z0-9_-]+$/;function l(e,t){var i;if((0,n.default)(e),t=(0,r.default)(t,{urlSafe:!1,padding:!((i=t)!=null&&i.urlSafe)}),e===``)return!0;if(t.padding&&e.length%4!=0)return!1;var l=t.urlSafe?t.padding?s:c:t.padding?a:o;return(!t.padding||e.length%4==0)&&l.test(e)}t.exports=e.default,t.exports.default=e.default}))()),Bl=`isBase64`;function Vl(e,t){return typeof e==`string`&&(0,zl.default)(e,t)}function Hl(e,t){return Dl({name:Bl,constraints:[e],validator:{validate:function(e,t){return Vl(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must be base64 encoded`},t)}},t)}var Ul=c(o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var n=r(Ml());function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}function a(e,t){(0,n.default)(e);var r,a;i(t)===`object`?(r=t.min||0,a=t.max):(r=arguments[1]||0,a=arguments[2]);var o=e.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],c=e.length-o.length-s.length,l=c>=r&&(a===void 0||c<=a);return l&&Array.isArray(t?.discreteLengths)?t.discreteLengths.some(function(e){return e===c}):l}t.exports=e.default,t.exports.default=e.default}))()),Wl=`maxLength`;function Gl(e,t){return typeof e==`string`&&(0,Ul.default)(e,{min:0,max:t})}function Kl(e,t){return Dl({name:Wl,constraints:[e],validator:{validate:function(e,t){return Gl(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must be shorter than or equal to $constraint1 characters`},t)}},t)}var ql=`isBoolean`;function Jl(e){return e instanceof Boolean||typeof e==`boolean`}function z(e){return Dl({name:ql,validator:{validate:function(e,t){return Jl(e)},defaultMessage:El(function(e){return e+`$property must be a boolean value`},e)}},e)}var Yl=`isNumber`;function Xl(e,t){if(t===void 0&&(t={}),typeof e!=`number`)return!1;if(e===1/0||e===-1/0)return!!t.allowInfinity;if(Number.isNaN(e))return!!t.allowNaN;if(t.maxDecimalPlaces!==void 0){var n=0;if(e%1!=0&&(n=e.toString().split(`.`)[1].length),n>t.maxDecimalPlaces)return!1}return Number.isFinite(e)}function B(e,t){return e===void 0&&(e={}),Dl({name:Yl,constraints:[e],validator:{validate:function(e,t){return Xl(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must be a number conforming to the specified constraints`},t)}},t)}var Zl=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Ql=`isEnum`;function $l(e,t){return Object.keys(t).map(function(e){return t[e]}).includes(e)}function eu(e){return Object.entries(e).filter(function(e){var t=Zl(e,2),n=t[0];return t[1],isNaN(parseInt(n))}).map(function(e){var t=Zl(e,2);return t[0],t[1]})}function V(e,t){return Dl({name:Ql,constraints:[e,eu(e)],validator:{validate:function(e,t){return $l(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must be one of the following values: $constraint2`},t)}},t)}var tu=`isInt`;function nu(e){return typeof e==`number`&&Number.isInteger(e)}function H(e){return Dl({name:tu,validator:{validate:function(e,t){return nu(e)},defaultMessage:El(function(e){return e+`$property must be an integer number`},e)}},e)}var ru=`isString`;function iu(e){return e instanceof String||typeof e==`string`}function U(e){return Dl({name:ru,validator:{validate:function(e,t){return iu(e)},defaultMessage:El(function(e){return e+`$property must be a string`},e)}},e)}var au=`isArray`;function ou(e){return Array.isArray(e)}function W(e){return Dl({name:au,validator:{validate:function(e,t){return ou(e)},defaultMessage:El(function(e){return e+`$property must be an array`},e)}},e)}var su=`arrayMinSize`;function cu(e,t){return Array.isArray(e)&&e.length>=t}function lu(e,t){return Dl({name:su,constraints:[e],validator:{validate:function(e,t){return cu(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must contain at least $constraint1 elements`},t)}},t)}var uu=`arrayMaxSize`;function du(e,t){return Array.isArray(e)&&e.length<=t}function fu(e,t){return Dl({name:uu,constraints:[e],validator:{validate:function(e,t){return du(e,t?.constraints[0])},defaultMessage:El(function(e){return e+`$property must contain no more than $constraint1 elements`},t)}},t)}function G(e,t,n){return typeof e==`string`?Cl(yl).validateSync(e,t,n):Cl(yl).validateSync(e,t)}function K(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function q(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var pu=class{};q([I(),B(),K(`design:type`,Number)],pu.prototype,`x`,void 0),q([L(),B(),K(`design:type`,Number)],pu.prototype,`y`,void 0);var mu;(function(e){e[e.PLAIN_TO_CLASS=0]=`PLAIN_TO_CLASS`,e[e.CLASS_TO_PLAIN=1]=`CLASS_TO_PLAIN`,e[e.CLASS_TO_CLASS=2]=`CLASS_TO_CLASS`})(mu||={});var hu=new(function(){function e(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return e.prototype.addTypeMetadata=function(e){this._typeMetadatas.has(e.target)||this._typeMetadatas.set(e.target,new Map),this._typeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.addTransformMetadata=function(e){this._transformMetadatas.has(e.target)||this._transformMetadatas.set(e.target,new Map),this._transformMetadatas.get(e.target).has(e.propertyName)||this._transformMetadatas.get(e.target).set(e.propertyName,[]),this._transformMetadatas.get(e.target).get(e.propertyName).push(e)},e.prototype.addExposeMetadata=function(e){this._exposeMetadatas.has(e.target)||this._exposeMetadatas.set(e.target,new Map),this._exposeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.addExcludeMetadata=function(e){this._excludeMetadatas.has(e.target)||this._excludeMetadatas.set(e.target,new Map),this._excludeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.findTransformMetadatas=function(e,t,n){return this.findMetadatas(this._transformMetadatas,e,t).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?n===mu.CLASS_TO_CLASS||n===mu.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?n===mu.CLASS_TO_PLAIN:!0})},e.prototype.findExcludeMetadata=function(e,t){return this.findMetadata(this._excludeMetadatas,e,t)},e.prototype.findExposeMetadata=function(e,t){return this.findMetadata(this._exposeMetadatas,e,t)},e.prototype.findExposeMetadataByCustomName=function(e,t){return this.getExposedMetadatas(e).find(function(e){return e.options&&e.options.name===t})},e.prototype.findTypeMetadata=function(e,t){return this.findMetadata(this._typeMetadatas,e,t)},e.prototype.getStrategy=function(e){var t=this._excludeMetadatas.get(e),n=t&&t.get(void 0),r=this._exposeMetadatas.get(e),i=r&&r.get(void 0);return n&&i||!n&&!i?`none`:n?`excludeAll`:`exposeAll`},e.prototype.getExposedMetadatas=function(e){return this.getMetadata(this._exposeMetadatas,e)},e.prototype.getExcludedMetadatas=function(e){return this.getMetadata(this._excludeMetadatas,e)},e.prototype.getExposedProperties=function(e,t){return this.getExposedMetadatas(e).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?t===mu.CLASS_TO_CLASS||t===mu.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?t===mu.CLASS_TO_PLAIN:!0}).map(function(e){return e.propertyName})},e.prototype.getExcludedProperties=function(e,t){return this.getExcludedMetadatas(e).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?t===mu.CLASS_TO_CLASS||t===mu.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?t===mu.CLASS_TO_PLAIN:!0}).map(function(e){return e.propertyName})},e.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},e.prototype.getMetadata=function(e,t){var n=e.get(t),r;n&&(r=Array.from(n.values()).filter(function(e){return e.propertyName!==void 0}));for(var i=[],a=0,o=this.getAncestors(t);a<o.length;a++){var s=o[a],c=e.get(s);if(c){var l=Array.from(c.values()).filter(function(e){return e.propertyName!==void 0});i.push.apply(i,l)}}return i.concat(r||[])},e.prototype.findMetadata=function(e,t,n){var r=e.get(t);if(r){var i=r.get(n);if(i)return i}for(var a=0,o=this.getAncestors(t);a<o.length;a++){var s=o[a],c=e.get(s);if(c){var l=c.get(n);if(l)return l}}},e.prototype.findMetadatas=function(e,t,n){var r=e.get(t),i;r&&(i=r.get(n));for(var a=[],o=0,s=this.getAncestors(t);o<s.length;o++){var c=s[o],l=e.get(c);l&&l.has(n)&&a.push.apply(a,l.get(n))}return a.slice().reverse().concat((i||[]).slice().reverse())},e.prototype.getAncestors=function(e){if(!e)return[];if(!this._ancestorsMap.has(e)){for(var t=[],n=Object.getPrototypeOf(e.prototype.constructor);n.prototype!==void 0;n=Object.getPrototypeOf(n.prototype.constructor))t.push(n);this._ancestorsMap.set(e,t)}return this._ancestorsMap.get(e)},e}());function gu(){if(typeof globalThis<`u`)return globalThis;if(typeof global<`u`)return global;if(typeof window<`u`)return window;if(typeof self<`u`)return self}function _u(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}var vu=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};function yu(e){var t=new e;return!(t instanceof Set)&&!(`push`in t)?[]:t}var bu=function(){function e(e,t){this.transformationType=e,this.options=t,this.recursionStack=new Set}return e.prototype.transform=function(e,t,n,r,i,a){var o=this;if(a===void 0&&(a=0),Array.isArray(t)||t instanceof Set){var s=r&&this.transformationType===mu.PLAIN_TO_CLASS?yu(r):[];return t.forEach(function(t,r){var i=e?e[r]:void 0;if(!o.options.enableCircularCheck||!o.isCircular(t)){var c=void 0;if(typeof n!=`function`&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(o.transformationType===mu.PLAIN_TO_CLASS){c=n.options.discriminator.subTypes.find(function(e){return e.name===t[n.options.discriminator.property]});var l={newObject:s,object:t,property:void 0},u=n.typeFunction(l);c=c===void 0?u:c.value,n.options.keepDiscriminatorProperty||delete t[n.options.discriminator.property]}o.transformationType===mu.CLASS_TO_CLASS&&(c=t.constructor),o.transformationType===mu.CLASS_TO_PLAIN&&(t[n.options.discriminator.property]=n.options.discriminator.subTypes.find(function(e){return e.value===t.constructor}).name)}else c=n;var d=o.transform(i,t,c,void 0,t instanceof Map,a+1);s instanceof Set?s.add(d):s.push(d)}else o.transformationType===mu.CLASS_TO_CLASS&&(s instanceof Set?s.add(t):s.push(t))}),s}else if(n===String&&!i)return t==null?t:String(t);else if(n===Number&&!i)return t==null?t:Number(t);else if(n===Boolean&&!i)return t==null?t:!!t;else if((n===Date||t instanceof Date)&&!i)return t instanceof Date?new Date(t.valueOf()):t==null?t:new Date(t);else if(gu().Buffer&&(n===Buffer||t instanceof Buffer)&&!i)return t==null?t:Buffer.from(t);else if(_u(t)&&!i)return new Promise(function(e,r){t.then(function(t){return e(o.transform(void 0,t,n,void 0,void 0,a+1))},r)});else if(!i&&typeof t==`object`&&t&&typeof t.then==`function`)return t;else if(typeof t==`object`&&t){!n&&t.constructor!==Object&&(!Array.isArray(t)&&t.constructor===Array||(n=t.constructor)),!n&&e&&(n=e.constructor),this.options.enableCircularCheck&&this.recursionStack.add(t);var c=this.getKeys(n,t,i),l=e||{};!e&&(this.transformationType===mu.PLAIN_TO_CLASS||this.transformationType===mu.CLASS_TO_CLASS)&&(l=i?new Map:n?new n:{});for(var u=function(r){if(r===`__proto__`||r===`constructor`)return`continue`;var o=r,s=r,c=r;if(!d.options.ignoreDecorators&&n){if(d.transformationType===mu.PLAIN_TO_CLASS){var u=hu.findExposeMetadataByCustomName(n,r);u&&(c=u.propertyName,s=u.propertyName)}else if(d.transformationType===mu.CLASS_TO_PLAIN||d.transformationType===mu.CLASS_TO_CLASS){var u=hu.findExposeMetadata(n,r);u&&u.options&&u.options.name&&(s=u.options.name)}}var f=void 0;f=d.transformationType===mu.PLAIN_TO_CLASS?t[o]:t instanceof Map?t.get(o):t[o]instanceof Function?t[o]():t[o];var p=void 0,m=f instanceof Map;if(n&&i)p=n;else if(n){var h=hu.findTypeMetadata(n,c);if(h){var g={newObject:l,object:t,property:c},_=h.typeFunction?h.typeFunction(g):h.reflectedType;h.options&&h.options.discriminator&&h.options.discriminator.property&&h.options.discriminator.subTypes?t[o]instanceof Array?p=h:(d.transformationType===mu.PLAIN_TO_CLASS&&(p=h.options.discriminator.subTypes.find(function(e){if(f&&f instanceof Object&&h.options.discriminator.property in f)return e.name===f[h.options.discriminator.property]}),p=p===void 0?_:p.value,h.options.keepDiscriminatorProperty||f&&f instanceof Object&&h.options.discriminator.property in f&&delete f[h.options.discriminator.property]),d.transformationType===mu.CLASS_TO_CLASS&&(p=f.constructor),d.transformationType===mu.CLASS_TO_PLAIN&&f&&(f[h.options.discriminator.property]=h.options.discriminator.subTypes.find(function(e){return e.value===f.constructor}).name)):p=_,m||=h.reflectedType===Map}else if(d.options.targetMaps)d.options.targetMaps.filter(function(e){return e.target===n&&!!e.properties[c]}).forEach(function(e){return p=e.properties[c]});else if(d.options.enableImplicitConversion&&d.transformationType===mu.PLAIN_TO_CLASS){var v=Reflect.getMetadata(`design:type`,n.prototype,c);v&&(p=v)}}var y=Array.isArray(t[o])?d.getReflectedType(n,c):void 0,b=e?e[o]:void 0;if(l.constructor.prototype){var x=Object.getOwnPropertyDescriptor(l.constructor.prototype,s);if((d.transformationType===mu.PLAIN_TO_CLASS||d.transformationType===mu.CLASS_TO_CLASS)&&(x&&!x.set||l[s]instanceof Function))return`continue`}if(!d.options.enableCircularCheck||!d.isCircular(f)){var S=d.transformationType===mu.PLAIN_TO_CLASS?s:r,C=void 0;d.transformationType===mu.CLASS_TO_PLAIN?(C=t[S],C=d.applyCustomTransformations(C,n,S,t,d.transformationType),C=t[S]===C?f:C,C=d.transform(b,C,p,y,m,a+1)):f===void 0&&d.options.exposeDefaultValues?C=l[s]:(C=d.transform(b,f,p,y,m,a+1),C=d.applyCustomTransformations(C,n,S,t,d.transformationType)),(C!==void 0||d.options.exposeUnsetFields)&&(l instanceof Map?l.set(s,C):l[s]=C)}else if(d.transformationType===mu.CLASS_TO_CLASS){var C=f;C=d.applyCustomTransformations(C,n,r,t,d.transformationType),(C!==void 0||d.options.exposeUnsetFields)&&(l instanceof Map?l.set(s,C):l[s]=C)}},d=this,f=0,p=c;f<p.length;f++){var m=p[f];u(m)}return this.options.enableCircularCheck&&this.recursionStack.delete(t),l}else return t},e.prototype.applyCustomTransformations=function(e,t,n,r,i){var a=this,o=hu.findTransformMetadatas(t,n,this.transformationType);return this.options.version!==void 0&&(o=o.filter(function(e){return e.options?a.checkVersion(e.options.since,e.options.until):!0})),o=this.options.groups&&this.options.groups.length?o.filter(function(e){return e.options?a.checkGroups(e.options.groups):!0}):o.filter(function(e){return!e.options||!e.options.groups||!e.options.groups.length}),o.forEach(function(t){e=t.transformFn({value:e,key:n,obj:r,type:i,options:a.options})}),e},e.prototype.isCircular=function(e){return this.recursionStack.has(e)},e.prototype.getReflectedType=function(e,t){if(e){var n=hu.findTypeMetadata(e,t);return n?n.reflectedType:void 0}},e.prototype.getKeys=function(e,t,n){var r=this,i=hu.getStrategy(e);i===`none`&&(i=this.options.strategy||`exposeAll`);var a=[];if((i===`exposeAll`||n)&&(a=t instanceof Map?Array.from(t.keys()):Object.keys(t)),n)return a;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&e){var o=hu.getExposedProperties(e,this.transformationType),s=hu.getExcludedProperties(e,this.transformationType);a=vu(vu([],o,!0),s,!0)}if(!this.options.ignoreDecorators&&e){var o=hu.getExposedProperties(e,this.transformationType);this.transformationType===mu.PLAIN_TO_CLASS&&(o=o.map(function(t){var n=hu.findExposeMetadata(e,t);return n&&n.options&&n.options.name?n.options.name:t})),a=this.options.excludeExtraneousValues?o:a.concat(o);var c=hu.getExcludedProperties(e,this.transformationType);c.length>0&&(a=a.filter(function(e){return!c.includes(e)})),this.options.version!==void 0&&(a=a.filter(function(t){var n=hu.findExposeMetadata(e,t);return!n||!n.options?!0:r.checkVersion(n.options.since,n.options.until)})),a=this.options.groups&&this.options.groups.length?a.filter(function(t){var n=hu.findExposeMetadata(e,t);return!n||!n.options?!0:r.checkGroups(n.options.groups)}):a.filter(function(t){var n=hu.findExposeMetadata(e,t);return!n||!n.options||!n.options.groups||!n.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(a=a.filter(function(e){return r.options.excludePrefixes.every(function(t){return e.substr(0,t.length)!==t})})),a=a.filter(function(e,t,n){return n.indexOf(e)===t}),a},e.prototype.checkVersion=function(e,t){var n=!0;return n&&e&&(n=this.options.version>=e),n&&t&&(n=this.options.version<t),n},e.prototype.checkGroups=function(e){return e?this.options.groups.some(function(t){return e.includes(t)}):!0},e}(),xu={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0},Su=function(){return Su=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Su.apply(this,arguments)},Cu=function(){function e(){}return e.prototype.instanceToPlain=function(e,t){return new bu(mu.CLASS_TO_PLAIN,Su(Su({},xu),t)).transform(void 0,e,void 0,void 0,void 0,void 0)},e.prototype.classToPlainFromExist=function(e,t,n){return new bu(mu.CLASS_TO_PLAIN,Su(Su({},xu),n)).transform(t,e,void 0,void 0,void 0,void 0)},e.prototype.plainToInstance=function(e,t,n){return new bu(mu.PLAIN_TO_CLASS,Su(Su({},xu),n)).transform(void 0,t,e,void 0,void 0,void 0)},e.prototype.plainToClassFromExist=function(e,t,n){return new bu(mu.PLAIN_TO_CLASS,Su(Su({},xu),n)).transform(e,t,void 0,void 0,void 0,void 0)},e.prototype.instanceToInstance=function(e,t){return new bu(mu.CLASS_TO_CLASS,Su(Su({},xu),t)).transform(void 0,e,void 0,void 0,void 0,void 0)},e.prototype.classToClassFromExist=function(e,t,n){return new bu(mu.CLASS_TO_CLASS,Su(Su({},xu),n)).transform(t,e,void 0,void 0,void 0,void 0)},e.prototype.serialize=function(e,t){return JSON.stringify(this.instanceToPlain(e,t))},e.prototype.deserialize=function(e,t,n){var r=JSON.parse(t);return this.plainToInstance(e,r,n)},e.prototype.deserializeArray=function(e,t,n){var r=JSON.parse(t);return this.plainToInstance(e,r,n)},e}();function J(e){return e===void 0&&(e={}),function(t,n){hu.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}function wu(e,t){return t===void 0&&(t={}),function(n,r){hu.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}function Y(e,t){return t===void 0&&(t={}),function(n,r){var i=Reflect.getMetadata(`design:type`,n,r);hu.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}var Tu=new Cu;function Eu(e,t){return Tu.instanceToPlain(e,t)}function X(e,t,n){return Tu.plainToInstance(e,t,n)}function Du(e,t,n){return Tu.plainToInstance(e,t,n)}var Ou=class{};q([I(),W(),R({each:!0}),Y(()=>pu),K(`design:type`,Array)],Ou.prototype,`PointsList`,void 0);var ku=class{};q([I(),H(),K(`design:type`,Number)],ku.prototype,`Count`,void 0),q([I(),R({each:!0}),W(),Y(()=>Z),K(`design:type`,Array)],ku.prototype,`List`,void 0),q([I(),R({each:!0}),W(),Y(()=>Ou),K(`design:type`,Array)],ku.prototype,`Points`,void 0);var Au=class{};q([I(),V(fr),K(`design:type`,fr===void 0?Object:fr)],Au.prototype,`docFormat`,void 0),q([I(),B(),K(`design:type`,Number)],Au.prototype,`Angle`,void 0),q([I(),B(),K(`design:type`,Number)],Au.prototype,`Width`,void 0),q([I(),B(),K(`design:type`,Number)],Au.prototype,`Height`,void 0),q([I(),R(),Y(()=>pu),K(`design:type`,pu===void 0?Object:pu)],Au.prototype,`Center`,void 0),q([I(),R(),Y(()=>pu),K(`design:type`,pu===void 0?Object:pu)],Au.prototype,`LeftBottom`,void 0),q([I(),R(),Y(()=>pu),K(`design:type`,pu===void 0?Object:pu)],Au.prototype,`LeftTop`,void 0),q([I(),R(),Y(()=>pu),K(`design:type`,pu===void 0?Object:pu)],Au.prototype,`RightBottom`,void 0),q([I(),R(),Y(()=>pu),K(`design:type`,pu===void 0?Object:pu)],Au.prototype,`RightTop`,void 0),q([I(),H(),K(`design:type`,Number)],Au.prototype,`Dpi`,void 0),q([L(),H(),K(`design:type`,Number)],Au.prototype,`Inverse`,void 0),q([L(),H(),K(`design:type`,Number)],Au.prototype,`ObjArea`,void 0),q([L(),H(),K(`design:type`,Number)],Au.prototype,`ObjIntAngleDev`,void 0),q([L(),H(),K(`design:type`,Number)],Au.prototype,`PerspectiveTr`,void 0),q([L(),H(),K(`design:type`,Number)],Au.prototype,`ResultStatus`,void 0);var ju=class{};q([U(),L(),Hl(),K(`design:type`,String)],ju.prototype,`image`,void 0),q([U(),L(),K(`design:type`,String)],ju.prototype,`format`,void 0);var Z=class{};q([I(),B(),K(`design:type`,Number)],Z.prototype,`left`,void 0),q([I(),B(),K(`design:type`,Number)],Z.prototype,`top`,void 0),q([I(),B(),K(`design:type`,Number)],Z.prototype,`right`,void 0),q([I(),B(),K(`design:type`,Number)],Z.prototype,`bottom`,void 0);var Mu=class{};q([I(),B(),K(`design:type`,Number)],Mu.prototype,`dg`,void 0),q([I(),B(),K(`design:type`,Number)],Mu.prototype,`dgTag`,void 0),q([I(),B(),K(`design:type`,Number)],Mu.prototype,`tagEntry`,void 0),q([I(),B(),K(`design:type`,Number)],Mu.prototype,`entryView`,void 0);var Nu=class{};q([U(),Kl(4),I(),K(`design:type`,String)],Nu.prototype,`ICAOCode`,void 0),q([L(),H(),K(`design:type`,Number)],Nu.prototype,`Count`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],Nu.prototype,`List`,void 0),q([I(),V(pr),K(`design:type`,pr===void 0?Object:pr)],Nu.prototype,`dType`,void 0),q([I(),V(fr),K(`design:type`,fr===void 0?Object:fr)],Nu.prototype,`dFormat`,void 0),q([I(),z(),K(`design:type`,Boolean)],Nu.prototype,`dMRZ`,void 0),q([L(),U(),K(`design:type`,String)],Nu.prototype,`dDescription`,void 0),q([L(),U(),K(`design:type`,String)],Nu.prototype,`dYear`,void 0),q([I(),U(),K(`design:type`,String)],Nu.prototype,`dCountryName`,void 0),q([L(),U(),K(`design:type`,String)],Nu.prototype,`dStateCode`,void 0),q([L(),U(),K(`design:type`,String)],Nu.prototype,`dStateName`,void 0),q([I(),z(),K(`design:type`,Boolean)],Nu.prototype,`isDeprecated`,void 0);var Pu=class{static{this.getNecessaryLights=e=>Gc(typeof e==`number`?e:e.NecessaryLights)}static{this.getCheckAuthenticity=e=>Vc(typeof e==`number`?e:e.CheckAuthenticity)}static{this.getAuthenticityNecessaryLights=e=>Gc(typeof e==`number`?e:e.AuthenticityNecessaryLights)}};q([L(),U(),K(`design:type`,String)],Pu.prototype,`DocumentName`,void 0),q([I(),H(),K(`design:type`,Number)],Pu.prototype,`ID`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`P`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`Rotated180`,void 0),q([I(),V(Ir),K(`design:type`,Ir===void 0?Object:Ir)],Pu.prototype,`RFID_Presence`,void 0),q([L(),R(),Y(()=>Nu),K(`design:type`,Nu===void 0?Object:Nu)],Pu.prototype,`FDSIDList`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`NecessaryLights`,void 0),q([I(),H(),K(`design:type`,Number)],Pu.prototype,`CheckAuthenticity`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`UVExp`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`AuthenticityNecessaryLights`,void 0),q([I(),B(),K(`design:type`,Number)],Pu.prototype,`OVIExp`,void 0),q([L(),H(),K(`design:type`,Number)],Pu.prototype,`RotationAngle`,void 0);var Fu=class{};q([I(),B(),K(`design:type`,Number)],Fu.prototype,`Type`,void 0),q([I(),B(),K(`design:type`,Number)],Fu.prototype,`Status`,void 0),q([I(),H(),K(`design:type`,Number)],Fu.prototype,`Length`,void 0),q([I(),K(`design:type`,Object)],Fu.prototype,`Data`,void 0);var Iu=class{};q([L(),B(),K(`design:type`,Number)],Iu.prototype,`Type`,void 0),q([L(),B(),K(`design:type`,Number)],Iu.prototype,`Status`,void 0),q([L(),U(),K(`design:type`,String)],Iu.prototype,`Format`,void 0),q([I(),U(),K(`design:type`,String)],Iu.prototype,`Data`,void 0);var Lu=class{};q([I(),U(),K(`design:type`,String)],Lu.prototype,`Type`,void 0),q([I(),Y(()=>Iu),R(),K(`design:type`,Iu===void 0?Object:Iu)],Lu.prototype,`Value`,void 0);var Ru=class{};q([I(),Hl(),U(),K(`design:type`,String)],Ru.prototype,`Data`,void 0),q([I(),Y(()=>Iu),R(),K(`design:type`,Iu===void 0?Object:Iu)],Ru.prototype,`FriendlyName`,void 0),q([I(),Y(()=>Lu),R({each:!0}),W(),K(`design:type`,Array)],Ru.prototype,`Attributes`,void 0);var zu=class{static{this.getLightingScheme=e=>Gc(typeof e==`number`?e:e?.light??br.OFF)}};q([L(),H(),K(`design:type`,Number)],zu.prototype,`buf_length`,void 0),q([L(),V(br),K(`design:type`,br===void 0?Object:br)],zu.prototype,`light`,void 0),q([L(),H(),K(`design:type`,Number)],zu.prototype,`list_idx`,void 0),q([L(),H(),K(`design:type`,Number)],zu.prototype,`page_idx`,void 0),q([I(),V(N),K(`design:type`,N===void 0?Object:N)],zu.prototype,`result_type`,void 0);var Bu=class{};q([I(),V(j),K(`design:type`,j===void 0?Object:j)],Bu.prototype,`Type`,void 0),q([L(),V(M),K(`design:type`,M===void 0?Object:M)],Bu.prototype,`ElementResult`,void 0),q([L(),V(ur),K(`design:type`,ur===void 0?Object:ur)],Bu.prototype,`ElementDiagnose`,void 0),q([L(),H(),K(`design:type`,Number)],Bu.prototype,`PercentValue`,void 0);var Vu,Hu=class extends Bu{static{Vu=this}static{this.fromPlain=e=>X(Vu,e)}static{this.validate=e=>{let t=G(Vu.fromPlain(e));if(t.length)throw new DT(`FibersTypeElement validation error: the data received does not match model structure!`,t);return!0}}};q([I(),H(),K(`design:type`,Number)],Hu.prototype,`RectCount`,void 0),q([I(),H(),K(`design:type`,Number)],Hu.prototype,`ExpectedCount`,void 0),q([L(),V(br),K(`design:type`,br===void 0?Object:br)],Hu.prototype,`LightValue`,void 0),q([L(),H(),K(`design:type`,Number)],Hu.prototype,`LightDisp`,void 0),q([I(),W(),R({each:!0}),Y(()=>Z),K(`design:type`,Array)],Hu.prototype,`RectArray`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Hu.prototype,`Width`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Hu.prototype,`Length`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Hu.prototype,`Area`,void 0),q([I(),W(),fu(3),lu(3),H({each:!0}),K(`design:type`,Array)],Hu.prototype,`ColorValues`,void 0),q([I(),Il([j.UV_FIBERS]),V(j),K(`design:type`,j===void 0||j.UV_FIBERS===void 0?Object:j.UV_FIBERS)],Hu.prototype,`Type`,void 0),Hu=Vu=q([J()],Hu);var Uu=class{};q([I(),V(j),K(`design:type`,j===void 0?Object:j)],Uu.prototype,`Type`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Uu.prototype,`Result`,void 0),q([L(),H(),K(`design:type`,Number)],Uu.prototype,`Count`,void 0),q([I(),W(),K(`design:type`,Array)],Uu.prototype,`List`,void 0);var Wu,Gu=[j.UV_FIBERS],Ku=class extends Uu{static{Wu=this}static{this.fromPlain=e=>X(Wu,e)}static{this.isBelongs=e=>{let t=e;return Gu.includes(t?.Type)}}};q([I(),Il(Gu),V(j),K(`design:type`,Object)],Ku.prototype,`Type`,void 0),q([I(),W(),R({each:!0}),Y(()=>Hu),K(`design:type`,Array)],Ku.prototype,`List`,void 0),Ku=Wu=q([J()],Ku);var qu=class extends Bu{};q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],qu.prototype,`ElementType`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],qu.prototype,`LightIndex`,void 0),q([L(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],qu.prototype,`Area`,void 0),q([I(),R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],qu.prototype,`Image`,void 0),q([I(),R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],qu.prototype,`EtalonImage`,void 0),q([L(),R(),Y(()=>ku),K(`design:type`,ku===void 0?Object:ku)],qu.prototype,`AreaList`,void 0),q([L(),B(),K(`design:type`,Number)],qu.prototype,`ElementID`,void 0),q([I(),Il([j.IMAGE_PATTERN,j.IR_VISIBILITY,j.OVI,j.PORTRAIT_COMPARISON,j.KINEGRAM,j.LETTER_SCREEN,j.HOLOGRAM_DETECTION,j.FINGERPRINT_COMPARISON,j.LIVENESS]),V(j),K(`design:type`,Object)],qu.prototype,`Type`,void 0);var Ju,Yu=[j.IMAGE_PATTERN,j.IR_VISIBILITY,j.OVI,j.PORTRAIT_COMPARISON,j.KINEGRAM,j.LETTER_SCREEN,j.HOLOGRAM_DETECTION,j.FINGERPRINT_COMPARISON,j.LIVENESS],Xu=class extends Uu{static{Ju=this}static{this.fromPlain=e=>X(Ju,e)}static{this.isBelongs=e=>Yu.includes(e?.Type)}};q([I(),Il(Yu),V(j),K(`design:type`,Object)],Xu.prototype,`Type`,void 0),q([I(),W(),R({each:!0}),Y(()=>qu),K(`design:type`,Array)],Xu.prototype,`List`,void 0),Xu=Ju=q([J()],Xu);var Zu=class extends Bu{};q([I(),V(dr),K(`design:type`,dr===void 0?Object:dr)],Zu.prototype,`CriticalFlag`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],Zu.prototype,`LightType`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Zu.prototype,`FieldRect`,void 0),q([I(),B(),K(`design:type`,Number)],Zu.prototype,`EtalonResultType`,void 0),q([I(),V(F),K(`design:type`,F===void 0?Object:F)],Zu.prototype,`EtalonFieldType`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],Zu.prototype,`EtalonLightType`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Zu.prototype,`EtalonFieldRect`,void 0),q([I(),U(),K(`design:type`,String)],Zu.prototype,`SecurityTextResultOCR`,void 0),q([I(),U(),K(`design:type`,String)],Zu.prototype,`EtalonResultOCR`,void 0),q([L(),K(`design:type`,Number)],Zu.prototype,`Reserved1`,void 0),q([L(),K(`design:type`,Number)],Zu.prototype,`Reserved2`,void 0),q([I(),Il([j.OCR_SECURITY_TEXT,j.ENCRYPTED_IPI]),V(j),K(`design:type`,Object)],Zu.prototype,`Type`,void 0);var Qu,$u=[j.OCR_SECURITY_TEXT,j.ENCRYPTED_IPI],ed=class extends Uu{static{Qu=this}static{this.fromPlain=e=>X(Qu,e)}static{this.isBelongs=e=>$u.includes(e.Type)}};q([I(),Il($u),V(j),K(`design:type`,Object)],ed.prototype,`Type`,void 0),q([I(),W(),R({each:!0}),Y(()=>Zu),K(`design:type`,Array)],ed.prototype,`List`,void 0),ed=Qu=q([J()],ed);var td=class{};q([I(),H(),K(`design:type`,Number)],td.prototype,`Count`,void 0),q([I(),W(),R({each:!0}),Y(()=>ju),K(`design:type`,Array)],td.prototype,`Images`,void 0);var nd=class extends Bu{};q([I(),V(br),K(`design:type`,br===void 0?Object:br)],nd.prototype,`LightIndex`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],nd.prototype,`Area`,void 0),q([I(),R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],nd.prototype,`SourceImage`,void 0),q([I(),R(),Y(()=>td),K(`design:type`,td===void 0?Object:td)],nd.prototype,`ResultImages`,void 0),q([L(),H(),K(`design:type`,Number)],nd.prototype,`FieldTypesCount`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],nd.prototype,`FieldTypesList`,void 0),q([L(),H(),K(`design:type`,Number)],nd.prototype,`Step`,void 0),q([L(),H(),K(`design:type`,Number)],nd.prototype,`Angle`,void 0),q([L(),H(),K(`design:type`,Number)],nd.prototype,`Reserved3`,void 0),q([I(),Il([j.IPI]),V(j),K(`design:type`,j===void 0||j.IPI===void 0?Object:j.IPI)],nd.prototype,`Type`,void 0);var rd,id=[j.IPI],ad=class extends Uu{static{rd=this}static{this.fromPlain=e=>X(rd,e)}static{this.isBelongs=e=>id.includes(e?.Type)}};q([I(),Il(id),V(j),K(`design:type`,Object)],ad.prototype,`Type`,void 0),q([I(),W(),R({each:!0}),Y(()=>nd),K(`design:type`,Array)],ad.prototype,`List`,void 0),ad=rd=q([J()],ad);var od=class extends Bu{};q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],od.prototype,`ElementType`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],od.prototype,`ElementRect`,void 0),q([I(),V(Gr),K(`design:type`,Gr===void 0?Object:Gr)],od.prototype,`Visibility`,void 0),q([I(),V(dr),K(`design:type`,dr===void 0?Object:dr)],od.prototype,`CriticalFlag`,void 0),q([L(),R(),Y(()=>ku),K(`design:type`,ku===void 0?Object:ku)],od.prototype,`AreaList`,void 0),q([L(),H(),K(`design:type`,Number)],od.prototype,`Reserved2`,void 0),q([I(),Il([j.UV_LUMINESCENCE,j.IR_B900,j.AXIAL_PROTECTION,j.PHOTO_EMBED_TYPE,j.HOLOGRAMS,j.PHOTO_AREA,j.BARCODE_FORMAT_CHECK,j.EXTENDED_OCR_CHECK,j.EXTENDED_MRZ_CHECK,j.PROPERTY]),V(j),K(`design:type`,Object)],od.prototype,`Type`,void 0);var sd,cd=[j.UV_LUMINESCENCE,j.IR_B900,j.AXIAL_PROTECTION,j.PHOTO_EMBED_TYPE,j.HOLOGRAMS,j.PHOTO_AREA,j.BARCODE_FORMAT_CHECK,j.EXTENDED_OCR_CHECK,j.EXTENDED_MRZ_CHECK,j.PROPERTY],ld=class extends Uu{static{sd=this}static{this.fromPlain=e=>X(sd,e)}static{this.isBelongs=e=>cd.includes(e?.Type)}};q([I(),Il(cd),V(j),K(`design:type`,Object)],ld.prototype,`Type`,void 0),q([I(),W(),R({each:!0}),Y(()=>od),K(`design:type`,Array)],ld.prototype,`List`,void 0),ld=sd=q([J()],ld);var ud=e=>{let t=[];return e.forEach(e=>{if(!hx(e)||!(`Type`in e))return;let{Type:n}=e;switch(n){case j.UV_FIBERS:t.push(Ku.fromPlain(e));break;case j.IMAGE_PATTERN:case j.IR_VISIBILITY:case j.OVI:case j.PORTRAIT_COMPARISON:case j.KINEGRAM:case j.LETTER_SCREEN:case j.HOLOGRAM_DETECTION:case j.FINGERPRINT_COMPARISON:case j.LIVENESS:t.push(Xu.fromPlain(e));break;case j.OCR_SECURITY_TEXT:case j.ENCRYPTED_IPI:t.push(ed.fromPlain(e));break;case j.IPI:t.push(ad.fromPlain(e));break;case j.UV_LUMINESCENCE:case j.IR_B900:case j.AXIAL_PROTECTION:case j.PHOTO_EMBED_TYPE:case j.HOLOGRAMS:case j.PHOTO_AREA:case j.BARCODE_FORMAT_CHECK:case j.EXTENDED_OCR_CHECK:case j.EXTENDED_MRZ_CHECK:case j.PROPERTY:t.push(ld.fromPlain(e));break}}),t},dd=class{};q([I(),H(),K(`design:type`,Number)],dd.prototype,`Count`,void 0),q([R({each:!0}),wu(({obj:e})=>ud(e.List),{toClassOnly:!0}),W(),K(`design:type`,Array)],dd.prototype,`List`,void 0);var fd,pd=[N.AUTHENTICITY,N.FINGERPRINT_COMPARISON,N.PORTRAIT_COMPARISON],md=class extends zu{static{fd=this}static{this.fromPlain=e=>X(fd,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>pd.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(fd.fromPlain(e));if(t.length)throw new DT(`AuthenticityContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>dd),K(`design:type`,dd===void 0?Object:dd)],md.prototype,`AuthenticityCheckList`,void 0),q([I(),V(N),Il(pd),K(`design:type`,Object)],md.prototype,`result_type`,void 0),md=fd=q([J()],md);var hd,gd=[N.DOCUMENT_POSITION],_d=class extends zu{static{hd=this}static{this.fromPlain=e=>X(hd,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!Array.isArray(n))return[];let r=n.List.filter(e=>gd.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(hd.fromPlain(e));if(t.length)throw new DT(`BoundsResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Au),K(`design:type`,Au===void 0?Object:Au)],_d.prototype,`DocumentPosition`,void 0),q([I(),V(N),Il(gd),K(`design:type`,Object)],_d.prototype,`result_type`,void 0),_d=hd=q([J()],_d);var vd,yd=[N.BARCODE_POSITION],bd=class extends zu{static{vd=this}static{this.fromPlain=e=>X(vd,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!Array.isArray(n))return[];let r=n.List.filter(e=>yd.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(vd.fromPlain(e));if(t.length)throw new DT(`BarcodeBoundsResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Au),K(`design:type`,Au===void 0?Object:Au)],bd.prototype,`BarcodePosition`,void 0),q([I(),V(N),Il(yd),K(`design:type`,Object)],bd.prototype,`result_type`,void 0),bd=vd=q([J()],bd);var xd=class{};q([I(),U(),K(`design:type`,String)],xd.prototype,`mData`,void 0),q([I(),B(),K(`design:type`,Number)],xd.prototype,`mLength`,void 0),q([L(),K(`design:type`,Number)],xd.prototype,`mReserved1`,void 0),q([L(),K(`design:type`,Number)],xd.prototype,`mReserver2`,void 0),q([I(),V(cr),K(`design:type`,cr===void 0?Object:cr)],xd.prototype,`mType`,void 0);var Sd=class{};q([I(),B(),K(`design:type`,Number)],Sd.prototype,`Angle`,void 0),q([I(),B(),K(`design:type`,Number)],Sd.prototype,`bcColumn`,void 0),q([I(),B(),K(`design:type`,Number)],Sd.prototype,`bcErrorLevel`,void 0),q([I(),B(),K(`design:type`,Number)],Sd.prototype,`bcRow`,void 0),q([L(),B(),K(`design:type`,Number)],Sd.prototype,`minX`,void 0),q([L(),B(),K(`design:type`,Number)],Sd.prototype,`minY`,void 0);var Cd=class{};q([I(),B(),K(`design:type`,Number)],Cd.prototype,`bcAngle_DETECT`,void 0),q([I(),B(),K(`design:type`,Number)],Cd.prototype,`bcCodeResult`,void 0),q([I(),B(),K(`design:type`,Number)],Cd.prototype,`bcCountModule`,void 0),q([I(),W(),R({each:!0}),Y(()=>xd),K(`design:type`,Array)],Cd.prototype,`bcDataModule`,void 0),q([L(),R(),Y(()=>Sd),K(`design:type`,Sd===void 0?Object:Sd)],Cd.prototype,`bcPDF417INFO`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Cd.prototype,`bcROI_DETECT`,void 0),q([L(),B(),K(`design:type`,Number)],Cd.prototype,`bcTextDecoderTypes`,void 0),q([L(),V(F),K(`design:type`,F===void 0?Object:F)],Cd.prototype,`bcTextFieldType`,void 0),q([I(),V(lr),K(`design:type`,lr===void 0?Object:lr)],Cd.prototype,`bcType_DECODE`,void 0),q([I(),B(),K(`design:type`,Number)],Cd.prototype,`bcType_DETECT`,void 0);var wd=class{};q([I(),H(),K(`design:type`,Number)],wd.prototype,`nFields`,void 0),q([I(),R({each:!0}),Y(()=>Cd),W(),K(`design:type`,Array)],wd.prototype,`pArrayFields`,void 0);var Td,Ed=[N.BARCODES],Dd=class extends zu{static{Td=this}static{this.fromPlain=e=>X(Td,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>Ed.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Td.fromPlain(e));if(t.length)throw new DT(`DocBarCodeInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>wd),K(`design:type`,wd===void 0?Object:wd)],Dd.prototype,`DocBarCodeInfo`,void 0),q([I(),V(N),Il(Ed),K(`design:type`,Object)],Dd.prototype,`result_type`,void 0),Dd=Td=q([J()],Dd);var Od=class{};q([I(),H(),K(`design:type`,Number)],Od.prototype,`Type`,void 0),q([I(),V(fr),K(`design:type`,fr===void 0?Object:fr)],Od.prototype,`DocumentID`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`DocumentType`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`State`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Holder`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`DocumentNumber`,void 0),q([I(),H(),K(`design:type`,Number)],Od.prototype,`CheckDigitDocumentNumber`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Nationality`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Birthday`,void 0),q([I(),H(),K(`design:type`,Number)],Od.prototype,`CheckDigitBirthday`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Sex`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`ExpiryDate`,void 0),q([I(),H(),K(`design:type`,Number)],Od.prototype,`CheckDigitExpiryDate`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`OptionalData`,void 0),q([I(),H(),K(`design:type`,Number)],Od.prototype,`CheckDigitOptionalData`,void 0),q([I(),H(),K(`design:type`,Number)],Od.prototype,`CheckDigitComposite`,void 0);var kd=class{};q([I(),V(Ar),K(`design:type`,Ar===void 0?Object:Ar)],kd.prototype,`Type`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],kd.prototype,`Status`,void 0),q([L(),H(),K(`design:type`,Number)],kd.prototype,`ActiveOptionIdx`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],kd.prototype,`Notifications`,void 0),q([L(),W(),K(`design:type`,Array)],kd.prototype,`AccessControlOptions`,void 0);var Ad=class{};q([I(),U(),K(`design:type`,String)],Ad.prototype,`AccessKey`,void 0),q([I(),V(Lr),K(`design:type`,Lr===void 0?Object:Lr)],Ad.prototype,`KeyType`,void 0),q([I(),V(Ar),K(`design:type`,Ar===void 0?Object:Ar)],Ad.prototype,`AccessType`,void 0),q([I(),z(),K(`design:type`,Boolean)],Ad.prototype,`CheckFullKeyMatching`,void 0);var jd=class{};q([L(),V(Er,{each:!0}),K(`design:type`,Array)],jd.prototype,`ParsingNotifications`,void 0);var Md=class{};q([I(),U(),K(`design:type`,String)],Md.prototype,`Data`,void 0),q([I(),B(),K(`design:type`,Number)],Md.prototype,`Length`,void 0);var Nd=class{};q([L(),Y(()=>Md),R(),K(`design:type`,Md===void 0?Object:Md)],Nd.prototype,`Certificate_Data`,void 0);var Pd=class{};q([U(),L(),K(`design:type`,String)],Pd.prototype,`FileID`,void 0),q([I(),V(P),K(`design:type`,P===void 0?Object:P)],Pd.prototype,`Type`,void 0),q([L(),Y(()=>Fu),R(),K(`design:type`,Fu===void 0?Object:Fu)],Pd.prototype,`FileData`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Pd.prototype,`ReadingStatus`,void 0),q([L(),H(),K(`design:type`,Number)],Pd.prototype,`ReadingTime`,void 0),q([L(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Pd.prototype,`PA_Status`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],Pd.prototype,`Notifications`,void 0),q([L(),V(F,{each:!0}),K(`design:type`,Array)],Pd.prototype,`DocFields_Text`,void 0),q([L(),V(hr,{each:!0}),K(`design:type`,Array)],Pd.prototype,`DocFields_Graphics`,void 0),q([L(),V(hr,{each:!0}),K(`design:type`,Array)],Pd.prototype,`DocFields_Originals`,void 0),q([L(),Y(()=>jd),R(),K(`design:type`,jd===void 0?Object:jd)],Pd.prototype,`ParsedData`,void 0),q([L(),Y(()=>Nd),R(),K(`design:type`,Nd===void 0?Object:Nd)],Pd.prototype,`SecurityObject_Certificates`,void 0);var Fd=class{};q([I(),V(jr),K(`design:type`,jr===void 0?Object:jr)],Fd.prototype,`Type`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Fd.prototype,`Status`,void 0),q([I(),U(),K(`design:type`,String)],Fd.prototype,`ApplicationID`,void 0),q([I(),U(),K(`design:type`,String)],Fd.prototype,`Version`,void 0),q([I(),U(),K(`design:type`,String)],Fd.prototype,`UnicodeVersion`,void 0),q([I(),U(),K(`design:type`,String)],Fd.prototype,`DataHashAlgorithm`,void 0),q([I(),Y(()=>Pd),R({each:!0}),K(`design:type`,Array)],Fd.prototype,`Files`,void 0);var Id=class{};q([I(),V(zr),K(`design:type`,zr===void 0?Object:zr)],Id.prototype,`RFID_Type`,void 0),q([I(),U(),K(`design:type`,String)],Id.prototype,`Baudrate1`,void 0),q([I(),U(),K(`design:type`,String)],Id.prototype,`Baudrate2`,void 0),q([I(),z(),K(`design:type`,Boolean)],Id.prototype,`Support_4`,void 0),q([I(),V(kr),K(`design:type`,kr===void 0?Object:kr)],Id.prototype,`ChipType_A`,void 0),q([I(),z(),K(`design:type`,Boolean)],Id.prototype,`Support_Mifare`,void 0),q([I(),H(),K(`design:type`,Number)],Id.prototype,`MifareMemory`,void 0),q([I(),U(),K(`design:type`,String)],Id.prototype,`UID`,void 0),q([I(),K(`design:type`,Object)],Id.prototype,`ATQ_A`,void 0),q([I(),K(`design:type`,Object)],Id.prototype,`SAK`,void 0),q([I(),K(`design:type`,Object)],Id.prototype,`ATQ_B`,void 0),q([I(),V(Nr),K(`design:type`,Nr===void 0?Object:Nr)],Id.prototype,`BitRateS`,void 0),q([I(),V(Nr),K(`design:type`,Nr===void 0?Object:Nr)],Id.prototype,`BitRateR`,void 0),q([I(),U(),K(`design:type`,String)],Id.prototype,`ATR`,void 0);var Ld=class{};q([I(),U(),K(`design:type`,String)],Ld.prototype,`Type`,void 0),q([I(),U(),Hl(),K(`design:type`,String)],Ld.prototype,`Data`,void 0);var Rd=class{};q([I(),U(),K(`design:type`,String)],Rd.prototype,`Type`,void 0),q([I(),U(),Hl(),K(`design:type`,String)],Rd.prototype,`Data`,void 0);var zd=class{};q([I(),Y(()=>Iu),R(),K(`design:type`,Iu===void 0?Object:Iu)],zd.prototype,`NotBefore`,void 0),q([I(),Y(()=>Iu),R(),K(`design:type`,Iu===void 0?Object:Iu)],zd.prototype,`NotAfter`,void 0);var Bd=class{};q([I(),B(),K(`design:type`,Number)],Bd.prototype,`Version`,void 0),q([I(),Hl(),U(),K(`design:type`,String)],Bd.prototype,`SerialNumber`,void 0),q([I(),U(),K(`design:type`,String)],Bd.prototype,`SignatureAlgorithm`,void 0),q([I(),Y(()=>Ru),R(),K(`design:type`,Ru===void 0?Object:Ru)],Bd.prototype,`Issuer`,void 0),q([I(),Y(()=>zd),R(),K(`design:type`,zd===void 0?Object:zd)],Bd.prototype,`Validity`,void 0),q([I(),Y(()=>Ru),R(),K(`design:type`,Ru===void 0?Object:Ru)],Bd.prototype,`Subject`,void 0),q([I(),U(),K(`design:type`,String)],Bd.prototype,`SubjectPKAlgorithm`,void 0),q([I(),Y(()=>Rd),R({each:!0}),W(),K(`design:type`,Array)],Bd.prototype,`Extensions`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Bd.prototype,`Notifications`,void 0),q([I(),V(Pr),K(`design:type`,Pr===void 0?Object:Pr)],Bd.prototype,`Origin`,void 0),q([I(),V(Fr),K(`design:type`,Fr===void 0?Object:Fr)],Bd.prototype,`Type`,void 0),q([I(),Y(()=>Iu),R(),K(`design:type`,Iu===void 0?Object:Iu)],Bd.prototype,`FileName`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Bd.prototype,`PA_Status`,void 0);var Vd=class{};q([I(),B(),K(`design:type`,Number)],Vd.prototype,`Version`,void 0),q([I(),Y(()=>Ru),R(),K(`design:type`,Ru===void 0?Object:Ru)],Vd.prototype,`Issuer`,void 0),q([I(),Y(()=>Fu),R(),K(`design:type`,Fu===void 0?Object:Fu)],Vd.prototype,`SerialNumber`,void 0),q([I(),Y(()=>Fu),R(),K(`design:type`,Fu===void 0?Object:Fu)],Vd.prototype,`SubjectKeyIdentifier`,void 0),q([I(),U(),K(`design:type`,String)],Vd.prototype,`DigestAlgorithm`,void 0),q([I(),Y(()=>Ld),R({each:!0}),W(),K(`design:type`,Array)],Vd.prototype,`SignedAttributes`,void 0),q([I(),U(),K(`design:type`,String)],Vd.prototype,`SignatureAlgorithm`,void 0),q([I(),Y(()=>Fu),R(),K(`design:type`,Fu===void 0?Object:Fu)],Vd.prototype,`Signature`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Vd.prototype,`PA_Status`,void 0),q([I(),Y(()=>Bd),R({each:!0}),W(),K(`design:type`,Array)],Vd.prototype,`CertificateChain`,void 0),q([I(),U(),Hl(),K(`design:type`,String)],Vd.prototype,`DataToHash`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Vd.prototype,`Notifications`,void 0);var Hd=class{};q([I(),B(),K(`design:type`,Number)],Hd.prototype,`Version`,void 0),q([I(),U(),K(`design:type`,String)],Hd.prototype,`ObjectType`,void 0),q([I(),H(),K(`design:type`,Number)],Hd.prototype,`FileReference`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Hd.prototype,`Notifications`,void 0),q([I(),Y(()=>Vd),W(),K(`design:type`,Array)],Hd.prototype,`SignerInfos`,void 0);var Ud=class{static{this.getAuthReq=e=>Jc(typeof e==`number`?e:e.AuthReq)}static{this.getAuthReq2=e=>Jc(typeof e==`number`?e:e.AuthReq2)}};q([I(),V(Rr),K(`design:type`,Rr===void 0?Object:Rr)],Ud.prototype,`TermType`,void 0),q([I(),H(),K(`design:type`,Number)],Ud.prototype,`AuthReq`,void 0),q([I(),H(),K(`design:type`,Number)],Ud.prototype,`AuthReq2`,void 0);var Wd=class{};q([L(),z(),K(`design:type`,Boolean)],Wd.prototype,`VirtualMode`,void 0),q([L(),U(),K(`design:type`,String)],Wd.prototype,`SDKVersion`,void 0),q([L(),U(),K(`design:type`,String)],Wd.prototype,`DriverVersion`,void 0),q([L(),U(),K(`design:type`,String)],Wd.prototype,`FirmwareVersion`,void 0),q([I(),R({each:!0}),Y(()=>Fd),K(`design:type`,Array)],Wd.prototype,`Applications`,void 0),q([I(),R({each:!0}),Y(()=>kd),K(`design:type`,Array)],Wd.prototype,`AccessControls`,void 0),q([I(),R(),Y(()=>Id),K(`design:type`,Id===void 0?Object:Id)],Wd.prototype,`CardProperties`,void 0),q([I(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Wd.prototype,`ExtLeSupport`,void 0),q([I(),H(),K(`design:type`,Number)],Wd.prototype,`ProcessTime`,void 0),q([I(),H(),K(`design:type`,Number)],Wd.prototype,`TotalBytesSent`,void 0),q([I(),H(),K(`design:type`,Number)],Wd.prototype,`TotalBytesReceived`,void 0),q([I(),R(),Y(()=>Ad),K(`design:type`,Ad===void 0?Object:Ad)],Wd.prototype,`Session_key`,void 0),q([I(),R(),Y(()=>Ud),K(`design:type`,Ud===void 0?Object:Ud)],Wd.prototype,`Session_terminal`,void 0),q([I(),V(Mr),K(`design:type`,Mr===void 0?Object:Mr)],Wd.prototype,`Session_procedure`,void 0),q([I(),R({each:!0}),Y(()=>Hd),K(`design:type`,Array)],Wd.prototype,`SecurityObjects`,void 0);var Gd=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`overallStatus`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`docType`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`expiry`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`imageQA`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`mrz`,void 0),q([I(),H(),K(`design:type`,Number)],Gd.prototype,`pagesCount`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`security`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Gd.prototype,`text`,void 0),q([L(),H(),K(`design:type`,Number)],Gd.prototype,`vds`,void 0);var Kd=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`overallStatus`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`AA`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`BAC`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`CA`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`PA`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`PACE`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kd.prototype,`TA`,void 0);var qd=class{};q([I(),H(),K(`design:type`,Number)],qd.prototype,`threshold`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qd.prototype,`overThreshold`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qd.prototype,`over18`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qd.prototype,`over21`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qd.prototype,`over25`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qd.prototype,`over65`,void 0);var Jd=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`overallStatus`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`optical`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`portrait`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`rfid`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`stopList`,void 0),q([L(),R(),Y(()=>Kd),K(`design:type`,Kd===void 0?Object:Kd)],Jd.prototype,`detailsRFID`,void 0),q([I(),R(),Y(()=>Gd),K(`design:type`,Gd===void 0?Object:Gd)],Jd.prototype,`detailsOptical`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`age`,void 0),q([I(),R(),Y(()=>qd),K(`design:type`,qd===void 0?Object:qd)],Jd.prototype,`detailsAge`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Jd.prototype,`mDL`,void 0);var Yd,Xd=[N.STATUS],Zd=class extends zu{static{Yd=this}static{this.fromPlain=e=>X(Yd,e,{exposeUnsetFields:!1})}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Xd.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Yd.fromPlain(e));if(t.length)throw new DT(`StatusContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Jd),K(`design:type`,Jd===void 0?Object:Jd)],Zd.prototype,`Status`,void 0),q([I(),V(N),Il(Xd),K(`design:type`,Object)],Zd.prototype,`result_type`,void 0),Zd=Yd=q([J()],Zd);var Q=class{};q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_Authentication_Info`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_MIFARE_Data_Validity`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_MIFARE_Data`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_EF_COM`,void 0),q([L(),R(),Y(()=>Od),K(`design:type`,Od===void 0?Object:Od)],Q.prototype,`RFID_DG1`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG2`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG3`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG4`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG5`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG6`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG7`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG8`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG9`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG10`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG11`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG12`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG13`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG14`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG15`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG16`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_EF_SOD`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG1`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG2`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG3`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG4`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG5`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG6`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG7`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG8`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG9`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG10`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG11`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG12`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG13`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG14`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG15`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG16`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG17`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG18`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG19`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG20`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG21`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_COM`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_SOD`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG1`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG2`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG3`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG4`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG5`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG6`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG7`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG8`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG9`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG10`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG11`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG12`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG13`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG14`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Visible_Digital_Seal`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Visible_Digital_Seal_NC`,void 0),q([L(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Digital_Signature`,void 0),q([L(),R(),Y(()=>Wd),K(`design:type`,Wd===void 0?Object:Wd)],Q.prototype,`RFID_Session_Data`,void 0),q([L(),R(),Y(()=>Kd),K(`design:type`,Kd===void 0?Object:Kd)],Q.prototype,`RFID_Session_Data_Status`,void 0),q([L(),W(),V(P,{each:!0}),K(`design:type`,Array)],Q.prototype,`RFID_ePassp_Directory`,void 0);var Qd=class{};q([I(),U(),K(`design:type`,String)],Qd.prototype,`Data`,void 0),q([I(),B(),K(`design:type`,Number)],Qd.prototype,`FieldType`,void 0);var $d=class{};q([L(),R(),Y(()=>Q),K(`design:type`,Q===void 0?Object:Q)],$d.prototype,`RFID_BINARY_DATA`,void 0),q([L(),R(),Y(()=>Qd),K(`design:type`,Array)],$d.prototype,`RFID_RAW_DATA`,void 0);var ef,tf=[N.RFID_BINARY_DATA,N.RFID_RAW_DATA],nf=class extends zu{static{ef=this}static{this.fromPlain=e=>X(ef,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>tf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ef.fromPlain(e));if(t.length)throw new DT(`DocBinaryInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>$d),K(`design:type`,$d===void 0?Object:$d)],nf.prototype,`TDocBinaryInfo`,void 0),q([I(),V(N),Il(tf),K(`design:type`,Object)],nf.prototype,`result_type`,void 0),nf=ef=q([J()],nf);var rf=class{};q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],rf.prototype,`FieldRect`,void 0),q([I(),V(hr),K(`design:type`,hr===void 0?Object:hr)],rf.prototype,`FieldType`,void 0),q([I(),U(),K(`design:type`,String)],rf.prototype,`FieldName`,void 0),q([I(),R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],rf.prototype,`image`,void 0);var af=class{};q([I(),R(),Y(()=>rf),K(`design:type`,Array)],af.prototype,`pArrayFields`,void 0),q([I(),H(),K(`design:type`,Number)],af.prototype,`nFields`,void 0);var of,sf=[N.VISUAL_GRAPHICS,N.BARCODE_GRAPHICS,N.LIVE_PORTRAIT,N.EXT_PORTRAIT,N.FINGERPRINTS,N.RFID_GRAPHICS],cf=class extends zu{static{of=this}static{this.fromPlain=e=>X(of,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>sf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(of.fromPlain(e));if(t.length)throw new DT(`DocGraphicsInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>af),K(`design:type`,af===void 0?Object:af)],cf.prototype,`DocGraphicsInfo`,void 0),q([I(),V(N),Il(sf),K(`design:type`,Object)],cf.prototype,`result_type`,void 0),cf=of=q([J()],cf);var lf=class{};q([I(),H(),K(`design:type`,Number)],lf.prototype,`SymbolCode`,void 0),q([I(),H(),K(`design:type`,Number)],lf.prototype,`SymbolProbability`,void 0),q([L(),H(),K(`design:type`,Number)],lf.prototype,`Class`,void 0),q([L(),H(),K(`design:type`,Number)],lf.prototype,`SubClass`,void 0);var uf=class{};q([L(),R({each:!0}),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],uf.prototype,`SymbolRect`,void 0),q([I(),H(),K(`design:type`,Number)],uf.prototype,`CandidatesCount`,void 0),q([I(),R({each:!0}),Y(()=>lf),K(`design:type`,Array)],uf.prototype,`ListOfCandidates`,void 0),q([L(),H(),K(`design:type`,Number)],uf.prototype,`BaseLineBottom`,void 0),q([L(),H(),K(`design:type`,Number)],uf.prototype,`BaseLineTop`,void 0);var df=class{};q([I(),H(),K(`design:type`,Number)],df.prototype,`SymbolsCount`,void 0),q([I(),R({each:!0}),Y(()=>uf),K(`design:type`,Array)],df.prototype,`StringResult`,void 0),q([L(),H(),K(`design:type`,Number)],df.prototype,`Buf_Length`,void 0),q([L(),U(),K(`design:type`,String)],df.prototype,`Buf_Text`,void 0),q([L(),H(),K(`design:type`,Number)],df.prototype,`Reserved`,void 0);var ff=class{};q([I(),V(F),K(`design:type`,F===void 0?Object:F)],ff.prototype,`wFieldType`,void 0),q([I(),U(),K(`design:type`,String)],ff.prototype,`FieldName`,void 0),q([I(),H(),K(`design:type`,Number)],ff.prototype,`StringsCount`,void 0),q([I(),R({each:!0}),Y(()=>df),K(`design:type`,Array)],ff.prototype,`StringsResult`,void 0),q([I(),H(),K(`design:type`,Number)],ff.prototype,`Buf_Length`,void 0),q([I(),U(),K(`design:type`,String)],ff.prototype,`Buf_Text`,void 0),q([L(),U(),K(`design:type`,String)],ff.prototype,`FieldMask`,void 0),q([L(),H(),K(`design:type`,Number)],ff.prototype,`Validity`,void 0),q([L(),H(),K(`design:type`,Number)],ff.prototype,`InComparison`,void 0),q([L(),V(yr),K(`design:type`,yr===void 0?Object:yr)],ff.prototype,`wLCID`,void 0),q([L(),H(),K(`design:type`,Number)],ff.prototype,`Reserved2`,void 0),q([L(),H(),K(`design:type`,Number)],ff.prototype,`Reserved3`,void 0);var pf=class extends ff{};q([I(),R({each:!0}),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],pf.prototype,`FieldRect`,void 0);var mf=class{};q([I(),H(),K(`design:type`,Number)],mf.prototype,`nFields`,void 0),q([I(),R({each:!0}),Y(()=>pf),K(`design:type`,Array)],mf.prototype,`pArrayFields`,void 0);var hf,gf=[N.VISUAL_TEXT,N.MRZ_TEXT,N.BARCODE_TEXT,N.MAGNETIC_STRIPE_TEXT_DATA,N.RFID_TEXT],_f=class extends zu{static{hf=this}static{this.fromPlain=e=>X(hf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>gf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(hf.fromPlain(e));if(t.length)throw new DT(`DocVisualExtendedInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>mf),K(`design:type`,mf===void 0?Object:mf)],_f.prototype,`DocVisualExtendedInfo`,void 0),q([I(),V(N),Il(gf),K(`design:type`,Object)],_f.prototype,`result_type`,void 0),_f=hf=q([J()],_f);var vf,yf=[N.ENCRYPTED_RCL],bf=class extends zu{static{vf=this}static{this.fromPlain=e=>X(vf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>yf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(vf.fromPlain(e));if(t.length)throw new DT(`EncryptedRCLContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),U(),Hl(),K(`design:type`,String)],bf.prototype,`EncryptedRCL`,void 0),q([I(),V(N),Il(yf),K(`design:type`,Object)],bf.prototype,`result_type`,void 0),bf=vf=q([J()],bf);var xf=class{};q([I(),V(gr),K(`design:type`,gr===void 0?Object:gr)],xf.prototype,`type`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],xf.prototype,`result`,void 0),q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],xf.prototype,`featureType`,void 0),q([L(),R(),Y(()=>ku),K(`design:type`,ku===void 0?Object:ku)],xf.prototype,`areas`,void 0),q([I(),B(),K(`design:type`,Number)],xf.prototype,`mean`,void 0),q([I(),B(),K(`design:type`,Number)],xf.prototype,`std_dev`,void 0),q([I(),H(),K(`design:type`,Number)],xf.prototype,`probability`,void 0);var Sf=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Sf.prototype,`result`,void 0),q([I(),R({each:!0}),Y(()=>xf),W(),K(`design:type`,Array)],Sf.prototype,`List`,void 0),q([I(),H(),K(`design:type`,Number)],Sf.prototype,`Count`,void 0);var Cf,wf=[N.IMAGE_QUALITY],Tf=class extends zu{static{Cf=this}static{this.fromPlain=e=>X(Cf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>wf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Cf.fromPlain(e));if(t.length)throw new DT(`ImageQualityCheckListContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Sf),K(`design:type`,Sf===void 0?Object:Sf)],Tf.prototype,`ImageQualityCheckList`,void 0),q([I(),V(N),Il(wf),K(`design:type`,Object)],Tf.prototype,`result_type`,void 0),Tf=Cf=q([J()],Tf);var Ef=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Ef.prototype,`source`,void 0),q([L(),U(),Hl(),K(`design:type`,String)],Ef.prototype,`value`,void 0),q([L(),U(),Hl(),K(`design:type`,String)],Ef.prototype,`originalValue`,void 0),q([L(),H(),K(`design:type`,Number)],Ef.prototype,`originalPageIndex`,void 0),q([I(),H(),K(`design:type`,Number)],Ef.prototype,`pageIndex`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],Ef.prototype,`lightIndex`,void 0),q([I(),H(),K(`design:type`,Number)],Ef.prototype,`containerType`,void 0),q([L(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Ef.prototype,`fieldRect`,void 0),q([L(),R(),Y(()=>Mu),K(`design:type`,Mu===void 0?Object:Mu)],Ef.prototype,`rfidOrigin`,void 0);var Df=class{static{this.fromContainers=(e,t)=>{let n=[];return e.forEach(e=>{let{Images:r}=e;r.fieldList.forEach(e=>{if(!t){n.push(e);return}t.includes(e.fieldType)&&n.push(e)})}),n}}};q([I(),U(),K(`design:type`,String)],Df.prototype,`fieldName`,void 0),q([I(),V(hr),K(`design:type`,hr===void 0?Object:hr)],Df.prototype,`fieldType`,void 0),q([I(),R({each:!0}),Y(()=>Ef),W(),K(`design:type`,Array)],Df.prototype,`valueList`,void 0),q([L(),H(),wu(({obj:e})=>e.valueList.length,{toClassOnly:!0}),K(`design:type`,Number)],Df.prototype,`valueCount`,void 0);var Of=class{};q([I(),B(),K(`design:type`,Number)],Of.prototype,`containerType`,void 0),q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Of.prototype,`source`,void 0);var kf=class{};q([L(),H(),wu(({obj:e})=>e.fieldList.length,{toClassOnly:!0}),K(`design:type`,Number)],kf.prototype,`fieldCount`,void 0),q([L(),H(),wu(({obj:e})=>e.availableSourceList.length,{toClassOnly:!0}),K(`design:type`,Number)],kf.prototype,`availableSourceCount`,void 0),q([I(),R({each:!0}),Y(()=>Of),W(),K(`design:type`,Array)],kf.prototype,`availableSourceList`,void 0),q([I(),R({each:!0}),Y(()=>Df),W(),K(`design:type`,Array)],kf.prototype,`fieldList`,void 0);var Af,jf=[N.IMAGES],Mf=class extends zu{static{Af=this}static{this.fromPlain=e=>X(Af,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>jf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Af.fromPlain(e));if(t.length)throw new DT(`ImagesResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>kf),K(`design:type`,kf===void 0?Object:kf)],Mf.prototype,`Images`,void 0),q([I(),V(N),Il(jf),K(`design:type`,Object)],Mf.prototype,`result_type`,void 0),Mf=Af=q([J()],Mf);var Nf,Pf=[N.LICENSE],Ff=class extends zu{static{Nf=this}static{this.fromPlain=e=>X(Nf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Pf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Nf.fromPlain(e));if(t.length)throw new DT(`LicenseContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),U(),Hl(),K(`design:type`,String)],Ff.prototype,`License`,void 0),q([I(),V(N),Il(Pf),K(`design:type`,Object)],Ff.prototype,`result_type`,void 0),Ff=Nf=q([J()],Ff);var If=class{static{this.getMRZDataVerificationResult=e=>e.Matrix[0]}static{this.getRFIDDataVerificationResult=e=>e.Matrix[1]}static{this.getVisualDataVerificationResult=e=>e.Matrix[2]}static{this.getBarcodeDataVerificationResult=e=>e.Matrix[3]}static{this.getMRZAndRFIDDataComparingResult=e=>e.Matrix[4]}static{this.getMRZAndVisualDataComparingResult=e=>e.Matrix[5]}static{this.getMRZAndBarcodeDataComparingResult=e=>e.Matrix[6]}static{this.getVisualAndRFIDDataComparingResult=e=>e.Matrix[7]}static{this.getVisualAndBarcodeDataComparingResult=e=>e.Matrix[8]}static{this.getRFIDAndBarcodeDataComparingResult=e=>e.Matrix[9]}};q([I(),V(F),K(`design:type`,F===void 0?Object:F)],If.prototype,`wFieldType`,void 0),q([L(),V(yr),K(`design:type`,yr===void 0?Object:yr)],If.prototype,`wLCID`,void 0),q([L(),U(),K(`design:type`,String)],If.prototype,`Field_MRZ`,void 0),q([L(),U(),K(`design:type`,String)],If.prototype,`Field_Visual`,void 0),q([L(),U(),K(`design:type`,String)],If.prototype,`Field_Barcode`,void 0),q([L(),U(),K(`design:type`,String)],If.prototype,`Field_RFID`,void 0),q([I(),V(Wr,{each:!0}),W(),lu(10),fu(10),K(`design:type`,Array)],If.prototype,`Matrix`,void 0);var Lf=class{};q([I(),H(),K(`design:type`,Number)],Lf.prototype,`Count`,void 0),q([I(),W(),R({each:!0}),Y(()=>If),K(`design:type`,Array)],Lf.prototype,`pFieldMaps`,void 0),q([L(),U(),K(`design:type`,String)],Lf.prototype,`pDateFormat`,void 0);var Rf,zf=[N.LEXICAL_ANALYSIS],Bf=class extends zu{static{Rf=this}static{this.fromPlain=e=>X(Rf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>zf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Rf.fromPlain(e));if(t.length)throw new DT(`ListVerifiedFieldContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Lf),K(`design:type`,Lf===void 0?Object:Lf)],Bf.prototype,`ListVerifiedFields`,void 0),q([I(),V(N),Il(zf),K(`design:type`,Object)],Bf.prototype,`result_type`,void 0),Bf=Rf=q([J()],Bf);var Vf,Hf=[N.DOCUMENT_TYPE],Uf=class extends zu{static{Vf=this}static{this.fromPlain=e=>X(Vf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Hf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Vf.fromPlain(e));if(t.length)throw new DT(`ChosenDocumentTypeContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Pu),K(`design:type`,Pu===void 0?Object:Pu)],Uf.prototype,`OneCandidate`,void 0),q([L(),U(),K(`design:type`,String)],Uf.prototype,`XML_buffer`,void 0),q([I(),V(N),Il(Hf),K(`design:type`,Object)],Uf.prototype,`result_type`,void 0),Uf=Vf=q([J()],Uf);var Wf,Gf=[N.DOCUMENT_IMAGE,N.RAW_UNCROPPED_IMAGE],Kf=class extends zu{static{Wf=this}static{this.fromPlain=e=>X(Wf,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Gf.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Wf.fromPlain(e));if(t.length)throw new DT(`RawImageContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],Kf.prototype,`RawImageContainer`,void 0),q([I(),V(N),Il(Gf),K(`design:type`,Object)],Kf.prototype,`result_type`,void 0),Kf=Wf=q([J()],Kf);var qf=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],qf.prototype,`sourceLeft`,void 0),q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],qf.prototype,`sourceRight`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],qf.prototype,`status`,void 0);var Jf=class{};q([I(),H(),K(`design:type`,Number)],Jf.prototype,`code`,void 0),q([I(),H(),K(`design:type`,Number)],Jf.prototype,`probability`,void 0),q([L(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Jf.prototype,`rect`,void 0);var Yf=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Yf.prototype,`source`,void 0),q([U(),I(),wu(({value:e})=>e?String(e):``),K(`design:type`,String)],Yf.prototype,`value`,void 0),q([L(),U(),K(`design:type`,String)],Yf.prototype,`originalValue`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Yf.prototype,`originalValidity`,void 0),q([L(),R({each:!0}),Y(()=>Jf),W(),K(`design:type`,Array)],Yf.prototype,`originalSymbols`,void 0),q([I(),H(),K(`design:type`,Number)],Yf.prototype,`pageIndex`,void 0),q([I(),B(),K(`design:type`,Number)],Yf.prototype,`probability`,void 0),q([L(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Yf.prototype,`fieldRect`,void 0),q([L(),R(),Y(()=>Mu),K(`design:type`,Mu===void 0?Object:Mu)],Yf.prototype,`rfidOrigin`,void 0),q([L(),H(),K(`design:type`,Number)],Yf.prototype,`containerType`,void 0);var Xf=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Xf.prototype,`source`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Xf.prototype,`status`,void 0);var Zf=class{static{this.fromContainers=(e,t)=>{let n=[];return e.forEach(e=>{let{Text:r}=e;r.fieldList.forEach(e=>{e.fieldType===t&&n.push(e)})}),n}}};q([I(),V(F),K(`design:type`,F===void 0?Object:F)],Zf.prototype,`fieldType`,void 0),q([I(),U(),K(`design:type`,String)],Zf.prototype,`fieldName`,void 0),q([I(),V(yr),K(`design:type`,yr===void 0?Object:yr)],Zf.prototype,`lcid`,void 0),q([L(),U(),K(`design:type`,String)],Zf.prototype,`lcidName`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Zf.prototype,`status`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Zf.prototype,`validityStatus`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Zf.prototype,`comparisonStatus`,void 0),q([I(),U(),wu(({value:e})=>e?String(e):``),K(`design:type`,String)],Zf.prototype,`value`,void 0),q([I(),R({each:!0}),Y(()=>Yf),W(),K(`design:type`,Array)],Zf.prototype,`valueList`,void 0),q([I(),R({each:!0}),Y(()=>Xf),W(),K(`design:type`,Array)],Zf.prototype,`validityList`,void 0),q([I(),R({each:!0}),Y(()=>qf),W(),K(`design:type`,Array)],Zf.prototype,`comparisonList`,void 0);var Qf=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Qf.prototype,`source`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Qf.prototype,`validityStatus`,void 0),q([L(),H(),K(`design:type`,Number)],Qf.prototype,`containerType`,void 0);var $f=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$f.prototype,`status`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$f.prototype,`validityStatus`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$f.prototype,`comparisonStatus`,void 0),q([I(),U(),K(`design:type`,String)],$f.prototype,`dateFormat`,void 0),q([I(),R({each:!0}),Y(()=>Zf),W(),K(`design:type`,Array)],$f.prototype,`fieldList`,void 0),q([I(),R({each:!0}),Y(()=>Qf),W(),K(`design:type`,Array)],$f.prototype,`availableSourceList`,void 0);var ep,tp=[N.TEXT],np=class extends zu{static{ep=this}static{this.fromPlain=e=>X(ep,e,{exposeUnsetFields:!1})}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>tp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ep.fromPlain(e));if(t.length)throw new DT(`TextResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>$f),K(`design:type`,$f===void 0?Object:$f)],np.prototype,`Text`,void 0),q([I(),V(N),Il(tp),K(`design:type`,Object)],np.prototype,`result_type`,void 0),np=ep=q([J()],np);var rp=class extends ff{};q([I(),H(),K(`design:type`,Number)],rp.prototype,`OriginDG`,void 0),q([L(),H(),K(`design:type`,Number)],rp.prototype,`OriginDGTag`,void 0),q([I(),H(),K(`design:type`,Number)],rp.prototype,`OriginTagEntry`,void 0),q([L(),H(),K(`design:type`,Number)],rp.prototype,`OriginEntryView`,void 0);var ip=class{};q([I(),H(),K(`design:type`,Number)],ip.prototype,`nFields`,void 0),q([I(),R(),Y(()=>rp),K(`design:type`,Array)],ip.prototype,`pArrayFields`,void 0);var ap,op=[N.RFID_TEXT],sp=class extends zu{static{ap=this}static{this.fromPlain=e=>X(ap,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>op.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ap.fromPlain(e));if(t.length)throw new DT(`RFIDTextDataContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>ip),K(`design:type`,ip===void 0?Object:ip)],sp.prototype,`DocVisualExtendedInfo`,void 0),q([I(),V(N),Il(op),K(`design:type`,Object)],sp.prototype,`result_type`,void 0),sp=ap=q([J()],sp);var cp,lp=[N.MRZ_POSITION],up=class extends zu{static{cp=this}static{this.fromPlain=e=>X(cp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>lp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(cp.fromPlain(e));if(t.length)throw new DT(`MRZPositionContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Au),K(`design:type`,Au===void 0?Object:Au)],up.prototype,`MrzPosition`,void 0),q([I(),V(N),Il(lp),K(`design:type`,Object)],up.prototype,`result_type`,void 0),up=cp=q([J()],up);var dp=class{};q([L(),H(),K(`design:type`,Number)],dp.prototype,`Left`,void 0),q([L(),H(),K(`design:type`,Number)],dp.prototype,`Top`,void 0),q([L(),H(),K(`design:type`,Number)],dp.prototype,`Right`,void 0),q([L(),H(),K(`design:type`,Number)],dp.prototype,`Bottom`,void 0);var fp=class{};q([I(),H(),K(`design:type`,Number)],fp.prototype,`FieldLength`,void 0),q([I(),H(),K(`design:type`,Number)],fp.prototype,`FieldPos`,void 0),q([I(),H(),K(`design:type`,Number)],fp.prototype,`FieldType`,void 0),q([I(),H(),K(`design:type`,Number)],fp.prototype,`TEST_RESULT`,void 0),q([I(),H(),K(`design:type`,Number)],fp.prototype,`ValidCheckSum`,void 0),q([I(),H(),K(`design:type`,Number)],fp.prototype,`reserved`,void 0);var pp=class{};q([I(),H(),K(`design:type`,Number)],pp.prototype,`ALIGNMENT_NEAREST_SYMBOLS`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`CONTRAST_PRINT`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`CONTRAST_SYMBOL`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`CharSymbol`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`EDGE`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`EMPTINESS`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`STAIN`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SYMBOLS_INTERVAL`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SYMBOL_PARAM`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SYMBOL_SIZE`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorAlignWithNext`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorAlignWithPrev`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorIntervWithNext`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorIntervWithPrev`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorSymbolHeight`,void 0),q([I(),H(),K(`design:type`,Number)],pp.prototype,`SizeErrorSymbolWidth`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],pp.prototype,`SymbolBounds`,void 0);var mp=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`ALIGNMENT_SYMBOLS_IN_STRING`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`CHECK_SUMS`,void 0),q([I(),R(),Y(()=>dp),K(`design:type`,dp===void 0?Object:dp)],mp.prototype,`ErrorPOSITION`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`FieldCount`,void 0),q([I(),R({each:!0}),W(),Y(()=>fp),K(`design:type`,Array)],mp.prototype,`Fields`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`STRINGS_DISTANCE`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`STRINGS_INTERVAL`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`STRING_FILLING`,void 0),q([L(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`STRINGS_POSITION`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mp.prototype,`SYMBOLS_PARAM`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`SizeError_ALIGNMENT`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`SizeError_DISTANCE`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`SizeError_INTERVAL`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`StringAngle`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],mp.prototype,`StringBorders`,void 0),q([I(),H(),K(`design:type`,Number)],mp.prototype,`SymbolsCount`,void 0),q([I(),R({each:!0}),W(),Y(()=>pp),K(`design:type`,Array)],mp.prototype,`SymbolsEstimations`,void 0);var hp=class{};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`CHECK_SUMS`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`CONTRAST_PRINT`,void 0),q([I(),H(),K(`design:type`,Number)],hp.prototype,`DOC_FORMAT`,void 0),q([I(),H(),K(`design:type`,Number)],hp.prototype,`MRZ_FORMAT`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`PRINT_POSITION`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`STAIN_MRZ`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`SYMBOLS_PARAM`,void 0),q([I(),H(),K(`design:type`,Number)],hp.prototype,`StrCount`,void 0),q([I(),R(),Y(()=>mp),K(`design:type`,Array)],hp.prototype,`Strings`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],hp.prototype,`TEXTUAL_FILLING`,void 0);var gp,_p=[N.MRZ_TEST_QUALITY],vp=class extends zu{static{gp=this}static{this.fromPlain=e=>X(gp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>_p.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(gp.fromPlain(e));if(t.length)throw new DT(`MRZTestQualityContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>hp),K(`design:type`,hp===void 0?Object:hp)],vp.prototype,`MRZTestQuality`,void 0),q([I(),V(N),Il(_p),K(`design:type`,Object)],vp.prototype,`result_type`,void 0),vp=gp=q([J()],vp);var yp=class{};q([L(),V(mr),K(`design:type`,mr===void 0?Object:mr)],yp.prototype,`RecResult`,void 0),q([L(),R({each:!0}),Y(()=>Pu),W(),K(`design:type`,Array)],yp.prototype,`Candidates`,void 0);var bp,xp=[N.DOCUMENT_TYPE_CANDIDATES],Sp=class extends zu{static{bp=this}static{this.fromPlain=e=>X(bp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>xp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(bp.fromPlain(e));if(t.length)throw new DT(`DocumentTypesCandidatesContainer validation error: the data received does not match model structure!`,t);return!0}}};q([L(),R(),Y(()=>yp),K(`design:type`,yp===void 0?Object:yp)],Sp.prototype,`CandidatesList`,void 0),q([I(),V(N),Il(xp),K(`design:type`,Object)],Sp.prototype,`result_type`,void 0),Sp=bp=q([J()],Sp);var Cp=class{};q([I(),W(),H({each:!0}),K(`design:type`,Array)],Cp.prototype,`boundingRect`,void 0);var wp=class{};q([I(),H(),K(`design:type`,Number)],wp.prototype,`length`,void 0),q([I(),H(),K(`design:type`,Number)],wp.prototype,`maxLength`,void 0),q([I(),R({each:!0}),Y(()=>Cp),W(),K(`design:type`,Array)],wp.prototype,`symbols`,void 0);var Tp=class{};q([I(),H(),K(`design:type`,Number)],Tp.prototype,`MRZFormat`,void 0),q([I(),H(),K(`design:type`,Number)],Tp.prototype,`MRZRowsNum`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Tp.prototype,`boundingQuadrangle`,void 0);var Ep,Dp=[N.MRZ_DETECTOR],Op=class extends zu{static{Ep=this}static{this.fromPlain=e=>X(Ep,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Dp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Ep.fromPlain(e));if(t.length)throw new DT(`MRZDetectorContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Tp),K(`design:type`,Tp===void 0?Object:Tp)],Op.prototype,`ResultMRZDetector`,void 0),q([I(),V(N),Il(Dp),K(`design:type`,Object)],Op.prototype,`result_type`,void 0),Op=Ep=q([J()],Op);var kp=class{};q([I(),H(),K(`design:type`,Number)],kp.prototype,`CoincidenceToPhotoArea`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],kp.prototype,`FaceRect`,void 0),q([I(),R(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],kp.prototype,`FieldRect`,void 0),q([I(),H(),K(`design:type`,Number)],kp.prototype,`GraphFieldNumber`,void 0),q([I(),R({each:!0}),Y(()=>pu),W(),K(`design:type`,Array)],kp.prototype,`Landmarks`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],kp.prototype,`LightType`,void 0),q([I(),H(),K(`design:type`,Number)],kp.prototype,`Orientation`,void 0),q([I(),H(),K(`design:type`,Number)],kp.prototype,`Probability`,void 0);var Ap=class{};q([I(),H(),K(`design:type`,Number)],Ap.prototype,`Count`,void 0),q([I(),H(),K(`design:type`,Number)],Ap.prototype,`CountFalseDetection`,void 0),q([I(),R({each:!0}),Y(()=>kp),W(),K(`design:type`,Array)],Ap.prototype,`Res`,void 0),q([L(),H(),K(`design:type`,Number)],Ap.prototype,`Reserved1`,void 0),q([L(),H(),K(`design:type`,Number)],Ap.prototype,`Reserved2`,void 0);var jp,Mp=[N.FACE_DETECTION],Np=class extends zu{static{jp=this}static{this.fromPlain=e=>X(jp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Mp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(jp.fromPlain(e));if(t.length)throw new DT(`FaceDetectionContainer validation error: the data received does not match model structure!`,t);return!0}}};q([L(),R(),Y(()=>Ap),K(`design:type`,Ap===void 0?Object:Ap)],Np.prototype,`FaceDetection`,void 0),q([I(),V(N),Il(Mp),K(`design:type`,Object)],Np.prototype,`result_type`,void 0),Np=jp=q([J()],Np);var Pp=class{};q([I(),U(),K(`design:type`,String)],Pp.prototype,`Data`,void 0),q([I(),H(),K(`design:type`,Number)],Pp.prototype,`Length`,void 0);var Fp=class{};q([I(),H(),K(`design:type`,Number)],Fp.prototype,`FieldType`,void 0),q([I(),R(),Y(()=>Pp),K(`design:type`,Pp===void 0?Object:Pp)],Fp.prototype,`File_Image`,void 0),q([I(),H(),K(`design:type`,Number)],Fp.prototype,`GraphicsType`,void 0),q([I(),H(),K(`design:type`,Number)],Fp.prototype,`OriginDG`,void 0),q([I(),H(),K(`design:type`,Number)],Fp.prototype,`OriginDGTag`,void 0),q([I(),H(),K(`design:type`,Number)],Fp.prototype,`OriginEntryView`,void 0),q([I(),H(),K(`design:type`,Number)],Fp.prototype,`OriginTagEntry`,void 0);var Ip=class{};q([I(),R({each:!0}),Y(()=>Fp),W(),K(`design:type`,Array)],Ip.prototype,`RFID_ORIGINAL_GRAPH_DATA`,void 0);var Lp,Rp=[N.RFID_ORIGINAL_GRAPHICS],zp=class extends zu{static{Lp=this}static{this.fromPlain=e=>X(Lp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Rp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Lp.fromPlain(e));if(t.length)throw new DT(`RFIDGraphicsInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Ip),K(`design:type`,Ip===void 0?Object:Ip)],zp.prototype,`TOriginalRFIDGraphicsInfo`,void 0),q([I(),V(N),Il(Rp),K(`design:type`,Object)],zp.prototype,`result_type`,void 0),zp=Lp=q([J()],zp);var Bp,Vp=[N.DTC_VC],Hp=class extends zu{static{Bp=this}static{this.fromPlain=e=>X(Bp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Vp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Bp.fromPlain(e));if(t.length)throw new DT(`ByteArrayContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),U(),K(`design:type`,String)],Hp.prototype,`ByteArray`,void 0),q([I(),V(N),Il(Vp),K(`design:type`,Object)],Hp.prototype,`result_type`,void 0),Hp=Bp=q([J()],Hp);var Up=class{};q([I(),B(),K(`design:type`,Number)],Up.prototype,`Type`,void 0),q([I(),R(),Y(()=>Fu),K(`design:type`,Fu===void 0?Object:Fu)],Up.prototype,`Data`,void 0);var Wp=class{};q([L(),U(),K(`design:type`,String)],Wp.prototype,`Certificate`,void 0),q([L(),W(),R({each:!0}),Y(()=>Bd),K(`design:type`,Array)],Wp.prototype,`CertificateChain`,void 0),q([L(),W(),R({each:!0}),Y(()=>Up),K(`design:type`,Array)],Wp.prototype,`DocFeatures`,void 0),q([L(),U(),K(`design:type`,String)],Wp.prototype,`DocIssueDate`,void 0),q([L(),B(),K(`design:type`,Number)],Wp.prototype,`DocType`,void 0),q([L(),B(),K(`design:type`,Number)],Wp.prototype,`FeatureRef`,void 0),q([L(),U(),K(`design:type`,String)],Wp.prototype,`IssuingCountry`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],Wp.prototype,`Notifications`,void 0),q([L(),R(),Y(()=>Fu),K(`design:type`,Fu===void 0?Object:Fu)],Wp.prototype,`Signature`,void 0),q([L(),U(),K(`design:type`,String)],Wp.prototype,`SignatureDate`,void 0),q([L(),U(),K(`design:type`,String)],Wp.prototype,`Signer`,void 0),q([L(),B(),K(`design:type`,Number)],Wp.prototype,`Type`,void 0),q([L(),B(),K(`design:type`,Number)],Wp.prototype,`Version`,void 0);var Gp,Kp=[N.VDS],qp=class extends zu{static{Gp=this}static{this.fromPlain=e=>X(Gp,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Kp.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Gp.fromPlain(e));if(t.length)throw new DT(`VDSContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Wp),K(`design:type`,Wp===void 0?Object:Wp)],qp.prototype,`dftVDS`,void 0),q([I(),V(N),Il(Kp),K(`design:type`,Object)],qp.prototype,`result_type`,void 0),qp=Gp=q([J()],qp);var Jp=class{};q([L(),U(),K(`design:type`,String)],Jp.prototype,`dob`,void 0),q([L(),U(),K(`design:type`,String)],Jp.prototype,`i`,void 0),q([L(),U(),K(`design:type`,String)],Jp.prototype,`n`,void 0),q([L(),U(),K(`design:type`,String)],Jp.prototype,`sex`,void 0);var Yp=class{};q([L(),U(),K(`design:type`,String)],Yp.prototype,`adm`,void 0),q([L(),U(),K(`design:type`,String)],Yp.prototype,`ctr`,void 0),q([L(),U(),K(`design:type`,String)],Yp.prototype,`dvc`,void 0),q([L(),U(),K(`design:type`,String)],Yp.prototype,`lot`,void 0),q([L(),B(),K(`design:type`,Number)],Yp.prototype,`seq`,void 0);var Xp=class{};q([L(),U(),K(`design:type`,String)],Xp.prototype,`des`,void 0),q([L(),U(),K(`design:type`,String)],Xp.prototype,`dis`,void 0),q([L(),U(),K(`design:type`,String)],Xp.prototype,`nam`,void 0),q([L(),W(),R({each:!0}),Y(()=>Yp),K(`design:type`,typeof Array>`u`?Object:Array)],Xp.prototype,`vd`,void 0);var Zp=class{};q([L(),R(),Y(()=>Jp),K(`design:type`,Jp===void 0?Object:Jp)],Zp.prototype,`pid`,void 0),q([L(),U(),K(`design:type`,String)],Zp.prototype,`uvci`,void 0),q([L(),W(),R({each:!0}),Y(()=>Xp),K(`design:type`,typeof Array>`u`?Object:Array)],Zp.prototype,`ve`,void 0);var Qp=class{};q([L(),R(),Y(()=>Fu),K(`design:type`,Fu===void 0?Object:Fu)],Qp.prototype,`Certificate`,void 0),q([L(),W(),R({each:!0}),Y(()=>Bd),K(`design:type`,Array)],Qp.prototype,`CertificateChain`,void 0),q([L(),U(),K(`design:type`,String)],Qp.prototype,`IssuingCountry`,void 0),q([L(),R(),Y(()=>Zp),K(`design:type`,Zp===void 0?Object:Zp)],Qp.prototype,`Message`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],Qp.prototype,`Notifications`,void 0),q([L(),R(),Y(()=>Fu),K(`design:type`,Fu===void 0?Object:Fu)],Qp.prototype,`Signature`,void 0),q([L(),U(),K(`design:type`,String)],Qp.prototype,`SignatureAlg`,void 0),q([L(),U(),K(`design:type`,String)],Qp.prototype,`Type`,void 0),q([L(),B(),K(`design:type`,Number)],Qp.prototype,`Version`,void 0);var $p,em=[N.VDS_NC],tm=class extends zu{static{$p=this}static{this.fromPlain=e=>X($p,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>em.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G($p.fromPlain(e));if(t.length)throw new DT(`VDSNCContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),R(),Y(()=>Qp),K(`design:type`,Qp===void 0?Object:Qp)],tm.prototype,`dftVDS_NC`,void 0),q([I(),V(N),Il(em),K(`design:type`,Object)],tm.prototype,`result_type`,void 0),tm=$p=q([J()],tm);var nm,rm=[N.BSI_XML_V2],im=class extends zu{static{nm=this}static{this.fromPlain=e=>X(nm,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>rm.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(nm.fromPlain(e));if(t.length)throw new DT(`BSIv2Container validation error: the data received does not match model structure!`,t);return!0}}};q([I(),U(),K(`design:type`,String)],im.prototype,`XML_buffer`,void 0),q([I(),V(N),Il(rm),K(`design:type`,Object)],im.prototype,`result_type`,void 0),im=nm=q([J()],im);var am,om=[N.MDL_PARSED_RESPONSE],sm=class extends zu{static{am=this}static{this.fromPlain=e=>X(am,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>om.includes(e.result_type));return t?r.map(e=>Eu(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(am.fromPlain(e));if(t.length)throw new DT(`MDLContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],sm.prototype,`MDLParsedResponse`,void 0),q([I(),V(N),Il(om),K(`design:type`,Object)],sm.prototype,`result_type`,void 0),sm=am=q([J()],sm);var cm=e=>{let t=[];if(!Array.isArray(e))return t;for(let n of e){if(!hx(n)||!(`result_type`in n))continue;let{result_type:e}=n;switch(e){case N.MRZ_TEST_QUALITY:t.push(vp.fromPlain(n));break;case N.DOCUMENT_TYPE_CANDIDATES:t.push(Sp.fromPlain(n));break;case N.AUTHENTICITY:case N.PORTRAIT_COMPARISON:case N.FINGERPRINT_COMPARISON:t.push(md.fromPlain(n));break;case N.BARCODE_POSITION:t.push(bd.fromPlain(n));break;case N.DOCUMENT_POSITION:t.push(_d.fromPlain(n));break;case N.MRZ_DETECTOR:t.push(Op.fromPlain(n));break;case N.FACE_DETECTION:t.push(Np.fromPlain(n));break;case N.MRZ_POSITION:t.push(up.fromPlain(n));break;case N.BARCODES:t.push(Dd.fromPlain(n));break;case N.RFID_RAW_DATA:case N.RFID_BINARY_DATA:t.push(nf.fromPlain(n));break;case N.DTC_VC:t.push(Hp.fromPlain(n));break;case N.RFID_ORIGINAL_GRAPHICS:t.push(zp.fromPlain(n));break;case N.VISUAL_GRAPHICS:case N.BARCODE_GRAPHICS:case N.LIVE_PORTRAIT:case N.EXT_PORTRAIT:case N.FINGERPRINTS:case N.RFID_GRAPHICS:t.push(cf.fromPlain(n));break;case N.VISUAL_TEXT:case N.MRZ_TEXT:case N.BARCODE_TEXT:case N.MAGNETIC_STRIPE_TEXT_DATA:t.push(_f.fromPlain(n));break;case N.RFID_TEXT:t.push(sp.fromPlain(n));break;case N.ENCRYPTED_RCL:t.push(bf.fromPlain(n));break;case N.IMAGE_QUALITY:t.push(Tf.fromPlain(n));break;case N.IMAGES:t.push(Mf.fromPlain(n));break;case N.LICENSE:t.push(Ff.fromPlain(n));break;case N.LEXICAL_ANALYSIS:t.push(Bf.fromPlain(n));break;case N.DOCUMENT_TYPE:t.push(Uf.fromPlain(n));break;case N.DOCUMENT_IMAGE:case N.RAW_UNCROPPED_IMAGE:t.push(Kf.fromPlain(n));break;case N.STATUS:t.push(Zd.fromPlain(n));break;case N.TEXT:t.push(np.fromPlain(n));break;case N.VDS_NC:t.push(tm.fromPlain(n));break;case N.VDS:t.push(qp.fromPlain(n));break;case N.BSI_XML_V2:t.push(im.fromPlain(n));break;case N.MDL_PARSED_RESPONSE:t.push(sm.fromPlain(n));break}}return t},lm=class{};q([L(),H(),K(`design:type`,Number)],lm.prototype,`Count`,void 0),q([I(),W(),R({each:!0}),wu(({obj:e})=>cm(e.List),{toClassOnly:!0}),K(`design:type`,Array)],lm.prototype,`List`,void 0);var um=class{};q([L(),B(),K(`design:type`,Number)],um.prototype,`limit`,void 0),q([L(),B(),K(`design:type`,Number)],um.prototype,`threshold`,void 0),q([L(),B({},{each:!0}),K(`design:type`,Array)],um.prototype,`group_ids`,void 0);var dm=class{};q([L(),U(),K(`design:type`,String)],dm.prototype,`url`,void 0),q([L(),U(),K(`design:type`,String)],dm.prototype,`mode`,void 0),q([L(),R(),Y(()=>um),K(`design:type`,um===void 0?Object:um)],dm.prototype,`search`,void 0),q([L(),B(),K(`design:type`,Number)],dm.prototype,`threshold`,void 0),q([L(),B(),K(`design:type`,Number)],dm.prototype,`serviceTimeout`,void 0),q([L(),U(),K(`design:type`,String)],dm.prototype,`proxy`,void 0),q([L(),U(),K(`design:type`,String)],dm.prototype,`proxy_userpwd`,void 0),q([L(),B(),K(`design:type`,Number)],dm.prototype,`proxy_type`,void 0),q([L(),B(),K(`design:type`,Number)],dm.prototype,`childAgeThreshold`,void 0),q([L(),B(),K(`design:type`,Number)],dm.prototype,`childDocValidityYears`,void 0);var fm=class{};q([L(),B(),K(`design:type`,Number)],fm.prototype,`brightnessThreshold`,void 0),q([L(),H(),K(`design:type`,Number)],fm.prototype,`dpiThreshold`,void 0),q([L(),H(),K(`design:type`,Number)],fm.prototype,`angleThreshold`,void 0),q([z(),L(),K(`design:type`,Boolean)],fm.prototype,`focusCheck`,void 0),q([z(),L(),K(`design:type`,Boolean)],fm.prototype,`glaresCheck`,void 0),q([z(),L(),K(`design:type`,Boolean)],fm.prototype,`colornessCheck`,void 0),q([z(),L(),K(`design:type`,Boolean)],fm.prototype,`moireCheck`,void 0),q([L(),B(),K(`design:type`,Number)],fm.prototype,`documentPositionIndent`,void 0),q([L(),W(),V(vr,{each:!0}),K(`design:type`,Array)],fm.prototype,`expectedPass`,void 0);var pm=class{};q([L(),H({each:!0}),W(),K(`design:type`,Array)],pm.prototype,`docID`,void 0),q([L(),H(),K(`design:type`,Number)],pm.prototype,`excludeAuthChecks`,void 0);var mm=class{};q([L(),V(Er,{each:!0}),W(),K(`design:type`,Array)],mm.prototype,`paIgnoreNotificationCodes`,void 0);var hm=class{};q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkOVI`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkMLI`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkHolo`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkED`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkBlackAndWhiteCopy`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkDynaprint`,void 0),q([L(),z(),K(`design:type`,Boolean)],hm.prototype,`checkGeometry`,void 0);var gm=class{};q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkLiveness`,void 0),q([L(),R(),Y(()=>hm),K(`design:type`,hm===void 0?Object:hm)],gm.prototype,`livenessParams`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkUVLuminiscence`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkIRB900`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkImagePatterns`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkFibers`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkExtMRZ`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkExtOCR`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkAxial`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkBarcodeFormat`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkIRVisibility`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkIPI`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkPhotoEmbedding`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkPhotoComparison`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkLetterScreen`,void 0),q([L(),z(),K(`design:type`,Boolean)],gm.prototype,`checkSecurityText`,void 0);var _m=e=>(t,n)=>{Tl({name:`IsStringObjectRecord`,target:t.constructor,propertyName:String(n),constraints:[],options:{message:`${String(n)} must be a Record<string, object>`,...e},validator:{validate(e,t){return hx(e)?Object.keys(e).length===0?!0:Object.keys(e).every(t=>!(typeof t!=`string`||!hx(e[t]))):!1}}})},$=class{};q([L(),z(),K(`design:type`,Boolean)],$.prototype,`generateDTCVC`,void 0),q([L(),V(yr,{each:!0}),K(`design:type`,Array)],$.prototype,`lcidFilter`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`checkLiveness`,void 0),q([L(),V(yr,{each:!0}),K(`design:type`,Array)],$.prototype,`lcidIgnoreFilter`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`oneShotIdentification`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`useFaceApi`,void 0),q([L(),R(),Y(()=>dm),K(`design:type`,dm===void 0?Object:dm)],$.prototype,`faceApi`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`doDetectCan`,void 0),q([L(),H(),Rl(0),K(`design:type`,Number)],$.prototype,`imageOutputMaxHeight`,void 0),q([L(),H(),Rl(0),K(`design:type`,Number)],$.prototype,`imageOutputMaxWidth`,void 0),q([I(),V(Br),K(`design:type`,Br===void 0?Object:Br)],$.prototype,`scenario`,void 0),q([L(),V(N,{each:!0}),K(`design:type`,Array)],$.prototype,`resultTypeOutput`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`doublePageSpread`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`generateDoublePageSpreadImage`,void 0),q([L(),V(F,{each:!0}),K(`design:type`,Array)],$.prototype,`fieldTypesFilter`,void 0),q([L(),U(),K(`design:type`,String)],$.prototype,`dateFormat`,void 0),q([L(),V(Cr),K(`design:type`,Cr===void 0?Object:Cr)],$.prototype,`measureSystem`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`imageDpiOutMax`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`alreadyCropped`,void 0),q([L(),_m(),K(`design:type`,typeof Record>`u`?Object:Record)],$.prototype,`customParams`,void 0),q([L(),R({each:!0}),Y(()=>pm),K(`design:type`,Array)],$.prototype,`config`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`log`,void 0),q([L(),V(xr),K(`design:type`,xr===void 0?Object:xr)],$.prototype,`logLevel`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`forceDocID`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`matchTextFieldMask`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`fastDocDetect`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`updateOCRValidityByGlare`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`checkRequiredTextFields`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`returnCroppedBarcode`,void 0),q([L(),R(),K(`design:type`,fm===void 0?Object:fm)],$.prototype,`imageQa`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`strictImageQuality`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`respectImageQuality`,void 0),q([L(),V(fr),K(`design:type`,fr===void 0?Object:fr)],$.prototype,`forceDocFormat`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`noGraphics`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`depersonalizeLog`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`multiDocOnImage`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`shiftExpiryDate`,void 0),q([L(),H(),Rl(0),K(`design:type`,Number)],$.prototype,`minimalHolderAge`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`returnUncroppedImage`,void 0),q([L(),V(Sr,{each:!0}),K(`design:type`,Array)],$.prototype,`mrzFormatsFilter`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`forceReadMrzBeforeLocate`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`parseBarcodes`,void 0),q([L(),V(Ur),K(`design:type`,Ur===void 0?Object:Ur)],$.prototype,`convertCase`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`splitNames`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`disablePerforationOCR`,void 0),q([L(),V(pr,{each:!0}),K(`design:type`,Array)],$.prototype,`documentGroupFilter`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`processAuth`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`deviceId`,void 0),q([L(),H(),K(`design:type`,Number)],$.prototype,`deviceType`,void 0),q([L(),U(),K(`design:type`,String)],$.prototype,`deviceTypeHex`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`ignoreDeviceIdFromImage`,void 0),q([L(),H({each:!0}),K(`design:type`,Array)],$.prototype,`documentIdList`,void 0),q([L(),R(),Y(()=>mm),K(`design:type`,mm===void 0?Object:mm)],$.prototype,`rfid`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`checkAuth`,void 0),q([L(),R(),Y(()=>gm),K(`design:type`,gm===void 0?Object:gm)],$.prototype,`authParams`,void 0),q([L(),V(wr),K(`design:type`,wr===void 0?Object:wr)],$.prototype,`mrzDetectMode`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`generateNumericCodes`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`strictBarcodeDigitalSignatureCheck`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`selectLongestNames`,void 0),q([L(),W(),V(_r,{each:!0}),K(`design:type`,Array)],$.prototype,`doBarcodes`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`strictDLCategoryExpiry`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`generateAlpha2Codes`,void 0),q([L(),B(),K(`design:type`,Number)],$.prototype,`pdfPagesLimit`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`disableAuthResolutionFilter`,void 0),q([L(),z(),K(`design:type`,Boolean)],$.prototype,`strictSecurityChecks`,void 0);var vm=class{};q([R(),Y(()=>ju),K(`design:type`,ju===void 0?Object:ju)],vm.prototype,`ImageData`,void 0),q([V(br),L(),K(`design:type`,br===void 0?Object:br)],vm.prototype,`light`,void 0),q([H(),L(),K(`design:type`,Number)],vm.prototype,`page_idx`,void 0);var ym=class{};q([L(),U(),Hl(),K(`design:type`,String)],ym.prototype,`license`,void 0),q([L(),U(),K(`design:type`,String)],ym.prototype,`recaptcha_token`,void 0);var bm,xm=class{static{bm=this}static{this.fromPlain=e=>X(bm,e)}static{this.toPlain=e=>Eu(e,{excludeExtraneousValues:!0})}static{this.validate=e=>{let t=G(bm.toPlain(e));if(t.length)throw new DT(`ProcessRequest validation error: the data received does not match model structure!`,t);return!0}}};q([R(),I(),Y(()=>$),K(`design:type`,$===void 0?Object:$)],xm.prototype,`processParam`,void 0),q([R({each:!0}),L(),Y(()=>vm),K(`design:type`,Array)],xm.prototype,`List`,void 0),q([U(),L(),K(`design:type`,String)],xm.prototype,`tag`,void 0),q([U(),L(),K(`design:type`,String)],xm.prototype,`tenant`,void 0),q([U(),L(),K(`design:type`,String)],xm.prototype,`env`,void 0),q([L(),U(),K(`design:type`,String)],xm.prototype,`livePortrait`,void 0),q([L(),U(),K(`design:type`,String)],xm.prototype,`extPortrait`,void 0),q([L(),R(),Y(()=>lm),K(`design:type`,lm===void 0?Object:lm)],xm.prototype,`ContainerList`,void 0),q([L(),R(),Y(()=>ym),K(`design:type`,ym===void 0?Object:ym)],xm.prototype,`systemInfo`,void 0),q([L(),_m(),K(`design:type`,typeof Record>`u`?Object:Record)],xm.prototype,`passBackObject`,void 0),q([L(),U(),K(`design:type`,String)],xm.prototype,`dtc`,void 0),q([L(),W(),H({each:!0}),K(`design:type`,Array)],xm.prototype,`ImageUrls`,void 0),xm=bm=q([J()],xm);var Sm=class{};q([L(),U(),K(`design:type`,String)],Sm.prototype,`Description`,void 0),q([L(),U(),K(`design:type`,String)],Sm.prototype,`ExportDate`,void 0),q([L(),U(),K(`design:type`,String)],Sm.prototype,`ID`,void 0),q([L(),U(),K(`design:type`,String)],Sm.prototype,`Version`,void 0);var Cm=class{};q([L(),U(),K(`design:type`,String)],Cm.prototype,`ComputerName`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`DateTime`,void 0),q([L(),R(),Y(()=>Sm),K(`design:type`,Sm===void 0?Object:Sm)],Cm.prototype,`DocumentsDatabase`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`SystemInfo`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`Tag`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`TransactionID`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`UserName`,void 0),q([L(),U(),K(`design:type`,String)],Cm.prototype,`Version`,void 0);var wm=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Tm=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Em=o(((e,t)=>{var n=Tm();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Dm=o(((e,t)=>{var n=Em(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Om=o(((e,t)=>{var n=Em();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),km=o(((e,t)=>{var n=Em();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Am=o(((e,t)=>{var n=Em();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),jm=o(((e,t)=>{var n=wm(),r=Dm(),i=Om(),a=km(),o=Am();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Mm=o(((e,t)=>{var n=jm();function r(){this.__data__=new n,this.size=0}t.exports=r})),Nm=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),Pm=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),Fm=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Im=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Lm=o(((e,t)=>{var n=Im(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Rm=o(((e,t)=>{t.exports=Lm().Symbol})),zm=o(((e,t)=>{var n=Rm(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Bm=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Vm=o(((e,t)=>{var n=Rm(),r=zm(),i=Bm(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Hm=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Um=o(((e,t)=>{var n=Vm(),r=Hm(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Wm=o(((e,t)=>{t.exports=Lm()[`__core-js_shared__`]})),Gm=o(((e,t)=>{var n=Wm(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Km=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),qm=o(((e,t)=>{var n=Um(),r=Gm(),i=Hm(),a=Km(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),Jm=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),Ym=o(((e,t)=>{var n=qm(),r=Jm();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),Xm=o(((e,t)=>{t.exports=Ym()(Lm(),`Map`)})),Zm=o(((e,t)=>{t.exports=Ym()(Object,`create`)})),Qm=o(((e,t)=>{var n=Zm();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),$m=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),eh=o(((e,t)=>{var n=Zm(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),th=o(((e,t)=>{var n=Zm(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),nh=o(((e,t)=>{var n=Zm(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),rh=o(((e,t)=>{var n=Qm(),r=$m(),i=eh(),a=th(),o=nh();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),ih=o(((e,t)=>{var n=rh(),r=jm(),i=Xm();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),ah=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),oh=o(((e,t)=>{var n=ah();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),sh=o(((e,t)=>{var n=oh();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),ch=o(((e,t)=>{var n=oh();function r(e){return n(this,e).get(e)}t.exports=r})),lh=o(((e,t)=>{var n=oh();function r(e){return n(this,e).has(e)}t.exports=r})),uh=o(((e,t)=>{var n=oh();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),dh=o(((e,t)=>{var n=ih(),r=sh(),i=ch(),a=lh(),o=uh();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),fh=o(((e,t)=>{var n=jm(),r=Xm(),i=dh(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),ph=o(((e,t)=>{var n=jm(),r=Mm(),i=Nm(),a=Pm(),o=Fm(),s=fh();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),mh=o(((e,t)=>{var n=Ym();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),hh=o(((e,t)=>{var n=mh();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),gh=o(((e,t)=>{var n=hh(),r=Tm();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),_h=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),vh=o(((e,t)=>{t.exports=_h()()})),yh=o(((e,t)=>{var n=Lm(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),bh=o(((e,t)=>{t.exports=Lm().Uint8Array})),xh=o(((e,t)=>{var n=bh();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),Sh=o(((e,t)=>{var n=xh();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),Ch=o(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),wh=o(((e,t)=>{var n=Hm(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),Th=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),Eh=o(((e,t)=>{t.exports=Th()(Object.getPrototypeOf,Object)})),Dh=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),Oh=o(((e,t)=>{var n=wh(),r=Eh(),i=Dh();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),kh=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Ah=o(((e,t)=>{var n=Vm(),r=kh(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),jh=o(((e,t)=>{var n=Ah(),r=kh(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),Mh=o(((e,t)=>{t.exports=Array.isArray})),Nh=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),Ph=o(((e,t)=>{var n=Um(),r=Nh();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),Fh=o(((e,t)=>{var n=Ph(),r=kh();function i(e){return r(e)&&n(e)}t.exports=i})),Ih=o(((e,t)=>{function n(){return!1}t.exports=n})),Lh=o(((e,t)=>{var n=Lm(),r=Ih(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),Rh=o(((e,t)=>{var n=Vm(),r=Eh(),i=kh(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),zh=o(((e,t)=>{var n=Vm(),r=Nh(),i=kh(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,ee=`[object Uint16Array]`,te=`[object Uint32Array]`,D={};D[b]=D[x]=D[S]=D[C]=D[w]=D[T]=D[E]=D[ee]=D[te]=!0,D[a]=D[o]=D[v]=D[s]=D[y]=D[c]=D[l]=D[u]=D[d]=D[f]=D[p]=D[m]=D[h]=D[g]=D[_]=!1;function ne(e){return i(e)&&r(e.length)&&!!D[n(e)]}t.exports=ne})),Bh=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),Vh=o(((e,t)=>{var n=Im(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),Hh=o(((e,t)=>{var n=zh(),r=Bh(),i=Vh(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Uh=o(((e,t)=>{function n(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),Wh=o(((e,t)=>{var n=hh(),r=Tm(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),Gh=o(((e,t)=>{var n=Wh(),r=hh();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),Kh=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),qh=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),Jh=o(((e,t)=>{var n=Kh(),r=jh(),i=Mh(),a=Lh(),o=qh(),s=Hh(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),Yh=o(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),Xh=o(((e,t)=>{var n=Hm(),r=Dh(),i=Yh(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),Zh=o(((e,t)=>{var n=Jh(),r=Xh(),i=Ph();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),Qh=o(((e,t)=>{var n=Gh(),r=Zh();function i(e){return n(e,r(e))}t.exports=i})),$h=o(((e,t)=>{var n=gh(),r=yh(),i=Sh(),a=Ch(),o=Oh(),s=jh(),c=Mh(),l=Fh(),u=Lh(),d=Um(),f=Hm(),p=Rh(),m=Hh(),h=Uh(),g=Qh();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var ee=c(C),te=!ee&&u(C),D=!ee&&!te&&m(C);T=C,ee||te||D?c(S)?T=S:l(S)?T=a(S):te?(E=!1,T=r(C,!0)):D?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}t.exports=_})),eg=o(((e,t)=>{var n=ph(),r=gh(),i=vh(),a=$h(),o=Hm(),s=Zh(),c=Uh();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),tg=o(((e,t)=>{function n(e){return e}t.exports=n})),ng=o(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),rg=o(((e,t)=>{var n=ng(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),ig=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),ag=o(((e,t)=>{var n=ig(),r=mh(),i=tg();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),og=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),sg=o(((e,t)=>{var n=ag();t.exports=og()(n)})),cg=o(((e,t)=>{var n=tg(),r=rg(),i=sg();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),lg=o(((e,t)=>{var n=Tm(),r=Ph(),i=qh(),a=Hm();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),ug=o(((e,t)=>{var n=cg(),r=lg();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),dg=o(((e,t)=>{var n=eg();t.exports=ug()(function(e,t,r){n(e,t,r)})})),fg=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),pg=o(((e,t)=>{var n=fg();function r(e,t){return n(t,function(t){return e[t]})}t.exports=r})),mg=o(((e,t)=>{t.exports=Th()(Object.keys,Object)})),hg=o(((e,t)=>{var n=Dh(),r=mg(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),gg=o(((e,t)=>{var n=Jh(),r=hg(),i=Ph();function a(e){return i(e)?n(e):r(e)}t.exports=a})),_g=o(((e,t)=>{var n=pg(),r=gg();function i(e){return e==null?[]:n(e,r(e))}t.exports=i})),vg=c(dg(),1),yg=c(_g(),1),bg,xg=class{static{bg=this}static{this.fromPlain=e=>{let t=X(bg,e,{exposeUnsetFields:!1});return bg.inform(t),t}}static{this.validate=e=>{let t=G(bg.fromPlain(e));if(t.length)throw new DT(`ProcessResponse validation error: the data received does not match model structure!`,t);return!0}}static{this.isValid=e=>{try{return bg.validate(e),!0}catch{return!1}}}static{this.decodeLog=e=>typeof e==`string`?mx(e):!e||!e.log?``:mx(e.log)}static{this.inform=e=>{if(typeof window>`u`||typeof localStorage>`u`||!localStorage.getItem(`docreader_typings_log`)||!e||!(e instanceof bg))return;let t=G(e),n=bg.simplifyErrors(``,t);for(let[e,t]of Object.entries(n))console.info(`Error in ${e}: ${t.join(`, `)}`)}}static{this.simplifyErrors=(e,t)=>{let n={};for(let r=0;r<t.length;r++){let i=t[r].property,a=e?`${e}.${i}`:i;t[r].children&&t[r].children?.length&&(n=(0,vg.default)(n,bg.simplifyErrors(a,t[r].children))),t[r].constraints&&(n[a]=(0,yg.default)((0,vg.default)(t[r].constraints,n[a])))}return n}}};q([I(),V(Ir),K(`design:type`,Ir===void 0?Object:Ir)],xg.prototype,`ChipPage`,void 0),q([L(),H(),K(`design:type`,Number)],xg.prototype,`CoreLibResultCode`,void 0),q([I(),V(Dr),K(`design:type`,Dr===void 0?Object:Dr)],xg.prototype,`ProcessingFinished`,void 0),q([R(),Y(()=>lm),K(`design:type`,lm===void 0?Object:lm)],xg.prototype,`ContainerList`,void 0),q([I(),R(),Y(()=>Cm),K(`design:type`,Cm===void 0?Object:Cm)],xg.prototype,`TransactionInfo`,void 0),q([L(),U(),Hl(),K(`design:type`,String)],xg.prototype,`log`,void 0),q([L(),_m(),K(`design:type`,typeof Record>`u`?Object:Record)],xg.prototype,`passBackObject`,void 0),q([L(),H(),Rl(0),K(`design:type`,Number)],xg.prototype,`morePagesAvailable`,void 0),q([L(),H(),Rl(0),K(`design:type`,Number)],xg.prototype,`elapsedTime`,void 0),q([L(),_m(),K(`design:type`,typeof Record>`u`?Object:Record)],xg.prototype,`metadata`,void 0),xg=bg=q([J()],xg);var Sg=4,Cg=0,wg=1,Tg=2;function Eg(e){let t=e.length;for(;--t>=0;)e[t]=0}var Dg=0,Og=1,kg=2,Ag=29,jg=256,Mg=286,Ng=30,Pg=19,Fg=573,Ig=15,Lg=16,Rg=7,zg=256,Bg=16,Vg=17,Hg=18,Ug=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Wg=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Gg=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Kg=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qg=512,Jg=Array(288*2);Eg(Jg);var Yg=Array(Ng*2);Eg(Yg);var Xg=Array(qg);Eg(Xg);var Zg=Array(256);Eg(Zg);var Qg=Array(Ag);Eg(Qg);var $g=Array(Ng);Eg($g);function e_(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var t_,n_,r_;function i_(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var a_=e=>e<256?Xg[e]:Xg[256+(e>>>7)],o_=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},s_=(e,t,n)=>{e.bi_valid>Lg-n?(e.bi_buf|=t<<e.bi_valid&65535,o_(e,e.bi_buf),e.bi_buf=t>>Lg-e.bi_valid,e.bi_valid+=n-Lg):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},c_=(e,t,n)=>{s_(e,n[t*2],n[t*2+1])},l_=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},u_=e=>{e.bi_valid===16?(o_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},d_=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=Ig;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Fg;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}},f_=(e,t,n)=>{let r=Array(16),i=0,a,o;for(a=1;a<=Ig;a++)i=i+n[a-1]<<1,r[a]=i;for(o=0;o<=t;o++){let t=e[o*2+1];t!==0&&(e[o*2]=l_(r[t]++,t))}},p_=()=>{let e,t,n,r,i,a=Array(16);for(n=0,r=0;r<Ag-1;r++)for(Qg[r]=n,e=0;e<1<<Ug[r];e++)Zg[n++]=r;for(Zg[n-1]=r,i=0,r=0;r<16;r++)for($g[r]=i,e=0;e<1<<Wg[r];e++)Xg[i++]=r;for(i>>=7;r<Ng;r++)for($g[r]=i<<7,e=0;e<1<<Wg[r]-7;e++)Xg[256+ i++]=r;for(t=0;t<=Ig;t++)a[t]=0;for(e=0;e<=143;)Jg[e*2+1]=8,e++,a[8]++;for(;e<=255;)Jg[e*2+1]=9,e++,a[9]++;for(;e<=279;)Jg[e*2+1]=7,e++,a[7]++;for(;e<=287;)Jg[e*2+1]=8,e++,a[8]++;for(f_(Jg,287,a),e=0;e<Ng;e++)Yg[e*2+1]=5,Yg[e*2]=l_(e,5);t_=new e_(Jg,Ug,257,Mg,Ig),n_=new e_(Yg,Wg,0,Ng,Ig),r_=new e_([],Gg,0,Pg,Rg)},m_=e=>{let t;for(t=0;t<Mg;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Ng;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Pg;t++)e.bl_tree[t*2]=0;e.dyn_ltree[zg*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},h_=e=>{e.bi_valid>8?o_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},g_=(e,t,n,r)=>{let i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},__=(e,t,n)=>{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&g_(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!g_(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},v_=(e,t,n)=>{let r,i,a=0,o,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+ a++]&255,r+=(e.pending_buf[e.sym_buf+ a++]&255)<<8,i=e.pending_buf[e.sym_buf+ a++],r===0?c_(e,i,t):(o=Zg[i],c_(e,o+jg+1,t),s=Ug[o],s!==0&&(i-=Qg[o],s_(e,i,s)),r--,o=a_(r),c_(e,o,n),s=Wg[o],s!==0&&(r-=$g[o],s_(e,r,s)));while(a<e.sym_next);c_(e,zg,t)},y_=(e,t)=>{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=Fg,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)__(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],__(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,__(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],d_(e,t),f_(n,c,e.bl_count)},b_=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[Vg*2]++:e.bl_tree[Hg*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[Bg*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))},x_=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do c_(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(c_(e,Vg,e.bl_tree),s_(e,s-3,3)):(c_(e,Hg,e.bl_tree),s_(e,s-11,7)):(a!==i&&(c_(e,a,e.bl_tree),s--),c_(e,Bg,e.bl_tree),s_(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}},S_=e=>{let t;for(b_(e,e.dyn_ltree,e.l_desc.max_code),b_(e,e.dyn_dtree,e.d_desc.max_code),y_(e,e.bl_desc),t=Pg-1;t>=3&&e.bl_tree[Kg[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},C_=(e,t,n,r)=>{let i;for(s_(e,t-257,5),s_(e,n-1,5),s_(e,r-4,4),i=0;i<r;i++)s_(e,e.bl_tree[Kg[i]*2+1],3);x_(e,e.dyn_ltree,t-1),x_(e,e.dyn_dtree,n-1)},w_=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Cg;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return wg;for(n=32;n<jg;n++)if(e.dyn_ltree[n*2]!==0)return wg;return Cg},T_=!1,E_=e=>{T_||=(p_(),!0),e.l_desc=new i_(e.dyn_ltree,t_),e.d_desc=new i_(e.dyn_dtree,n_),e.bl_desc=new i_(e.bl_tree,r_),e.bi_buf=0,e.bi_valid=0,m_(e)},D_=(e,t,n,r)=>{s_(e,(Dg<<1)+ +!!r,3),h_(e),o_(e,n),o_(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},O_={_tr_init:E_,_tr_stored_block:D_,_tr_flush_block:(e,t,n,r)=>{let i,a,o=0;e.level>0?(e.strm.data_type===Tg&&(e.strm.data_type=w_(e)),y_(e,e.l_desc),y_(e,e.d_desc),o=S_(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?D_(e,t,n,r):e.strategy===Sg||a===i?(s_(e,(Og<<1)+ +!!r,3),v_(e,Jg,Yg)):(s_(e,(kg<<1)+ +!!r,3),C_(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),v_(e,e.dyn_ltree,e.dyn_dtree)),m_(e),r&&h_(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+ e.sym_next++]=t,e.pending_buf[e.sym_buf+ e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+ e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Zg[n]+jg+1)*2]++,e.dyn_dtree[a_(t)*2]++),e.sym_next===e.sym_end),_tr_align:e=>{s_(e,Og<<1,3),c_(e,zg,Jg),u_(e)}},k_=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0},A_=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t})()),j_=(e,t,n,r)=>{let i=A_,a=r+n;e^=-1;for(let n=r;n<a;n++)e=e>>>8^i[(e^t[n])&255];return e^-1},M_={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`},N_={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:P_,_tr_stored_block:F_,_tr_flush_block:I_,_tr_tally:L_,_tr_align:R_}=O_,{Z_NO_FLUSH:z_,Z_PARTIAL_FLUSH:B_,Z_FULL_FLUSH:V_,Z_FINISH:H_,Z_BLOCK:U_,Z_OK:W_,Z_STREAM_END:G_,Z_STREAM_ERROR:K_,Z_DATA_ERROR:q_,Z_BUF_ERROR:J_,Z_DEFAULT_COMPRESSION:Y_,Z_FILTERED:X_,Z_HUFFMAN_ONLY:Z_,Z_RLE:Q_,Z_FIXED:$_,Z_DEFAULT_STRATEGY:ev,Z_UNKNOWN:tv,Z_DEFLATED:nv}=N_,rv=9,iv=15,av=8,ov=573,sv=3,cv=258,lv=262,uv=32,dv=42,fv=57,pv=69,mv=73,hv=91,gv=103,_v=113,vv=666,yv=1,bv=2,xv=3,Sv=4,Cv=3,wv=(e,t)=>(e.msg=M_[t],t),Tv=e=>e*2-(e>4?9:0),Ev=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Dv=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},Ov=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,kv=e=>{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Av=(e,t)=>{I_(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,kv(e.strm)},jv=(e,t)=>{e.pending_buf[e.pending++]=t},Mv=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Nv=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=k_(e.adler,t,i,n):e.state.wrap===2&&(e.adler=j_(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Pv=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-lv?e.strstart-(e.w_size-lv):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+cv,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(i=t,l[i+o]!==m||l[i+o-1]!==p||l[i]!==l[r]||l[++i]!==l[r+1])continue;r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=cv-(f-r),r=f-cv,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead},Fv=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-lv)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Dv(e),r+=t),e.strm.avail_in===0)break;if(n=Nv(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=sv)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ov(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ov(e,e.ins_h,e.window[i+sv-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<sv)););}while(e.lookahead<lv&&e.strm.avail_in!==0)},Iv=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,o=0,s=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<n&&(r===0&&t!==H_||t===z_||r!==i+e.strm.avail_in)))break;o=+(t===H_&&r===i+e.strm.avail_in),F_(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,kv(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Nv(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?Sv:t!==z_&&t!==H_&&e.strm.avail_in===0&&e.strstart===e.block_start?bv:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Nv(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,n=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=n||(i||t===H_)&&t!==z_&&e.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,o=+(t===H_&&e.strm.avail_in===0&&r===i),F_(e,e.block_start,r,o),e.block_start+=r,kv(e.strm)),o?xv:yv)},Lv=(e,t)=>{let n,r;for(;;){if(e.lookahead<lv){if(Fv(e),e.lookahead<lv&&t===z_)return yv;if(e.lookahead===0)break}if(n=0,e.lookahead>=sv&&(e.ins_h=Ov(e,e.ins_h,e.window[e.strstart+sv-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-lv&&(e.match_length=Pv(e,n)),e.match_length>=sv)if(r=L_(e,e.strstart-e.match_start,e.match_length-sv),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=sv){e.match_length--;do e.strstart++,e.ins_h=Ov(e,e.ins_h,e.window[e.strstart+sv-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ov(e,e.ins_h,e.window[e.strstart+1]);else r=L_(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Av(e,!1),e.strm.avail_out===0))return yv}return e.insert=e.strstart<sv-1?e.strstart:sv-1,t===H_?(Av(e,!0),e.strm.avail_out===0?xv:Sv):e.sym_next&&(Av(e,!1),e.strm.avail_out===0)?yv:bv},Rv=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<lv){if(Fv(e),e.lookahead<lv&&t===z_)return yv;if(e.lookahead===0)break}if(n=0,e.lookahead>=sv&&(e.ins_h=Ov(e,e.ins_h,e.window[e.strstart+sv-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=sv-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-lv&&(e.match_length=Pv(e,n),e.match_length<=5&&(e.strategy===X_||e.match_length===sv&&e.strstart-e.match_start>4096)&&(e.match_length=sv-1)),e.prev_length>=sv&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-sv,r=L_(e,e.strstart-1-e.prev_match,e.prev_length-sv),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ov(e,e.ins_h,e.window[e.strstart+sv-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=sv-1,e.strstart++,r&&(Av(e,!1),e.strm.avail_out===0))return yv}else if(e.match_available){if(r=L_(e,0,e.window[e.strstart-1]),r&&Av(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return yv}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=L_(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<sv-1?e.strstart:sv-1,t===H_?(Av(e,!0),e.strm.avail_out===0?xv:Sv):e.sym_next&&(Av(e,!1),e.strm.avail_out===0)?yv:bv},zv=(e,t)=>{let n,r,i,a,o=e.window;for(;;){if(e.lookahead<=cv){if(Fv(e),e.lookahead<=cv&&t===z_)return yv;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=sv&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+cv;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=cv-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=sv?(n=L_(e,1,e.match_length-sv),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=L_(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Av(e,!1),e.strm.avail_out===0))return yv}return e.insert=0,t===H_?(Av(e,!0),e.strm.avail_out===0?xv:Sv):e.sym_next&&(Av(e,!1),e.strm.avail_out===0)?yv:bv},Bv=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Fv(e),e.lookahead===0)){if(t===z_)return yv;break}if(e.match_length=0,n=L_(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Av(e,!1),e.strm.avail_out===0))return yv}return e.insert=0,t===H_?(Av(e,!0),e.strm.avail_out===0?xv:Sv):e.sym_next&&(Av(e,!1),e.strm.avail_out===0)?yv:bv};function Vv(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Hv=[new Vv(0,0,0,0,Iv),new Vv(4,4,8,4,Lv),new Vv(4,5,16,8,Lv),new Vv(4,6,32,32,Lv),new Vv(4,4,16,16,Rv),new Vv(8,16,32,32,Rv),new Vv(8,16,128,128,Rv),new Vv(8,32,128,256,Rv),new Vv(32,128,258,1024,Rv),new Vv(32,258,258,4096,Rv)],Uv=e=>{e.window_size=2*e.w_size,Ev(e.head),e.max_lazy_match=Hv[e.level].max_lazy,e.good_match=Hv[e.level].good_length,e.nice_match=Hv[e.level].nice_length,e.max_chain_length=Hv[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=sv-1,e.match_available=0,e.ins_h=0};function Wv(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=nv,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(ov*2),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Ev(this.dyn_ltree),Ev(this.dyn_dtree),Ev(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Ev(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Ev(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Gv=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.status!==dv&&t.status!==fv&&t.status!==pv&&t.status!==mv&&t.status!==hv&&t.status!==gv&&t.status!==_v&&t.status!==vv)},Kv=e=>{if(Gv(e))return wv(e,K_);e.total_in=e.total_out=0,e.data_type=tv;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?fv:t.wrap?dv:_v,e.adler=t.wrap===2?0:1,t.last_flush=-2,P_(t),W_},qv=e=>{let t=Kv(e);return t===W_&&Uv(e.state),t},Jv=(e,t)=>Gv(e)||e.state.wrap!==2?K_:(e.state.gzhead=t,W_),Yv=(e,t,n,r,i,a)=>{if(!e)return K_;let o=1;if(t===Y_&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>rv||n!==nv||r<8||r>15||t<0||t>9||a<0||a>$_||r===8&&o!==1)return wv(e,K_);r===8&&(r=9);let s=new Wv;return e.state=s,s.strm=e,s.status=dv,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+sv-1)/sv),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=t,s.strategy=a,s.method=n,qv(e)},Xv={deflateInit:(e,t)=>Yv(e,t,nv,iv,av,ev),deflateInit2:Yv,deflateReset:qv,deflateResetKeep:Kv,deflateSetHeader:Jv,deflate:(e,t)=>{if(Gv(e)||t>U_||t<0)return e?wv(e,K_):K_;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===vv&&t!==H_)return wv(e,e.avail_out===0?J_:K_);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(kv(e),e.avail_out===0)return n.last_flush=-1,W_}else if(e.avail_in===0&&Tv(t)<=Tv(r)&&t!==H_)return wv(e,J_);if(n.status===vv&&e.avail_in!==0)return wv(e,J_);if(n.status===dv&&n.wrap===0&&(n.status=_v),n.status===dv){let t=nv+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=Z_||n.level<2?0:n.level<6?1:n.level===6?2:3,t|=r<<6,n.strstart!==0&&(t|=uv),t+=31-t%31,Mv(n,t),n.strstart!==0&&(Mv(n,e.adler>>>16),Mv(n,e.adler&65535)),e.adler=1,n.status=_v,kv(e),n.pending!==0)return n.last_flush=-1,W_}if(n.status===fv){if(e.adler=0,jv(n,31),jv(n,139),jv(n,8),n.gzhead)jv(n,+!!n.gzhead.text+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),jv(n,n.gzhead.time&255),jv(n,n.gzhead.time>>8&255),jv(n,n.gzhead.time>>16&255),jv(n,n.gzhead.time>>24&255),jv(n,n.level===9?2:n.strategy>=Z_||n.level<2?4:0),jv(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(jv(n,n.gzhead.extra.length&255),jv(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=j_(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=pv;else if(jv(n,0),jv(n,0),jv(n,0),jv(n,0),jv(n,0),jv(n,n.level===9?2:n.strategy>=Z_||n.level<2?4:0),jv(n,Cv),n.status=_v,kv(e),n.pending!==0)return n.last_flush=-1,W_}if(n.status===pv){if(n.gzhead.extra){let t=n.pending,r=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,kv(e),n.pending!==0)return n.last_flush=-1,W_;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=mv}if(n.status===mv){if(n.gzhead.name){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t)),kv(e),n.pending!==0)return n.last_flush=-1,W_;t=0}r=n.gzindex<n.gzhead.name.length?n.gzhead.name.charCodeAt(n.gzindex++)&255:0,jv(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=hv}if(n.status===hv){if(n.gzhead.comment){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t)),kv(e),n.pending!==0)return n.last_flush=-1,W_;t=0}r=n.gzindex<n.gzhead.comment.length?n.gzhead.comment.charCodeAt(n.gzindex++)&255:0,jv(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=j_(e.adler,n.pending_buf,n.pending-t,t))}n.status=gv}if(n.status===gv){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(kv(e),n.pending!==0))return n.last_flush=-1,W_;jv(n,e.adler&255),jv(n,e.adler>>8&255),e.adler=0}if(n.status=_v,kv(e),n.pending!==0)return n.last_flush=-1,W_}if(e.avail_in!==0||n.lookahead!==0||t!==z_&&n.status!==vv){let r=n.level===0?Iv(n,t):n.strategy===Z_?Bv(n,t):n.strategy===Q_?zv(n,t):Hv[n.level].func(n,t);if((r===xv||r===Sv)&&(n.status=vv),r===yv||r===xv)return e.avail_out===0&&(n.last_flush=-1),W_;if(r===bv&&(t===B_?R_(n):t!==U_&&(F_(n,0,0,!1),t===V_&&(Ev(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),kv(e),e.avail_out===0))return n.last_flush=-1,W_}return t===H_?n.wrap<=0?G_:(n.wrap===2?(jv(n,e.adler&255),jv(n,e.adler>>8&255),jv(n,e.adler>>16&255),jv(n,e.adler>>24&255),jv(n,e.total_in&255),jv(n,e.total_in>>8&255),jv(n,e.total_in>>16&255),jv(n,e.total_in>>24&255)):(Mv(n,e.adler>>>16),Mv(n,e.adler&65535)),kv(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending===0?G_:W_):W_},deflateEnd:e=>{if(Gv(e))return K_;let t=e.state.status;return e.state=null,t===_v?wv(e,q_):W_},deflateSetDictionary:(e,t)=>{let n=t.length;if(Gv(e))return K_;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==dv||r.lookahead)return K_;if(i===1&&(e.adler=k_(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Ev(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}let a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Fv(r);r.lookahead>=sv;){let e=r.strstart,t=r.lookahead-(sv-1);do r.ins_h=Ov(r,r.ins_h,r.window[e+sv-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++;while(--t);r.strstart=e,r.lookahead=sv-1,Fv(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=sv-1,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,W_},deflateInfo:`pako deflate (from Nodeca project)`},Zv=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Qv={assign:function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(let t in n)Zv(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;let n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}},$v=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{$v=!1}var ey=new Uint8Array(256);for(let e=0;e<256;e++)ey[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ey[254]=ey[254]=1;var ty=e=>{if(typeof TextEncoder==`function`&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t},ny=(e,t)=>{if(t<65534&&e.subarray&&$v)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n=``;for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},ry={string2buf:ty,buf2string:(e,t)=>{let n=t||e.length;if(typeof TextDecoder==`function`&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,a=Array(n*2);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){a[i++]=t;continue}let o=ey[t];if(o>4){a[i++]=65533,r+=o-1;continue}for(t&=o===2?31:o===3?15:7;o>1&&r<n;)t=t<<6|e[r++]&63,o--;if(o>1){a[i++]=65533;continue}t<65536?a[i++]=t:(t-=65536,a[i++]=55296|t>>10&1023,a[i++]=56320|t&1023)}return ny(a,i)},utf8border:(e,t)=>{t||=e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+ey[e[n]]>t?n:t}};function iy(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}var ay=iy,oy=Object.prototype.toString,{Z_NO_FLUSH:sy,Z_SYNC_FLUSH:cy,Z_FULL_FLUSH:ly,Z_FINISH:uy,Z_OK:dy,Z_STREAM_END:fy,Z_DEFAULT_COMPRESSION:py,Z_DEFAULT_STRATEGY:my,Z_DEFLATED:hy}=N_;function gy(e){this.options=Qv.assign({level:py,method:hy,chunkSize:16384,windowBits:15,memLevel:8,strategy:my},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new ay,this.strm.avail_out=0;let n=Xv.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==dy)throw Error(M_[n]);if(t.header&&Xv.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e=typeof t.dictionary==`string`?ry.string2buf(t.dictionary):oy.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,n=Xv.deflateSetDictionary(this.strm,e),n!==dy)throw Error(M_[n]);this._dict_set=!0}}gy.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(a=t===~~t?t:t===!0?uy:sy,typeof e==`string`?n.input=ry.string2buf(e):oy.call(e)===`[object ArrayBuffer]`?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(a===cy||a===ly)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Xv.deflate(n,a),i===fy)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Xv.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===dy;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},gy.prototype.onData=function(e){this.chunks.push(e)},gy.prototype.onEnd=function(e){e===dy&&(this.result=Qv.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function _y(e,t){let n=new gy(t);if(n.push(e,!0),n.err)throw n.msg||M_[n.err];return n.result}function vy(e,t){return t||={},t.raw=!0,_y(e,t)}function yy(e,t){return t||={},t.gzip=!0,_y(e,t)}var by={Deflate:gy,deflate:_y,deflateRaw:vy,gzip:yy,constants:N_},xy=16209,Sy=16191,Cy=function(e,t){let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=e.state;n=e.next_in,w=e.input,r=n+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=E.dmax,c=E.wsize,l=E.whave,u=E.wnext,d=E.window,f=E.hold,p=E.bits,m=E.lencode,h=E.distcode,g=(1<<E.lenbits)-1,_=(1<<E.distbits)-1;top:do{p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=m[f&g];dolen:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y===0)T[i++]=v&65535;else if(y&16){b=v&65535,y&=15,y&&(p<y&&(f+=w[n++]<<p,p+=8),b+=f&(1<<y)-1,f>>>=y,p-=y),p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=h[f&_];dodist:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y&16){if(x=v&65535,y&=15,p<y&&(f+=w[n++]<<p,p+=8,p<y&&(f+=w[n++]<<p,p+=8)),x+=f&(1<<y)-1,x>s){e.msg=`invalid distance too far back`,E.mode=xy;break top}if(f>>>=y,p-=y,y=i-a,x>y){if(y=x-y,y>l&&E.sane){e.msg=`invalid distance too far back`,E.mode=xy;break top}if(S=0,C=d,u===0){if(S+=c-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}else if(u<y){if(S+=c+u-y,y-=u,y<b){b-=y;do T[i++]=d[S++];while(--y);if(S=0,u<b){y=u,b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}}else if(S+=u-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}for(;b>2;)T[i++]=C[S++],T[i++]=C[S++],T[i++]=C[S++],b-=3;b&&(T[i++]=C[S++],b>1&&(T[i++]=C[S++]))}else{S=i-x;do T[i++]=T[S++],T[i++]=T[S++],T[i++]=T[S++],b-=3;while(b>2);b&&(T[i++]=T[S++],b>1&&(T[i++]=T[S++]))}}else if(y&64){e.msg=`invalid distance code`,E.mode=xy;break top}else{v=h[(v&65535)+(f&(1<<y)-1)];continue dodist}break}}else if(!(y&64)){v=m[(v&65535)+(f&(1<<y)-1)];continue dolen}else if(y&32){E.mode=Sy;break top}else{e.msg=`invalid literal/length code`,E.mode=xy;break top}break}}while(n<r&&i<o);b=p>>3,n-=b,p-=b<<3,f&=(1<<p)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?5+(r-n):5-(n-r),e.avail_out=i<o?257+(o-i):257-(i-o),E.hold=f,E.bits=p},wy=15,Ty=852,Ey=592,Dy=0,Oy=1,ky=2,Ay=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),jy=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),My=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Ny=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Py=(e,t,n,r,i,a,o,s)=>{let c=s.bits,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y,b,x,S,C,w=null,T,E=new Uint16Array(16),ee=new Uint16Array(16),te=null,D,ne,re;for(l=0;l<=wy;l++)E[l]=0;for(u=0;u<r;u++)E[t[n+u]]++;for(p=c,f=wy;f>=1&&E[f]===0;f--);if(p>f&&(p=f),f===0)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(d=1;d<f&&E[d]===0;d++);for(p<d&&(p=d),g=1,l=1;l<=wy;l++)if(g<<=1,g-=E[l],g<0)return-1;if(g>0&&(e===Dy||f!==1))return-1;for(ee[1]=0,l=1;l<wy;l++)ee[l+1]=ee[l]+E[l];for(u=0;u<r;u++)t[n+u]!==0&&(o[ee[t[n+u]]++]=u);if(e===Dy?(w=te=o,T=20):e===Oy?(w=Ay,te=jy,T=257):(w=My,te=Ny,T=0),v=0,u=0,l=d,C=a,m=p,h=0,x=-1,_=1<<p,S=_-1,e===Oy&&_>Ty||e===ky&&_>Ey)return 1;for(;;){D=l-h,o[u]+1<T?(ne=0,re=o[u]):o[u]>=T?(ne=te[o[u]-T],re=w[o[u]-T]):(ne=96,re=0),y=1<<l-h,b=1<<m,d=b;do b-=y,i[C+(v>>h)+b]=D<<24|ne<<16|re|0;while(b!==0);for(y=1<<l-1;v&y;)y>>=1;if(y===0?v=0:(v&=y-1,v+=y),u++,--E[l]===0){if(l===f)break;l=t[n+o[u]]}if(l>p&&(v&S)!==x){for(h===0&&(h=p),C+=d,m=l-h,g=1<<m;m+h<f&&(g-=E[m+h],!(g<=0));)m++,g<<=1;if(_+=1<<m,e===Oy&&_>Ty||e===ky&&_>Ey)return 1;x=v&S,i[x]=p<<24|m<<16|C-a|0}}return v!==0&&(i[C+v]=l-h<<24|4194304),s.bits=p,0},Fy=0,Iy=1,Ly=2,{Z_FINISH:Ry,Z_BLOCK:zy,Z_TREES:By,Z_OK:Vy,Z_STREAM_END:Hy,Z_NEED_DICT:Uy,Z_STREAM_ERROR:Wy,Z_DATA_ERROR:Gy,Z_MEM_ERROR:Ky,Z_BUF_ERROR:qy,Z_DEFLATED:Jy}=N_,Yy=16180,Xy=16181,Zy=16182,Qy=16183,$y=16184,eb=16185,tb=16186,nb=16187,rb=16188,ib=16189,ab=16190,ob=16191,sb=16192,cb=16193,lb=16194,ub=16195,db=16196,fb=16197,pb=16198,mb=16199,hb=16200,gb=16201,_b=16202,vb=16203,yb=16204,bb=16205,xb=16206,Sb=16207,Cb=16208,wb=16209,Tb=16210,Eb=16211,Db=852,Ob=592,kb=15,Ab=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function jb(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Mb=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.mode<Yy||t.mode>Eb)},Nb=e=>{if(Mb(e))return Wy;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=t.wrap&1),t.mode=Yy,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Db),t.distcode=t.distdyn=new Int32Array(Ob),t.sane=1,t.back=-1,Vy},Pb=e=>{if(Mb(e))return Wy;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Nb(e)},Fb=(e,t)=>{let n;if(Mb(e))return Wy;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Wy:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Pb(e))},Ib=(e,t)=>{if(!e)return Wy;let n=new jb;e.state=n,n.strm=e,n.window=null,n.mode=Yy;let r=Fb(e,t);return r!==Vy&&(e.state=null),r},Lb=e=>Ib(e,kb),Rb=!0,zb,Bb,Vb=e=>{if(Rb){zb=new Int32Array(512),Bb=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Py(Iy,e.lens,0,288,zb,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Py(Ly,e.lens,0,32,Bb,0,e.work,{bits:5}),Rb=!1}e.lencode=zb,e.lenbits=9,e.distcode=Bb,e.distbits=5},Hb=(e,t,n,r)=>{let i,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Ub={inflateReset:Pb,inflateReset2:Fb,inflateResetKeep:Nb,inflateInit:Lb,inflateInit2:Ib,inflate:(e,t)=>{let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g=0,_,v,y,b,x,S,C,w,T=new Uint8Array(4),E,ee,te=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Mb(e)||!e.output||!e.input&&e.avail_in!==0)return Wy;n=e.state,n.mode===ob&&(n.mode=sb),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,d=s,f=c,w=Vy;inf_leave:for(;;)switch(n.mode){case Yy:if(n.wrap===0){n.mode=sb;break}for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=l&255,T[1]=l>>>8&255,n.check=j_(n.check,T,2,0),l=0,u=0,n.mode=Xy;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg=`incorrect header check`,n.mode=wb;break}if((l&15)!==Jy){e.msg=`unknown compression method`,n.mode=wb;break}if(l>>>=4,u-=4,C=(l&15)+8,n.wbits===0&&(n.wbits=C),C>15||C>n.wbits){e.msg=`invalid window size`,n.mode=wb;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=l&512?ib:ob,l=0,u=0;break;case Xy:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.flags=l,(n.flags&255)!==Jy){e.msg=`unknown compression method`,n.mode=wb;break}if(n.flags&57344){e.msg=`unknown header flags set`,n.mode=wb;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j_(n.check,T,2,0)),l=0,u=0,n.mode=Zy;case Zy:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=j_(n.check,T,4,0)),l=0,u=0,n.mode=Qy;case Qy:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j_(n.check,T,2,0)),l=0,u=0,n.mode=$y;case $y:if(n.flags&1024){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j_(n.check,T,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=eb;case eb:if(n.flags&1024&&(p=n.length,p>s&&(p=s),p&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+p),C)),n.flags&512&&n.wrap&4&&(n.check=j_(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break inf_leave;n.length=0,n.mode=tb;case tb:if(n.flags&2048){if(s===0)break inf_leave;p=0;do C=r[a+ p++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=j_(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.name=null);n.length=0,n.mode=nb;case nb:if(n.flags&4096){if(s===0)break inf_leave;p=0;do C=r[a+ p++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=j_(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.comment=null);n.mode=rb;case rb:if(n.flags&512){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.check&65535)){e.msg=`header crc mismatch`,n.mode=wb;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ob;break;case ib:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}e.adler=n.check=Ab(l),l=0,u=0,n.mode=ab;case ab:if(n.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,Uy;e.adler=n.check=1,n.mode=ob;case ob:if(t===zy||t===By)break inf_leave;case sb:if(n.last){l>>>=u&7,u-=u&7,n.mode=xb;break}for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}switch(n.last=l&1,l>>>=1,--u,l&3){case 0:n.mode=cb;break;case 1:if(Vb(n),n.mode=mb,t===By){l>>>=2,u-=2;break inf_leave}break;case 2:n.mode=db;break;case 3:e.msg=`invalid block type`,n.mode=wb}l>>>=2,u-=2;break;case cb:for(l>>>=u&7,u-=u&7;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if((l&65535)!=(l>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=wb;break}if(n.length=l&65535,l=0,u=0,n.mode=lb,t===By)break inf_leave;case lb:n.mode=ub;case ub:if(p=n.length,p){if(p>s&&(p=s),p>c&&(p=c),p===0)break inf_leave;i.set(r.subarray(a,a+p),o),s-=p,a+=p,c-=p,o+=p,n.length-=p;break}n.mode=ob;break;case db:for(;u<14;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.nlen=(l&31)+257,l>>>=5,u-=5,n.ndist=(l&31)+1,l>>>=5,u-=5,n.ncode=(l&15)+4,l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg=`too many length or distance symbols`,n.mode=wb;break}n.have=0,n.mode=fb;case fb:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.lens[te[n.have++]]=l&7,l>>>=3,u-=3}for(;n.have<19;)n.lens[te[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},w=Py(Fy,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid code lengths set`,n.mode=wb;break}n.have=0,n.mode=pb;case pb:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(y<16)l>>>=_,u-=_,n.lens[n.have++]=y;else{if(y===16){for(ee=_+2;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(l>>>=_,u-=_,n.have===0){e.msg=`invalid bit length repeat`,n.mode=wb;break}C=n.lens[n.have-1],p=3+(l&3),l>>>=2,u-=2}else if(y===17){for(ee=_+3;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=3+(l&7),l>>>=3,u-=3}else{for(ee=_+7;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=11+(l&127),l>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=wb;break}for(;p--;)n.lens[n.have++]=C}}if(n.mode===wb)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=wb;break}if(n.lenbits=9,E={bits:n.lenbits},w=Py(Iy,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid literal/lengths set`,n.mode=wb;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},w=Py(Ly,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,w){e.msg=`invalid distances set`,n.mode=wb;break}if(n.mode=mb,t===By)break inf_leave;case mb:n.mode=hb;case hb:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,Cy(e,f),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,n.mode===ob&&(n.back=-1);break}for(n.back=0;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(v&&!(v&240)){for(b=_,x=v,S=y;g=n.lencode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,n.length=y,v===0){n.mode=bb;break}if(v&32){n.back=-1,n.mode=ob;break}if(v&64){e.msg=`invalid literal/length code`,n.mode=wb;break}n.extra=v&15,n.mode=gb;case gb:if(n.extra){for(ee=n.extra;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=_b;case _b:for(;g=n.distcode[l&(1<<n.distbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(!(v&240)){for(b=_,x=v,S=y;g=n.distcode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,v&64){e.msg=`invalid distance code`,n.mode=wb;break}n.offset=y,n.extra=v&15,n.mode=vb;case vb:if(n.extra){for(ee=n.extra;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=wb;break}n.mode=yb;case yb:if(c===0)break inf_leave;if(p=f-c,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=wb;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),h=n.window}else h=i,m=o-n.offset,p=n.length;p>c&&(p=c),c-=p,n.length-=p;do i[o++]=h[m++];while(--p);n.length===0&&(n.mode=hb);break;case bb:if(c===0)break inf_leave;i[o++]=n.length,c--,n.mode=hb;break;case xb:if(n.wrap){for(;u<32;){if(s===0)break inf_leave;s--,l|=r[a++]<<u,u+=8}if(f-=c,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?j_(n.check,i,f,o-f):k_(n.check,i,f,o-f)),f=c,n.wrap&4&&(n.flags?l:Ab(l))!==n.check){e.msg=`incorrect data check`,n.mode=wb;break}l=0,u=0}n.mode=Sb;case Sb:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.total&4294967295)){e.msg=`incorrect length check`,n.mode=wb;break}l=0,u=0}n.mode=Cb;case Cb:w=Hy;break inf_leave;case wb:w=Gy;break inf_leave;case Tb:return Ky;case Eb:default:return Wy}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,(n.wsize||f!==e.avail_out&&n.mode<wb&&(n.mode<xb||t!==Ry))&&Hb(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?j_(n.check,i,f,e.next_out-f):k_(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===ob?128:0)+(n.mode===mb||n.mode===lb?256:0),(d===0&&f===0||t===Ry)&&w===Vy&&(w=qy),w},inflateEnd:e=>{if(Mb(e))return Wy;let t=e.state;return t.window&&=null,e.state=null,Vy},inflateGetHeader:(e,t)=>{if(Mb(e))return Wy;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,Vy):Wy},inflateSetDictionary:(e,t)=>{let n=t.length,r,i,a;return Mb(e)||(r=e.state,r.wrap!==0&&r.mode!==ab)?Wy:r.mode===ab&&(i=1,i=k_(i,t,n,0),i!==r.check)?Gy:(a=Hb(e,t,n,n),a?(r.mode=Tb,Ky):(r.havedict=1,Vy))},inflateInfo:`pako inflate (from Nodeca project)`};function Wb(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}var Gb=Wb,Kb=Object.prototype.toString,{Z_NO_FLUSH:qb,Z_FINISH:Jb,Z_OK:Yb,Z_STREAM_END:Xb,Z_NEED_DICT:Zb,Z_STREAM_ERROR:Qb,Z_DATA_ERROR:$b,Z_MEM_ERROR:ex}=N_;function tx(e){this.options=Qv.assign({chunkSize:1024*64,windowBits:15,to:``},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new ay,this.strm.avail_out=0;let n=Ub.inflateInit2(this.strm,t.windowBits);if(n!==Yb||(this.header=new Gb,Ub.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary==`string`?t.dictionary=ry.string2buf(t.dictionary):Kb.call(t.dictionary)===`[object ArrayBuffer]`&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Ub.inflateSetDictionary(this.strm,t.dictionary),n!==Yb))))throw Error(M_[n])}tx.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,o,s;if(this.ended)return!1;for(o=t===~~t?t:t===!0?Jb:qb,Kb.call(e)===`[object ArrayBuffer]`?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=Ub.inflate(n,o),a===Zb&&i&&(a=Ub.inflateSetDictionary(n,i),a===Yb?a=Ub.inflate(n,o):a===$b&&(a=Zb));n.avail_in>0&&a===Xb&&n.state.wrap>0&&e[n.next_in]!==0;)Ub.inflateReset(n),a=Ub.inflate(n,o);switch(a){case Qb:case $b:case Zb:case ex:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===Xb))if(this.options.to===`string`){let e=ry.utf8border(n.output,n.next_out),t=n.next_out-e,i=ry.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===Yb&&s===0)){if(a===Xb)return a=Ub.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},tx.prototype.onData=function(e){this.chunks.push(e)},tx.prototype.onEnd=function(e){e===Yb&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=Qv.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function nx(e,t){let n=new tx(t);if(n.push(e),n.err)throw n.msg||M_[n.err];return n.result}function rx(e,t){return t||={},t.raw=!0,nx(e,t)}var ix={Inflate:tx,inflate:nx,inflateRaw:rx,ungzip:nx,constants:N_},{Deflate:ax,deflate:ox,deflateRaw:sx,gzip:cx}=by,{Inflate:lx,inflate:ux,inflateRaw:dx,ungzip:fx}=ix,px=ux,mx=e=>{let t=typeof atob<`u`?atob(e):Buffer.from(e,`base64`).toString(`binary`),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);let r;try{r=px(n)}catch{r=n}return new TextDecoder(`utf-8`).decode(r)},hx=e=>typeof e==`object`&&!!e&&!Array.isArray(e),gx=e=>new Promise(function(t,n){if(typeof window>`u`){t({width:0,height:0});return}let r=new Image;r.onload=()=>{t({width:r.width,height:r.height})},r.onerror=e=>{n(e)},r.src=e}),_x=365.2425,vx=6048e5,yx=864e5,bx=6e4,xx=36e5,Sx=1e3,Cx=3600*24;Cx*7,Cx*_x/12*3;var wx=Symbol.for(`constructDateFrom`);function Tx(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&wx in e?e[wx](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ex(e,t){return Tx(t||e,e)}function Dx(e,t,n){let r=Ex(e,n?.in);return r.setTime(r.getTime()+t*bx),r}var Ox={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},kx=(e,t,n)=>{let r,i=Ox[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function Ax(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var jx={date:Ax({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:Ax({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:Ax({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Mx={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Nx=(e,t,n,r)=>Mx[e];function Px(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var Fx={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Px({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Px({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Px({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Px({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Px({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function Ix(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Rx(s,e=>e.test(o)):Lx(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function Lx(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Rx(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function zx(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Bx={code:`en-US`,formatDistance:kx,formatLong:jx,formatRelative:Nx,localize:Fx,match:{ordinalNumber:zx({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Ix({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Ix({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:Ix({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:Ix({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:Ix({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Vx={};function Hx(){return Vx}function Ux(e){let t=Ex(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Wx(e,...t){let n=Tx.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Gx(e,t){let n=Ex(e,t?.in);return n.setHours(0,0,0,0),n}function Kx(e,t,n){let[r,i]=Wx(n?.in,e,t),a=Gx(r),o=Gx(i),s=+a-Ux(a),c=+o-Ux(o);return Math.round((s-c)/yx)}function qx(e,t){let n=Ex(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Jx(e,t){let n=Ex(e,t?.in);return Kx(n,qx(n))+1}function Yx(e,t){let n=Hx(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Ex(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Xx(e,t){return Yx(e,{...t,weekStartsOn:1})}function Zx(e,t){let n=Ex(e,t?.in),r=n.getFullYear(),i=Tx(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Xx(i),o=Tx(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Xx(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Qx(e,t){let n=Zx(e,t),r=Tx(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xx(r)}function $x(e,t){let n=Ex(e,t?.in),r=Xx(n)-+Qx(n);return Math.round(r/vx)+1}function eS(e,t){let n=Ex(e,t?.in),r=n.getFullYear(),i=Hx(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Tx(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Yx(o,t),c=Tx(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Yx(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function tS(e,t){let n=Hx(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=eS(e,t),a=Tx(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Yx(a,t)}function nS(e,t){let n=Ex(e,t?.in),r=Yx(n,t)-+tS(n,t);return Math.round(r/vx)+1}function rS(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var iS={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return rS(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):rS(n+1,2)},d(e,t){return rS(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return rS(e.getHours()%12||12,t.length)},H(e,t){return rS(e.getHours(),t.length)},m(e,t){return rS(e.getMinutes(),t.length)},s(e,t){return rS(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return rS(Math.trunc(r*10**(n-3)),t.length)}},aS={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},oS={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return iS.y(e,t)},Y:function(e,t,n,r){let i=eS(e,r),a=i>0?i:1-i;return t===`YY`?rS(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):rS(a,t.length)},R:function(e,t){return rS(Zx(e),t.length)},u:function(e,t){return rS(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return rS(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return rS(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return iS.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return rS(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=nS(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):rS(i,t.length)},I:function(e,t,n){let r=$x(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):rS(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):iS.d(e,t)},D:function(e,t,n){let r=Jx(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):rS(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return rS(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return rS(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return rS(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?aS.noon:r===0?aS.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?aS.evening:r>=12?aS.afternoon:r>=4?aS.morning:aS.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return iS.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):iS.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):rS(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):rS(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):iS.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):iS.s(e,t)},S:function(e,t){return iS.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return cS(r);case`XXXX`:case`XX`:return lS(r);default:return lS(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return cS(r);case`xxxx`:case`xx`:return lS(r);default:return lS(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+sS(r,`:`);default:return`GMT`+lS(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+sS(r,`:`);default:return`GMT`+lS(r,`:`)}},t:function(e,t,n){return rS(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return rS(+e,t.length)}};function sS(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+rS(a,2)}function cS(e,t){return e%60==0?(e>0?`-`:`+`)+rS(Math.abs(e)/60,2):lS(e,t)}function lS(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=rS(Math.trunc(r/60),2),a=rS(r%60,2);return n+i+t+a}var uS=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},dS=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},fS={p:dS,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return uS(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,uS(r,t)).replace(`{{time}}`,dS(i,t))}},pS=/^D+$/,mS=/^Y+$/,hS=[`D`,`DD`,`YY`,`YYYY`];function gS(e){return pS.test(e)}function _S(e){return mS.test(e)}function vS(e,t,n){let r=yS(e,t,n);if(console.warn(r),hS.includes(e))throw RangeError(r)}function yS(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function bS(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function xS(e){return!(!bS(e)&&typeof e!=`number`||isNaN(+Ex(e)))}var SS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wS=/^'([^]*?)'?$/,TS=/''/g,ES=/[a-zA-Z]/;function DS(e,t,n){let r=Hx(),i=n?.locale??r.locale??Bx,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Ex(e,n?.in);if(!xS(s))throw RangeError(`Invalid time value`);let c=t.match(CS).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=fS[t];return n(e,i.formatLong)}return e}).join(``).match(SS).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:OS(e)};if(oS[t])return{isToken:!0,value:e};if(t.match(ES))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&_S(a)||!n?.useAdditionalDayOfYearTokens&&gS(a))&&vS(a,t,String(e));let o=oS[a[0]];return o(s,a,i.localize,l)}).join(``)}function OS(e){let t=e.match(wS);return t?t[1].replace(TS,`'`):e}function kS(){return Object.assign({},Hx())}function AS(e,t){let n=jS(t)?new t(0):Tx(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function jS(e){return typeof e==`function`&&e.prototype?.constructor===e}var MS=10,NS=class{subPriority=0;validate(e,t){return!0}},PS=class extends NS{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},FS=class extends NS{priority=MS;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>Tx(t,e))}set(e,t){return t.timestampIsSet?e:Tx(e,AS(e,this.context))}},IS=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new PS(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},LS=class extends IS{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},RS={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},zS={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function BS(e,t){return e&&{value:t(e.value),rest:e.rest}}function VS(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function HS(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*xx+a*bx+o*Sx),rest:t.slice(n[0].length)}}function US(e){return VS(RS.anyDigitsSigned,e)}function WS(e,t){switch(e){case 1:return VS(RS.singleDigit,t);case 2:return VS(RS.twoDigits,t);case 3:return VS(RS.threeDigits,t);case 4:return VS(RS.fourDigits,t);default:return VS(RegExp(`^\\d{1,`+e+`}`),t)}}function GS(e,t){switch(e){case 1:return VS(RS.singleDigitSigned,t);case 2:return VS(RS.twoDigitsSigned,t);case 3:return VS(RS.threeDigitsSigned,t);case 4:return VS(RS.fourDigitsSigned,t);default:return VS(RegExp(`^-?\\d{1,`+e+`}`),t)}}function KS(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function qS(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function JS(e){return e%400==0||e%4==0&&e%100!=0}var YS=class extends IS{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return BS(WS(4,e),r);case`yo`:return BS(n.ordinalNumber(e,{unit:`year`}),r);default:return BS(WS(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=qS(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},XS=class extends IS{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return BS(WS(4,e),r);case`Yo`:return BS(n.ordinalNumber(e,{unit:`year`}),r);default:return BS(WS(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=eS(e,r);if(n.isTwoDigitYear){let t=qS(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Yx(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Yx(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},ZS=class extends IS{priority=130;parse(e,t){return GS(t===`R`?4:t.length,e)}set(e,t,n){let r=Tx(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xx(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},QS=class extends IS{priority=130;parse(e,t){return GS(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},$S=class extends IS{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return WS(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},eC=class extends IS{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return WS(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},tC=class extends IS{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return BS(VS(RS.month,e),r);case`MM`:return BS(WS(2,e),r);case`Mo`:return BS(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},nC=class extends IS{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return BS(VS(RS.month,e),r);case`LL`:return BS(WS(2,e),r);case`Lo`:return BS(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function rC(e,t,n){let r=Ex(e,n?.in),i=nS(r,n)-t;return r.setDate(r.getDate()-i*7),Ex(r,n?.in)}var iC=class extends IS{priority=100;parse(e,t,n){switch(t){case`w`:return VS(RS.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return WS(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Yx(rC(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function aC(e,t,n){let r=Ex(e,n?.in),i=$x(r,n)-t;return r.setDate(r.getDate()-i*7),r}var oC=class extends IS{priority=100;parse(e,t,n){switch(t){case`I`:return VS(RS.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return WS(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Xx(aC(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},sC=[31,28,31,30,31,30,31,31,30,31,30,31],cC=[31,29,31,30,31,30,31,31,30,31,30,31],lC=class extends IS{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return VS(RS.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return WS(t.length,e)}}validate(e,t){let n=JS(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=cC[r]:t>=1&&t<=sC[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},uC=class extends IS{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return VS(RS.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return WS(t.length,e)}}validate(e,t){return JS(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function dC(e,t,n){let r=Ex(e,n?.in);return isNaN(t)?Tx(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function fC(e,t,n){let r=Hx(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Ex(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return dC(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var pC=class extends IS{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=fC(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},mC=class extends IS{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return BS(WS(t.length,e),i);case`eo`:return BS(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=fC(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},hC=class extends IS{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return BS(WS(t.length,e),i);case`co`:return BS(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=fC(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function gC(e,t){let n=Ex(e,t?.in).getDay();return n===0?7:n}function _C(e,t,n){let r=Ex(e,n?.in);return dC(r,t-gC(r,n),n)}var vC=class extends IS{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return WS(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return BS(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return BS(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return BS(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return BS(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=_C(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},yC=class extends IS{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(KS(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},bC=class extends IS{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(KS(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},xC=class extends IS{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(KS(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},SC=class extends IS{priority=70;parse(e,t,n){switch(t){case`h`:return VS(RS.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return WS(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},CC=class extends IS{priority=70;parse(e,t,n){switch(t){case`H`:return VS(RS.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return WS(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},wC=class extends IS{priority=70;parse(e,t,n){switch(t){case`K`:return VS(RS.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return WS(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},TC=class extends IS{priority=70;parse(e,t,n){switch(t){case`k`:return VS(RS.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return WS(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},EC=class extends IS{priority=60;parse(e,t,n){switch(t){case`m`:return VS(RS.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return WS(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},DC=class extends IS{priority=50;parse(e,t,n){switch(t){case`s`:return VS(RS.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return WS(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},OC=class extends IS{priority=30;parse(e,t){return BS(WS(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},kC=class extends IS{priority=10;parse(e,t){switch(t){case`X`:return HS(zS.basicOptionalMinutes,e);case`XX`:return HS(zS.basic,e);case`XXXX`:return HS(zS.basicOptionalSeconds,e);case`XXXXX`:return HS(zS.extendedOptionalSeconds,e);default:return HS(zS.extended,e)}}set(e,t,n){return t.timestampIsSet?e:Tx(e,e.getTime()-Ux(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},AC=class extends IS{priority=10;parse(e,t){switch(t){case`x`:return HS(zS.basicOptionalMinutes,e);case`xx`:return HS(zS.basic,e);case`xxxx`:return HS(zS.basicOptionalSeconds,e);case`xxxxx`:return HS(zS.extendedOptionalSeconds,e);default:return HS(zS.extended,e)}}set(e,t,n){return t.timestampIsSet?e:Tx(e,e.getTime()-Ux(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},jC=class extends IS{priority=40;parse(e){return US(e)}set(e,t,n){return[Tx(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},MC=class extends IS{priority=20;parse(e){return US(e)}set(e,t,n){return[Tx(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`},NC={G:new LS,y:new YS,Y:new XS,R:new ZS,u:new QS,Q:new $S,q:new eC,M:new tC,L:new nC,w:new iC,I:new oC,d:new lC,D:new uC,E:new pC,e:new mC,c:new hC,i:new vC,a:new yC,b:new bC,B:new xC,h:new SC,H:new CC,K:new wC,k:new TC,m:new EC,s:new DC,S:new OC,X:new kC,x:new AC,t:new jC,T:new MC},PC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,FC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IC=/^'([^]*?)'?$/,LC=/''/g,RC=/\S/,zC=/[a-zA-Z]/;function BC(e,t,n,r){let i=()=>Tx(r?.in||n,NaN),a=kS(),o=r?.locale??a.locale??Bx,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():Ex(n,r?.in);let l={firstWeekContainsDate:s,weekStartsOn:c,locale:o},u=[new FS(r?.in,n)],d=t.match(FC).map(e=>{let t=e[0];if(t in fS){let n=fS[t];return n(e,o.formatLong)}return e}).join(``).match(PC),f=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&_S(n)&&vS(n,t,e),!r?.useAdditionalDayOfYearTokens&&gS(n)&&vS(n,t,e);let a=n[0],s=NC[a];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if(s.incompatibleTokens===`*`&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:a,fullToken:n});let r=s.run(e,n,o.match,l);if(!r)return i();u.push(r.setter),e=r.rest}else{if(a.match(zC))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(n===`''`?n=`'`:a===`'`&&(n=VC(n)),e.indexOf(n)===0)e=e.slice(n.length);else return i()}}if(e.length>0&&RC.test(e))return i();let p=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),m=Ex(n,r?.in);if(isNaN(+m))return i();let h={};for(let e of p){if(!e.validate(m,l))return i();let t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return m}function VC(e){return e.match(IC)[1].replace(LC,`'`)}var HC=e=>{let t=BC(e,`yyMMddHHmmssX`,new Date),n=new Date().getTimezoneOffset(),r=Dx(t,-n),i=-n/60;return DS(r,`dd/MM/yyyy HH:mm:ss '${`GMT${i>=0?`+`:``}${i}`}'`)},UC=e=>{let t=M.WAS_NOT_DONE;for(let n of e){if(n===M.ERROR)return M.ERROR;t===M.WAS_NOT_DONE&&n===M.OK&&(t=M.OK)}return t},WC=class{};q([L(),V(br),K(`design:type`,br===void 0?Object:br)],WC.prototype,`light`,void 0),q([I(),Y(()=>Z),R({each:!0}),K(`design:type`,Array)],WC.prototype,`rect`,void 0);var GC=[N.MRZ_TEXT,N.VISUAL_TEXT,N.BARCODE_TEXT],KC=class{};q([I(),V(N),Il(GC),K(`design:type`,Object)],KC.prototype,`type`,void 0),q([I(),U(),K(`design:type`,String)],KC.prototype,`reference`,void 0),q([I(),U(),K(`design:type`,String)],KC.prototype,`result`,void 0),q([I(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],KC.prototype,`location`,void 0);var qC=class{},JC,YC=class extends qC{static{JC=this}static{this.fromPlain=e=>Du(JC,e)}static{this.isBelongs=e=>{let t=e;return Gu.includes(t?.checkType)}}};q([I(),Il(Gu),K(`design:type`,Object)],YC.prototype,`checkType`,void 0),q([L(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],YC.prototype,`location`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],YC.prototype,`diagnose`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],YC.prototype,`checkResult`,void 0),q([I(),H({each:!0}),K(`design:type`,Array)],YC.prototype,`colorValues`,void 0),q([I(),H(),K(`design:type`,Number)],YC.prototype,`rectCount`,void 0),q([I(),H(),K(`design:type`,Number)],YC.prototype,`expectedCount`,void 0),YC=JC=q([J()],YC);var XC,ZC=class extends qC{static{XC=this}static{this.fromPlain=e=>Du(XC,e)}static{this.isBelongs=e=>{let t=e;return Yu.includes(t?.checkType)}}};q([I(),Il(Yu),K(`design:type`,Object)],ZC.prototype,`checkType`,void 0),q([L(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],ZC.prototype,`location`,void 0),q([I(),B(),K(`design:type`,Number)],ZC.prototype,`similarity`,void 0),q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],ZC.prototype,`type`,void 0),q([I(),U(),K(`design:type`,String)],ZC.prototype,`image`,void 0),q([I(),U(),K(`design:type`,String)],ZC.prototype,`referenceImage`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],ZC.prototype,`diagnose`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],ZC.prototype,`checkResult`,void 0),ZC=XC=q([J()],ZC);var QC,$C=class extends qC{static{QC=this}static{this.fromPlain=e=>Du(QC,e)}static{this.isBelongs=e=>{let t=e;return id.includes(t?.checkType)}}};q([I(),Il(id),K(`design:type`,Object)],$C.prototype,`checkType`,void 0),q([L(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],$C.prototype,`location`,void 0),q([I(),U(),K(`design:type`,String)],$C.prototype,`image`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],$C.prototype,`diagnose`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$C.prototype,`checkResult`,void 0),$C=QC=q([J()],$C);var ew,tw=class extends qC{static{ew=this}static{this.fromPlain=e=>Du(ew,e)}static{this.isBelongs=e=>{let t=e;return cd.includes(t?.checkType)}}};q([I(),Il(cd),K(`design:type`,Object)],tw.prototype,`checkType`,void 0),q([L(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],tw.prototype,`location`,void 0),q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],tw.prototype,`feature`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],tw.prototype,`diagnose`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tw.prototype,`checkResult`,void 0),tw=ew=q([J()],tw);var nw,rw=class extends qC{static{nw=this}static{this.fromPlain=e=>Du(nw,e)}static{this.isBelongs=e=>{let t=e;return $u.includes(t?.checkType)}}};q([I(),R(),Y(()=>KC),K(`design:type`,KC===void 0?Object:KC)],rw.prototype,`reference`,void 0),q([I(),Il($u),K(`design:type`,Object)],rw.prototype,`checkType`,void 0),q([I(),R(),Y(()=>WC),K(`design:type`,WC===void 0?Object:WC)],rw.prototype,`location`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],rw.prototype,`checkResult`,void 0),q([I(),V(F),K(`design:type`,F===void 0?Object:F)],rw.prototype,`type`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],rw.prototype,`diagnose`,void 0),rw=nw=q([J()],rw);var iw=e=>{let t=[];return e.forEach(e=>{if(!hx(e)||!(`checkType`in e))return;let{checkType:n}=e;switch(n){case j.UV_FIBERS:t.push(YC.fromPlain(e));break;case j.IMAGE_PATTERN:case j.IR_VISIBILITY:case j.OVI:case j.PORTRAIT_COMPARISON:case j.KINEGRAM:case j.LETTER_SCREEN:case j.HOLOGRAM_DETECTION:case j.FINGERPRINT_COMPARISON:case j.LIVENESS:t.push(ZC.fromPlain(e));break;case j.OCR_SECURITY_TEXT:case j.ENCRYPTED_IPI:t.push(rw.fromPlain(e));break;case j.IPI:t.push($C.fromPlain(e));break;case j.UV_LUMINESCENCE:case j.IR_B900:case j.AXIAL_PROTECTION:case j.PHOTO_EMBED_TYPE:case j.HOLOGRAMS:case j.PHOTO_AREA:case j.BARCODE_FORMAT_CHECK:case j.EXTENDED_OCR_CHECK:case j.EXTENDED_MRZ_CHECK:t.push(tw.fromPlain(e));break}}),t},aw,ow=class{static{aw=this}static{this.fromPlain=e=>Du(aw,e)}};q([I(),V(j),K(`design:type`,j===void 0?Object:j)],ow.prototype,`group`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],ow.prototype,`checkResult`,void 0),q([R({each:!0}),wu(({obj:e})=>iw(e.checks),{toClassOnly:!0}),W(),K(`design:type`,Array)],ow.prototype,`checks`,void 0),ow=aw=q([J()],ow);var sw,cw=class{static{sw=this}static{this.fromPlain=e=>X(sw,e)}static{this.getValidationErrors=e=>G(e)}};q([I(),H(),K(`design:type`,Number)],cw.prototype,`page`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],cw.prototype,`checkResult`,void 0),q([I(),R({each:!0}),Y(()=>ow),K(`design:type`,Array)],cw.prototype,`groups`,void 0),cw=sw=q([J()],cw);var lw=[Vr.PORTRAIT_COMPARISON_VS_CAMERA,Vr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,Vr.PORTRAIT_COMPARISON_EXT_VS_VISUAL,Vr.PORTRAIT_COMPARISON_EXT_VS_RFID,Vr.PORTRAIT_COMPARISON_EXT_VS_CAMERA,Vr.PORTRAIT_COMPARISON_EXT_VS_BARCODE,Vr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA],uw=e=>{let t=md.fromProcessResponse(e),n=[];return t.forEach(e=>{let t=e.AuthenticityCheckList.List,r=cw.fromPlain({checkResult:M.WAS_NOT_DONE,page:e.page_idx??0,groups:[]});t.forEach(e=>{if(Ku.isBelongs(e)&&e.List.forEach(t=>{let n=r.groups.findIndex(e=>e.group===t.Type);n===-1&&(r.groups.push(ow.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),n=r.groups.length-1),r.groups[n].checks.push(YC.fromPlain({colorValues:t.ColorValues,rectCount:t.RectCount,expectedCount:t.ExpectedCount,checkType:t.Type,location:{light:void 0,rect:t.RectArray},diagnose:t.ElementDiagnose??ur.UNKNOWN,checkResult:t.ElementResult??M.WAS_NOT_DONE}))}),Xu.isBelongs(e)&&e.List.forEach(t=>{let n=t.LightIndex;if(lw.includes(t.ElementType))return;let i=r.groups.findIndex(e=>e.group===t.Type);i===-1&&(r.groups.push(ow.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),i=r.groups.length-1),r.groups[i].checks.push(ZC.fromPlain({checkType:t.Type,checkResult:t.ElementResult??M.WAS_NOT_DONE,diagnose:t.ElementDiagnose??ur.UNKNOWN,image:t.Image.image,referenceImage:t.EtalonImage.image,similarity:t.PercentValue??0,type:t.ElementType,location:{light:n,rect:t.Area?[t.Area]:[]}}))}),ed.isBelongs(e)){let t=r.groups.findIndex(t=>t.group===e.Type);e.List.forEach(n=>{t===-1&&(r.groups.push(ow.fromPlain({group:n.Type,checkResult:e.Result,checks:[]})),t=r.groups.length-1),r.groups[t].checks.push(rw.fromPlain({reference:{type:n.EtalonResultType,reference:n.EtalonResultOCR,result:n.SecurityTextResultOCR,location:{light:n.EtalonLightType,rect:n.EtalonFieldRect?[n.EtalonFieldRect]:[]}},checkType:n.Type,checkResult:n.ElementResult??M.WAS_NOT_DONE,type:n.EtalonFieldType,diagnose:n.ElementDiagnose??ur.UNKNOWN,location:{light:n.LightType,rect:n.FieldRect?[n.FieldRect]:[]}}))}),e.List?.length||r.groups.push(ow.fromPlain({group:e.Type,checkResult:e.Result,checks:[]}))}if(ad.isBelongs(e)&&e.List.forEach(t=>{let n=t.LightIndex;if(t.ResultImages?.Images?.length){let i=r.groups.findIndex(e=>e.group===t.Type);i===-1&&(r.groups.push(ow.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),i=r.groups.length-1),r.groups[i].checks.push($C.fromPlain({checkType:t.Type,checkResult:t.ElementResult??M.WAS_NOT_DONE,diagnose:t.ElementDiagnose??ur.UNKNOWN,image:t.ResultImages.Images[0].image,location:n===br.OFF?void 0:{light:n,rect:t.Area?[t.Area]:[]}}))}}),ld.isBelongs(e)){let t=r.groups.findIndex(t=>t.group===e.Type);e.List.forEach(n=>{lw.includes(n.ElementType)||(t===-1&&(r.groups.push(ow.fromPlain({group:n.Type,checkResult:e.Result,checks:[]})),t=r.groups.length-1),r.groups[t].checks.push(tw.fromPlain({checkType:n.Type,checkResult:n.ElementResult??M.WAS_NOT_DONE,diagnose:n.ElementDiagnose??ur.UNKNOWN,feature:n.ElementType??Vr.BLANK,location:{light:void 0,rect:n.ElementRect?[n.ElementRect]:[]}})))}),e.List?.length||r.groups.push(ow.fromPlain({group:e.Type,checkResult:e.Result,checks:[]}))}}),r.groups.forEach(e=>e.checks.sort((e,t)=>e.checkResult-t.checkResult)),r.checkResult=UC(r.groups.map(({checkResult:e})=>e)),r.groups.sort((e,t)=>e.checkResult-t.checkResult),n.push(r)}),n.sort((e,t)=>e.page-t.page)},dw=function(e){return e[e.PORTRAIT=1]=`PORTRAIT`,e[e.CAMERA=2]=`CAMERA`,e[e.RFID=3]=`RFID`,e[e.VISUAL=4]=`VISUAL`,e[e.EXTERNAL=5]=`EXTERNAL`,e[e.BARCODE=6]=`BARCODE`,e}({}),fw,pw=class{static{fw=this}static{this.fromPlain=e=>X(fw,e)}};q([I(),V(dw),K(`design:type`,dw===void 0?Object:dw)],pw.prototype,`source`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],pw.prototype,`checkResult`,void 0),q([I(),B(),K(`design:type`,Number)],pw.prototype,`similarity`,void 0),q([I(),U(),K(`design:type`,String)],pw.prototype,`image`,void 0),pw=fw=q([J()],pw);var mw,hw=class{static{mw=this}static{this.fromPlain=e=>Du(mw,e)}};q([I(),U(),K(`design:type`,String)],hw.prototype,`image`,void 0),q([I(),V(dw),K(`design:type`,dw===void 0?Object:dw)],hw.prototype,`source`,void 0),q([I(),R({each:!0}),Y(()=>pw),K(`design:type`,Array)],hw.prototype,`comparable`,void 0),q([I(),V(ur),K(`design:type`,ur===void 0?Object:ur)],hw.prototype,`diagnose`,void 0),hw=mw=q([J()],hw);var gw=e=>{let t=md.fromProcessResponse(e),n=[];return t.forEach(e=>{e.AuthenticityCheckList.List.forEach(e=>{if(Xu.isBelongs(e)){if(e.Type!==j.PORTRAIT_COMPARISON)return;e.List.forEach(e=>{if(![Vr.PORTRAIT_COMPARISON_VS_CAMERA,Vr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,Vr.PORTRAIT_COMPARISON_EXT_VS_VISUAL,Vr.PORTRAIT_COMPARISON_EXT_VS_RFID,Vr.PORTRAIT_COMPARISON_EXT_VS_CAMERA,Vr.PORTRAIT_COMPARISON_EXT_VS_BARCODE,Vr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(e.ElementType))return;let t=dw.PORTRAIT,r=dw.CAMERA;switch(e.ElementType){case Vr.PORTRAIT_COMPARISON_VS_CAMERA:t=dw.PORTRAIT,r=dw.CAMERA;break;case Vr.PORTRAIT_COMPARISON_RFID_VS_CAMERA:t=dw.RFID,r=dw.CAMERA;break;case Vr.PORTRAIT_COMPARISON_EXT_VS_VISUAL:t=dw.EXTERNAL,r=dw.PORTRAIT;break;case Vr.PORTRAIT_COMPARISON_EXT_VS_RFID:t=dw.EXTERNAL,r=dw.RFID;break;case Vr.PORTRAIT_COMPARISON_EXT_VS_CAMERA:t=dw.EXTERNAL,r=dw.CAMERA;break;case Vr.PORTRAIT_COMPARISON_EXT_VS_BARCODE:t=dw.EXTERNAL,r=dw.BARCODE;break;case Vr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA:t=dw.BARCODE,r=dw.CAMERA;break}let i=[Vr.PORTRAIT_COMPARISON_VS_CAMERA,Vr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,Vr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(e.ElementType),a=n.findIndex(e=>i?e.source===r:e.source===t);a===-1&&(n.push(hw.fromPlain({diagnose:e.ElementDiagnose,source:i?r:t,comparable:[],image:i?e.Image.image:e.EtalonImage.image})),a=n.length-1),n[a].comparable.push(pw.fromPlain({source:i?t:r,checkResult:e.ElementResult,similarity:e.PercentValue,image:i?e.EtalonImage.image:e.Image.image}))})}})}),n},_w=class{};q([I(),B(),K(`design:type`,Number)],_w.prototype,`length`,void 0),q([I(),V(cr),K(`design:type`,cr===void 0?Object:cr)],_w.prototype,`type`,void 0),q([I(),U(),K(`design:type`,String)],_w.prototype,`data`,void 0);var vw=class{};q([I(),B(),K(`design:type`,Number)],vw.prototype,`fieldIndex`,void 0),q([I(),V(lr),K(`design:type`,lr===void 0?Object:lr)],vw.prototype,`type`,void 0),q([I(),V(Zc),K(`design:type`,Zc===void 0?Object:Zc)],vw.prototype,`resultCode`,void 0),q([I(),Y(()=>_w),R({each:!0}),K(`design:type`,Array)],vw.prototype,`modulesData`,void 0);var yw,bw=class{static{yw=this}static{this.fromPlain=e=>X(yw,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>yw.getValidationErrors(e).length===0)}};q([I(),B(),K(`design:type`,Number)],bw.prototype,`pageIndex`,void 0),q([I(),Y(()=>vw),R({each:!0}),K(`design:type`,Array)],bw.prototype,`fields`,void 0),bw=yw=q([J()],bw);var xw=e=>{let t=[];return Dd.fromProcessResponse(e).forEach(e=>{if(!e.DocBarCodeInfo?.pArrayFields?.length)return;let n=new bw;n.pageIndex=e.page_idx??0,n.fields=[],e.DocBarCodeInfo.pArrayFields.map((e,t)=>{let r=new vw;r.fieldIndex=t,r.resultCode=e.bcCodeResult??Zc.NO_ERR,r.type=e.bcType_DECODE??lr.UNKNOWN,r.modulesData=[],e.bcDataModule?.map(e=>{if(e.mLength===void 0||e.mType===void 0||e.mData===void 0)return;let t=new _w;t.data=e.mData,t.length=e.mLength,t.type=e.mType,r.modulesData.push(t)}),n.fields.push(r)}),t.push(n)}),t.filter(e=>!!e.fields.length)},Sw=class{};q([I(),H(),K(`design:type`,Number)],Sw.prototype,`pageIndex`,void 0),q([L(),U(),K(`design:type`,String)],Sw.prototype,`src`,void 0),q([I(),H(),K(`design:type`,Number)],Sw.prototype,`width`,void 0),q([I(),H(),K(`design:type`,Number)],Sw.prototype,`height`,void 0),q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],Sw.prototype,`source`,void 0);var Cw,ww=class{static{Cw=this}static{this.fromPlain=e=>X(Cw,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>!Cw.getValidationErrors(e).length)}};q([I(),V(br),K(`design:type`,br===void 0?Object:br)],ww.prototype,`light`,void 0),q([I(),V(hr),K(`design:type`,hr===void 0?Object:hr)],ww.prototype,`fieldType`,void 0),q([I(),U(),K(`design:type`,String)],ww.prototype,`name`,void 0),q([I(),Y(()=>Sw),R({each:!0}),K(`design:type`,Array)],ww.prototype,`pages`,void 0),ww=Cw=q([J()],ww);var Tw=async(e,t,n)=>{let r=[],i=Mf.fromProcessResponse(e);if(!i.length)return r;let a=Df.fromContainers(i,t);for(let e=0;e<a.length;e++){let t=a[e],{fieldName:i}=t;for(let e=0;e<t.valueList.length;e++){let a=t.valueList[e],{lightIndex:o,pageIndex:s,value:c,containerType:l}=a;if(n&&!n.includes(l))continue;let u=r.findIndex(e=>e.light===o&&e.fieldType===t.fieldType);if(u<0){let e=new ww;e.name=i,e.fieldType=t.fieldType,e.light=o,e.pages=[],u=r.push(e)-1}let d=c?`data:image/jpeg;base64,${c}`:void 0,f={width:0,height:0};d&&(f=await gx(d));let p=new Sw;p.pageIndex=s,p.src=d,p.width=f.width,p.height=f.height,p.source=a.source,r[u].pages.push(p)}}return r},Ew=(e,t,n)=>{let r=[],i=Mf.fromProcessResponse(e);if(!i.length)return r;let a=Df.fromContainers(i,t);for(let e=0;e<a.length;e++){let t=a[e],{fieldName:i}=t;for(let e=0;e<t.valueList.length;e++){let a=t.valueList[e],{lightIndex:o,pageIndex:s,value:c,containerType:l}=a;if(n&&!n.includes(l))continue;let u=r.findIndex(e=>e.light===o&&e.fieldType===t.fieldType);if(u<0){let e=new ww;e.name=i,e.fieldType=t.fieldType,e.light=o,e.pages=[],u=r.push(e)-1}let d=c?`data:image/jpeg;base64,${c}`:void 0,f=new Sw;f.pageIndex=s,f.src=d,f.width=0,f.height=0,f.source=a.source,r[u].pages.push(f)}}return r},Dw,Ow=class{static{Dw=this}static{this.fromPlain=e=>X(Dw,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>Dw.getValidationErrors(e).length===0)}};q([I(),U(),K(`design:type`,String)],Ow.prototype,`src`,void 0),q([I(),H(),K(`design:type`,Number)],Ow.prototype,`width`,void 0),q([I(),H(),K(`design:type`,Number)],Ow.prototype,`height`,void 0),Ow=Dw=q([J()],Ow);var kw=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8Xw8AAoMBgDTD2qgAAAAASUVORK5CYII=`;async function Aw(e,t,n=!0,r){let i=new Ow;i.width=1,i.height=1,i.src=kw;let a=Mf.fromProcessResponse(e);if(!a.length)return n?i:void 0;let o;if(a.forEach(e=>{if(!o)for(let n=0;n<e.Images.fieldList.length;n++){let i=e.Images.fieldList[n];if(i.fieldType===t)for(let e=0;e<i.valueList.length;e++){let t=i.valueList[e];if(r&&r.includes(t.lightIndex)||!r){o=t.value;break}}}}),o){i.src=`data:image/jpeg;base64,${o}`;let e=await gx(i.src);i.width=e.width,i.height=e.height}else if(!n)return;return i}function jw(e,t,n=!0,r){let i=new Ow;i.width=1,i.height=1,i.src=kw;let a=Mf.fromProcessResponse(e);if(!a.length)return n?i:void 0;let o;if(a.forEach(e=>{if(!o)for(let n=0;n<e.Images.fieldList.length;n++){let i=e.Images.fieldList[n];if(i.fieldType===t)for(let e=0;e<i.valueList.length;e++){let t=i.valueList[e];if(r&&r.includes(t.lightIndex)||!r){o=t.value;break}}}}),o)i.src=`data:image/jpeg;base64,${o}`,i.width=0,i.height=0;else if(!n)return;return i}var Mw=class{};q([I(),V(gr),K(`design:type`,gr===void 0?Object:gr)],Mw.prototype,`checkType`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Mw.prototype,`checkResult`,void 0),q([L(),R(),Y(()=>ku),K(`design:type`,ku===void 0?Object:ku)],Mw.prototype,`areas`,void 0);var Nw,Pw=class{static{Nw=this}static{this.fromPlain=e=>X(Nw,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>Nw.getValidationErrors(e).length===0)}};q([I(),B(),K(`design:type`,Number)],Pw.prototype,`pageIndex`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Pw.prototype,`checkResult`,void 0),q([I(),Y(()=>Mw),R({each:!0}),K(`design:type`,Array)],Pw.prototype,`checks`,void 0),Pw=Nw=q([J()],Pw);var Fw=(function(){function e(e){return e}function t(e){return typeof e==`string`?e.toLowerCase():e}function n(n,r){if(r=typeof r==`object`?r:{direction:r},typeof n!=`function`){var i=n;n=function(e){return e[i]?e[i]:``}}if(n.length===1){var a=n,o=r.ignoreCase?t:e,s=r.cmp||function(e,t){return e<t?-1:+(e>t)};n=function(e,t){return s(o(a(e)),o(a(t)))}}return r.direction in{"-1":``,desc:``}?function(e,t){return-n(e,t)}:n}function r(e,t){var i=typeof this==`function`&&!this.firstBy?this:!1,a=n(e,t),o=i?function(e,t){return i(e,t)||a(e,t)}:a;return o.thenBy=r,o}return r.firstBy=r,r})(),Iw=e=>{let t=[];return Tf.fromProcessResponse(e).sort(Fw(e=>e.page_idx)).forEach(e=>{let n=new Pw;n.pageIndex=e.page_idx??0,n.checks=[],n.checkResult=e.ImageQualityCheckList.result,e.ImageQualityCheckList.List.forEach(e=>{if(e.result===void 0||e.type===void 0)return;let t=new Mw;t.checkResult=e.result,t.checkType=e.type,e.areas&&(t.areas=e.areas),n.checks.push(t)}),t.push(n)}),t.filter(e=>e.checks.length)},Lw,Rw=class{static{Lw=this}static{this.fromPlain=e=>X(Lw,e)}static{this.getValidationErrors=e=>G(e)}};q([I(),V(Fr),K(`design:type`,Fr===void 0?Object:Fr)],Rw.prototype,`certificateType`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`publicKeyAlgorithm`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`signatureAlgorithm`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`issuer`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`subject`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`validFrom`,void 0),q([I(),U(),K(`design:type`,String)],Rw.prototype,`validTo`,void 0),Rw=Lw=q([J()],Rw);var zw=(e,t=`UNKNOWN`)=>{let n=nf.fromProcessResponse(e),r=[];return n.forEach(e=>{(e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data)?.SecurityObjects.forEach(e=>{e.SignerInfos.forEach(e=>{e.CertificateChain.forEach(e=>{let n=new Rw;n.certificateType=e.Type??Fr.UNDEFINED,n.publicKeyAlgorithm=e.SubjectPKAlgorithm??t,n.signatureAlgorithm=e.SignatureAlgorithm??t,n.issuer=e.Issuer.FriendlyName.Data??t,n.subject=e.Subject.FriendlyName.Data??t,e.Validity.NotBefore.Data?n.validFrom=HC(e.Validity.NotBefore.Data):n.validFrom=t,e.Validity.NotAfter.Data?n.validTo=HC(e.Validity.NotAfter.Data):n.validTo=t,r.push(n)})})})}),r},Bw=e=>{let t=Zd.fromProcessResponse(e),n=[];if(t.forEach(e=>{e.Status.detailsRFID&&n.push(e.Status.detailsRFID)}),n.length)return n[0];let r=new Kd;return r.AA=M.WAS_NOT_DONE,r.BAC=M.WAS_NOT_DONE,r.CA=M.WAS_NOT_DONE,r.PA=M.WAS_NOT_DONE,r.PACE=M.WAS_NOT_DONE,r.TA=M.WAS_NOT_DONE,r.overallStatus=M.WAS_NOT_DONE,r},Vw=function(e){return e[e.NOT_PERFORMED=Or.RFID_Error_NotPerformed]=`NOT_PERFORMED`,e[e.NOT_AVAILABLE=Or.RFID_Error_NotAvailable]=`NOT_AVAILABLE`,e[e.NO_ERROR=Or.RFID_Error_NoError]=`NO_ERROR`,e[e.FAILED=Or.RFID_Error_Failed]=`FAILED`,e}({}),Hw,Uw=class{static{Hw=this}static{this.fromPlain=e=>X(Hw,e)}static{this.getValidationErrors=e=>G(e)}};q([I(),H(),K(`design:type`,Number)],Uw.prototype,`group`,void 0),q([I(),V(Vw),K(`design:type`,Vw===void 0?Object:Vw)],Uw.prototype,`status`,void 0),Uw=Hw=q([J()],Uw);var Ww=e=>{let t;switch(e){case P.ID_DG1:case P.PASSPORT_DG1:case P.DL_DG1:t=1;break;case P.ID_DG2:case P.PASSPORT_DG2:case P.DL_DG2:t=2;break;case P.ID_DG3:case P.PASSPORT_DG3:case P.DL_DG3:t=3;break;case P.ID_DG4:case P.PASSPORT_DG4:case P.DL_DG4:t=4;break;case P.ID_DG5:case P.PASSPORT_DG5:case P.DL_DG5:t=5;break;case P.ID_DG6:case P.PASSPORT_DG6:case P.DL_DG6:t=6;break;case P.ID_DG7:case P.PASSPORT_DG7:case P.DL_DG7:t=7;break;case P.ID_DG8:case P.PASSPORT_DG8:case P.DL_DG8:t=8;break;case P.ID_DG9:case P.PASSPORT_DG9:case P.DL_DG9:t=9;break;case P.ID_DG10:case P.PASSPORT_DG10:case P.DL_DG10:t=10;break;case P.ID_DG11:case P.PASSPORT_DG11:case P.DL_DG11:t=11;break;case P.ID_DG12:case P.PASSPORT_DG12:case P.DL_DG12:t=12;break;case P.ID_DG13:case P.PASSPORT_DG13:case P.DL_DG13:t=13;break;case P.ID_DG14:case P.PASSPORT_DG14:case P.DL_DG14:t=14;break;case P.ID_DG15:case P.PASSPORT_DG15:t=15;break;case P.ID_DG16:case P.PASSPORT_DG16:t=16;break;case P.ID_DG17:case P.PASSPORT_DG17:case P.DTC_DG17:t=17;break;case P.ID_DG18:case P.PASSPORT_DG18:case P.DTC_DG18:t=18;break;case P.ID_DG19:case P.PASSPORT_DG19:t=19;break;case P.ID_DG20:case P.PASSPORT_DG20:t=20;break;case P.ID_DG21:t=21;break;case P.DTC_DG22:t=22;break;case P.DTC_DG23:t=23;break;case P.DTC_DG24:t=24;break}return t},Gw=e=>{let t=nf.fromProcessResponse(e),n=[];return t.forEach(e=>{let t=e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data,r=e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_ePassp_Directory||[];t?.Applications.forEach((e,t,i)=>{let a=e.Type,o=[];if(!(a===jr.eDTC_PC&&i.length>1)&&(e.Files.forEach(e=>{let t=e.Type,n=Ww(t),r=Vw.NOT_AVAILABLE;switch(e.PA_Status){case Or.RFID_Error_NoError:r=Vw.NO_ERROR;break;case Or.RFID_Error_NotPerformed:r=Vw.NOT_PERFORMED;break;case Or.RFID_Error_NotAvailable:r=Vw.NOT_AVAILABLE;break;case Or.RFID_Error_Failed:r=Vw.FAILED;break}n&&o.push({index:n,status:r})}),r.forEach(e=>{let t=Ww(e),n=o.findIndex(e=>e.index===t);t!==void 0&&n<0&&o.push({index:t,status:Vw.NOT_PERFORMED})}),o.length)){let e=o.sort((e,t)=>e.index-t.index),t=0;switch(a){case jr.E_PASSPORT:t=16;break;case jr.E_ID:t=21;break;case jr.E_DL:t=14;break;default:{let n=e.map(e=>e.index),r=Math.max(...n);t=n.includes(2)&&n.includes(3)&&n.includes(8)&&r<=8?8:n.includes(1)&&n.includes(2)&&n.includes(6)&&n.includes(10)&&r<=10?10:r;break}}for(let n=1;n<=t;n++)e.find(e=>e.index===n)||e.splice(n-1,0,{index:n,status:Vw.NOT_AVAILABLE});n=e.map(e=>{let t=new Uw;return t.group=e.index,t.status=e.status,t})}})}),n},Kw=class{};q([I(),V(P),K(`design:type`,P===void 0?Object:P)],Kw.prototype,`group`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],Kw.prototype,`status`,void 0);var qw,Jw=class{static{qw=this}static{this.fromPlain=e=>X(qw,e)}static{this.getValidationErrors=e=>G(e)}};q([I(),V(jr),K(`design:type`,jr===void 0?Object:jr)],Jw.prototype,`type`,void 0),q([I(),Y(()=>Kw),R({each:!0}),K(`design:type`,Array)],Jw.prototype,`groups`,void 0),Jw=qw=q([J()],Jw);var Yw=e=>{let t=nf.fromProcessResponse(e),n=[];return t.forEach(e=>{(e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data)?.Applications.forEach(e=>{let t={type:e.Type,groups:[]};e.Files.forEach(e=>{let n=e.Type,r=M.WAS_NOT_DONE;switch(e.PA_Status){case Or.RFID_Error_NotPerformed:case Or.RFID_Error_NotAvailable:r=M.WAS_NOT_DONE;break;case Or.RFID_Error_NoError:r=M.OK;break;default:r=M.ERROR;break}t.groups.push({group:n,status:r})}),n.push(t)})}),n},Xw=function(e){return e.DOC_TYPE=`DOC_TYPE`,e.EXPIRY=`EXPIRY`,e.IMAGE_QA=`IMAGE_QA`,e.MRZ=`MRZ`,e.SECURITY=`SECURITY`,e.TEXT=`TEXT`,e}({}),Zw=function(e){return e.AA=`AA`,e.BAC=`BAC`,e.CA=`CA`,e.PA=`PA`,e.PACE=`PACE`,e.TA=`TA`,e}({}),Qw=function(e){return e.OPTICAL=`optical`,e.PORTRAIT=`portrait`,e.RFID=`rfid`,e.STOP_LIST=`stopList`,e}({}),$w=class{static{Xw.DOC_TYPE,Xw.EXPIRY,Xw.IMAGE_QA,Xw.MRZ,Xw.SECURITY,Xw.TEXT}};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],$w.prototype,null,void 0);var eT=class{static{Qw.OPTICAL,Qw.PORTRAIT,Qw.RFID,Qw.STOP_LIST}};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],eT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],eT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],eT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],eT.prototype,null,void 0);var tT=class{static{Zw.AA,Zw.BAC,Zw.CA,Zw.PACE,Zw.PA,Zw.TA}};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],tT.prototype,null,void 0);var nT,rT=class{static{nT=this}static{this.fromPlain=e=>X(nT,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>nT.getValidationErrors(e).length===0)}};q([I(),V(M),K(`design:type`,M===void 0?Object:M)],rT.prototype,`overallStatus`,void 0),q([I(),Y(()=>$w),R(),K(`design:type`,$w===void 0?Object:$w)],rT.prototype,`optical`,void 0),q([I(),Y(()=>tT),R(),K(`design:type`,tT===void 0?Object:tT)],rT.prototype,`rfId`,void 0),q([I(),Y(()=>eT),R(),K(`design:type`,eT===void 0?Object:eT)],rT.prototype,`summary`,void 0),rT=nT=q([J()],rT);var iT=e=>{let t=new rT,n=Zd.fromProcessResponse(e);if(t.overallStatus=M.WAS_NOT_DONE,!n.length)return t.optical=new $w,t.optical[Xw.DOC_TYPE]=M.WAS_NOT_DONE,t.optical[Xw.TEXT]=M.WAS_NOT_DONE,t.optical[Xw.SECURITY]=M.WAS_NOT_DONE,t.optical[Xw.MRZ]=M.WAS_NOT_DONE,t.optical[Xw.IMAGE_QA]=M.WAS_NOT_DONE,t.optical[Xw.EXPIRY]=M.WAS_NOT_DONE,t.rfId=new tT,t.rfId[Zw.AA]=M.WAS_NOT_DONE,t.rfId[Zw.BAC]=M.WAS_NOT_DONE,t.rfId[Zw.CA]=M.WAS_NOT_DONE,t.rfId[Zw.PA]=M.WAS_NOT_DONE,t.rfId[Zw.PACE]=M.WAS_NOT_DONE,t.rfId[Zw.TA]=M.WAS_NOT_DONE,t.summary=new eT,t.summary[Qw.OPTICAL]=M.WAS_NOT_DONE,t.summary[Qw.PORTRAIT]=M.WAS_NOT_DONE,t.summary[Qw.RFID]=M.WAS_NOT_DONE,t.summary[Qw.STOP_LIST]=M.WAS_NOT_DONE,t;let r=n[0].Status;return t.overallStatus=r.overallStatus,t.optical=new $w,t.optical[Xw.DOC_TYPE]=r.detailsOptical.docType??M.WAS_NOT_DONE,t.optical[Xw.TEXT]=r.detailsOptical.text??M.WAS_NOT_DONE,t.optical[Xw.SECURITY]=r.detailsOptical.security??M.WAS_NOT_DONE,t.optical[Xw.MRZ]=r.detailsOptical.mrz??M.WAS_NOT_DONE,t.optical[Xw.IMAGE_QA]=r.detailsOptical.imageQA??M.WAS_NOT_DONE,t.optical[Xw.EXPIRY]=r.detailsOptical.expiry??M.WAS_NOT_DONE,t.rfId=new tT,t.rfId[Zw.AA]=r.detailsRFID?.AA??M.WAS_NOT_DONE,t.rfId[Zw.BAC]=r.detailsRFID?.BAC??M.WAS_NOT_DONE,t.rfId[Zw.CA]=r.detailsRFID?.CA??M.WAS_NOT_DONE,t.rfId[Zw.PA]=r.detailsRFID?.PA??M.WAS_NOT_DONE,t.rfId[Zw.PACE]=r.detailsRFID?.PACE??M.WAS_NOT_DONE,t.rfId[Zw.TA]=r.detailsRFID?.TA??M.WAS_NOT_DONE,t.summary=new eT,t.summary[Qw.OPTICAL]=r.optical??M.WAS_NOT_DONE,t.summary[Qw.PORTRAIT]=r.portrait??M.WAS_NOT_DONE,t.summary[Qw.RFID]=r.rfid??M.WAS_NOT_DONE,t.summary[Qw.STOP_LIST]=r.stopList??M.WAS_NOT_DONE,t},aT=(e,t)=>e.reduce((e,n)=>e===M.ERROR||t(n)===M.ERROR?M.ERROR:e===M.WAS_NOT_DONE&&t(n)===M.OK?M.OK:M.WAS_NOT_DONE,M.WAS_NOT_DONE),oT=e=>{let t=new rT;return t.overallStatus=aT(e,e=>e.overallStatus),t.optical=new $w,t.optical[Xw.DOC_TYPE]=aT(e,e=>e.optical[Xw.DOC_TYPE]),t.optical[Xw.TEXT]=aT(e,e=>e.optical[Xw.TEXT]),t.optical[Xw.SECURITY]=aT(e,e=>e.optical[Xw.SECURITY]),t.optical[Xw.MRZ]=aT(e,e=>e.optical[Xw.MRZ]),t.optical[Xw.IMAGE_QA]=aT(e,e=>e.optical[Xw.IMAGE_QA]),t.optical[Xw.EXPIRY]=aT(e,e=>e.optical[Xw.EXPIRY]),t.rfId=new tT,t.rfId[Zw.AA]=aT(e,e=>e.rfId[Zw.AA]),t.rfId[Zw.BAC]=aT(e,e=>e.rfId[Zw.BAC]),t.rfId[Zw.CA]=aT(e,e=>e.rfId[Zw.CA]),t.rfId[Zw.PA]=aT(e,e=>e.rfId[Zw.PA]),t.rfId[Zw.PACE]=aT(e,e=>e.rfId[Zw.PACE]),t.rfId[Zw.TA]=aT(e,e=>e.rfId[Zw.TA]),t.summary=new eT,t.summary[Qw.OPTICAL]=aT(e,e=>e.summary[Qw.OPTICAL]),t.summary[Qw.PORTRAIT]=aT(e,e=>e.summary[Qw.PORTRAIT]),t.summary[Qw.RFID]=aT(e,e=>e.summary[Qw.RFID]),t.summary[Qw.STOP_LIST]=aT(e,e=>e.summary[Qw.STOP_LIST]),t},sT,cT=class{static{sT=this}static{this.fromPlain=e=>X(sT,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>sT.getValidationErrors(e).length===0)}};q([I(),B(),K(`design:type`,Number)],cT.prototype,`pageIndex`,void 0),q([I(),U(),K(`design:type`,String)],cT.prototype,`documentName`,void 0),q([I(),z(),K(`design:type`,Boolean)],cT.prototype,`isDeprecated`,void 0),q([I(),B(),K(`design:type`,Number)],cT.prototype,`probability`,void 0),q([I(),B(),K(`design:type`,Number)],cT.prototype,`documentId`,void 0),q([L(),U(),K(`design:type`,String)],cT.prototype,`documentCategory`,void 0),cT=sT=q([J()],cT);function lT(e){let t=Uf.fromProcessResponse(e),n=[];for(let e=0;e<t.length;e++){let r=t[e];r.OneCandidate?.DocumentName&&n.push(cT.fromPlain({documentName:r.OneCandidate.DocumentName,pageIndex:r.page_idx??0,isDeprecated:r.OneCandidate.FDSIDList?.isDeprecated,documentId:r.OneCandidate.ID,probability:r.OneCandidate.P,documentCategory:r.OneCandidate.FDSIDList?.dDescription}))}return n}var uT,dT=class{static{uT=this}static{this.fromPlain=e=>X(uT,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>uT.getValidationErrors(e).length===0)}};q([I(),U(),K(`design:type`,String)],dT.prototype,`value`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],dT.prototype,`checkResult`,void 0),q([I(),V(yr),K(`design:type`,yr===void 0?Object:yr)],dT.prototype,`lcid`,void 0),dT=uT=q([J()],dT);var fT=(e,t=`UNKNOWN`)=>{let n=np.fromProcessResponse(e),r=dT.fromPlain({value:t,checkResult:M.ERROR,lcid:yr.LATIN});if(!n.length)return r;for(let e=0;e<n.length;e++){let{Text:t}=n[e],r=t.fieldList.findIndex(e=>e.lcid===yr.LATIN&&e.fieldType===F.SURNAME_AND_GIVEN_NAMES);if(r!==-1){let e=t.fieldList[r];return dT.fromPlain({value:e.value,checkResult:e.status,lcid:e.lcid})}}for(let e=0;e<n.length;e++){let{Text:t}=n[e];for(let e=0;e<t.fieldList.length;e++){let n=t.fieldList[e];if(n.fieldType===F.SURNAME_AND_GIVEN_NAMES&&n.value)return dT.fromPlain({value:n.value,checkResult:n.status,lcid:n.lcid})}}return r},pT=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],pT.prototype,`source`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],pT.prototype,`checkResult`,void 0),q([I(),U(),K(`design:type`,String)],pT.prototype,`value`,void 0),q([I(),K(`design:type`,Number)],pT.prototype,`probability`,void 0),q([I(),K(`design:type`,Number)],pT.prototype,`pageIndex`,void 0),q([L(),Y(()=>Z),R(),K(`design:type`,Z===void 0?Object:Z)],pT.prototype,`rect`,void 0),q([L(),Y(()=>Mu),R(),K(`design:type`,Mu===void 0?Object:Mu)],pT.prototype,`rfidOrigin`,void 0);var mT=class{};q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],mT.prototype,`sourceLeft`,void 0),q([I(),V(Hr),K(`design:type`,Hr===void 0?Object:Hr)],mT.prototype,`sourceRight`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],mT.prototype,`status`,void 0);var hT,gT=class{static{hT=this}static{this.fromPlain=e=>X(hT,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>hT.getValidationErrors(e).length===0)}};q([I(),V(F),K(`design:type`,F===void 0?Object:F)],gT.prototype,`type`,void 0),q([I(),U(),K(`design:type`,String)],gT.prototype,`value`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],gT.prototype,`checkResult`,void 0),q([I(),V(yr),K(`design:type`,yr===void 0?Object:yr)],gT.prototype,`lcid`,void 0),q([I(),R({each:!0}),Y(()=>mT),K(`design:type`,Array)],gT.prototype,`comparisonList`,void 0),q([I(),Y(()=>pT),R({each:!0}),K(`design:type`,Array)],gT.prototype,`bySource`,void 0),gT=hT=q([J()],gT);var _T=e=>{let t=[],n=np.fromProcessResponse(e);return n.length&&n.forEach(e=>{e.Text.fieldList.forEach(e=>{let n=new gT;n.type=e.fieldType,n.value=e.value,n.lcid=e.lcid,n.checkResult=e.status,n.comparisonList=e.comparisonList?.map(e=>{let t=new mT;return t.sourceLeft=e.sourceLeft,t.sourceRight=e.sourceRight,t.status=e.status,t})||[],n.bySource=[],e.valueList.forEach(t=>{let r=new pT;r.checkResult=e.validityList.find(e=>e.source===t.source)?.status??M.WAS_NOT_DONE,r.source=t.source,r.value=t?.value??``,r.pageIndex=t?.pageIndex??0,r.probability=t?.probability??0,t.fieldRect&&(r.rect=t.fieldRect),t.rfidOrigin&&(r.rfidOrigin=t.rfidOrigin),n.bySource.push(r)}),n.bySource.length&&t.push(n)})}),t},vT,yT=class{static{vT=this}static{this.fromPlain=e=>X(vT,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>Array.isArray(e)?e.every(e=>vT.getValidationErrors(e).length===0):vT.getValidationErrors(e).length===0}};q([I(),U(),K(`design:type`,String)],yT.prototype,`value`,void 0),q([I(),V(M),K(`design:type`,M===void 0?Object:M)],yT.prototype,`status`,void 0),q([I(),V(yr),K(`design:type`,yr===void 0?Object:yr)],yT.prototype,`lcid`,void 0),yT=vT=q([J()],yT);function bT(e,t){let n=np.fromProcessResponse(e),r=[];for(let e=0;e<n.length;e++)n[e].Text.fieldList.forEach(e=>{e.fieldType===t&&r.push(yT.fromPlain({value:e.value,status:e.status,lcid:e.lcid}))});return r.sort((e,t)=>e.lcid-t.lcid)}function xT(e){return bT(e,F.DATE_OF_EXPIRY)}function ST(e){return bT(e,F.ISSUING_STATE_NAME)}function CT(e){return bT(e,F.DOCUMENT_NUMBER)}function wT(e){return bT(e,F.AGE)}function TT(e){return bT(e,F.NATIONALITY_CODE)}function ET(e){return bT(e,F.SEX)}var DT=class extends TypeError{constructor(e,t){super(e),this.name=`DocReaderTypeError`,this.message=e,this.errors=t}};if(!l)throw Error(`reflect-metadata polyfill failed to load`);exports.AreaArray=ku,exports.AuthenticityCheckList=dd,Object.defineProperty(exports,"AuthenticityCheckListContainer",{enumerable:!0,get:function(){return md}}),exports.AuthenticityCheckListContainerResultTypes=pd,Object.defineProperty(exports,"AuthenticityFibersTypeCheckResult",{enumerable:!0,get:function(){return Ku}}),exports.AuthenticityFibersTypeCheckResultTypes=Gu,Object.defineProperty(exports,"AuthenticityIdentCheckResult",{enumerable:!0,get:function(){return Xu}}),exports.AuthenticityIdentCheckResultTypes=Yu,Object.defineProperty(exports,"AuthenticityOCRSecurityTextCheckResult",{enumerable:!0,get:function(){return ed}}),exports.AuthenticityOCRSecurityTextCheckResultTypes=$u,Object.defineProperty(exports,"AuthenticityPhotoIdentCheckResult",{enumerable:!0,get:function(){return ad}}),exports.AuthenticityPhotoIdentCheckResultTypes=id,Object.defineProperty(exports,"AuthenticitySecurityFeatureCheckResult",{enumerable:!0,get:function(){return ld}}),exports.AuthenticitySecurityFeatureCheckResultTypes=cd,exports.AuthenticityTextCheckReferenceTypes=GC,Object.defineProperty(exports,"BSIv2Container",{enumerable:!0,get:function(){return im}}),exports.BSIv2ContainerResultTypes=rm,Object.defineProperty(exports,"BarcodeBoundsResultContainer",{enumerable:!0,get:function(){return bd}}),exports.BarcodeBoundsResultContainerResultTypes=yd,exports.BinaryData=Q,exports.BoundsResult=Au,Object.defineProperty(exports,"BoundsResultContainer",{enumerable:!0,get:function(){return _d}}),exports.BoundsResultContainerResultTypes=gd,Object.defineProperty(exports,"ByteArrayContainer",{enumerable:!0,get:function(){return Hp}}),exports.ByteArrayContainerResultTypes=Vp,exports.CertificateData=Md,exports.ContainerList=lm,exports.DetailsAge=qd,exports.DetailsOptical=Gd,exports.DetailsRFID=Kd,exports.DocBarCodeField=Cd,exports.DocBarCodeInfo=wd,Object.defineProperty(exports,"DocBarCodeInfoContainer",{enumerable:!0,get:function(){return Dd}}),exports.DocBarCodeInfoContainerResultTypes=Ed,exports.DocBinaryInfo=$d,Object.defineProperty(exports,"DocBinaryInfoContainer",{enumerable:!0,get:function(){return nf}}),exports.DocBinaryInfoContainerResultTypes=tf,exports.DocGraphicField=rf,exports.DocGraphicsInfo=af,Object.defineProperty(exports,"DocGraphicsInfoContainer",{enumerable:!0,get:function(){return cf}}),exports.DocGraphicsInfoContainerResultTypes=sf,exports.DocReaderTypeError=DT,exports.DocVisualExtendedField=pf,exports.DocVisualExtendedInfo=mf,Object.defineProperty(exports,"DocVisualExtendedInfoContainer",{enumerable:!0,get:function(){return _f}}),exports.DocVisualExtendedInfoContainerResultTypes=gf,Object.defineProperty(exports,"DocumentTypesCandidatesContainer",{enumerable:!0,get:function(){return Sp}}),exports.DocumentTypesCandidatesContainerResultTypes=xp,exports.DocumentTypesCandidatesList=yp,exports.DocumentsDatabase=Sm,Object.defineProperty(exports,"EncryptedRCLContainer",{enumerable:!0,get:function(){return bf}}),exports.EncryptedRCLContainerResultTypes=yf,exports.ErrorCoordinates=dp,exports.FDSIDList=Nu,exports.FaceApi=dm,exports.FaceApiSearch=um,exports.FaceDetection=Ap,Object.defineProperty(exports,"FaceDetectionContainer",{enumerable:!0,get:function(){return Np}}),exports.FaceDetectionContainerResultTypes=Mp,exports.FaceItem=kp,Object.defineProperty(exports,"FibersType",{enumerable:!0,get:function(){return Hu}}),exports.FieldItem=fp,exports.FileImage=Pp,exports.GraphData=Fp,exports.IdentResult=qu,exports.ImageData=ju,exports.ImageField=Df,exports.ImageFieldValue=Ef,exports.ImageQA=fm,exports.ImageQualityCheck=xf,exports.ImageQualityCheckList=Sf,Object.defineProperty(exports,"ImageQualityCheckListContainer",{enumerable:!0,get:function(){return Tf}}),exports.ImageQualityCheckListContainerResultTypes=wf,exports.ImageSource=Of,exports.ImagesResult=kf,Object.defineProperty(exports,"ImagesResultContainer",{enumerable:!0,get:function(){return Mf}}),exports.ImagesResultContainerResultTypes=jf,exports.IsStringObjectRecord=_m,Object.defineProperty(exports,"LicenseContainer",{enumerable:!0,get:function(){return Ff}}),exports.LicenseContainerResultTypes=Pf,Object.defineProperty(exports,"ListVerifiedFieldContainer",{enumerable:!0,get:function(){return Bf}}),exports.ListVerifiedFieldContainerResultTypes=zf,exports.ListVerifiedFields=Lf,exports.LivenessParams=hm,Object.defineProperty(exports,"MDLContainer",{enumerable:!0,get:function(){return sm}}),exports.MDLContainerResultTypes=om,Object.defineProperty(exports,"MRZDetectorContainer",{enumerable:!0,get:function(){return Op}}),exports.MRZDetectorContainerResultTypes=Dp,Object.defineProperty(exports,"MRZPositionContainer",{enumerable:!0,get:function(){return up}}),exports.MRZPositionContainerResultTypes=lp,exports.MRZRowsItem=wp,exports.MRZTestQuality=hp,Object.defineProperty(exports,"MRZTestQualityContainer",{enumerable:!0,get:function(){return vp}}),exports.MRZTestQualityContainerResultTypes=_p,exports.OCRSecurityTextResult=Zu,exports.OneCandidate=Pu,Object.defineProperty(exports,"OneCandidateContainer",{enumerable:!0,get:function(){return Uf}}),exports.OneCandidateContainerResultTypes=Hf,exports.PerDocumentConfig=pm,exports.PhotoIdentResult=nd,exports.Point=pu,exports.PointArray=Ou,exports.ProcessParams=$,exports.ProcessParamsAuth=gm,exports.ProcessParamsRfid=mm,Object.defineProperty(exports,"ProcessRequest",{enumerable:!0,get:function(){return xm}}),exports.ProcessRequestImage=vm,Object.defineProperty(exports,"ProcessResponse",{enumerable:!0,get:function(){return xg}}),exports.ProcessSystemInfo=ym,Object.defineProperty(exports,"RAuthenticityCheckGroup",{enumerable:!0,get:function(){return ow}}),Object.defineProperty(exports,"RAuthenticityCheckGroupsItem",{enumerable:!0,get:function(){return cw}}),Object.defineProperty(exports,"RAuthenticityFibersCheck",{enumerable:!0,get:function(){return YC}}),Object.defineProperty(exports,"RAuthenticityIdentCheck",{enumerable:!0,get:function(){return ZC}}),Object.defineProperty(exports,"RAuthenticityPhotoIdentCheck",{enumerable:!0,get:function(){return $C}}),Object.defineProperty(exports,"RAuthenticitySecurityCheck",{enumerable:!0,get:function(){return tw}}),Object.defineProperty(exports,"RAuthenticityTextCheck",{enumerable:!0,get:function(){return rw}}),exports.RAuthenticityTextCheckReference=KC,Object.defineProperty(exports,"RDetailedStatus",{enumerable:!0,get:function(){return rT}}),exports.RDetailedStatusOptical=$w,exports.RDetailedStatusRfid=tT,exports.RDetailedStatusSummary=eT,Object.defineProperty(exports,"RDocumentBarcode",{enumerable:!0,get:function(){return bw}}),exports.RDocumentBarcodeField=vw,exports.RDocumentBarcodeModuleData=_w,Object.defineProperty(exports,"RDocumentIdentification",{enumerable:!0,get:function(){return cT}}),Object.defineProperty(exports,"RDocumentImage",{enumerable:!0,get:function(){return ww}}),exports.RDocumentImagePage=Sw,exports.RFIDDocVisualExtendedField=rp,exports.RFIDDocVisualExtendedInfo=ip,Object.defineProperty(exports,"RFIDGraphicsInfoContainer",{enumerable:!0,get:function(){return zp}}),exports.RFIDGraphicsInfoContainerResultTypes=Rp,Object.defineProperty(exports,"RFIDTextDataContainer",{enumerable:!0,get:function(){return sp}}),exports.RFIDTextDataContainerResultTypes=op,Object.defineProperty(exports,"RGraphicField",{enumerable:!0,get:function(){return Ow}}),Object.defineProperty(exports,"RImageQuality",{enumerable:!0,get:function(){return Pw}}),exports.RImageQualityCheck=Mw,exports.RLocation=WC,Object.defineProperty(exports,"RNameSurname",{enumerable:!0,get:function(){return dT}}),Object.defineProperty(exports,"RPortraitComparisonComparable",{enumerable:!0,get:function(){return pw}}),Object.defineProperty(exports,"RPortraitsComparison",{enumerable:!0,get:function(){return hw}}),Object.defineProperty(exports,"RRfidApplicationItem",{enumerable:!0,get:function(){return Jw}}),Object.defineProperty(exports,"RRfidCertificate",{enumerable:!0,get:function(){return Rw}}),Object.defineProperty(exports,"RRfidDataGroupStatus",{enumerable:!0,get:function(){return Uw}}),exports.RRfidDataGroupStatusItem=Kw,Object.defineProperty(exports,"RTextData",{enumerable:!0,get:function(){return gT}}),exports.RTextDataComparison=mT,exports.RTextDataSource=pT,Object.defineProperty(exports,"RTextFieldValue",{enumerable:!0,get:function(){return yT}}),Object.defineProperty(exports,"RawImageContainer",{enumerable:!0,get:function(){return Kf}}),exports.RawImageContainerList=td,exports.RawImageContainerResultTypes=Gf,exports.Rect=Z,exports.ResultMRZDetector=Tp,exports.RfidAccessControlInfo=kd,exports.RfidAccessKey=Ad,exports.RfidApplication=Fd,exports.RfidAttributeData=Ld,exports.RfidAttributeName=Lu,exports.RfidCardPropertiesExt=Id,exports.RfidCertificateEx=Bd,exports.RfidDG1=Od,exports.RfidDataFile=Pd,exports.RfidDistinguishedName=Ru,exports.RfidOrigin=Mu,exports.RfidParsedData=jd,exports.RfidPkiExtension=Rd,exports.RfidRawData=Qd,exports.RfidSecurityObject=Hd,exports.RfidSecurityObjectCertificates=Nd,exports.RfidSession=Wd,exports.RfidSignerInfoEx=Vd,exports.RfidTerminal=Ud,exports.RfidValidity=zd,exports.SecurityFeatureCheck=od,exports.Status=Jd,Object.defineProperty(exports,"StatusContainer",{enumerable:!0,get:function(){return Zd}}),exports.StatusContainerResultTypes=Xd,exports.StringItem=mp,exports.StringRecognitionResult=df,exports.Symbol=Cp,exports.SymbolCandidate=lf,exports.SymbolEstimationItem=pp,exports.SymbolRecognitionResult=uf,exports.TOriginalRFIDGraphicsInfo=Ip,exports.TextComparison=qf,exports.TextField=Zf,exports.TextFieldValue=Yf,exports.TextResult=$f,Object.defineProperty(exports,"TextResultContainer",{enumerable:!0,get:function(){return np}}),exports.TextResultContainerResultTypes=tp,exports.TextSource=Qf,exports.TextSymbol=Jf,exports.TextValidity=Xf,exports.TipDecodeModule=xd,exports.TipPDF417Info=Sd,exports.TransactionInfo=Cm,exports.TrfFtBytes=Fu,exports.TrfFtString=Iu,Object.defineProperty(exports,"VDSContainer",{enumerable:!0,get:function(){return qp}}),exports.VDSContainerResultTypes=Kp,exports.VDSData=Wp,Object.defineProperty(exports,"VDSNCContainer",{enumerable:!0,get:function(){return tm}}),exports.VDSNCContainerResultTypes=em,exports.VDSNCData=Qp,exports.VerifiedFieldMap=If,exports.aContainer=zu,exports.aVisualExtendedFieldItem=ff,exports.convertGeneralizedDateToLocal=HC,exports.decode=mx,exports.eAuthenticity=j,exports.eBarCodeDetectionType=Xc,exports.eBarCodeModuleType=cr,exports.eBarCodeResultCodes=Zc,exports.eBarCodeType=lr,exports.eCheckDiagnose=ur,exports.eCheckResult=M,exports.eDataGroupReadStatus=Vw,exports.eDocFormat=fr,exports.eDocType=pr,exports.eDocumentTypeRecognitionResult=mr,exports.eFieldVerificationResult=Wr,exports.eGraphicFieldType=hr,exports.eIRVisibilityFlag=Gr,exports.eImageQualityCheckType=gr,exports.eInputBarcodeType=_r,exports.eInputImageQualityChecks=vr,exports.eLCID=yr,exports.eLDSParsingErrorCodes=Tr,exports.eLDSParsingNotificationCodes=Er,exports.eLights=br,exports.eLogLevel=xr,exports.eMRZDetectMode=wr,exports.eMRZFormat=Sr,exports.eMeasureSystem=Cr,exports.eOpticalStatusField=Xw,exports.ePortraitComparisonSource=dw,exports.eProcessingStatus=Dr,exports.eResult=N,exports.eResultType=N,exports.eRfidAChip=kr,exports.eRfidAccessControlProcedureType=Ar,exports.eRfidApplicationType=jr,exports.eRfidAuthenticationProcedureType=Mr,exports.eRfidBaudRate=Nr,exports.eRfidCertificateOrigin=Pr,exports.eRfidCertificateType=Fr,exports.eRfidDataFileType=P,exports.eRfidErrorCodes=Or,exports.eRfidFileIdType=Qc,exports.eRfidOriginalGraphicsType=$c,exports.eRfidPasswordType=Lr,exports.eRfidPresence=Ir,exports.eRfidStatusField=Zw,exports.eRfidTerminalAuthorizationRequirement=qc,exports.eRfidTerminalType=Rr,exports.eRfidType=zr,exports.eRfidVisualFieldType=el,exports.eScenario=Br,exports.eSecurityCriticalFlag=dr,exports.eSecurityFeatureType=Vr,exports.eSource=Hr,exports.eSummaryStatusField=Qw,exports.eTextPostProcessing=Ur,exports.eVisualFieldType=F,exports.getAuthenticityArray=Vc,exports.getAuthenticityCheckList=uw,exports.getDetailedStatus=iT,exports.getDocumentBarcodes=xw,exports.getDocumentDateOfExpiry=xT,exports.getDocumentIdentification=lT,exports.getDocumentImages=Tw,exports.getDocumentImagesSync=Ew,exports.getDocumentIssuingStateName=ST,exports.getDocumentNumber=CT,exports.getDocumentOwnerAge=wT,exports.getDocumentOwnerNationalityCode=TT,exports.getDocumentOwnerSex=ET,exports.getGraphicField=Aw,exports.getGraphicFieldSync=jw,exports.getIRVisibilityFlagArray=Uc,exports.getImageDimensions=gx,exports.getImageQuality=Iw,exports.getLightsArray=Gc,exports.getNameSurname=fT,exports.getPortraitsComparison=gw,exports.getRfidCertificatesData=zw,exports.getRfidChecksSummary=Bw,exports.getRfidDataGroupsStatus=Gw,exports.getRfidDataGroupsStatusList=Yw,exports.getRfidTerminalAuthorizationRequirements=Jc,exports.getTextData=_T,exports.getTextFieldValue=bT,exports.isAuthenticity=Hc,exports.isIRVisibilityFlag=Wc,exports.isLights=Kc,exports.isObject=hx,exports.isRfidTerminalAuthorizationRequirement=Yc,exports.mergeDetailedStatus=oT,exports.mergeStatuses=UC,exports.transformToAuthenticityCheckResultList=ud,exports.transformToContainerList=cm,exports.transformToRAuthenticityCheckList=iw;